Skip to content

The Case Owner offers ownership with its own flat Offer, and the CASE_MANAGER makes the transferee's Offer from it - #6803

Merged
sei-ahouseholder merged 11 commits into
mainfrom
task/6466-owner-flat-transfer-offer
Nov 30, 2026
Merged

sei-ahouseholder merged 11 commits into
mainfrom
task/6466-owner-flat-transfer-offer

Conversation

@sei-ahouseholder

@sei-ahouseholder sei-ahouseholder commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replaces the Case Owner's nested Offer(Offer(VulnerabilityCase)) with its own flat Offer(VulnerabilityCase), target the transferee, sent to the CASE_MANAGER only. The CASE_MANAGER ledgers the Owner's Offer and makes its own Offer from it (derived id, attributedTo the Owner, inReplyTo the Owner's Offer), which is the one the transferee answers; the three ownership sender gates now read vocabulary keys.

Issues: closed 1, opened 0
Questions: asked 0, filed 0

Motivation

ADR-0199 revision 3: the decider sends its own act, and when the act needs an answer the CASE_MANAGER makes the ask. The Owner's flat Offer and the CASE_MANAGER's Offer share one wire shape, so one semantic type and one received tree take both, split by the receiver's path (HP-01-038), as the Owner's Invite already is (#6697).

Changes

  • Wire (vultron/wire/as2/vocab/activities/case/ownership.py, factories/case/ownership.py, extractor/_instances.py, extractor/_extract.py, extractor/_builders/semantic_kwargs.py): _ProposeCaseOwnershipTransferActivity, propose_case_ownership_transfer_activity and ProposeCaseOwnershipTransferActivityPattern are removed. The Undo now wraps the Owner's Offer(VulnerabilityCase) (undo_case_ownership_transfer_activity(offer=...)). No Offer(Offer(...)) form remains (AC-1).
  • Core events and semantics (vultron/core/models/events/actor.py, base.py): PROPOSE_CASE_OWNERSHIP_TRANSFER and its event are gone; OfferCaseOwnershipTransferReceivedEvent gains case_id (its object) and transferee_id (its normalised target); the Undo event reads its case from the withdrawn Offer's object.
  • Received tree (vultron/core/behaviors/case/ownership_transfer_tree/proposal.py): create_propose_ownership_transfer_tree is now the one tree for both paths: manager path = the Owner's proposal (Owner-only sender guard, then the open-Offer and transferee guards in an OnPaths.at_case_manager branch, commit, then MakeOwnershipTransferOfferNode); participant-replica path = the transferee's intake of the CASE_MANAGER's Offer. create_offer_ownership_transfer_tree is removed. held_case is now OWNERSHIP_TRANSFER_OFFER.
  • Use cases (vultron/core/use_cases/received/actor/ownership.py, semantic_registry/actor/authority.py): ProposeCaseOwnershipTransferReceivedUseCase folds into OfferCaseOwnershipTransferReceivedUseCase, whose rule is CASE_OWNER at the CASE_MANAGER and CASE_MANAGER at a participant. The registry entry carries both occasions.
  • Guards (vultron/core/behaviors/case/nodes/ownership_offer_guard.py): the "inner Offer names another case" check is gone (the Offer's object is the case); the other refusals keep their refusal notice.
  • Ledger readers (vultron/core/participants/ownership_offer.py): both Offers are ledgered as offer_case_ownership_transfer, so _offer_entries keeps only the CASE_MANAGER's own: actor the CASE_MANAGER and an id equal to the one derived from its inReplyTo and attributedTo (CM-21-028). The actor alone would misread an Owner that is also the CASE_MANAGER (CM-02-010), whose own Offer is sent as the CASE_MANAGER. An answer naming the Owner's Offer resolves to nothing. RecordedOwnershipOffer.offerer_id is now a property reading attributedTo.
  • Demo (vultron/demo/exchange/transfer_ownership_steps.py): the gate waits for the CASE_MANAGER's own offer_case_ownership_transfer entry by its derived id, since the Owner's Offer is now ledgered under the same semantic type.
  • Trigger side (ownership_transfer.py emit node, core/ports/trigger_activity/ownership.py, trigger adapter, core/use_cases/triggers/actor/ownership.py): the Owner's emit calls offer_case_ownership_transfer(..., to=[cm]) and raises when no CASE_MANAGER resolves, so the Offer never defaults to its target. The port's propose_case_ownership_transfer is removed. The withdraw trigger refuses an Offer this actor did not send, or one that offers no case.
  • AC-8 (sender_entitlement/addressee.py, sender_entitlement/ownership.py, sender_guard/kind_nodes.py, sender_check_context.py): SenderIsRequestAddresseeNode reads /sender_id itself (the _SenderKeyAddresseeNode placeholder is folded in). SenderIsOwnershipOfferPartyNode, SenderIsOwnershipOffererNode and SenderIsOfferingCaseOwnerNode read /case_id, /offer_id, /proposal_id and /sender_id, seeded by kind_nodes through with_act_keys. The Offerer gate reads the withdrawal's own id from the /activity run key, so OwnershipOfferRequest.reply_id is dropped. All ratchet entries tagged 6466 are removed from test/architecture/_per_act_parameter_sites.py, and so are the entries of the removed parameters and factory.
  • Specs: CM-21-005, -025, -026, -027, -028, -029, -015, -036, -037, -041, -044, -045 state the Owner's flat Offer and the CASE_MANAGER's Offer made from it and cite ADR-0199 (AC-6). VAM-04-007, -015 and -018, TRIG-11-001, -006 and -007, and AKM-03-004 follow.
  • Notes and docs: notes/ownership-transfer.md, notes/as2-vocabulary-alignment.md ("Today"), the glossary's Case Ownership Transfer, docs/reference/messages/case_management.md, docs/topics/case_lifecycle/ownership_transfer.md, docs/reference/vultron-spec/_participant-lifecycle.md and docs/tutorials/other_demos.md. The regenerated occasion table and fragments (msm-occasions --write) and example JSON (vocab_examples.py). The demo docstrings name the Owner's Offer (AC-7).
  • UI (ui/src/actions/ownershipActions.ts, ui/src/recordings/{rvcv,rccv}-{handoff,extension}/, ui/src/utils/replay-golden/): the offline simulator names the flat Offer. The two handoff recordings are regenerated with export-demo-recordings, and their goldens with npm test -- -u. Each replay now shows the Owner's Offer, then the CASE_MANAGER's. The rccv recording also picks up the Owner's Invite that The Case Owner invites an actor with its own Invite, and the CASE_MANAGER makes the stub Invite from it #6697 already merged. The two extension recordings share their first steps with the handoffs, so they are re-recorded too. The ledger-and-checks comparison differs on rccv-handoff and rvcv-handoff by design (the Owner's Offer is now an entry, AC-3), so the PR carries demo-verdict-change.
  • Tests: updated for the flat form across wire, core, adapter and architecture tests. New tests:
    • a non-Owner's Offer gets no notice, nothing ledgered and one WARNING;
    • an open Offer, or a transferee that is the CASE_MANAGER, the Owner or inactive, gets one refusal notice;
    • the CASE_MANAGER's Offer carries inReplyTo = the Owner's Offer, and no Announce or Accept is queued;
    • a bystander replica's Add of either Offer entry writes no record (AC-5);
    • the Owner's emit fails with no CASE_MANAGER;
    • the withdraw trigger refuses an Offer another actor sent, an Invite, an Offer of something else, or an Offer naming no actor;
    • an Owner that is also the CASE_MANAGER has its own Offer left out of the recorded Offers.

Specs

Spec manifest
Loaded (floor): CM-21-014 CM-21-015 CM-21-016 CM-21-017 CM-21-019 CM-21-021 CM-21-025 CM-21-026 CM-21-027 CM-21-028 CM-21-029 CM-21-036 CM-21-037 CM-21-041 CM-21-044 CM-24-001 CM-24-002 CM-24-012 CM-10-004 PCR-08-011 CBT-01-006 CLP-10-017 DL-06-006 CLP-05-006 SL-03-002 CM-31-043 CM-17-026 BTND-01-007 BTND-01-008 BTND-01-009 BT-25-011
Loaded (cross-cutting): ARCH CS TB HP SL EH
Loaded (selected): CM-21 — ownership transfer protocol effects, rewritten for the flat Offer; TRIG-11 — the offer and withdraw triggers' wire form; VAM-04 — wire forms of the ownership-transfer activities; VAM-01 — pattern registry and the depth-2 bare-object case; HP-01 — sender rule per path and the path stage; BTND-01 — sender gates read vocabulary keys (AC-8); BT-25 — one source per act key; AKM-03 — the case travels as a typed reference (statement updated); DL-06 — received Offers kept only under the receiver's key; CLP-05 — refusal notice vs. sender-guard refusal; CLP-07 — canonical payload signatures; CLP-10 — received tree stages; CM-24 — delegated authorship of the CASE_MANAGER's Offer; PCR-03 — a replica takes the Offer from the CASE_MANAGER alone; PCR-08 — the Owner's Offer goes to the CASE_MANAGER only; SYNC-09 — commit after queue; SYNC-12 — a replica persists the entry and writes nothing else; TRIG-01 — trigger refuses before queuing; EDF-06 — demo gates on the CASE_MANAGER's entry; SE-02 — one semantic per pattern; SE-01 — strict object matching, the depth-2 bare-object test whose docstring changed
Considered, skipped: CM-17 — Owner's Invite left to #6784 per the maintainer's 2026-11-20 decision; CM-31 — removal/reinstatement pattern read only; AF-01 AF-02 AF-04 — factory shape unchanged except the removed proposal factory; AKM-02 AKM-05 — actor references unchanged; ASK-03 ASK-07 — ask bookkeeping untouched; BT-13 BT-17 — role gate and refusal reason composition unchanged; CBT-01 — bootstrap trust untouched; CLP-02 CLP-04 CLP-06 CLP-08 — ledger entry kinds unchanged beyond the label; CM-11 CM-16 CM-23 CM-33 — invites, recommendations, closure, role offers untouched; CP-01 CP-02 — case proposals untouched; DEMOMA-26 — ActorSession unchanged; DL-08 — inline refs unchanged; DR-02 — no change; EMB-13 EP-09 — embargo untouched; IO-02 — inbox entry unchanged; MSM-01 MSM-02 MSM-03 MSM-04 — occasion table regenerated by msm-occasions; MV-01 MV-09 MV-10 — vocabulary parse unchanged; OID-01 — id normalisation reused; PCR-04 PCR-06 PCR-07 — replica seeding untouched; RF-02 RF-03 RF-04 — inline-required fields tested, unchanged rule; RMB-07 RMB-14 — report management untouched; RSH-06 RSH-08 — replica state writes untouched; SE-03 SE-05 SE-07 — dispatch and phrases unchanged; SYNC-15 SYNC-16 SYNC-18 SYNC-21 — sync positions untouched; UCORG-02 — use-case naming kept; VAM-06 VAM-08 VAM-09 — other wire forms; VM-03 VM-08 — vocabulary registry and sealed bodies unchanged

Spec amended

Reason for every block not listed below: restated for the Owner's flat Offer(VulnerabilityCase) replacing Offer(Offer(VulnerabilityCase)), as #6466 (AC-1, AC-6) and ADR-0199 revision 3 require; the obligation is unchanged.

AKM-03-004

  • Before: This codebase MUST carry the case that Join, Ignore and Leave of a case and the ownership-transfer Offer(VulnerabilityCase) act on as a typed reference: an inline object with only the case's id and type. The ownership-transfer Offer is both the one nested in the owner's proposal and the one the CASE_MANAGER makes.
  • After: This codebase MUST carry the case that Join, Ignore and Leave of a case and the ownership-transfer Offer(VulnerabilityCase) act on as a typed reference: an inline object with only the case's id and type. The ownership-transfer Offer is both the Case Owner's own and the one the CASE_MANAGER makes from it.
  • Reason: The Owner's Offer is no longer nested; it is the Owner's own flat Offer (ADR-0199).

CM-21-005

  • Before: A Case Owner MUST propose an ownership transfer by sending Offer(Offer(VulnerabilityCase)), with the case as context, to the CASE_MANAGER only, never to the transferee (PCR-08-001).
  • After: A Case Owner MUST propose an ownership transfer by sending its own Offer(VulnerabilityCase), with the transferee as target, to the CASE_MANAGER only, never to the transferee (PCR-08-001). That Offer is the Owner's proposal.
  • Reason: See the shared reason above.

CM-21-015

  • Before: When the CASE_MANAGER admits the proposing Case Owner's Undo(Offer(Offer(VulnerabilityCase))), it MUST commit a CaseLedgerEntry recording the withdrawal. The entry closes the Offer the CASE_MANAGER made from that proposal.
  • After: When the CASE_MANAGER admits the proposing Case Owner's Undo of its own Offer(VulnerabilityCase), it MUST commit a CaseLedgerEntry recording the withdrawal. The entry closes the Offer the CASE_MANAGER made from the Owner's.
  • Reason: See the shared reason above.

CM-21-025

  • Before: The inner Offer of an ownership-transfer proposal MUST name the case as its object and the transferee as its target. It optionally carries the deadline to answer as its end_time (CM-21-016).
  • After: The Owner's ownership-transfer Offer MUST name the case as its object and the transferee as its target. It optionally carries the deadline to answer as its end_time (CM-21-016).
  • Reason: See the shared reason above.

CM-21-026

  • Before: The CASE_MANAGER MUST refuse an ownership-transfer proposal, with no ledger commit and no outbound Offer, unless its inner Offer passes two checks. The inner Offer's object is the proposal's case. Its target is an actor the CASE_MANAGER can address (present, neither itself nor the proposer) and an active participant of the case (CM-21-021).
  • After: The CASE_MANAGER MUST refuse the Owner's ownership-transfer Offer, with no ledger commit and no outbound Offer, unless its target is an actor the CASE_MANAGER can address (present, neither itself nor the Owner) and an active participant of the case (CM-21-021).
  • Reason: The 'inner Offer names the proposal's case' check is moot: the flat Offer's object is the case. The remaining checks are unchanged (The Case Owner offers ownership with its own Offer of the case, and the CASE_MANAGER makes the transferee's Offer from it #6466, ADR-0199).

CM-21-027

  • Before: When it admits an ownership-transfer proposal, the CASE_MANAGER MUST ignore any id, actor or to inside the inner Offer.
  • After: When it admits the Owner's ownership-transfer Offer, the CASE_MANAGER MUST NOT copy its id, actor or to onto the Offer it makes.
  • Reason: See the shared reason above.

CM-21-028

  • Before: On admitting a proposal, the CASE_MANAGER MUST make the single ownership-transfer Offer(VulnerabilityCase) itself, under an id it derives from the proposal, addressed to the transferee. The Offer's actor is the CASE_MANAGER, its attributed_to the owner and its in_reply_to the proposal (CM-24-001, CM-24-002, CM-24-020).
  • After: On admitting the Owner's Offer, the CASE_MANAGER MUST make its own ownership-transfer Offer(VulnerabilityCase), with the Owner's case and target, under an id it derives from the Owner's Offer, addressed to the transferee. The Offer's actor is the CASE_MANAGER, its attributed_to the owner and its in_reply_to the Owner's Offer (CM-24-001, CM-24-002, CM-24-020).
  • Reason: See the shared reason above.

CM-21-029

  • Before: The CASE_MANAGER MUST ledger the Offer it made from a proposal once that Offer is in its outbox (SYNC-09-002). That Offer is the one that is ledgered, answered, closed and expired.
  • After: The CASE_MANAGER MUST ledger the Owner's admitted Offer as one entry, and the Offer it made from it as another once that Offer is in its outbox (SYNC-09-002). The CASE_MANAGER's Offer is the one that is answered, closed and expired.
  • Reason: Both Offers are now ledgered; the CASE_MANAGER's is still the one answered (The Case Owner offers ownership with its own Offer of the case, and the CASE_MANAGER makes the transferee's Offer from it #6466 AC-3, ADR-0199).

CM-21-036

  • Before: The proposing Case Owner MAY withdraw the Offer made from its proposal while that Offer is open (CM-21-014), by sending the CASE_MANAGER Undo(Offer(Offer(VulnerabilityCase))).
  • After: The proposing Case Owner MAY withdraw the Offer made from its own Offer while that Offer is open (CM-21-014), by sending the CASE_MANAGER Undo of its own Offer(VulnerabilityCase).
  • Reason: See the shared reason above.

CM-21-037

  • Before: The CASE_MANAGER MUST resolve the Offer that an owner's Undo withdraws by the id it derived for that Offer from the proposal (CM-21-028).
  • After: The CASE_MANAGER MUST resolve the Offer that an owner's Undo withdraws by the id it derived for that Offer from the Owner's own Offer (CM-21-028).
  • Reason: See the shared reason above.

CM-21-041

  • Before: When the inner Offer of the owner's proposal carries an end_time, the CASE_MANAGER MUST copy it onto the Offer it makes (CM-21-028).
  • After: When the Owner's ownership-transfer Offer carries an end_time, the CASE_MANAGER MUST copy it onto the Offer it makes (CM-21-028).
  • Reason: See the shared reason above.

CM-21-044

  • Before: The CASE_MANAGER MUST refuse every ownership-transfer Offer(VulnerabilityCase) it receives, from any sender. It makes that Offer itself (CM-21-028).
  • After: The CASE_MANAGER MUST judge every ownership-transfer Offer(VulnerabilityCase) it receives as an Owner's proposal (CM-21-005), never as an Offer to answer. It makes the Offer that is answered itself (CM-21-028).
  • Reason: Obligation change the maintainer approved in The Case Owner offers ownership with its own Offer of the case, and the CASE_MANAGER makes the transferee's Offer from it #6466 AC-6 (ADR-0199 revision 3): the Owner's flat Offer is now the proposal, so a received Offer(VulnerabilityCase) is judged as one, not refused outright.

TRIG-11-001

  • Before: The system MUST expose an offer-case-ownership-transfer trigger at POST /actors/{actor_id}/trigger/offer-case-ownership-transfer that accepts a case_id and transferee_id in its request body and emits the requesting Case Owner's proposal, Offer(Offer(VulnerabilityCase)), to the case's CASE_MANAGER, which offers the case to the specified transferee (CM-21-005). The response's activity is the proposal.
  • After: The system MUST expose an offer-case-ownership-transfer trigger at POST /actors/{actor_id}/trigger/offer-case-ownership-transfer that accepts a case_id and transferee_id in its request body and emits the requesting Case Owner's own Offer(VulnerabilityCase), with the transferee as target, to the case's CASE_MANAGER only, which makes its own Offer to the transferee from it (CM-21-005). The response's activity is the Owner's Offer.
  • Reason: See the shared reason above.

TRIG-11-006

  • Before: The system MUST expose a withdraw-case-ownership-transfer trigger at POST /actors/{actor_id}/trigger/withdraw-case-ownership-transfer that accepts an offer_id in its request body, naming the requesting Case Owner's own proposal (the activity TRIG-11-001 returned), and emits Undo(Offer(Offer(VulnerabilityCase))) of that proposal, addressed to the CASE_MANAGER (CM-21-015).
  • After: The system MUST expose a withdraw-case-ownership-transfer trigger at POST /actors/{actor_id}/trigger/withdraw-case-ownership-transfer that accepts an offer_id in its request body, naming the requesting Case Owner's own Offer (the activity TRIG-11-001 returned), and emits Undo(Offer(VulnerabilityCase)) of that Offer, addressed to the CASE_MANAGER (CM-21-015).
  • Reason: See the shared reason above.

TRIG-11-007

  • Before: The offer-case-ownership-transfer trigger (TRIG-11-001) MUST accept an optional end_time in its request body and, when given, set it as the end_time of the proposal's inner Offer, which the CASE_MANAGER carries to the Offer it makes as the deadline to answer (CM-21-016). Without it the Offer carries no end_time.
  • After: The offer-case-ownership-transfer trigger (TRIG-11-001) MUST accept an optional end_time in its request body and, when given, set it as the end_time of the Owner's Offer, which the CASE_MANAGER carries to the Offer it makes as the deadline to answer (CM-21-016). Without it the Offer carries no end_time.
  • Reason: See the shared reason above.

VAM-04-007

  • Before: OFFER_CASE_OWNERSHIP_TRANSFER MUST be represented as Offer(VulnerabilityCase): the one Offer of a transfer, which the CASE_MANAGER makes from the Case Owner's proposal (CM-21-005).
  • After: OFFER_CASE_OWNERSHIP_TRANSFER MUST be represented as Offer(VulnerabilityCase), with the transferee as target: the Case Owner's own Offer to the CASE_MANAGER, and the Offer the CASE_MANAGER makes from it to the transferee (CM-21-005).
  • Reason: See the shared reason above.

VAM-04-015

  • Before: UNDO_CASE_OWNERSHIP_TRANSFER MUST be represented as Undo(Offer(Offer(VulnerabilityCase))): the Case Owner's withdrawal of its own proposal, and with it of the open Offer the CASE_MANAGER made from it (CM-21-015).
  • After: UNDO_CASE_OWNERSHIP_TRANSFER MUST be represented as Undo(Offer(VulnerabilityCase)): the Case Owner's withdrawal of its own Offer, and with it of the open Offer the CASE_MANAGER made from it (CM-21-015).
  • Reason: See the shared reason above.

VAM-04-018

  • Before: PROPOSE_CASE_OWNERSHIP_TRANSFER MUST be represented as Offer(Offer(VulnerabilityCase)) with the case as the proposal's context: the Case Owner's proposal to the CASE_MANAGER, whose inner Offer is the template of the Offer the CASE_MANAGER makes (CM-21-005).
  • After: The Case Owner's ownership-transfer proposal MUST be represented as its own Offer(VulnerabilityCase), with the transferee as target, addressed to the CASE_MANAGER: the shape of the CASE_MANAGER's Offer, matched by the same pattern, and told apart from it by the path the receiver is on (CM-21-005).
  • Reason: See the shared reason above.

Docs

Docs: updated docs/topics/case_lifecycle/ownership_transfer.md, docs/topics/scenarios/rvcv-handoff.md, docs/topics/scenarios/rccv-handoff.md, docs/reference/messages/case_management.md, docs/reference/vultron-spec/_participant-lifecycle.md, docs/tutorials/other_demos.md, docs/reference/glossary.md

Verification

  • Targeted gate: 6239 tests pass over 587 selected test paths (12 new tests), exit: 1 only because one xdist worker crashed under host load (An in-process rv demo test still crashes its xdist worker in a large loaded run, with #6190's fix in place #6727) on test/metadata/specs/test_registry_attribution.py; that file rerun alone passes (6 passed). An earlier gate run on this branch had the same worker crashes on test/demo/test_report.py, test/demo/test_pcr_late_joiner.py and test/demo/test_manage_embargo_demo.py, and those files rerun alone with -n 0 pass too.
  • pr-ship fix commits: targeted gate 20963 passed, 1 failed only by an xdist worker crash (An in-process rv demo test still crashes its xdist worker in a large loaded run, with #6190's fix in place #6727) on test/demo/test_remote_case_actor_invite.py, which passes rerun alone (7 passed); prepush-ci-mirror --base main --pr 6803 exit 0.
  • prepush-ci-mirror --base main exit 0; mkdocs build --strict passes; spec-lint --changed-since origin/main, spec-backstop and pr-body-lint exit 0
  • ruff and mypy clean (the type-check second pass is CI's, PAD-18-027)
  • Self-check:
    • Affected text: searched Offer(Offer, inner Offer, propose_case_ownership_transfer, ProposeCaseOwnership, PROPOSE_CASE_OWNERSHIP, create_offer_ownership_transfer_tree, proposed_answer_deadline, _SenderKeyAddresseeNode across vultron/, test/, specs/, notes/, docs/ (ADRs left as history, ADR-0127). Updated every hit outside the kept names: the example function propose_case_ownership_transfer, the anchor propose-case-ownership-transfer (live URL) and EmitProposeCaseOwnershipTransferNode / create_propose_ownership_transfer_tree. Those names are kept because the per-act ratchet forbids a renamed site with per-act parameters; the Owner's Offer is the proposal.
    • Failure paths: the Owner's Offer commit and the CASE_MANAGER's build → queue → commit stay in one act, so a fault keeps neither and a redelivery makes the Offer under the same derived id (test_an_offer_that_fails_after_the_proposal_entry_is_made_on_redelivery, test_an_offer_whose_commit_fails_is_not_sent). The Owner's emit with no CASE_MANAGER now fails before any write (test_emit_offer_with_no_case_manager_sends_nothing).
    • Branch coverage: every new branch tested: manager vs. replica path, the Owner's own copy at its replica, the CASE_MANAGER's own Offer at itself, the _offer_entries actor filter (Accept naming the Owner's Offer is refused, existing test_accept_naming_the_proposal_is_refused), the withdraw trigger's sender and case-object checks, and a reply naming no Offer (test_an_ownership_reply_naming_no_offer_is_refused).
    • Reuse: the tree reuses OnPaths, with_act_keys (via _sender_seeded), ReceivedRequestInputMixin and delegated_authorship; the Owner's emit reuses the CASE_MANAGER's offer_case_ownership_transfer port method; no duplication found.
  • AC-1: the Owner's trigger sends Offer(VulnerabilityCase) to the CASE_MANAGER only; no Offer(Offer(...)) remains in vocabulary, patterns, factories or examples.
  • AC-2: met per the 2026-11-20 comments on The Case Owner offers ownership with its own Offer of the case, and the CASE_MANAGER makes the transferee's Offer from it #6466. A non-Owner sender is refused by the standard sender guard as it behaves on main: no refusal notice, nothing committed, and the received runner's one WARNING line (test_a_non_owners_offer_gets_no_notice_and_one_warning). The notice for a refused participant comes with A refused participant is sent a refusal notice, and a non-participant is never answered #6784, which builds it once in the received-tree factory. An open Offer, or a transferee that is not an active participant, is the CASE_MANAGER or is the Owner, is refused with a refusal notice and no commit (TestRefusedOwnersOfferIsAnsweredWithANotice). CM-17-026, the Invite tree and its test are untouched (A refused participant is sent a refusal notice, and a non-participant is never answered #6784 aligns them).
  • AC-3: the Owner's Offer is one entry; the CASE_MANAGER's Offer (derived id, attributedTo Owner, inReplyTo the Owner's Offer, Owner's end_time) is committed once queued; no Announce to the transferee, no Accept to the Owner.
  • AC-4: Accept/Reject name the CASE_MANAGER's Offer; Accept admitted only while the transferee is active (OwnershipTransfereeActiveNode, unchanged); the Owner's Undo of its own Offer resolves through the derived id.
  • AC-5: open-Offer bookkeeping is keyed by the case and read from the CASE_MANAGER's ledger; no replica builds an Offer record. test_offer_entry_persists_and_writes_nothing_else[managers|owners] asserts a bystander replica holds none.
  • AC-6: CM-21 requirements, notes/ownership-transfer.md and the glossary entry describe the flow and cite ADR-0199; CM-21-044 now reads every received Offer(VulnerabilityCase) as an Owner's proposal.
  • AC-7: the ownership-transfer demo docstrings and docs/reference/messages/case_management.md show the Owner's Offer and the CASE_MANAGER's Offer made from it.
  • AC-8: the three ownership sender gates and the addressee base read vocabulary keys with no per-act constructor parameter; their call sites seed through with_act_keys; the 6466 ratchet entries are gone.

🤖 Generated with Claude Code

ahouseholder and others added 5 commits November 20, 2026 20:00
The Owner sends its own Offer(VulnerabilityCase), target the transferee,
to the CASE_MANAGER only, replacing Offer(Offer(VulnerabilityCase)). The
CASE_MANAGER ledgers it and makes its own Offer from it (derived id,
attributedTo the Owner, inReplyTo the Owner's Offer), the one the
transferee answers (ADR-0199). One semantic type and one received tree
take both, split by the receiver's path. The three ownership sender gates
and the addressee base now read vocabulary keys (AC-8).

Closes #6466

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… ownership Offer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the size:XL 2501+ diff lines — CI-fix rate doubles here; split it or justify why not label Nov 20, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sei-ahouseholder

Copy link
Copy Markdown
Contributor Author

Pre-push review (fresh agent, before the first push). The review found 6 findings, 1 FAIL and 5 IMPROVE, all fix-now. All are resolved on this branch:

  • FAIL phase8-overlong-docstring-lines-0: two module docstring lines were over 88 columns, in held_case.py and ownership_offer.py. Both are rewrapped.
  • IMPROVE phase8-stale-nested-offer-docstrings-0: the test docstrings still described Offer(Offer(VulnerabilityCase)). They now describe the flat Offer. The depth-2 bare-object test no longer claims a registered ownership Undo.
  • IMPROVE phase8-demo-steps-stale-gate-0: vendor_offers_ownership now gates on the CASE_MANAGER's own offer_case_ownership_transfer entry, by its derived id. The Owner's Offer is ledgered under the same type, so a gate on the type alone would also pass on the Owner's entry.
  • IMPROVE phase8-withdraw-object-type-unchecked-0: the withdraw trigger now requires the held Offer to offer a VulnerabilityCase. New test: test_naming_an_offer_of_something_else_is_refused.
  • IMPROVE phase8-unseeded-offer-id-untested-0: new test test_an_ownership_reply_naming_no_offer_is_refused covers a reply that seeds no /offer_id.
  • IMPROVE phase9-plan-note-stale-item-0: the ownership item in notes/as2-vocabulary-alignment.md now states the rule without the replace/inverts history.

The reviewer also pointed to the rvcv/rccv scenario pages. They said one ownership-offer entry is recorded, and check-docs-sync updated them to say two.

@sei-ahouseholder sei-ahouseholder left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Triage: #6803 — The Case Owner offers ownership with its own flat Offer, and the CASE_MANAGER makes the transferee's Offer from it

Linked issues: #6466
Changed files: 109 files — ownership transfer, BT integration, sender entitlement, case ledger, wire vocabulary
CI status: ⏳ pending
Merge state: 📝 DRAFT (MERGEABLE, BLOCKED: CI gate pending)
Base branch: main
Needs integration tests: yes
Context: reused build context — build context matches this branch
Mode: delta (pre-push review carried forward; all six pre-push findings confirmed fixed on the head)


Findings

# Phase Severity Description Outcome
phase8-owner-as-manager-offer-misread-0 code-review ❌ FAIL _offer_entries filters on actor == CASE_MANAGER; an Owner that is also the CASE_MANAGER (CM-02-010) has its own Offer read as the answerable one, and that never-closed entry holds the case open against later proposals. Filter by the derived id (CM-21-028) instead. fix-now
phase8-dead-offerer-branch-0 code-review ⚠️ IMPROVE offerer_id's non-manager branch is dead now fix-now
phase8-duplicate-manager-lookup-0 code-review ⚠️ IMPROVE Manager lookup duplicated in ownership_offer.py (CS-22-001) fix-now
phase10-unheld-case-branch-untested-0 test-coverage ⚠️ IMPROVE _offer_entries unheld-case branch untested fix-now
phase10-withdraw-refusals-untested-0 test-coverage ⚠️ IMPROVE Withdraw trigger: not-an-Offer and no-actor refusals untested fix-now
phase10-weak-withdraw-assertion-0 test-coverage ⚠️ IMPROVE Bare pytest.raises in test_raises_when_proposal_names_no_case fix-now
phase8-stale-inner-offer-test-0 code-review ⚠️ IMPROVE Test still named for an inner Offer; docstring claims an unasserted notice fix-now
phase8-stale-test-docstrings-0 code-review ⚠️ IMPROVE ADR-0148 cited where ADR-0199 governs; 90-char docstring line fix-now
phase12-ci-gate-pending-0 merge-state ⚠️ IMPROVE Draft, CI gate pending fix-now

Judged points: keeping create_propose_ownership_transfer_tree / EmitProposeCaseOwnershipTransferNode holds — the per-act ratchet keys entries by path::qualname::parameter and forbids new keys, so a rename would add entries; #6576/#6586 own those sites. The propose_case_ownership_transfer example is outside the ratchet but names the occasion and live anchor propose-case-ownership-transfer, so keeping it is consistent.

Total: 1 FAIL · 8 IMPROVE · 0 NEW-ISSUE


Triage artifact: .claude/pr-6803-triage.json
Next step: /pr-execute.

@sei-ahouseholder sei-ahouseholder added the demo-verdict-change Deliberate demo verdict change: admits a demo-verdict base-vs-head difference label Nov 20, 2026
ahouseholder and others added 2 commits November 20, 2026 22:12
- code-review: read the CASE_MANAGER's ownership Offers by the id derived
  from inReplyTo and attributedTo, so an Owner that is also the CASE_MANAGER
  (CM-02-010) has its own Offer left out; Owner-as-CASE_MANAGER test added
- code-review: offerer_id is a property reading attributedTo; the dead
  non-manager branch is gone
- code-review: one _case_manager_of helper replaces the duplicated lookup
- test-coverage: a store not holding the case has no recorded Offer
- test-coverage: the withdraw trigger refuses an Invite, an Offer of
  something else and an Offer naming no actor; the no-case test matches
- code-review: stale inner-Offer test renamed, unasserted notice claim
  dropped; ADR-0199 cited in withdraw-test helpers; docstring rewrapped
- notes: ownership-transfer.md states the derived-id filter

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rccv-extension and rvcv-extension share their first steps with the
handoff recordings, which this PR re-recorded; re-recorded with
export-demo-recordings and the goldens updated with npm test -- -u.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@sei-ahouseholder sei-ahouseholder left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Execute: #6803 — The Case Owner offers ownership with its own flat Offer, and the CASE_MANAGER makes the transferee's Offer from it

Fixes applied: 2 commits
Excursions filed and fixed: 0
Deferred (you approved): 0
Halted (inversion, awaiting you): 0
Tests run: targeted set (branch diff)
CI status: ✅ passing (head 859593f)
Base sync: ✅ deferred — overlaps main on vultron/wire/as2/extractor/_extract.py, merger updates before merge
Docs line: unchanged — 0 pages updated by execute (the fixes change no described behaviour)

Suite runs: 0 full, 1 targeted


Fixed

Finding Commit Closes
phase8-owner-as-manager-offer-misread-0: recorded Offers are told by the derived id (CM-21-028), not actor alone; Owner-as-CASE_MANAGER test dc6284b5b —
phase8-dead-offerer-branch-0: offerer_id is a property reading attributedTo dc6284b5b —
phase8-duplicate-manager-lookup-0: one _case_manager_of helper dc6284b5b —
phase10-unheld-case-branch-untested-0: test added dc6284b5b —
phase10-withdraw-refusals-untested-0: Invite / other object / no actor parametrized dc6284b5b —
phase10-weak-withdraw-assertion-0: match= added dc6284b5b —
phase8-stale-inner-offer-test-0: renamed, unasserted claim dropped dc6284b5b —
phase8-stale-test-docstrings-0: ADR-0199 cited, docstring rewrapped dc6284b5b —
CI Tests (pytest) rest: rccv/rvcv-extension recordings and goldens re-recorded (shared prefix with the handoffs) 859593f7b —
CI Demo verdict unchanged: rccv-handoff and rvcv-handoff differ by design (the Owner's Offer is now ledgered, AC-3); demo-verdict-change label applied — —
phase12-ci-gate-pending-0: CI green, PR marked ready — —

Gate note: the targeted gate had 1 failure, an xdist worker crash (#6727) on test/demo/test_remote_case_actor_invite.py. The file passes rerun alone (7 passed). prepush-ci-mirror --base main --pr 6803 exit 0.

@sei-ahouseholder sei-ahouseholder left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Verify: #6803 — The Case Owner offers ownership with its own flat Offer, and the CASE_MANAGER makes the transferee's Offer from it

Overall verdict: ✅ READY-TO-MERGE
Merge state: ✅ MERGEABLE (CLEAN) — base main; CI gate SUCCESS on head 859593f
CI status: ✅ passing (integration checks pass)
Docs line: current (fix commits dc6284b, 859593f checked; every listed page changed in the diff)
Spec amended: every amended requirement has its block

Finding Severity Verdict
phase8-owner-as-manager-offer-misread-0 FAIL CONFIRMED — _made_by derived-id filter and Owner-as-CASE_MANAGER test at HEAD
phase8-dead-offerer-branch-0 IMPROVE CONFIRMED
phase8-duplicate-manager-lookup-0 IMPROVE CONFIRMED
phase10-unheld-case-branch-untested-0 IMPROVE CONFIRMED
phase10-withdraw-refusals-untested-0 IMPROVE CONFIRMED
phase10-weak-withdraw-assertion-0 IMPROVE CONFIRMED
phase8-stale-inner-offer-test-0 IMPROVE CONFIRMED
phase8-stale-test-docstrings-0 IMPROVE CONFIRMED
phase12-ci-gate-pending-0 IMPROVE CONFIRMED — ready for review, gate green

The PR carries demo-verdict-change: the ledger comparison differs on rccv-handoff and rvcv-handoff because the Owner's Offer is now ledgered (AC-3).

@sei-ahouseholder sei-ahouseholder left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Triage: #6803 — re-triage after main moved

Mode: full (prepush-delta.sh: no pre-push artifact; build context: fallback, no build context file)
Head: 859593f — unchanged since the full triage, execute and READY-TO-MERGE verify of 2026-11-20. Phases 2–10 re-checked against what landed on main since merge base 864635f (54 commits); the PR diff itself has not changed.
CI status: ✅ passing on 859593f
Merge state: ❌ CONFLICTING (DIRTY)

FAIL

  • phase12-merge-conflict-0 (fix-now): textual conflicts only in demo recordings and replay goldens (ui/src/recordings/{rccv,rvcv}-{extension,handoff}/case-actor.jsonl, ui/src/utils/replay-golden/{rccv,rvcv}-handoff.txt). Take main's copies (#6766 re-recorded every scenario without caseEngagement) and re-record the handoff and extension scenarios on the merged tree. The auto-merged overlap (glossary, notes/as2-vocabulary-alignment.md, specs/case-management.yaml, _per_act_parameter_sites.py, sender-entitlement and trigger tests, actor_trigger_trees.py, _extract.py) is gated by the targeted tests.

Notes

  • No spec-ID collision: this PR adds no new requirement IDs; main added CP-01-022..029 and CSAF-06.
  • #6784 and #6802 (#6295) are still open; nothing to adapt to.

Findings: 1 FAIL, 0 IMPROVE, 0 NEW-ISSUE

ahouseholder and others added 2 commits November 30, 2026 19:28
…transfer-offer

# Conflicts:
#	ui/src/recordings/rccv-extension/case-actor.jsonl
#	ui/src/recordings/rccv-handoff/case-actor.jsonl
#	ui/src/recordings/rvcv-extension/case-actor.jsonl
#	ui/src/recordings/rvcv-handoff/case-actor.jsonl
#	ui/src/utils/replay-golden/rccv-handoff.txt
#	ui/src/utils/replay-golden/rvcv-handoff.txt
main re-recorded every scenario without caseEngagement (#6766); the
handoff recordings are re-recorded on the merged tree with
export-demo-recordings so they hold this PR's two transfer Offers, and the
handoff goldens updated with vitest -u. The extension recordings came out
identical to main's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@sei-ahouseholder sei-ahouseholder left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Execute: #6803 — The Case Owner offers ownership with its own flat Offer, and the CASE_MANAGER makes the transferee's Offer from it

Fixes applied: 2 commits (merge f3ed55681, re-record d178585a8)
Excursions filed and fixed: 0 (PR closes them)
Deferred (you approved): 0
Halted (inversion, awaiting you): 0
Tests run: targeted set (branch diff vs origin/main): 3458 passed, 5 skipped, 75 xfailed; 1 xdist worker crash (test/metadata/docs/nav_usability/test_cli.py, the #6727 class) rerun alone: 6 passed. prepush-ci-mirror: exit 0.
CI status: ✅ passing (46/46 on d178585a8, CI gate SUCCESS)
Base sync: ✅ merged main @ f3ed55681 (conflicting) — 6 conflicts resolved
Docs line: unchanged — 0 pages updated by execute (the merge and re-record change no described behavior)

Suite runs: 0 full, 1 targeted


Conflicts Resolved

Path Resolution
ui/src/recordings/{rccv,rvcv}-handoff/case-actor.jsonl Took main's (#6766 re-record without caseEngagement), then re-recorded on the merged tree with export-demo-recordings through the heavy-check lock
ui/src/recordings/{rccv,rvcv}-extension/case-actor.jsonl Took main's; the re-record on the merged tree reproduced them byte for byte
ui/src/utils/replay-golden/{rccv,rvcv}-handoff.txt Took main's, regenerated with vitest -u; identical to this PR's goldens at 859593f

Auto-merged overlap checked: _per_act_parameter_sites.py keeps main's entries and this PR's removal of every 6466 entry; no spec-ID collision (this PR adds no requirement IDs); ADR index, occasion tables and JSON-LD context in sync on the merged tree; _offer_entries and ADR-0199 unchanged. #6784 and #6802 are not merged, so there was nothing to adapt to.

Fixed

Finding Commit Closes
phase12-merge-conflict-0: PR conflicted with main f3ed55681, d178585a8 —

@sei-ahouseholder sei-ahouseholder left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Verify: #6803 — The Case Owner offers ownership with its own flat Offer, and the CASE_MANAGER makes the transferee's Offer from it

Overall verdict: ✅ READY-TO-MERGE
Merge state: ✅ MERGEABLE (CLEAN) — base main; no conflict markers; CI gate SUCCESS on head d178585a8
CI status: ✅ passing (46/46, integration-bearing checks green)
Docs line: ✅ current — the only execute fix commit (d178585a8, re-recorded handoff recordings and goldens) changes no described behavior
Spec amended: ✅ all 18 changed requirements listed, no <TODO>; pr-body-lint 0 findings

Finding Severity Commit Verdict
phase12-merge-conflict-0: PR conflicted with main FAIL f3ed55681, d178585a8 CONFIRMED — merge commit on branch, origin/main is an ancestor of HEAD, live state MERGEABLE/CLEAN

Decisions in force checked on HEAD: _offer_entries (CASE_MANAGER actor plus derived id) and ADR-0199 unchanged; _per_act_parameter_sites.py holds no 6466 entry.

@sei-ahouseholder
sei-ahouseholder merged commit 4b46ac9 into main Nov 30, 2026
46 checks passed
@sei-ahouseholder
sei-ahouseholder deleted the task/6466-owner-flat-transfer-offer branch November 30, 2026 20:01
sei-ahouseholder pushed a commit that referenced this pull request Nov 30, 2026
Takes main's handoff recordings in the merge and regenerates every
scenario with export-demo-recordings (through run-heavy.py) on the merged
tree. Only the two handoff ledgers change; the scenario tree, the UI replay
goldens (vitest -u: 462 passed) and the other generated files are in sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

demo-verdict-change Deliberate demo verdict change: admits a demo-verdict base-vs-head difference size:XL 2501+ diff lines — CI-fix rate doubles here; split it or justify why not

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Case Owner offers ownership with its own Offer of the case, and the CASE_MANAGER makes the transferee's Offer from it

2 participants