Skip to content

feat(review): compose a recorded agent result at a pinned prefix - #1398

Closed
EffortlessSteven wants to merge 177 commits into
shadow/1335-recorded-agent-result-dependenciesfrom
shadow/1335-recorded-agent-result
Closed

EffortlessSteven wants to merge 177 commits into
shadow/1335-recorded-agent-result-dependenciesfrom
shadow/1335-recorded-agent-result

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

The recorded source CLI lacks an identity-bound payload/observation join. This bounded #1335 candidate adds nonpublishing recorded-review agent-export / agent-replay with independently pinned payload, stream and named watermark files. It composes existing canonical validators; no second verdict, rendering engine, transport, live writer, model/provider call, posting, dispatch or production activation.

The versioned AgentReviewResult retains exact source/observation component JSON as byte arrays, separate prepared-payload binding and explicit pending qualification. Sources preserve judgment/plan wire bytes and imported CI identity; CI bytes remain in their pinned file. Each local failure survives later inline confirmation and recorded head advance. Remote authenticity is unverified, accepted intent is not admitted, whole-review delivery is not qualified. An exact summary payload slot does not establish a physical summary receipt. Multiple summary fragments, quiet prepared payloads, topic graphs, suggestions and replies remain outside the subset.

Pure module admission is explicitly assigned to #1335 by #1397's handoff and the parent instruction. Its unused-code receipt is removed because the pure consumer now uses the validator. Normal binary publication/compiler/transport authority is unchanged; the new commands only read bounded regular files and write stdout. The UNADOPTED decision packet remains unadopted.

Dependency-only base 8c23c004a961bd34ea6191da056fd40721cddba7 retains exact owner heads as ancestors:

Candidate head b377fcc866ecab826cb3ff650b990ac0b5ba631b
Candidate tree 56f7dac392f23160d02348feef39348bc13ddde2
Ten-file integration diff: source admission + projection, isolated real CLI tests, documentation and removal of now-unneeded unused-code receipt.

Fresh integrated real CLI suite: 10 passed, zero failed. It replays every lifecycle prefix; rejects changed/deleted/reordered event bytes, wrong subject/pass/head, invalid pins/names/watermarks, canonical-ID aliases, summary loss after consistently repinning payload/metadata/stream and links; rejects repinned whole-delivery/qualification/currentness/source/failure erasure in the exported wrapper. Source judgment/plan/CI bytes remain unchanged. An initial isolated-worktree run reused cached parent binaries and was discarded; package artifacts were invalidated and the integrated run rebuilt successfully.

Strict integrated Clippy passed. A compiled mutant swallowing prepared-payload validator errors was killed by the real CLI negative control with body_loss accepted (exit 101), even after payload metadata/stream links were consistently repinned. Original source restored. The full exact-head baseline passed: fmt; locked workspace/all-targets check, strict Clippy, full tests (1,296 top-level passed, zero failed, one intentional ignore; nested subprocess also passed); doc; policy-check/inventory; artifact-verifier self-test; 23-file TOML sweep; diff check. Exact-tree staged precommit matched 56f7dac392f23160d02348feef39348bc13ddde2, ten changed files, zero blocking findings, fmt/check/Clippy pass. cargo-allow, ripr, unsafe-review and ast-grep were missing; actionlint skipped because no workflow changed. Existing rustdoc ambiguity and overdue receipt warnings remain. These do not clear hosted required gates.

Exact-head SHA256 receipts:

49ccee0ea6ca70498b94783959a3b2f65ad7d3b550f3ed8dc607f2924c92625c focused-cli.log
77b6311fc795aa2c063799c42c0d0d8c33679b7381b6c6a611b9beeeb876796f mutant-payload-admission.log
975ed2bcb97989df699d1034b8a704629a092d3e8e28badeb915c7798fea2ebb check.log
2ab21dccee0dc2ebfe47b6703b09091d22f64f22601bacfcc384160fec9d0721 clippy-final.log
c81667614bccf1d8b7b22dfd14438363245ec930df7f9b6d7cd7e3fa6af85bff test.log
91cfdc75127cfc7cbc0dad9ecde5beec0667590b908682c04ea4b861183ab70c doc.log
1b79c0f523f447a8818a369bc7796ba1ac81d91c64efb111a90952bc069d0636 policy.log
88afc79e319ca0fca8b6818fafc8a459d6bb8e43b175850c4ee00b8619cd5173 inventory.log
ba55630ab4fab6b0d982e246e49a81a3608cc25431cdef4e07bd996ba24d36ba precommit.log
d1eb9ad418fafc433978ed259211962f17d5eb41f9532ab6961fc7ec8c21d534 verifier.log

Complete hash list and copied staged artifacts are in /workspace/scratch/1335-agent/. Working tree is clean, published head/tree unchanged, repaired owners are exact ancestors and remote heads remain unchanged. Candidate is frozen for parent review. Both dependency source reviews are clear at the exact retained heads; parent independent integrated CLI review and hosted gates remain held. Logs: /workspace/scratch/1335-agent/; working tree: /workspace/scratch/1335-agent-work/.

Draft candidate only. Dependent reviews/hosted gates are not cleared by local tests; no completion/Ready/merge claim. Parent owns independent integrated review and #1335 acceptance.

@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: 99137ae2-24f9-49bb-ab4d-7c6d6e835fc6

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

@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.

Two independent reviews clear the bounded nonpublishing recorded CLI composition at b377fcc, tree 56f7dac392f23160d02348feef39348bc13ddde2. Verified dependency base 8c23c00 retains repaired ancestors a93c159 and 723819b. End-to-end admission review executed 58 CLI invocations (nine successes, 49 expected rejections), preserving judgment/plan/opaque CI bytes and excluding private sentinels. Payload/pin/identity/subject, event deletion/order/retry, watermark and wrapper tampering rejected with empty stdout; compiled body-equality removal caused the independent missing-summary oracle to fail. Separate observation review exercised seven retry/history prefixes and rejected a real later confirmation inserted into a prepared-only prefix and a repinned authenticated claim. Local failures survive confirmation, and superseded confirmations remain historical. No publisher or finalizer authority is added. Receipt authentication, compiler origin and physical summary/whole-review delivery remain unqualified. Current-head required gate38177515703/job114582921907 failed RIPR34/max0 after baseline38177515847 passed; artifact11716342166 retained. This is source/runtime consistency clearance, not protected integration, live activation or full #1335 acceptance.

