claude-code-session-manager 0.135.0 → 0.135.1

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 (47) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/assets/{AgentLibrary-DRlcF1YD.js → AgentLibrary-BBY7E1ag.js} +1 -1
  3. package/dist/assets/{AppSettings-CBhYHKGI.js → AppSettings-vMiIi0xn.js} +1 -1
  4. package/dist/assets/{Button-DtBUGvGI.js → Button-C0Z090Ui.js} +1 -1
  5. package/dist/assets/{DocumentEditorPane-C82c7Qtl.js → DocumentEditorPane-Ds10W8SZ.js} +1 -1
  6. package/dist/assets/{Extensions-Kn-oUD2_.js → Extensions-CjPiz2I5.js} +2 -2
  7. package/dist/assets/{History-B4c3Uz9u.js → History-Bm3KXXs1.js} +1 -1
  8. package/dist/assets/{Library-1RpLT-aH.js → Library-D-khizDg.js} +1 -1
  9. package/dist/assets/{ListDetail-xr0oxNkv.js → ListDetail-CJYpp8fW.js} +1 -1
  10. package/dist/assets/{Panel-O8XPrpJu.js → Panel-BHFGylfy.js} +1 -1
  11. package/dist/assets/{ProjectClaudeConfig-DBGhhzg2.js → ProjectClaudeConfig-DIzNAala.js} +1 -1
  12. package/dist/assets/{ProvenanceBadge-DSaizfZL.js → ProvenanceBadge-CYryeTYF.js} +1 -1
  13. package/dist/assets/{Scheduler-D2_5NyiR.js → Scheduler-BS82wfRP.js} +1 -1
  14. package/dist/assets/{Settings-Clgqb3Lq.js → Settings-DWPHJ94d.js} +1 -1
  15. package/dist/assets/{SkillReferenceGraph-D80RA7kR.js → SkillReferenceGraph-Cf2M7YNq.js} +1 -1
  16. package/dist/assets/{Skills-DNG7tHSf.js → Skills-DLq55Odf.js} +1 -1
  17. package/dist/assets/{SourceChip-D-Imzszd.js → SourceChip-CHxAzRlD.js} +1 -1
  18. package/dist/assets/{SystemPrompt-CGlOpUQA.js → SystemPrompt-BYtKMAr3.js} +1 -1
  19. package/dist/assets/{TiptapBody-CJFGfBdz.js → TiptapBody-O_Gfq0Ha.js} +1 -1
  20. package/dist/assets/{Toggle-0Ff0bPa_.js → Toggle-BJOUI5NY.js} +1 -1
  21. package/dist/assets/{ViewTabs-BCMYQwo_.js → ViewTabs-kkvNGu-S.js} +1 -1
  22. package/dist/assets/{VoiceButton-JzyC6DAB.js → VoiceButton-3i-6ju2L.js} +1 -1
  23. package/dist/assets/{historyTotals-B01WPBwh.js → historyTotals-CHrIptK1.js} +1 -1
  24. package/dist/assets/{index-rt7pTODX.js → index-D9qgN9_V.js} +3 -3
  25. package/dist/index.html +1 -1
  26. package/dist-web/app.js +1 -1
  27. package/package.json +1 -1
  28. package/plugins/CLAUDE.md +7 -8
  29. package/plugins/session-manager-dev/.claude-plugin/plugin.json +1 -1
  30. package/plugins/session-manager-dev/skills/builder/SKILL.md +113 -91
  31. package/plugins/session-manager-dev/skills/builder/manual.md +80 -0
  32. package/plugins/session-manager-dev/skills/develop/SKILL.md +29 -56
  33. package/plugins/session-manager-dev/skills/develop/standards.md +11 -19
  34. package/plugins/session-manager-dev/skills/send-feedback/SKILL.md +13 -18
  35. package/src/main/build-info.json +4 -4
  36. package/src/main/lib/CLAUDE.md +2 -0
  37. package/src/main/lib/epic/epicTranscriptPath.cjs +5 -4
  38. package/src/main/lib/epic/restorableSessions.cjs +16 -8
  39. package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +23 -0
  40. package/src/seed/agents/demo-video-builder.md +25 -32
  41. package/src/seed/agents/dev-lead.md +3 -3
  42. package/plugins/session-manager-dev/skills/builder/0-diff/SKILL.md +0 -44
  43. package/plugins/session-manager-dev/skills/builder/1-classify-and-bump/SKILL.md +0 -37
  44. package/plugins/session-manager-dev/skills/builder/2-gate/SKILL.md +0 -37
  45. package/plugins/session-manager-dev/skills/builder/3-publish/SKILL.md +0 -137
  46. package/plugins/session-manager-dev/skills/builder/4-manual/SKILL.md +0 -124
  47. package/plugins/session-manager-dev/skills/builder/5-report/SKILL.md +0 -35
@@ -1,15 +1,11 @@
1
1
  ---
2
2
  name: develop
3
3
  description: >-
4
- Lead a software-development task: analyze it from five angles, split it into small
5
- self-contained PRDs (an independent set, or a 3-5 PRD chain), queue them for the
6
- session-manager scheduler with the required gate and files, each pointing the headless
7
- executor at the engineering standards file, then track them to a validated finish and report
8
- back. Use whenever the user says "/develop", "develop X", "build me X", "implement X", "let's
9
- code X", or otherwise starts dev work that should run as scheduled PRDs rather than inline
10
- now. Home of the developer-only guidance (performance, debugging, API reuse, TDD). Keywords:
11
- develop, build, implement, code, feature, refactor, bugfix, queue dev work, PRDs, PRD chain,
12
- multi-angle analysis.
4
+ Lead a software-development task inside a Session Manager Epic: analyze it, split it into
5
+ small self-contained PRDs (an independent set, or a 3-5 PRD chain), queue them for the
6
+ session-manager scheduler, then track them to a validated finish and report back. Use when
7
+ the user says "/develop" or asks for code to be built, fixed or refactored as scheduled PRDs
8
+ rather than inline — features, bug fixes, refactors, follow-up fix waves.
13
9
  ---
14
10
 
15
11
  # /develop — plan, queue, track to done
@@ -42,8 +38,9 @@ new work. **report** = your final message to the human.
42
38
  4. **Never delegate PRD authoring.** You write scope, title, goal, criteria and notes. Calling
43
39
  `scheduler_create_prd` with your own text is not delegation.
44
40
  5. **Never restate the engineering rules.** They live in `standards.md` beside this file, with
