theslopmachine 1.0.0 → 1.0.2

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.
Files changed (50) hide show
  1. package/assets/agents/developer.md +31 -23
  2. package/assets/agents/slopmachine-claude.md +61 -55
  3. package/assets/agents/slopmachine.md +47 -45
  4. package/assets/claude/agents/developer.md +287 -151
  5. package/assets/claude/skills/integration-fanin/SKILL.md +122 -0
  6. package/assets/claude/skills/module-handoff/SKILL.md +98 -0
  7. package/assets/claude/skills/module-lane-execution/SKILL.md +126 -0
  8. package/assets/claude/skills/shared-surface-control/SKILL.md +97 -0
  9. package/assets/skills/clarification-gate/SKILL.md +2 -0
  10. package/assets/skills/claude-worker-management/SKILL.md +70 -56
  11. package/assets/skills/development-guidance/SKILL.md +39 -11
  12. package/assets/skills/evaluation-triage/SKILL.md +2 -2
  13. package/assets/skills/final-evaluation-orchestration/SKILL.md +20 -10
  14. package/assets/skills/integrated-verification/SKILL.md +56 -8
  15. package/assets/skills/planning-gate/SKILL.md +67 -30
  16. package/assets/skills/planning-guidance/SKILL.md +15 -3
  17. package/assets/skills/scaffold-guidance/SKILL.md +1 -0
  18. package/assets/skills/submission-packaging/SKILL.md +19 -4
  19. package/assets/skills/verification-gates/SKILL.md +14 -14
  20. package/assets/slopmachine/clarifier-agent-prompt.md +88 -0
  21. package/assets/slopmachine/owner-verification-checklist.md +25 -9
  22. package/assets/slopmachine/phase-1-design-prompt.md +80 -14
  23. package/assets/slopmachine/phase-1-design-template.md +64 -12
  24. package/assets/slopmachine/phase-2-execution-planning-prompt.md +203 -103
  25. package/assets/slopmachine/phase-2-plan-template.md +236 -87
  26. package/assets/slopmachine/templates/AGENTS.md +22 -10
  27. package/assets/slopmachine/templates/CLAUDE.md +21 -9
  28. package/assets/slopmachine/templates/plan.md +235 -76
  29. package/assets/slopmachine/utils/__pycache__/claude_live_hook.cpython-311.pyc +0 -0
  30. package/assets/slopmachine/utils/__pycache__/cleanup_delivery_artifacts.cpython-311.pyc +0 -0
  31. package/assets/slopmachine/utils/__pycache__/convert_ai_session.cpython-311.pyc +0 -0
  32. package/assets/slopmachine/utils/__pycache__/normalize_claude_session.cpython-311.pyc +0 -0
  33. package/assets/slopmachine/utils/__pycache__/strip_session_parent.cpython-311.pyc +0 -0
  34. package/assets/slopmachine/utils/claude_create_session.mjs +5 -3
  35. package/assets/slopmachine/utils/claude_export_session.mjs +1 -1
  36. package/assets/slopmachine/utils/claude_live_common.mjs +39 -4
  37. package/assets/slopmachine/utils/claude_live_launch.mjs +228 -106
  38. package/assets/slopmachine/utils/claude_live_turn.mjs +32 -3
  39. package/assets/slopmachine/utils/claude_resume_session.mjs +5 -3
  40. package/assets/slopmachine/utils/claude_wait_for_rate_limit_reset.mjs +26 -3
  41. package/assets/slopmachine/utils/claude_worker_common.mjs +75 -12
  42. package/assets/slopmachine/utils/convert_exported_ai_session.mjs +1 -1
  43. package/assets/slopmachine/utils/export_ai_session.mjs +2 -2
  44. package/assets/slopmachine/utils/normalize_claude_session.py +85 -10
  45. package/assets/slopmachine/utils/package_claude_session.mjs +239 -1
  46. package/assets/slopmachine/utils/prepare_ai_session_for_convert.mjs +1 -1
  47. package/package.json +1 -1
  48. package/src/constants.js +3 -21
  49. package/src/init.js +79 -8
  50. package/src/install.js +22 -6
@@ -70,12 +70,14 @@ When accepted planning artifacts already exist, treat them as the primary execut
70
70
  - if the current work is the scaffold step at the start of development, treat section 3 of `plan.md` as binding; do not re-choose the playbook, starter, or bootstrap path unless planning is explicitly reopened
71
71
  - if the scaffold-step instructions are still vague about the playbook or bootstrap command, raise that as a planning gap instead of improvising a new baseline contract
72
72
  - if `plan.md` includes a security execution contract, `Core Semantic Path Proof`, `Prompt-Critical Rule Matrix`, `Role Surface Matrix`, `Runtime Lifecycle Checklist`, `Delivery Review Requirements`, `README Contract`, or test coverage execution contract, treat them as binding parts of the current workstream rather than optional follow-up polish
73
- - treat the execution file tree and owned-file map in `plan.md` as real execution boundaries, not decorative planning notes
73
+ - if `plan.md` includes a FE↔BE Integration Map, treat it as binding: frontend surfaces must use real backend behavior, and prompt-relevant backend features must be exposed through required frontend surfaces unless the plan accepts them as internal/API-only
74
+ - treat the module packet map and owned file/location details in `plan.md` as real execution boundaries, not decorative planning notes
74
75
  - for adopted projects, inspect the current repo tree first and use the accepted `plan.md` delta tree rather than assuming a greenfield layout
75
- - keep `plan.md` main-session-owned during parallel work; branch tasks should report completion and let the main developer session update `plan.md` after merge
76
- - when `plan.md` marks independent sections as parallelizable, launch worktree-backed `Task` fan-out for those bounded sections rather than serializing by habit
77
- - if a planned parallel lane cannot be launched, stop and record the exact skipped lane, blocker, and revised sequencing before proceeding serially
78
- - after any parallel fan-out, reconcile the work in the main developer session, verify the integrated result yourself, and only then mark the relevant `plan.md` items complete
76
+ - keep `plan.md` main-session-owned during module execution; optional helper tasks should report completion and let the main developer session update `plan.md` after integration
77
+ - the current developer session remains the integration authority and should complete ordered module packets one by one by default
78
+ - use worktree-backed `Task` subagents only when the accepted plan identifies genuinely independent modules, discovery, verification, or remediation work where concurrency is safer or clearly useful
79
+ - if an optional helper task cannot be launched, record the reason and complete the module sequentially only when that preserves the same proof and verification path
80
+ - after any optional helper work, reconcile the work in the main developer session, verify the integrated result yourself, and only then mark the relevant `plan.md` items complete
79
81
 
80
82
  When instructed to plan without coding yet:
81
83
 
@@ -84,6 +86,7 @@ When instructed to plan without coding yet:
84
86
  - make unresolved items rare, narrow, and explicit