…#1402)

Co-authored-by: Steven Zimmerman <steven@stevenzim.com>
EffortlessSteven and others added 3 commits October 12, 2026 23:09
* fix(proof): classify skipped-unresolved receipts as missing evidence

* test(proof): reject timeout flags on unresolved receipts

* fix(proof): validate successful exits before NDJSON parity

* fix(proof): bind unresolved sides and leases to execution

---------

Co-authored-by: Steven Zimmerman <steven@stevenzim.com>
Co-authored-by: Steven Zimmerman <steven@stevenzim.com>
Co-authored-by: Steven Zimmerman <steven@stevenzim.com>

@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.

Source-only comparison against #1338 at exact head b377fcc (tree 56f7dac392f23160d02348feef39348bc13ddde2): this is the strongest existing recorded-input evaluation seam among #1387–#1398, not an implemented/qualified Tower producer. The command dispatches directly to recorded_export::files::run; the inspected source/export/agent composition consumes recorded inputs and preserves opaque imported CI, shadow qualification, unverified remote authenticity and not_qualified whole-review delivery. I found no demonstrated execution-authority leak in this bounded source inspection. No tests, model calls or candidate execution were run in this evaluation; existing review receipts are historical evidence, not new qualification.

Bounded owner follow-up: (1) extend the real CLI controls to exercise a valid clean source judgment with imported_ci absent, then explicit opaque fail/not_proven CI fixtures, asserting no owned CI/gate/test-execution result across export/replay and supported agent projections; the current absent_ci_stays_absent_without_a_gate_result unit case has an absent lead and checks only ci_result absence (recorded_export tests lines 372–402); (2) add real CLI forged-authority controls for tests_executed/tests_passed/ci_evidence_result/required/dispatch/argv at intake, recorded answer/plan and repinned wrapper boundaries, preserving valid findings/summary controls; existing lower-level unknown-field tests already provide useful coverage; (3) separately qualify zero subprocess/network/source-write effects for all four recorded commands under a bounded observer with valid/malformed/rejected inputs. The existing malformed .ub-review.toml control proves config independence, not that effect boundary. These are missing proof cases, not a request to add execution, a new engine or policy/CI authority. Repair only if those controls demonstrate an actual leak. #1338's producer, programme/budget admission and operational containment remain separate owner obligations; no Ready/merge or CI-sufficiency clearance is implied.

@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.

Follow-up to review 5526776347: independent negative controls are complete against frozen #1398 b377fcc. No production leak was demonstrated; no production repair or new finding issue was justified.

Reusable test-only commit: 6f31190 (tree 1ba36f0818fa63fa594e05dd59ef1a975ed15310; sole parent b377fcc). Three changed paths: new authority controls, module declaration in existing CLI tests, narrow process-spawn policy receipt. src/, Cargo files and workflows are identical to the frozen candidate. Separate branch test/tower-1398-authority-controls was pushed/read back after trigger inspection; no PR, owner-branch mutation or readiness transition.

Observed locally on Linux, Rust/Cargo 1.95, strace 6.13:

  • Existing 10 CLI controls passed before additions. Final CLI suite: 12 passed, 2 explicit ignored observer/driver tests. Clean+absent/fail/not_proven CI and supported findings+summary projections preserve opaque CI bytes and emit no owned CI/test result. All 66 forged execution/CI authority attempts reject through file admission and repinned source/agent replay boundaries.
  • Explicit effect test passed 12 cases: all four commands x valid/malformed/rejected input. 1,061 traced syscalls; only one entry execve per case, no extra process execution, network calls or forbidden file/descriptor effects; fixture bytes/modes unchanged. Env is cleared. Calibration independently catches /bin/true execution, task-local loopback connect and marker creation/write. No candidate payload executes. A separate read-only scan of raw traces agreed.
  • New forged-wrapper test kills a compiled source-replay-equality-removal mutant (exit 101: unexpected successful replay). Restored exact candidate passes in the separate target/lab.
  • Full local baseline passed: fmt, workspace/all-target check/test, strict Clippy, docs, policy and artifact-verifier self-test. Workspace: 1,298 top-level passes; nested driver not double-counted. Exact-tree staged precommit: 3 files, 0 blocking findings; cargo-allow/ripr/unsafe-review/ast-grep missing, actionlint skipped. Existing overdue-policy/rustdoc warnings retained.

Reproduce on the test commit:

cargo test --locked --offline --test recorded_review_cli
cargo test --locked --offline --test recorded_review_cli agent_result::authority::effects::recorded_commands_have_no_execution_network_or_write_effects -- --ignored --exact --nocapture

The effect case requires /usr/bin/strace and fails when unavailable; set UB_REVIEW_AUTHORITY_TRACE_DIR to retain its raw traces. Local raw logs/patch/trace receipt/SHA256SUMS remain in /workspace/scratch/tower-1398-proof (not hosted artifacts). Workspace-test SHA256 378a22fcc9e704d4bb0b5f02cd7a13b6925a9545fed378eae8abd80eb71be418; trace-receipt SHA256 7058502558b9d511710ab992d8171254b1dd10ca611cb207c9b94eda55ca6984.

Owner handoff: review the test delta and cherry-pick that one commit if accepted; rerun the focused/explicit observer cases on the resulting candidate. This is bounded synthetic recorded-CLI evidence, not operated Tower/hostile-source/provider containment, completed #1338 producer qualification, hosted gate sufficiency or merge clearance. All existing held gates remain held.

@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.

Corrected adoption evidence, superseding the object-only authority coverage in review 5526860921. Independent adoption review correctly found that 6f31190's {"forged":true} value missed a typed decoder weakening. Pristine production rejects the new values; no production repair is indicated.

