Repository navigation
impl(070): extraction rules 2 contract: the /2 document, rules_first with required, and the skipped request outcome (increment 1) - #577
Conversation
667b2cf to
34542d3
Compare
406dcb6 to
f1256c6
Compare
AI review (findings)Reviewing the diff carefully for bugs, security problems, and inconsistencies against the governance context. Lifecycle ( Schema versioning / tagged identity ( v2-member rejection in
Unreachable arms in One concrete defect found: In return Err(format!("month table {name} has 12 entries"));This fires precisely when {"head": "f1256c6acbb82a233c5ae9afa1ab7442b1d2d10a", "verdict": "findings", "findings": [{"path": "crates/rustev-contract/src/extraction_documents.rs", "line": null, "severity": "low", "category": "correctness", "summary": "The error message `\"month table {name} has 12 entries\"` fires when the table does not have 12 entries, telling the caller the opposite of the actual problem; it should read something like \"must have exactly 12 entries\"."}]}Subject: 34542d3...f1256c6, diff digest f57ca7fe9666a097ad4db6fc4c44aefb03b1aad788da1ff48b106b48acc5a4b8, 1 call(s). An AI comment is not an approval. |
34542d3 to
353d41f
Compare
f1256c6 to
ec4dc1a
Compare
|
Head ec4dc1a (rebased onto the spec at 353d41f):
|
AI review (findings)Reviewing the diff for bugs, security problems, and inconsistencies against the governance context and the stated intent of spec 070 increment 1. ReviewScope and lifecycle
New types and validation (
|
db10414 to
34b8f6f
Compare
ec4dc1a to
da66512
Compare
AI review (no-findings)Reviewing the diff across all twelve changed paths. Contract types (
Schema emission (
Compile-time checks (
Runtime stubs (
Spec lifecycle (
Tests (
No concrete defects found. {"head": "da66512877097f5adbfcda6fca9c889f64711c0b", "verdict": "no-findings", "findings": []}Subject: 34b8f6f...da66512, diff digest 1d344533f54e051437245ad1e5e61678c5cb63cee7dc6080241709520c02f694, 1 call(s). An AI comment is not an approval. |
34b8f6f to
1bd58b5
Compare
da66512 to
3c45fdd
Compare
AI review (findings)Review of head
|
…with required, and the skipped request outcome (increment 1)
3c45fdd to
42a418a
Compare
AI review (no-findings)Reviewing the diff against spec 070 and the governance documents. Spec lifecycle change ( Contract types ( Validation bounds (
Incremental bind guard (
Boxing of Tagged identity (
No concrete defects found. {"head": "42a418a2b87e443f2a7da04db921153e8ae1c9d6", "verdict": "no-findings", "findings": []}Subject: 706a5de...42a418a, diff digest 22f63b86a7f8d9249a5b3c012afe31cd6ceff82034f18f5ce7bd3d800e292076, 1 call(s). An AI comment is not an approval. |
Spec 070 (
rustev.extract-rules/2, #572), increment 1 of 3: the contract. Based on main after #574 (the spec) and #568 (0.7.0).What changes
rustev-contract:ExtractRulesreadsrustev.extract-rules/1and/2with one type (versioned_document!, as definition, evidence and judgment do); its identity is tagged with the document's own schema, so every /1 identity is unchanged. Added for /2 (3.1):month_tables; conditionsequalsandone_ofover aScalar(string, integer, boolean); valuestoken_after,token_matching(ShapeElement,ByteClass),date(DateFormat) andvocabulary_after. Every parse-time bound of 3.1.2 is checked; a /1 document holding any /2 member or variant is refused as an unknown member (3.1.3).Fill::RulesFirstand the optionalfallback.required(3.7.1); the plan 3BoundExtractionFallback::Boundcarriesrequiredonly when declared (3.7.7, 3.10.1);ExtractionRequestOutcome::Skipped { reason: rules_filled }(3.9.1).rustev.extract-rules-1.schema.jsonkeeps its bytes (the /2 members are removed from its emission and the test asserts it);rustev.extract-rules-2.schema.jsonis new; definition 1/2, plan 2/3, evidence 2 and run 3 regenerate with the added members; both bindings' declarations regenerate throughgen-types(all review-excluded, checked bytests/schemas.rsandgen-types --check).rustev-core(transitional, until increments 2 and 3):bindrefuses each /2 construct and compilation refusesrules_first, categoryinvalid_extraction, "not supported by this build";requiredis checked now (only withrules_first, 1 to 32 distinct declared top-level fields; 3.5.6).crates/rustev-contract/tests/extract_rules_2.rs(round trips, /2 identity, /1 refusal of each /2 construct, every 3.1.2 bound and its maximum,requiredandskippedwire forms, /1 schema free of /2 members); two tests incrates/rustev-core/tests/extraction_compile.rs.implementation: in-progress, increment 1 recorded.Evidence
PlanIdchanged (I-1);rustev.extract-rules-1.schema.jsonis byte-identical.gen-types --check,make gateandspec-spine couplepass after the rebase; wasm 4,881,670 bytes raw in the earlier bindings run.