Skip to content

feat(delivery): propose pure recorded observation prefix contract - #1397

Closed
EffortlessSteven wants to merge 26 commits into
shadow/1335-recorded-file-clifrom
shadow/959-recorded-observations
Closed

EffortlessSteven wants to merge 26 commits into
shadow/1335-recorded-file-clifrom
shadow/959-recorded-observations

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

A lost publication response currently leaves no pure ordered history separating local failure, later inline confirmation, and historical source status. This proposes a versioned recorded observation contract for #959 → #1335, stacked on #1395 at 4279e19.

The module is explicitly test-compiled only: no default binary behavior, CLI admission, persistence, transport, posting, credentials, finalizer replacement, lint exceptions, policy edit or gate changes. Four files: child-module declaration, isolated implementation/tests, and docs/RECORDED_DELIVERY_OBSERVATIONS.md. Existing #1317/#1370/#1392/#1394 heads remain frozen. Ownership/file audit and reservation are recorded on #959/#1335.

It reuses canonical PlannedDelivery/ObservedDelivery/DeliveryReceipt/reconciliation plus #1393's source exporter. Strict source/payload/receipt relationships and an independently pinned named ordered-prefix watermark produce a separate observation view while preserving original judgment/plan/CI bytes. Distinct retry attempts preserve ambiguous local outcomes; confirmation does not erase local failure and becomes historical after recorded head advance. Inline payload binding is checked; summary-to-payload correspondence stays unverified, whole-review delivery stays not_qualified. No storage durability or remote authenticity claim.

Validation at exact head 723819b (tree 10a1b7fe4058c8547506530d0244ad63c12d664c):

  • 8 focused tests pass: lifecycle/prefix invariance, distinct retries/later historical confirmation, unchanged source/CI, deletion/reordering/conflicts, wrong subject/payload, stale/forged watermark, nested unknown fields, receipt bindings.
  • Compiled mutation bypassing previous-link validation is killed by a freshly repinned adversarial chain fixture; original source restored and all 8 pass.
  • Canonical physical-ID alias regression is RED before the correction and GREEN after it; signed/leading-zero aliases are rejected.
  • All seven baseline checks PASS on this final head: fmt, workspace/all-targets locked check, Clippy -D warnings, workspace/all-targets tests (1287 passed, 1 ignored; nested test process not double-counted), docs, xtask policy-check, Bun artifact verifier self-test.
  • Hosted gate and independent review remain pending; no readiness claim.

The documentation specifies the exact #1335 handoff: independently pinned bounded files and retained watermark expectations, promote the pure module under owner admission, keep source export unchanged, and validate actual nonpublishing CLI controls. Ancestor gate failures are not waived. Draft only; no readiness transition.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 4f81367a-adf5-49f3-b4ed-a8a396ba58b5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Copy link
Copy Markdown
Member Author

Substantive bounded correction in progress before freeze: decimal GitHub ID aliases (e.g. 00123 / +123) could bypass physical-comment identity conflict detection because the map keys exact strings. New repinned relationship fixture is RED at e9da9b7 (0987/123 accepted). Requiring canonical positive decimal IDs closes the ambiguity; receipt relationship/provenance scope and all runtime boundaries stay unchanged. All seven baseline checks passed at e9da9b7; exact corrected head and fresh checks will follow. Parent review should retain the unchanged source/watermark findings but re-pin its final receipt to the corrected head.

Copy link
Copy Markdown
Member Author

Final coherent review head frozen at 723819b / tree 10a1b7fe4058c8547506530d0244ad63c12d664c. Only correction from e9da9b7: canonical positive decimal physical IDs plus repinned signed/leading-zero alias controls and documentation. Alias regression RED before fix / focused 8 GREEN after fix. Final-source previous-link bypass compiled mutant still killed, source restored before commit. All seven baseline checks passed on e9da9b7 and are rerunning against 723819b. No further edits planned; independent review should pin this head.

Copy link
Copy Markdown
Member Author

