Skip to content

Delete the dead ParticipantStatus.case_engagement field - #6800

Merged
sei-ahouseholder merged 5 commits into
mainfrom
task/6766-delete-case-engagement
Nov 30, 2026
Merged

sei-ahouseholder merged 5 commits into
mainfrom
task/6766-delete-case-engagement

Conversation

@sei-ahouseholder

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

Copy link
Copy Markdown
Contributor

Summary

Deletes ParticipantStatus.case_engagement (wire caseEngagement). Nothing set it, CreateParticipantStatusNode did not carry it to the next status, and every replica already derives who is sent case content from the participant record and the case (CM-10-004, CM-31-018).

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

Changes

  • vultron/core/models/participant_status.py: removes case_engagement. extra="forbid" now refuses a stored or in-process status that carries the key (ARCH-12-003, SDO-03-008). An inbound status that carries it is set aside at the parse edge like any other unrecognised key (MV-11-003). No list of retired names is added.

  • vultron/wire/as2/extractor/_builders/statuses.py: the comment no longer names the field.

  • vultron/demo/recordings/traces.py: drops caseEngagement from VERDICT_FIELDS (label demo-verdict-change).

  • test/wire/as2/test_received_object_extraction.py: test_a_received_participant_status_keeps_its_engagement becomes test_a_received_participant_status_keeps_its_tracking_id; it keeps the tracking-ID check (A participant's status carries its current set of tracking IDs, and every status keeps it unless the participant changes it #6762 changes that field next). The whole-participant test drops the key and gives its nested status tracking_id="VND-7", so the test still catches a nested status rebuilt with defaults (Partial inline objects are accepted at the parse edge, and a {id, type: CaseParticipant} gets an invented START status and joined=True #5265).

  • test/wire/as2/test_unknown_key_disposition.py: adds caseEngagement and case_engagement to FORMER_NAME_POSITIONS, so a test asserts an inbound status carrying the key is set aside and reported, not refused (MV-11-003). The list is test data; no production code names the key (ADR-0175).

  • test/test_semantic_registry_occasions.py: the two cases that used case_engagement as a field that embeds no model and is not typed by an enum now use published.

  • test/adapters/driven/test_sqlite_crud.py, test/core/models/test_dimension_bare_serialization.py: drop the key.

  • ui/src/utils/ledgerShape.test.ts: the wrong-boolean case moves to CaseParticipant.joined, the only boolean left in the ledger shapes; the "requires only what the model cannot go without" case deletes cvdRole instead.

  • Generated files, each by its own generator: docs/ns/context.jsonld and docs/ns/index.md (wire-context --write), docs/reference/examples/*.json (vocab_examples.py; signed proofs change with the content), test/adapters/driven/golden/wire_render_core_vocab.json (its regenerate script) and ui/src/data/ledgerTypes.ts (export-demo-ledger-types).

  • Docs: docs/reference/case_model_fields.md lists no case_engagement; the ParticipantStatus example in docs/reference/vultron-spec/_encoding-transport.md drops the key; the "Embargo Engagement and Adherence" tip in docs/topics/process_models/em/principles.md now says who is sent case content and names the three narrower audiences (consent Invites, a participant's own closure entries, the embargo-ending notice to a bound signatory that has left or was removed).

  • ui/src/recordings/**: all 12 scenarios re-recorded in one pass with export-demo-recordings (no --scenario, the daily job's form), so no recording holds caseEngagement and every shared-prefix pair is recorded from the same code (An Offer and an Invite name the roles they propose with one wire field, roles #6749 broke CI by re-recording only some). The pass also picks up drift from main since the last daily run: the ledger entry hashes and signed proofs change with the content. export-demo-tree and the Log Replay goldens (npm test -- -u) produced no change.

Specs

Spec manifest
Loaded (floor): CM-10-004 CM-23-004 ARCH-12-003 SDO-03-008 MV-11-003
Loaded (cross-cutting): none — field deletion; no new behavior
Loaded (selected): CM-31 — CM-31-018 (no stored "active" answer) is the rule the deletion follows, CM-31-009 is the embargo-ending notice the AC-4 tip names; AKM-02 — AKM-02-006, the extraction test kept for tracking_id; MSM-08 — MSM-08-002, the occasion test whose sample field moves; DEMOCI-11 — VERDICT_FIELDS loses one key; recordings re-recorded in full, one pass
Considered, skipped: BT-15 BTND-10 CLP-07 CLP-10 CM-05 CM-18 CM-23 DEMOMA-07 HP-08 LST-03 MSM-03 RMB-15 RSH-01 RSH-04 RSH-06 RSH-08 RSH-09 SDO-03 SM-05 SM-10 VAM-01 VAM-08 — they name ParticipantStatus (a hub symbol) but no rule names case_engagement, so the deletion changes none of them; VM-10 — wire-context regeneration is mechanical, checked by its sync hook

Docs

Docs: updated docs/topics/process_models/em/principles.md, docs/reference/case_model_fields.md, docs/reference/vultron-spec/_encoding-transport.md

Verification

  • Recording readers after the re-record: test/demo_unit/test_recording_traces.py, test_recordings.py, test_report_target_labels.py, test/measure/, test/shadow/, test_export_tree.py pass; UI vitest run passes (11 files, 462 tests, replay and ledger included)
  • Targeted gate after merging main and re-recording: 15736 passed, 6 skipped, 85 xfailed, exit: 0
  • Earlier targeted gate: 15714 passed, 6 skipped, 85 xfailed (test/architecture/, test/metadata/ plus the diff's mapped files), exit: 0
  • ruff and mypy clean (the type-check second pass is CI's, PAD-18-027)
  • wire-context --check, export-demo-ledger-types --check, msm-occasions --check pass; vitest run src/utils/ledgerShape.test.ts passes (44 tests)
  • Self-check:
    • Affected text: searched case_engagement, caseEngagement, engaged and engagement over vultron/, test/, docs/, notes/, specs/, ui/src/, AGENTS.md files. Updated every hit above. Left log_case_engagement (the engage-case narrative log, unrelated) and plan/history/ (a record). grep -r caseEngagement ui/src/recordings returns nothing. No spec names the field.
    • Failure paths: no writes changed.
    • Branch coverage: no new branch. The inbound set-aside is pinned by the new FORMER_NAME_POSITIONS rows; the stored-data refusal is the existing extra="forbid" path, checked by hand.
    • Reuse: no duplication found; each generated file is written by its own generator.
  • AC-1: field gone, term gone from docs/ns/context.jsonld, docs/ns/index.md regenerated
  • AC-2: extractor comment, extraction test, occasion test, SQLite and serialization tests updated
  • AC-3: examples, encoding example, golden, ledgerTypes.ts, ledgerShape.test.ts, VERDICT_FIELDS updated, and every ui/src/recordings/** scenario re-recorded; no generated artifact holds caseEngagement
  • AC-4: the tip says who is sent case content and names the narrower audiences
  • AC-5: docs/reference/case_model_fields.md lists no case_engagement

🤖 Generated with Claude Code

ahouseholder and others added 2 commits November 20, 2026 20:53
…6766)

Nothing set case_engagement and CreateParticipantStatusNode did not
carry it to the next status; every replica derives who is sent case
content from the participant record and the case (CM-10-004,
CM-31-018). Removes the field, its caseEngagement JSON-LD term and its
VERDICT_FIELDS entry, regenerates the generated artifacts, and updates
docs and tests.

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

Pre-push review fixes: FORMER_NAME_POSITIONS gains caseEngagement and
case_engagement, and the whole-participant extraction test gives its
nested status a non-default tracking_id.

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 20, 2026
@sei-ahouseholder

Copy link
Copy Markdown
Contributor Author

Label demo-verdict-change: VERDICT_FIELDS in vultron/demo/recordings/traces.py loses caseEngagement, because the field is deleted from ParticipantStatus. The committed recordings still carry the key until the daily Demo Recordings job re-records them (#3901).

@github-actions github-actions Bot added the size:S ≤200 diff lines or ≤1 ACs label Nov 20, 2026
@sei-ahouseholder

Copy link
Copy Markdown
Contributor Author

Pre-push review (fresh agent, pr-triage --pre-push)

3 findings, all IMPROVE, all resolved before the first push.

  1. AC-3: recordings not regenerated (ui/src/recordings/**). Not re-recorded: the epic run's orchestrator directed that PRs leave the recordings to the daily Demo Recordings job (Replace the Log Replay samples with deterministic scenario recordings #3901). The PR body no longer claims a PR cannot re-record them, and AC-3 is marked partial with the reason.
  2. No test for the inbound set-aside of caseEngagement (MV-11-003). Fixed: caseEngagement and case_engagement are added to FORMER_NAME_POSITIONS in test/wire/as2/test_unknown_key_disposition.py.
  3. Nested status lost its only non-default unnamed field in test_a_whole_participant_reaches_core_with_the_statuses_it_carries. Fixed: the nested status carries tracking_id="VND-7", so the test still catches a status rebuilt with defaults (Partial inline objects are accepted at the parse edge, and a {id, type: CaseParticipant} gets an invented START status and joined=True #5265).

Expands RM at its first use on the EM principles page (SG-07).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ahouseholder and others added 2 commits November 30, 2026 15:03
…-engagement

# Conflicts:
#	docs/ns/context.jsonld
#	docs/ns/index.md
)

Re-records all 12 scenarios in one pass with export-demo-recordings, so
no committed recording holds the deleted caseEngagement key (AC-3) and
the shared-prefix pairs stay consistent. The pass also picks up drift
from main since the last daily run (ledger hashes and proofs). The
scenario tree and the Log Replay goldens did not change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added size:L 1001-2500 diff lines or 4-8 ACs and removed size:S ≤200 diff lines or ≤1 ACs labels Nov 30, 2026

@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 — #6800 (full mode)

Mode: full (prepush-delta.sh: the delta of 1195 lines, mostly the 12 re-recorded scenarios, exceeds half of the 108 reviewed lines). Build context: reused.

Findings: 0 FAIL, 1 IMPROVE

ID Severity Outcome Finding
phase12-blocked-ci-gate-pending-0 IMPROVE fix-now Merge state is BLOCKED because the required CI gate on the head is still PENDING. Re-check after CI finishes, then mark the draft ready (PAD-18-029).

Checked, no finding

  • Issue linkage: Closes #6766; AC-1 to AC-5 are all met on the head. AC-3 now includes ui/src/recordings/**: all 12 scenarios re-recorded in one pass, and grep -r caseEngagement ui/src/recordings returns nothing.
  • PR body: pr-body-lint reports 0 findings; no spec statement or priority changed.
  • Sync hooks: export-demo-recordings --check, export-demo-tree --check, export-demo-ledger-types --check, wire-context --check and msm-occasions --check pass.
  • Code review sub-agent: no findings. The #5265 nested-status check and the ledgerShape.test.ts wrong-boolean case keep their strength; no reader or writer of the field remains.
  • Docs: the Docs: line matches the affected pages.
  • Tests: recording readers (demo_unit, measure, shadow, export-tree) and UI vitest (462 tests) pass after the re-record; the targeted gate passes (15736 passed, exit: 0).

@sei-ahouseholder
sei-ahouseholder marked this pull request as ready for review November 30, 2026 15:32

@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: #6800 — Delete the dead ParticipantStatus.case_engagement field

Fixes applied: 0 commits
Excursions filed and fixed: 0 (PR closes them)
Deferred (you approved): 0
Halted (inversion, awaiting you): 0
Tests run: targeted set (gate on the merged and re-recorded head: 15736 passed, exit: 0)
CI status: ✅ passing
Base sync: ✅ not needed — no conflict, GitHub does not report BEHIND (being behind main is fine)
Docs line: Docs: updated docs/topics/process_models/em/principles.md, docs/reference/case_model_fields.md, docs/reference/vultron-spec/_encoding-transport.md — 0 pages updated by execute

Suite runs: 0 full, 2 targeted


Fixed

Finding Commit Closes
phase12-blocked-ci-gate-pending-0: merge state BLOCKED on a pending CI gate — (CI finished green on db48831e5; PR marked ready) —

@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: #6800 — Delete the dead ParticipantStatus.case_engagement field

Overall verdict: READY-TO-MERGE
Merge state: MERGEABLE (CLEAN), not a draft — base main; CI gate SUCCESS on head db48831e5
CI: all checks green, the demo integration checks included
Docs line: current; it names the three pages the diff changes (no fix commits after triage)
Spec amended: not needed (no requirement statement or priority changed)

Finding Severity Outcome Verdict
phase12-blocked-ci-gate-pending-0 IMPROVE fixed (CI finished green; PR marked ready) CONFIRMED

@sei-ahouseholder
sei-ahouseholder merged commit 381277e into main Nov 30, 2026
47 of 49 checks passed
@sei-ahouseholder
sei-ahouseholder deleted the task/6766-delete-case-engagement branch November 30, 2026 15:36
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:L 1001-2500 diff lines or 4-8 ACs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete the dead ParticipantStatus.case_engagement field and its caseEngagement term

2 participants