[GAP-058]: reject line test coverage complete
- SimpleORBRejectionLoggingTests.cs: replace literal-only comparison with real RecordSignalRejection output comparison - decisions.md: mark DEC-20260823-02 implemented - SPRINT_BOARD.md: record GAP-058 housekeeping completion Build: clean | Tests: focused 3 passing; Core 446 passing; verify-build 535 passing
This commit is contained in:
@@ -13,6 +13,16 @@ Use this file to record durable project decisions that affect implementation pat
|
||||
|
||||
## Decision Log
|
||||
|
||||
### DEC-20260823-02
|
||||
- **ID:** DEC-20260823-02
|
||||
- **Date:** 2026-08-23
|
||||
- **Status:** implemented
|
||||
- **Context:** Discovered while independently verifying the GAP-048 implementation (`e36534b`). Two of the three new tests in `tests/NT8.Core.Tests/Strategies/SimpleORBRejectionLoggingTests.cs` (`OnBar_BelowThresholdGrade_RecordsGradeFilterRejectLineWithScore`, `OnBar_RegimeVeto_RecordsRegimeVetoRejectLine`) are legitimate — they call real production code (`OnBar` / `RecordSignalRejection` via reflection) and assert on its actual output. The third, `RejectLineFormat_DiffersOnlyByReasonToken`, is not: it hand-constructs two literal strings that were written to differ only by the `reason=` token, replaces that token with a placeholder in both, and asserts the results are equal. That assertion is true by construction — it never calls any production formatting code, so it cannot fail regardless of whether `NT8StrategyBase.cs`/`SimpleORBStrategy.cs` actually preserve the line format. Same defect class as the GAP-022 precedent this project already treats as a known failure mode (fabricated coverage that reads as a real regression test but tests nothing).
|
||||
- **Decision:** Track as **GAP-058**. Not blocking — the two real tests plus the byte-diff review already performed (`git show e36534b`, confirmed only `reason=` tokens changed) give adequate confidence GAP-048 itself is correct. Recommended fix, low priority: replace the third test with one that drives the actual reject-line-emitting path (e.g. invoke the same code with two different reasons and diff the real output), or delete it if the two real tests are judged sufficient coverage on their own.
|
||||
- **Related Files:** `tests/NT8.Core.Tests/Strategies/SimpleORBRejectionLoggingTests.cs`, `TASK_GAP048_REJECT_TAXONOMY_PROMPT.md`
|
||||
- **Implementation Note (2026-08-23):** GAP-058 replaced the tautological `RejectLineFormat_DiffersOnlyByReasonToken` literal comparison with a test that invokes `SimpleORBStrategy.RecordSignalRejection` twice through the existing reflection helper, once with `GradeFilter` and once with `RegimeVeto`, then normalizes only the `reason=` token and compares the two real emitted lines. No production code changed.
|
||||
- **Action Required:** None.
|
||||
|
||||
### DEC-20260823-01
|
||||
- **ID:** DEC-20260823-01
|
||||
- **Date:** 2026-08-23
|
||||
|
||||
Reference in New Issue
Block a user