Skip to content

feat(status): a participant status carries its set of tracking IDs - #6820

Draft
sei-ahouseholder wants to merge 6 commits into
mainfrom
task/6762-participant-tracking-ids
Draft

sei-ahouseholder wants to merge 6 commits into
mainfrom
task/6762-participant-tracking-ids

Conversation

@sei-ahouseholder

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

Copy link
Copy Markdown
Contributor

Summary

Replaces ParticipantStatus.tracking_id with tracking_ids, a set of ParticipantTrackingId entries keyed on value, and makes every status write keep the participant's previous set unless it supplies a list (CM-35). The CASE_MANAGER records the previous set for a received status whose wire form omits trackingIds.

Held as a draft: the CM-35-004 ledger fill conflicts with CLP-07-011 and SIG-04-001/002 (see "Open question").

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

Open question

CM-35-004 and RSH-09-010 tell the CASE_MANAGER to record the previous set in the ledger for a received status that omits trackingIds. This PR does that by setting the key on the entry's payloadSnapshot object. But CLP-07-011 says a received snapshot is the verbatim body, with nothing patched, and SIG-04-001/002 say the snapshot keeps the sender's proof and that a replica refuses the entry when that proof fails to verify. A patched snapshot no longer matches the sender's proof, so a replica that verifies it would refuse the entry. Vultron's own senders always state trackingIds (an empty list is serialized), so the fill runs only for a sender that leaves the key out, and no demo scenario reaches it. The orchestrator is asked to choose the fix before this PR leaves draft.