Revised test branch test/tower-1398-authority-controls now reads back at dc77a28, tree a87099286b653f83048fde39a771cc70d37e140d:
dc77a28
Parent 6f31190 is preserved. The follow-up changes only authority.rs (26 additions/7 deletions); production source, workflows and policy are unchanged from that parent. Frozen #1398 head b377fcc and main 3dbcc2b are unchanged; no PR/readiness/merge transition.

The six-field matrix now uses nine value shapes: object, true, false, 0, 1, string, argv array, empty array and null. All 594 forged attempts reject across the existing file and replay boundaries; findings/summary positive controls remain.

Discrimination was reproduced independently in a separate detached checkout/target:

  • Compiled Intake tests_executed: Option mutant survives the predecessor object-only oracle.
  • Revised oracle fails on actual acceptance: tests_executed (true) at intake accepted by export (exit 101). A separately reordered temporary loop also confirms actual acceptance by agent-export.
  • After restoring exact dc77a28, full recorded_review_cli target passes: 12 tests, 2 intentional ignores. Explicit calibrated effect proof passes before and after restoration: all 12 cases, with genuine child/loopback/write calibration. Independent review found no blocking test-revision issue; lab is restored/clean.

Author rerun: focused 12 pass/2 ignores; explicit effect proof 12 cases pass, 1,061 syscalls with no extra execution/network/forbidden write effects and unchanged fixture bytes/modes; fmt and strict focused Clippy pass. Exact-tree staged precommit passes with zero blocking findings; cargo-allow/ripr/unsafe-review/ast-grep remain missing, actionlint skipped. The prior 1,298-test workspace baseline belongs to 6f31190; it was not rerun or relabeled current here.

Reproduce at dc77a28 using the same two focused/explicit effect commands in the prior review. Raw author receipts are local at /workspace/scratch/tower-1398-proof/revision-2; independent commands/mutation patch/restored logs/traces at /workspace/scratch/independent-dc77 (not hosted artifacts). Independent SHA256SUMS digest: 47075478c5f1421d275993ef7e1cfe7189150dea87f7420ca904783c75b31b08; restored-test log: 7e81fca471db89733e5b71651f6f71de8567eb4cf138f4dfd2665ce020be1436; restored-effects log: 8aeea32da9436f32539ca21b2cdb6dece0c7bbb1f88613851cd295d52d0bf468.

Owner handoff: adopt the complete tested branch delta if accepted (6f31190 followed by dc77a28; dc77a28 alone assumes the earlier tests). Rerun controls on the integrated candidate. These are bounded synthetic recorded-CLI results, not deployed Tower containment, producer qualification, CI sufficiency or merge clearance.

@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 review of test commits 6f31190 and dc77a28 against frozen prototype b377fcc. No production execution/CI-authority leak was demonstrated. There is one reproducible test-proof gap and a separate effect-coverage limit.

Finding: agent answer/plan rejection can be masked by stale dependent pins. At dc77a28 authority.rs:267–276, answer/plan bytes are repinned, but prepared-payload metadata, observation subject and stream/watermark still name their old digests. The source-export control genuinely tests decoder rejection; the corresponding agent-export rejection does not independently establish that boundary. The 594 attempted rejections are real, but are not 594 independently isolated authority proofs.

Causal experiment in my isolated lab: remove only ReviewJudgment's deny_unknown_fields, select the answer-location agent-export cases, and retain all nine value shapes. The original controls still pass. Relink every dependent identity without changing that decoder mutant and the control fails on actual acceptance: tests_executed (object) at answer accepted by agent-export (exit 101). This is a test discrimination gap, not evidence that pristine production accepts the claim; the existing source-export case already catches the shared decoder weakening.

A 20-line test-only correction is published at 0c2badf275a8c36a1cc0fef4d7820bf2e38a8562, tree 891cbdb2e9a949b68440c2f23c2e6edfb87e2155, branch review/1398-authority-audit, sole parent dc77a28. It relinks payload metadata, observation subject, event chain and watermark after answer/plan changes. Production source, Cargo files, workflows and policy remain identical to dc77a28. Repair adoption and independent review of this new delta remain with the owner.

Confirmed existing discrimination. A compiled Intake tests_executed: Option<bool> mutant survives 6f31190's object-only oracle. dc77a28 kills it with tests_executed (true) at intake accepted by export (exit 101). Reordering only the temporary operation loop separately confirms acceptance by agent-export and kills the mutant there too. All experimental production edits were restored.

Effect coverage limit / highest-value next cases. The 12-case observer passes with genuine child-exec, loopback-connect and marker-write calibration. My independent raw-trace scan found 1,061 candidate syscall lines, one entry execve per case, no extra process execution/network/forbidden write effects, and unchanged fixture bytes/modes. However, all eight malformed/rejected cases open only intake.json among fixture files: malformed JSON and a wrong intake hash fail before source/payload/observation/replay validation. Valid cases use a prepared-only findings/summary prefix with absent CI. Highest-value additions are correctly pinned late-invalid answer/plan/payload or event/watermark cases, a repinned forged replay view under tracing, and traced failure→confirmation→superseded prefixes plus clean/adverse-CI source cases. Existing untraced admission/lifecycle tests help, but do not supply these effect traces. This is bounded synthetic CLI evidence, not deployed Tower/provider/hostile-source containment.

Fresh local validation. Linux, Rust/Cargo 1.95.0, strace 6.13; separate worktree and Cargo target, without reusing author binaries. Pristine dc77a28: recorded_review_cli 12 passed/2 intentional ignores; explicit effect test 12 cases passed. Restored production plus repair tree: same focused and explicit effect results; full locked workspace/all-target tests 1,298 top-level passes, zero failures, three intentional ignores (nested driver not double-counted); fmt, check, strict Clippy, docs, policy-check/inventory, artifact-verifier self-test and diff check pass. Exact-tree staged precommit: one changed file, zero blocking findings. cargo-allow/ripr/unsafe-review/ast-grep remain missing; actionlint skipped. Existing overdue-policy/rustdoc warnings and Windows verifier skip remain.

