Skip to content

spec(061): increment 6, seeds and declared verification; complete - #497

Merged
bartekus merged 1 commit into
mainfrom
impl/061-inc6
Nov 5, 2026
Merged

bartekus merged 1 commit into
mainfrom
impl/061-inc6

Conversation

@bartekus

@bartekus bartekus commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Spec 061 (host-scored repeat sets, A-77), increment 6 of 6: mutation seeds, declared verification and closure.

Stacked on #495 (increment 5).

  • crates/rustev-eval/mutation/seeds.py: the seven acceptance seeds under spec 061 (joins OWN_RUNS): mixed provenance accepted, an unknown latency skipped, unknown cost counted as zero, failed cases included in latency, stable cohorts compared for host sets, observation: "host" treated as historical, a duplicate host.run accepted. tests/host_run.rs adds the unknown-cost case.
  • Spec 061: the verify:cli block, extends edges on Makefile and scripts/acceptance/ (001, additive), the increment 6 record and implementation: complete.
  • Makefile: 061 in VERIFIED_SPECS. scripts/acceptance/verify.py: 061 in cli-backends beside 029 and 041.

@bartekus bartekus added the statecraft:stacked-ci Run the full CI matrix on a stacked pull request label Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the five changed files for bugs, security problems, and inconsistencies.

specs/061-host-scored-repeat-sets/spec.md

  • Lifecycle transition pending → complete on an approved spec is the correct terminal state.
  • Two new extends edges (Makefile and scripts/acceptance/) are declared with nature: additive against 001-boundaries-and-authority, matching the actual edits in the diff.
  • Increment 6 prose lists exactly seven seeds, matching the seven tuples added in seeds.py.

Makefile

  • 061 added to VERIFIED_SPECS exactly as the spec declares. No other entries affected.

scripts/acceptance/verify.py

  • 061 joins cli-backends alongside 029 and 041, as the spec states and as the comment in the diff confirms.

crates/rustev-eval/mutation/seeds.py

  • "spec 061" added to OWN_RUNS; this matches the pattern for the other specs that filter their own seeds from spec 004's unfiltered run.
  • Seven seeds added. Labels match the spec prose: "mixed provenance accepted", "an unknown latency skipped", "unknown cost counted as zero", "failed cases included in latency", "stable cohorts compared for host sets", "observation host treated as historical", "a duplicate host.run accepted".
  • Seeds 2 and 4 both target " if !failed {" in host_run.rs with different replacements; this is standard mutation testing and correct as long as the string is unique in that file (not verifiable from the diff, but the indentation-matched literal makes a collision unlikely).
  • Seed 3's multi-line old_text is well-formed Python triple-quoted string.

crates/rustev-eval/tests/host_run.rs

  • an_unknown_cost_is_unknown_never_zero sets cases[2].cost to HostCost::Unknown with reason "billing_lag" and asserts the resulting measure is CaseMeasure::Unknown { reason: "cost unknown: billing_lag" }. This directly detects seed 3's mutation (Unknown → Mean { num: 0.0, den: 1 }). Logic is correct.

No inconsistencies between files. No security concerns. No lifecycle violations. No concrete defects found.

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

Subject: a69546e...9ad780d, diff digest cfc76c20b6af62d1d49e3a2d000e9beecd212299bb5868e0414d9bb1cb81d4f3, 1 call(s). An AI comment is not an approval.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the five changed paths for concrete defects.

Makefile: 061 is added to VERIFIED_SPECS. Consistent with the spec's verification block and the verify.py change.

specs/061-host-scored-repeat-sets/spec.md: implementation: pending → complete. Per the contract lifecycle table, approved + complete is the settled/closed state; appropriate for a final increment. Two new extends edges are added, both on 001-boundaries-and-authority with nature: additive, covering Makefile and scripts/acceptance/ — the two paths actually changed in this PR. The verification block and implementation record are consistent with the declared increments.

scripts/acceptance/verify.py: 061 added to cli-backends beside 029 and 041. The comment accurately describes the reason. No other group is affected.