Changes

  • vultron/core/models/participant_status.py: adds ParticipantTrackingId (value, optional tracker, extra="forbid"), the TrackingIdSet type (refuses a repeated value, CM-35-003), tracking_ids on ParticipantStatus (default []; tracking_id removed with no compatibility), and carried_tracking_ids, the one keep-or-replace rule (CM-35-004/005).
  • vultron/primitives.py: UniqueBy, a list validator the ledger-type exporter can read, so the UI refuses what the model refuses.
  • vultron/core/behaviors/case/nodes/participant/{status,common}.py: CreateParticipantStatusNode takes optional tracking_ids and otherwise keeps the set of the status it follows (the latest, or the last follows step). The on-behalf write uses this node, so it keeps the target's set.
  • vultron/core/behaviors/case/nodes/invite_inert_participant.py: the inert invitee's birth status goes through the same rule.
  • vultron/core/use_cases/triggers/**, routers/demo_triggers/actions.py: ParticipantStatusBody adds optional tracking_ids to the three notify-* bodies; AddParticipantStatusTriggerRequest derives from it and the trigger tree passes it to the write node.
  • vultron/core/behaviors/status/nodes/tracking_ids.py (new), add_participant_status_tree.py: at the CASE_MANAGER, ResolveOmittedTrackingIdsNode (precondition stage, read-only) decides the fill when the received body has no trackingIds key; RecordFilledTrackingIdsNode (manager effect) stores the filled status.
  • vultron/core/behaviors/case/nodes/{ledger_payload,lifecycle}.py, bridge/bt_bridge.py: LedgerObjectFill sets only the keys the received object lacks, for its own activity only; CommitCaseLedgerEntryNode applies it; the bridge restores the new ledger_object_fill key.
  • vultron/wire/as2/extractor/_builders/statuses.py: the rebuild path carries tracking_ids.
  • vultron/metadata/demo_scenarios/export_ledger_types.py, ui/src/data/ledgerTypes.ts, ui/src/utils/ledgerShape.ts: exports ParticipantTrackingId and the uniqueBy constraint; the UI validator enforces it.
  • vultron/demo/recordings/traces.py: VERDICT_FIELDS names trackingIds, value and tracker. Every scenario is re-recorded in one pass, and the Log Replay goldens are refreshed.
  • docs/ns/, docs/reference/examples/, docs/reference/vultron-spec/_known-gaps.md: regenerated. docs/reference/case_model_fields.md: describes tracking_ids and its update rule. notes/case-ledger-authority.md: names the one snapshot fill.
  • test/architecture/_per_act_parameter_sites.py: records tracking_ids on CreateParticipantStatusNode (The remaining case nodes read every per-act value from vocabulary keys #6577) and the trigger factory (Every case trigger-tree factory declares its tree's inputs and takes no per-act value #6587). A seeded act key cannot hold None ("no change") yet, so the value stays a parameter until those Tasks move the node.
  • Tests: the strict xfail marks on the CM-35 tests are removed; new tests cover the sent list recorded as sent ([] included), the replica filling nothing, the fill's limits, the trigger request sequence [ID1], [ID1, ID2, ID3, ID4], [ID1, ID3], [], the follows step, the on-behalf write, the HTTP body, the retired key, the exporter shape and the UI validator.

AC-8 names test/mydb.json; no such file exists in the repository, so there was nothing to change.

Specs

Spec manifest
Loaded (floor): CM-35-001 CM-35-002 CM-35-003 CM-35-004 CM-35-005 CM-35-006 CM-35-007 CM-05-008 CM-34-011 CS-08-001 CS-08-002 RSH-09-010
Loaded (cross-cutting): ARCH CS
Loaded (selected): CM-35 — the requirement group this PR builds; BTND-10 — the status write node the carry-forward goes through; CLP-15 — governing-specs floor, no time is read or filled; RSH-09 — the recorded-as-sent rule the tracking-ID fill is the one exception to; CS-08 — value and tracker are NonEmptyString; CLP-07 — CLP-07-011 says a received snapshot is verbatim, which the CM-35-004 fill contradicts (raised as a question); SIG-04 — the sender's proof covers the snapshot the fill changes (raised as a question); BT-17 — the new blackboard key is restored by BTBridge; BT-25 — the fill node reads the event and the store, no nested tree; BTND-01 — the fill nodes take no per-act constructor value; tracking_ids params recorded in the ratchet under #6577 and #6587; SL-03 — the fill nodes fail as faults at WARNING; DEMOCI-11 — VERDICT_FIELDS names trackingIds, value and tracker; SDO-03 — the retired tracking_id key is refused by extra="forbid", no per-class guard; AKM-02 — a received status keeps its tracking IDs through extraction; CM-23 — a replica copies the recorded set and fills nothing; RSH-08 — the fill runs only at the CASE_MANAGER; CLP-10 — the fill decision is a read-only precondition stage node, the store write a manager effect after the commit; HP-08 — the target door runs before the fill reads the participant; PRM-06 — the on-behalf write keeps the target's set; CM-11 — the inert invitee's birth status starts with no tracking IDs; VM-08 — the received evidence is read, not changed; MV-11 — an inbound trackingId key is set aside, not refused, at the parse edge; VM-10 — JSON-LD terms for trackingIds, value and tracker
Considered, skipped: AKM-01 — no actor knowledge change; ARCH-15 ARCH-18 ARCH-20 ARCH-25 — touched only by importing tests; the render port is used as ARCH-20 requires; BT-03 BT-10 BT-11 BT-13 BT-15 — BTBridge hub-symbol matches, no bridge behavior change beyond one restored key; BTND-03 BTND-05 — port setup and participant creation unchanged; CLP-02 — no ledgering ground changed; CM-02 CM-05 CM-14 CM-18 CM-20 CM-21 CM-24 CM-31 CM-33 — matched by importers of changed symbols, no behavior change in them; CS-13 — no clock read; CS-23 — no broad except added; CSB-12 CSB-13 CSB-15 CSB-16 CSB-17 CSB-18 — CS rules unchanged, the status write still runs the shared evaluator; DEMOMA-07 DEMOMA-26 — status trigger pattern unchanged, the notify bodies only gain an optional field; EDF-03 — no cascade emit; EMB-13 EMB-19 EP-08 — embargo paths untouched; EH-07 — the set refusal names every repeated value; HP-01 — handler verdicts unchanged; ID-04 — a re-run recomputes the same fill; IE-06 — inbox replay unchanged; LST-03 — no status subtype added; MSM-03 MSM-08 — message mapping unchanged; OID-01 — no actor id handling changed; PCR-03 PCR-08 — routing unchanged; PD-09 — no commit-path Epic closing sub-issue needed here; RMB-15 — RM validation unchanged; RSH-01 RSH-03 RSH-04 RSH-06 RSH-07 — adoption and teardown unchanged; SBT-01 SBT-04 SBT-05 — commit path unchanged; SE-02 — semantics assignment unchanged; SIG-03 — ingress verification unchanged; SM-05 SM-10 — status history and scoping unchanged; SYNC-09 SYNC-18 SYNC-20 SYNC-21 — sync rules unchanged; TRIG-01 TRIG-02 TRIG-07 TRIG-08 TRIG-11 TRIG-12 TRIG-13 — trigger registry and endpoints unchanged; UCORG-05 — result types unchanged; VAM-01 VAM-08 — the Add(ParticipantStatus) shape is unchanged, the status gains one key

Docs

Docs: updated docs/reference/case_model_fields.md (tracking_ids and its update rule); docs/ns/, docs/reference/examples/ and the known-gaps fragment regenerated

Verification

  • Targeted gate: run twice (the second run, allowed once, after the wire-render golden was regenerated). Run 1: 3 failed, 21898 passed: two wire-render golden mismatches (fixed by regenerating test/adapters/driven/golden/wire_render_core_vocab.json) and one xdist worker crash in test_rv_demo.py. Run 2: 7 failed, 21801 passed, all in test/demo/test_rv_demo.py and test/demo/test_rvcv_extension_demo.py, as 120 s timeouts and a worker crash on a contended host. Both files pass alone at -n 0 -m '' (rv 83 passed, rvcv 57 passed). This matches open issue An in-process rv demo test still crashes its xdist worker in a large loaded run, with #6190's fix in place #6727, so CI decides.
  • Demo recordings: every scenario re-recorded in one pass (export-demo-recordings --report-changes, no --scenario, under the test lock, on current origin/main); the only change is "trackingIds": [] on each status. export-demo-tree and npm test -- -u left the tree index and the Log Replay goldens unchanged. The demo-verdict-change label is applied because VERDICT_FIELDS now names trackingIds, value and tracker.
  • ruff and mypy clean (the type-check second pass is CI's, PAD-18-027); tsc -b and the ledgerShape vitest suite pass in ui/
  • Self-check:
    • Affected text: searched tracking_id, trackingId, RSH-09-010, "verbatim", "never rewritten" across docs/, notes/, specs/, AGENTS.md files, docstrings and comments; updated case_model_fields.md, notes/case-ledger-authority.md, ledger_payload.py, append/actions.py, participant_status_acceptance.py, statuses.py. Generated docs/ns/, examples, ledger types and known gaps regenerated. No pre-commit or workflow trigger list changes.
    • Failure paths: the fill decision writes nothing; the commit applies it inside the act's transaction, so a failed act rolls back the entry and RecordFilledTrackingIdsNode's save together (CLP-07-015). On redelivery the seen-before door answers from the record, so neither runs again. A rerun after no verdict recomputes the same fill from the same previous status. Tests: test_an_omitted_tracking_id_list_is_recorded_as_the_previous_set, test_nothing_else_is_filled.
    • Branch coverage: every new branch tested (the three notify-* bodies included), except the fill nodes' fault returns (no Add(ParticipantStatus) event, a status not inline, a missing participant), which the doors before them make unreachable in a composed tree.
    • Reuse: one rule (carried_tracking_ids) for every writer; one set type (TrackingIdSet) for the status, the request and the body; wire_key/input_keys for the AS2 spelling; the render port for the wire value.
  • AC-1: ParticipantTrackingId with JSON-LD terms; docs/ns/ regenerated; no field named id
  • AC-2: test_a_tracking_id_and_a_vulnerability_id_never_parse_as_each_other
  • AC-3: tracking_ids replaces tracking_id; the old key is refused by extra="forbid" (an inbound trackingId is set aside at the parse edge, MV-11-003); a repeated value is refused
  • AC-4: one helper for the status node, the on-behalf write and the inert-invite status
  • AC-5: request and body take optional tracking_ids; the four-step sequence test
  • AC-6: built as specified; held for the open question above. TestAcceptedStatusIsRecordedAsSent passes, and the as-sent comparison stays strict because Vultron senders always state the key
  • AC-7: the replica test passes; xfail marks removed; known gaps regenerated
  • AC-8: docs, ledgerTypes.ts and VERDICT_FIELDS use trackingIds; test/mydb.json does not exist

🤖 Generated with Claude Code

ahouseholder and others added 4 commits November 30, 2026 16:20
…6762)

Replace ParticipantStatus.tracking_id with tracking_ids, a set of
ParticipantTrackingId entries keyed on value (CM-35-001..003). Every
status write keeps the previous set unless a list is supplied, through
carried_tracking_ids (CM-35-004/005). The CASE_MANAGER records the
previous set for a received status whose wire form omits trackingIds,
the one fill RSH-09-010 allows; replicas copy the recorded set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every ParticipantStatus now serializes its trackingIds set, so every
scenario is re-recorded in one pass. The tree index and the Log Replay
goldens are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test the tracking IDs on notify-fix-deployed and notify-published,
fix a dangling symbol in the ledger note and a misplaced TS doc
comment, point the new ratchet entries at their owning Tasks, and
state which writers apply carried_tracking_ids.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sei-ahouseholder sei-ahouseholder added the demo-verdict-change Deliberate demo verdict change: admits a demo-verdict base-vs-head difference label Nov 30, 2026
@sei-ahouseholder

Copy link
Copy Markdown
Contributor Author

demo-verdict-change: VERDICT_FIELDS in vultron/demo/recordings/traces.py renames trackingId to trackingIds and adds value and tracker, the keys of each tracking-ID entry (CM-35-001). Every ParticipantStatus in a ledger now carries "trackingIds": [], so every scenario's verdict changes in that one way. All scenarios were re-recorded in one pass.

@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 30, 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)

6 findings: 1 NEW-ISSUE (inversion-halt), 1 FAIL, 4 IMPROVE.

Finding Outcome Resolution
The tracking-ID fill patches the received payloadSnapshot, against ADR-0107, CLP-07-011 and SIG-04-001/002. inbox_verification.py already enforces SIG-04-002, so a replica that checks the sender's proof would refuse a filled entry. inversion-halt Held. The PR stays a draft, and the choice of fix is put to the orchestrator (see "Open question" in the body).
The notify-fix-deployed and notify-published bodies pass tracking_ids with no test. FAIL, fix-now Fixed: TestDemoNotifyBodiesCarryTrackingIds covers both routes.
notes/case-ledger-authority.md named a function that does not exist. IMPROVE, fix-now Fixed: the note now names LedgerObjectFill.filled.
ledgerShape.ts: the describe() doc comment sat above the new helper. IMPROVE, fix-now Fixed.
The new ratchet entries cited #6762 for a gap that no open issue tracks. IMPROVE, fix-now Fixed: the comments point to #6577 and #6587, and each Task now has a comment saying an act key must be able to hold None.
The carried_tracking_ids docstring said every writer applies it. IMPROVE, fix-now Fixed: the docstring now names the writers that apply it.

…nded (#6762)

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

This branch has not been deployed

No deployments
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.

A participant's status carries its current set of tracking IDs, and every status keeps it unless the participant changes it

2 participants