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.
- package/.claude-plugin/marketplace.json +1 -1
- package/dist/assets/{AgentLibrary-DRlcF1YD.js → AgentLibrary-BBY7E1ag.js} +1 -1
- package/dist/assets/{AppSettings-CBhYHKGI.js → AppSettings-vMiIi0xn.js} +1 -1
- package/dist/assets/{Button-DtBUGvGI.js → Button-C0Z090Ui.js} +1 -1
- package/dist/assets/{DocumentEditorPane-C82c7Qtl.js → DocumentEditorPane-Ds10W8SZ.js} +1 -1
- package/dist/assets/{Extensions-Kn-oUD2_.js → Extensions-CjPiz2I5.js} +2 -2
- package/dist/assets/{History-B4c3Uz9u.js → History-Bm3KXXs1.js} +1 -1
- package/dist/assets/{Library-1RpLT-aH.js → Library-D-khizDg.js} +1 -1
- package/dist/assets/{ListDetail-xr0oxNkv.js → ListDetail-CJYpp8fW.js} +1 -1
- package/dist/assets/{Panel-O8XPrpJu.js → Panel-BHFGylfy.js} +1 -1
- package/dist/assets/{ProjectClaudeConfig-DBGhhzg2.js → ProjectClaudeConfig-DIzNAala.js} +1 -1
- package/dist/assets/{ProvenanceBadge-DSaizfZL.js → ProvenanceBadge-CYryeTYF.js} +1 -1
- package/dist/assets/{Scheduler-D2_5NyiR.js → Scheduler-BS82wfRP.js} +1 -1
- package/dist/assets/{Settings-Clgqb3Lq.js → Settings-DWPHJ94d.js} +1 -1
- package/dist/assets/{SkillReferenceGraph-D80RA7kR.js → SkillReferenceGraph-Cf2M7YNq.js} +1 -1
- package/dist/assets/{Skills-DNG7tHSf.js → Skills-DLq55Odf.js} +1 -1
- package/dist/assets/{SourceChip-D-Imzszd.js → SourceChip-CHxAzRlD.js} +1 -1
- package/dist/assets/{SystemPrompt-CGlOpUQA.js → SystemPrompt-BYtKMAr3.js} +1 -1
- package/dist/assets/{TiptapBody-CJFGfBdz.js → TiptapBody-O_Gfq0Ha.js} +1 -1
- package/dist/assets/{Toggle-0Ff0bPa_.js → Toggle-BJOUI5NY.js} +1 -1
- package/dist/assets/{ViewTabs-BCMYQwo_.js → ViewTabs-kkvNGu-S.js} +1 -1
- package/dist/assets/{VoiceButton-JzyC6DAB.js → VoiceButton-3i-6ju2L.js} +1 -1
- package/dist/assets/{historyTotals-B01WPBwh.js → historyTotals-CHrIptK1.js} +1 -1
- package/dist/assets/{index-rt7pTODX.js → index-D9qgN9_V.js} +3 -3
- package/dist/index.html +1 -1
- package/dist-web/app.js +1 -1
- package/package.json +1 -1
- package/plugins/CLAUDE.md +7 -8
- package/plugins/session-manager-dev/.claude-plugin/plugin.json +1 -1
- package/plugins/session-manager-dev/skills/builder/SKILL.md +113 -91
- package/plugins/session-manager-dev/skills/builder/manual.md +80 -0
- package/plugins/session-manager-dev/skills/develop/SKILL.md +29 -56
- package/plugins/session-manager-dev/skills/develop/standards.md +11 -19
- package/plugins/session-manager-dev/skills/send-feedback/SKILL.md +13 -18
- package/src/main/build-info.json +4 -4
- package/src/main/lib/CLAUDE.md +2 -0
- package/src/main/lib/epic/epicTranscriptPath.cjs +5 -4
- package/src/main/lib/epic/restorableSessions.cjs +16 -8
- package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +23 -0
- package/src/seed/agents/demo-video-builder.md +25 -32
- package/src/seed/agents/dev-lead.md +3 -3
- package/plugins/session-manager-dev/skills/builder/0-diff/SKILL.md +0 -44
- package/plugins/session-manager-dev/skills/builder/1-classify-and-bump/SKILL.md +0 -37
- package/plugins/session-manager-dev/skills/builder/2-gate/SKILL.md +0 -37
- package/plugins/session-manager-dev/skills/builder/3-publish/SKILL.md +0 -137
- package/plugins/session-manager-dev/skills/builder/4-manual/SKILL.md +0 -124
- 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
|
|
5
|
-
self-contained PRDs (an independent set, or a 3-5 PRD chain), queue them for the
|
|
6
|
-
session-manager scheduler
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
46
|
-
`systematic-debugging` skills
|
|
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
|
|
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
|
-
- **(
|
|
75
|
-
- **(
|
|
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
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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`
|
|
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
|
-
-
|
|
17
|
-
|
|
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
|
-
-
|
|
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
|
|
29
|
-
-
|
|
30
|
-
-
|
|
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:
|
|
41
|
-
workflow. Headless PRD runs can't load it — the three rules above are the
|
|
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.
|
|
81
|
-
- **Never `git stash`, `git reset`, `git checkout -- <path>`, or `git clean` against working-tree state you did not create.**
|
|
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
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
47
|
-
|
|
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.
|
|
202
|
-
|
|
203
|
-
|
|
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.
|
package/src/main/build-info.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.135.
|
|
3
|
-
"gitSha": "
|
|
4
|
-
"gitShortSha": "
|
|
2
|
+
"version": "0.135.1",
|
|
3
|
+
"gitSha": "00ccf511470488cd658d6eaa51a4a8f27128146b",
|
|
4
|
+
"gitShortSha": "00ccf511",
|
|
5
5
|
"gitBranch": "HEAD",
|
|
6
|
-
"builtAt": "2026-11-
|
|
6
|
+
"builtAt": "2026-11-15T16:36:13.769Z",
|
|
7
7
|
"dirty": false
|
|
8
8
|
}
|
package/src/main/lib/CLAUDE.md
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
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
|
-
|
|
49
|
-
return
|
|
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
|
|
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}
|
|
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>}
|
|
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
|
|
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
|
-
*
|
|
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
|
|
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:
|
|
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
|
|
46
|
-
|
|
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
|
|
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)
|
|
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
|
|
72
|
-
|
|
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
|
-
|
|
155
|
-
|
|
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
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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
|
|
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
|
|
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
|
|
268
|
-
`<audio_policy
|
|
269
|
-
|
|
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>`,
|
|
274
|
-
|
|
275
|
-
8.
|
|
276
|
-
9.
|
|
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:
|
|
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
|
|
29
|
+
## Run contract (execute in this order)
|
|
30
30
|
|
|
31
|
-
0. ORIENT.
|
|
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.
|