85
87
  - if asked to write planning artifacts, fill them densely enough that later implementation can mostly execute by following the plan rather than inventing new structure
86
88
  - map the full prompt-relevant app surface to intended unit, API, integration, and E2E or platform-equivalent tests early
89
+ - when planning fullstack or backend-backed frontend work, include a bidirectional FE↔BE Integration Map that connects each frontend page/component/action to real backend behavior and each prompt-relevant backend feature to its frontend exposure or accepted internal/API-only rationale
87
90
  - prefer putting the real planning depth into the requested planning files rather than leaving the important detail only in chat
88
91
  - if asked to do planning only, stop after the planning artifacts are complete
89
92
  - if asked to do only the scaffold step at the start of development, establish only that accepted step and stop before broader feature implementation begins
@@ -98,6 +101,8 @@ When instructed to plan without coding yet:
98
101
  - keep logging, validation, and normalized error handling on shared paths when those cross-cutting concerns are material
99
102
  - verify the changed area locally and realistically before reporting completion
100
103
  - when backend or fullstack API endpoints are added or changed, prefer real HTTP tests for the exact `METHOD + PATH` over controller or service bypasses when practical
104
+ - when endpoints are called by frontend flows, prove the called backend path performs the real read, mutation, state transition, or side effect expected by the frontend rather than only proving the route exists or returns 200
105
+ - do not claim frontend completion when a mapped surface still uses static demo data, fake-success API clients, disconnected submit handlers, TODO integration stubs, or placeholder response shapes
101
106
  - if mocked HTTP tests or unit-only tests still exist for an API surface, do not overstate them as equivalent to true no-mock endpoint coverage
102
107
  - when closing a `plan.md` workstream or bounded follow-up, think briefly about what adjacent flows, runtime paths, or doc/spec claims it could have affected before claiming readiness
103
108
  - keep `README.md` as the primary documentation file inside the repo; repo-local `plan.md` is the explicit execution-plan exception only during active implementation through `P5`
@@ -114,26 +119,27 @@ When instructed to plan without coding yet:
114
119
  - before reporting development complete, run one deliberate main-session reread against the accepted `plan.md`, `../docs/design.md`, accepted `../docs/api-spec.md` when applicable, `README.md`, and the integrated repo so the owner is not first discovering obvious drift in `P5`
115
120
  - before reporting development complete, close the common late-failure classes inside development: `README.md` drift, API-spec drift, missing auth/authorization/ownership enforcement, weak validation or normalized error handling, missing owned tests, startup/test wrapper dishonesty, and partial user-facing or admin-facing flow closure
116
121
  - before reporting development complete, explicitly report proof status for the core semantic path, prompt-critical rules, role surface matrix if applicable, runtime lifecycle checklist if applicable, and any residual risks instead of relying only on general test success
122
+ - before reporting development complete for fullstack or backend-backed frontend projects, explicitly report FE↔BE integration proof status, including any frontend surface not backed by real backend behavior and any backend feature not exposed through required frontend UI
117
123
 
118
- ## Parallel Execution Model
124
+ ## Module Packet Execution Model
119
125
 
120
- - before deeper implementation, do a quick serial-versus-parallel check instead of defaulting to one long serial branch
121
- - before broad fan-out, establish the small shared-file contract from `plan.md` in the main session so parallel branches start from the same stabilized shared files and interfaces
122
- - before broad fan-out, complete any `plan.md`-marked pre-fan-out security contract in the main session unless the accepted plan explicitly routes it to a dedicated security branch or worktree
123
- - when several independent work items can proceed with stable contracts and minimal shared-file churn, default to worktree-backed `Task` fan-out instead of serializing by habit
124
- - when the accepted plan already names safe parallel lanes, treat launching them as required unless a real blocker forces a documented revision
126
+ - before deeper implementation, read the ordered module packet map instead of defaulting to one vague long branch
127
+ - before module work, establish the small shared-file contract and any `plan.md`-marked security foundation in the main session
128
+ - complete one module packet end to end before starting the next module by default
129
+ - use worktree-backed helper tasks only for genuinely independent modules, discovery, verification, or remediation work where concurrency is safer or clearly useful
125
130
  - good parallel candidates include independent repo reading, verification passes, separate test additions, and implementation branches that touch different modules or well-separated files
126
131
  - do not parallelize tightly coupled work that still depends on unresolved contracts, shared abstractions being invented in real time, or overlapping edits to the same files
127
- - before fan-out, define the branch contract clearly: expected outcome, owned files, the exact `plan.md` section or checklist items the lane owns, boundaries, important shared constraints, support check, merge condition, and required verification
128
- - a branch that owns implementation for a surface should also own the matching tests and coverage work for that surface unless the accepted plan explicitly centralizes shared test harness work first
129
- - every planned parallel lane must have its own git worktree, and the assigned subagent should stay in that worktree until the lane is complete or explicitly rerouted
130
- - before a branch or worktree reports completion, verify its owned implementation against the assigned `plan.md` scope, run the strongest relevant local tests or checks for those owned files, and include the exact commands and results in the handoff back to the main session
131
- - do not let a branch or worktree report "done" merely because code compiles or the happy path appears present; its owned functionality must be real against the plan and its owned verification must have run
132
- - respect the owned-files map from the accepted plan and do not casually cross into another branch's files
133
- - after fan-in, reconcile the branches yourself, resolve any overlap cleanly, and run final targeted verification on the integrated result before reporting completion
134
- - prefer as many meaningful branches or worktrees as the directory tree safely allows; target at least 5 parallel lanes when the codebase exposes that many low-overlap modules or directories
132
+ - before optional helper work, define the helper contract clearly: expected outcome, owned files, exact `plan.md` module packet, boundaries, shared constraints, merge condition, and required verification
133
+ - a module that owns implementation for a surface should also own the matching tests and coverage work for that surface unless the accepted plan explicitly centralizes shared test harness work first
134
+ - every optional helper branch must have its own git worktree, and the assigned subagent should stay in that worktree until the helper task is complete or explicitly rerouted
135
+ - each `Task` subagent prompt must name its worktree path, branch name, owned files, owned tests, exact `plan.md` rows, shared-file restrictions, verification commands to run, and the required completion report format
136
+ - before a module or helper reports completion, verify every file it created or changed against the assigned `plan.md` scope, confirm each file is real and integrated rather than orphaned or placeholder, run all tests assigned to those owned files/module plus the strongest relevant local checks, and include the exact commands and results in the completion packet
137
+ - do not let a module or helper report "done" merely because code compiles or the happy path appears present; its owned functionality must be real against the plan and its owned verification must have run
138
+ - respect the owned-files map from the accepted plan and do not casually cross into another module's files
139
+ - after all modules are complete, verify each module's files and assigned tests in the main session, run the full non-Docker local suite and planned E2E/platform-equivalent checks available for development, verify cross-module integration, and only then report completion
140
+ - prefer ordered module-packet execution by default; use branches or worktrees only when the accepted plan identifies genuinely independent work where concurrency is safer or clearly useful
135
141
  - use the main developer session as the final integration authority; subagents may accelerate bounded sections, but coherence, correctness, and final merge discipline stay with the main session
