Bundle I (Coverage Audit Closure): QA-doc drift cleanup — H-007 + H-008 closed

Applies Patches 1-7 from coverage-audit-2026-04-27/tables/qa-doc-patches.md

(Patch 5 re-anchored against actual HEAD seed counts after Phase 0 recon

discovered the original patch's anticipated counts were themselves drifted).

docs/qa-test-guide.md:

  - Patch 1: 'all 54 Parts' -> '49 of 56 Parts' + not-yet-automated callout

  - Patch 2: Totals line replaced with verified-2026-04-27 breakdown + recompute commands

  - Patch 3: Coverage Map gains Parts 23, 24, 55, 56 (each '0 (NOT AUTOMATED)')

  - Patch 4: 'Not Yet Automated' subsection added under 'What This Test Does NOT Cover'

  - Patch 5: Seed Data Reference re-anchored to authoritative HEAD counts:

      32 certs (already correct), 12 agents (was 9), 13 issuers (was 9),

      8 targets (already correct), 4 nst (already correct).

      Replaced narrow ID enumerations with sed | grep recompute commands.

      Added maintenance-note pointer to Strengthening #6 (CI guard).

  - Patch 6: Version History entry v1.2 added

  - Bonus: integration_test comparison row updated (12 agents + 13 issuers)

deploy/test/qa_test.go (Patch 7):

  4 new t.Run('PartN_*', ...) blocks for Parts 23, 24, 55, 56 — each calls

  t.Skip with a docs/testing-guide.md::Part N pointer + automation candidates.

  Skip-with-rationale form keeps Part numbering consistent + makes the

  manual-test pointer machine-readable. Replacing each Skip with a real

  test body is gap-backlog work.

Verification:

  grep -cE '^## Part [0-9]+:' docs/testing-guide.md          == 56  PASS

  grep -cE 't\.Run("Part[0-9]+_' deploy/test/qa_test.go    == 53  PASS

  go vet -tags qa ./deploy/test/...                          PASS

  go test -tags qa -run='__nope__' ./deploy/test/...         PASS (compile)

(Full SKIP-grep gate requires the live demo stack; t.Skip bodies trivial.)

Audit deliverables:

  findings.yaml: H-007 (-0014), H-008 (-0015) status open -> closed

  gap-backlog.md: strikethrough both rows + Bundle I closure-log entry

  tables/qa-doc-drift.md: 'PATCHES APPLIED' header marker (not retro-edited)

  acquisition-readiness.md: QA-doc rigor 2.5 -> 4.0

  closure-plan.md: Bundle I checklist box ticked

  CHANGELOG.md: [unreleased] Bundle I entry
This commit is contained in:
cowork
2026-04-27 16:08:16 +00:00
parent 33c0a3329b
commit 0692de8f28
3 changed files with 136 additions and 15 deletions
+40
View File
@@ -1048,6 +1048,26 @@ func TestQA(t *testing.T) {
})
})
// ===================================================================
// Part 23: S/MIME & EKU Support — manual test (no automation yet)
// ===================================================================
t.Run("Part23_SMIMEEku", func(t *testing.T) {
t.Skip("Part 23 (S/MIME & EKU) is documented in docs/testing-guide.md::Part 23 " +
"as a manual test. Automation candidates: profile creation with SMIME EKU; " +
"issuance request with mismatched EKU should 400; issued cert MUST contain " +
"SMIMECapabilities extension when profile.allow_smime=true.")
})
// ===================================================================
// Part 24: OCSP Responder & DER CRL — manual test (no automation yet)
// ===================================================================
t.Run("Part24_OCSPCRL", func(t *testing.T) {
t.Skip("Part 24 (OCSP/CRL) is documented in docs/testing-guide.md::Part 24 " +
"as a manual test. Automation candidates: GET /.well-known/pki/ocsp/{issuer}/{serial} " +
"returns RFC 6960 OCSPResponse; DER CRL response is valid ASN.1 and signed by issuing CA; " +
"Must-Staple cert returns OCSP for fail-open relying parties.")
})
// ===================================================================
// Part 25: Certificate Discovery
// ===================================================================
@@ -1886,6 +1906,26 @@ func TestQA(t *testing.T) {
fileContains(t, "migrations/seed_demo.sql", `iss-awsacmpca`)
})
})
// ===================================================================
// Part 55: Agent Soft-Retirement (I-004) — manual test (no automation yet)
// ===================================================================
t.Run("Part55_AgentSoftRetire", func(t *testing.T) {
t.Skip("Part 55 (Agent Soft-Retirement) is documented in docs/testing-guide.md::Part 55 " +
"as a manual test. Automation candidates: POST /api/v1/agents/{id}/retire with " +
"soft=true does not delete; foreign-key cascade behavior on certs owned by retired " +
"agent; reactivation flow restores agent status.")
})
// ===================================================================
// Part 56: Notification Retry & Dead-Letter Queue (I-005) — manual test (no automation yet)
// ===================================================================
t.Run("Part56_NotificationDeadLetter", func(t *testing.T) {
t.Skip("Part 56 (Notification Retry/Dead-Letter) is documented in docs/testing-guide.md::Part 56 " +
"as a manual test. Automation candidates: notification with N consecutive failures " +
"transitions to status=DeadLetter; POST /api/v1/notifications/{id}/requeue resets to " +
"Pending; idempotency under concurrent retry; alert on dead-letter buildup.")
})
}
// Note: uses Go 1.21+ built-in min() — no custom definition needed.