stemedb/crates/stemedb-storage/src
jml e95c978481 feat(aphoria): add inline claim markers and claim enrichment infrastructure
This commit implements Phase 17 of the Aphoria roadmap, adding:

**Inline Claim Markers (@aphoria:claim):**
- New extractor for detecting inline markers in comments
- Pending markers tracked in .aphoria/pending_markers.toml
- CLI commands: list-markers, formalize-marker, reject-marker
- Support for all major comment styles (Rust, Python, SQL, etc.)
- Auto-sync during scan (configurable)

**Claim Enrichment:**
- ClaimEnrichment type with source attribution (inline, extractor, manual)
- EnrichedClaimInfo with full enrichment metadata
- Extended AuthoredClaim with optional enrichment field
- API endpoints for enriched claim queries
- Dashboard UI components (enrichment badge, verdict badge)

**Enhanced Extractor Trait:**
- verifiable_predicates() method for declaring (tail_path, predicate) pairs
- 10 security extractors now implement verifiable_predicates
- Enables claim suggester skill to find unclaimed patterns

**Documentation:**
- Phase 17 summary with complete implementation details
- Gap fixes summary documenting 8 closed vision gaps
- Updated CLI reference with new commands
- New aphoria-docs skill for documentation maintenance
- Updated roadmap with Phase 17 completion

**Integration:**
- ClaimsFile support for claim enrichment persistence
- Pattern aggregate store support for enrichment queries
- Dashboard filters and display for enrichment metadata
- API handlers for list-markers and enrichment queries

**Tests:**
- New gap_fixes_integration test suite
- Corpus enricher module with best practices ingestion

Closes: VG-005, VG-017, VG-018, VG-019, VG-020, VG-021, VG-022, VG-023

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 20:18:20 +00:00
..
admission_store feat: Phase 6 UAT - Admission control, HLC recency, cluster coordination 2026-02-03 00:43:37 -07:00
api_key_store fix(aphoria): move claims.toml to project root and fix verify integration 2026-02-08 11:09:57 +00:00
audit_store feat: WAL hardening (Phase 5B) - CRC32C, crash recovery, group commit, log rotation 2026-02-02 12:36:35 -07:00
circuit_breaker_store feat(aphoria): add --show-claims flag to display all extracted claims 2026-02-08 00:39:54 +00:00
content_defense feat: Phase 7 Content Defense + code structure refactoring 2026-02-03 12:44:05 -07:00
crdt feat: Distributed replication foundation (Phase 6A) - HLC, Merkle trees, CRDT stores, sync protocol 2026-02-02 19:31:54 -07:00
domain_trust_store feat: Phase 7 Content Defense + code structure refactoring 2026-02-03 12:44:05 -07:00
key_codec feat: Complete Aphoria Phase 8-9 + UAT suite (90/90 tests passing) 2026-02-06 22:50:55 -07:00
pattern_aggregate_store feat(aphoria): add inline claim markers and claim enrichment infrastructure 2026-02-08 20:18:20 +00:00
quota_store feat: WAL hardening (Phase 5B) - CRC32C, crash recovery, group commit, log rotation 2026-02-02 12:36:35 -07:00
similarity_index fix: correct test module imports for similarity_index 2026-02-03 12:45:22 -07:00
source_registry feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
trust_graph_store feat: Phase 7 Content Defense + code structure refactoring 2026-02-03 12:44:05 -07:00
trust_rank_store feat: Phase 6 UAT - Admission control, HLC recency, cluster coordination 2026-02-03 00:43:37 -07:00
vector_index feat: Index persistence (Phase 5C) - vector hot/cold, visual checkpoint 2026-02-02 15:43:18 -07:00
visual_index feat: Index persistence (Phase 5C) - vector hot/cold, visual checkpoint 2026-02-02 15:43:18 -07:00
vote_store feat: WAL hardening (Phase 5B) - CRC32C, crash recovery, group commit, log rotation 2026-02-02 12:36:35 -07:00
alias_store.rs feat: Concept hierarchy (Phase 5D) - ConceptPath, source schemes, AliasStore 2026-02-02 17:44:54 -07:00
checkpoint_format.rs feat: Index persistence (Phase 5C) - vector hot/cold, visual checkpoint 2026-02-02 15:43:18 -07:00
error.rs feat: WAL hardening (Phase 5B) - CRC32C, crash recovery, group commit, log rotation 2026-02-02 12:36:35 -07:00
escalation_store.rs feat: WAL hardening (Phase 5B) - CRC32C, crash recovery, group commit, log rotation 2026-02-02 12:36:35 -07:00
fjall_backend.rs feat: WAL hardening (Phase 5B) - CRC32C, crash recovery, group commit, log rotation 2026-02-02 12:36:35 -07:00
gold_standard_store.rs feat: WAL hardening (Phase 5B) - CRC32C, crash recovery, group commit, log rotation 2026-02-02 12:36:35 -07:00
hybrid_backend.rs feat: WAL hardening (Phase 5B) - CRC32C, crash recovery, group commit, log rotation 2026-02-02 12:36:35 -07:00
index_store.rs feat: Complete Aphoria Phase 8-9 + UAT suite (90/90 tests passing) 2026-02-06 22:50:55 -07:00
lib.rs feat: Complete Aphoria Phase 8-9 + UAT suite (90/90 tests passing) 2026-02-06 22:50:55 -07:00
pack_source_store.rs feat: Complete Aphoria Phase 14 - Governance Workflows 2026-02-07 05:16:26 -07:00
predicate_alias_store.rs feat: Complete Aphoria Phase 8-9 + UAT suite (90/90 tests passing) 2026-02-06 22:50:55 -07:00
predicate_index_store.rs feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
quarantine_store.rs feat: Phase 7 Content Defense + code structure refactoring 2026-02-03 12:44:05 -07:00
redb_backend.rs feat: WAL hardening (Phase 5B) - CRC32C, crash recovery, group commit, log rotation 2026-02-02 12:36:35 -07:00
serde_helpers.rs feat: Complete Phase 2 (The Cortex) - query, lens, and API layers 2026-02-01 13:22:44 -07:00
supersession_store.rs feat: Distributed replication foundation (Phase 6A) - HLC, Merkle trees, CRDT stores, sync protocol 2026-02-02 19:31:54 -07:00
traits.rs feat: WAL hardening (Phase 5B) - CRC32C, crash recovery, group commit, log rotation 2026-02-02 12:36:35 -07:00
trust_pack_store.rs feat: WAL hardening (Phase 5B) - CRC32C, crash recovery, group commit, log rotation 2026-02-02 12:36:35 -07:00