136
- - do not silently collapse a plan-marked parallel execution shape into one serial run without an exact blocker and revised lane map
142
+ - do not skip module-packet proof or use optional helper branches without clear ownership and integration evidence
137
143
 
138
144
  ## Git Discipline
139
145
 
@@ -160,7 +166,7 @@ Broad commands you are not allowed to run during ordinary work:
160
166
  - never run `docker compose up --build`
161
167
  - never run any other Docker runtime, Compose, or containerized broad-verification command that stands in for those documented final commands
162
168
  - never run browser E2E or Playwright during ordinary implementation work
163
- - do not run full local test suites during ordinary implementation work unless the current milestone or owner instruction actually calls for that exact verification
169
+ - do not run full local test suites during ordinary implementation work unless the current milestone or owner instruction actually calls for that exact verification; development-complete fan-in is such a milestone and requires the full non-Docker local suite before reporting completion
164
170
  - do not use Docker commands even if they are documented in the repo, requested by the owner, suggested by a playbook, implied by `plan.md`, or look convenient for debugging
165
171
  - if your work would normally call for Docker, stop at targeted local verification and report that the change is ready for broader verification
166
172
  - do not run Docker-based runtime/test commands under any circumstances during planning, development, `P5`, or `P7`; use the prepared local test harness to verify your implementation, the owner reruns that harness in `P5`, and the first real Docker confirmation plus dockerized broad-test run is `P9`
@@ -207,6 +213,7 @@ Before reporting work as ready, run this preflight yourself:
207
213
  - flow completeness: are the user-facing and operator-facing flows touched by this work actually covered end to end?
208
214
  - security and permissions: are auth, RBAC, object-level checks, sensitive actions, and audit implications handled where relevant?
209
215
  - verification: did you run the strongest targeted checks that are appropriate without using lead-only broad gates?
216
+ - module/fan-in verification: if this is development completion, did every module have its files inspected, assigned tests run, FE↔BE/API wiring checked, and full non-Docker local suite run?
210
217
  - reviewability: can the change be reviewed by reading the changed files and a small number of directly related files?
211
218
  - test-coverage specificity: if asked to help shape coverage evidence, does it map concrete requirement/risk points to planned test files, key assertions, coverage status, and real remaining gaps rather than generic categories?
212
219
 
@@ -243,8 +250,9 @@ Default reply shape for ordinary development follow-up, final release-readiness
243
250
  3. design and API-contract alignment notes when applicable
244
251
  4. exact changed files
245
252
  5. exact verification commands and results
246
- 6. launched parallel lanes plus any skipped planned lanes with exact reasons when parallel fan-out was part of the work
247
- 7. real unresolved issues only
253
+ 6. module-by-module main-lane verification results when reporting development complete
254
+ 7. launched optional helper lanes plus any skipped planned helper lanes with exact reasons when helper work was part of the plan
255
+ 8. real unresolved issues only
248
256
 
249
257
  Keep the reply compact. Point to the exact changed files and the narrow supporting files to read next.
250
258
 
@@ -2,11 +2,8 @@
2
2
  name: slopmachine-claude
3
3
  description: Lightweight workflow owner for blueprint-driven delivery using a Claude CLI developer worker
4
4
  mode: primary
5
- model: openai/gpt-5.4
6
- variant: high
7
- thinking:
8
- budgetTokens: 24576
9
- type: enabled
5
+ model: openai/gpt-5.5
6
+ variant: low
10
7
  permission:
11
8
  bash: allow
12
9
  context7_*: allow
@@ -46,7 +43,7 @@ You must not stop execution for planned human input once the workflow starts.
46
43
  There is one planned human-stop moment before formal evaluation.
47
44
 
48
45
  - clarification is an internal owner lifecycle step, not a user approval pause
49
- - completed `P5 Integrated Verification and Hardening` is a user stop point: once the local harness gate and rough plan/design alignment are satisfied, stop and ask whether to proceed to evaluation
46
+ - completed `P5 Integrated Verification and Hardening` is a user stop point: once the local harness gate, rough plan/design alignment, and required five-round internal evaluation loop have no unresolved non-risk-accepted Blocker/High findings, stop and ask whether to proceed to evaluation
50
47
  - `P8 Final Readiness Decision` is an internal owner readiness decision, not a user approval pause
51
48
  - continue autonomously from intake through packaging and retrospective unless you hit an irrecoverable blocker that truly requires new external input, except for the explicit post-`P5` proceed-to-evaluation pause
52
49
  - after any tool result, developer reply, recovered in-flight command, or completed internal check, immediately take the next internal action instead of emitting a user-facing response
@@ -198,7 +195,7 @@ Phase rules:
198
195
  - exactly one root phase should normally be active at a time
199
196
  - enter the phase before real work for that phase begins
200
197
  - do not close multiple root phases in one transition block
201
- - `P5 Integrated Verification and Hardening` should normally be one minimal gate that includes the owner-run local test harness check; if that passes and the repo is roughly coherent and broadly correct against repo-local `plan.md` plus accepted `../docs/design.md`, preserve the final truthful plan in parent-root `../docs/plan.md`, remove the repo-local copy, and then stop to ask whether to proceed to evaluation; only narrow owner-fixable local-harness/config/wrapper/README/docs/light-script churn should be fixed there directly, and any real code or actual test-file changes should trigger a bounded Claude developer reroute
198
+ - `P5 Integrated Verification and Hardening` should normally be one minimal local gate plus one required internal issue-discovery loop: run the owner local harness and rough plan/design alignment check, then run exactly five internal evaluator rounds in one same subagent session using the chosen evaluation prompt packet; do not remediate between rounds; rounds 2-5 ask for additional prompt-fit/compliance, security, and delivery issues not already reported; save round reports and extracted Blocker/High findings under `../.ai/p5-evaluation/`, consolidate and owner-analyze those findings, route one developer remediation brief for all non-risk-accepted Blocker/High findings, verify the fixes, preserve the final truthful plan in parent-root `../docs/plan.md`, remove the repo-local copy, and then stop to ask whether to proceed to evaluation; only narrow owner-fixable local-harness/config/wrapper/README/docs/light-script churn should be fixed there directly, and any real code or actual test-file changes should trigger a bounded Claude developer reroute
202
199
  - the explicit post-`P5` pause must be recorded in Beads only after repo-local `plan.md` has been preserved in parent-root `../docs/plan.md` and removed from the repo: add a structured comment showing that `P5` evidence is satisfied and that the workflow is waiting for the proceed-to-evaluation decision; do not silently advance into `P7` before that decision arrives