Exact final-head evidence: 723819b / tree 10a1b7fe4058c8547506530d0244ad63c12d664c / base #1395 4279e19. Clean worktree. Seven baseline checks all PASS: fmt; locked workspace/all-target check; Clippy -D warnings; workspace/all-target tests 1287 passed +1 ignored (nested process not double-counted); no-deps docs; xtask policy-check; Bun artifact verifier self-test. Eight focused contracts pass. Final-source compiled chain-validation bypass mutant killed (exit101); source restored and full suite GREEN. Physical ID alias control RED before fix / GREEN after. Retained evidence receipt SHA256 4e278b5b0468bd99335b5ff220f82dc6cc714da625c8b604d0c8db6f4a036fdf. Consumer handoff is docs/RECORDED_DELIVERY_OBSERVATIONS.md: independently pinned bounded payload/stream/named-watermark intake, later normal pure-module admission, unchanged canonical source/CI object plus separate observations, actual export/replay CLI controls. Runtime activation, authenticated append-only producer, summary attribution and publication authority remain with owners. Hosted gate/independent review and ancestor serial gates are separate; draft stays frozen.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Independent source review clears the pure, test-compiled observation contract at 723819b over frozen base 4279e19. The numeric-ID alias defect is repaired locally: restoring old admission guards makes the regression fail on review ID "0987". Three independent reviewer groups pass; conflicting "123", "0123" and "+123" reject, while legitimate identical-receipt reuse survives. Eight exact-head observation tests, full workspace/all-target suite (1,287 passed, zero failures, one intentional ignore), formatting and diff checks passed. Complete proposal and repair delta reviewed; prior executions retain their original head identities. Receipt authentication, independent pin authority and authenticated append-only storage remain caller obligations. Whole-review delivery remains unqualified; production intake, live writers and finalizer authority are outside this change. Hosted qualification, held ancestor gates and existing transition denials are separate from this source clearance.

@EffortlessSteven
EffortlessSteven force-pushed the shadow/1335-recorded-file-cli branch from 4279e19 to 601505a Compare October 31, 2026 17:22
Steven Zimmerman and others added 3 commits October 31, 2026 23:26

EffortlessSteven commented Oct 31, 2026 •

Copy link
Copy Markdown
Member Author

Adopted the independently reviewed sibling integration by non-forcing fast-forward to d245d26b83d9e8e086feebe9007e754c83b56b5a, tree f13e5d94a40d3dc4b93690c8a54937427a64d4ad; parents are former #1397 723819be0961fb9991e5de8059ec869bff4c748c and adopted #1395 cdc8265a31d632446ebce014c26f896b96a3a24f. The verified sibling bundle and receipt retain independent review and focused checks: eight observation and five diff-custody tests passed. Observation implementation/test blobs remain unchanged; this is still a test-compiled pure contract and grants no live writer or remote authenticity.

GitHub's observed merge bda3f97f7807ababd890776eef802e0cde3fcb09 has tree f13e5d94a40d3dc4b93690c8a54937427a64d4ad and parents cdc8265a31d632446ebce014c26f896b96a3a24f / d245d26b83d9e8e086feebe9007e754c83b56b5a. No current-head PR-triggered run was visible at initial readback; that is not complete check coverage or hosted clearance. #1396 remains a separate sibling and its head is not contained here. The later #1398 composition still embeds the old owner commits and is not automatically upgraded by this branch update. Historical broader mutation and review receipts remain tied to their prior subjects. Draft only; no Ready, merge or activation.

Update: reviewed test-control wave adopted. Nonforcing fast-forward to abebdd96f6cd38c0fe7c4dbd6a6b88d6a9ea5748, tree 0402018ec477353ae2a7b748f05df267bf0e7ac0; GitHub advertised merge dad20beb088c704014ebcfccbb5ec7d36a814126 has the same tree and expected current base/head parents. Immutable bundle and bounded receipt. Independent review verified the final trees, parent chains and sibling separation. The final-tree observation boundary and duplicate-key selectors passed; independent review passed the new observation controls. Historical broader mutation evidence remains tied to its original subjects. The former gate failed RIPR 79/max 0 after Cargo passed. This update does not clear that failure or establish hosted qualification; earlier native admissions were dirty and native executable identity was absent. No policy, thresholds or production behavior changed. #1396 and #1397 remain separate siblings; later #1398 composition is not automatically upgraded.

