Skip to content

docs(sdlc): promote /goal enumerated-test-fidelity lesson from #361/#362#363

Merged
BaseInfinity merged 1 commit into
mainfrom
docs/sdlc-goal-test-fidelity-lesson
May 26, 2026
Merged

docs(sdlc): promote /goal enumerated-test-fidelity lesson from #361/#362#363
BaseInfinity merged 1 commit into
mainfrom
docs/sdlc-goal-test-fidelity-lesson

Conversation

@BaseInfinity
Copy link
Copy Markdown
Owner

Summary

Promotes one technical gotcha from this session's #361/#362 incident into SDLC.md ## Lessons Learned → ### Testing.

The lesson

/goal evaluator does not verify enumerated-test-name fidelity in goal conditions. When a /goal condition lists specific test cases by name, the Haiku evaluator checks that enough tests exist but does not verify each named test exists by BEHAVIOR.

The incident (cited in lesson body)

This is the per-test-fidelity layer beneath PR #355's HIGH-95%-confidence and DLC-binding gates — those work at the macro level, but enumerated-condition fidelity is the author's responsibility.

Test plan

  • tests/test-doc-consistency.sh — 40/40
  • tests/test-postmortem-lessons.sh — 7/7
  • tests/test-memory-audit-protocol.sh — 12/12
  • CI green on validate
  • Squash-merge

Single-file change (SDLC.md +1 line in the existing ### Testing block).



PR #361 shipped 3 #358 tests where Test C was silent-when-cache-poisoned
rather than the goal-named silent-when-offline. The /goal Haiku evaluator
counted tests by file presence and approved completion. Caught only at
post-merge self-review, fixed in PR #362 (added the real offline test via
fake-npm PATH override).

Promoted to SDLC.md ## Lessons Learned → ### Testing so future sessions
inherit the rule: when a /goal condition enumerates test cases by name,
self-review must verify each named test exists by reading assertions, not
by counting matching `test_` functions.

This is the per-test-fidelity layer beneath PR #355's HIGH-95%-confidence
and DLC-binding gates — those work at the macro level, but enumerated-
condition fidelity is the author's responsibility.

Verified locally: test-doc-consistency 40/40, test-postmortem-lessons 7/7,
test-memory-audit-protocol 12/12.
@BaseInfinity BaseInfinity merged commit 3d81674 into main May 26, 2026
3 checks passed
@BaseInfinity BaseInfinity deleted the docs/sdlc-goal-test-fidelity-lesson branch May 26, 2026 04:34
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