Reproduce the CLI/effect checks at the published repair:

cargo test --locked --offline --test recorded_review_cli
cargo test --locked --offline --test recorded_review_cli agent_result::authority::effects::recorded_commands_have_no_execution_network_or_write_effects -- --ignored --exact --nocapture

Offline requires a populated dependency cache. Local logs, experiment diffs, traces and SHA256SUMS are retained at /workspace/scratch/review-1398; these are not hosted artifacts. Repaired workspace-test SHA256: a823bd55cb7ad435730f908ec8387b198205dde593924986575b278c526356d6. Repaired effect-log SHA256: 32b42854f6ad7d2ade2fed20a386a26d3f93ec2bd1e51c9af4c82b755177ae67. SHA256SUMS digest: 14012e68dad8dacb4a2c804df4462d1dc016e452171bf1c9748417419eb07f66.

Remote readback confirms #1398 remains b377fcc, test owner branch dc77a28, main 3dbcc2b. No owner branch/Ready/merge/release/deployment transition. The b377fcc hosted gate remains failed; local source/test proof does not clear that gate or producer qualification. Owner may review/adopt the repair atop dc77a28; starting from b377fcc requires the complete 6f31190 → dc77a28 → 0c2badf test delta and validation on the integrated candidate.

EffortlessSteven and others added 7 commits October 15, 2026 01:35
Add agent-facing transition guidance for Tower source-only advisory review and integrated full CI, with exact evidence expectations, mode boundaries, dormant SDLC admission and explicit unknown states. Link it from the native agent workflow.

Validation: native policy/staged precommit, relative links and diff checks passed; independent exact-candidate documentation review found no material issues. Existing draft and Ready gate/baseline runs passed. Ready gate 38686930004 and baseline 38686930383 are the final hosted receipts.

Preserve existing limitations: compatibility conclusion passes while additive analysis/gate remain not_proven, task projection remains contradictory/shadow-only, and optional instrumented coverage has three setup-ci inventory failures. No authority migration, activation, production App, protection, release or deployment change.
Add three production-compiler regressions for mixed decision/proof hierarchy, unique navigable headings, private evidence suppression, and quiet/opposing-lane controls.

Validation: 1,259 local tests passed, one intentional driver ignore; native check/Clippy/docs/policy/staged precommit; exact-head independent source review and final main-state/vision review. Ready-triggered qualification and review receipts are retained on PR #1469. Production renderer, dependencies, lockfile, policy and workflows unchanged.
)

* fix(review): bind prior resolutions to complete revision identity

* test(review): select exact resolutions from mixed history

---------

Co-authored-by: Steven Zimmerman, CPA <steven@effortlessmetrics.com>
* fix(verifier): compare native RIPR source contracts explicitly

* fix(verifier): reject malformed non-gap source findings
Install selected-candidate and same-owner delivery in the loaded agent root, delivery skill and native workflow guide. Preserve live CI protection and explicit release boundaries. Clarify that alternative candidates stay unpublished until the explicit-request cutover. Reviewed against the current base with passing exact-head native gate and independent baseline; retained gate-packet and optional-coverage limitations remain documented on the PR.
#1508)

Give rejected semantic proof intents supported recovery choices and refuse every named Cargo build target before scheduling. Preserve command admission and original lease ceilings while charging conservatively settled elapsed proof time.

Validate literal rejection and supported-command controls, native budget interactions and compiled negative controls. Preserve38 individually reviewed exact static dispositions and existing review/expiry dates.

Local source-tree qualification:1279 tests passed,0failed,1ignored; staged native checks passed. Independent exact-head review5560020940. Hosted ub-review/gate39068319798 passed on sourcec1b7614; legacy shadow limitations remain recorded in the PR.

Reviewed-head: c1b7614
Reviewed-tree: 5b7cc3b

@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 exact-head provenance review: one reproduced inherited source-export finding; no competing patch or PR.

Subject: #1398 head b377fcc866ecab826cb3ff650b990ac0b5ba631b, tree 56f7dac392f23160d02348feef39348bc13ddde2, dependency base 8c23c004a961bd34ea6191da056fd40721cddba7. Active owner remains the #1335/#1398 coordinating lane. This finding concerns the pre-existing source export/replay commands carried by this candidate; it is not claimed to be introduced by the new agent composition or reachable through plan-required agent-export.

P2: validate the supplied diff before returning PlanAbsent. At src/review_judgment/public_plan.rs:260–262, a valid recorded judgment with no public plan returns before the revision/diff-byte comparison at lines 335–337. The file CLI reads and hashes the supplied diff, but that proves only agreement with its file pin. The immutable source view does not retain the diff file pin, and the source judgment's canonical revision still names the original diff.

Actual compiled-CLI counterexample on this head:

  1. Create a valid findings judgment/source, set intake plan to null; export and replay succeed.
  2. Change +danger(); to +changed(); in the supplied diff. Keeping its old file pin rejects, with empty stdout.
  3. Update only the diff's file SHA256 in the intake and supply the new intake SHA256. Keep canonical revision, graph, source manifest, judgment and recorded view unchanged.
  4. Export succeeds with byte-for-byte the old view. It retains judgment availability validated, result findings, public-plan availability plan_absent and source_currentness matches_admitted_revision. Replay of that old view also succeeds with status=replayed_recorded_sources. The changed diff's domain-separated digest differs from the canonical revision's diff digest.
  5. Restore the original diff/pin; positive replay succeeds.

This contradicts the file-intake contract's mandatory exact diff bound by RevisionIdentity. It does not bypass the old independently retained intake SHA256: choosing the new intake pin is explicit. The gap is accepting a newly pinned internally contradictory intake and then treating its old result as replay-equivalent. It establishes structural inconsistency, not remote authenticity, a live-head mismatch or semantic truth of a finding.