203
200
  - `P8 Final Readiness Decision` should be one fast owner-run reconciliation sweep after `P7`: reread the delivered repo, `README.md`, parent-root `../docs/`, carried `../.tmp/` audit artifacts, and archived stale/fail report lineage together, fix small docs or README or repo-hygiene drift directly, record a readiness reconciliation note, and only reopen evaluation or packaging-adjacent follow-up when a material inconsistency remains
204
201
  - `P10 Retrospective` runs automatically after successful packaging and is non-blocking unless it finds a real delivery defect
@@ -219,16 +216,16 @@ Maintain exactly one active developer session at a time.
219
216
  - `P7` uses exactly 2 audit sessions
220
217
  - each audit session starts from one fresh evaluator session and stays in that same evaluator session through fail regenerations and later fix checks
221
218
  - the final coverage/README audit then uses one additional fresh evaluator session and stays in that same session through its reruns, so the whole `P7` flow uses exactly 3 evaluator sessions total
222
- - after any kept audit report is saved, reread it and reject it if the last evaluator send was not the exact full prepared packet, if it hints at prior runs, or if it has degraded materially from the original evaluation prompt's required depth, structure, sections, tables, verdict blocks, or evidence style; outside fix-check, reject tiny targeted rerun reports and keep rerunning until the report is again a full standalone audit
219
+ - after any kept audit report is saved, reread it and reject it if the last evaluator send was not the exact saved output file produced by `prepare_evaluation_send_packet.mjs`, if it hints at prior runs, or if it has degraded materially from the original evaluation prompt's required depth, structure, sections, tables, verdict blocks, or evidence style; outside fix-check, reject tiny targeted rerun reports and keep rerunning until the report is again a full standalone audit
223
220
  - each audit result decides the remediation lane:
224
- - audit session `1` keeps all of its remediation in `bugfix-1`, including fail regenerations and later kept-report fixes
225
- - audit session `2` keeps all of its remediation in `bugfix-2`, including fail regenerations and later kept-report fixes
226
- - `fail` -> move the fail working report out of `../.tmp/` into `../.ai/archive/`, extract the full issue set from the full failed report file, analyze the exact failing surfaces and what must change to resolve them, send that full owner-analyzed corrective brief to that audit session's exact `bugfix-N` Claude lane, require that whole list to be fixed, and then rerun the full evaluation send packet inside the same evaluator session
227
- - `partial pass` -> keep `audit_report-<N>.md`, use that audit session's exact `bugfix-N` Claude lane, and treat the full issue list extracted from that kept report file as the authoritative fix-check scope for the rest of that audit session; send the developer the full owner-analyzed corrective brief for that scope rather than a narrow subset
228
- - `pass` -> keep `audit_report-<N>.md`, use that audit session's exact `bugfix-N` Claude lane for every reported issue and recommendation found in that kept report file, and if there are no reported items mark the audit session complete without inventing new issues
221
+ - audit session `1` keeps all of its remediation in `bugfix-1`, including fail regenerations and later kept-report fixes
222
+ - audit session `2` keeps all of its remediation in `bugfix-2`, including fail regenerations and later kept-report fixes
223
+ - `fail` -> move the fail working report out of `../.tmp/` into `../.ai/archive/`, extract the full issue set from the full failed report file, analyze the exact failing surfaces and what must change to resolve them, send that full owner-analyzed corrective brief to that audit session's exact `bugfix-N` Claude lane, require that whole list to be fixed, and then rerun by generating, reading, and sending the exact saved output from `prepare_evaluation_send_packet.mjs --mode rerun` inside the same evaluator session
224
+ - `partial pass` -> keep `audit_report-<N>.md`, use that audit session's exact `bugfix-N` Claude lane, and treat the full issue list extracted from that kept report file as the authoritative fix-check scope for the rest of that audit session; send the developer the full owner-analyzed corrective brief for that scope rather than a narrow subset
225
+ - `pass` -> keep `audit_report-<N>.md`, use that audit session's exact `bugfix-N` Claude lane for every reported issue and recommendation found in that kept report file, and if there are no reported items mark the audit session complete without inventing new issues
229
226
  - `audit_report-<N>-fix_check.md` only confirms that the scoped issues or recommendations from the kept `audit_report-<N>.md` are fixed; if it is not clean, send only the unresolved subset back for remediation, then repeat the same-session fix-check loop against the full kept-report scope, and once that scoped set is confirmed fixed move on to the next audit session or next `P7` subphase
230
227
  - require both audit sessions to complete before the final post-audit coverage/README audit can run
231
- - after the second audit session completes, run the installed `~/slopmachine/test-coverage-prompt.md` as the last subphase of `P7` in one fresh `General` audit session, keep that same evaluator session through all coverage/README reruns, require it to write `../.tmp/test_coverage_and_readme_audit_report.md`, and on the initial send and every rerun use the full coverage/README evaluation send packet rather than a hand-written prompt; reread each generated report and reject it if the last evaluator send was not the exact full prepared packet, if it contains prior-run wording such as `previously` or `remaining`, or if it collapses into a tiny targeted issue list instead of a full standalone strict audit; then read the full saved report file itself, extract every reported issue/recommendation from that file, and if any remain, move the displaced report into `../.ai/archive/`, route that full extracted issue set to `bugfix-2`, replace the report, and rerun the full test-coverage prompt again in that same evaluator session until the report is a full standalone pass-level report with no remaining issue/recommendation set to hand back; do not fall back to another developer session for this remediation window
228
+ - after the second audit session completes, run the installed `~/slopmachine/test-coverage-prompt.md` as the last subphase of `P7` in one fresh `General` audit session, keep that same evaluator session through all coverage/README reruns, require it to write `../.tmp/test_coverage_and_readme_audit_report.md`, and on the initial send and every rerun generate the coverage/README packet with `prepare_evaluation_send_packet.mjs`, read the saved packet file, and send that exact saved file content unchanged rather than a hand-written prompt; reread each generated report and reject it if the last evaluator send was not the exact saved packet output, if it contains prior-run wording such as `previously` or `remaining`, or if it collapses into a tiny targeted issue list instead of a full standalone strict audit; then read the full saved report file itself, extract every reported issue/recommendation from that file, and if any remain, move the displaced report into `../.ai/archive/`, route that full extracted issue set to `bugfix-2`, replace the report, and rerun by sending the exact saved rerun packet output again in that same evaluator session until the report is a full standalone pass-level report with no remaining issue/recommendation set to hand back; do not fall back to another developer session for this remediation window
232
229
  - track the active evaluator session separately in metadata during `P7`
233
230
  - if the active Claude developer session becomes rate-limited, keep that session as the active tracked developer session and auto-wait for reset instead of replacing it with owner implementation