45
- the reasons behind the run rules. Interactive work uses the `test-driven-development`,
46
- `systematic-debugging` skills and the built-in `/code-review` for review. Why: one copy never goes stale.
41
+ the reasons behind the run rules. Interactive work uses the built-in `/code-review` for
42
+ review (and `test-driven-development` / `systematic-debugging` skills when installed). Why:
43
+ one copy never goes stale.
47
44
 
48
45
  ## Phase 1 — plan and queue
49
46
 
@@ -64,15 +61,15 @@ unrelated one.
64
61
  ### Preflight — confirm the tool is even in your tool list
65
62
 
66
63
  Before drafting, check that `mcp__session-manager-scheduler__scheduler_create_prd` is in your
67
- tools. Why: drafts made first are wasted. It is the only sanctioned way to write a PRD. Its two
68
- failure modes have different fixes:
64
+ tools. Why: drafts made first are wasted. It is the only sanctioned way to write a PRD. Its
65
+ three failure modes have different fixes:
69
66
 
70
67
  - **(a) Tool PRESENT but ERRORS** because the session-manager app is not running. A validation
71
68
  error is not this case: fix the input and retry. **STOP. Do not write any PRD file.** Tell the
72
69
  human to start the app, then retry the same call. Why: a PRD file the API did not write is
73
70
  quarantined and never runs.
74
- - **(c) Create errors with "did not answer" or "Connection closed".** It may still have been written; retry the same call with the same slug (it returns the existing PRD with `alreadyExisted: true`, or per entry `applied`) and never re-issue it under a new slug. `scheduler_get_prd` accepts the bare slug.
75
- - **(b) Tool ABSENT from your tool list.** The `session-manager-scheduler` MCP server is not
71
+ - **(b) Create errors with "did not answer" or "Connection closed".** It may still have been written; retry the same call with the same slug (it returns the existing PRD with `alreadyExisted: true`, or per entry `applied`) and never re-issue it under a new slug. `scheduler_get_prd` accepts the bare slug.
72
+ - **(c) Tool ABSENT from your tool list.** The `session-manager-scheduler` MCP server is not
76
73
  registered: a **misconfiguration**, not an offline app.
77
74
  **STOP. Do not write any PRD file.** Tell the human. The app registers the server at user
78
75
  scope the first time it starts. If it is still missing, the human deletes
@@ -156,47 +153,23 @@ Never pass `parallelGroup`; it is ignored. The API writes the frontmatter, the `
156
153
  fence (three backticks + `gate`), a `# Gate` heading or a `# Files` heading in any text field —
157
154
  the API rejects that.
158
155
 
159
- ### gate rules
160
-
161
- 1. 1–10 commands. The scheduler re-runs them, in order. Each must exit 0.
162
- 2. Start each `&&` step with `timeout <seconds>`, for example `timeout 300 npm test &&
163
- timeout 120 npm run lint`. Why: a command without a timeout can hang the run.
164
- 3. Join steps inside one entry with `&&`.
165
- 4. The scheduler runs gate commands without a shell, so shell syntax is refused. Outside single
166
- quotes, do not use `|` `<` `>` `;` `&` (only `&&` between steps), backticks, `$`, `\`, `*`,
167
- `?`, `[`, `]`, `(`, `)`, `{`, `}` or `!`. Inside double quotes, `$`, backticks and `\` are
168
- refused too.
169
- 5. Do not start a word with `#` or `~`, and do not put `~` right after `=` or `:`. `HEAD~1` is
170
- fine.
171
- 6. Put text with these characters inside single quotes, for example `rg -n 'a|b' src/`. A check
172
- that needs a shell belongs in a test file that the gate runs.
173
- 7. Keep each entry on one line, at most 500 chars, with plain spaces between words.
174
- 8. Use `["none"]` only for docs or config with no runnable check. Write exactly `none`. Never
175
- mix `none` with commands.
176
- 9. Put `NAME=value` words before `timeout`, never after it, for example
177
- `CI=1 timeout 300 npm test`. A leading `TMPDIR=$(mktemp -d) ` is allowed but not needed: the
178
- scheduler gives each gate its own TMPDIR.
179
- 10. Before queueing, run each gate command once at the current HEAD in the main checkout. If it
180
- is red, scope the gate to the PRD's own test files, never a suite that is already red, and
181
- say in the PRD notes which suite was red and why it was scoped out. Why: a gate that is red
182
- on the base parks the job as `sentinel_fail` whatever the executor does.
183
- 11. A gate command must not create or modify tracked files; write outputs to the per-gate TMPDIR
184
- or a gitignored path. Why: a dirtied tree fails the clean-tree check.
185
- 12. Never put a step only a human or the passage of time can complete (host cron install,
186
- waiting for a live post, a live payment, an account dashboard action) in a gate or
187
- criterion; keep them out of PRDs at authoring time. An executor that meets one ends
188
- `SCHEDULER_VERDICT: FAIL` naming what is missing. Why: no executor can pass such a gate,
189
- and queued work runs with no questions asked.
190
- Live-run steps that need gitignored state follow PRD_AUTHORING.md §7 (absolute main-checkout
191
- paths, artifact-only).
192
-
193
- ### files rules
194
-
195
- 1. 1–50 repo-relative paths. A folder ends with `/`.
196
- 2. No absolute paths, no `~` at the start, no `..` or `.` segments, no `*` or `?`, no `\` or
197
- backticks, no leading `-`. Use `/` between folders.
198
- 3. The scheduler never runs two PRDs with overlapping files at once (held as `files-overlap`);
199
- `dependsOn` is for real output or order dependencies only.
156
+ ### gate and files rules
157
+
158
+ The syntax rules for `gate` and `files` are in PRD_AUTHORING.md §6, and the API enforces them: it
159
+ refuses a bad gate or path and returns warnings — read them and fix the input. Two rules only you
160
+ can apply, because they depend on the repo at authoring time:
161
+
162
+ 1. Before queueing, run each gate command once at the current HEAD in the main checkout. If it
163
+ is red, scope the gate to the PRD's own test files, never a suite that is already red, and
164
+ say in the PRD notes which suite was red and why it was scoped out. Why: a gate that is red
165
+ on the base parks the job as `sentinel_fail` whatever the executor does.
166
+ 2. Never put a step only a human or the passage of time can complete (host cron install,
167
+ waiting for a live post, a live payment, an account dashboard action) in a gate or
168
+ criterion; keep them out of PRDs at authoring time. An executor that meets one ends
169
+ `SCHEDULER_VERDICT: FAIL` naming what is missing. Why: no executor can pass such a gate,
170
+ and queued work runs with no questions asked.
171
+ Live-run steps that need gitignored state follow PRD_AUTHORING.md §7 (absolute main-checkout
172
+ paths, artifact-only).
200
173
 
201
174
  ### What a headless run cannot do
202
175
 
@@ -1,7 +1,7 @@
1
1
  # Engineering standards
2
2
 
3
3
  > Single source of truth for the engineering rationale behind every scheduled PRD.
4
- > `scheduler_create_prd` (src/main/lib/prd/prdCreate.cjs) appends a one-line pointer to this file's
4
+ > `scheduler_create_prd` appends a one-line pointer to this file's
5
5
  > absolute path to every PRD — never a copy — and the executor's ordered run contract lives in
6
6
  > the `dev-lead` persona it is launched as. Read a section here when a contract line needs its
7
7
  > reasoning; edit here once and every PRD sees it.
@@ -13,32 +13,24 @@
13
13
 
14
14
  ## Debugging approach
15
15
 
16
- - State an explicit hypothesis before each debugging action.
17
- - Describe what observation would confirm or refute the hypothesis.
18
- - If three hypotheses fail, stop and re-examine your assumptions from scratch.
19
- - When a bug was recently introduced, bisect commits to find the offender.
20
- - When a bug is in a long pipeline, halve the input or code path until it localizes.
21
- - Record each bisection step so the path to the root cause is reproducible.
22
- - Never attempt a fix until you can reproduce the bug on demand.
16
+ - Never attempt a fix until you can reproduce the bug on demand; if you can't, instrument the
17
+ system until you can.
23
18
  - Capture the reproduction as a failing test before changing production code.
24
- - If the bug cannot be reproduced, instrument the system until it can.
19
+ - For a recent regression, bisect commits; record the steps in your report.
25
20
 
26
21
  ## API reuse and single source of truth
27
22
 
28
- - One concept = one implementation. Before writing code that computes, fetches, formats, or displays a value, search the codebase for an existing implementation and reuse it. Do not write a second or third copy of the same logic.
29
- - N display sites, ONE source. When the same datum appears in multiple places (a metric shown in several tabs, a value returned by several endpoints), it must flow from a single shared accessor / store / hook / endpoint. Displaying something in 3 places must not mean 3 implementations — it means 1 implementation with 3 call sites.
30
- - Extend, don't fork. If an existing function/module/API is close but not sufficient, generalize it (add a param, widen the contract) rather than cloning a divergent variant. Prefer composition over duplication.
31
- - Treat duplication as a latent bug. Copy-pasted logic drifts; divergence between copies is how silent inconsistencies ship (e.g. one site reads a 0–100 percentage as a 0–1 fraction). When you see the same logic in two places, consolidate it on sight and route both through the shared unit.
32
- - Design for extensibility: stable shared contracts, single ownership, callers depend on the contract — not on a private copy. New surfaces consume the canonical API; they never reimplement it.
33
- - When reviewing or implementing, explicitly check: "is this value/behaviour already produced elsewhere, and am I reusing that path?" If not, fix the reuse before adding the feature.
23
+ - One concept = one implementation. Before writing code that computes, fetches, formats or displays a value, search for the existing implementation and reuse it; a datum shown in N places flows from one shared accessor, store, hook or endpoint.
24
+ - Extend, don't fork: generalize a close-but-insufficient function (add a param, widen the contract) instead of cloning a variant. Why: copies drift, and divergence is how silent inconsistencies ship (one site reads a 0–100 percentage as a 0–1 fraction).
25
+ - Duplication you touch is a bug in scope: route both copies through the shared unit when both are in the PRD's `# Files`; otherwise name the duplicate in your report.
34
26
 
