Skip to content

Add critical coverage map#3

Merged
secup merged 1 commit intomainfrom
agent/20260430_143431-001-coverage-map
Apr 30, 2026
Merged

Add critical coverage map#3
secup merged 1 commit intomainfrom
agent/20260430_143431-001-coverage-map

Conversation

@secup
Copy link
Copy Markdown
Owner

@secup secup commented Apr 30, 2026

Automated supervised agent task.

Task: agents/queue/codex/001-coverage-map.md
Agent: Codex GPT-5.5 xhigh
Branch: agent/20260430_143431-001-coverage-map
Base: main

Summary

Adds docs/COVERAGE_MAP.md, a documentation-only map of Tier 0/Tier 1 modem-critical coverage expectations, current test signals, missing tests, and priority order. Also indexes it from docs/README.md and cross-references it from docs/QUALITY_AUDIT.md.

Gate Evidence

  • ./agents/run_local_gate.sh: PASS
  • CTest: 29/29 passed
  • Quick regression matrix: PASS
  • Coverage report: PASS (lines=56.05%, functions=61.39%, branches=45.37%)
  • git diff --check: PASS
  • Hardware gate: not required; docs-only task

Review Notes

Reject if this reads like a global 100% coverage mandate. The intended policy is module-specific critical behavior coverage, aligned with docs/PROJECT_GOALS.md and docs/QUALITY_STRATEGY.md.

@secup secup marked this pull request as ready for review April 30, 2026 19:49
@secup secup merged commit 2f1800f into main Apr 30, 2026
9 checks passed
@secup secup deleted the agent/20260430_143431-001-coverage-map branch May 2, 2026 00:24
secup added a commit that referenced this pull request May 3, 2026
Tonight's autonomous code-quality pass on the new TNC + HARQ work,
informed by Codex review (full notes /tmp/codex_quality_findings.md,
22 ranked findings). Tackled the safe ones with high impact:

Safety / correctness (#3, #7-#8, #14):
- ultra_tnc: skip config loading on --help / --list-audio-devices
  so a malformed config doesn't break operator recovery
- tnc_session: cmdStats() now null-guards cmd_emit_, matching the
  rest of the emit path (was the one place that could throw
  std::bad_function_call on a null callback)
- tnc_bridge: postPTT() callbacks no longer fire under ptt_mutex_.
  Computes the PTT transition under the lock, releases, then
  invokes sink + hardware callback. Closes a deadlock window when
  a slow hardware-PTT serial write blocks under the mutex.
- (#7 PTT setLine() return-check deferred — needs decision on
  whether to fail-startup or fall-back-to-VOX. Punted to follow-up.)

Tests (#12, #19-#20):
- 1 new test_tnc_session: corrupt-deflate RX silently dropped
  (regression guard for the marker-strip path)
- 6 new test_soft_combine cases:
  * setEnabled(false) clears retained entries
  * Zero sender_hash is a no-op (don't pollute future sessions)
  * setMaxEntries(0) disables retention
  * Empty-LLR retain is a no-op
  * Saturation: pin to exact implementation cap (60.0) on both
    + and - sides instead of just "<= 100"

Docs / comments (#18, #22):
- soft_combine.hpp: comment on carrier_count_hash now matches
  what the hash actually contains (was claiming pilot-spacing
  coverage we don't actually do)
- PAT_VARA_AUDIT.md: trailing-whitespace cleanup

Local ctest 34/34. Test counts: SoftCombine 10→16, TNCSession
98→100, TNCBridge 17→23. Net +14 tests.

Deferred (need broader judgment, not autonomous-safe):
- #2 extract config helpers to testable target (refactor)
- #5 explicit negative CLI flags (interface design)
- #9 sink ownership lifetime race (concurrency design)
- #11 BUFFER 0 immediacy vs rate-limit (protocol judgment)
- #13 flushDataTxBuffer extraction for testability
- #15 sendBinary error propagation (interface change)
- #16 HARQ key construction extraction
- #17 HARQ when CW0 fails (architectural)
- #21 UltraTNCStation threading model

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Codex (review) <noreply@openai.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