Repository navigation
spec(073, 074): host compile of extraction documents and case regressions within the integrity allowance, ratified (A-94) (#598, #597) - #599
Conversation
… case regressions within the integrity allowance (#597) 073 (draft, amends 006, 027 and 063): `rustev plan check|compile` gain `--extract-rules` and `--template`, and the Node binding's `compile`/`compileSync` and `command('check'|'compile')` gain `extractRules` and `templates`, each routed through `compile_with_extraction_documents`. Calls without them keep their bytes. 074 (draft, amends 064 and 065): `case_regressions` gains the opt-in `unresolved: "exclude_failed_within_integrity"`, which leaves out cases unresolved only because of upstream failures that 065 counts, when the gate declares `integrity.max_upstream_failures`. The default is unchanged. Both target 0.8.0 under spec 021 3.2. Ratification is the owner's act.
AI review (findings)ReviewSpec 073 — Extraction programs and prompt templates on the CLI's and the Node binding's compileLifecycle / frontmatter. Section 3.1 byte bound. The table assigns Section 3.3.2 argument order vs. section 3.4.3 parse order. The function signature places Missing derived shards. AGENTS.md requires: "commit the shards with the spec edit that staled them." REPO CONTEXT shows Spec 074 — Case regressions may leave out cases that failed within the integrity allowanceLifecycle / frontmatter. Section 3.2.3 and I-2 alignment. I-2 states a case is excluded when "each side is clean or excused and at least one side is excused" — this matches section 3.2.3 exactly. ✓ Section 3.6.4 semver note. The spec correctly identifies that adding fields to public non- Section 3.4.1 Missing derived shards. Same as spec 073: {"head": "127294f45dc9a2b58b2ef6d97ea2a5a45a2b10c1", "verdict": "findings", "findings": [{"path": "specs/073-compile-extraction-documents-from-hosts/spec.md", "line": null, "severity": "medium", "category": "correctness", "summary": "The PR adds spec.md files for 073 and 074 but omits the corresponding .statecraft/derived/spec-registry and codebase-index shards; AGENTS.md requires these to be committed with the spec edit that stalens them, and make gate enforces this."}, {"path": "specs/073-compile-extraction-documents-from-hosts/spec.md", "line": 119, "severity": "low", "category": "correctness", "summary": "Section 3.1's table assigns DESCRIPTOR_V1 as the byte bound for extraction programs (rustev.extract-rules/1 and /2); the constant's name refers to backend descriptor documents (spec 005), not extraction programs, and may reference the wrong size limit."}]}Subject: 57931dc...127294f, diff digest c1d4ce8ff5f3f51d09c57cf0b1e1db5b1adcbaf2cee6cf78b66fee98a00e9ee3, 1 call(s). An AI comment is not an approval. |
…yte bound, the order of error reporting, the excused side, and the committed shards
AI review (no-findings)Reviewing both new spec files against the governance context, checking for correctness, internal consistency, and conformance with governance rules. Spec 073 (
Spec 074 (
No concrete defects found in either spec. {"head": "75bf86dea07ed913d75959628cdee6f8aff1a592", "verdict": "no-findings", "findings": []}Subject: 57931dc...75bf86d, diff digest 4b31fe1f5902263fb56b4a9110d197ad0d6186127e8ac00d6f6fc4bf081d3c86, 1 call(s). An AI comment is not an approval. |
…y record The owner ratified 073 and 074 on 2026-11-24 for release 0.8.0, accepting every recommendation the drafts wrote (A-94). Each spec gains its `extends` edges and its decisions at approval in place of its open questions. A-93 records the owner's acceptance of RUSTSEC-2026-0543 and -0555 as ignore entries (#600), and spec 001 gains the matching supply-chain advisory record; this is the follow-up #600's waiver names.
…3.2), added before merge
AI review (findings)Reviewing the four changed paths against the governance context. docs/decisions/00-founding-decisions.md — A-93 and A-94 are new decision log entries. A-93 cites two independent owner quotes: "1: yes proceed" for the advisory/ignore-entry decision, and the broader release statement for the specs/001-boundaries-and-authority/spec.md — The new advisory-record section accurately echoes A-93 and uses the same crate path and revisit date. No contradiction with the existing spec text. specs/073-compile-extraction-documents-from-hosts/spec.md — specs/074-case-regressions-exclude-failed-within-integrity/spec.md — {"head": "13cb58111a5faf2b0ec124fc75d464660a145d9e", "verdict": "findings", "findings": [{"path": "specs/073-compile-extraction-documents-from-hosts/spec.md", "line": null, "severity": "low", "category": "correctness", "summary": "Section 3.3.4 uses 'a version 2 template with `parameters` or `variants`' to mean a parameterised `rustev.definition/2` document, but this spec also introduces 'template' as the flag/field name for `rustev.prompt-template/1` inputs; an implementer may omit the instantiation guard for parameterised definitions and silently route them to `compile_with_extraction_documents` instead of refusing the call."}]}Subject: 57931dc...13cb581, diff digest e39f0fe6f814e75f2e9018fde3c155dc9abb0f39fe15778be7c0603ee2360b26, 1 call(s). An AI comment is not an approval. |
…on the CLI (3.3.4), added before merge
…t templates (AI review)
AI review (findings)Reviewing the four changed files against the governance context and each other.
{"head": "c03069fef900ebab227af4baaac4e9e93899d3bf", "verdict": "findings", "findings": [{"path": "specs/073-compile-extraction-documents-from-hosts/spec.md", "line": 176, "severity": "low", "category": "correctness", "summary": "Section 3.2.1's byte-accounting sentence 'these files count toward 006 3.3.2's 256 MiB' is attached grammatically to the error path where no files are read, making it self-contradictory; files stopped before reading have no known size to count."}, {"path": "specs/073-compile-extraction-documents-from-hosts/spec.md", "line": 41, "severity": "low", "category": "correctness", "summary": "The extends-edge description for crates/rustev-core/ says 'test fixtures only; no source change', but section 3.7 and the verify block require a new Rust integration-test file (extraction_compile), which is source, not just fixture data."}, {"path": "specs/073-compile-extraction-documents-from-hosts/spec.md", "line": 220, "severity": "medium", "category": "correctness", "summary": "Section 3.3.4 says 'on Node as InvalidDocument' for the instantiation-with-extraction case without distinguishing command from compile/compileSync; section 3.4.2 of the same spec states that command returns the CLI's output bytes and exit code (063 3.2.4), so command('compile') with extractRules + profile should propagate exit 2, not throw InvalidDocument."}]}Subject: 57931dc...c03069f, diff digest 9e1340f819c7b8ab041d03e413f342a05c37bc341f5938d8a2b9e6f04f462096, 1 call(s). An AI comment is not an approval. |
Summary
Two specs, one per issue, spec text and regenerated derived shards only. No code changes. Ratification (
approved) is the owner's act.rustev plan check|compilegain repeatable--extract-rulesand--template. The Node binding'scompile/compileSyncoption bag gainsextractRulesandtemplates, andcommand('check'|'compile')accepts them too. All of them route throughcompile_with_extraction_documents. A call without them makes the same core call as today, so every existing plan,PlanIdand golden keeps its bytes. Compile refusals keep the core's category on every surface. A malformed document is refused the way each surface already refuses a malformed descriptor. No contract type, schema or generated binding type changes, and the WebAssembly package is unchanged. A shared syntheticfill: rules_firstgolden (a fictional airline confirmation) must compile to the same bytes andPlanIdthrough Rust, the CLI and Node.case_regressionsgains an opt-in,unresolved: "exclude_failed_within_integrity", and a gate may use it only when it declaresintegrity.max_upstream_failures. A case left unresolved only because of upstream failures that 065 counts is excluded and listed. It is never compared and never counted as a regression or a non-regression. Without the member, everything keeps its bytes. The issue's reproduction is now a synthetic acceptance case.Ordinals
071 is held by the unmerged branch
docs/071-reference-docs(PR #587, closed), so these take 073 and 074.Release
Both specs target 0.8.0. Spec 021 3.2, which 031 3.6.4 follows, reserves the patch number for a compatible correction. A public API or consumer-contract change takes the minor number. New CLI flags, new Node option fields, a new gate member and new fields in
rustev-eval's public selection structs are all such changes, so #598's request for a 0.7.x patch would need an owner decision.Checks
make gateandmake codepass locally. Python 3.12 was put first onPATHaspython3forrustev-release's harness tests.Open questions for the owner
Each spec ends with "Open questions for the owner", with a recommendation for each one.
Ratification
The owner ratified both specs on 2026-11-24 (A-94), accepting every recommendation; each spec now holds its
extendsedges and its decisions at approval. This PR also carries A-93 and spec 001's advisory record, the follow-up named by #600's waiver.