Skip to content

072 increment 5: the spec joins acceptance; the page links its schemas - #596

Merged
bartekus merged 1 commit into
mainfrom
impl/072-inc5-acceptance
Nov 11, 2026
Merged

bartekus merged 1 commit into
mainfrom
impl/072-inc5-acceptance

Conversation

@bartekus

Copy link
Copy Markdown
Contributor

Spec 072 increment 5 (last): acceptance, and the page links its schemas.

  • 072 joins VERIFIED_SPECS and the selection acceptance group beside 029, the spec it amends, so the merge queue runs its Verification, including the feature page's example (R-2).
  • The Verification's last command found the binary at target/debug/rustev, which holds only with the default target directory, and run.sh changes directory before running it. It now reads the target directory from cargo metadata, and run.sh resolves a relative RUSTEV first. Spec 3.4.4 says the same; the implementation record notes the correction.
  • docs/features/selection-gate.md links the four published schemas (summary table, "Writing a gate", "Reading the result").
  • implementation: complete.

Stacked on #592 (its tests/io.rs cases are in this spec's Verification).

Verified locally: make gate; spec-spine verify 072 passed (5 commands, the example's verdicts matched); python3 -m unittest over scripts/acceptance; verify.py --matrix validates the groups against VERIFIED_SPECS.

@bartekus bartekus added the statecraft:stacked-ci Run the full CI matrix on a stacked pull request label Nov 11, 2026
@bartekus
bartekus force-pushed the impl/072-inc2-outdir branch from 5317ed8 to 7960488 Compare November 11, 2026 04:14
@bartekus
bartekus force-pushed the impl/072-inc5-acceptance branch from 180a3db to e483a26 Compare November 11, 2026 04:14
@github-actions

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the five changed paths against governance context, spec contract rules, and internal consistency.

Makefile – adding 072 to VERIFIED_SPECS is consistent with the spec now being approved+complete and joining the selection acceptance group. No issue.

specs/072-documentation-source-gaps/spec.md – implementation: in-progress → complete. The spec was already approved (owner act already performed); transitioning implementation to complete is the normal workflow closure. The updated Verification command replaces the hardcoded target/debug/rustev with cargo metadata-derived target directory via jq. The --no-deps flag is correct (target_directory is a top-level metadata field); double-quoting "$d/debug/rustev" in the inner shell is correct; the sh -c '...' single-quote boundary is correct. No defect found.

docs/features/selection-gate/example/run.sh – the added case $RUSTEV in */*) … esac block resolves a relative RUSTEV value to an absolute path before the script cds. case does not perform word splitting on the matched word; assignment RUSTEV=$(…) suppresses word splitting; "$RUSTEV" is double-quoted in dirname and basename. Correct POSIX shell practice.

docs/features/selection-gate.md – schema links added for rustev.selection-gate-1, rustev.baseline-1, rustev.repeat-config-1, rustev.selection-1. The count matches the spec's "four published schemas" claim. The schema files are excluded from AI review (they live under a generated/excluded path) but the spec's own verification (cargo test -p rustev-eval --locked --test schemas) provides the existence check. Comment updates are consistent with the removed source-gap status.

scripts/acceptance/verify.py – 072 added to selection group beside 029 (the spec it amends). Comment explains the grouping rationale. Consistent with the spec's increment 5 description.

No concrete defects found across all five paths.

{"head": "e483a26cb276a65dd133101a0f8d946e414161d2", "verdict": "no-findings", "findings": []}

Subject: 7960488...e483a26, diff digest 663da52a3cf8f89f8c4a98fb8d60ffe9c535af126296e10daaebeb13e6487600, 1 call(s). An AI comment is not an approval.

Base automatically changed from impl/072-inc2-outdir to main November 11, 2026 05:06
072 joins VERIFIED_SPECS and the selection acceptance group beside 029,
so the merge queue runs its Verification, including the feature page's
example. The Verification finds the debug binary through cargo metadata's
target directory, and run.sh resolves a relative RUSTEV before changing
directory. The page links the four published schemas. Implementation
complete.
@bartekus
bartekus force-pushed the impl/072-inc5-acceptance branch from e483a26 to c846590 Compare November 11, 2026 05:07
@bartekus
bartekus enabled auto-merge November 11, 2026 05:07
@github-actions

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the five changed paths against the governance context.

Makefile — 072 added to VERIFIED_SPECS. Consistent with implementation: complete and the increment 5 record. No issue.

specs/072-documentation-source-gaps/spec.md — implementation: in-progress → complete. The contract table treats approved + complete as settled (unresolved units become errors). The diff shows all five increments recorded as done, which supports the factual claim. The governance documents treat status: approved as the owner's act; implementation: complete is a factual record of work done, not an authority transition. No contradiction found.

The Verification command change replaces the hardcoded target/debug/rustev with cargo metadata-derived path:

sh -c 'd=$(cargo metadata --format-version 1 --no-deps --locked | jq -r .target_directory) && env RUSTEV="$d/debug/rustev" sh docs/features/selection-gate/example/run.sh'

target_directory is a stable top-level key in cargo metadata --format-version 1 output. --no-deps doesn't affect it. No defect here.

docs/features/selection-gate/example/run.sh — The relative-path resolution:

case $RUSTEV in */*) RUSTEV=$(CDPATH='' cd -- "$(dirname -- "$RUSTEV")" && pwd -P)/$(basename -- "$RUSTEV") ;; esac

The */* pattern correctly identifies path-like values vs. bare command names. CDPATH='' guards against CDPATH interference. The resolution happens before HERE and DATA are set, so it's safe. No defect.

docs/features/selection-gate.md — Schema links added pointing to ../../crates/rustev-eval/schema/rustev.selection-gate-1.schema.json (and three others). The document lives at docs/features/selection-gate.md, so ../../crates/rustev-eval/schema/ resolves to crates/rustev-eval/schema/. The increment 3 record in the spec says these schemas were published and a tests/schemas.rs test checks them against their source; the repo context is truncated so I cannot confirm the files exist, but I also cannot show they are absent — the evidence doesn't support a finding either way.

scripts/acceptance/verify.py — 072 added to the selection group alongside 029. The comment is consistent with the spec's increment 5 description. No issue.

No concrete defects found across the five paths.

{"head": "c84659000b24c7f8aa1e2070ceefde1b9e98483e", "verdict": "no-findings", "findings": []}

Subject: 16a1f81...c846590, diff digest 663da52a3cf8f89f8c4a98fb8d60ffe9c535af126296e10daaebeb13e6487600, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit 57931dc Nov 11, 2026
49 checks passed
@bartekus
bartekus deleted the impl/072-inc5-acceptance branch November 11, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

statecraft:stacked-ci Run the full CI matrix on a stacked pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant