Repository navigation
spec(070): extraction rules 2: token extractors, exact-value conditions, declared date formats and rules first (amends 038 and 032) - #574
Conversation
AI review (findings)Review
The row is internally consistent. The A-89 gap is explicitly addressed ("This row follows A-88 because A-89 (spec 069, #569) was not on
The spec is structurally sound: frontmatter lifecycle values, Concrete defect — section 5 negative case contradicts 3.2.2 Section 3.2.2 specifies the skip after a term as: any spaces/tabs, then at most one separator byte from For the input
The maximal run of Section 5 states: "Run is empty at The example either requires 3.2.2 to be amended to "any number of separator bytes" (or "one or more"), or the example input needs to be changed to something that reaches a lowercase letter with a single separator (e.g., {"head": "6b8d52d81c394d3f99581632fc18103b244dbcad", "verdict": "findings", "findings": [{"path": "specs/070-extract-rules-2/spec.md", "line": null, "severity": "medium", "category": "correctness", "summary": "Section 5's negative case for `token_after` over `Ref: # abc12` with charset `upper`/`digit` states the run is empty 'at `a`', but section 3.2.2's 'at most one separator byte' rule causes the skip to stop at `#` (after consuming only `:`), making the run empty at `#`, not `a`; reaching `a` requires consuming two separator bytes, contradicting the normative algorithm."}]}Subject: 59cc7c3...6b8d52d, diff digest 398a1948a7fb3c22bcf27788800d5b4a168a357c57a9e20fd464cac795b375d7, 1 call(s). An AI comment is not an approval. |
6b8d52d to
760c72a
Compare
AI review (findings)Review of head
|
760c72a to
d205176
Compare
AI review (findings)Reviewing the two changed files against governance context.
A-90 records the owner's approval of spec 070 on 2026-11-08 and cross-references A-87/A-88/A-89, which precede it in the table. The entry is internally consistent with the spec's frontmatter (
Frontmatter and lifecycle: Internal consistency checks:
No security defects found. The possessive, non-backtracking matching and explicit work bounds per source byte are correct mitigations. {"head": "d2051768720f8bb9860427fa80c5ef67374415d9", "verdict": "findings", "findings": [{"path": "specs/070-extract-rules-2/spec.md", "line": 183, "severity": "low", "category": "correctness", "summary": "The date format table's 'Covers' column uses fixed-width DD/MM notation for dmy_slash, mdy_slash, and dmy_dot, contradicting the D/M patterns and examples (e.g., 2/3/2026), and describes mdy_name as 'Mon DD, YYYY' while the example 'November 2 2026' (single-digit day, no comma) is not covered by that string."}]}Subject: c40b37e...d205176, diff digest 30cc7ce11152fe2e0665109088b21efaf2054e218760b207df720a67fd63aaaa, 1 call(s). An AI comment is not an approval. |
d205176 to
667b2cf
Compare
AI review (findings)Reviewing the two changed files against the governance context.
The entry records the owner's act as "approved" (
Frontmatter is well-formed: Behavioral invariants checked:
Security-relevant constraint checked: Work bounds (3.6.2): One low-severity wording inconsistency noted below. {"head": "667b2cf378296a77961c1f2ef22abecac9281b36", "verdict": "findings", "findings": [{"path": "docs/decisions/00-founding-decisions.md", "line": 283, "severity": "low", "category": "other", "summary": "A-90 records the owner act as 'approved' while the adjacent A-88 and A-89 entries and the spec body itself use 'ratified' for the same kind of act."}]}Subject: c40b37e...667b2cf, diff digest 5606209f2418aa25c4e9c2c2915c5151d2f671bf1ef6ccb38ac3972c7993d52b, 1 call(s). An AI comment is not an approval. |
667b2cf to
34542d3
Compare
AI review (findings)Review of PR 34542d3SummaryThis PR introduces a decision record entry (A-90) and a new approved spec Governance compliance
Technical reviewConsistency and correctness: The evaluation bounds in 3.6.2, possessive shape semantics in 3.3.2, calendar-validity logic in 3.3.3 (including the Gregorian leap-year rule), exact-value condition provenance restriction (3.4.2), The observable negative cases in section 5 are consistent with the spec text. For example:
Security: No regular-expression engine, no backtracking, bounded per-byte work stated explicitly in 3.6.2, exact-value conditions restricted to non-model-derived sources only, Single documentation inconsistency found: In the date format table (section 3.3.3), the "Layouts covered" column for {"head": "34542d34e7767c6d74a3f7a1b43709acb91d2f39", "verdict": "findings", "findings": [{"path": "specs/070-extract-rules-2/spec.md", "line": 183, "severity": "low", "category": "correctness", "summary": "The 'Layouts covered' column for mdy_name in the date format table omits the 'Month D YYYY' combination (long name, no comma), though the Pattern description and the 'November 2 2026' example both cover it, creating a documentation inconsistency that could mislead implementors."}]}Subject: f81dc04...34542d3, diff digest f1dc2af40a8d7fcf8669384873b647f6ed8d8697aa1e8bbbb9a475937b715cba, 1 call(s). An AI comment is not an approval. |
34542d3 to
353d41f
Compare
AI review (findings)Review of
|
| no comma | comma | |
|---|---|---|
| no dot | Mon D YYYY ✓ listed |
Mon D, YYYY ✓ listed |
| dot | Mon. D YYYY ✗ absent |
Mon. D, YYYY ✓ listed |
The "Layouts covered" column lists five patterns (including the Month D / Month D, YYYY long-name variants) but omits Mon. D YYYY. The normative text is correct; the table, which purports to enumerate covered layouts and may be used as an implementor checklist or conformance-test seed, is incomplete. An implementor building test cases solely from the table would miss this combination.
{"head": "353d41f17bfefe4a7c166b6bb7c2b53b91c25089", "verdict": "findings", "findings": [{"path": "specs/070-extract-rules-2/spec.md", "line": 192, "severity": "low", "category": "correctness", "summary": "The mdy_name row's 'Layouts covered' column omits the Mon. D YYYY combination (dot after month, no comma after day), one of four valid combos implied by the normative text's two independent optionals; an implementor or conformance-test author using the table as a checklist would miss this case."}]}Subject: f81dc04...353d41f, diff digest 3c3191f9c1437a299f3b99ad8f4f9d9714a8ee6c9a3f2fe99db7984408c169eb, 1 call(s). An AI comment is not an approval.
db10414 to
34b8f6f
Compare
AI review (findings)Reviewing the two changed files against the governance context.
A-90 records owner ratification of spec 070 on 2026-11-08. Structurally it follows the pattern of A-88 and A-89 immediately above it. The ratification claim is review data, not authority; the entry correctly closes with the standard "authorizes no release, push or publication" disclaimer.
Frontmatter: Principles: The spec correctly threads the system principles—proposals never grants (§2.1, §3.12), derivation classes (§2.1, §3.8), unresolved is an answer (§3.4.5), pure core (§3.6.3, R-1). The boundary rule ( Technical correctness of key sections:
Finding — §3.3.5 introduces However, §3.9 (which explicitly amends 038 §3.12 on field evidence) says in item 2: "Field evidence is 038 3.12.1's" — without enumerating Location: {"head": "34b8f6f6fdebea5e4906362911dc8bde139fbcff", "verdict": "findings", "findings": [{"path": "specs/070-extract-rules-2/spec.md", "line": 484, "severity": "medium", "category": "correctness", "summary": "Section 3.9.2 says 'Field evidence is 038 3.12.1's' without enumerating vocabulary_unavailable (introduced as a new field-absence reason in §3.3.5) as an addition to the evidence/2 schema; the territory list in §2 also omits it, so an implementer following the evidence-amendment section would not add this reason to the schema, causing validation failures at runtime when a vocabulary input is unavailable."}]}Subject: f81dc04...34b8f6f, diff digest 5968afc8b4f1bb4bb3015b16a127e897b55521fcfa53ac0468ba0ce5ccb9944d, 1 call(s). An AI comment is not an approval. |
…ns, declared date formats and rules first (amends 038 and 032)
34b8f6f to
1bd58b5
Compare
AI review (no-findings)Reviewing the two changed files: a decision log entry (
The entry records ratification of spec
Frontmatter is well-formed: Behavioral checks:
No bugs, security problems, or specification contradictions found in the supplied evidence. {"head": "1bd58b52a884b9bfac7b965a94c798b9054fadde", "verdict": "no-findings", "findings": []}Subject: f81dc04...1bd58b5, diff digest 7729183d41fb32da5f4b63ad1645745c48c28526332e70a9b9658b6196942c20, 1 call(s). An AI comment is not an approval. |
Summary
Spec 070 for #572:
rustev.extract-rules/2, amending 038 (3.3.3, 3.3.5, 3.5, 3.7, 3.11, 3.12, 3.14) and 032 (3.2.1, 3.9.3). Ratified by the owner on 2026-11-08 for release 0.7.0 (A-90):status: approved,implementation: pending.token_after{source, terms, charset, min_len, max_len}(max_len <= 64, charset of at most 8 ASCII classes or ranges),token_matching{source, shape, occurrence}(at most 16 elements, repeats <= 16, matched possessively at token boundaries, never a regular expression),date{source, format, months, occurrence}(formatsymd_dash,dmy_name,mdy_name,dmy_slash,mdy_slash,dmy_dot; month names only from a declaredmonth_tablesentry), andvocabulary_after{source, terms, vocabulary}(gradedhint).equalsandone_of(at most 256 values) over inputs whose accepted provenance excludesmodel-derived, compared exactly; an unreadable source leaves the field absentsource_unavailableand is never false.fill: rules_firstwith optionalrequired: evaluates the program before listing; a fully filled request is recordedskipped{rules_filled}with no attempt or cost; otherwise onerustev.extract-request/1asks only for the absent fields (subset schema and digest). Compile-time budgets unchanged.A-90 is added after A-88 because A-89 (spec 069, #569) is not on
mainyet.Changes
specs/070-extract-rules-2/spec.md(new)docs/decisions/00-founding-decisions.md: A-90.statecraft/derived/: refreshed shardsVerification
make refresh,make gate(lint 0 warnings)spec-spine couple --base origin/main --head HEADCloses nothing; #572 stays open until implementation.
Review notes
token_afterexample now follows 3.2.2's single-separator skip (Ref: abc12stops ata;Ref: # ABC12stops at#)..statecraft/derivedshards". The PR does include.statecraft/derived/spec-registry/by-spec/070-extract-rules-2.json,.statecraft/derived/codebase-index/by-spec/070-extract-rules-2.jsonandinputs.json; the AI review excludes.statecraft/derived(review.exclude), so it does not see them. Thegovernancejob (make gate, includingspec-spine check) passes on this head.