Repository navigation
impl(066): the under segment ancestry predicate; spec 066 complete - #558
Conversation
AI review (findings)Reviewing the diff for spec 066 (segment ancestry predicate) implementation. Correctness of
Parameter-site exclusion in Contradictory test assertions in ("é:x", "é", Some(false)),
("é:x", "é", Some(true)),The two entries are rendered identically in the diff. For any of the four separators, No other concrete defects found (security, authority, ratification, or other correctness). {"head": "37bde499ac1e555cfac24f391a5a7862503bf5ad", "verdict": "findings", "findings": [{"path": "crates/rustev-core/tests/segment_ancestry.rs", "line": 160, "severity": "medium", "category": "correctness", "summary": "Two entries with the same apparent (value, ancestor) pair '(\"é:x\", \"é\")' carry contradictory expected results Some(false) and Some(true); the actual evaluation result is true for all four separators, so the Some(false) assertion will cause the test to fail if the two string literals are bytewise identical, and if they intentionally encode NFC vs NFD forms of é that difference is undocumented and invisible in the diff."}]}Subject: e8f6653...37bde49, diff digest 659a79b5f0605fe5396bf69cd1e0d9738b34c9fda4ce6a5ec5ca958b33064a45, 1 call(s). An AI comment is not an approval. |
AI review (no-findings)Reviewing the diff carefully against the governance context, the spec text for 066, and the implementation. Core evaluation logic (
|
Predicate::Under with the closed separator set, compilation (registry 2, non-nullable text operands in phase e for steps, checks and policy conditions), byte-exact evaluation with invalid_input for empty segments, grade propagation and parameter-site exclusion; regenerated schemas and binding types; synthetic package goldens; five mutation seeds.
274f5dd to
1e414e4
Compare
AI review (no-findings)Reviewing the PR against the governance context, the spec 066 lifecycle change, and the implementation in full. Lifecycle transition. New
All changed paths are either covered by pre-existing extends edges (established at ratification:
Nullable operand check.
Handler-coverage requirement. A Policy condition phase-e check. Mutation seeds. All five seeds have clear detection paths in Grade propagation, reads, and effects. No concrete bugs, security issues, authority changes, or ratification inconsistencies found. {"head": "1e414e42e9a4dbd1c76badb160a0447ff9733567", "verdict": "no-findings", "findings": []}Subject: 35ab7e5...1e414e4, diff digest 1dc328ffd86d022faa9c47c2abcabedf12ccf2bef8b7862d89914398da2db69a, 1 call(s). An AI comment is not an approval. |
Completes spec 066 (segment ancestry predicate
under, amends 002 and 032) for 0.6.0.What changes
rustev-contract:Predicate::Under { value, ancestor, separator }with the closedSegmentSeparatorset:,/,|,.(3.1). The four definition and plan schemas and both bindings' generated declarations regenerate with the added member (review-excluded; checked bytests/schemas.rsandgen-types --check).rustev-core: buildere::under(3.4.3); registry 2 construct, so definition 1 refuses it in phase b, category 11invalid_definition,requires_definition_2(3.5.1); non-nullabletextoperands checked in phase e for steps, corroboration checks and policy conditions (3.1.2); byte-exact evaluation withinvalid_inputnamingunder value/under ancestorfor an empty operand or empty segment (3.2, 3.3.2); grade/read propagation ascmp(3.4.1);underpositions are never parameter sites (3.4.2).crates/rustev-contract/tests/segment_ancestry.rs,crates/rustev-core/tests/segment_ancestry.rs(every 3.2.5 example and section 5 row for each separator, unresolved operands in a step, policypropagate/as_unmet, corroboration check, grades, handler coverage, builder bytes), a skipped operand inacquisition_eval.rs, synthetic package goldenstests/golden/segment-ancestry.*.crates/rustev-eval/mutation/seeds.pyunderspec 066.implementation: complete,## Verification, MakefileVERIFIED_SPECSandintegrations-plansacceptance group, extends edges (001 Makefile, scripts/acceptance/; 004 mutation/).Evidence
spec-spine verify 066: passed locally (5 commands; seeds 5/5 detected), before the rebase onto main.-D warnings, fmt, bothgen-types --check; wasm 4,821,398 of 5,242,880 bytes.make gatepasses.