Bounded repair route: at the file-admission or common recorded-source boundary, compare the actual diff bytes with the admitted RevisionIdentity even when public plan/lead is absent. Preserve intentionally absent/invalid states. In my isolated detached lab, inserting the existing matches_diff_bytes check before the optional-plan return compiled successfully; all 30 focused cases then passed with the two changed-diff operations rejected. This was a temporary experiment, not a submitted repair. The pristine candidate was restored, rebuilt and rerun; the counterexample returned. Author branches and both source trees are clean.

Fresh local evidence, Linux/Python 3.12.14/Rust-Cargo 1.95.0, private Cargo target, two jobs, locked/offline:

  • Candidate binary rebuilt from the frozen head; no sibling binaries reused. Binary SHA256 4edb0f2db3228cca05f123f8ff42dd2527bb8040ee97d3efa93d626da197c1e4.
  • Independent external fixture driver ran 30 real CLI cases: 19 accepted observations, 11 rejections. Two of those accepted observations are the defect above, not a clean acceptance claim. The driver in required-rejection mode fails pristine production with exit 1 on the first acceptance, then passes all 30 against the temporary guard experiment (17 accepts/13 rejects).
  • Plan-present diff, configuration evidence, tool-identity evidence and selected graph bytes reject after tamper or file-only repinning; all restored controls succeed. A fully resealed new configuration/tool source exports successfully but rejects the old result and replays its own result. A changed intake cannot reuse its old independent pin.
  • Ambient .ub-review.toml, PATH and an unrelated tool-identity environment declaration leave this recorded CLI's output unchanged, matching its explicit config-independent contract. Config/tool records supplied as evidence are byte-bound; this does not authenticate any executed tool or prove ambient configuration provenance. No production subprocess/network-effect campaign was repeated.

Owner handoff: please adopt a bounded regression/repair in the existing source-admission lane and rerun these controls on its resulting exact head. No independent clearance is given for the inconsistent no-plan path. No main integration, hosted check, Ready, merge, deployment, package or release claim follows. Prior hosted failures/dependencies/denials remain untouched; this task queried no workflow/protection inventory or denied comment routes.

Recoverable evidence follows: XZ tar, 11,972 bytes, SHA256 70d280ebbf2d0e5ced78548b5e34b412b82efa80b44a86188c7b6fe96e72d1bd. It contains the standalone fixture driver, actual original/experiment inputs and stdout/stderr/results, build logs, failing regression log and temporary patch. No executable, credentials or private transfer URLs. Paths inside the driver are this disposable executor's paths; set its BIN/ROOT paths for another lab. The archive is evidence, not a candidate or an installed-artifact qualification.

/Td6WFoAAATm1rRGBMCCXYDwJCEBFgAAAAAAAPhk0WLpN/8uel0AOByKIzM7ZFKjiJxqVQzCytVQL78BgTc+JlwS4LuFj/C3WtabxlGL1jLk5Z+DpXNJGKWYY7yccI8oerRqEAEyUn2lwSrVEugaGDJH6HXvsv04yZgnj/GgNmC39pxuFe+4Lg69bcKSIxDoOkemX11SzOKWsL1QtX6g7q5yI0gc+E4CCeuU3pEONLX/dvSJn0Xr2iklQNBnAyV+7g/7NM5govBhfjAIm4xJ6Azjfe9A/cQxOULe3QJIAOJzZQmk/g2GDkJnBCNjH6fUOWrAqjvLbWMCxxKQuP22Bi1M+ia4pmE/IR7Gkf2VmOnhWGKQX6lvbo2bEkrthxW0g3Nucidya9IutqaBaqy3HBGiezzGcqnZGyT6yqu4MWJjoXvvH/RYR1mEEB/ZAbEHO4WV3XWDS/blaynKjP6cbaAmBKefW8YOx2adi2DMoGVvRtVQLxECWshW95jVdhUEoI/Uy9yZbPWUOgnbp0VkR6rhHYx9FqP5lyWXnQO9gzhXxOKb2lKwnkCHbbzgnGPRgkfDbflxmgu1HdLRMfZ6XczRT7A1zhAn06E0Bgb4ak2N6ZzXZAbyOaAKdh5kOE959ucO9HHkdNDtT4nW8ItEdbVUfYq/IeD/7f943KZ5/3P0ubuBDuOmv+yvAEaiSU6l2gHlA8OZCcbbQ3tv1sK58yv0cuBbArNeP90YHHx2vO1322oz+hqSysr1XmDq8kC5Q4EKySDGvSo87ij/7WOXpe0DYbtHIReUfN6M5phgt3eap5aGTwK9srFZ652U+KRd/EegBWN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AAAAAEWVo=

Clarify sensor status and proof diagnostics, supported summary and doctor commands, and configured Required obligations.

Fixes #1441.

Copy link
Copy Markdown
Member Author

Owner adoption offer for #1547, within the existing #1335/#1398 source-admission lane consulting #1014.

Private correction 2e5871d647b7955bede2cd2b41ad3a8f70ef885b has sole parent b377fcc866ecab826cb3ff650b990ac0b5ba631b (tree 56f7dac392f23160d02348feef39348bc13ddde2), with dependency base 8c23c004a961bd34ea6191da056fd40721cddba7. Correction tree: 7f835058759a3e64aa444058535d9a1faa88dbfd. The private commit is not pushed; its complete three-file patch is below for owner review/adoption. Patch SHA256: 1f150b68c53669883c4e54b25e7dd6b1cb5addf1c43fdb2e5e45013348da9ab8.

The correction moves the existing bounded diff-to-RevisionIdentity comparison before optional LeadAbsent/LeadInvalid/PlanAbsent returns in the shared validator. It adds real CLI regressions and a fixture constructor for consistently regenerated diff/revision/source inputs. Canonical authorship and source custody remain with this lane; no second validator or CI/publication authority is introduced.