Update: reviewed shared fixture composition adopted. Nonforcing head 5054ac28dacca46394603f40158d8e47d2d48fb8, tree 36b7751b43f9f03a663a023ca746502db99405b7; advertised merge 1f05646335cf8e1853dce5affc05245e28ebcc7c has the same tree and expected base/head parents. Verified immutable composition and receipt. Independent review verified all three exact candidate trees, parents, attribution and shared CLI blob. Integrated local body/comment, valid-stream boundary, and duplicate-key CLI selectors: one passed each. The fixture change retains #1620's exact blob and source attribution; #1620 must land before any eventual #1395 merge, and remains a separate open PR. Both sibling heads stay separate. Previous gates failed; the earlier #1395 OS26 observation does not establish its historical cause or a new hosted pass. Existing RIPR failures and dirty-admission/missing-native-binary provenance limits are not waived. No policy, threshold or production code changed.

@EffortlessSteven
EffortlessSteven force-pushed the shadow/1335-recorded-file-cli branch 3 times, most recently from b0b8386 to a05618b Compare November 1, 2026 07:45
@EffortlessSteven
EffortlessSteven force-pushed the shadow/1335-recorded-file-cli branch 2 times, most recently from 48f46b4 to 1e44503 Compare November 1, 2026 09:27

EffortlessSteven commented Nov 1, 2026 •

Copy link
Copy Markdown
Member Author

Adopted the independently reviewed recorded-file integration by nonforcing fast-forward to 10e3da583c47185a8c9f7940e6470261e764f00c, tree 6028d0eaa9f50d9bd2ba02abb1e6680122b43bef, ordered parents previous #1397 5054ac28dacca46394603f40158d8e47d2d48fb8 and actual base 81fb67259875e91d7ef5c5b3f050a839dfd3fbd0. GitHub's merge 3050bdba2eaefd8abeba825992762287e2466013 has the expected base/head and same tree. Immutable composition receipt: independent review verified both parents, conflict choices, unchanged four observation feature blobs, base-identical policy and ledger, and separation from #1396; it passed ten observation tests, the wait-error control and formatting. Author additionally passed 22 recorded CLI tests. This is local integration evidence, not the base #1623 native-gate qualification; the external ledger's scope and decision history remain unresolved. The observation contract remains test-compiled and grants no live writer or remote authenticity.

Terminal current-head update: head 10e3da583c47185a8c9f7940e6470261e764f00c, actual merge 3050bdba2eaefd8abeba825992762287e2466013 over base 81fb67259875e91d7ef5c5b3f050a839dfd3fbd0, tree 6028d0eaa9f50d9bd2ba02abb1e6680122b43bef: gate 41299235512 failed RIPR 77/max 0; baseline 41299234358 passed with 1,738 passed, zero failed, two ignored. The count matches an older count, but exact row identity has not been rechecked. Conflict resolution and independent composition review passed; neither establishes merge or gate clearance. Base ledger scope and decision history remain unresolved.

Recovery update: #1397 was closed unmerged when its former base branch was deleted after #1623 landed; that closure was not observation-feature delivery. GitHub rejected changing the base of the closed PR with a 422 validation error. The existing source branch was advanced without force to independently reviewed 7664864c0ea4c0274a7ec894d55f288d89cd5091, tree 5a273f4181ff7d085f82f9f3c840308fdb5ada87, and replacement Draft #1624 targets landed main da587360139eb09e7699c9edaf80277328954381. Composition receipt records identical feature blobs, focused checks and exact inherited ledger. The separate 64- and 15-row ledger decision-history holds remain unresolved; no qualification or approval is inferred from the landing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant