Skip to content

ops: the AI review leaves out the generated reference pages - #586

Closed
bartekus wants to merge 1 commit into
mainfrom
ops/review-exclude-reference
Closed

bartekus wants to merge 1 commit into
mainfrom
ops/review-exclude-reference

Conversation

@bartekus

@bartekus bartekus commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Adds docs/reference to the AI review's review.exclude, as the owner chose on 2026-11-10.

Why. Spec 071 (next pull request) commits one spec-spine reference page per spec under docs/reference/: 70 pages, about 455 KB, generated by spec-spine reference generate from the specs and the committed index. Sent to the reviewer they exceed its budget and the review times out.

Why skipping it is safe. The pages are a pure function of the specs and the index. spec-spine reference check regenerates them in memory and fails on any difference; spec 071 puts that check in make gate and its declared acceptance. A wrong page is fixed in the spec or code that produced it, never in the page, and those sources stay under review.

Change. Re-rendered with statecraft-cli init plan|apply at profile revision 27 (the repository's current revision; statecraft-cli built at c6df9cec, the commit that rendered #560): only .github/workflows/statecraft-ai-review.yml and .statecraft/setup/github-actions-rust.json change. AGENTS.md's note is updated in #587, with spec 071, so it never names a spec or check the base lacks (review finding ba5ebcae3508).

Verification. make gate passes; init apply reports files-installed satisfied; authored-content check clean.

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

Review note (355f656): 9abcde0c26f6 aa649d92f794 is a false positive. .statecraft/setup/github-actions-rust.json is changed in this pull request (the docs/reference line), and its sha256 is 1229483256bc2e8081215f47d9e642420af3a419d0b100e69bb0083839fe1518 at 24,268 bytes, exactly what .statecraft/environment.json records; init apply reported files-installed satisfied.

Review note (355f656): is intended. The AGENTS.md note naming the check (spec-spine reference check, spec 071) lands in #587 with the spec and the check, after the earlier finding ba5ebcae3508 on this pull request said the note must not cite a spec the base lacks.

@github-actions

Copy link
Copy Markdown

AI review (findings)

Reviewing the four changed paths. The .github/workflows/statecraft-ai-review.yml is MANAGED and digest-verified, so I skip its content. I focus on .statecraft/environment.json, .statecraft/setup/github-actions-rust.json, and AGENTS.md.

Digest consistency check

environment.json records two digest updates:

  • .github/workflows/statecraft-ai-review.yml: be5b5186… → 8902e7a7… (5901 → 5916 bytes)
  • .statecraft/setup/github-actions-rust.json: b4b686aa… → 12294832… (24244 → 24268 bytes)

github-actions-rust.json records for statecraft-ai-review.yml: same transition be5b5186… → 8902e7a7…. Both records agree.

The byte-size delta for github-actions-rust.json (+24 bytes) is consistent with inserting one "docs/reference", entry.

The docs/reference exclusion and spec 071 claim

AGENTS.md (after the edit) states that CI checks docs/reference via spec-spine reference check for spec 071's reference pages. The repo context lists the spec registry through spec 070 (070-extract-rules-2). Spec 071 does not appear in the base commit, and the PR diff does not add one.

This matters because:

  1. The stated justification for the AI-review exclusion is an unverifiable claim — there is no spec 071 to corroborate that the check exists or is required.
  2. The existing pattern for the qualification exclusion was established when the governing spec (011) already existed. Here the exclusion is added before the spec that would own the directory.
  3. When a future PR eventually adds docs/reference files, the exclusion is already active and will suppress AI review. If that PR omits the spec-spine reference check wiring, the stated safeguard will not be in place, with no governance gate to catch it.

This is a concrete gap: the AGENTS.md claim about CI behaviour names a spec that does not exist, making the safety rationale for the exclusion unverifiable from this PR.

{"head": "95775f49b02dafa962b7aa26b4f8384783fe064d", "verdict": "findings", "findings": [{"path": "AGENTS.md", "line": 66, "severity": "medium", "category": "correctness", "summary": "AGENTS.md justifies the docs/reference review exclusion with a reference to spec 071 and a spec-spine reference check, but spec 071 does not exist in the base commit and is not added by this PR, leaving the claimed CI safeguard unverifiable."}]}

Subject: cfacebd...95775f4, diff digest 7fe213dc360485ef74687e8fdd793f77d2e8d30c5bf060c60548bc9ea7b1962a, 1 call(s). An AI comment is not an approval.

Adds docs/reference to review.exclude, re-rendered at profile revision 27.
The next change commits spec 071's generated pages there, with the check
that regenerates and compares them and the AGENTS.md note.
@bartekus
bartekus force-pushed the ops/review-exclude-reference branch from 95775f4 to 355f656 Compare November 10, 2026 18:33
@bartekus bartekus changed the title ops: the AI review leaves out spec 071's generated reference pages ops: the AI review leaves out the generated reference pages Nov 10, 2026
@github-actions

Copy link
Copy Markdown

AI review (findings)

Looking at the three changed paths: statecraft-ai-review.yml (MANAGED, trusted), environment.json, and github-actions-rust.json.

Observation 1 — two digest updates in environment.json, only one file in PR

The environment.json diff contains two separate hunks that update digests for managed files:

  • Hunk at @@ -29,9 +29,9 @@: updates statecraft-ai-review.yml digest to 8902e7a... (5,901 → 5,916 bytes). This matches the managed file listed in SUBJECT and the same digest update in github-actions-rust.json. Consistent.

  • Hunk at @@ -73,9 +73,9 @@: updates a second managed file's digest to 1229483... (24,244 → 24,268 bytes), with the same statecraft-setup:github-actions-rust@27 identity. This file — almost certainly .github/workflows/statecraft-ci.yml given its ~24 KB size — is not among the PR's three changed paths. The github-actions-rust.json diff also does not update this second digest. The committed digest record in environment.json would therefore not match the actual on-disk file, which would cause the managed-file digest verification to fail on the unchanged copy of statecraft-ci.yml.

Observation 2 — docs/reference added to review.exclude without documented verification

environment.json line ~276 and github-actions-rust.json line ~274 both add "docs/reference" to the review.exclude list. AGENTS.md documents every other excluded path with an explicit CI verification equivalent (schema tests, gen-types --check, conformance bless/harvest, feasibility_record.rs). No such verification is described for docs/reference, leaving a potential blind spot in review coverage if that directory contains authored rather than generated content.

{"head": "355f6567ba8b2eeed9fb6ae5e574b6f082f43634", "verdict": "findings", "findings": [{"path": ".statecraft/environment.json", "line": 73, "severity": "medium", "category": "correctness", "summary": "The hunk at line 73 updates the digest and byte count for a second managed file (24,244 → 24,268 bytes, identity statecraft-setup:github-actions-rust@27) that does not appear among the PR's changed paths, so the recorded digest cannot match any file committed in this PR and will fail managed-file verification."}, {"path": ".statecraft/environment.json", "line": 273, "severity": "low", "category": "other", "summary": "docs/reference is added to review.exclude without a documented CI verification equivalent, unlike every other excluded path whose machine-generated nature is backed by a named test or check in AGENTS.md."}]}

Subject: cfacebd...355f656, diff digest 4610216a5ddecdbd544a29c6a56e5acd47bfc3938b501018cbe2264794c67cb5, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 10, 2026 18:35 — with GitHub Actions Inactive
@bartekus
bartekus temporarily deployed to statecraft-review-exception November 10, 2026 18:37 — with GitHub Actions Inactive
@bartekus
bartekus added this pull request to the merge queue Nov 10, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 10, 2026
@bartekus
bartekus added this pull request to the merge queue Nov 10, 2026
@bartekus
bartekus removed this pull request from the merge queue due to a manual request Nov 10, 2026
@bartekus
bartekus added this pull request to the merge queue Nov 10, 2026
@bartekus
bartekus removed this pull request from the merge queue due to a manual request Nov 10, 2026
@bartekus

Copy link
Copy Markdown
Contributor Author

Closed with #587: no docs/reference directory will exist, so the review exclusion is not needed.

This branch was previously deployed

1 inactive deployment
statecraft-review-exception — 355f6567 Deployed Nov 10, 2026 by bartekus via review-exception #3939
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