Retained local executions on Linux, Rust/Cargo 1.95.0, locked/offline dependencies and a separate build target:

  • Pristine production plus the identical new regression blobs, tree d7fbcb2bedce9111b1bfd4c4d80ca752a3524316: five focused controls yield 2 pass / 3 fail (exit 101). Both real export and replay actually accept newly pinned contradictions in all three absent states; the plan-present control rejects.
  • Correction: cargo test --locked --offline --test recorded_review_cli -- --nocapture passes 15/15; cargo test --locked --offline --bin ub-review review_judgment::public_plan -- --nocapture passes 18/18.
  • Compiled removal of only the canonical matches_diff_bytes comparison, mutant tree de9851037b7f66ae4fc52d394c12f50b631addcc: the same three absent-state regressions fail again (exit 101), with actual export/replay acceptance. Restoring the exact correction returns the full CLI suite to 15/15.
  • Corrected controls reject old file pins and repinned contradictory diff/intake with nonzero exit and empty stdout, preserve useful absent/invalid states, restore byte-identical positive exports and successful replay, and preserve opaque CI bytes. Consistently regenerated sources replay their own view and reject older incompatible views in both directions.
  • Strict workspace/all-target Clippy, fmt, policy-check, artifact-verifier self-test and exact-tree staged precommit pass. Precommit examined three files with zero blocking findings. Existing overdue-policy warnings remain.

An independent immutable-head source review and inspection of the actual receipts found no material issue in this bounded correction or its test isolation. That reviewer ran no additional suite; this is independent source review plus receipt inspection, not a second independent execution or formal GitHub approval. Existing authority/observer reviews and their complete test series remain separate owner-adoption evidence; they were neither repeated nor silently adopted here.

Limits: cargo-allow, RIPR, unsafe-review and ast-grep were missing, and actionlint was skipped because no workflow changed. No full-workspace test/doc or hosted qualification is claimed for this correction. The existing #1398 gate run 38177515703 remains failed in the retained native readback; successful wrappers/statuses do not clear it. These controls establish recorded-source byte consistency, not remote authenticity, live-head freshness, semantic correctness, filesystem-race resistance or operated-service/execution authority.

Owner adoption is required: review and adopt the patch in the existing lane if accepted, record the resulting exact base/head/tree and selected test-series composition, then obtain the applicable current-head review, integration and hosted qualification. This offer grants no Ready/merge or issue-closure clearance. No canonical branch push, PR creation or new qualification was performed for this handoff.

Complete bounded correction and regression patch
diff --git a/src/review_judgment/public_plan.rs b/src/review_judgment/public_plan.rs
index b21d8c6..ab3ffbb 100644
--- a/src/review_judgment/public_plan.rs
+++ b/src/review_judgment/public_plan.rs
@@ -229,6 +229,17 @@ pub(crate) fn validate_recorded_public_plan(
                 .is_none_or(|ci| ci.bytes.len() <= MAX_SOURCE_BYTES),
         "recorded evidence exceeds byte limit"
     );
+    let public = input.public_source;
+    ensure!(
+        public.diff_patch.len() <= MAX_SOURCE_BYTES,
+        "public source exceeds limit"
+    );
+    // Diff custody is mandatory even when the optional lead or plan is absent.
+    ensure!(
+        input.current_revision.matches_diff_bytes(public.diff_patch)
+            && RevisionIdentity::diff_digest(public.diff_patch) == public.diff_digest,
+        "recorded diff mismatch"
+    );
     let lead = validate_recorded_judgment(
         source,
         input.current_revision,
@@ -303,12 +314,10 @@ pub(crate) fn validate_recorded_public_plan(
         }
     }
     let plan: PublicReviewPlan = serde_json::from_slice(plan_bytes)?;