35
27
  ## Test-driven development
36
28
 
37
29
  - Write the failing test first, then the implementation that makes it pass — for every feature and every bugfix.
38
30
  - A bugfix starts with a test that reproduces the bug (red), then the fix (green).
39
31
  - Do not write production code without a test asserting the behavior it adds.
40
- - (Interactive sessions: the `test-driven-development` skill has the full red-green-refactor
41
- workflow. Headless PRD runs can't load it — the three rules above are the load-bearing core.)
32
+ - (Interactive sessions: if a `test-driven-development` skill is installed, it has the full
33
+ red-green-refactor workflow. Headless PRD runs can't load it — the three rules above are the core.)
42
34
  - Put the red test in the nearest existing scenario test for that workflow.
43
35
  - Create a new test file only for a new module or a new workflow.
44
36
  - Name tests and files by behaviour, never by PRD id.
@@ -77,8 +69,8 @@ Long hangs, not bad code, cause most failed runs. The PRD body carries a one-lin
77
69
  - **Verify before done.** Run the acceptance test once before declaring success. Why: a run that ends on a failing test is not done — fix it or `exit 1` with the failure instead.
78
70
  - **Fail loud, fail fast.** On any step failure, print one diagnostic line and `exit 1`. Do not swallow it with `|| true` or retry silently. Exception: a `rateLimited` exit-1 is the scheduler's own benign auto-pause — it resumes next window on its own, so do not engineer around it.
79
71
  - **Stay in the AC.** Do not add work past the acceptance checklist — "while we're here" extras are how runs overrun. Keep the body clean UTF-8, with no NUL or control bytes.
80
- - **You ARE the executor — never re-queue or self-schedule.** Do the acceptance criteria yourself. Why: `/develop` or any queue-authoring skill just writes a *new* PRD and returns — the run exits 0 having done nothing, with no commit and no verdict line (`needs_review` with `no_verdict_sentinel`). The same applies to calling `ScheduleWakeup`, or backgrounding a review agent (`/code-review`, `/security-review`) and ending your turn with something like "I'll wait for the review agents to complete": a headless run has no next turn, so nothing ever resumes it — no verdict line prints, and the job parks in `needs_review` even though the work already landed. Run a required second review pass synchronously, inline, before the finish protocol — call the reviewer and read its result in the same turn. If the work is too big for one run, do not queue more work; see the timeout rule below. (Incidents: PRD 460 invoked `/develop` and exited 0 with no work. PRD 479 landed its commit, then backgrounded `/code-review --fix` + `/security-review` and called `ScheduleWakeup` to "wait" — same failure, different entry point.)
81
- - **Never `git stash`, `git reset`, `git checkout -- <path>`, or `git clean` against working-tree state you did not create.** There is no polite version of this. You are normally isolated in your own `git worktree` on branch `sm-job/<slug>` (`src/main/lib/git/gitWorktree.cjs`), and the scheduler salvages any uncommitted diff of yours on teardown — so you never need to touch shared state to protect your own work. Confirm isolation with `git rev-parse --git-common-dir` (a worktree's common-dir differs from its own `.git`) or by checking your cwd; `git diff`/`git status` are always safe. If you land in a SHARED tree with pre-existing dirty tracked files anyway, work around them — scope `git add`/commits to only the paths you touched — or end with `SCHEDULER_VERDICT: FAIL <reason>` (`SCHEDULER_VERDICT: BLOCKED_BY_FOREIGN_WIP` only when your gate failed on those files, as the finish protocol says); never discard, stash, or revert someone else's uncommitted changes to get a clean checkout. A shared tree may be feeding a running service that reads its config straight from the working tree, so reverting it is a production change, not a local inconvenience. The scheduler runs a shared-tree stash guard as a backstop (`scheduler.cjs`'s `checkSharedTreeGuard`/`evaluateSharedTreeGuard`), but that guard exists to catch a mistake, not to license one. (Incidents: PRD 477 stashed a sibling job's WIP to get its own checkout and never restored it. 2026-09-01: a headless executor in the trader repo ran a blanket `git stash` against an operator's uncommitted live trading-config edit and exited without restoring it — the third incident of this class.)
72
+ - **You ARE the executor — never re-queue or self-schedule.** Do the acceptance criteria yourself. Why: `/develop` or any queue-authoring skill just writes a *new* PRD and returns — the run exits 0 having done nothing, with no commit and no verdict line (`needs_review` with `no_verdict_sentinel`). The same applies to calling `ScheduleWakeup`, or backgrounding a review agent (`/code-review`, `/security-review`) and ending your turn with something like "I'll wait for the review agents to complete": a headless run has no next turn, so nothing ever resumes it — no verdict line prints, and the job parks in `needs_review` even though the work already landed. Run a required second review pass synchronously, inline, before the finish protocol — call the reviewer and read its result in the same turn. If the work is too big for one run, do not queue more work; see the timeout rule below.
73
+ - **Never `git stash`, `git reset`, `git checkout -- <path>`, or `git clean` against working-tree state you did not create.** You are normally isolated in your own `git worktree` on branch `sm-job/<slug>`, and the scheduler salvages any uncommitted diff of yours on teardown — so you never need to touch shared state to protect your own work. Confirm isolation with `git rev-parse --git-common-dir` (a worktree's common-dir differs from its own `.git`) or by checking your cwd; `git diff`/`git status` are always safe. If you land in a SHARED tree with pre-existing dirty tracked files anyway, work around them — scope `git add`/commits to only the paths you touched — or end with `SCHEDULER_VERDICT: FAIL <reason>` (`SCHEDULER_VERDICT: BLOCKED_BY_FOREIGN_WIP` only when your gate failed on those files, as the finish protocol says); never discard, stash, or revert someone else's uncommitted changes to get a clean checkout. A shared tree may be feeding a running service that reads its config straight from the working tree, so reverting it is a production change, not a local inconvenience. The scheduler runs a shared-tree stash guard as a backstop (`checkSharedTreeGuard`/`evaluateSharedTreeGuard`), but that guard exists to catch a mistake, not to license one. Executors have stashed a sibling job's WIP and an operator's live config edit and never restored either.
82
74
  - **`gh pr edit --body` can fail on repos with legacy GitHub Projects (classic) boards.** It queries the deprecated `repository.pullRequest.projectCards` field and errors with a `GraphQL: Projects (classic) is being deprecated` message even though the edit itself would otherwise succeed — a known `gh` CLI quirk, not a defect in your work. Prefer `gh api -X PATCH repos/<owner>/<repo>/pulls/<n> -f body="$(cat body.md)"` instead; it skips that field. If `gh pr edit` fails this way anyway retry immediately with the `gh api` form and note the fallback in your report.
83
75
  - **Never `sleep N && <cmd>` to poll remote CI/job status.** The harness hard-blocks a `sleep` chained to another command. Use the tool's own blocking watcher under a hard cap instead: `timeout 600 gh run watch <run-id> --repo <owner>/<repo> --exit-status`. `gh pr checks` exits 8 while checks are pending and 1 on failure — that is not a defect in your work.
84
76
  - **The verdict line is your authoritative "I passed" signal — emit it truthfully.** The scheduler's finish protocol ends by printing `SCHEDULER_VERDICT: PASS` once the AC gate is green and the commit has landed (or `SCHEDULER_VERDICT: FAIL <reason>` + `exit 1` otherwise). `PASS` plus a landed commit is authoritative: it overrides incidental transcript markers, so a deliberately reproduced red test or a grep result containing "Error" will not false-trip `needs_review`, as long as the run genuinely ends green and committed. An artifact-only PRD (`deliverable: artifact` + `artifactPaths`) commits nothing by design: a green gate with a clean tree is a `PASS`, never a `FAIL` for the missing commit. Exiting 0 with uncommitted changes, or with no verdict line at all, is the #1 cause of needless `needs_review`. Never print `PASS` when the gate is red — that turns a safety net into a silent-failure machine.
@@ -6,12 +6,9 @@ description: >-
6
6
  Session Manager's cross-project conduit (the feedback_open_session MCP tool).
7
7
  Use whenever work in one repo surfaces something that is genuinely another
8
8
  repo's to fix — a bug in a sibling service, a broken contract between two
9
- projects, a doc that lies about another project's behavior. Also use when the
10
- user says "/send-feedback", "send this to <project>", "file this against
11
- <other repo>", "tell <project> about this", or "this is a bug in X, not
12
- here". NOT for work in the project you are already in — that is /develop.
13
- Keywords: feedback, proposal, plan, cross-project, project to project, another repo, sibling
14
- project, hand off, file against, route finding, x-folder.
9
+ projects, a doc that lies about another project's behavior — or when the user
10
+ asks to send, file or hand a finding to another project ("/send-feedback").
11
+ NOT for work in the project you are already in — that is /develop.
15
12
  ---
16
13
 
17
14
  # send-feedback
@@ -23,12 +20,10 @@ and never wait for a reply.
23
20
 
24
21
  ## Why this exists
25
22
 
26
- `/process-feedback`, `/my-feedback` and the `session-manager-operations/feedback/`
27
- folder were retired (2026-08-02), and the scheduler was locked down so a PRD can
28
- only JOIN an Epic a human already approved. Both were right. Together they left
29
- no way to hand a finding across a project boundary. This skill is that way back
30
- — narrowed to exactly one shape: **a proposal deposited in another project's
31
- queue, which a human there must approve before anything runs.**
23
+ A PRD can only join an Epic a human already approved, so nothing in one project
24
+ can start work in another. This skill is the one way across that boundary:
25
+ **a proposal deposited in another project's queue, which a human there must
26
+ approve before anything runs.**
32
27
 
33
28
  ## The one hard rule
34
29
 
@@ -43,9 +38,8 @@ round-trip, not a wrong write.
43
38
  | Another project on this machine | this skill |
44
39
  | Nothing actionable | say so explicitly |
45
40
 
46
- Per the global core rules, routing a finding is the **default action, not a
47
- question**. Do not ask "should I send this to X?" — send it, then report what
48
- you delivered.
41
+ Routing a finding is the **default action, not a question**: a proposal starts
42
+ nothing until a human there approves it. Send it, then report what you delivered.
49
43
 
50
44
  ## Steps
51
45
 
@@ -198,6 +192,7 @@ Two distinct failure modes — don't conflate them:
198
192
  them in the meantime so it isn't lost.
199
193
  - **`feedback_open_session` is absent from your tool list entirely** — the
200
194
  `session-manager-scheduler` MCP server isn't registered for this project.
201
- That's a misconfiguration, not an offline app. Fix:
202
- `claude mcp add session-manager-scheduler --scope user -- node <session-manager-repo>/scripts/scheduler-mcp-server.cjs`
203
- (once at user scope covers every project).
195
+ That's a misconfiguration, not an offline app. Tell the human: the app
196
+ registers the server at user scope the first time it starts; if it is still
197
+ missing, delete `~/.claude/session-manager/.scheduler-mcp-seeded`, restart the
198
+ app, and open a new session. Never add an MCP entry yourself.
@@ -1,8 +1,8 @@
1
1
  {
2
- "version": "0.135.0",
3
- "gitSha": "e4f59f3f49bc1a6db03044a33b8c56d52c44247f",
4
- "gitShortSha": "e4f59f3f",
2
+ "version": "0.135.1",
3
+ "gitSha": "00ccf511470488cd658d6eaa51a4a8f27128146b",
4
+ "gitShortSha": "00ccf511",
5
5
  "gitBranch": "HEAD",
6
- "builtAt": "2026-11-15T01:31:55.800Z",
6
+ "builtAt": "2026-11-15T16:36:13.769Z",
7
7
  "dirty": false
8
8
  }
@@ -7,12 +7,14 @@ Shared main-process helpers (CommonJS `.cjs`). Layout source of truth: `scripts/
7
7
  - `agent-cli/` — other agent CLIs: registry, adapters, session store, turn planner, IPC.
8
8
  - `app-preview/` — Epic dev-server preview processes (spawn, URL detect, stop, orphan sweep).
9
9
  - `claude/` — claude CLI binary, caps, model/effort resolution.
10
+ - `demo-video-kit/` — demo-video build tools (capture, sound, frames, checks), seeded to `~/.claude/session-manager/demo-video-kit/`.
10
11
  - `epic/` — Epic mint, worktrees, active index, spawn plan/cwd, transcripts.
11
12
  - `feedback-remote/` — cross-project and customer feedback conduits.
12
13
  - `git/` — git exec, worktrees, branch sweeps, job worktrees.
13
14
  - `persona-macro/` — agent persona schema/merge, macro library, builtin macros.
14
15
  - `prd/` — PRD parsing helpers, admin routes, dep-slug resolution, plan validation.
15
16
  - `process/` — child processes, kill tree, env cleaning, pid liveness, instance lock.
17
+ - `project-pages/` — Project Home pages library, competitor matrix store/HTML, player bridge.
16
18
  - `scheduler/` — dispatch loop, session slots, gates, supervisors, queue helpers.
17
19
  - `telemetry/` — audit/ops error logs, crash and OTLP telemetry.
18
20
  - `util/` — generic pure helpers (atomic fs, kebab, home/cwd encoding, JSON extract, tail).
@@ -15,7 +15,8 @@
15
15
  *
16
16
  * Bounded: never enumerates ~/.claude/projects, only stats its candidate list.
17
17
  * The active-index.json read and the archive scan are memoised per cwd on
18
- * mtimeMs + size (same shape as transcripts.cjs's usageCache) because
18
+ * restorableSessions.cjs's keyOf (dev:ino:ctimeMs:mtimeMs:size; mtimeMs:size
19
+ * alone misses a same-size, same-mtime rewrite — see keyOf) because
19
20
  * usageFor() can call this for up to 500 ids in one IPC.
20
21
  *
21
22
  * Ops-root hazard (see epicSpawnCwd.cjs): `cwd` here is the PROJECT cwd used
@@ -29,7 +30,7 @@ const { encodeCwd } = require('../util/encodeCwd.cjs');
29
30
  const { readActiveIndex } = require('./epicMint.cjs');
30
31
  const { resolveEpicSpawnCwd } = require('./epicSpawnCwd.cjs');
31
32
 
32
- /** Map<cwd, { key, sessions }> — active-index.json parse, keyed on mtime+size. */
33
+ /** Map<cwd, { key, sessions }> — active-index.json parse, keyed on keyOf(stat). */
33
34
  const indexCache = new Map();
34
35
  /** Map<cwd, { dirKey, files: Map<name,{key,sid,dir}>, byId: Map<sid,string[]> }> */
35
36
  const archiveCache = new Map();
@@ -45,8 +46,8 @@ function emptyResult() {
45
46
 
46
47
  function statKey(statSync, p) {
47
48
  try {
48
- const s = statSync(p);
49
- return `${s.mtimeMs}:${s.size}`;
49
+ // Lazy: restorableSessions.cjs is heavier than this module needs at load.
50
+ return require('./restorableSessions.cjs').keyOf(statSync(p));
50
51
  } catch {
51
52
  return 'missing';
52
53
  }
@@ -29,7 +29,7 @@
29
29
  * row never takes an interactive row's place. Per-kind budgets exist because
30
30
  * a project with claude -p automation has ~98% headless transcripts: one
31
31
  * shared budget listed 48 headless + 2 interactive rows on this repo;
32
- * - memoises the claimed-id scan per cwd on each ops file's mtimeMs:size, so
32
+ * - memoises the claimed-id scan per cwd on each ops file's stat key (keyOf), so
33
33
  * an unchanged Epic file is never re-read (epicTranscriptPath.cjs's shape).
34
34
  * The list path scans through fs.promises (claimedClaudeSessionIdsAsync): a
35
35
  * cold scan reads every archived Epic file, which blocked 191 ms when sync.
@@ -131,16 +131,23 @@ function __resetCacheForTests() {
131
131
  /**
132
132
  * The memo key. One formatter for both stat paths, so each reader can reuse
133
133
  * the records the other wrote.
134
+ *
135
+ * mtimeMs:size alone served stale ids: a rewrite that swaps one claudeSessionId
136
+ * for another is always the same size (UUIDs are fixed-length), and it keeps
137
+ * its mtime when it lands within one timestamp tick (coarse-mtime filesystems)
138
+ * or has its mtime restored. dev:ino changes on every tmp+rename write (how
139
+ * atomicFs writes Epic files), and ctime moves on every write and can't be
140
+ * set back from user space.
134
141
  * @param {import('node:fs').Stats} s
135
- * @returns {string} `mtimeMs:size`
142
+ * @returns {string} `dev:ino:ctimeMs:mtimeMs:size`
136
143
  */
137
144
  function keyOf(s) {
138
- return `${s.mtimeMs}:${s.size}`;
145
+ return `${s.dev}:${s.ino}:${s.ctimeMs}:${s.mtimeMs}:${s.size}`;
139
146
  }
140
147
 
141
148
  /**
142
149
  * @param {string} file
143
- * @returns {string} `mtimeMs:size`, or 'missing'
150
+ * @returns {string} keyOf(stat), or 'missing'
144
151
  */
145
152
  function statKey(file) {
146
153
  try {
@@ -153,7 +160,7 @@ function statKey(file) {
153
160
  /**
154
161
  * statKey through fs.promises.
155
162
  * @param {string} file
156
- * @returns {Promise<string>} `mtimeMs:size`, or 'missing'
163
+ * @returns {Promise<string>} keyOf(stat), or 'missing'
157
164
  */
158
165
  async function statKeyAsync(file) {
159
166
  try {
@@ -257,7 +264,7 @@ function isArchiveName(name) {
257
264
 
258
265
  /**
259
266
  * First half of the per-file archive-record update both readers share: the
260
- * memo's record while the file's mtimeMs:size is unchanged, else null.
267
+ * memo's record while the file's stat key is unchanged, else null.
261
268
  * @param {Map<string, ArchiveRec>} prevFiles
262
269
  * @param {string} name
263
270
  * @param {string} key
@@ -296,7 +303,7 @@ function commitClaimed(cwd, entry) {
296
303
  /**
297
304
  * Every claudeSessionId an Epic of this project owns: active-index.json plus
298
305
  * each archived prompt-sessions/<id>.json. Memoised per cwd on each file's
299
- * mtimeMs:size, so an unchanged file is never re-read (one statSync per file per
306
+ * stat key (keyOf), so an unchanged file is never re-read (one statSync per file per
300
307
  * call); the memo is shared with claimedClaudeSessionIdsAsync. A cwd with no ops
301
308
  * root (relative, tmpdir or linked worktree) cannot hold Epics, so it owns
302
309
  * nothing. Sync, for the mint gate (checkRestorableSessionSync).
@@ -333,7 +340,7 @@ function claimedClaudeSessionIds(cwd, deps) {
333
340
  * claimedClaudeSessionIds through fs.promises (readdir, stat and readFile, at
334
341
  * most 16 files in flight), for the list path. A cold scan reads every archived
335
342
  * Epic file; done sync it blocked the main loop for 191 ms. Same memo as the
336
- * sync reader, so either one re-reads only the files whose mtimeMs:size changed
343
+ * sync reader, so either one re-reads only the files whose stat key changed
337
344
  * since the last scan by either. active-index.json stays a readActiveIndex read,
338
345
  * memoised on its own key as in the sync reader.
339
346
  * @param {string} cwd Project cwd (mapped to its ops root by opsPath).
@@ -828,6 +835,7 @@ function checkRestorableSessionSync(cwd, sessionId, deps) {
828
835
 
829
836
  module.exports = {
830
837
  SESSION_ID_RE,
838
+ keyOf,
831
839
  claimedClaudeSessionIds,
832
840
  claimedClaudeSessionIdsAsync,
833
841
  listRestorableSessions,
@@ -183,6 +183,18 @@ const SHIPPED_PERSONA_SEEDS = deepFreeze({
183
183
  tools: "Read, Grep, Glob, Bash, Edit, Write",
184
184
  },
185
185
  },
186
+ {
187
+ commit: "seed-v6",
188
+ bodySha256: "2f774cedfc73f0593e64fca70110c40b46c0cc0614a1dc9e4a22e847e23c2400",
189
+ fm: {
190
+ description: "Executes exactly one already-scoped PRD at a time, headless, start to finish — reads the PRD's Goal/Acceptance Criteria/Implementation notes and standards.md, implements it, verifies against its own AC, and reports. Has no visibility into the overall plan — that's architect's job. This is the default persona a scheduled PRD runs as: the scheduler resolves a PRD's `agentType` frontmatter field (default `dev-lead`) to this file and launches the headless executor AS this persona via `--append-system-prompt`.",
191
+ effort: "medium",
192
+ executorOnly: "true",
193
+ model: "sonnet",
194
+ title: "Engineering — Software Engineer",
195
+ tools: "Read, Grep, Glob, Bash, Edit, Write",
196
+ },
197
+ },
186
198
  ],
187
199
  "project-home-builder": [
188
200
  // Not from src/seed git history: this body was written to ~/.claude/agents by this repo's own
@@ -521,6 +533,17 @@ const SHIPPED_PERSONA_SEEDS = deepFreeze({
521
533
  effort: "max",
522
534
  },
523
535
  },
536
+ {
537
+ commit: "seed-v12",
538
+ bodySha256: "d1d613bde0b771872ecbd2e353e8f872fcca2949b51ba595a88c810f4a03bd66",
539
+ fm: {
540
+ description: "30-second or 1-minute self-contained HTML/JS demo video for Project Home, saved via project_video_write.",
541
+ effort: "max",
542
+ model: "opus",
543
+ title: "Project Home — Demo Video",
544
+ tools: "Read, Grep, Glob, Bash, Write, Edit, mcp__session-manager-scheduler__project_demo_video_write, mcp__session-manager-scheduler__project_video_write, mcp__session-manager-scheduler__project_character_write",
545
+ },
546
+ },
524
547
  ],
525
548
  "blender-artist": [
526
549
  {
@@ -5,7 +5,7 @@ tools: Read, Grep, Glob, Bash, Write, Edit, mcp__session-manager-scheduler__proj
5
5
  title: 'Project Home — Demo Video'
6
6
  model: opus
7
7
  effort: max
8
- seedVersion: 11
8
+ seedVersion: 12
9
9
  ---
10
10
 
11
11
  You are the demo-video-builder. You make a short animated demo, 30 seconds or 1 minute long per `<length_and_pacing>`, that shows someone what this
@@ -42,22 +42,22 @@ not "run by cron"; "it runs on your own computer", not "a local-first agent". Ne
42
42
  file name, or function name aloud. Product names stay as they are.
43
43
 
44
44
  For everyone else, replace any word a person outside software would have to look up. For a developer
45
- tool, keep only words every developer uses daily (code, terminal, repo) and drop the project's
46
- internal terms ("the static-path contract").
45
+ tool, keep only words every developer uses daily (code, terminal) and drop the project's internal
46
+ terms ("the static-path contract"); the banned list in `<voice_first>` applies to both audiences.
47
47
  </audience_and_language>
48
48
 
49
49
  <length_and_pacing>
50
50
  The video is D seconds long: D = 60 when the additional instructions carry a 'Video length: 60' line or plainly ask for one minute, otherwise D = 30. Every length rule in this file follows D.
51
51
  - Script: ~70-80 spoken words for 30 s, ~140-160 for 60 s (~150 wpm). Narration stays at speed 1.0 with a short breath between lines; size the script so the recipe never has to speed a line up.
52
- - Keystones: a keystone is one scene, one camera stop and the picture built there. Every keystone stays on screen at least 5 s, counting the camera move or transition that brings it in, and that move takes at least 1.0 s. That is 20% slower than the old 4.3 s keystones and 0.8 s moves, which felt rushed. So 30 s holds at most 6 keystones and 60 s at most 12.
52
+ - Keystones: a keystone is one scene, one camera stop and the picture built there. Every keystone stays on screen at least 5 s, counting the camera move or transition that brings it in, and that move takes at least 1.0 s, so a viewer never feels rushed. So 30 s holds at most 6 keystones and 60 s at most 12.
53
53
  - A keystone may carry one or two script lines. It keeps building while they are spoken instead of cutting away.
54
54
  - 60 s tells the same story with more room: up to 5-6 features, but only features you can source. Never pad with invented claims; use longer holds and richer drawings instead.
55
55
  </length_and_pacing>
56
56
 
57
57
  <script_first>
58
58
  Write the narration script before any visual work: the word count from `<length_and_pacing>`, beats =
59
- hook (a question or bold claim, 0-4 s), problem, solution, three features (up to 5-6 at 60 s, each sourced), call to action per
60
- `<call_to_action>`. Every line traces to the claims list. Then storyboard the keystones per `<storyboard>`,
59
+ the scenes in `<video_structure>`, opening on a hook (a question or bold claim, 0-4 s) and ending on the
60
+ close per `<call_to_action>`. Every line traces to the claims list. Then storyboard the keystones per `<storyboard>`,
61
61
  each sized to the lines it carries; visuals illustrate what the line says at that moment (the noun
62
62
  on screen when it is spoken). Good script first, visuals second — a strong script with simple
63
63
  visuals beats flashy visuals over a weak script.
@@ -68,8 +68,8 @@ The close depends on the audience. Use only what you read; never invent a link o
68
68
  - Everyone else: close on the public link, from the manifest's `homepage` or a live URL in the README
69
69
  or docs. Show the full link on the closing card as plain text, never an `<a>` tag (the write tool
70
70
  rejects outbound links), and say its short form aloud ("example dot com").
71
- - Developer tool: close on the real get-started command, shown on the closing card. The narration
72
- says what to do ("try it with one command") and does not read the command out.
71
+ - Developer tool: close on the product URL when one exists, otherwise the docs link; never a shell
72
+ command (see `<voice_first>`). The narration says what to do and does not read a link out in full.
73
73
  - Everyone else with no public link: close on the project's name and one plain line on what it does.
74
74
  Never fall back to an install command.
75
75
  </call_to_action>
@@ -150,12 +150,9 @@ PRNG (e.g. mulberry32 with a fixed seed) so `seek(t)` stays exact and frames are
150
150
  <storyboard>
151
151
  Before writing any code, turn the script into a storyboard of keystones per `<length_and_pacing>` (5-6 for 30 s,
152
152
  8-12 for 60 s), each carrying one or two script lines, with timings that sum to exactly D seconds:
153
-
154
- 1. Title card — the project's name and a one-line purpose (the hook).
155
- 2. The problem it solves.
156
- 3-6. One keystone per key feature (3 at 30 s; up to 5-6 at 60 s, each sourced), each a short caption plus a real capture when one exists, otherwise a simple animated
157
- diagram or kinetic type built from shapes, SVG, or canvas. Never invent a screenshot.
158
- 7. Closing card — the project's name and the close from `<call_to_action>`.
153
+ one keystone (or two) per scene of `<video_structure>`. Feature moments carry a short caption plus a
154
+ real capture when one exists, otherwise a simple animated diagram or kinetic type built from shapes,
155
+ SVG, or canvas. Never invent a screenshot.
159
156
 
160
157
  The character appears in most scenes per `<character>`; the style follows `<styles>`. Keep every
161
158
  caption at 12 words or fewer, and hold each scene on screen long enough to read twice.
@@ -230,27 +227,24 @@ for start, end, line, voice in SCENES:
230
227
  clip = samples[: len(buf) - at]
231
228
  buf[at : at + len(clip)] += clip
232
229
  soundfile.write('narration.wav', buf, sr)
233
- LOUDNESS = 'acompressor=threshold=0.1:ratio=3:attack=5:release=150,loudnorm=I=-14:TP=-1.5:LRA=11'
234
- subprocess.run(['ffmpeg', '-y', '-i', 'narration.wav', '-af', LOUDNESS, '-ac', '1', '-ar', '24000',
235
- '-c:a', 'libmp3lame', '-b:a', '64k', 'narration.mp3'], check=True)
236
- b64 = base64.b64encode(open('narration.mp3', 'rb').read()).decode()
230
+ # The soundtrack is the kit's mix (<kit>): spec.json is
231
+ # { "narrationWav": "narration.wav", "cues": [...], "style": "...", "lengthS": D, "out": "mix.mp3" }
232
+ KIT = os.path.expanduser('~/.claude/session-manager/demo-video-kit')
233
+ subprocess.run(['node', f'{KIT}/sound.cjs', 'spec.json'], check=True)
234
+ b64 = base64.b64encode(open('mix.mp3', 'rb').read()).decode()
237
235
  html = open('template.html').read() # your finished HTML with the placeholder below
238
236
  html = html.replace('AUDIO_B64_PLACEHOLDER', b64) # <audio src="data:audio/mpeg;base64,AUDIO_B64_PLACEHOLDER">
239
237
  open('demo.html', 'w').write(html)
240
238
  ```
241
239
 
242
- Keep the mono track at the model's native 24000 Hz and ~64 kbps — downsampling or dropping below
243
- ~48 kbps makes speech sound crushed (a 30 s track is only ~235 KB, 60 s about 470 KB). Keep the whole document
244
- under the 2 MB cap.
245
- - Keep the recipe's `LOUDNESS` filter. Raw Kokoro speech sits near -23 LUFS and can clip; the filter
246
- brings it to about -15 LUFS with room under 0 dBFS, so it holds up beside other web video.
240
+ Keep the whole document under the 2 MB cap.
247
241
  - Wire `play()`/`pause()`/`seek(t)` to the `<audio>` element too (`audio.currentTime = t` on
248
242
  seek) so narration never drifts from the visual clock; call `.play()` on load and, on rejection
249
243
  (autoplay-blocked), show a small "tap for sound" button instead of failing silently.
250
244
  - Never write the literal pattern `function (` or `function(` in the inline `<script>` —
251
245
  `project_video_write`'s safety scanner blocks anything matching `/\bFunction\s*\(/i`.
252
246
  Use arrow functions (`() => { ... }`) throughout.
253
- - Save the built file by path (see `<process>` step 9). Never retype the base64 audio into a tool
247
+ - Save the built file by path (see `<process>` step 8). Never retype the base64 audio into a tool
254
248
  argument — a ~300 KB payload retyped by the model is exactly how a run once shipped silent.
255
249
  </audio_policy>
256
250
 
@@ -264,17 +258,16 @@ open('demo.html', 'w').write(html)
264
258
  `<script_first>`, ending on the close from `<call_to_action>`.
265
259
  4. Choose the style per `<styles>` and design the mascot per `<character>`.
266
260
  5. Write the storyboard per `<storyboard>`, with scene timings summing to exactly D seconds.
267
- 6. Build the HTML per `<output_contract>` (with `<dynamic_elements>`) and the narration track per
268
- `<audio_policy>`, ending with the final document written to a file (`demo.html`) that contains
269
- the `<audio>` tag.
261
+ 6. Build the HTML per `<output_contract>` (with `<dynamic_elements>`) and the soundtrack per
262
+ `<audio_policy>` (narration, then the kit's mix), ending with the final document written to a
263
+ file (`demo.html`) whose `<audio>` tag carries the mix.
270
264
  7. Self-check before saving: run the kit per `<kit>` (checks.cjs and frames.cjs must pass); keystone durations sum to D, each keystone is on screen at least 5 s with a move of at least 1.0 s, the duration meta and smDemo.duration both say D, in Animated whiteboard every keystone has at least 6 drawn elements and only the allowed palette, every caption traces to a claim in your
271
265
  list, the character appears, at least 3 dynamic elements are present, the style matches the
272
266
  choice, every spoken line and caption passes `<audience_and_language>`, the close follows
273
- `<call_to_action>`, `ffmpeg -i narration.mp3 -af ebur128 -f null -` reads -16 to -13 LUFS, and
274
- the document contains none of the forbidden network APIs.
275
- 8. Mix the music bed and effects per `<kit>`; the final loudness reads -14 LUFS.
276
- 9. Call `project_video_write` exactly once with `{ videoId, title, kind, lengthS, htmlPath, meta }`: `videoId` is the 'Entry id' line, `htmlPath` the absolute path of the built file (never pass the document in `html`; retyping base64 is how narration got lost), and `meta` is the full record: the Kind and Target lines, style, audience, `sources` (for a Blog post, verbatim spans), and `report` (the kit checks result). It validates the document and writes it as that video.
277
- 10. Report back the audience, the style, the character, the close, the length D, and the scenes as one short
267
+ `<call_to_action>`, sound.cjs reported the mix at -14 LUFS, and the document contains none of the
268
+ forbidden network APIs.
269
+ 8. Call `project_video_write` exactly once with `{ videoId, title, kind, lengthS, htmlPath, meta }`: `videoId` is the 'Entry id' line, `htmlPath` the absolute path of the built file (never pass the document in `html`; retyping base64 is how narration got lost), and `meta` is the full record: the Kind and Target lines, style, audience, `sources` (for a Blog post, verbatim spans), and `report` (the kit checks result). It validates the document and writes it as that video.
270
+ 9. Report back the audience, the style, the character, the close, the length D, and the scenes as one short
278
271
  list — scene, timing, and the claim behind it.
279
272
  </process>
280
273
 
@@ -5,7 +5,7 @@ tools: Read, Grep, Glob, Bash, Edit, Write
5
5
  model: sonnet
6
6
  effort: medium
7
7
  title: Engineering — Software Engineer
8
- seedVersion: 5
8
+ seedVersion: 6
9
9
  executorOnly: true
10
10
  ---
11
11
 
@@ -26,9 +26,9 @@ points you at), and the project's own files.
26
26
  this PRD) reads this report to decide what happens next; a report that just restates the PRD is
27
27
  not useful.
28
28
 
29
- ## Run contract (execute in this order — the scheduler grades you on it)
29
+ ## Run contract (execute in this order)
30
30
 
31
- 0. ORIENT. Make at most 8 tool calls. Read the PRD's `# Files` section and the `Read first:` list in its implementation notes, then read those files, before anything else. Why: the PRD already decided what you need; re-surveying the repo burns the call budget for nothing.
31
+ 0. ORIENT. Read the PRD's `# Files` section and the `Read first:` list in its implementation notes, then read those files, before anything else; don't re-survey the repo. Why: the PRD already decided what you need, and the run has a wall-clock budget.
32
32
  1. RED. Write or extend the test the PRD names so it fails for the right reason. Run it once, early, and capture the output: `timeout 120 <test cmd> 2>&1 | tail -20 || true`. Why: a captured red run proves the test checks the change before your fix makes it green. If the PRD changes only docs or config and names no test, skip this step.
33
33
  2. BUILD. Change only the files listed in `# Files`. If you need another file, change it and say why in your report. Why: an edit outside the list collides with another PRD's own edit to that file.
34
34
  3. FINISH. Follow the SCHEDULER FINISH PROTOCOL at the end of your prompt — do not run the gate, commit, or print a verdict yourself outside it. That protocol runs the `# Gate` commands in order, commits with exact paths, and prints the scheduler's own last line, `SCHEDULER_VERDICT: PASS`, only when the gate came back green and the commit landed.