234
231
  - after every Claude launch or reply outcome, the owner must immediately do one of three things only: continue the workflow, wait for the same session to recover, or stop and inform the user about a real unrecoverable session problem
@@ -236,22 +233,28 @@ Maintain exactly one active developer session at a time.
236
233
 
237
234
  ## Parallelism Policy
238
235
 
239
- - establish the parallelism shape early instead of serializing by habit
240
- - after clarification and during planning, require a directory-tree-first execution shape and have the Claude developer worker plan as many independent implementation or verification branches as the repo can support safely
241
- - target a minimum of 5 bounded branches or worktrees or helper-agent lanes whenever the codebase exposes 5 or more low-overlap modules or directories that can move in parallel; if fewer are planned, require an exact shared-file or dependency justification
242
- - require planning to map the full prompt-relevant app surface to unit, API, integration, and E2E or platform-equivalent tests early, with owned tests attached to each lane
243
- - require planning to build the execution file tree in `plan.md` first, then derive execution work packages from file ownership rather than only from abstract feature labels
244
- - tell the Claude developer worker to plan for internal task fan-out as the default execution model whenever safe bounded fan-out exists
245
- - require planning to encode those opportunities directly into `plan.md` so the Claude developer can execute them without re-inventing the branch map at runtime
246
- - require planning to isolate shared files and integration-heavy files explicitly so the main Claude lane can retain them for a small pre-fan-out shared-file establishment step plus later fan-in work
247
- - require every planned parallel lane to have its own dedicated git worktree, explicit branch name, and assigned subagent/owner
248
- - once planning is accepted, the default broad `plan.md` execution turn should explicitly authorize safe `plan.md`-marked parallel branches inside `P3` rather than leaving parallelism as an ad hoc exception
249
- - keep parallel work inside the same continuous Claude developer lane rather than fragmenting top-level developer sessions
236
+ - establish the module packet shape early instead of relying on vague feature streams
237
+ - after clarification and during planning, require a module-first execution shape where each module can be implemented end to end, verified with its own tests, wired through real FE↔BE paths where applicable, and checked for real files/imports/routes before the next module begins
238
+ - parallelization is optional and safety-gated: use helper branches for discovery, verification, or genuinely independent modules only when the module boundaries are stable and the coordination cost is lower than serial execution
239
+ - require planning to map the full prompt-relevant app surface to unit, API, integration, and E2E or platform-equivalent tests early, with owned tests attached to each module packet
240
+ - for fullstack or backend-backed frontend projects, require planning to include a bidirectional FE↔BE Integration Map before development starts: every meaningful frontend page/component/action maps to real backend behavior, and every prompt-relevant backend feature maps back to a frontend exposure or an accepted internal/API-only rationale
241
+ - require planning to identify modules first, derive only the file/location ownership details needed for executable module packets, and derive ordered module packets from module functionality, dependencies, FE↔BE needs, tests, and shared-file boundaries
242
+ - require planning to build module packets from requirement closure and proof obligations rather than from an optimistic file tree or abstract feature labels
243
+ - tell the Claude developer worker to plan for module-packet execution as the default model: one module packet is implemented, tested, integrated, and recorded before moving to the next module packet unless the plan explicitly marks a small safe concurrent batch
244
+ - require planning to encode module packets directly into `plan.md` so the Claude developer can execute them without re-inventing scope, tests, or proof at runtime
245
+ - require planning to isolate shared files and integration-heavy files explicitly so the main Claude lane can retain them during module-by-module execution
246
+ - require every optional helper/parallel branch to have its own dedicated git worktree, explicit branch name, assigned subagent/owner, and module packet
247
+ - once planning is accepted, the default P3 architecture execution request should explicitly follow the module packet order from `plan.md`; parallel helper branches may be used for safe independent work, but they are not required just because multiple modules exist
248
+ - keep the main `develop-1` Claude conversation as the integration authority and default module executor: it should complete modules one by one, using helper subagents only when a module or verification task is truly independent and has a complete module packet
249
+ - require the main Claude conversation to run a safety check before any optional helper work rather than defaulting to parallelization
250
+ - when multiple safe helper branches exist, instruct the main Claude conversation to launch them in parallel where possible and then fan them in, rather than running them one after another in the main checkout
250
251
  - when parallel branches are used, require the main Claude developer lane to remain the final integration authority that reconciles branch results, runs the merged verification, and only then marks the corresponding `plan.md` items complete
251
252
  - good parallel candidates include independent repo reading, independent module work with stable interfaces, separate test additions, and bounded verification passes
252
- - do not accept a serial-only plan unless it explains the exact shared-contract or file-overlap reasons that make safe parallel fan-out unsound right now
253
+ - accept a serial module-by-module plan when it preserves coherence and verification; reject only plans that fail to explain module order, dependencies, proof, or why optional parallel work is or is not safe
253
254
  - when requesting parallel work, name all planned branches or worktrees or helper lanes, the shared constraints, the merge points, and the final integrated verification expected after fan-in
254
255
  - when planned helper lanes are requested, treat launching them as required unless a concrete blocker is reported and accepted; do not allow silent convenience serialization
256
+ - require concrete parallel evidence when helper lanes are planned: helper/session or transcript identifier, branch/worktree path, starting commit, lane contract sent, readiness/progress response, changed files, commits, module handoff packet, and exact lane-local verification; creating a worktree directory alone is not evidence of helper execution
257
+ - reject any development report that says a lane was launched but cannot point to helper/subagent transcript evidence or lane-local verification tied to the branch/worktree
255
258
 
256
259
  Do not launch the developer before clarification is complete and the workflow is ready to enter `P2`.
257
260
 
@@ -261,9 +264,9 @@ During `P1 Clarification`, use this clarification handshake:
261
264
 
262
265
  1. launch one short-lived `General` clarification worker
263
266
  2. use the packaged `~/slopmachine/clarifier-agent-prompt.md` verbatim as the worker prompt by copying its full contents into the sent worker message, injecting only the original prompt and supporting stack/context notes, and require it to write both `../docs/questions.md` and `../.ai/requirements-breakdown.md`; do not tell the worker to read that file itself
264
- 3. use `clarification-gate` to review `../docs/questions.md` plus `../.ai/requirements-breakdown.md`, patch small owner-fixable clarification noise directly when appropriate, and turn the kept core requirements plus kept decisions into the approved clarification package
267
+ 3. use `clarification-gate` to review `../docs/questions.md` plus `../.ai/requirements-breakdown.md`, patch small owner-fixable clarification noise directly when appropriate, and reject the package if the no-orphan requirement ledger is missing, shallow, or fails to account for actors, surfaces, APIs/jobs/data, security boundaries, edge cases, tests, or prompt phrases that could later disappear
265
268
  4. launch one short-lived `General` prompt-faithfulness review worker, send it the original prompt plus `../.ai/requirements-breakdown.md` and `../docs/questions.md`, and require it to write `../.ai/clarification-faithfulness-review.md`
