Skip to content

feat: Phase R R3 audit trail report (ATR-) -- end-to-end chain-of-custody from dry-lab to confirmed hit - #960

Merged
cschanhniem merged 1 commit into
mainfrom
feat/r3-audit-trail-report
Jul 10, 2026
Merged

cschanhniem merged 1 commit into
mainfrom
feat/r3-audit-trail-report

Conversation

@cschanhniem

Copy link
Copy Markdown
Collaborator

Implements R3 from NEXT_100_PR_MAP.

What

  • src/openamp_foundry/evidence/audit_trail_report.py: ATR- schema; AuditTrailReport dataclass (15 fields); validate_audit_trail_report(); build_audit_trail_report() (auto-computes n_stages_complete, enforces dry_lab_only=True); format_audit_trail_report()
  • REQUIRED_ATR_STAGES (5): BSP, WHR, PCU, HCR, PQG
  • VALID_TRAIL_COMPLETENESS_STATUSES (4): complete, partial, broken_chain, dry_lab_only
  • VALID_CHAIN_INTEGRITY_GRADES (5): A, B, C, D, N/A
  • tests/evidence/test_audit_trail_report.py: 63 tests in 5 classes
  • BASELINE: 9026 → 9089

Disconfirming pass

  • dry_lab_only=False blocked (tested) — audit trail is a documentation artifact
  • TOY- candidate_family_id blocked (tested)
  • complete status enforces all 5 stages individually (tested)
  • complete status blocks missing_stages (tested)
  • complete status blocks chain_link_failures (tested)
  • dry_lab_only status blocks WHR/PCU/HCR/PQG (tested)
  • grade D incompatible with complete status (tested)
  • grade A requires complete or partial status (tested)
  • build() auto-computes n_stages_complete from actual record lists (tested)

…CR->PQG; VALID_TRAIL_COMPLETENESS_STATUSES (4), VALID_CHAIN_INTEGRITY_GRADES (5); complete status enforces all 5 stages; grade D incompatible with complete; dry_lab_only=True enforced; 63 tests (#958)
@cschanhniem
cschanhniem merged commit a1cb47f into main Jul 10, 2026
1 check failed
cschanhniem added a commit that referenced this pull request Jul 10, 2026
Co-authored-by: OpenCode <opencode@example.com>
cschanhniem added a commit that referenced this pull request Jul 10, 2026
…erifiable review checklist; REQUIRED_SRG_ARTIFACT_TYPES (CFC/FNR/ATR/PQG), VALID_READINESS_VERDICTS (4), VALID_SAFETY_FLAG_TYPES (6); open_preprint blocked when not_ready/safety_blocked; dry_lab_only=True enforced; 63 tests (#960) (#962)

Co-authored-by: OpenCode <opencode@example.com>
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