crates/rustev-eval/mutation/seeds.py: "spec 061" joins OWN_RUNS, which is correct (the seeds should not be re-run by spec 004's unfiltered pass). Seven seeds are added. Seeds 2 ("an unknown latency skipped") and 4 ("failed cases included in latency") both target the identical string " if !failed {" in host_run.rs; this is intentional mutation-testing practice — two distinct mutations of the same guard — and not a defect. Each seed targets its named property; the new test in host_run.rs covers seed 3 directly.

crates/rustev-eval/tests/host_run.rs: an_unknown_cost_is_unknown_never_zero sets cases[2].cost to HostCost::Unknown { unknown: "billing_lag" } and asserts the measure is CaseMeasure::Unknown { reason: "cost unknown: billing_lag" }. This directly catches seed 3's mutation (Unknown → Mean { num: 0.0 }). The test is well-targeted and contains no security or logic issues.

No concrete defects found.

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

Subject: f486fe2...3590624, diff digest 9d218d72fe3776a24b9cf86000628c431b7a69edfa3d61612bea4792930a524a, 1 call(s). An AI comment is not an approval.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the five changed files for bugs, security problems, and inconsistencies.

specs/061-host-scored-repeat-sets/spec.md

Lifecycle transition implementation: pending → implementation: complete on an approved spec is correct per the contract table ("settled, not schedulable"). The two new extends edges (Makefile and scripts/acceptance/, both additive against 001-boundaries-and-authority) are consistent with what the PR actually changes. The amends: 029 and 041 language matches the cli-backends comment in verify.py.

Makefile

Adds 061 to VERIFIED_SPECS. Consistent with the declared make verify step in the spec's Verification block.

scripts/acceptance/verify.py

Adds 061 to cli-backends. Comment "061 joins cli-backends beside 029 and 041" is accurate.

crates/rustev-eval/mutation/seeds.py

Seven seeds are listed; the implementation record names exactly seven. "spec 061" joins OWN_RUNS, so spec 004's unfiltered run excludes them, consistent with the existing convention. Each seed targets a named invariant from the spec. Seed 3 ("unknown cost counted as zero") is the only seed that relies on a multi-line original string—its match must be byte-exact with the production src/host_run.rs. Seeds 2 and 4 both use " if !failed {" as the original; they are applied in separate runs so there is no conflict.

crates/rustev-eval/tests/host_run.rs

an_unknown_cost_is_unknown_never_zero sets cases[2].cost to HostCost::Unknown and asserts CaseMeasure::Unknown. This correctly catches seed 3's mutation (Unknown → Mean { num: 0.0, den: 1 }). The test must assume docs() returns at least three cases (index 2); if the fixture produces fewer, the test would panic at runtime, but this is a property of the existing test harness not visible in the diff.

No concrete defects found in the supplied evidence.

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

Subject: 20be5c6...6f9d91c, diff digest 5ff70b063cbdb4e6be15ade6d6b4c58deef3a45dd908da7ee890d4671743692f, 1 call(s). An AI comment is not an approval.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing each changed file systematically.

Makefile: 061 added to VERIFIED_SPECS. Consistent with the spec's verification section declaring it should be in that list.

seeds.py: "spec 061" added to OWN_RUNS (correct — keeps these seeds out of spec 004's unfiltered run). Seven seeds added, each named. Cross-checking against the implementation record's list: "mixed provenance accepted, an unknown latency skipped, unknown cost counted as zero, failed cases included in latency, stable cohorts compared for host sets, observation host treated as historical, a duplicate host.run accepted" — seven names, seven entries in the diff. ✓

The seed for "unknown cost counted as zero" mutates HostCost::Unknown(u) → CaseMeasure::Unknown { reason: ... } to CaseMeasure::Mean { num: 0.0, den: 1 }. The new test an_unknown_cost_is_unknown_never_zero in host_run.rs checks that the result is CaseMeasure::Unknown, so the mutant is detected. Consistent.

tests/host_run.rs: New test modifies an existing fixture entry at index 2. No new file is created, so the archive file list is not extended (consistent with the spec 021 note).

scripts/acceptance/verify.py: 061 placed in cli-backends beside 029 and 041, matching the spec's stated placement rationale.

specs/021-packaging-and-first-release/spec.md: Records that rustev-eval unpacks to 787,933 bytes against the old bound of 786,432 (exceeded), so the bound is raised to 851,968 (832 KiB). The archive remains at 195,423 bytes against 196,608 (192 KiB), within range. The JSON policy update matches exactly.

tools/rustev-release/archive-policy.json: max_unpacked_bytes for rustev-eval raised from 786,432 to 851,968; max_archive_bytes unchanged at 196,608. Consistent with spec 021 prose.

specs/061-host-scored-repeat-sets/spec.md: implementation: pending → complete. Two extends edges added for Makefile and scripts/acceptance/ paths, both citing spec 001 (boundaries-and-authority) as owner, consistent with AGENTS.md. Verification block replaced with actual verify:cli commands; the sh crates/rustev-eval/mutation/seeds.sh "spec 061" command is consistent with the seed filter. Increment 6 record matches all changes in this PR.

No bugs, security issues, or governance inconsistencies found.

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

Subject: 20be5c6...8a5a615, diff digest f54c58eef4d9956535cf24b622d5529ff53b7b4d6bc40f1a8fa5cf2788d03bfc, 1 call(s). An AI comment is not an approval.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing each changed path for bugs, security issues, and inconsistencies.

Makefile — 061 added to VERIFIED_SPECS. Matches the new extends edge in spec 061 claiming additive authority over Makefile via spec 001. Consistent.

crates/rustev-eval/mutation/seeds.py — Seven seeds added under "spec 061", which joins OWN_RUNS. The spec text in Increment 6 says "seven acceptance seeds"; the diff shows exactly seven. Each seed targets a plausible behavioral path: host_run.rs (latency/cost/failure guards) and host_select.rs/host_repeat.rs (provenance, cohort, duplicate-handle checks). Consistent.

crates/rustev-eval/tests/host_run.rs — an_unknown_cost_is_unknown_never_zero sets cases[2].cost to HostCost::Unknown("billing_lag") and asserts CaseMeasure::Unknown. The third seed mutates the production branch that returns CaseMeasure::Unknown to return CaseMeasure::Mean { num: 0.0, den: 1 }. The test correctly detects that mutation. Consistent.

scripts/acceptance/verify.py — 061 added to cli-backends group, and the explaining comment matches the spec's rationale. Consistent with the new extends edge.

specs/021-packaging-and-first-release/spec.md — Records that rustev-eval unpacked grows to 787,933 bytes, exceeding the old bound of 786,432, and raises it to 851,968 (832 KiB). The archive bound (196,608) is left unchanged, and the note confirms the archive at 195,423 bytes still fits. Consistent with the archive-policy.json change.

specs/061-host-scored-repeat-sets/spec.md — implementation: pending → implementation: complete. Per the contract, approved + complete is settled. The two new extends edges (spec 001, additive) cover the Makefile and scripts/acceptance/ changes in this diff. The Verification block names the commands and groups correctly. Increment 6 record matches the diff content. Consistent.

tools/rustev-release/archive-policy.json — max_unpacked_bytes for rustev-eval updated from 786,432 to 851,968; max_archive_bytes unchanged at 196,608. Matches spec 021's recorded measurement. Consistent.

No concrete defects found.

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

Subject: 8f1f614...b6c7a51, diff digest f54c58eef4d9956535cf24b622d5529ff53b7b4d6bc40f1a8fa5cf2788d03bfc, 1 call(s). An AI comment is not an approval.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the PR against the governance rules and consistency of the changes.

Makefile: Adds 061 to VERIFIED_SPECS. Consistent with the spec 061 extends edge claiming the Makefile unit (additive, via spec 001) and with the verification block now declared complete.

seeds.py: Adds "spec 061" to OWN_RUNS and 7 seeds. I count exactly 7 entries in the diff, matching the implementation record's claim of "seven acceptance seeds." Seeds 2 ("an unknown latency skipped") and 4 ("failed cases included in latency") both target " if !failed {" in host_run.rs as the old string; this is not a defect — each is an independent substitution applied to a fresh copy, which is the standard mutation pattern.

host_run.rs: Adds an_unknown_cost_is_unknown_never_zero. It exercises the billing_lag unknown-cost path and asserts CaseMeasure::Unknown, directly validating the negative control in seed 3. The test correctly references HostCost::Unknown and Unobserved.

verify.py: Adds 061 to cli-backends. The comment "061 joins cli-backends beside 029 and 041, the specs it amends" is consistent with the spec title and with the extends edges declared in spec 061.

spec 021: Records the size exceedance (787,933 > 786,432) and raises the bound to 851,968 (832 KiB). The archive bound (max_archive_bytes: 196608) is left unchanged, consistent with the note that the archive (195,423 bytes) stays within its existing bound.

archive-policy.json: max_unpacked_bytes for rustev-eval updated from 786432 to 851968. Consistent with spec 021's measurement narrative.

spec 061: implementation: pending → complete. Per the contract lifecycle table, approved + complete = settled/no-scheduled. The two new extends edges (Makefile, scripts/acceptance/) claim the files changed in this increment additively through spec 001, which is the correct owner of CI and governance files. The verification block is properly declared with the verify:cli fence tag. The increment 6 prose is internally consistent with what the diff actually adds.

No concrete defects found.

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

Subject: 1b4e846...3ed8b39, diff digest f54c58eef4d9956535cf24b622d5529ff53b7b4d6bc40f1a8fa5cf2788d03bfc, 1 call(s). An AI comment is not an approval.

Base automatically changed from impl/061-inc5 to main November 5, 2026 00:38
@bartekus
bartekus merged commit c0f27d1 into main Nov 5, 2026
3 checks passed
@bartekus
bartekus deleted the impl/061-inc6 branch November 5, 2026 00:38
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

AI review (findings)

Reviewing the diff across all changed paths. The changes are: spec 061 moved to implementation: complete, two new extends edges declared (Makefile and scripts/acceptance/ against spec 001), seven mutation seeds added, one new test, acceptance group and VERIFIED_SPECS updated, packaging bound raised in both archive-policy.json and spec 021.

Consistency checks (pass):

  • max_unpacked_bytes 786,432 → 851,968 in archive-policy.json matches the spec 021 note (851,968 = 832 KiB).
  • max_archive_bytes (196,608 / 192 KiB) is unchanged in archive-policy.json; spec 021 states it is unchanged. Consistent.
  • Seed count: implementation record says "seven acceptance seeds"; exactly 7 tuples added. Consistent.
  • 061 added to both VERIFIED_SPECS (Makefile) and the cli-backends acceptance group (verify.py); spec declares these changes via extends edges. Consistent.
  • Seeds 2 and 4 both cite " if !failed {" as the original string; they represent distinct mutations run independently, which is valid.

Finding:

The PR edits specs/021-packaging-and-first-release/spec.md (adds the packaging size note at the bottom). Per the contract, a changed authored path must be accompanied by an edit to a spec that owns it via a declared unit edge, or a Spec-Drift-Waiver: in the PR body. The diff of spec 061's frontmatter adds two new extends entries — both against spec 001 — but adds no entry covering spec 021 or any section of it. Without a pre-existing extends/amends edge from spec 061 to spec 021 (not visible here), the coupling gate would flag this change as drift. No waiver is in evidence.

{"head": "68b1c82941c6ccf6bdb905bc507572ca46fea5ae", "verdict": "findings", "findings": [{"path": "specs/061-host-scored-repeat-sets/spec.md", "line": 32, "summary": "The PR edits specs/021-packaging-and-first-release/spec.md but adds no extends edge from spec 061 to spec 021 (or its packaging section), leaving that authored-path change without a declared ownership edge and likely triggering the coupling gate."}]}

Subject: 7855bb1...68b1c82, diff digest f54c58eef4d9956535cf24b622d5529ff53b7b4d6bc40f1a8fa5cf2788d03bfc, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 5, 2026 00:46 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
statecraft-review-exception — 68b1c829 Deployed Nov 5, 2026 by bartekus via review-exception #3415
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