stemedb/applications/aphoria/uat
jordan 422e2d4416 feat(aphoria): wire claims through StemeDB — Gap Closure Phase 1
Claims now flow through StemeDB's append-only knowledge graph instead of
mutable TOML files. This resolves all 6 critical claim-bypass code paths:

- Bridge: lossless AuthoredClaim ↔ Assertion round-trip (comparison, status, lifecycle mapping)
- LocalEpisteme: ingest_authored_claim() and fetch_authored_claims() with AUTHORED_CLAIM predicate index
- EpistemeClaimStore: ClaimStore trait backed by StemeDB (append-only delete via deprecation)
- CLI handlers: all claim commands read/write through StemeDB
- Scanner: loads claims from StemeDB with auto-migration fallback to TOML
- Export: new `aphoria claims export` serializes StemeDB claims to TOML/JSON

Also cleans up dead code (EpistemeConfig.url), renames ingest_claims→ingest_observations,
fixes ClaimFilter.authority_tier type, adds Draft variant to ClaimStatus, and fixes
pre-existing clippy warnings (too_many_arguments, filter_next→rfind).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 02:02:51 -07:00
..
fixtures feat: Complete Aphoria Phase 8-9 + UAT suite (90/90 tests passing) 2026-02-06 22:50:55 -07:00
scripts feat: Complete Aphoria Phase 8-9 + UAT suite (90/90 tests passing) 2026-02-06 22:50:55 -07:00
2026-02-03-benchmark-aphoria-vs-semgrep.md feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
2026-02-03-citadel-scan-v1.md feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
2026-02-03-federated-policy-proposal.md feat(aphoria): wire claims through StemeDB — Gap Closure Phase 1 2026-02-12 02:02:51 -07:00
2026-02-03-lessons-learned.md feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
2026-02-03-vulnbank-benchmark.md feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
2026-02-04-full-cycle-precommit-vision.md feat: Aphoria scan modes + stemedb-ontology crate + consumer health UAT 2026-02-04 21:57:33 -07:00
2026-02-04-masq-unreal-audit.md feat: Aphoria policy source tracking + claim extraction pipeline 2026-02-04 02:35:02 -07:00
2026-02-04-uat-plan-unreal.md feat: Aphoria policy source tracking + claim extraction pipeline 2026-02-04 02:35:02 -07:00
2026-02-04-uat-policy-source-results.md feat: Ingestor deadlock fix + blessed assertion tracking + patent docs 2026-02-04 03:41:08 -07:00
2026-02-04-uat-policy-source-tracking.md feat: Aphoria policy source tracking + claim extraction pipeline 2026-02-04 02:35:02 -07:00
2026-02-04-uat-real-world-policy-source.md feat: Aphoria enterprise features + ontology SDK + file length compliance 2026-02-05 12:55:29 -07:00
citadel-scan-v1.md feat: Multi-application expansion with chaos testing and community UI 2026-02-04 01:24:14 -07:00
comprehensive-vision-uat.md feat: Complete Aphoria Phase 8-9 + UAT suite (90/90 tests passing) 2026-02-06 22:50:55 -07:00
enterprise-simulation-uat.md feat: Institutional knowledge vision + roadmap phases 11-15 2026-02-06 23:35:41 -07:00
future-scenarios.md feat: Aphoria enterprise features + ontology SDK + file length compliance 2026-02-05 12:55:29 -07:00
gap-analysis-2026-02-06.md feat: Complete Aphoria Phase 8-9 + UAT suite (90/90 tests passing) 2026-02-06 22:50:55 -07:00
README.md feat: Complete Aphoria Phase 8-9 + UAT suite (90/90 tests passing) 2026-02-06 22:50:55 -07:00

Aphoria User Acceptance Testing

End-to-end validation of Aphoria workflows.

Quick Start

# Run the enterprise workflow UAT
./scripts/test-enterprise-workflow.sh

Comprehensive Vision UAT

Comprehensive Vision UAT Plan - The master plan for validating Aphoria's complete vision:

Category Tests Priority Status
1. Core Detection 10 tests P0 In Progress
2. Enterprise Policy 13 tests P0-P2 PASS (existing scripts)
3. Pre-Commit Integration 11 tests P0-P1 Partial
4. LLM Extraction 8 tests P1-P2 Planned
5. Declarative Extractors 7 tests P0-P2 Planned
6. Output Formats 8 tests P0 Partial
7. Domain-Specific Audits 6 tests P1-P2 PASS (Masq)
8. Protocol Vision 3 tests P3 Future

UAT Reports

Report Status Description
Comprehensive Vision UAT Draft Master plan for full vision validation
Gap Analysis Complete Code vs UAT gap analysis
Policy Source Tracking PASS Trust Pack workflow validation
Masq Unreal Audit PASS Domain-specific (Unreal Engine)
Future Scenarios Planned Deferred scenarios awaiting enterprise feedback

Scripts

Existing (Passing)

Script Purpose Status
test-enterprise-workflow.sh Full Trust Pack round-trip test PASS (12/12)
test-multi-pack-conflict.sh Multiple packs, same concept PASS (7/7)
test-pack-version-update.sh Pack version supersession PASS (6/6)

New (Comprehensive Vision)

Script Purpose Category Priority
test-core-detection.sh Cross-language detection tests Cat 1 P0
test-exit-codes.sh Exit code validation Cat 3 P0

CI Integration

The UAT is integrated into CI via .github/workflows/ci.yml:

aphoria-uat:
  name: Aphoria Enterprise UAT
  runs-on: ubuntu-latest
  needs: [check, test]
  steps:
    - name: Build Aphoria
      run: cargo build --release --package aphoria
    - name: Run Enterprise Workflow UAT
      run: ./applications/aphoria/uat/scripts/test-enterprise-workflow.sh

Adding New UAT Scenarios

  1. Create YYYY-MM-DD-uat-{scenario}.md with test plan
  2. Add automated script in scripts/
  3. Update this README
  4. Add to CI workflow if needed

Structure

uat/
├── README.md                                    # This file
├── 2026-02-04-uat-real-world-policy-source.md  # Policy source tracking UAT
├── future-scenarios.md                          # Tested & deferred scenarios
└── scripts/
    ├── test-enterprise-workflow.sh              # Basic Trust Pack workflow
    ├── test-multi-pack-conflict.sh              # Multi-pack behavior
    └── test-pack-version-update.sh              # Version supersession