Skip to content

ops: the AI review leaves out spec 011's feasibility evidence - #447

Merged
bartekus merged 1 commit into
mainfrom
ops/review-exclude-011-qualification
Nov 2, 2026
Merged

bartekus merged 1 commit into
mainfrom
ops/review-exclude-011-qualification

Conversation

@bartekus

@bartekus bartekus commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Adds backends/rustev-backend-embed-linear/qualification to the AI review's review.exclude, as the owner chose on 2026-11-01.

Why. Spec 011 decision 4 commits the refused feasibility record. feasibility.json is one canonical line of about 379 KB, because stage 2 (3.2.2) requires the reference token ids and pooled embeddings inside it, and it binds reference.json (about 460 KB, 15,742 lines) and the probe output by SHA-256 as evidence. Sent to the reviewer, they exceed its call budget and the review skips or times out.

Why skipping it is safe. The directory holds measured evidence, not handwritten code. The change that commits it (spec 011 increment 3 part 1) adds tests/feasibility_record.rs to the crate, run by make code in the required code job: it checks the record's closed envelope, canonical encoding and contract digest (feasibility.sha256, spec 002 3.3.2) and the SHA-256 of every evidence file the record binds. The spec paragraph and the test that describe and check it stay under review.

Change. The list is now .statecraft/derived, crates/rustev-contract/schema, integrations/rustev-node/types, integrations/rustev-wasm/types, backends/rustev-backend-embed-linear/qualification, tools/rustev-conformance/cases. Re-rendered with statecraft-cli init plan|apply at profile revision 20 (the repository's current revision; no revision change): only .github/workflows/statecraft-ai-review.yml and .statecraft/setup/github-actions-rust.json change. AGENTS.md's note is updated.

Verification. make gate passes. init apply reports files-installed satisfied.

Needs the owner's statecraft-review-exception approval once.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

AI review (findings)

Reviewing the four changed paths. Three are managed (.github/workflows/statecraft-ai-review.yml, .statecraft/environment.json, .statecraft/setup/github-actions-rust.json) and their digests are consistent with each other. The substantive changes are:

  1. Adding backends/rustev-backend-embed-linear/qualification to review.exclude in both the environment file and the setup file.
  2. Updating AGENTS.md to document that exclusion, asserting the directory is "checked with the crate's validate_feasibility example."

Finding — missing required CI enforcement for the new exclusion

Every existing review.exclude entry is backed by a named, required CI check:

Excluded path CI check
crates/rustev-contract/schema crates/rustev-contract/tests/schemas.rs (runs in make code)
integrations/rustev-node/types, integrations/rustev-wasm/types gen-types --check
tools/rustev-conformance/cases conformance suite bless/harvest

The new entry (backends/rustev-backend-embed-linear/qualification) asserts verification via a Rust example (validate_feasibility), not a test. Cargo examples are not executed by cargo test and therefore not covered by make code. The PR does not add validate_feasibility to extra_required_jobs and introduces no new workflow that runs it. The extra_required_jobs list in .statecraft/setup/github-actions-rust.json is unchanged (still boundaries, verify, bindings, release-checks), and none of those clearly runs this example for the embed-linear backend.

The result is that backends/rustev-backend-embed-linear/qualification is now excluded from AI review, but the described verification mechanism is not enforced by any required gate. Files in that directory could be replaced without any automated check catching the change, which is the exact failure mode the exclusion pattern is designed to prevent.

{"head": "2a7eb7b727d22dc575302902b77a5e46bb650d98", "verdict": "findings", "findings": [{"path": "AGENTS.md", "line": 68, "summary": "The new review.exclude entry for backends/rustev-backend-embed-linear/qualification claims CI verification via a validate_feasibility example, but that example is not a test (not run by make code), is not listed in extra_required_jobs, and no new workflow is added, leaving the excluded directory without any enforced CI check."}]}

Subject: a49e40f...2a7eb7b, diff digest 390a9da62e6ca3f5d96df2074353064ee455a753a04304e2164c49a72fb751c1, 1 call(s). An AI comment is not an approval.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

AI review (findings)

Looking at the diff, the key changes are:

  1. backends/rustev-backend-embed-linear/qualification is added to review.exclude in both environment.json and github-actions-rust.json.
  2. AGENTS.md is updated to document this exclusion, stating the integrity is verified by tests/feasibility_record.rs run under make code.
  3. Managed file digests are updated consistently.

Finding: missing integrity-check test

AGENTS.md (updated) states:

The qualification directory holds spec 011's measured feasibility evidence … the crate's test tests/feasibility_record.rs, run by make code, checks the record's envelope, encoding and contract digest and every evidence file's SHA-256, so review the record's spec paragraph and the test, never the evidence bytes.

This test is the entire justification for excluding backends/rustev-backend-embed-linear/qualification from AI review. The base REPO CONTEXT lists every file under backends/rustev-backend-embed-linear/tests/ — only tests/bundle.rs appears. tests/feasibility_record.rs is absent. The PR diff does not add it either. The governance document therefore describes a verification control that does not exist: the qualification directory is excluded from review, the claimed mechanical integrity check is not present, and there is nothing else in the diff to compensate.

{"head": "2d9cf26c8f4874e7f7727aa814e8545966f0320b", "verdict": "findings", "findings": [{"path": "AGENTS.md", "line": 70, "summary": "AGENTS.md justifies excluding backends/rustev-backend-embed-linear/qualification from AI review by citing tests/feasibility_record.rs, but that test file does not exist in the base commit and is not added by this PR, leaving the exclusion without the integrity check it claims."}]}

Subject: 3dc1e1c...2d9cf26, diff digest 2ce01a531f020f4b0735963f51cb3622da9345f32400ec63f52b43f1da1958da, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 2, 2026 10:10 — with GitHub Actions Inactive
Adds backends/rustev-backend-embed-linear/qualification to
review.exclude. The feasibility record carries the stage 2 reference
embeddings (about 379 KB on one canonical line) and binds about 460 KB of
reference output by SHA-256; both exceed the review's call budget. The
record is bound by its contract digest and checked with the crate's
validate_feasibility example. Re-rendered at profile revision 20.
@bartekus
bartekus force-pushed the ops/review-exclude-011-qualification branch from 2d9cf26 to d7ea586 Compare November 2, 2026 17:46
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

AI review (findings)

The PR adds backends/rustev-backend-embed-linear/qualification to review.exclude in environment.json, github-actions-rust.json, and AGENTS.md.

Digest consistency: The digest for .github/workflows/statecraft-ai-review.yml updated from 5ed9c4c... (3802 bytes) to 6e7f35c... (3853 bytes), and the matching entry in .statecraft/setup/github-actions-rust.json carries the same new digest. The size delta (51 bytes) is plausible for adding one path string. The .statecraft/setup/github-actions-rust.json digest update (17157 → 17217, +60 bytes) is likewise plausible. Internally consistent.

Exclusion rationale: All other paths in review.exclude have existing CI backstops verified against a known source (schema tests, gen-types --check, conformance bless/harvest). AGENTS.md explicitly states the integrity check for this new path (tests/feasibility_record.rs, run by make code) will arrive in a future PR, not this one. The PR also acknowledges the directory itself does not yet exist.

Concrete finding: The exclusion is live before its CI guard exists. If any content is added to backends/rustev-backend-embed-linear/qualification before tests/feasibility_record.rs merges, that content bypasses AI review with no currently-existing CI backstop — unlike every other excluded path, which already has a CI check in place. This is an inconsistency with the governance model AGENTS.md itself describes ("CI checks each [excluded path] against its source").

{"head": "d7ea58645fb1c0c09810124aae7ce3b179bbb979", "verdict": "findings", "findings": [{"path": "AGENTS.md", "line": 70, "summary": "The new review.exclude entry for backends/rustev-backend-embed-linear/qualification has no existing CI backstop: the referenced integrity test (tests/feasibility_record.rs) is deferred to a future PR, unlike every other excluded path which already has a CI check, leaving a gap where content added to that path before the guard merges would bypass both AI review and automated verification."}]}

Subject: 50ca9ad...d7ea586, diff digest f53df9c0946cd5d2c74cc7e2fd8c91fa2b7b01e4e8067dadb8116d8e73141a15, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 2, 2026 17:48 — with GitHub Actions Inactive
@bartekus

bartekus commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Review note on the finding at AGENTS.md line 70 (the exclusion has no CI backstop until tests/feasibility_record.rs lands).

The window is real but it is created by the required sequencing, not by an error in this change. The exclusion has to be on the review's configuration before the feasibility record is reviewed, because the record's evidence (hundreds of kilobytes of reference embeddings) is what the exclusion exists for, and workflow edits go in their own pull request. The record pull request, which is next in line behind this one, adds the evidence and the test together, so the directory never exists on main without its guard. Until then the exclusion matches no file, and any pull request that adds files under that path shows them in its diff and is still subject to governance, the code checks and spec coupling to spec 011.

No change is made for it. The owner's review exception is requested for this head.

@bartekus
bartekus added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 9fca258 Nov 2, 2026
58 of 60 checks passed
@bartekus
bartekus deleted the ops/review-exclude-011-qualification branch November 2, 2026 21:19

This branch was previously deployed

1 inactive deployment
statecraft-review-exception — d7ea5864 Deployed Nov 2, 2026 by bartekus via review-exception #3014
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