stemedb/crates
jml ef2c8c5940 fix(aphoria): fix 3 critical verification engine bugs
Fixed 3 bugs in Aphoria's claim verification engine that were causing
false positives in Maxwell validation testing:

**Bug 1: Path matching + predicate filtering**
- Added predicate filtering to prevent cross-predicate matches
- Added path prefix matching to respect crate boundaries
- Prevents core/imports/serde from matching hypervisor/vsock/imports/serde

**Bug 2: Value-specific absent checks**
- Absent mode now checks for specific forbidden value, not any observation
- Example: "Clone absent" + "Debug present" = PASS (not CONFLICT)
- Only conflicts when the exact forbidden value is found

**Bug 3: Wildcard pattern support**
- Wildcard patterns like message/*/derives now match multiple paths
- Enhanced wildcard_matches() to support prefix/*/suffix patterns
- Correctly strips full scheme+language from observation paths

**Test coverage:**
- All 39 existing tests passing
- 3 new tests added for bug fixes
- 2 tests updated to use correct predicates
- Zero clippy warnings

**Maxwell validation:**
- maxwell-core-no-serde-001: CONFLICT → PASS (respects path boundaries)
- maxwell-singleton-no-clone-001: CONFLICT → PASS (value-specific absent)
- 5 claims now correctly show as MISSING (expose predicate mismatches)

The fixes successfully eliminate false positives while exposing pre-existing
issues where claims used incorrect predicates.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 15:13:10 +00:00
..
stemedb-api fix(aphoria): fix 3 critical verification engine bugs 2026-02-08 15:13:10 +00:00
stemedb-chaos feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
stemedb-cluster feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
stemedb-core feat: Aphoria security extractors + LLM evaluation architecture + ontology docs 2026-02-05 15:22:55 -07:00
stemedb-ingest feat: Complete Aphoria Phase 8-9 + UAT suite (90/90 tests passing) 2026-02-06 22:50:55 -07:00
stemedb-lens feat: Phase 6 UAT - Admission control, HLC recency, cluster coordination 2026-02-03 00:43:37 -07:00
stemedb-merkle feat: Distributed replication foundation (Phase 6A) - HLC, Merkle trees, CRDT stores, sync protocol 2026-02-02 19:31:54 -07:00
stemedb-ontology feat: Aphoria security extractors + LLM evaluation architecture + ontology docs 2026-02-05 15:22:55 -07:00
stemedb-query feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
stemedb-rpc feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
stemedb-sim feat: Phase 6 UAT - Admission control, HLC recency, cluster coordination 2026-02-03 00:43:37 -07:00
stemedb-storage fix(aphoria): move claims.toml to project root and fix verify integration 2026-02-08 11:09:57 +00:00
stemedb-sync feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
stemedb-wal feat: Aphoria security extractors + LLM evaluation architecture + ontology docs 2026-02-05 15:22:55 -07:00