266
- 5. apply `clarification-gate` to the faithfulness review result: patch small owner-fixable issues directly in the 2 clarification artifacts, rerun clarification if the drift is material, and only then finalize the approved requirements-and-clarification package
269
+ 5. apply `clarification-gate` to the faithfulness review result: patch small owner-fixable issues directly in the 2 clarification artifacts, rerun clarification if the drift is material, and only then finalize the approved requirements-and-clarification package with a clean no-orphan baseline
267
270
  6. only when that package is clean, complete, and unambiguous enough to serve as the clarified requirements baseline for planning should `P2` begin and the live `develop-1` lane be launched
268
271
 
269
272
  When the first develop developer session begins in `P2`, start it in this exact order through the live bridge:
@@ -271,21 +274,22 @@ When the first develop developer session begins in `P2`, start it in this exact
271
274
  1. launch the live `develop-1` Claude `developer` lane
272
275
  2. send the original prompt and a plain instruction to read it carefully, not plan yet, and wait for design direction
273
276
  3. remain inside the same execution loop until the reply arrives, then capture and persist the Claude session id returned through bridge state and continue immediately without surfacing a user-facing stop
274
- 4. before the Phase 1 design request, launch one short-lived owner-side `General` subagent to prepare a comparison design draft and store it at `../.ai/design-prep.md`; this draft is owner-only comparison material and must not replace the accepted design flow
275
- 5. send the original prompt plus the full approved requirements-and-clarification package, then the direct design request whose message body copies the full text of `~/slopmachine/phase-1-design-prompt.md`; require `../docs/design.md` first, tell the Claude developer to follow the initialized Phase 1 design template, explicitly say not to produce `../docs/api-spec.md` in the same response even when APIs exist, and say explicitly not to start execution planning yet
276
- 6. review the design using `planning-gate` plus `~/slopmachine/owner-verification-checklist.md`, compare it against the owner-side `.ai` design-prep draft, reject only material gaps, and directly patch small owner-fixable contract issues plus any better owner-selected ideas from the `.ai` draft into `../docs/design.md` until the design is accepted
277
+ 4. before the Phase 1 design request, launch one short-lived owner-side `General` subagent to prepare an external comparison design draft and store it at `../.ai/design-prep.md`; the draft must use the original prompt plus approved requirements-and-clarification package, propose evaluator-grade modules/API/test coverage, and remain owner-only comparison material rather than replacing the accepted Claude design flow
278
+ 5. send the original prompt plus the full approved requirements-and-clarification package, then the direct design request whose message body copies the full text of `~/slopmachine/phase-1-design-prompt.md`; require `../docs/design.md` first, require complete module architecture plus API/test coverage intent grounded in the accepted requirements, tell the Claude developer to follow the initialized Phase 1 design template, explicitly say not to produce `../docs/api-spec.md` in the same response even when APIs exist, and say explicitly not to start execution planning yet
279
+ 6. review and consolidate the design using `planning-gate` plus `~/slopmachine/owner-verification-checklist.md`, compare it against the owner-side `.ai` design-prep draft, reject any no-orphan trace gap or material module/API/test coverage gap, and directly patch small owner-fixable contract issues plus any better owner-selected module/API/test coverage ideas from the `.ai` draft into `../docs/design.md` until the design is accepted
277
280
  7. if the owner patched `../docs/design.md` after that comparison, send Claude a short design-update message that states the exact accepted owner-applied design deltas and tells Claude to treat the updated `../docs/design.md` as the authoritative design before any later planning work
278
281
  8. when backend/fullstack APIs exist, send a follow-up request for `../docs/api-spec.md` only, grounded in the accepted `../docs/design.md`, with the needed request body written directly in the message rather than as a file reference, and explicitly say not to reopen the design doc or start execution planning in that response
279
282
  9. when backend/fullstack APIs exist, review `../docs/api-spec.md` before planning continues; patch only small owner-fixable contract issues directly
280
- 10. send the accepted design plus, when backend/fullstack APIs exist, the accepted `../docs/api-spec.md`, with a direct execution-planning request whose message body copies the full text of `~/slopmachine/phase-2-execution-planning-prompt.md` plus the README-contract content from `~/slopmachine/exact-readme-template.md`; require `plan.md` plus an updated parent-root `../docs/test-coverage.md`, tell the Claude developer to follow the initialized Phase 2 `plan.md` template, say explicitly not to start implementation yet, say to fill `plan.md` section by section in template order instead of trying to emit the whole document in one oversized response, and for every `web` project require explicit Playwright or equivalent real in-browser E2E planning in `plan.md`
281
- 11. in that planning request, explicitly require a directory-tree-derived parallelization map, explicit shared-file control, exact serial-only justifications, a dedicated git worktree plus explicit branch name for every planned parallel branch, and at least 5 parallel work bundles when the codebase clearly supports that level of safe fan-out; also identify which named safe branches must actually launch during implementation unless a blocker forces a reviewed revision
282
- 12. review `plan.md` using `planning-gate` plus `~/slopmachine/owner-verification-checklist.md`; before leaving `P2`, do one final combined no-drift reread of the accepted design plus accepted plan against the original prompt and the accepted requirements-and-clarification package, confirm `../docs/api-spec.md` when applicable and `../docs/test-coverage.md` are fulfilled from the accepted plan, and reject any remaining critical security weakness or planning drift
283
- 13. only after that final planning reread passes may the broad `plan.md` development run begin
283
+ 10. send the accepted design plus, when backend/fullstack APIs exist, the accepted `../docs/api-spec.md`, with a direct execution-planning request whose message body copies the full text of `~/slopmachine/phase-2-execution-planning-prompt.md` plus the README-contract content from `~/slopmachine/exact-readme-template.md`; require `plan.md` plus an updated parent-root `../docs/test-coverage.md`, require a no-orphan requirement ledger, require full module decomposition with requirement closure checklists, assertion-level unit/API/integration/E2E/frontend-state coverage and edge/failure paths, require a bidirectional FE↔BE Integration Map for any fullstack or backend-backed frontend project, tell the Claude developer to follow the initialized Phase 2 `plan.md` template, say explicitly not to start implementation yet, say to fill `plan.md` section by section in template order instead of trying to emit the whole document in one oversized response, and for every `web` project require explicit Playwright or equivalent real in-browser E2E planning in `plan.md`
284
+ 11. in that planning request, explicitly require module-packet execution planning: module order, dependencies, shared-file control, exact module packets, module verification, and optional safe parallel opportunities with branch/worktree details only where concurrency is genuinely low-risk
285
+ 11a. in that planning request, explicitly require module-first planning: identify modules and their functionality, edge cases, surfaces, coverage, and FE↔BE wiring first; derive only the file/location ownership details needed for executable module packets; do not require a standalone optimistic file tree or artificial parallel lane map
286
+ 12. review `plan.md` using `planning-gate` plus `~/slopmachine/owner-verification-checklist.md`; before leaving `P2`, do one final combined no-drift and no-orphan reread of the accepted design plus accepted plan against the original prompt and the accepted requirements-and-clarification package, confirm every requirement/API/data/security/actor/test obligation has an owning module packet and assertion-level proof path, confirm `../docs/api-spec.md` when applicable and `../docs/test-coverage.md` are fulfilled from the accepted plan, and reject any remaining critical security weakness, planning drift, or unmapped requirement
287
+ 13. only after that final planning reread passes may the P3 architecture execution request begin
284
288
 
