Repository navigation
073 increment 2: extractRules and templates on the Node binding's compile; closure - #602
Conversation
AI review (no-findings)Reviewing the diff against spec 073, the governance rules, and the contract lifecycle. Lifecycle change ( Validation consistency ( Error types: Malformed documents use
CI and Conformance runner ( No managed files ( {"head": "155ece8732b1d59d88d51a0fab7c9bd079f6b525", "verdict": "no-findings", "findings": []}Subject: fe716a4...155ece8, diff digest 6bf766d94660936fa8b33a9302e32fd5bd04af04f2ba545a1a6442dea4451ee3, 1 call(s). An AI comment is not an approval. |
fe716a4 to
ab652c1
Compare
155ece8 to
ba2a215
Compare
AI review (findings)Reviewing the diff against the governance context and spec 073. Lifecycle change:
No other concrete defects are found:
{"head": "ba2a2151758a3af25858c5707aedf21dd13eec13", "verdict": "findings", "findings": [{"path": "specs/073-compile-extraction-documents-from-hosts/spec.md", "line": 5, "severity": "low", "category": "ratification", "summary": "Changes implementation lifecycle from pending to complete on an approved spec; this settles the spec and is a lifecycle claim in the diff, not authority."}]}Subject: ab652c1...ba2a215, diff digest 4c762b259bf3f3558ecb03411553ee64eaa52af1d8357603d5ccc145d0c748bf, 1 call(s). An AI comment is not an approval. |
ab652c1 to
c6dc918
Compare
ba2a215 to
11001b0
Compare
AI review (no-findings)Reviewing the diff against the governance documents and the subject files. Makefile — harvest.rs — index.d.ts — index.js — Two validation additions:
Array serialisation loop extended to include profile.rs — Rust-layer mirrors the JS pre-checks:
extraction-documents.test.mjs — New test covers verify.py — spec.md — run.mjs — No concrete defects found. {"head": "11001b04e25247086a49dbf1d445c97f654c0f52", "verdict": "no-findings", "findings": []}Subject: c6dc918...11001b0, diff digest 09684916163b7db04729a4275aa781a1d95718e2ba33b7cf00ae5213cb8c44fe, 1 call(s). An AI comment is not an approval. |
…pile; closure
`Engine.compile`, `compileSync` and `command('check' | 'compile')` take
`extractRules` and `templates` and compile through
`compile_with_extraction_documents` (spec 073, 3.2 to 3.4); calls without
them are unchanged. The Node test compiles the shared rules-first golden
to the Rust PlanId and plan bytes on every path. The five
`extraction-documents.*` conformance cases gain `native`. 073 joins
`make verify` and the `cli-backends` acceptance group.
Closes #598.
AI review (findings)Reviewing the diff for spec 073 increment 2 (Node binding) and closure. Structural checks passed:
One concrete defect found: In Spec 073 §3.3.4 explicitly requires that a parameterized definition found after the definition is read (with extraction documents present) produces assert.throws(() => e.compileSync(args({ definition: parameterized })),
err => err instanceof rustev.InvalidDocument && String(err.detail).includes('extractRules'));No explicit check for {"head": "11001b04e25247086a49dbf1d445c97f654c0f52", "verdict": "findings", "findings": [{"path": "integrations/rustev-node/src/profile.rs", "line": null, "severity": "medium", "category": "correctness", "summary": "The compile/compileSync else-branch calls compile_with_extraction_documents and maps its error to CompileRefusal, but spec 073 §3.3.4 and the committed test require InvalidDocument (mentioning 'extractRules') when a single parameterized definition is passed with extraction documents; no explicit is_parameterized check exists in this code path."}]}Subject: 27e915d...11001b0, diff digest 7b5c485a9ef1b4d3f84a1bd801858500e3c99ae1e6f755830701a55492ffd7a6, 1 call(s). An AI comment is not an approval. |
11001b0 to
bc14ead
Compare
AI review (no-findings)Reviewing the diff carefully against the spec 073 requirements, existing governance rules, and internal consistency. Makefile / scripts/acceptance/verify.py: harvest.rs: The index.d.ts: Both index.js / profile.rs validate(): The pre-parse refusal for profile.rs compile(): Programs and templates are parsed before the profiled-or-parameterized branch is entered. The run.mjs: spec.md: No concrete bugs, security problems, or governance violations found in the supplied evidence. {"head": "bc14eadece8cb4fc4cd7da41cfc03f9d32db1969", "verdict": "no-findings", "findings": []}Subject: 27e915d...bc14ead, diff digest 09684916163b7db04729a4275aa781a1d95718e2ba33b7cf00ae5213cb8c44fe, 1 call(s). An AI comment is not an approval. |
Summary
Spec 073 increment 2 (#598), stacked on #601. Closes #598.
integrations/rustev-node:compileandcompileSynctakeextractRulesandtemplates. On a concrete definition with either, they callcompile_with_extraction_documents; without them, exactlycompile_with_sourcesas before. A malformed document isInvalidDocumentnamingextractRules[i]ortemplates[i].command('check' | 'compile')takes them as input names. Withplan, a profile, profile bases, a variant, a definition version or several definitions, either field is refused asInvalidDocumentbefore any parse. A template found in the definition is refused after it is read.index.d.tsgains the two optional fields.test/extraction-documents.test.mjscompiles the shared rules-first golden throughcompile,compileSyncandcommand('compile')to the Rust PlanId and plan bytes.command('check')equals the CLI golden. It also covers section 5's Node rows.extraction-documents.*conformance cases gainnative(js/run.mjsmaps the two flags). The WebAssembly package is unchanged.implementation: complete, inmake verifyand in thecli-backendsacceptance group.Checks
make gate, the coupling check andmake codepass. Locally: Node tests (124 pass, 0 fail),node run.mjs native(251 cases, 0 failures), andtsconindex.d.ts.