claude-code-session-manager 0.142.0 → 0.144.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/README.md +22 -107
- package/dist/assets/AppSettings-Z68gQiVE.js +2 -0
- package/dist/assets/{History-DpZuJXi1.js → History-C3E6y_7t.js} +2 -2
- package/dist/assets/HomeClaudeConfig-Yd1vXzBn.js +5 -0
- package/dist/assets/{Panel-BjdJjhqt.js → Panel-CnfWs46Z.js} +1 -1
- package/dist/assets/ProjectClaudeConfig-CP0Wsg-H.js +26 -0
- package/dist/assets/Scheduler-D8un7N3B.js +16 -0
- package/dist/assets/{SkillReferenceGraph-Cqyu4mef.js → SkillReferenceGraph-DRtZV1Al.js} +1 -1
- package/dist/assets/{Skills-vv0noNVI.js → Skills-Bg5O2Hyn.js} +23 -23
- package/dist/assets/{TiptapBody-CXi8Pvut.js → TiptapBody-BdzoBmqu.js} +27 -27
- package/dist/assets/{Toggle-CiYCWLjh.js → Toggle-Dt5K1OXt.js} +1 -1
- package/dist/assets/{VoiceButton-4NKKd1sC.js → VoiceButton-CTLyRgdF.js} +1 -1
- package/dist/assets/{historyTotals-DDunb8Ch.js → historyTotals-B2_KWBga.js} +1 -1
- package/dist/assets/{index-Cn5E9958.js → index-446b69rr.js} +715 -714
- package/dist/assets/{index-DVHIHoJf.css → index-BJ5TJvmz.css} +1 -1
- package/dist/index.html +2 -2
- package/dist-web/app.css +1 -1
- package/dist-web/app.js +438 -435
- package/package.json +6 -4
- package/plugins/session-manager-dev/.claude-plugin/plugin.json +1 -1
- package/plugins/session-manager-dev/skills/builder/SKILL.md +5 -0
- package/plugins/session-manager-dev/skills/develop/SKILL.md +23 -16
- package/plugins/session-manager-dev/skills/maintaining-md-network/SKILL.md +16 -2
- package/plugins/session-manager-dev/skills/maintaining-md-network/weekly-consolidation.md +87 -0
- package/scripts/README.md +1 -0
- package/scripts/scheduler-mcp-server.cjs +381 -6
- package/src/main/adminRouteRegistry.cjs +16 -0
- package/src/main/agentLibrary.cjs +60 -11
- package/src/main/agentsIpc.cjs +19 -0
- package/src/main/build-info.json +4 -4
- package/src/main/chatRunner.cjs +214 -7
- package/src/main/config.cjs +5 -1
- package/src/main/health.cjs +92 -14
- package/src/main/index.cjs +16 -4
- package/src/main/ipcSchemas.cjs +61 -1
- package/src/main/lib/claude/agentArmory.cjs +128 -0
- package/src/main/lib/claude/agentModelResolve.cjs +3 -2
- package/src/main/lib/claude/agentSnapshot.cjs +24 -3
- package/src/main/lib/claude/builtinTools.cjs +110 -0
- package/src/main/lib/claude/environmentProfiles.cjs +1 -1
- package/src/main/lib/claude/headlessMcpServers.cjs +138 -0
- package/src/main/lib/claude/jobSandboxPolicy.cjs +8 -2
- package/src/main/lib/claude/personaToolScope.cjs +77 -6
- package/src/main/lib/demo-video-kit/cast.md +10 -1
- package/src/main/lib/demo-video-kit/character.cjs +77 -21
- package/src/main/lib/demo-video-kit/kind-tiktok.md +5 -1
- package/src/main/lib/demo-video-kit/projectSounds.cjs +191 -0
- package/src/main/lib/demo-video-kit/seedKit.cjs +3 -3
- package/src/main/lib/demo-video-kit/sound.cjs +166 -9
- package/src/main/lib/demo-video-kit/standalone.cjs +231 -0
- package/src/main/lib/epic/activeIndexMerge.cjs +5 -0
- package/src/main/lib/epic/artifactRetention.cjs +55 -9
- package/src/main/lib/epic/artifactStore.cjs +78 -35
- package/src/main/lib/epic/delegationReadiness.cjs +10 -3
- package/src/main/lib/epic/epicDepsSync.cjs +66 -0
- package/src/main/lib/epic/epicEventLog.cjs +45 -1
- package/src/main/lib/epic/epicOutsideRead.cjs +38 -1
- package/src/main/lib/epic/epicSettle.cjs +48 -4
- package/src/main/lib/epic/epicSpawnPlan.cjs +3 -1
- package/src/main/lib/epic/epicStateEmitter.cjs +248 -0
- package/src/main/lib/epic/epicValidationHook.cjs +22 -3
- package/src/main/lib/epic/planReviewInput.cjs +123 -0
- package/src/main/lib/epic/restorableSessions.cjs +1 -0
- package/src/main/lib/epic/scriptStartedBy.cjs +71 -0
- package/src/main/lib/externalContract.cjs +24 -1
- package/src/main/lib/feedback-remote/autoStartedSession.cjs +1 -1
- package/src/main/lib/feedback-remote/createdProjects.cjs +291 -0
- package/src/main/lib/feedback-remote/crossProjectFeedback.cjs +24 -2
- package/src/main/lib/feedback-remote/crossProjectReply.cjs +96 -8
- package/src/main/lib/feedback-remote/macroAdminRoutes.cjs +54 -3
- package/src/main/lib/feedback-remote/pendingReplies.cjs +22 -0
- package/src/main/lib/feedback-remote/projectCreate.cjs +415 -0
- package/src/main/lib/feedback-remote/projectHomeAdminRoutes.cjs +94 -4
- package/src/main/lib/feedback-remote/replyClaims.cjs +168 -0
- package/src/main/lib/feedback-remote/serviceMcpSession.cjs +29 -1
- package/src/main/lib/feedback-remote/serviceMcpTools.cjs +43 -2
- package/src/main/lib/feedback-remote/servicePairLocalRoutes.cjs +91 -0
- package/src/main/lib/feedback-remote/servicePairings.cjs +47 -7
- package/src/main/lib/feedback-remote/serviceStdioBridge.cjs +99 -1
- package/src/main/lib/git/gitWorktree.cjs +8 -0
- package/src/main/lib/git/runtimeStateUntrack.cjs +15 -1
- package/src/main/lib/git/worktreeDeps.cjs +119 -10
- package/src/main/lib/mcpToolCatalog.cjs +144 -12
- package/src/main/lib/mcpToolsProbe.cjs +19 -2
- package/src/main/lib/opsOwnership.cjs +113 -28
- package/src/main/lib/packs/packCatalog.cjs +98 -5
- package/src/main/lib/persona-macro/agentPersonaSchema.cjs +6 -0
- package/src/main/lib/persona-macro/builtinMacros.cjs +6 -4
- package/src/main/lib/persona-macro/personaFrontmatterSchema.cjs +9 -0
- package/src/main/lib/persona-macro/personaLoadout.cjs +58 -0
- package/src/main/lib/persona-macro/personaMerge.cjs +11 -3
- package/src/main/lib/persona-macro/personaUpgrade.cjs +96 -0
- package/src/main/lib/persona-macro/projectVideoToolCheck.cjs +1 -1
- package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +140 -0
- package/src/main/lib/prd/prdCreate.cjs +395 -229
- package/src/main/lib/prd/prdCriteria.cjs +7 -4
- package/src/main/lib/prd/prdFrontmatter.cjs +5 -2
- package/src/main/lib/prd/prdMcpReachWarnings.cjs +44 -0
- package/src/main/lib/prd/prdSandboxWarnings.cjs +49 -0
- package/src/main/lib/process/peerChatSession.cjs +165 -0
- package/src/main/lib/project-pages/videoPressLines.cjs +145 -0
- package/src/main/lib/project-pages/videoScriptPress.cjs +266 -0
- package/src/main/lib/project-pages/videoScriptRunRoute.cjs +371 -0
- package/src/main/lib/project-pages/videoScriptSwitchIpc.cjs +49 -0
- package/src/main/lib/project-pages/videoScriptSwitchRoute.cjs +173 -0
- package/src/main/lib/promptSessionSchema.cjs +2 -0
- package/src/main/lib/scheduler/baselineGate.cjs +31 -2
- package/src/main/lib/scheduler/criteriaChecks.cjs +164 -20
- package/src/main/lib/scheduler/heldSchedulerTurns.cjs +238 -0
- package/src/main/lib/scheduler/jobMemoryStats.cjs +13 -2
- package/src/main/lib/scheduler/planRecordHarvest.cjs +215 -55
- package/src/main/lib/scheduler/planReleaseRoute.cjs +110 -0
- package/src/main/lib/scheduler/planReviewSchema.cjs +182 -0
- package/src/main/lib/scheduler/planReviewStats.cjs +63 -0
- package/src/main/lib/scheduler/planReviewStore.cjs +128 -0
- package/src/main/lib/scheduler/prdOutcomeRecord.cjs +60 -2
- package/src/main/lib/scheduler/queueStore.cjs +16 -0
- package/src/main/lib/scheduler/rcaReport.cjs +79 -15
- package/src/main/lib/scheduler/sandboxEnvironmentLimit.cjs +141 -0
- package/src/main/lib/scheduler/scheduleJobSchema.cjs +15 -0
- package/src/main/lib/scheduler/schedulerPaths.cjs +9 -0
- package/src/main/lib/scheduler/slotsRoute.cjs +101 -87
- package/src/main/lib/scheduler/upgradeDrain.cjs +32 -5
- package/src/main/lib/scheduler/usageHoldRoute.cjs +97 -0
- package/src/main/lib/scheduler/validatorVerdictSchema.cjs +28 -7
- package/src/main/lib/tasks/memoryConsolidation.cjs +123 -39
- package/src/main/lib/tasks/mitigationReview.cjs +21 -1
- package/src/main/lib/tasks/taskAdminRoutes.cjs +104 -17
- package/src/main/lib/tasks/taskLedger.cjs +2 -2
- package/src/main/lib/tasks/taskRun.cjs +3 -1
- package/src/main/lib/tasks/weeklyConsolidationInputs.cjs +178 -0
- package/src/main/lib/telemetry/auditEvents.cjs +21 -24
- package/src/main/lib/telemetry/auditLog.cjs +6 -2
- package/src/main/lib/util/atomicFs.cjs +2 -2
- package/src/main/projectPages.cjs +22 -14
- package/src/main/promptSessionEvents.cjs +16 -1
- package/src/main/pty.cjs +14 -2
- package/src/main/queueOps.cjs +1 -1
- package/src/main/runVerify.cjs +4 -3
- package/src/main/scheduler/planReviewHold.cjs +140 -0
- package/src/main/scheduler/prdParser.cjs +1 -0
- package/src/main/scheduler/reviewLadder.cjs +2 -0
- package/src/main/scheduler/utilizationHold.cjs +101 -6
- package/src/main/scheduler.cjs +1055 -107
- package/src/main/seedAgentPersonas.cjs +11 -6
- package/src/main/seedStatus.cjs +1 -1
- package/src/main/templates/PRD_AUTHORING.md +22 -2
- package/src/main/webRemote.cjs +47 -7
- package/src/preload/api.d.ts +118 -2
- package/src/preload/apiSurface.json +42 -0
- package/src/preload/index.cjs +11 -0
- package/src/seed/agents/architect.md +28 -43
- package/src/seed/agents/demo-video-builder.md +15 -8
- package/src/seed/agents/dev-lead.md +3 -1
- package/src/seed/agents/md-network-curator.md +27 -0
- package/src/seed/agents/plan-reviewer.md +47 -0
- package/src/seed/agents/validator.md +21 -19
- package/dist/assets/AppSettings-BcZgIvvY.js +0 -2
- package/dist/assets/HomeClaudeConfig-D32ZJtU-.js +0 -3
- package/dist/assets/ProjectClaudeConfig-BTClYV6i.js +0 -26
- package/dist/assets/Scheduler-DPobKx1Z.js +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-session-manager",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.144.0",
|
|
4
4
|
"description": "Free desktop app for Claude Code: run many sessions, each in its own git worktree; queue work that runs headless within your usage limits; agents drive it through an MCP server and skills.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main/index.cjs",
|
|
@@ -83,8 +83,10 @@
|
|
|
83
83
|
"lint:page-stewards": "node scripts/check-page-stewards.cjs",
|
|
84
84
|
"lint:e2e-budget": "node scripts/check-e2e-budget.cjs",
|
|
85
85
|
"lint:scroll": "node scripts/check-scroll-into-view.cjs",
|
|
86
|
+
"lint:persona-gear": "node scripts/lint-persona-gear.cjs",
|
|
87
|
+
"report:loadouts": "node scripts/report-persona-loadouts.cjs",
|
|
86
88
|
"check:frame": "node scripts/frame-integrity.mjs",
|
|
87
|
-
"lint": "npm run lint:selectors && npm run lint:hooks && npm run lint:docs && npm run lint:paths && npm run lint:status-writes && npm run lint:event-log && npm run lint:any && npm run lint:main-ts-check && npm run lint:filenames && npm run lint:renderer-storage && npm run lint:test-smells && npm run lint:page-stewards && npm run lint:e2e-budget && npm run lint:scroll && npm run lint:readme",
|
|
89
|
+
"lint": "npm run lint:selectors && npm run lint:hooks && npm run lint:docs && npm run lint:paths && npm run lint:status-writes && npm run lint:event-log && npm run lint:any && npm run lint:main-ts-check && npm run lint:filenames && npm run lint:renderer-storage && npm run lint:test-smells && npm run lint:page-stewards && npm run lint:e2e-budget && npm run lint:scroll && npm run lint:readme && npm run lint:persona-gear",
|
|
88
90
|
"sync:settings-schema": "node scripts/sync-settings-schema.cjs"
|
|
89
91
|
},
|
|
90
92
|
"keywords": [
|
|
@@ -112,7 +114,7 @@
|
|
|
112
114
|
],
|
|
113
115
|
"author": "bilkobibitkov",
|
|
114
116
|
"license": "MIT",
|
|
115
|
-
"homepage": "https://bilko.run/
|
|
117
|
+
"homepage": "https://bilko.run/products/session-manager",
|
|
116
118
|
"repository": {
|
|
117
119
|
"type": "git",
|
|
118
120
|
"url": "https://github.com/StanislavBG/claude-code-session-manager.git"
|
|
@@ -127,7 +129,7 @@
|
|
|
127
129
|
},
|
|
128
130
|
{
|
|
129
131
|
"type": "individual",
|
|
130
|
-
"url": "https://bilko.run/
|
|
132
|
+
"url": "https://bilko.run/products/session-manager"
|
|
131
133
|
}
|
|
132
134
|
],
|
|
133
135
|
"publishConfig": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "session-manager-dev",
|
|
3
3
|
"description": "The default end-to-end development skillset for the Claude Code Session Manager: decompose work into scheduler PRDs and track them to a validated finish (/develop), publish releases to npm (/builder), hand a finding to another project on this machine (/send-feedback), and review or drift-check a project's CLAUDE.md/markdown network (/maintaining-md-network). Together with the session-manager scheduler these form a develop → queue → validate → release loop.",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.5",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Bilko Bibitkov",
|
|
7
7
|
"email": "BilkoBibitkov2000@gmail.com",
|
|
@@ -125,6 +125,10 @@ have no `release.yml`) always use steps 5-11:
|
|
|
125
125
|
```
|
|
126
126
|
Report the installer assets found (here: `.dmg`, `.exe`, `.AppImage`) and any missing. If
|
|
127
127
|
no run is listed yet, say so instead of polling.
|
|
128
|
+
12. Post-publish steps. If the project's distribution doc (its conventions or release doc)
|
|
129
|
+
lists steps to run after the npm publish, run each one in order and record its result —
|
|
130
|
+
done, failed with its output, or skipped and why. A failed post-publish step never undoes the
|
|
131
|
+
npm publish; report it and carry on with the rest.
|
|
128
132
|
|
|
129
133
|
On any failing step: stop there and report the step and its output. Once the worktree exists,
|
|
130
134
|
leave it only when its state is evidence for the failure; otherwise remove it (step 9) so a
|
|
@@ -146,6 +150,7 @@ One plain-text report, whether the pipeline finished or stopped:
|
|
|
146
150
|
- **Registry**: packument `dist-tags` / version and tarball status.
|
|
147
151
|
- **Git**: both pushes confirmed, worktree removed.
|
|
148
152
|
- **Installer release**: assets found and missing, or "no release workflow".
|
|
153
|
+
- **Post-publish steps**: each listed step and its result, or "none listed".
|
|
149
154
|
- **Manual**: `manual.md`'s report, "no content change", or "no manual".
|
|
150
155
|
- **Stopped early?** Which step, why, its output, and anything a retry must account for
|
|
151
156
|
(a leftover worktree or local tag).
|
|
@@ -32,9 +32,9 @@ new work. **report** = your final message to the human.
|
|
|
32
32
|
human settles that code is wanted. An Epic with no tag (No mission) is treated like `discussion`.
|
|
33
33
|
If `developLoop` is `false`, do not author PRDs (the API refuses them): tell the human this
|
|
34
34
|
session was started without the develop loop and a new session with it on is needed to queue work. Stop.
|
|
35
|
-
3. **Never hand-implement in this session**, even when the plan is agreed.
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
3. **Never hand-implement a PRD's work in this session**, even when the plan is agreed. Work
|
|
36
|
+
small enough to do inline (the Actor persona's lane rule) never becomes a PRD. Why: this
|
|
37
|
+
session runs an expensive planner model; a cheaper executor runs each PRD headless.
|
|
38
38
|
4. **Never delegate PRD authoring.** You write scope, title, goal, criteria and notes. Calling
|
|
39
39
|
`scheduler_create_prd` with your own text is not delegation.
|
|
40
40
|
5. **Never restate the engineering rules.** They live in `standards.md` beside this file, with
|
|
@@ -110,11 +110,9 @@ three failure modes have different fixes:
|
|
|
110
110
|
(empty, max, concurrent, malformed, permission, failure); interaction effects (what depends
|
|
111
111
|
on your change); integration (reuse the existing schema, store, API, primitives);
|
|
112
112
|
validation (for UI: which screenshot, light and dark, proves which criterion).
|
|
113
|
-
4. **
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
The planner turn is hard-killed at 30 minutes with a warning at 24; late gaps become sibling
|
|
117
|
-
PRDs. Fold in real gaps, drop vague ones. Repeat at most once. It reviews; you author.
|
|
113
|
+
4. **Plans of 3+ PRDs, or any chain, are held for an independent plan review before dispatch**
|
|
114
|
+
(`held: plan-review`). `SM_PLAN_REVIEW=0` is off;
|
|
115
|
+
`SM_PLAN_REVIEW_HOLD_MINUTES` is the timeout.
|
|
118
116
|
5. **Tests and security go inside the feature's own PRD** as criteria (security when it
|
|
119
117
|
touches input, auth or data), never as follow-ups. Why: TDD needs the test with the code;
|
|
120
118
|
security is decided while writing it. Also check quality (performance, error handling).
|
|
@@ -126,8 +124,8 @@ three failure modes have different fixes:
|
|
|
126
124
|
`manual.json`. Why: a release never finds a gap it can only report.
|
|
127
125
|
6. **Pick a shape.** Most asks are an independent set. Chain 3–5 PRDs only for truly
|
|
128
126
|
sequential work: each link `dependsOn` the previous one; its notes name what that link
|
|
129
|
-
delivers and say to read the landed code first. Never chain past 5;
|
|
130
|
-
|
|
127
|
+
delivers and say to read the landed code first. Never chain past 5; re-split the plan.
|
|
128
|
+
Each goal's first sentence names its type, in chain order: `primitive` (new helper
|
|
131
129
|
and its test), `wire` (adopt it at named call sites), `behavior` (one function's logic and
|
|
132
130
|
its test), `migration` (mechanical change), `doc`, `validate`. A gap you leave out of the
|
|
133
131
|
first plan is queued in the same turn as a later wave that `dependsOn` the PRDs it builds
|
|
@@ -146,6 +144,10 @@ three failure modes have different fixes:
|
|
|
146
144
|
needs another PRD's output.
|
|
147
145
|
9. **Write plain, checkable criteria.** Each names a file, a symbol and the result; one names
|
|
148
146
|
the test file and tests. Commands go in `gate`. No open-ended "grep X and update" lines.
|
|
147
|
+
A check against a running local service is an `http` criterion `{ kind: 'http', spec: { url, status?, contains? } }` (loopback only), run by the scheduler outside the sandbox,
|
|
148
|
+
because a job's Bash cannot reach host loopback; the URL host is 127.0.0.1 or localhost, whichever the server listens on ([::1] only for an IPv6 listener), never the machine hostname, which criteria refuse.
|
|
149
|
+
Write a structural expectation (for example every item has a non-empty field) in the criterion statement; the validator judges it from the stored response body.
|
|
150
|
+
What http cannot express (auth, POST, UI) the architect checks at PLAN SETTLED from the Epic.
|
|
149
151
|
10. **Show the plan once**: the plan goal line, the stage view (for example `Stage 1: A ∥ B →
|
|
150
152
|
Stage 2: C → validate`), and a table (#, PRD, files, gate, dependsOn) — not PRD
|
|
151
153
|
drafts. Queue at once when the Epic is `feature`, `bug` or `art` and scope is clear; otherwise ask
|
|
@@ -161,7 +163,7 @@ three failure modes have different fixes:
|
|
|
161
163
|
change a PRD only to silence a warning. Then post one short message: each PRD's number and
|
|
162
164
|
slug, the validate slug, and that no per-PRD check will come from this session. Name a
|
|
163
165
|
warning only if you changed a PRD because of it.
|
|
164
|
-
13. **Never stop for review after queueing.** Why: the
|
|
166
|
+
13. **Never stop for review after queueing.** Why: the plan reviewer reviews before dispatch and the validator after.
|
|
165
167
|
|
|
166
168
|
### PRD fields
|
|
167
169
|
|
|
@@ -242,7 +244,7 @@ scheduler saves it as `session-manager-operations/plan-records/<epic-id>/<valida
|
|
|
242
244
|
`GET /admin/epic` serves it as `verdicts`. Queue the validate PRD in the same `scheduler_create_prds` call as the plan (its `dependsOn` may name that call's entries); with single creates it goes last: in a single `scheduler_create_prd`, `dependsOn` accepts only slugs that already exist. The
|
|
243
245
|
scheduler sends no per-PRD validation prompt. When the Epic has no pending or running PRD for
|
|
244
246
|
`SM_EPIC_SETTLE_SECONDS` (default 120), it queues one `validate-sweep-*` validator for completed
|
|
245
|
-
PRDs no validator checked (a large sweep becomes several sweeps in turn), then sends one PLAN SETTLED digest. Several validators in one Epic
|
|
247
|
+
PRDs no validator checked (a large sweep becomes several sweeps in turn), then sends one PLAN SETTLED digest. PRDs held on a precondition, and validators waiting only on them, do not hold back the digest, which lists them. Several validators in one Epic
|
|
246
248
|
are fine: each runs headless.
|
|
247
249
|
|
|
248
250
|
If the API rejects `agentType: "validator"`, the persona is not installed: keep the plan
|
|
@@ -295,7 +297,10 @@ Rules:
|
|
|
295
297
|
under Needs you (rule 6) with the validator's reason and what was tried. Why: a second miss on the same criterion means the plan is wrong, and another
|
|
296
298
|
wave would repeat it. A Not validated list means validate exactly those PRDs here. All
|
|
297
299
|
`VERIFIED` with nothing open means Done: write the final report.
|
|
298
|
-
3. **A
|
|
300
|
+
3. **A PLAN REVIEWED digest.** Apply amendments via `scheduler_update_prd`, give a one-line
|
|
301
|
+
reason per rejected finding, then release with one `scheduler_release_plan` call
|
|
302
|
+
(`rereview` only after a block, once).
|
|
303
|
+
4. **A `PRECONDITION HOLD` notice** is not a park and not a fix-wave trigger. Do nothing — no
|
|
299
304
|
reset, no edit, no fix PRD; the scheduler re-checks the preflight on its own. State the
|
|
300
305
|
missing precondition in the report. Why: only a person can supply it.
|
|
301
306
|
4. **Done** = the latest validator marked every PRD `VERIFIED`, including each PRD an earlier
|
|
@@ -310,9 +315,11 @@ Rules:
|
|
|
310
315
|
checkout's `session-manager-operations/plan-records/<epic-id>/`).
|
|
311
316
|
2. **Decided:** each choice you made instead of asking, with a one-line revert.
|
|
312
317
|
3. **Queued:** side plans and later waves still to run, by slug. They finish without the human.
|
|
313
|
-
4. **Scheduled:** what fires on its own later, and its trigger. A reply owed to another project after a release is
|
|
314
|
-
|
|
315
|
-
|
|
318
|
+
4. **Scheduled:** what fires on its own later, and its trigger. A reply owed to another project after a release is a
|
|
319
|
+
`feedback_reply` with `release.commits` (the work's commits) whose message writes `{version}`; never hand-type a version.
|
|
320
|
+
On an app newer than 0.142.0, send it at once with `deliverWhen.appVersionAbove` = `admin-api.json` `appVersion`:
|
|
321
|
+
it sends itself once a release whose tag contains the commits runs, even if this Epic is closed. On 0.142.0 or older,
|
|
322
|
+
queue a held release check PRD and send the reply live, with `release.commits`, at its PLAN SETTLED.
|
|
316
323
|
5. **Needs you:** only steps rule 6 allows, including a PRD refuted twice, one exact action each. Omit it when empty.
|
|
317
324
|
|
|
318
325
|
Expected API warnings and skipped optional steps are not reported.
|
|
@@ -7,7 +7,7 @@ description: >-
|
|
|
7
7
|
place, with nothing stale. Use when the user asks to review, audit, clean up,
|
|
8
8
|
restructure or drift-check a project's CLAUDE.md or docs, when the Review MD
|
|
9
9
|
network macro runs, or says "/maintaining-md-network". Takes a Scope and a
|
|
10
|
-
Mode (Full review or
|
|
10
|
+
Mode (Full review, Drift check or Weekly consolidation).
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# maintaining-md-network
|
|
@@ -17,7 +17,7 @@ description: >-
|
|
|
17
17
|
## Inputs
|
|
18
18
|
|
|
19
19
|
- **Scope:** a folder, or the whole project (default).
|
|
20
|
-
- **Mode:** Full review or
|
|
20
|
+
- **Mode:** Full review, Drift check or Weekly consolidation.
|
|
21
21
|
|
|
22
22
|
## Rule
|
|
23
23
|
|
|
@@ -40,6 +40,7 @@ Each is one level deep; none links another, except audit.md's census step, which
|
|
|
40
40
|
- [audit.md](audit.md): read for steps 1-4 (census, audiences, links, truth check), the time box and the subagent brief.
|
|
41
41
|
- [plan.md](plan.md): read for the report contents, verdicts, history and runtime state, the `/develop` order and cross-repo routing.
|
|
42
42
|
- [drift-check.md](drift-check.md): read for Drift check mode, running the script and the review record.
|
|
43
|
+
- [weekly-consolidation.md](weekly-consolidation.md): read for Weekly consolidation mode: inputs, change kinds, caps, the record and apply.
|
|
43
44
|
- [migrate-to-agents-md.md](migrate-to-agents-md.md): read when moving a project's CLAUDE.md text into AGENTS.md.
|
|
44
45
|
|
|
45
46
|
The script is `<skill base dir>/scripts/drift-check.cjs`.
|
|
@@ -70,3 +71,16 @@ Drift check
|
|
|
70
71
|
- [ ] Report findings; change no files until approved
|
|
71
72
|
- [ ] After approval, fix with /develop and write a new review record (drift-check.md)
|
|
72
73
|
```
|
|
74
|
+
|
|
75
|
+
## Weekly consolidation
|
|
76
|
+
|
|
77
|
+
Copy this checklist and tick it off:
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
Weekly consolidation
|
|
81
|
+
- [ ] Look for a pending weekly Task record; walk it if found (weekly-consolidation.md)
|
|
82
|
+
- [ ] Else gather memory, network, transcripts, Lessons blocks, steering file
|
|
83
|
+
- [ ] Subagents find patterns; keep those seen in 2+ sessions
|
|
84
|
+
- [ ] Write the record: verify, organize, enrich changes plus housekeeping
|
|
85
|
+
- [ ] Owner accepts or rejects each change; apply only accepted ones, commit the record
|
|
86
|
+
```
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Weekly consolidation
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- [Inputs](#inputs)
|
|
6
|
+
- [Read-only](#read-only)
|
|
7
|
+
- [Orchestrator and subagents](#orchestrator-and-subagents)
|
|
8
|
+
- [Change kinds](#change-kinds)
|
|
9
|
+
- [Keep learnings few](#keep-learnings-few)
|
|
10
|
+
- [Housekeeping](#housekeeping)
|
|
11
|
+
- [The record](#the-record)
|
|
12
|
+
- [Apply](#apply)
|
|
13
|
+
- [Steering file](#steering-file)
|
|
14
|
+
|
|
15
|
+
One out-of-band pass that curates the markdown network and the project's auto memory together, fed by the week's session transcripts. It proposes; the owner accepts one change at a time.
|
|
16
|
+
|
|
17
|
+
## Inputs
|
|
18
|
+
|
|
19
|
+
- The project's auto memory folder: `~/.claude/projects/<slug>/memory`.
|
|
20
|
+
- Its markdown network (the census in audit.md).
|
|
21
|
+
- Its own session transcripts since the previous consolidation: the project root's transcript folder plus the folders of its Epic and job worktrees. Never another project's.
|
|
22
|
+
- The Lessons blocks headless jobs handed over in that window.
|
|
23
|
+
- The optional steering file (see Steering file).
|
|
24
|
+
|
|
25
|
+
Read tool calls and tool errors, not only messages. A tool call that keeps failing is a main signal.
|
|
26
|
+
|
|
27
|
+
## Read-only
|
|
28
|
+
|
|
29
|
+
The pass changes nothing live. As the scheduled Task it has only read tools. When a human presses the macro, research and report first and change no file until accepted (SKILL.md's Rule). The memory law holds: upkeep proposes, never deletes. A removal is applied only after the owner's accept.
|
|
30
|
+
|
|
31
|
+
## Orchestrator and subagents
|
|
32
|
+
|
|
33
|
+
1. One subagent per transcript, or per small batch (about 5), returns candidate patterns. Each carries the session id(s) it was seen in.
|
|
34
|
+
2. The orchestrator keeps only patterns seen in at least 2 sessions. A pattern seen in fewer produces no change.
|
|
35
|
+
|
|
36
|
+
## Change kinds
|
|
37
|
+
|
|
38
|
+
Each kept pattern becomes ONE change of one kind:
|
|
39
|
+
|
|
40
|
+
- **verify:** a memory or doc line no longer true is fixed or removed.
|
|
41
|
+
- **organize:** duplicates are merged; a lasting fact moves from memory into the doc that owns it (placement.md).
|
|
42
|
+
- **enrich:** a missing lesson is added.
|
|
43
|
+
|
|
44
|
+
## Keep learnings few
|
|
45
|
+
|
|
46
|
+
- At most 5 enrich adds per run.
|
|
47
|
+
- Merges and removals are unlimited.
|
|
48
|
+
- Prefer pruning.
|
|
49
|
+
|
|
50
|
+
## Housekeeping
|
|
51
|
+
|
|
52
|
+
Always proposed, outside the cap:
|
|
53
|
+
|
|
54
|
+
- Older dated usage-reviewer statuses in memory are removed, so only the newest per report remains.
|
|
55
|
+
- Every memory file missing `originSessionId` or `modified` in its frontmatter metadata gets them filled. Take `originSessionId` from the transcript that wrote the file when known.
|
|
56
|
+
|
|
57
|
+
No write log, no hash, no hook.
|
|
58
|
+
|
|
59
|
+
## The record
|
|
60
|
+
|
|
61
|
+
Template:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
# Markdown network weekly consolidation <YYYY-MM-DD>
|
|
65
|
+
|
|
66
|
+
- Transcripts read: <count>, <first date> to <last date>
|
|
67
|
+
- Lessons blocks consumed: <job/PRD ids, or none>
|
|
68
|
+
- Totals: adds N, merges N, removals N
|
|
69
|
+
|
|
70
|
+
| Id | Kind | Target file | Change | Example sessions | Count |
|
|
71
|
+
| --- | --- | --- | --- | --- | --- |
|
|
72
|
+
| c1 | verify / organize / enrich | <path> | <the change> | <id>, <id> | <N, at least 2> |
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Every row names at least 2 session ids.
|
|
76
|
+
|
|
77
|
+
## Apply
|
|
78
|
+
|
|
79
|
+
1. The owner accepts or rejects each change. Only accepted changes are applied.
|
|
80
|
+
2. The architect applies them in the Epic the owner opened with the macro: memory edits inline; doc changes inline when small and provable, otherwise `/develop`.
|
|
81
|
+
3. Commit the record as session-manager-operations/reviews/docs/<YYYY-MM-DD>-md-network-weekly.md, following the record rules in drift-check.md.
|
|
82
|
+
|
|
83
|
+
When pressed with Mode 'Weekly consolidation', first look for the newest pending weekly Task (`task_list` with pipeline memory-consolidation, then `task_get` for its output) and walk its record. If none is pending, run the pass in the Epic.
|
|
84
|
+
|
|
85
|
+
## Steering file
|
|
86
|
+
|
|
87
|
+
Optional: session-manager-operations/md-network/steering.md. A human writes it and tracks it in git; it says what the owner thinks matters and does not. Read it as a plain file. No code reads it through `opsPath()`, so it needs no `opsOwnership.cjs` entry and no ops AGENTS.md owners row (it has no owning writer; the folder is human-authored). If code ever reads it through `opsPath()`, add the entry and the row then.
|
package/scripts/README.md
CHANGED
|
@@ -32,6 +32,7 @@ scripts/lib was moved into src/main/lib (2026-09); nothing under src/ may requir
|
|
|
32
32
|
| ops-sweep.cjs | manual; `node scripts/ops-sweep.cjs <cwd>` | yes |
|
|
33
33
|
| postinstall.cjs | npm `postinstall` | yes |
|
|
34
34
|
| purge-dry-run.cjs | manual / validators, read-only; `node scripts/purge-dry-run.cjs <cwd> <epicId>` prints `purgeEpic({ dryRun: true })` JSON (artifacts by kind + counts), deletes nothing; a real purge stays the epic:purge IPC | no |
|
|
35
|
+
| release-notes.cjs | `.github/workflows/release.yml` finalize-release job, and manual; `node scripts/release-notes.cjs --tag <ref> [--prev <tag>] [--max-chars <n>]` prints the GitHub release body (upgrade note from the tag tree, its relative links made github.com blob URLs at `<ref>` and its headings demoted two levels, + commit subjects since prev); `--max-chars` = positive integer body cap (default 120000), anything else exits 1 — convention in [release-notes/README.md](../release-notes/README.md) | no |
|
|
35
36
|
| refresh-vad-assets.mjs | `npm run refresh:vad-assets` | no |
|
|
36
37
|
| replay-verdicts.cjs | manual, dev-only, read-only | no |
|
|
37
38
|
| scheduler-mcp-server.cjs | registered as an MCP server (`seedSchedulerMcp.cjs`, `send-feedback` SKILL.md) | yes |
|