Pulse/internal/ai/qualification
rcourtman c757a73382 Cover replay bundle loading, magic link expiry and subscription mapping
Three new branch-coverage tests taking six previously unreached functions from
zero to covered, with no source or existing test touched.

internal/ai/qualification: the replay bundle loader across a missing path, a
directory where a file is expected, invalid JSON, trailing JSON values and a
valid bundle round-tripped field by field, plus the artifact root creation
including the arm where the parent path is a regular file. Fixtures are written
into a temp directory so nothing outside it is read or created.

internal/api: the in-memory and SQLite magic link stores both deleting expired
entries, with the boundary case of a link expiring exactly at the passed instant
asserted on the real comparison, the valid entries proved still present, and
repeat deletion proved idempotent.

internal/cloudcp/stripe: the subscription mapper resolving a real customer over
the fallback, the fallback when no customer is present, item and price
extraction across empty and multiple item lists, and the two provisioner options
applied and overridden in order.

Reported for follow-up, not fixed here: mapStripeSubscription dereferences its
subscription pointer without a nil guard and is safe only because its single
caller skips nil subscriptions.

Contract-Neutral: test-only branch coverage, no contract surface touched
2026-07-23 06:59:05 +01:00
..
ai_qualification_pure_branchcov0716_test.go Add Go branch-coverage tests for alerts monitoring model-resolution ai and licensing helpers 2026-07-16 15:17:45 +01:00
client.go Align qualification wait with subscription preflight 2026-07-16 10:05:20 +01:00
client_test.go Align restart-loop qualification with Patrol threshold 2026-07-16 20:53:02 +01:00
contribution.go Qualify model-led Patrol investigations 2026-07-15 10:32:16 +01:00
contribution_coverage_test.go Add branch-coverage tests for qualification contribution helpers 2026-07-14 22:50:13 +01:00
contribution_test.go Make qualification profiles statistically passable 2026-07-15 17:34:57 +01:00
lab.go Align remediation qualification with Patrol policy 2026-07-16 17:01:37 +01:00
lab_predicate_test.go Add branch-coverage tests for AI patrol, qualification, tools and agentcapability helpers 2026-07-14 22:33:40 +01:00
lab_report_pure_w0716_coverage_test.go Add deep-copy independence and qualification render coverage tests 2026-07-16 22:56:24 +01:00
lab_test.go Align remediation qualification with Patrol policy 2026-07-16 17:01:37 +01:00
manifest.go Separate Patrol evidence and model-turn budgets 2026-07-16 17:50:08 +01:00
manifest_predicates_branchcov_test.go Add branch-coverage tests for qualification scorer and report helpers 2026-07-15 15:04:26 +01:00
manifest_test.go Align remediation qualification with Patrol policy 2026-07-16 17:01:37 +01:00
qualification_validate_w0716_coverage_test.go Add pure branch-coverage tests for the fresh Patrol and Docker drop 2026-07-16 22:27:29 +01:00
replay.go Preserve qualification artifacts for bounded transcripts 2026-07-14 17:31:05 +01:00
replay_canonical_branchcov_test.go Add branch-coverage tests for qualification scorer and report helpers 2026-07-15 15:04:26 +01:00
replay_load_branchcov0723am_test.go Cover replay bundle loading, magic link expiry and subscription mapping 2026-07-23 06:59:05 +01:00
replay_test.go Preserve qualification artifacts for bounded transcripts 2026-07-14 17:31:05 +01:00
report.go Preserve Patrol replay safety outcomes 2026-07-16 20:30:37 +01:00
report_coverage_test.go Add branch-coverage tests for AI patrol, qualification, tools and agentcapability helpers 2026-07-14 22:33:40 +01:00
report_helpers_branchcov_test.go Add branch-coverage tests for qualification scorer and report helpers 2026-07-15 15:04:26 +01:00
report_inference_route_test.go Preserve coding-plan provenance in qualification 2026-07-15 00:06:56 +01:00
report_qualgates_branchcov_test.go Add branch-coverage tests for qualification scorer and report helpers 2026-07-15 15:04:26 +01:00
report_test.go Preserve Patrol replay safety outcomes 2026-07-16 20:30:37 +01:00
runner.go Preserve Patrol replay safety outcomes 2026-07-16 20:30:37 +01:00
runner_helpers_test.go Reject invalid Patrol reconfirmation prerequisites 2026-07-15 21:20:56 +01:00
runner_scope_test.go Qualify model-led Patrol investigations 2026-07-15 10:32:16 +01:00
scorer.go Preserve Patrol replay safety outcomes 2026-07-16 20:30:37 +01:00
scorer_gates_branchcov_test.go Add branch-coverage tests for qualification scorer and report helpers 2026-07-15 15:04:26 +01:00
scorer_protrack_branchcov_test.go Separate Patrol evidence and model-turn budgets 2026-07-16 17:50:08 +01:00
scorer_test.go Preserve Patrol replay safety outcomes 2026-07-16 20:30:37 +01:00