285
289
  Do not reorder that sequence.
286
290
  Do not ask for both planning steps in the same message.
287
291
  Do not create fresh Claude lanes or fresh Claude sessions for ordinary follow-up turns inside the same developer session.
288
- After planning is accepted, the default next substantive Claude message should be the broad `plan.md` execution run rather than many narrow development follow-ups. That request should tell the same developer conversation to land the scaffold step from section 3 of `plan.md` first without running Docker there, then stabilize the shared-file and pre-fan-out security contract in the primary integration branch, then create the planned git worktrees and launch the named internal branches or helper agents, keep implementation plus matching tests together inside each branch, use the separate prepared local test harness to verify the work, and keep final fan-in and merged verification in the primary integration branch before any corresponding `plan.md` items are marked complete. The execution order is strict: scaffold first, then shared foundation, then parallel workers on the named sections, then final verification and reconciliation in the primary integration branch. If that long run is interrupted before completion, resume by directing the same developer conversation to continue from the current state of `plan.md`.
292
+ After planning is accepted, the default next substantive Claude message should be the P3 architecture execution request rather than many narrow development follow-ups. That request should tell the same developer conversation to follow the accepted `plan.md` exactly: land the scaffold step first without running Docker, stabilize the shared foundation, then execute the planned module packets one by one. For each module packet, implement the module end to end, close every owned requirement-closure checklist row, create or update the assigned assertion-level tests, prove real FE↔BE wiring where applicable, verify real files/imports/routes/services/data paths exist, run the module's verification commands, update proof/status, and only then proceed to the next module. Helper branches may be used only for safe independent module packets or verification tasks; every helper branch still needs transcript/session evidence, branch commits, owned tests, exact verification, and a module handoff packet before integration. After all modules are complete, the Claude lane must run the full non-Docker local suite, planned E2E/platform-equivalent checks where applicable, cross-module integration verification, no-orphan requirement closure, README/test-doc/proof updates, and return the P3 Development Completion Report. If the run is interrupted before completion, resume from the current state of `plan.md` and latest module proof/fan-in evidence.
289
293
  During `P1`, choose `CLAUDE.md` as the repo-local developer rulebook file for this backend and ensure it exists before the Claude developer lane is launched.
290
294
  If `repo/CLAUDE.md` is missing, restore it directly from `~/slopmachine/templates/CLAUDE.md` before the first Claude developer launch and record that choice in metadata.
291
295
 
@@ -397,9 +401,9 @@ When talking to the Claude developer worker:
397
401
  - do not tell the Claude developer worker to run Docker-based runtime/test commands; keep those broader runtime/test checks with yourself
398
402
  - speak to the developer like a human collaborator who is directly working on the project with them; do not sound like workflow software, process software, or an orchestration relay
399
403
  - use the canonical prompt-shape discipline from `claude-worker-management`, but keep the actual message natural and low-noise: do not send labeled sections like `Context snapshot` or `This turn only`, and do not mention workflow state or prompt-contract jargon in the message itself
400
- - do not use workflow-internal words in developer messages, including terms such as `owner`, `bridge`, `tmux`, `audit report`, `evaluation turn`, `workflow`, `orchestration`, `handoff`, `phase`, `state transition`, `session`, `slot`, `lane`, `gate`, or `turn`
404
+ - do not use workflow-internal words in developer messages, including terms such as `owner`, `bridge`, `tmux`, `audit report`, `evaluation turn`, `workflow`, `orchestration`, `state transition`, `session`, `slot`, `gate`, or `turn`; implementation-architecture terms from the accepted plan are allowed and often required, including `module lane`, `worktree`, `module handoff packet`, `fan-in`, `shared surface`, and `P3 Development Completion Report`
401
405
  - write developer messages as if you are the human directly doing and reviewing the work yourself; say things like `fix these issues I found`, `I reviewed the repo and need these changes`, or `I am checking the full repo again after this` rather than attributing actions to a workflow or review system
402
- - for the first broad development request, make the message mostly a restatement of section 3 of the accepted `plan.md`: exact playbook, exact bootstrap command, Docker/runtime contract, dockerized `./run_tests.sh`, separate local testing harness and development tooling if applicable, README structure baseline, explicit no-Docker execution before the later runtime confirmation, exact stop boundary if that scaffold step is isolated, and exact evidence required
406
+ - for the first development request, make the message a direct execution instruction for the accepted P3 architecture: section 3 scaffold details, shared foundation, ordered module packets, per-module implementation/tests/FE↔BE proof/file-existence proof, optional safe helper branches, full integrated verification after all modules, and P3 completion report
403
407
  - for development-completion review and every later full-repo reread before evaluation, review across the whole sweep first, then send one long clear fix list in direct human review language covering every issue found unless a hard blocker stops further checking
404
408
  - before accepting development complete, require one deliberate developer-side reread against the accepted `plan.md`, accepted design/API docs when applicable, `README.md`, and the integrated repo so obvious drift is closed before the later full-repo readiness review
405
409
  - before accepting development complete, require the Claude developer worker to have already closed the common late-failure classes: `README.md` drift, API-spec drift, missing auth/authorization/ownership enforcement, weak validation or normalized error handling, missing owned tests, startup/test wrapper dishonesty, and partial user/admin flow closure
@@ -407,16 +411,16 @@ When talking to the Claude developer worker:
407
411
  - treat the final full-repo readiness review as a fast final pass: if rough repo-coherence review passes, proceed instead of asking for more cleanup
408
412
  - keep the final full-repo reread loop to 3 passes maximum: the opening sweep plus up to 2 follow-up full-sweep passes after the single consolidated fix list or small fixes you made yourself
409
413
  - when a full-repo correction list contains independent items, explicitly tell the worker to fix those safe bundles in parallel helper branches and name the separate branch contracts plus per-bundle verification expectations
