Skip to content

fix(verify): mirror the #1497 private-audit boundary in the artifact verifier - #1655

Merged
EffortlessSteven merged 1 commit into
mainfrom
fix/1341-smoke-plan-contract
Nov 6, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
fix/1341-smoke-plan-contract

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Root cause

Action-smoke run
42219180484
(main 9b0515bb, MiniMax model smoke, 10 usable lanes) failed only at the
verifier step with
review/orchestrator_plan.json does not match pre-follow-up evidence routing.
The actual plan omitted exactly two tertiary observation follow-up tasks —
follow-up-5b086cfae3c6 (obsgrp-0008-2d45ab4ac464) and
follow-up-54be0a39f8ab (obsgrp-0010-a2fe5afa15a3) — while every other
serialized line of the plan matched the verifier's recomputation.

Both observation groups carry sources: ["model-failed-objection"]. PR #1497
(commit 8f77a63b) deliberately extended the shared private-audit predicate
is_pr_body_artifact_only_observation with is_model_only_failed_objection
(src/noise.rs:47-53, applied at src/noise.rs:64, rationale in-code and in
docs/calibration/ripr-8262.md: a specialist's rejected hypotheses are private
audit, not earned public refutations). follow_up_task_for_observation_group
(src/follow_up_routing.rs:164) already consumed that predicate, so by
construction of the deliberate predicate extension, model-only failed
objections stopped receiving follow-up question tasks. The Python mirror in
scripts/verify-bun-review-artifacts.py never gained that condition — nor the
older #914 (f6c7a1c2) specialist-audit kind match (src/noise.rs:65-68),
nor the #914 internal-audit kind/status vocabulary (src/validate.rs:16-34)
that require_observation_schema enforces immediately downstream of the plan
check (the smoke artifact contains a malformed-internal-audit observation,
so the plan fix alone does not reach a green run).

Classification: verifier-stale

The orchestrator behaved as deliberately changed; the verifier's
expected-plan recomputation was stale. No Rust change is proposed or needed.

Change

Mirror the three Rust rules in the Python verifier, each citing its Rust
file:line and originating PR/commit:

  1. is_model_only_failed_objection added and applied inside
    is_pr_body_artifact_only_observation (mirror of src/noise.rs:47-53,64).
  2. empty-internal-audit / malformed-internal-audit kind match inside the
    same predicate (mirror of src/noise.rs:65-68).
  3. require_observation_schema accepts the two internal-audit kinds and the
    degraded/failed statuses restricted to those kinds (mirror of
    src/validate.rs:16-34).

Plus a discriminating self-test
self_test_model_only_failed_objection_follow_up_suppressed: an exclusively
model-failed-objection group gets no follow-up task (but keeps its
observation group), the same group with an independent evidence source keeps
its tertiary refutation-confirmation task, and the specialist audit kinds
stay artifact-only (Rust replay: src/noise.rs:1154-1208).

Discriminating validation

  • python -I scripts/verify-bun-review-artifacts.py F:/Temp/smoke-artifacts/ub-review-model-smoke --min-ok-model-lanes 10 --require-no-model-evidence-failures
    — fails on pristine origin/main with
    review/orchestrator_plan.json does not match pre-follow-up evidence routing, passes with this change (review artifact contract verified,
    exit 0, 10 usable model lanes).
  • python -I scripts/verify-bun-review-artifacts.py --self-test — passes
    (under WSL, exit 0). On native Windows the suite crashes in the
    pre-existing self_test_task_ledger_receipt_links symlink step
    (OSError: [WinError 1314] A required privilege is not held by the client), identically on pristine origin/main — an environment
    limitation of this Windows box, not this change.
  • The new self-test scenario run against the module directly yields
    1 predicted follow-up task on the pre-fix mirror and 0 on the fixed
    mirror (the Rust emission is 0), so the test discriminates exactly the
    drifted rule.

Known gaps

  • The existing noise-rule phrase-parity self-test
    (self_test_noise_rule_phrase_parity_with_rust) compares only
    contains("…") phrases and structurally cannot catch non-phrase predicate
    drift such as source-provenance or kind matches — this incident is exactly
    such drift, found by the artifact contract instead. A structural-parity
    guard is a separate, larger obligation and is out of scope here.
  • No Rust changes, so no cargo validation was run.

Reference: #1341 (campaign enabler; smoke run 42219180484). This PR does not
close that issue.

…verifier

Action-smoke run 42219180484 (head 9b0515b) failed only at the verifier
step: review/orchestrator_plan.json omitted exactly two tertiary
refutation-confirmation observation follow-up tasks that the verifier's
expected_orchestrator_plan recomputation predicted (follow-up-5b086cfae3c6
for obsgrp-0008-2d45ab4ac464 and follow-up-54be0a39f8ab for
obsgrp-0010-a2fe5afa15a3, both sources=["model-failed-objection"]).

Classification: verifier-stale. PR #1497 (commit 8f77a63) deliberately
extended the shared private-audit predicate is_pr_body_artifact_only_observation
with is_model_only_failed_objection (src/noise.rs:64), which
follow_up_task_for_observation_group (src/follow_up_routing.rs:164)
consumes: model-only failed objections stopped receiving follow-up tasks
by construction of the shared predicate. The Python mirror never gained
that condition - nor the older #914 (commit f6c7a1c) specialist-audit
kind match (src/noise.rs:65-68), nor the #914 internal-audit kind/status
vocabulary (src/validate.rs:16-34) that require_observation_schema
enforces downstream of the plan check.

Mirror all three in scripts/verify-bun-review-artifacts.py, citing the
Rust rules, and add the discriminating self-test
self_test_model_only_failed_objection_follow_up_suppressed (suppressed
for model-only provenance, preserved with an independent evidence
source, internal-audit kinds artifact-only; Rust replay
src/noise.rs:1154-1208).

Validation:
- scripts/verify-bun-review-artifacts.py against the retained smoke
  artifact set F:/Temp/smoke-artifacts/ub-review-model-smoke with
  --min-ok-model-lanes 10 --require-no-model-evidence-failures: fails on
  origin/main with "review/orchestrator_plan.json does not match
  pre-follow-up evidence routing", passes with this change.
- --self-test: passes under WSL; on native Windows it crashes in the
  pre-existing self_test_task_ledger_receipt_links symlink step
  (WinError 1314), identically on pristine origin/main, so that block is
  an environment limitation, not this change.
- the new self-test scenario yields 1 follow-up task on the pre-fix
  mirror and 0 on the fixed mirror (Rust emits 0).

Reference: #1341 (campaign enabler; smoke run 42219180484).
@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 155 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

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: 15db7804-00fe-4b1f-9597-9d9868f79ccb
Commits

Reviewing files that changed from the base of the PR and between 9b0515b and 0139cd4.

Files selected for processing: 1

  • scripts/verify-bun-review-artifacts.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven
EffortlessSteven merged commit f29e012 into main Nov 6, 2026
14 checks passed
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