-    let public = input.public_source;
     ensure!(
         public.materials.len() <= MAX_ROWS
             && public.anchors.len() <= MAX_ROWS
-            && plan.items.len() <= MAX_ROWS
-            && public.diff_patch.len() <= MAX_SOURCE_BYTES,
+            && plan.items.len() <= MAX_ROWS,
         "public source exceeds limit"
     );
     ensure!(
@@ -331,11 +340,6 @@ pub(crate) fn validate_recorded_public_plan(
             && public.delivery_subject.head_sha == input.current_revision.candidate_head_commit(),
         "invalid delivery subject"
     );
-    ensure!(
-        input.current_revision.matches_diff_bytes(public.diff_patch)
-            && RevisionIdentity::diff_digest(public.diff_patch) == public.diff_digest,
-        "recorded diff mismatch"
-    );
     let patch = std::str::from_utf8(public.diff_patch).context("recorded diff is not UTF-8")?;
     let lines = crate::right_side_diff_line_text(patch);
     let mut material_ids = BTreeSet::new();
diff --git a/tests/recorded_review_cli.rs b/tests/recorded_review_cli.rs
index a87f1c5..e1b10e9 100644
--- a/tests/recorded_review_cli.rs
+++ b/tests/recorded_review_cli.rs
@@ -32,13 +32,17 @@ struct Fixture {
 
 impl Fixture {
     fn new() -> Result<Self> {
+        Self::with_patch(PATCH)
+    }
+
+    fn with_patch(patch: &[u8]) -> Result<Self> {
         let root = tempfile::tempdir()?;
         let write = |name: &str, bytes: &[u8]| -> Result<Value> {
             fs::write(root.path().join(name), bytes)?;
             Ok(json!({"path":name,"sha256":hash(bytes)}))
         };
         let head = "a".repeat(40);
-        let diff_digest = domain_hash("ub-review.revision-identity.diff.v1", PATCH);
+        let diff_digest = domain_hash("ub-review.revision-identity.diff.v1", patch);
         let paths_digest = domain_hash(
             "ub-review.revision-identity.changed-paths.v1",
             b"src/lib.rs\0",
@@ -98,7 +102,7 @@ impl Fixture {
             "evidence":[{"reference":"fact#1","file":write("evidence.bin",evidence)?}],
             "imported_ci":write("ci.bin",ci)?,
             "delivery_subject":serde_json::from_str::<Value>(&delivery)?,
-            "diff":write("diff.patch",PATCH)?,"public_source_digest":public_digest,
+            "diff":write("diff.patch",patch)?,"public_source_digest":public_digest,
             "materials":[{"claim_id":"A","body_ref":"public#A","class":"public","file":write("body.txt",body)?}],
             "anchors":[],"answer":write("answer.json",answer.as_bytes())?,"plan":write("plan.json",plan.as_bytes())?
         });
@@ -156,6 +160,9 @@ fn rejected(output: Output, message: &str) {
 #[path = "recorded_review_cli/agent_result.rs"]
 mod agent_result;
 
+#[path = "recorded_review_cli/diff_identity.rs"]
+mod diff_identity;
+
 #[test]
 fn real_command_exports_exact_sources_and_replays_without_remote_confirmation() -> Result<()> {
     let f = Fixture::new()?;
diff --git a/tests/recorded_review_cli/diff_identity.rs b/tests/recorded_review_cli/diff_identity.rs
new file mode 100644
index 0000000..bea4e47
--- /dev/null
+++ b/tests/recorded_review_cli/diff_identity.rs
@@ -0,0 +1,127 @@
+//! #1547: mandatory diff custody survives optional lead/plan states.
+use super::*;
+
+const CHANGED: &[u8] = b"diff --git a/src/lib.rs b/src/lib.rs\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -1 +1 @@\n-safe();\n+changed();\n";
+
+fn accepted(output: Output) -> Result<Vec<u8>> {
+    assert!(
+        output.status.success(),
+        "{}",
+        String::from_utf8_lossy(&output.stderr)
+    );
+    assert!(!output.stdout.is_empty());
+    Ok(output.stdout)
+}
+
+fn replay(f: &Fixture, view: &[u8]) -> Result<Output> {
+    fs::write(f.root.path().join("view.json"), view)?;
+    f.invoke(
+        "replay",
+        &["--view", "view.json", "--view-sha256", &hash(view)],
+    )
+}
+
+fn contradictory_diff(state: &str, lead: &str) -> Result<()> {
+    let mut f = Fixture::new()?;
+    if state != "validated" {
+        f.intake["plan"] = Value::Null;
+    }
+    if state == "lead_absent" {
+        f.intake["answer"] = Value::Null;
+    } else if state == "lead_invalid" {
+        let invalid = b"private invalid lead";
+        fs::write(f.root.path().join("answer.json"), invalid)?;
+        f.intake["answer"]["sha256"] = json!(hash(invalid));
+    }
+    let ci = fs::read(f.root.path().join("ci.bin"))?;
+    let original = accepted(f.invoke("export", &[])?)?;
+    let view: Value = serde_json::from_slice(&original)?;
+    assert_eq!(view["judgment"]["availability"], lead);
+    assert_eq!(view["public_plan"]["availability"], state);
+    assert_eq!(view["source_currentness"], "matches_admitted_revision");
+    assert_eq!(view["qualification"], "shadow_recorded_only");
+    assert_eq!(view["delivery_projection"], "not_admitted");
+    assert_eq!(view["remote_effects"], "unknown");
+    assert_eq!(view["imported_ci_digest"], hash(&ci));
+    assert!(!String::from_utf8_lossy(&original).contains("private invalid"));
+    let receipt: Value = serde_json::from_slice(&accepted(replay(&f, &original)?)?)?;
+    assert_eq!(receipt["status"], "replayed_recorded_sources");
+    assert_eq!(receipt["view_sha256"], hash(&original));
+
+    fs::write(f.root.path().join("diff.patch"), CHANGED)?;
+    rejected(f.invoke("export", &[])?, "SHA256 mismatch");
+    rejected(replay(&f, &original)?, "SHA256 mismatch");
+    f.intake["diff"]["sha256"] = json!(hash(CHANGED));
+    // invoke independently pins the new intake; old-pin rejection cannot mask
+    // acceptance of contradictory diff bytes at the canonical boundary.
+    let changed_export = f.invoke("export", &[])?;
+    let changed_replay = replay(&f, &original)?;
+    eprintln!(
+        "{state}: repinned export={} stdout={} replay={} stdout={}",
+        changed_export.status,
+        changed_export.stdout.len(),
+        changed_replay.status,
+        changed_replay.stdout.len()
+    );
+    rejected(changed_export, "source validation rejected");
+    rejected(changed_replay, "replay rejected");
+
+    fs::write(f.root.path().join("diff.patch"), PATCH)?;
+    f.intake["diff"]["sha256"] = json!(hash(PATCH));
+    assert_eq!(accepted(f.invoke("export", &[])?)?, original);
+    accepted(replay(&f, &original)?)?;
+    assert_eq!(fs::read(f.root.path().join("ci.bin"))?, ci);
+    Ok(())
+}
+
+#[test]
+fn plan_present_rejects_contradictory_diff() -> Result<()> {
+    contradictory_diff("validated", "validated")
+}
+
+#[test]
+fn plan_absent_rejects_contradictory_diff() -> Result<()> {
+    contradictory_diff("plan_absent", "validated")
+}
+
+#[test]
+fn lead_absent_rejects_contradictory_diff() -> Result<()> {
+    contradictory_diff("lead_absent", "absent")
+}
+
+#[test]
+fn lead_invalid_rejects_contradictory_diff() -> Result<()> {
+    contradictory_diff("lead_invalid", "invalid")
+}
+
+#[test]
+fn regenerated_diff_revision_and_sources_replay_only_their_own_view() -> Result<()> {
+    let mut old = Fixture::new()?;
+    old.intake["plan"] = Value::Null;
+    let old_view = accepted(old.invoke("export", &[])?)?;
+    let mut fresh = Fixture::with_patch(CHANGED)?;
+    fresh.intake["plan"] = Value::Null;
+    let fresh_view = accepted(fresh.invoke("export", &[])?)?;
+    let old_value: Value = serde_json::from_slice(&old_view)?;
+    let fresh_value: Value = serde_json::from_slice(&fresh_view)?;
+    assert_ne!(
+        old_value["current_revision"],
+        fresh_value["current_revision"]
+    );
+    assert_ne!(
+        old_value["source_manifest_digest"],
+        fresh_value["source_manifest_digest"]
+    );
+    assert_eq!(fresh_value["judgment"]["availability"], "validated");
+    assert_eq!(fresh_value["public_plan"]["availability"], "plan_absent");
+    assert_eq!(
+        fresh_value["imported_ci_digest"],
+        old_value["imported_ci_digest"]
+    );
+    accepted(replay(&fresh, &fresh_view)?)?;
+    rejected(replay(&fresh, &old_view)?, "replay rejected");
+    rejected(replay(&old, &fresh_view)?, "replay rejected");
+    assert_eq!(accepted(old.invoke("export", &[])?)?, old_view);
+    accepted(replay(&old, &old_view)?)?;
+    Ok(())
+}

Steven Zimmerman and others added 23 commits October 31, 2026 07:28
* test(context): expose eager bounded-file ceiling allocation

* fix(context): allocate bounded file capture from bytes read

* test(context): keep capture invariants after production items

* fix(context): preserve one-read semantics for stream seeds

* chore(ripr): receipt-suppress exposure gaps on PR 1414
…into contrib/1617-integrated-20261031

# Conflicts:
#	.ripr/suppressions.toml
…proposal-20261031

test(proof): separate child startup grace from execution timeout
* test(release): pin offline release-note rendering contract

* fix(release): render validated notes before publication

* test(release): simplify real-command error propagation

* fix(release): address renderer review and strengthen literal proofs

* chore(ripr): receipt-suppress exposure gaps on PR 1380

---------

Co-authored-by: Steven Zimmerman <codex-smoke@example.invalid>
* fix(proof): withhold completion claims contradicted by timeout

* test(proof): discriminate skipped routing and incomplete summary

Refs #1432. Preserve missing-evidence routing for profile-refused proofs and require the diagnostic after a native timeout is relabelled.

* chore(ripr): receipt-suppress exposure gaps on PR 1428

---------

Co-authored-by: Steven Zimmerman <steven@stevenzim.com>
…#1437)

* fix(coverage): reject unfinished LCOV summary records

* fix(coverage): report aggregate count overflow as unknown (#1454)

Co-authored-by: Steven Zimmerman <steven@stevenzim.com>

* chore(ripr): receipt-suppress exposure gaps on PR 1437

---------

Co-authored-by: Steven Zimmerman <steven@stevenzim.com>
* fix(unsafe-review): confine initial structured artifact reads

* chore(ripr): receipt-suppress exposure gaps on PR 1439

---------

Co-authored-by: Steven Zimmerman <steven@stevenzim.com>
…1460)

* test(ci): retain bounded Required-starvation evidence for #1270

* test(ci): kill weakened overlap-inventory guard

* chore(ripr): receipt-suppress exposure gaps on PR 1460
)

* feat(review): validate shadow recorded judgment source selections

* fix(review): drop the duplicate revision_ref left by the rebase union

The rebase union kept both copies of revision_ref and left the first one
syntactically broken; the well-formed definition stays.

* chore(ripr): receipt-suppress judgment-validation exposure gaps on PR 1387

* style: apply pinned rustfmt layout

* chore(ripr): re-append shed receipts on PR 1387

---------

Co-authored-by: Steven Zimmerman <steven@stevenzim.com>
Answer and plan forgeries must carry consistent prepared-payload metadata and observation identities. Otherwise an unrelated stale pin can conceal weakened agent admission while the shared source-export case still rejects.

Copy link
Copy Markdown
Member Author

Adopted the reviewed #1398-only integration by non-forcing fast-forward from b377fcc866ecab826cb3ff650b990ac0b5ba631b to 302830e4fb1c843938d3bbb35d638ccb50c201dc (tree e1195349761a7060475a9b4d916637c4cc799972; parents 3509ead2c4ed26165034b1140b2d89261a647324 and main f194b3825594120f1af96b617312020e6638b8c8). The independent reviewer reports no bounded source blocker and independently passed 17 recorded CLI tests (two ignored) and 22 judgment tests. The review bundle and receipt retain composition and validation limits. Main's already-landed #1387 boundary supplies the identical revision reference; the duplicate was removed during integration.

GitHub's observed #1398 merge object is 2b35e5e951dd7b91ea796bc26429fb5c2e6c9201, tree e1195349761a7060475a9b4d916637c4cc799972, parents 8c23c004a961bd34ea6191da056fd40721cddba7 and 302830e4fb1c843938d3bbb35d638ccb50c201dc. Prior b377fcc source and hosted receipts remain historical, not current-head qualification. The workflow-run reader returned no PR-triggered runs for the new head at readback; this does not establish complete check coverage or a pass.

#1400 and #1404 heads remain acc39b2996864140e3073a8873b5c60fbedab0d3 and 5b3f34ef62816f825cc15aad337e6e9953fad301, respectively; neither is an ancestor of the new #1398 head. GitHub's #1400 PR metadata and merge ref still reported the former b377fcc base at readback even though the base branch now resolves to 302830e; its recalculated diff, mergeability and applicable checks are therefore pending. Downstream owners must compose and review their changes against the adopted base; earlier base-bound clearances are historical. #1404's base remains #1400's unchanged head. No downstream ref or PR state was changed. All remain Draft; no formal approval, hosted qualification, activation or merge is claimed.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Deferring to the owning session: shadow/recorded experiment stack — serially stacked recorded agent result, needs a focused port onto the landed #1014 shape. The branch has been through multiple autonomous rebase + receipt + gate cycles without converging. The fix-or-suppress tooling remains available for the focused port.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Rejected: needs a focused feature-port, deferring to the owning session.

This draft has been through 6+ autonomous fix-or-suppress cycles (queue passes 1–6) across the mid-October module-extraction reorganization. Each rebase either hits real content collisions that a mechanical union cannot resolve, or the gate fails on a shifting set of ripr exposure gaps that shed on every re-rebase. The branch needs a deliberate port onto the landed code shape by someone who understands the feature's intent.

The fix-or-suppress tooling (rebase_one.sh, append_receipts.py, the gate pipeline) remains available — reopen and re-run the standard rebase + receipt loop after the port. See the earlier scope diagnosis for specifics.

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