@oevery/rsp 2.0.3 → 3.1.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: rsp-tdd
3
+ description: Drive one clear testable behavior owned by a selected RSP Change through observed RED, minimal GREEN, safe REFACTOR, and fresh verification. Use when test-first evidence is the selected next action; return unexplained failures to diagnosis and all results to the same Change.
4
+ license: MIT
5
+ metadata:
6
+ author: oevery
7
+ version: "2026.07.24.1"
8
+ ---
9
+
10
+ # RSP TDD
11
+
12
+ Implement one clear behavior test-first, follow Core's response-versus-artifact language boundary, and return evidence to its selected Change.
13
+
14
+ ## Establish the cycle
15
+
16
+ Require one selected, ready Change, clear observable behavior, test and production mutation authority, and an executable focused check. Read project authority, current worktree state, and the smallest owning production/test seam.
17
+
18
+ Stop when behavior or acceptance is unclear, mutation authority is missing, an existing symptom has an unexplained cause, the execution environment is unavailable, or a baseline failure cannot be separated. Return the same Change, evidence, and one needed next action.
19
+
20
+ ## RED
21
+
22
+ Add the smallest focused test at the real owning seam. Run it before production mutation and observe the expected missing or incorrect behavior.
23
+
24
+ RED is not a syntax, fixture, environment, or unrelated baseline failure. A passing test disproves the premise; refine it or stop without production mutation. An unexplained failure returns to diagnosis, not a guessed regression test.
25
+
26
+ ## GREEN
27
+
28
+ Make the minimum production change for GREEN, preserve scope, and rerun the same command. An unexplained failure returns to diagnosis without speculative widening.
29
+
30
+ ## REFACTOR
31
+
32
+ Refactor only after GREEN for a concrete local improvement; rerun the focused check. Otherwise skip it.
33
+
34
+ ## Retain or remove the test
35
+
36
+ Keep the test only when it protects observable behavior or a real boundary, adds distinct future confidence beyond existing checks, avoids implementation-detail coupling or duplicate coverage, and has proportionate maintenance cost. A user, Change, or project requirement to retain the test remains authoritative.
37
+
38
+ Otherwise treat it as a disposable probe: remove it before completion, verify that no disposable fixture or helper remains, and run the cheapest decisive existing check against the final production state. A removed probe is process evidence, not final verification; when automation is insufficient, record applicable manual or environment evidence.
39
+
40
+ ## Verify and return
41
+
42
+ After cleanup, run fresh required Change checks and narrow risk checks. Failure or unavailability cannot support completion. Update Tasks and Verify with final decisive evidence, omissions, and unresolved risk rather than a chronological test transcript; keep unresolved issues in Blockers.
43
+
44
+ Return to the same selected Change with WorkRef, final state, artifacts, fresh checks, omissions, Tasks, Blockers, and one next action; do not create parallel lifecycle state or recursively invoke another Skill.
45
+
46
+ When work remains, use Core's compact continuation fields in order: `WorkRef`, `Authority`, `Current state`, `Changed artifacts`, `Fresh verification`, `Blockers`, and `Next action`. Reopen authority, inspect drift, and refresh verification before resuming; continuation is not durable truth.
47
+
48
+ Git staging, commit, push, publication, deployment, review, archive, and approval remain separate actions requiring their own authority.