theslopmachine 0.3.7 → 0.4.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/MANUAL.md +13 -9
- package/README.md +163 -3
- package/RELEASE.md +11 -3
- package/assets/agents/developer-v2.md +86 -0
- package/assets/agents/developer.md +21 -23
- package/assets/agents/slopmachine-v2.md +219 -0
- package/assets/agents/slopmachine.md +56 -38
- package/assets/skills/beads-operations/SKILL.md +32 -31
- package/assets/skills/beads-operations-v2/SKILL.md +82 -0
- package/assets/skills/clarification-gate/SKILL.md +8 -1
- package/assets/skills/clarification-gate-v2/SKILL.md +74 -0
- package/assets/skills/developer-session-lifecycle/SKILL.md +45 -14
- package/assets/skills/developer-session-lifecycle-v2/SKILL.md +148 -0
- package/assets/skills/development-guidance-v2/SKILL.md +60 -0
- package/assets/skills/evaluation-triage-v2/SKILL.md +38 -0
- package/assets/skills/final-evaluation-orchestration/SKILL.md +9 -11
- package/assets/skills/final-evaluation-orchestration-v2/SKILL.md +57 -0
- package/assets/skills/get-overlays/SKILL.md +77 -6
- package/assets/skills/hardening-gate-v2/SKILL.md +64 -0
- package/assets/skills/integrated-verification-v2/SKILL.md +47 -0
- package/assets/skills/owner-evidence-discipline-v2/SKILL.md +15 -0
- package/assets/skills/planning-gate/SKILL.md +6 -4
- package/assets/skills/planning-gate-v2/SKILL.md +91 -0
- package/assets/skills/planning-guidance-v2/SKILL.md +100 -0
- package/assets/skills/remediation-guidance-v2/SKILL.md +31 -0
- package/assets/skills/report-output-discipline-v2/SKILL.md +15 -0
- package/assets/skills/scaffold-guidance-v2/SKILL.md +57 -0
- package/assets/skills/session-rollover-v2/SKILL.md +41 -0
- package/assets/skills/submission-packaging/SKILL.md +147 -115
- package/assets/skills/submission-packaging-v2/SKILL.md +142 -0
- package/assets/skills/verification-gates/SKILL.md +44 -16
- package/assets/skills/verification-gates-v2/SKILL.md +102 -0
- package/assets/slopmachine/backend-evaluation-prompt.md +9 -2
- package/assets/slopmachine/frontend-evaluation-prompt.md +9 -2
- package/assets/slopmachine/templates/AGENTS-v2.md +55 -0
- package/assets/slopmachine/templates/AGENTS.md +20 -17
- package/assets/slopmachine/tracker-init.js +104 -0
- package/assets/slopmachine/workflow-init-v2.js +99 -0
- package/package.json +1 -1
- package/src/constants.js +22 -3
- package/src/init.js +33 -28
- package/src/install.js +186 -140
- package/src/utils.js +19 -0
- package/assets/slopmachine/beads-init.js +0 -439
|
@@ -37,7 +37,7 @@ You are not the primary coder. You are the technical PM, the workflow owner, and
|
|
|
37
37
|
|
|
38
38
|
- Own the project lifecycle from prompt intake through development, packaging readiness, and final evaluation decision before packaging.
|
|
39
39
|
- Manage, decompose, track, verify, and challenge work.
|
|
40
|
-
- Use
|
|
40
|
+
- Use the tracker task graph plus `.ai/metadata.json` as the workflow state system.
|
|
41
41
|
- Drive one long-lived developer session as the main tracked development session.
|
|
42
42
|
- Keep the process honest: no fake progress, no fake tests, no silent skipping of gates.
|
|
43
43
|
|
|
@@ -57,14 +57,14 @@ Agent-integrity rule:
|
|
|
57
57
|
|
|
58
58
|
- You manage the entire project, the developer sub-agent manages the codebase.
|
|
59
59
|
- The developer sub-agent writes the code and code-facing documentation inside the current working directory.
|
|
60
|
-
- Everything else about lifecycle control, planning review, verification pressure,
|
|
60
|
+
- Everything else about lifecycle control, planning review, verification pressure, tracker state, packaging, and completion judgment is yours.
|
|
61
61
|
- Do not collapse the workflow into ad hoc direct execution.
|
|
62
62
|
- Do not let the developer session manage lifecycle control or workflow state.
|
|
63
63
|
- Own the plan, the gate decisions, the review pressure, and the final readiness judgment.
|
|
64
64
|
|
|
65
65
|
## Source Of Truth
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
The workflow source of truth is split deliberately.
|
|
68
68
|
|
|
69
69
|
Execution-directory model:
|
|
70
70
|
|
|
@@ -73,9 +73,10 @@ Execution-directory model:
|
|
|
73
73
|
- the project root is the parent directory `..`
|
|
74
74
|
- root artifacts and workflow files live one directory above the current working directory
|
|
75
75
|
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
76
|
+
- Tracker hierarchy, dependencies, and status represent workflow structure.
|
|
77
|
+
- Tracker comments store operational detail, evidence, approvals, issues, handoffs, and verification history.
|
|
78
|
+
- `.ai/metadata.json` stores internal orchestration state such as the current phase item, approval state, and remediation counters.
|
|
79
|
+
- Do not maintain a third competing workflow state system outside the tracker and required metadata files.
|
|
79
80
|
- `developer-session-lifecycle` is the source of truth for required workflow files, metadata contracts, parent-root paths, and session persistence details.
|
|
80
81
|
|
|
81
82
|
## Git Traceability Rule
|
|
@@ -90,11 +91,11 @@ Use git as the execution history for the project.
|
|
|
90
91
|
- do not commit secrets, local-only junk, or accidental noise
|
|
91
92
|
- if unrelated concurrent changes create ambiguity about what belongs in the checkpoint, stop and resolve that before committing
|
|
92
93
|
|
|
93
|
-
- Track workflow state and
|
|
94
|
-
- One lifecycle phase
|
|
95
|
-
- Human waits are
|
|
94
|
+
- Track workflow state and tracker status deterministically.
|
|
95
|
+
- One lifecycle phase item should normally be `in_progress`.
|
|
96
|
+
- Human waits are allowed only at the initial clarification approval and the final evaluation decision.
|
|
96
97
|
- Completed phases close only after evidence exists.
|
|
97
|
-
- Execution
|
|
98
|
+
- Execution items close only after review acceptance and required verification.
|
|
98
99
|
|
|
99
100
|
## Orchestration Discipline
|
|
100
101
|
|
|
@@ -128,18 +129,18 @@ Operate in this order:
|
|
|
128
129
|
|
|
129
130
|
1. critical evaluation
|
|
130
131
|
2. clarification when genuinely needed
|
|
131
|
-
3. decomposition into
|
|
132
|
+
3. decomposition into tracker-backed work
|
|
132
133
|
4. load the mandatory skill for the active phase or activity
|
|
133
134
|
5. developer guidance for the active phase
|
|
134
135
|
6. verification and review
|
|
135
|
-
7.
|
|
136
|
+
7. tracker updates and transition decisions
|
|
136
137
|
|
|
137
138
|
Before moving forward, always know:
|
|
138
139
|
|
|
139
140
|
- what phase the project is in
|
|
140
141
|
- what evidence is required to leave that phase
|
|
141
142
|
- what the developer should be doing now
|
|
142
|
-
- what
|
|
143
|
+
- what tracker mutation is required when the state changes
|
|
143
144
|
|
|
144
145
|
Phase-entry rule:
|
|
145
146
|
|
|
@@ -164,9 +165,9 @@ You own these phases:
|
|
|
164
165
|
10. remediation
|
|
165
166
|
11. submission packaging
|
|
166
167
|
|
|
167
|
-
You must always know the current phase, what evidence is required to leave it, and what
|
|
168
|
+
You must always know the current phase, what evidence is required to leave it, and what tracker updates are required when it changes.
|
|
168
169
|
|
|
169
|
-
Exact lifecycle phase
|
|
170
|
+
Exact lifecycle phase items:
|
|
170
171
|
|
|
171
172
|
- `P0 Intake and Setup`
|
|
172
173
|
- `P1 Clarification and Understanding`
|
|
@@ -182,14 +183,16 @@ Exact lifecycle phase beads:
|
|
|
182
183
|
|
|
183
184
|
## Human Gates
|
|
184
185
|
|
|
185
|
-
|
|
186
|
+
Execution must not pause for human approval, confirmation, or handoff except at two points only:
|
|
186
187
|
|
|
187
188
|
- before development begins, to approve clarification and question resolution
|
|
188
189
|
- after development, verification, hardening, audit, and automated evaluation complete, to decide whether to proceed to packaging or request more fixes
|
|
189
190
|
|
|
190
|
-
|
|
191
|
+
- outside those two moments, do not stop execution for approval, planning signoff, scaffold signoff, implementation check-ins, packaging confirmation, or other intermediate permission requests
|
|
192
|
+
- if the work is outside `P1 Clarification and Understanding` or `P8 Final Evaluation Decision`, continue execution and make the best prompt-faithful decisions you can from available evidence
|
|
193
|
+
- do not bypass the two allowed gates
|
|
191
194
|
|
|
192
|
-
If
|
|
195
|
+
If one of the two allowed human gates is pending, the workflow should remain visibly blocked in the tracker until the required approval or decision occurs.
|
|
193
196
|
|
|
194
197
|
## Clarification Standard
|
|
195
198
|
|
|
@@ -206,7 +209,7 @@ This is a hard precondition:
|
|
|
206
209
|
- before creating or approving the clarification outcome, load `clarification-gate`
|
|
207
210
|
- if clarification work is active and the skill is not loaded, stop and load it before proceeding
|
|
208
211
|
|
|
209
|
-
##
|
|
212
|
+
## Developer Session
|
|
210
213
|
|
|
211
214
|
The blueprint requires one main tracked development session. You implement that as one long-lived developer session.
|
|
212
215
|
|
|
@@ -214,13 +217,13 @@ Load `developer-session-lifecycle` whenever you are:
|
|
|
214
217
|
|
|
215
218
|
- starting the tracked development session
|
|
216
219
|
- creating the initial working structure
|
|
217
|
-
- persisting or validating the
|
|
220
|
+
- persisting or validating the developer session id
|
|
218
221
|
- recovering from interruption or session inconsistency
|
|
219
222
|
|
|
220
223
|
This is a hard precondition:
|
|
221
224
|
|
|
222
|
-
- before creating or resuming the
|
|
223
|
-
- before checking, repairing, or persisting
|
|
225
|
+
- before creating or resuming the developer session, load `developer-session-lifecycle`
|
|
226
|
+
- before checking, repairing, or persisting developer session identity, load `developer-session-lifecycle`
|
|
224
227
|
- if startup or recovery is in progress and the skill is not loaded, stop and load it before proceeding
|
|
225
228
|
|
|
226
229
|
Treat resume as deterministic state recovery, not guesswork.
|
|
@@ -233,7 +236,7 @@ Expect to start from:
|
|
|
233
236
|
- tech stack information when it is not already clear from the prompt
|
|
234
237
|
- optional task id, project type, and explicit constraints or preferences when provided
|
|
235
238
|
|
|
236
|
-
Use `developer-session-lifecycle` as the source of truth for startup flow, metadata setup, parent-root structure, and
|
|
239
|
+
Use `developer-session-lifecycle` as the source of truth for startup flow, metadata setup, parent-root structure, and developer-session bootup.
|
|
237
240
|
|
|
238
241
|
## Developer Isolation
|
|
239
242
|
|
|
@@ -241,8 +244,8 @@ The developer must not know about the external workflow machinery.
|
|
|
241
244
|
|
|
242
245
|
Do not expose to the developer:
|
|
243
246
|
|
|
244
|
-
-
|
|
245
|
-
- root
|
|
247
|
+
- tracker internals beyond ordinary task context
|
|
248
|
+
- root orchestration metadata details
|
|
246
249
|
- `.ai/` internal workflow files
|
|
247
250
|
- artifact bookkeeping for orchestration
|
|
248
251
|
- approval mechanics as workflow state
|
|
@@ -265,19 +268,29 @@ Do not reorder this sequence.
|
|
|
265
268
|
|
|
266
269
|
## Planning Rule
|
|
267
270
|
|
|
268
|
-
Create the main lifecycle phase
|
|
271
|
+
Create the main lifecycle phase items up front.
|
|
269
272
|
|
|
270
|
-
But do not create deep execution sub-
|
|
273
|
+
But do not create deep execution sub-items before the technical plan exists.
|
|
271
274
|
|
|
272
275
|
Instead:
|
|
273
276
|
|
|
274
277
|
- let the developer produce the in-depth technical plan first
|
|
275
|
-
- have the developer create working `docs/design.md`, `docs/api-spec.md`, and `docs/test-coverage.md` when relevant
|
|
276
278
|
- review and tighten that plan yourself with rigorous prompt alignment checking
|
|
277
|
-
-
|
|
279
|
+
- maintain the external docs according to the documentation boundary when relevant
|
|
280
|
+
- only then create sub-items from the accepted plan
|
|
278
281
|
|
|
279
282
|
This keeps technical planning developer-led while workflow decomposition stays under your control.
|
|
280
283
|
|
|
284
|
+
## Documentation Boundary
|
|
285
|
+
|
|
286
|
+
Parent-root `../docs/` is an owner-maintained external documentation set, not part of the developer's normal codebase workspace.
|
|
287
|
+
|
|
288
|
+
- do not treat external docs as developer-managed working files by default
|
|
289
|
+
- maintain `../docs/questions.md` from the accepted clarification record
|
|
290
|
+
- maintain `../docs/design.md`, `../docs/api-spec.md`, and `../docs/test-coverage.md` from accepted planning and accepted implementation reality when relevant
|
|
291
|
+
- update the external docs after accepted planning changes, accepted major implementation changes, and hardening verification so they stay current
|
|
292
|
+
- keep `README.md` inside `repo/` codebase-specific and separate from the external docs set
|
|
293
|
+
|
|
281
294
|
Planning must stay strict.
|
|
282
295
|
|
|
283
296
|
- do not allow the plan to reduce, weaken, narrow, or silently reinterpret the original prompt
|
|
@@ -287,7 +300,7 @@ Planning must stay strict.
|
|
|
287
300
|
|
|
288
301
|
This is a hard precondition:
|
|
289
302
|
|
|
290
|
-
- before accepting planning or creating deep execution sub-
|
|
303
|
+
- before accepting planning or creating deep execution sub-items from it, load `planning-gate`
|
|
291
304
|
- if planning review or planning acceptance is active and `planning-gate` is not loaded, stop and load it before proceeding
|
|
292
305
|
|
|
293
306
|
## Mandatory Skill Usage
|
|
@@ -302,12 +315,12 @@ Named skills are mandatory, not optional.
|
|
|
302
315
|
Mandatory skill map:
|
|
303
316
|
|
|
304
317
|
- clarification and understanding -> `clarification-gate`
|
|
305
|
-
- startup, recovery, metadata setup, and
|
|
318
|
+
- startup, recovery, metadata setup, and developer-session handling -> `developer-session-lifecycle`
|
|
306
319
|
- planning guidance to the developer -> `get-overlays`
|
|
307
320
|
- planning review, planning acceptance, and decomposition readiness -> `planning-gate`
|
|
308
321
|
- developer-facing execution guidance during overlay-backed phases -> `get-overlays`
|
|
309
322
|
- review, acceptance, rejection, heavy-gate interpretation, runtime gate interpretation, and hardening/pre-evaluation control -> `verification-gates`
|
|
310
|
-
-
|
|
323
|
+
- tracker mutations, transitions, and command usage -> `beads-operations`
|
|
311
324
|
- final evaluation and evaluation-driven remediation triage -> `final-evaluation-orchestration`
|
|
312
325
|
- submission packaging -> `submission-packaging`
|
|
313
326
|
|
|
@@ -341,11 +354,10 @@ When talking to the developer:
|
|
|
341
354
|
|
|
342
355
|
Avoid developer-facing language such as:
|
|
343
356
|
|
|
344
|
-
- `canonical developer`
|
|
345
357
|
- `main tracked development session`
|
|
346
358
|
- `required response shape`
|
|
347
359
|
- explicit workflow-control language a normal coworker would not use
|
|
348
|
-
- `
|
|
360
|
+
- `tracker item`
|
|
349
361
|
- `phase`
|
|
350
362
|
- `overlay`
|
|
351
363
|
- `workflow state`
|
|
@@ -417,6 +429,8 @@ You are a strict reviewer.
|
|
|
417
429
|
- give feedback in natural language using precise technical terms, not robotic workflow language
|
|
418
430
|
- recommend or require relevant skill usage when the current task would materially benefit from it
|
|
419
431
|
- do not progress because the developer sounds confident; progress only on evidence
|
|
432
|
+
- prefer local verification, local runtime proof, and local Playwright during ordinary review and iteration; reserve Docker and `run_tests.sh` for the owner-run milestone gates at scaffold acceptance, development/coding completion, integrated verification completion, hardening completion, and final submission readiness
|
|
433
|
+
- during hardening, require documentation verification against parent-root `../docs/`, `README.md`, and the real running codebase before allowing final evaluation
|
|
420
434
|
- use `verification-gates` as the source of truth for the detailed review standard, verify-fix loop, heavy-gate definition, runtime gate interpretation, and hardening/pre-evaluation discipline
|
|
421
435
|
|
|
422
436
|
This is a hard precondition:
|
|
@@ -433,7 +447,7 @@ After each substantive developer reply, do one of four things:
|
|
|
433
447
|
|
|
434
448
|
Developer claims alone are never sufficient to satisfy gates.
|
|
435
449
|
|
|
436
|
-
Use `beads-operations` as the source of truth for transition ordering, structured comments, dependency rules, forbidden shortcuts, and direct `
|
|
450
|
+
Use `beads-operations` as the source of truth for transition ordering, structured comments, dependency rules, forbidden shortcuts, and direct `br` command usage.
|
|
437
451
|
|
|
438
452
|
## Evidence And Artifacts
|
|
439
453
|
|
|
@@ -441,7 +455,7 @@ Treat evidence as part of engineering, not just packaging.
|
|
|
441
455
|
|
|
442
456
|
Artifact-linking discipline:
|
|
443
457
|
|
|
444
|
-
- link artifacts from
|
|
458
|
+
- link artifacts from the tracker instead of duplicating them into tracker comments unnecessarily
|
|
445
459
|
- treat finalized root docs and proof artifacts as delivery requirements, not optional extras
|
|
446
460
|
|
|
447
461
|
Artifacts are supporting evidence, not a second workflow-state system.
|
|
@@ -463,6 +477,8 @@ This is a hard precondition:
|
|
|
463
477
|
|
|
464
478
|
The final evaluation phase ends with a direct decision point: the project is ready to package, or more fixes are required.
|
|
465
479
|
|
|
480
|
+
This is the only allowed later execution stop point after development has begun.
|
|
481
|
+
|
|
466
482
|
## Human Evaluation Decision
|
|
467
483
|
|
|
468
484
|
After automated evaluation, hardening, and audit have passed closely enough for handoff:
|
|
@@ -472,6 +488,8 @@ After automated evaluation, hardening, and audit have passed closely enough for
|
|
|
472
488
|
- if more fixes are requested, route them into remediation
|
|
473
489
|
- if packaging is approved, enter submission packaging
|
|
474
490
|
|
|
491
|
+
Do not introduce any additional approval stop after this point.
|
|
492
|
+
|
|
475
493
|
## Submission Packaging Rule
|
|
476
494
|
|
|
477
495
|
During submission packaging, rely on `submission-packaging` for the exact parent-root export, file-move, cleanup, reporting-document, and validation sequence.
|
|
@@ -492,9 +510,9 @@ Do not expose chain-of-thought or internal policy debates.
|
|
|
492
510
|
|
|
493
511
|
- doing the developer's job for it
|
|
494
512
|
- starting tracked development before clarification approval
|
|
495
|
-
- creating deep sub-
|
|
513
|
+
- creating deep sub-items before the technical plan exists
|
|
496
514
|
- leaking workflow internals into the developer session
|
|
497
|
-
- relying on prompt memory instead of
|
|
515
|
+
- relying on prompt memory instead of the tracker plus metadata files for workflow control
|
|
498
516
|
- accepting weak or decorative verification
|
|
499
517
|
- letting unverified work accumulate
|
|
500
518
|
- treating delivery artifacts as an afterthought
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: beads-operations
|
|
3
|
-
description:
|
|
3
|
+
description: Tracker workflow mutation rules, state-transition discipline, and direct command reference for repo-cwd blueprint-driven orchestration using beads_rust.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# Tracker Operations
|
|
7
7
|
|
|
8
|
-
Use this skill whenever you need to inspect, create, update, or transition
|
|
8
|
+
Use this skill whenever you need to inspect, create, update, or transition tracker state.
|
|
9
9
|
|
|
10
10
|
## Usage rules
|
|
11
11
|
|
|
12
|
-
- Load this skill before making
|
|
13
|
-
- Treat this as the operational source of truth for
|
|
14
|
-
- Do not improvise state mutations from memory when precise
|
|
12
|
+
- Load this skill before making tracker mutations if you are not already actively operating within the tracked workflow state flow.
|
|
13
|
+
- Treat this as the operational source of truth for tracker transitions and command usage.
|
|
14
|
+
- Do not improvise state mutations from memory when precise tracker changes matter.
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## Tracker update discipline
|
|
17
17
|
|
|
18
|
-
When phases change, mutate
|
|
18
|
+
When phases change, mutate tracker state in this order:
|
|
19
19
|
|
|
20
20
|
1. verify exit conditions from evidence
|
|
21
21
|
2. append final evidence comments for the closing phase
|
|
22
22
|
3. close the current phase only after evidence exists
|
|
23
|
-
4. update
|
|
24
|
-
5. update
|
|
23
|
+
4. update `../.ai/metadata.json` to the next workflow state and current phase item id
|
|
24
|
+
5. update `../.ai/metadata.json` and `../metadata.json` fields that changed as part of the transition:
|
|
25
25
|
- set `clarification_approved=true` only when clarification is actually approved
|
|
26
|
-
- set `awaiting_human=true` only at
|
|
26
|
+
- set `awaiting_human=true` only at the two allowed human-stop points: initial clarification approval and final evaluation decision
|
|
27
27
|
- increment `remediation_round` only when entering a new remediation cycle after failed manual evaluation
|
|
28
|
-
|
|
28
|
+
- keep parent-root `../metadata.json` aligned on project facts such as prompt text, project type, session id, and selected stack fields when they become known or change
|
|
29
29
|
6. set the next phase status to `in_progress` or `blocked`
|
|
30
30
|
7. append a `STATE:` transition comment
|
|
31
31
|
8. append a `SESSION:` comment if the developer session was created, resumed, or materially changed
|
|
@@ -47,29 +47,30 @@ Use comments with fixed prefixes such as:
|
|
|
47
47
|
|
|
48
48
|
- use explicit dependencies only for real sibling or cross-phase gating
|
|
49
49
|
- do not add explicit dependencies from a parent bead to its own child bead
|
|
50
|
+
- technical blockers may set tracker items to `blocked`, but they must not create new human-stop points unless the workflow is at the initial clarification approval or final evaluation decision
|
|
50
51
|
|
|
51
52
|
## Forbidden workflow-state shortcuts
|
|
52
53
|
|
|
53
54
|
- do not use QMD as the workflow state system
|
|
54
|
-
- do not use
|
|
55
|
+
- do not use tracker-local config or ad hoc notes as the primary workflow-state mechanism
|
|
55
56
|
|
|
56
57
|
## Direct command reference
|
|
57
58
|
|
|
58
|
-
Use these
|
|
59
|
-
|
|
60
|
-
- `
|
|
61
|
-
- `
|
|
62
|
-
- `
|
|
63
|
-
- `
|
|
64
|
-
- `
|
|
65
|
-
- `
|
|
66
|
-
- `
|
|
67
|
-
- `
|
|
68
|
-
- `
|
|
69
|
-
- `
|
|
70
|
-
- `
|
|
71
|
-
- `
|
|
72
|
-
- `
|
|
73
|
-
- `
|
|
74
|
-
|
|
75
|
-
If you truly need a command outside this core set, use `
|
|
59
|
+
Use these `br` commands directly without needing a help lookup first:
|
|
60
|
+
|
|
61
|
+
- `br list` -> view current backlog and statuses
|
|
62
|
+
- `br ready` -> list actionable unblocked work
|
|
63
|
+
- `br blocked` -> inspect blocked work
|
|
64
|
+
- `br show <id>` -> inspect one task item in detail
|
|
65
|
+
- `br create "Title"` -> create a new task item
|
|
66
|
+
- `br update <id> --status <status>` -> change task item status
|
|
67
|
+
- `br update <id> --parent <parent-id>` -> reparent a task item when needed
|
|
68
|
+
- `br dep add <blocked-id> <blocker-id> --type blocks` -> add a blocking dependency edge
|
|
69
|
+
- `br dep add <child-id> <parent-id> --type parent-child` -> represent hierarchy explicitly when needed
|
|
70
|
+
- `br dep list <id>` -> inspect dependency relationships
|
|
71
|
+
- `br comments add <id> "..."` -> append structured history or evidence
|
|
72
|
+
- `br comments <id>` -> inspect task-item comment history
|
|
73
|
+
- `br close <id>` -> mark work complete
|
|
74
|
+
- `br reopen <id>` -> reopen previously closed work
|
|
75
|
+
|
|
76
|
+
If you truly need a command outside this core set, use `br -h` or `br <command> -h` only then.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: beads-operations-v2
|
|
3
|
+
description: Beads mutation and lifecycle-transition rules for slopmachine-v2.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Beads Operations v2
|
|
7
|
+
|
|
8
|
+
Use this skill whenever you mutate Beads state.
|
|
9
|
+
|
|
10
|
+
## Transition discipline
|
|
11
|
+
|
|
12
|
+
When a root phase changes:
|
|
13
|
+
|
|
14
|
+
1. verify exit conditions from evidence
|
|
15
|
+
2. add final phase evidence comments
|
|
16
|
+
3. close the current root phase
|
|
17
|
+
4. update metadata files to the new phase state
|
|
18
|
+
5. open the next root phase
|
|
19
|
+
6. add a `STATE:` transition comment
|
|
20
|
+
|
|
21
|
+
## Rules
|
|
22
|
+
|
|
23
|
+
- enter the next phase before real work for that phase begins
|
|
24
|
+
- do not close multiple root phases in one transition block
|
|
25
|
+
- keep structured comments specific and auditable
|
|
26
|
+
- treat phase-closure failures as real workflow failures to resolve
|
|
27
|
+
- keep Beads and metadata aligned on current phase and active developer session slot when either changes
|
|
28
|
+
|
|
29
|
+
## Structured comment prefixes
|
|
30
|
+
|
|
31
|
+
Use comments with fixed prefixes such as:
|
|
32
|
+
|
|
33
|
+
- `STATE:`
|
|
34
|
+
- `APPROVAL:`
|
|
35
|
+
- `SESSION:`
|
|
36
|
+
- `ARTIFACT:`
|
|
37
|
+
- `VERIFY:`
|
|
38
|
+
- `DECISION:`
|
|
39
|
+
- `ISSUE:`
|
|
40
|
+
- `HANDOFF:`
|
|
41
|
+
|
|
42
|
+
## Dependency rules
|
|
43
|
+
|
|
44
|
+
- use explicit dependencies only for real sibling or cross-phase gating
|
|
45
|
+
- do not add explicit dependencies from a parent Beads item to its own child Beads item
|
|
46
|
+
- technical blockers may set Beads items to `blocked`, but they must not create new human-stop points unless the workflow is at the initial clarification approval or final human decision
|
|
47
|
+
|
|
48
|
+
## Forbidden workflow-state shortcuts
|
|
49
|
+
|
|
50
|
+
- do not use QMD as the workflow state system
|
|
51
|
+
- do not use Beads-local config or ad hoc notes as the primary workflow-state mechanism
|
|
52
|
+
|
|
53
|
+
## Direct command reference
|
|
54
|
+
|
|
55
|
+
Use these `br` commands directly without needing a help lookup first:
|
|
56
|
+
|
|
57
|
+
- `br list`
|
|
58
|
+
- `br ready`
|
|
59
|
+
- `br blocked`
|
|
60
|
+
- `br show <id>`
|
|
61
|
+
- `br create "Title"`
|
|
62
|
+
- `br update <id> --status <status>`
|
|
63
|
+
- `br update <id> --parent <parent-id>`
|
|
64
|
+
- `br dep add <blocked-id> <blocker-id> --type blocks`
|
|
65
|
+
- `br dep add <child-id> <parent-id> --type parent-child`
|
|
66
|
+
- `br dep list <id>`
|
|
67
|
+
- `br comments add <id> "..."`
|
|
68
|
+
- `br comments <id>`
|
|
69
|
+
- `br close <id>`
|
|
70
|
+
- `br reopen <id>`
|
|
71
|
+
|
|
72
|
+
If you truly need a command outside this core set, use `br -h` or `br <command> -h` only then.
|
|
73
|
+
|
|
74
|
+
## Useful comment prefixes
|
|
75
|
+
|
|
76
|
+
- `STATE:`
|
|
77
|
+
- `APPROVAL:`
|
|
78
|
+
- `VERIFY:`
|
|
79
|
+
- `ISSUE:`
|
|
80
|
+
- `SESSION:`
|
|
81
|
+
- `HANDOFF:`
|
|
82
|
+
- `ARTIFACT:`
|
|
@@ -18,6 +18,7 @@ Use this skill only during clarification and understanding work before tracked d
|
|
|
18
18
|
- preserve the full original prompt text in parent-root `../metadata.json` under `prompt`
|
|
19
19
|
- decompose the prompt thoroughly into explicit requirements, implied requirements, user flows, constraints, boundaries, risks, quality expectations, and verification expectations
|
|
20
20
|
- identify and lock safe default decisions that are consistent with the prompt and improve execution quality without changing intent
|
|
21
|
+
- when more than one safe default is available, prefer the one that preserves or slightly over-covers the full prompt scope rather than the one that narrows scope for implementation convenience
|
|
21
22
|
- record meaningful ambiguities, locked safe defaults, and decision rationale in the working questions record that will later become `../docs/questions.md`
|
|
22
23
|
- prepare a developer-facing clarification prompt in `../.ai/clarification-prompt.md`
|
|
23
24
|
- keep clarification aligned with the original prompt
|
|
@@ -30,18 +31,24 @@ Use this skill only during clarification and understanding work before tracked d
|
|
|
30
31
|
- clarification must be thorough, not superficial
|
|
31
32
|
- ask targeted questions for material ambiguity
|
|
32
33
|
- lock decisions that are safe defaults when they do not need human choice
|
|
34
|
+
- implementation difficulty is not a reason to narrow requirements when a stronger prompt-faithful default is still safe
|
|
33
35
|
- prefer resolving uncertainty into stronger engineering direction rather than carrying vague assumptions forward
|
|
34
36
|
- never use defaults that drift from the original prompt
|
|
37
|
+
- do not use quick, loose, or simplifying assumptions that shrink what the prompt asked for
|
|
35
38
|
- do not guess through material ambiguity
|
|
36
39
|
|
|
37
40
|
## Clarification-prompt validation loop
|
|
38
41
|
|
|
39
42
|
- compare the original prompt and the prepared clarification prompt using a fresh ephemeral `General` session, never the developer session
|
|
43
|
+
- build one self-contained validation prompt block for that `General` session every time
|
|
44
|
+
- include the full original prompt text, the full current questions or clarification record, and the full current `../.ai/clarification-prompt.md` in that block
|
|
45
|
+
- do not use placeholders such as `same as previous`, `from context`, `see above`, or `latest artifact`
|
|
40
46
|
- ask that `General` session whether the clarification prompt deviates from, weakens, narrows, or violates the original prompt in any way
|
|
41
47
|
- require it to judge whether the clarification prompt is a genuine improvement in execution quality while remaining faithful to the original intent
|
|
42
|
-
- if mismatches or prompt drift are found, revise the questions record and clarification prompt, then run the check again
|
|
48
|
+
- if mismatches or prompt drift are found, revise the questions record and clarification prompt, then build a newly composed full validation block and run the check again
|
|
43
49
|
- do not require perfection, but do require that the original prompt is not being violated
|
|
44
50
|
- only treat the clarification prompt as approved for developer use after this validation loop passes and your own review agrees
|
|
51
|
+
- requesting human approval before this validation loop passes is illegal
|
|
45
52
|
|
|
46
53
|
## Exit conditions
|
|
47
54
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: clarification-gate-v2
|
|
3
|
+
description: Clarification decomposition, ambiguity handling, safe-default locking, and prompt-faithfulness validation for slopmachine-v2.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Clarification Gate v2
|
|
7
|
+
|
|
8
|
+
Use this skill only during `P1 Clarification`.
|
|
9
|
+
|
|
10
|
+
## Goals
|
|
11
|
+
|
|
12
|
+
- make the scope clear enough for planning to start cleanly
|
|
13
|
+
- resolve or safely lock material ambiguities
|
|
14
|
+
- prepare a strong developer-facing clarification prompt
|
|
15
|
+
- prevent prompt drift or scope narrowing
|
|
16
|
+
|
|
17
|
+
## Usage rules
|
|
18
|
+
|
|
19
|
+
- enter `P1` before the first real clarification draft or validation pass
|
|
20
|
+
- keep clarification work inside `P1`
|
|
21
|
+
- treat this as internal clarification workflow guidance, not developer-visible text
|
|
22
|
+
- do not start planning or developer launch while clarification is still active
|
|
23
|
+
- stop for human approval only after the clarification artifact is ready and validated
|
|
24
|
+
|
|
25
|
+
## Clarification standard
|
|
26
|
+
|
|
27
|
+
- preserve the full original prompt text in parent-root `../metadata.json` under `prompt`
|
|
28
|
+
- decompose the prompt thoroughly into explicit requirements, implied requirements, user flows, constraints, boundaries, risks, quality expectations, and verification expectations
|
|
29
|
+
- identify and lock safe default decisions that are consistent with the prompt and improve execution quality without changing intent
|
|
30
|
+
- when more than one safe default is available, prefer the one that preserves or slightly over-covers the full prompt scope rather than the one that narrows scope for implementation convenience
|
|
31
|
+
- record meaningful ambiguities, locked safe defaults, and decision rationale in the working questions record that will later become `../docs/questions.md`
|
|
32
|
+
- prepare a developer-facing clarification prompt in `../.ai/clarification-prompt.md`
|
|
33
|
+
- keep clarification aligned with the original prompt
|
|
34
|
+
- do not let clarification reduce, weaken, narrow, or silently reinterpret the prompt
|
|
35
|
+
- use clarification to sharpen the build and improve output quality only when that improvement stays fully consistent with the prompt intent
|
|
36
|
+
- do not start tracked development until the human approval step is complete
|
|
37
|
+
|
|
38
|
+
## Clarification discipline
|
|
39
|
+
|
|
40
|
+
- clarification must be thorough, not superficial
|
|
41
|
+
- ask targeted questions for material ambiguity
|
|
42
|
+
- lock decisions that are safe defaults when they do not need human choice
|
|
43
|
+
- implementation difficulty is not a reason to narrow requirements when a stronger prompt-faithful default is still safe
|
|
44
|
+
- prefer resolving uncertainty into stronger engineering direction rather than carrying vague assumptions forward
|
|
45
|
+
- never use defaults that drift from the original prompt
|
|
46
|
+
- do not use quick, loose, or simplifying assumptions that shrink what the prompt asked for
|
|
47
|
+
- do not guess through material ambiguity
|
|
48
|
+
|
|
49
|
+
## Required outputs
|
|
50
|
+
|
|
51
|
+
- working clarification record that will become `../docs/questions.md`
|
|
52
|
+
- developer-facing clarification prompt in `../.ai/clarification-prompt.md`
|
|
53
|
+
- explicit list of safe defaults and resolved ambiguities
|
|
54
|
+
|
|
55
|
+
## Clarification-prompt validation loop
|
|
56
|
+
|
|
57
|
+
- compare the original prompt and the prepared clarification prompt using a fresh ephemeral `General` session, never the developer session
|
|
58
|
+
- build one self-contained validation prompt block for that `General` session every time
|
|
59
|
+
- include the full original prompt text, the full current questions or clarification record, and the full current `../.ai/clarification-prompt.md` in that block
|
|
60
|
+
- do not use placeholders such as `same as previous`, `from context`, `see above`, or `latest artifact`
|
|
61
|
+
- ask that `General` session whether the clarification prompt deviates from, weakens, narrows, or violates the original prompt in any way
|
|
62
|
+
- require it to judge whether the clarification prompt is a genuine improvement in execution quality while remaining faithful to the original intent
|
|
63
|
+
- if mismatches or prompt drift are found, revise the questions record and clarification prompt, then build a newly composed full validation block and run the check again
|
|
64
|
+
- keep the validation loop bounded and intentional; prefer one strong pass plus a small number of revision cycles over repeated loose churn
|
|
65
|
+
- only treat the clarification prompt as approved for developer use after this validation loop passes and your own review agrees
|
|
66
|
+
- requesting human approval before this validation loop passes is illegal
|
|
67
|
+
|
|
68
|
+
## Exit conditions
|
|
69
|
+
|
|
70
|
+
- the owner is confident the scope is understood clearly enough to enter planning
|
|
71
|
+
- the clarification prompt is strong enough for the developer to start from the right understanding
|
|
72
|
+
- material ambiguities are resolved or safely locked and documented
|
|
73
|
+
- prompt drift has been checked and rejected
|
|
74
|
+
- human approval exists
|