Repository navigation
feat(review): validate shadow recorded judgment source selections - #1387
Conversation
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 47 minutes. View limit details
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Judgment and source contracts src/review_judgment.rs |
Adds judgment, subject, selection, and source-input structures, plus recorded validation outcomes and source-manifest hashing. |
Pinned-input validation and coverage src/review_judgment.rs, src/main.rs, src/review_judgment/tests.rs, .ripr/suppressions.toml |
Adds validation against pinned source and answer data, declares the private module, tests valid and rejected cases, and records exposure-gap suppressions. |
Estimated code review effort: 4 (Complex) | ~45 minutes
Merge Risk: 
Moderate · previous review 4bf14
-
The reported analysis still has 124 unresolved issues, so this validation change is not ready to qualify or merge.
Security Architecture Review
-
Security architecture risk: ⚪ Minimal · up to
8cf90The new contract remains shadow-only and has no production consumers. Its validator checks pinned identities and bytes without changing runtime decisions, granting authority or performing privileged operations. No material security risk introduced by this PR was identified.
Retained concerns
No architecture-level concerns identified.Security review details
-
Security Blast Radius
- observed — Caller tracing found only test consumers of the new entrypoints. The current change does not connect recorded answers to posting, CI decisions, policy enforcement or privileged sinks.
Trust Boundaries and Controls
- observed — Recorded-answer bytes cannot supply their own authority within the validator: acceptance requires separately supplied answer and source pins, matching subject and revision, byte-verified evidence, and evidence bound to each selected claim. Duplicate selections and references, rejected claims and unsupported-assertion edges are rejected.
- observed — Independent pin retention, source admission, evidence qualification and completeness remain caller obligations. Validated denotes shadow consistency, not semantic adjudication or final public authority; the future consumer is outside the inspected implementation.
-
Pre-merge checks: 
5
-
Full details: Description check
-
Explanation
The description is detailed and directly covers the change scope, policy receipt, verification results, CI budget, limitations, ownership, and unresolved required-gate failure. It does not reproduce every template heading or checkbox, but it provides the required information and is mostly complete.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
A rabbit checks each claim in the moonlit glow.
Pinned bytes and evidence line up in a row.
Clean or findings, the rules make them clear.
Invalid answers do not pass here.
Then the rabbit hops home, ears held high.
|
Exact-head local receipt — 2026-10-11 UTC Base/main: 777d86a. PASS: cargo fmt --all -- --check; cargo check --workspace --all-targets --locked; cargo clippy --workspace --all-targets --locked -- -D warnings; cargo test --workspace --all-targets --locked; cargo doc --workspace --no-deps --locked; cargo run --locked --package xtask -- policy-check; Python artifact-verifier --self-test. Workspace tests: 1,260 top-level passes, zero failures, one intentional ignored subprocess driver (the nested driver also passes). All four new real-entrypoint controls pass after restoration. Also PASS: policy-inventory, 11-file policy/root/.cargo TOML parse sweep, diff hygiene. Existing overdue policy warnings are retained; no unrelated receipt changes. Runtime calibration: changed only Staged Raw local receipts retained at /workspace/scratch/1013/:
Hosted gate https://github.com/EffortlessMetrics/ub-review/actions/runs/38143923336 remains in progress at this observation; no hosted clearance or independent source-review clearance claimed. Parent owns independent exact-head review. Draft/unmerged; no Ready, dispatch, merge, release or activation. Bounded claim: pure recorded source-object selection validity and CI byte invariance, not upstream admission authenticity/completeness, full #1013 lead call, #1014 authority migration, #1277 qualification, or #1335 export completion. #1349 is still UNADOPTED. |
|
Terminal hosted status supersedes the earlier in-progress checkpoint. Exact head 8cf90cd, tree 9044d922e93a1e8cf18fc778b1e12e2f9ed72942. Hosted exact-head independent baseline38143923408 passed. The required product gate38143923336/job114483218782 is terminal FAIL: RIPR124 new unsuppressed / maximum0; artifact contract passed. Shadow task-projection reports37 issues, currently unattributed; the assigned artifact reader is classifying them once. Independent source review is still exercising controls. Local/source-test correctness and strict required-gate qualification remain separate: qualification is blocked. Await concrete review and artifact findings; no source rewrites, reruns or suppression changes. Draft, unmerged and not cleared. No Ready, merge, activation or private artifact links. Earlier local/mutant receipts remain bounded evidence for their exercised controls; they do not waive the failed required gate. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head source review of the complete five-file diff at 8cf90cd found no blocking defect within the bounded shadow-only consistency contract. No production consumer, CLI, provider call, dispatch, delivery or CI writer is introduced; canonical-owner preparation does not adopt #1349 or complete #1013/#1335.
Independent executable controls exercised revision/graph/manifest/pass/evidence mismatches; duplicate and conflicting source IDs; duplicate selections/references; cross-claim, Refuted/Dropped and UnsupportedAssertion selections; unknown authority fields in 44 placements; duplicate JSON keys, malformed/trailing JSON, invalid UTF-8 and excessive nesting; absent versus invalid lead; clean with incomplete scope, unresolved states or evidence gaps; independently recomputed manifest digests and CI byte/digest invariance. Four independent control groups passed. A compiled UnsupportedAssertion-guard removal mutant failed as expected with exit 101, and restored controls passed. Pristine four entrypoint tests, fmt, workspace/all-target check and policy-check also passed independently.
Important limit: self-consistent resealed producer inputs can validate. This proves consistency, not admission authenticity or qualified evidence; caller-owned pins, provenance and completeness remain prerequisites. Explicit allocation/cardinality limits are absent. Full canonical lead qualification, public plan/export and activation remain separate.
Hosted product gate 38143923336 failed at 124 findings/max0 while the baseline and artifact contract passed. That remains a merge blocker. The source verdict neither clears the required gate nor treats its count as 124 independently demonstrated defects. No private artifact is shared in this review.
8cf90cd to
f7ec9fc
Compare
The rebase union kept both copies of revision_ref and left the first one syntactically broken; the well-formed definition stays.
04ce5e8 to
4bf14df
Compare
Adds #1013's minimum shadow-only recorded judgment source-object validator for the later #1335 export consumer. Base 777d86a; head 8cf90cd; tree 9044d922e93a1e8cf18fc778b1e12e2f9ed72942.
The real value entrypoint validates a separately pinned recorded final answer against full RevisionIdentity, repository/spec/pass/attempt, the existing active ClaimGraph, claim-bound byte-verified evidence, and a recomputed source manifest. Imported CI stays opaque and byte-identical. Absent/invalid lead is explicit; no committee or Markdown-derived verdict. Unknown fields, CI/policy/delivery/dispatch fields, stale/forged identities, duplicate references and cross-claim evidence are rejected. Clean requires the upstream recorded completeness flag, no graph gaps or unresolved claims, and no selections. Findings remain separate from scope completeness.
This is a bounded v1 subset under the canonical #1013 owner, not a parallel semantic engine. Source admission, evidence authenticity, completeness and final-lead qualification remain upstream obligations; pins must be independently retained, never copied from the answer. Anchors/suggestions/prose are unsupported and rejected in this version. The current binary/compiler remains authoritative. No CLI, model call, credentials, proof executor, network/provider path, posting, scheduler, CI writer, release or activation is introduced. #1349 remains UNADOPTED; all #1013/#1014/#1277 live prerequisites remain intact. Neither #1013's full final-lead call nor #1335 export is complete.
Ownership: read #1013/#1014/#1335/#1338/#1349, #945/#1216 and merged decision packet; live 29-PR inventory and changed-file lists found no competing judgment implementation. Existing transport #1317/#1370, bytes #1343/#1379, adapter #1344, admission #1347 and README #1354 are untouched; main.rs adds only one module declaration.
Validation: all seven local baseline checks pass at this exact head (1,260 top-level test passes; zero failures; one intentional ignored driver). Four focused real-entrypoint tests pass. The compiled claim-edge mutant fails the cross-claim oracle; restored source passes the full suite. Policy inventory/TOML sweep/diff checks also pass. Staged precommit on the identical tree passes, while cargo-allow/RIPR/unsafe-review/ast-grep remain explicitly missing. Hosted exact-head independent baseline38143923408 passed. The required product gate38143923336/job114483218782 is terminal FAIL: RIPR124 new unsuppressed / maximum0; artifact contract passed. Shadow task-projection reports37 issues, currently unattributed; the assigned artifact reader is classifying them once. Independent source review is still exercising controls. Local/source-test correctness and strict required-gate qualification remain separate: qualification is blocked. Await concrete review and artifact findings; no source rewrites, reruns or suppression changes. Exact-head raw receipt hashes and command details are in the PR conversation.
Policy receipt: policy/allow.toml#recorded-judgment-shadow-1013 narrowly owns temporary dead_code for the unconnected pure module. No thresholds, suppressions for analyzers, tool pins, workflows or Required policy changed. CI budget: default existing lanes only.
Handoff to #1335: consume this recorded validation entrypoint first; retain immutable source/answer identities and source graph scope/gaps. Add the separate immutable public-plan and append-only delivery-observation view after their canonical owner contracts exist; missing/invalid lead stays unavailable/limited, missing delivery remains remotely unknown, and confirmed history/currentness are separate. A later real export command and all full producer/public authority acceptance remain pending. Draft only; parent owns independent exact-head review. No Ready or merge.