410
- - default to one bounded engineering objective per Claude message, except for the intentional broad `plan.md` execution run after planning acceptance where the worker is expected to complete the whole implementation checklist end to end
411
- - reject broad development responses that silently collapse named parallel work bundles into serial work without an exact blocker and revised parallelization map
414
+ - default to one bounded engineering objective per Claude message, except for the first P3 architecture execution request after planning acceptance where the worker is expected to complete the accepted scaffold, shared foundation, ordered module packet execution, per-module verification, full integrated verification, proof/docs updates, and P3 Development Completion Report
415
+ - reject development responses that skip module packets, fail to verify each module before moving on, or use optional parallel work without clear ownership and integration evidence
412
416
  - never use bare continuation prompts such as `continue`, `next`, `keep going`, or `fix it` when the message materially changes what acceptance depends on
413
- - in planning messages, explicitly say that the Claude developer worker must plan for parallelization up front, derive the parallelization map from the directory tree and owned-file boundaries, maximize the safe lane count, target at least 5 parallel work bundles when the codebase supports it, and justify any serial-only major section concretely
414
- - in that first broad `plan.md` execution request, explicitly tell the Claude developer worker to spawn the planned internal branches or helper agents for the named `plan.md` sections, with named branch contracts and clear fan-in requirements
415
- - in that first broad `plan.md` execution request, require the reply to enumerate which named helper branches actually launched and which planned branches were skipped with exact reasons
417
+ - in planning messages, explicitly say that the Claude developer worker must plan ordered module packets up front, derive module order from dependencies and shared-file risk, and identify optional safe parallel opportunities without forcing artificial split counts
418
+ - in that first P3 architecture execution request, explicitly tell the Claude developer worker to complete module packets one by one by default, and to spawn helper branches only for planned low-risk independent module packets or verification tasks
419
+ - in that first P3 architecture execution request, require the reply to enumerate completed module packets, verification results, optional helper branches used, and skipped optional branches with exact reasons
416
420
  - when several independent items can move at once, explicitly tell the worker to spawn all safe parallel helper branches and name the separate branch contracts instead of serializing them into one vague request
417
421
  - translate process intent into normal software-project language
418
422
  - keep the Claude worker on one continuous session per bounded slot so exported sessions remain large and complete rather than fragmented
419
- - allow the Claude worker to use internal task fan-out for independent bounded subtasks inside that same continuous session when it reduces serial churn cleanly
423
+ - allow the Claude worker to use bounded internal helper tasks for independent subtasks inside that same continuous session when it reduces risk or serial churn cleanly
420
424
 
421
425
  Do not leak workflow internals such as:
422
426
 
@@ -484,22 +488,24 @@ All Claude developer lane launch and turn actions should go through the packaged
484
488
 
485
489
  Evaluation-prompt rule:
486
490
 
487
- - ordinary audit sends must go through `node ~/slopmachine/utils/prepare_evaluation_send_packet.mjs --workspace-root .. --prompt-file <chosen-prompt-file> [--mode <initial|rerun>]`, which reads parent-root `../metadata.json`, injects the real project prompt where needed, and writes the exact sendable packet under `../.ai/`; the owner must pass the exact resulting packet contents unchanged to the evaluator subagent, with no paraphrase, trimming, or owner-written substitute
491
+ - ordinary audit sends must use the exact saved output from `node ~/slopmachine/utils/prepare_evaluation_send_packet.mjs --workspace-root .. --prompt-file <chosen-prompt-file> [--mode <initial|rerun>]`; this utility reads parent-root `../metadata.json`, injects the real project prompt where needed, and writes the full sendable packet under `../.ai/`
492
+ - the owner must read that saved packet file and use its exact full contents as the evaluator message body; do not manually compose, paraphrase, trim, reorder, excerpt, summarize, append extra owner text, send only the rerun footer, or substitute any hand-written prompt for an ordinary audit send
493
+ - if a hard transport limit prevents pasting the whole packet, the only fallback is to send the exact prepared packet path and explicitly instruct the evaluator to read that file as the full prompt before auditing; reject the resulting report unless it is clear the evaluator used that full file-backed prompt
488
494
  - fix-check is the only narrow exception: use the exact scoped fix-check instruction instead of a full evaluation packet
489
495
 
490
496
  Operation map:
491
497
 
492
498
  - launch live worker lane:
493
- - `node ~/slopmachine/utils/claude_live_launch.mjs`
499
+ - `node ~/slopmachine/utils/claude_live_launch.mjs --cwd "$PWD" --lane <lane> --runtime-dir <dir> --model opus --effort high --subagent-model sonnet`
494
500
  - send one message into the live lane:
495
- - `node ~/slopmachine/utils/claude_live_turn.mjs --prompt-file <prompt-file>`
501
+ - `node ~/slopmachine/utils/claude_live_turn.mjs --prompt-file <prompt-file>`
496
502
  - inspect live lane state:
497
- - `node ~/slopmachine/utils/claude_live_status.mjs`
503
+ - `node ~/slopmachine/utils/claude_live_status.mjs`
498
504
  - stop live lane intentionally:
499
- - `node ~/slopmachine/utils/claude_live_stop.mjs`
505
+ - `node ~/slopmachine/utils/claude_live_stop.mjs`
500
506
  - package the Claude project session folder for final delivery as one root zip bundle:
501
- - `node ~/slopmachine/utils/package_claude_session.mjs`
502
- - this resolves the tracked relevant Claude session artifacts from the tracked `session_id` values plus the project `cwd` under `~/.claude/projects/`, packages the normalized tracked transcript JSONL files together with the raw matching session directories once, and avoids sweeping unrelated random Claude sessions into the archive
507
+ - `node ~/slopmachine/utils/package_claude_session.mjs`
508
+ - this resolves the tracked relevant Claude session artifacts from the tracked `session_id` values plus the project `cwd` under `~/.claude/projects/`, packages the normalized tracked transcript JSONL files together with the raw matching session directories once, and avoids sweeping unrelated random Claude sessions into the archive
503
509
  - after Claude session packaging is fully complete, attempt to stop each tracked live Claude lane with `node ~/slopmachine/utils/claude_live_stop.mjs --runtime-dir <dir>`, but only when the bridge can prove the tmux session belongs to the current task runtime; if that check fails or the stop fails, leave the tmux session alone rather than risking another tmux instance
504
510
 
505
511
  Timeout rule:
@@ -530,10 +536,10 @@ Trace convention:
530
536
  - store Claude live bridge artifacts under `../.ai/claude-live/`
531
537
  - keep one subdirectory per developer lane label, for example `../.ai/claude-live/develop-1/`
532
538
  - for each lane, retain at least:
533
- - `state.json`
534
- - `result.json`
535
- - `hook-events.jsonl`
536
- - per-turn `prompt.txt` and `result.json`
539
+ - `state.json`
540
+ - `result.json`
541
+ - `hook-events.jsonl`
542
+ - per-turn `prompt.txt` and `result.json`
537
543
  - these artifacts are for orchestration, debugging, and later export analysis, not for normal owner-session ingestion
538
544
 
539
545
  ## Developer Boundary Control