Skip to content

feat(cabr): add consensus lifecycle correlation#584

Merged
Foundup merged 1 commit into
mainfrom
cabr-lifecycle-correlation-phase6
May 13, 2026
Merged

feat(cabr): add consensus lifecycle correlation#584
Foundup merged 1 commit into
mainfrom
cabr-lifecycle-correlation-phase6

Conversation

@Foundup
Copy link
Copy Markdown
Member

@Foundup Foundup commented May 13, 2026

Summary

Phase 6 read-only lifecycle correlation across all CABR consensus pipeline stages:

  • Lifecycle correlation: Receipt → pAVS → Scoring → Quorum → Finalization → Persistence → Reporting
  • Correlation priority: receipt_id first, then job_id, then record_hash
  • Gap detection: Missing downstream stages reported as gaps, not inferred as failure
  • Truth boundary anomalies: Flagged in correlation results, not corrected

WSP 97 Truth Boundaries

  • Read-only lifecycle correlation only
  • No store mutation
  • No payout/DAO/final consensus inference
  • No default DB path
  • No external attestation dependency
  • Missing stages are gaps, not failures
  • Truth boundary anomalies flagged, not corrected

Test Coverage

  • 43 new lifecycle correlation tests
  • 46 time correlation tests (Phase 5)
  • 48 reporting tests (Phase 4)
  • 48 finalizer tests
  • 42 scoring engine tests
  • 41 quorum verification tests
  • 24 pAVS verification tests
  • 26 proof receipt tests
  • 318 total tests passing

Changed Files

  • cabr_lifecycle_correlation.py — Lifecycle correlation module
  • test_cabr_lifecycle_correlation.py — 43 focused tests
  • Phase 6 audit doc
  • ModLog + TestModLog updates

Slice: CABR_CONSENSUS_FINALIZATION_PHASE6_RECEIPT_LIFECYCLE_CORRELATION
Worker: W1

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

…tages (#584)

Implement CABRLifecycleCorrelation for tracing items across all 7 CABR
consensus pipeline stages: RECEIPT_CREATED, PAVS_EVALUATED, CABR_SCORED,
QUORUM_EVALUATED, CONSENSUS_FINALIZED, PERSISTED, and REPORTED.

Key features:
- Correlate by receipt_id > job_id > record_hash (priority order)
- Report downstream gaps from highest present stage
- Handle duplicates deterministically (first wins)
- Flag truth boundary anomalies (any True field)
- Deterministic JSON export with sorted keys
- No store mutation, no filesystem writes, no network calls

WSP 97 Critical: Lifecycle correlation is observability only.
It does NOT mean verification_complete=True, cabr_ready=True,
payout_ready=True, payout approval, DAO activation, or state progression.

Test coverage: 43 tests for lifecycle correlation
Regression tests: 318 total tests, 0 failures

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Foundup Foundup merged commit 70d3d45 into main May 13, 2026
3 checks passed
@Foundup Foundup deleted the cabr-lifecycle-correlation-phase6 branch May 13, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant