@ai-dev-methodologies/rlp-desk 0.1.1 → 0.2.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.
- package/README.md +98 -0
- package/docs/architecture.md +1 -1
- package/docs/protocol-reference.md +90 -3
- package/package.json +1 -1
- package/src/commands/rlp-desk.md +97 -10
- package/src/governance.md +87 -10
- package/src/scripts/init_ralph_desk.zsh +22 -6
- package/src/scripts/run_ralph_desk.zsh +753 -124
|
@@ -55,14 +55,22 @@ Read these files in order:
|
|
|
55
55
|
|
|
56
56
|
MANDATORY: When done with this iteration, write the following signal file:
|
|
57
57
|
- Path: $DESK/memos/$SLUG-iter-signal.json
|
|
58
|
-
- Format: {"iteration": N, "status": "continue|verify|blocked", "summary": "what was done", "timestamp": "ISO"}
|
|
58
|
+
- Format: {"iteration": N, "status": "continue|verify|blocked", "us_id": "US-NNN or null", "summary": "what was done", "timestamp": "ISO"}
|
|
59
59
|
- Status values:
|
|
60
|
-
- "continue" = current action done but more work remains
|
|
61
|
-
- "verify" =
|
|
60
|
+
- "continue" = current action done but more work remains (no verify needed yet)
|
|
61
|
+
- "verify" = current US complete + done-claim written → Verifier checks this US
|
|
62
62
|
- "blocked" = autonomous blocker
|
|
63
63
|
|
|
64
|
+
## Signal rules (per-US verification)
|
|
65
|
+
- After completing EACH user story → signal "verify" with "us_id" set to the story you just finished (e.g., "US-001").
|
|
66
|
+
- The Verifier will check ONLY that story's acceptance criteria.
|
|
67
|
+
- After ALL stories individually pass verification → signal "verify" with "us_id": "ALL" for a final full verify of all AC.
|
|
68
|
+
- Do NOT signal "continue" when a US is done — always signal "verify" per US.
|
|
69
|
+
- Signal "continue" ONLY when you have more work to do within the same US (e.g., a multi-step task).
|
|
70
|
+
|
|
64
71
|
## Stop behavior
|
|
65
|
-
-
|
|
72
|
+
- Single US achieved → write done-claim JSON to $DESK/memos/$SLUG-done-claim.json with the specific US, signal verify, exit
|
|
73
|
+
- All US achieved → write done-claim JSON with all US, signal verify with us_id "ALL", exit
|
|
66
74
|
- Autonomous blocker → write to $DESK/memos/$SLUG-blocked.md, exit
|
|
67
75
|
- Otherwise → set stop=continue, define next iteration contract in memory, exit
|
|
68
76
|
|
|
@@ -84,19 +92,27 @@ Required reads:
|
|
|
84
92
|
- Campaign Memory: $DESK/memos/$SLUG-memory.md (orientation only — not source of truth)
|
|
85
93
|
- Latest Context: $DESK/context/$SLUG-latest.md
|
|
86
94
|
- Done Claim: $DESK/memos/$SLUG-done-claim.json
|
|
95
|
+
- Iteration Signal: $DESK/memos/$SLUG-iter-signal.json (check us_id field)
|
|
96
|
+
|
|
97
|
+
## Verification Scope
|
|
98
|
+
Check the iter-signal.json "us_id" field:
|
|
99
|
+
- If us_id is a specific story (e.g., "US-001"): verify ONLY that story's acceptance criteria from the PRD.
|
|
100
|
+
- If us_id is "ALL": verify ALL acceptance criteria from the PRD (final full verify).
|
|
101
|
+
- If us_id is absent or null: verify all criteria in the done-claim (legacy/batch mode).
|
|
87
102
|
|
|
88
103
|
Process:
|
|
89
|
-
1. Read PRD acceptance criteria
|
|
104
|
+
1. Read PRD acceptance criteria (scoped to us_id if present)
|
|
90
105
|
2. Read done claim
|
|
91
106
|
3. Identify scope: run \`git diff --name-only\` to find changed files, then read those files + related imports only
|
|
92
107
|
4. Run fresh verification: build, test, lint, typecheck (per test-spec tools)
|
|
93
|
-
5. Check each criterion against fresh evidence
|
|
108
|
+
5. Check each criterion against fresh evidence (only for the scoped US, or all if us_id=ALL)
|
|
94
109
|
6. Run smoke test if defined in PRD
|
|
95
110
|
7. Write verdict JSON to: $DESK/memos/$SLUG-verify-verdict.json
|
|
96
111
|
|
|
97
112
|
Verdict JSON:
|
|
98
113
|
{
|
|
99
114
|
"verdict": "pass|fail|request_info",
|
|
115
|
+
"us_id": "US-NNN or ALL (matches the scope you verified)",
|
|
100
116
|
"verified_at_utc": "ISO timestamp",
|
|
101
117
|
"summary": "...",
|
|
102
118
|
"criteria_results": [{"criterion":"...","met":true/false,"evidence":"..."}],
|