@caddis/cli 0.4.69 → 0.4.71
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/bundles/antigravity-plugin/plugin.json +1 -1
- package/bundles/antigravity-plugin/scripts/caddis_budget.py +0 -38
- package/bundles/antigravity-plugin/scripts/caddis_coordinate.py +1083 -0
- package/bundles/antigravity-plugin/scripts/caddis_roadmap_run.py +5 -6
- package/bundles/antigravity-plugin/scripts/caddis_rows.py +10 -451
- package/bundles/antigravity-plugin/scripts/caddis_tidy.py +6 -7
- package/bundles/antigravity-plugin/scripts/caddis_todo.py +35 -352
- package/bundles/antigravity-plugin/scripts/caddis_upstream_check.py +107 -0
- package/bundles/antigravity-plugin/scripts/schemas/coordinator.schema.json +95 -0
- package/bundles/antigravity-plugin/scripts/schemas/request.schema.json +39 -0
- package/bundles/antigravity-plugin/skills/_registry.md +1 -1
- package/bundles/antigravity-plugin/skills/brainstorming/SKILL.md +1 -1
- package/bundles/antigravity-plugin/skills/feature-plan/SKILL.md +64 -1
- package/bundles/antigravity-plugin/skills/flow-studio/README.md +1 -1
- package/bundles/antigravity-plugin/skills/handoff/SKILL.md +25 -39
- package/bundles/antigravity-plugin/skills/implement/SKILL.md +14 -0
- package/bundles/antigravity-plugin/skills/usage-review/SKILL.md +9 -0
- package/bundles/antigravity-plugin/skills/writing-plans/SKILL.md +15 -375
- package/bundles/antigravity-plugin/warm_start_agy.py +3 -40
- package/bundles/codex/.codex/skills/docs/writing-plans/SKILL.md +15 -375
- package/bundles/codex/.codex/skills/frontend/flow-studio/README.md +1 -1
- package/bundles/codex/.codex/skills/workflow/brainstorming/SKILL.md +1 -1
- package/bundles/manifest.json +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "caddis hub owner request (one line of requests.jsonl)",
|
|
4
|
+
"description": "Appended by the hub, applied by caddis_coordinate.py intake. Readers accept v N and N-1. pr may be null only for approve/decline, and then args.what is required (ruling R2).",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["v", "id", "created_at", "expires_at", "repo", "pr", "head_sha", "action", "args"],
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"properties": {
|
|
9
|
+
"v": {"type": "integer", "enum": [0, 1]},
|
|
10
|
+
"id": {"type": "string", "minLength": 1},
|
|
11
|
+
"created_at": {"$ref": "#/$defs/utc"},
|
|
12
|
+
"expires_at": {"$ref": "#/$defs/utc"},
|
|
13
|
+
"repo": {"type": "string", "minLength": 1},
|
|
14
|
+
"pr": {"type": ["integer", "null"], "minimum": 1},
|
|
15
|
+
"head_sha": {"type": ["string", "null"], "description": "40 hex characters when pr is set; compared case-insensitively"},
|
|
16
|
+
"action": {"enum": ["hotfix", "unhotfix", "hold", "release", "approve", "decline"]},
|
|
17
|
+
"args": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {"what": {"type": "string", "minLength": 1}}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"allOf": [
|
|
23
|
+
{
|
|
24
|
+
"if": {"properties": {"pr": {"type": "null"}}, "required": ["pr"]},
|
|
25
|
+
"then": {
|
|
26
|
+
"properties": {
|
|
27
|
+
"action": {"enum": ["approve", "decline"]},
|
|
28
|
+
"args": {"required": ["what"]}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"else": {
|
|
32
|
+
"properties": {"head_sha": {"type": "string", "pattern": "^[0-9a-fA-F]{40}$"}}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"$defs": {
|
|
37
|
+
"utc": {"type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
| Office Documents Official | `office-documents-official/` | Hint for Office and PDF file work. Use when the user asks to create, edit, read or convert a Word .docx, PDF, PowerPoint .pptx or Excel .xlsx file. caddis does not ship these skills; points to Anthropic's official document-skills plugin. |
|
|
59
59
|
| Tech Explainer | `tech-explainer/` | >- |
|
|
60
60
|
| Technical Writing | `technical-writing/` | Documentation best practices for READMEs, API docs, architecture docs, runbooks and developer guides. Use when writing or reviewing docs or setting documentation standards. |
|
|
61
|
-
| Writing Plans | `writing-plans/` | Use when you have a spec or requirements for a multi-step task, before touching code |
|
|
61
|
+
| Writing Plans | `writing-plans/` | Use when you have a spec or requirements for a multi-step task, before touching code. In caddis, plans are written with /caddis:feature-plan, the only plan writer; this skill sends you there. |
|
|
62
62
|
|
|
63
63
|
### Frontend
|
|
64
64
|
|
|
@@ -45,7 +45,7 @@ Start by understanding the current project context, then ask questions one at a
|
|
|
45
45
|
**Implementation (if continuing):**
|
|
46
46
|
- Ask: "Ready to set up for implementation?"
|
|
47
47
|
- Use the `using-git-worktrees` skill (caddis, devops/) to create an isolated workspace
|
|
48
|
-
- Use `/caddis:feature-plan`
|
|
48
|
+
- Use `/caddis:feature-plan` to write the plan (it is the only plan writer in caddis)
|
|
49
49
|
|
|
50
50
|
## Key Principles
|
|
51
51
|
|
|
@@ -12,6 +12,9 @@ If `$ARGUMENTS` is empty, ask what to plan and stop.
|
|
|
12
12
|
The plan file is the **durable spine of the harness** — it must let any future session (or another
|
|
13
13
|
agent, on any tool) resume with zero re-discovery. Optimize for that.
|
|
14
14
|
|
|
15
|
+
This command is the only plan writer in caddis. The task-level shape, Global Constraints, Review Focus and
|
|
16
|
+
the self-review checklist are adapted from obra/superpowers `writing-plans` 7.0.0 (MIT); see NOTICE.md.
|
|
17
|
+
|
|
15
18
|
## Headless mode
|
|
16
19
|
When the invocation contains the marker **`HEADLESS RUN RULES`**, **or `CADDIS_HEADLESS` is set in
|
|
17
20
|
the environment** (the caddis OSS launchers export it on claude's `-p`/`--print`) — a non-interactive
|
|
@@ -186,6 +189,29 @@ internal repo path into stakeholder-facing copy, and set a `live` status flag th
|
|
|
186
189
|
framework's own "Soon" badge). `tsc` clean, 632/632 tests green, cross-review CLEAN, exit gate
|
|
187
190
|
satisfied. A headless run following it literally would have committed both, entirely green.
|
|
188
191
|
|
|
192
|
+
### Choose how each phase's tasks run (`Execution:`)
|
|
193
|
+
Write one `Execution:` line per phase, next to its `Lane:` and model lines. A fixed rule picks it:
|
|
194
|
+
- **`Execution: per-task`** when the phase has 3 or more tasks that consume each other's interfaces,
|
|
195
|
+
OR when a mistake would be costly: security, data loss, money, merges or deploys, concurrency.
|
|
196
|
+
- Otherwise `Execution: inline`.
|
|
197
|
+
|
|
198
|
+
`inline` means today's behaviour: one implementer does the whole phase. `per-task` means the executor
|
|
199
|
+
gives each task a fresh implementer (on the phase's model tier and lane) and a short task review (spec
|
|
200
|
+
compliance, then quality) before the next task starts. The task review does not replace the phase's review by another vendor:
|
|
201
|
+
`review-tier` and `/caddis:cross-review` still run once per phase.
|
|
202
|
+
|
|
203
|
+
A `per-task` phase is split into tasks. Each task must have:
|
|
204
|
+
- **`Files:`** — every file to create, modify and test, with exact paths.
|
|
205
|
+
- **`Interfaces:`** — `Consumes:` (what it uses from earlier tasks) and `Produces:` (what later tasks
|
|
206
|
+
use): exact names, parameters and return types. An implementer sees only its own task; this block is
|
|
207
|
+
how it learns the names that its neighbours use.
|
|
208
|
+
- **Steps** — write the failing test (its name, its assertions and the exact values from the spec); run
|
|
209
|
+
it, expected FAIL; implement the named signature; run it, expected PASS; commit with named files.
|
|
210
|
+
|
|
211
|
+
A task is the smallest unit that has its own test cycle and is worth its own review. Put setup, config
|
|
212
|
+
and docs steps in the task whose deliverable needs them. An `inline` phase may keep the lighter shape of
|
|
213
|
+
the phase template.
|
|
214
|
+
|
|
189
215
|
### Group phases into MILESTONES — only when the plan is big enough
|
|
190
216
|
**Add milestones when the plan has ~8+ phases OR spans multiple sessions.** Below that, phases and a
|
|
191
217
|
Tracker are enough; a three-phase feature gains nothing from ceremony.
|
|
@@ -240,6 +266,16 @@ Creating Model: <model-id>
|
|
|
240
266
|
## Constraints & decisions
|
|
241
267
|
- <key tech decision + rationale>
|
|
242
268
|
|
|
269
|
+
## Global Constraints
|
|
270
|
+
<The project-wide requirements: version floors, dependency limits, naming and copy rules, platform needs.
|
|
271
|
+
One line each, with the exact values copied from the spec or PRD. Every phase's requirements include
|
|
272
|
+
this section.>
|
|
273
|
+
|
|
274
|
+
## Review Focus
|
|
275
|
+
<Up to five inputs or failure modes that the spec implies but no task test exercises, most likely first.
|
|
276
|
+
One line each: the input or condition, and the behaviour a user expects. Each line gets a test, added
|
|
277
|
+
to the phase or task that owns the code. Write "none found" only after you checked.>
|
|
278
|
+
|
|
243
279
|
## Phases
|
|
244
280
|
|
|
245
281
|
### Phase 1 — <name> ⏳
|
|
@@ -249,6 +285,7 @@ Creating Model: <model-id>
|
|
|
249
285
|
**Model:** <tier> (`/model <alias>`) — <one-line rationale tied to this phase's difficulty>
|
|
250
286
|
**Lane:** claude — this session | glm-headless — `claude-glm -p "/caddis:implement <this plan's path> — Phase 1 only"`
|
|
251
287
|
**Type:** backend | hard | ui | tests | docs *(required when the Lane runs through caddis_lanes.py)*
|
|
288
|
+
**Execution:** inline | per-task *(the rule in Step 2; per-task phases list their tasks below)*
|
|
252
289
|
**Session:** continue | **fresh** (start a new session for this phase — note why: lane change / heavy context)
|
|
253
290
|
**Risk:** high — token-verification seam; a wrong answer here is a silent auth bypass *(omit this line when normal)*
|
|
254
291
|
**Goal:** <one sentence>
|
|
@@ -264,6 +301,18 @@ Creating Model: <model-id>
|
|
|
264
301
|
**Then:** update the Tracker row (status + hash). If this phase ends the session, WRITE the handoff
|
|
265
302
|
yourself (relay + Tracker) before stopping — do not hand back "run `/caddis:handoff`" as the next action.
|
|
266
303
|
|
|
304
|
+
#### Task 1.1 — <name> *(per-task phases only)*
|
|
305
|
+
**Files:** create `<path>` · modify `<path>` · test `<test path>`
|
|
306
|
+
**Interfaces:**
|
|
307
|
+
- Consumes: `<name>(<params>) -> <return type>` from Task <N.M>, or "none"
|
|
308
|
+
- Produces: `<name>(<params>) -> <return type>`
|
|
309
|
+
**Steps:**
|
|
310
|
+
1. Write the failing test `<test path>::<case>`: assert `<call>` == `<exact value from the spec>`.
|
|
311
|
+
2. Run `<literal test command>`: expected FAIL (<the reason, not an import error>).
|
|
312
|
+
3. Implement `<name>(<params>) -> <return type>` in `<path>`.
|
|
313
|
+
4. Run `<literal test command>`: expected PASS.
|
|
314
|
+
5. Commit: `git add <named files>` then `git commit -m "<message>" -- <named files>`.
|
|
315
|
+
|
|
267
316
|
### Phase 2 — <name> 🔲
|
|
268
317
|
<same structure>
|
|
269
318
|
|
|
@@ -278,6 +327,8 @@ Three rules: one attempt, one review.
|
|
|
278
327
|
|
|
279
328
|
- One phase at a time: read this plan → run the phase on its **Lane** → RED→GREEN→VERIFY→CROSS-REVIEW→
|
|
280
329
|
COMMIT → update the **Tracker** row. The Tracker is the resume signal for every future session.
|
|
330
|
+
An `Execution: per-task` phase runs task by task: a fresh implementer per task, and a task review
|
|
331
|
+
before the next task. The cross-review still runs once for the phase.
|
|
281
332
|
- **Session boundaries:** the executor WRITES the handoff (durable `relay.md` + Tracker) after any
|
|
282
333
|
phase that ends a sitting — it performs the work, it does not suggest the command. Start a FRESH
|
|
283
334
|
session (or `/clear`) before any phase marked `Session: fresh`, before a lane change, or whenever
|
|
@@ -360,6 +411,8 @@ done:
|
|
|
360
411
|
spawning another one forever; the `Phase N only` suffix is what stops the child running to the end
|
|
361
412
|
of the plan. The command is executed verbatim by a model with no slack to notice a missing flag,
|
|
362
413
|
and `/caddis:implement` now refuses a command without `-p` rather than running it.
|
|
414
|
+
- **Execution named** — every phase has an `Execution:` line set by the rule in Step 2, and every task
|
|
415
|
+
of a `per-task` phase has `Files:`, `Interfaces:` and its five steps.
|
|
363
416
|
- **caddis_lanes command carries --phase** — a `caddis_lanes.py` launch command must name `--phase N`
|
|
364
417
|
and `--type`; lane-check refuses one without `--phase`.
|
|
365
418
|
- **Gate-detectable** — if this phase's instruction were WRONG, its exit gate would go red. A phase
|
|
@@ -369,6 +422,16 @@ done:
|
|
|
369
422
|
|
|
370
423
|
If any phase relies on the implementer *reasoning out* a gap, close the gap in the plan now.
|
|
371
424
|
|
|
425
|
+
**Self-review (run it yourself after you write the plan, then fix what it finds in place):**
|
|
426
|
+
- **Spec coverage** — each requirement in the spec or PRD maps to a phase or task. Add a task for a gap.
|
|
427
|
+
- **Step scan** — no step that decides nothing ("TBD", "handle edge cases", "add validation", a name
|
|
428
|
+
that no task defines). No full function body that the signature and the tests already determine.
|
|
429
|
+
- **Name consistency** — a name, signature or field in a later task matches the one an earlier task's
|
|
430
|
+
`Produces:` defines.
|
|
431
|
+
- **Review Focus coverage** — each Review Focus line has its test in the task that owns the code.
|
|
432
|
+
- **Proportion** — a plan several times longer than its spec is a transcript of the code. Replace the
|
|
433
|
+
bodies with signatures, test names and assertions.
|
|
434
|
+
|
|
372
435
|
A `risk: high` phase gets two independent review runs: run by the roadmap/plan runner automatically (from caddis-next Phase 11), and by hand in an interactive `/caddis:implement` run (`caddis_review.py --plan <plan> --phase <n> --runs 2`, from Phase 10). Only a `blocking` finding fails that review (exit 1); `should-fix` and `nit` findings go on a follow-up list and do not stop the merge. A phase gets 3 completed review rounds (a run that did not complete uses none); the 4th ends with exit 5, "stop, the owner decides". The advisory hub is retired; do not plan a separate validation session.
|
|
373
436
|
|
|
374
437
|
## Programme triggers
|
|
@@ -381,7 +444,7 @@ Small work that does not meet a trigger skips its block.
|
|
|
381
444
|
|
|
382
445
|
## Step 4 — Report
|
|
383
446
|
Output the plan path (`.caddis/plans/<feature-slug>.md`), the phase list (one line each, with each
|
|
384
|
-
phase's model tier + lane), confirm the local-coder gate passed (or list the phases that need
|
|
447
|
+
phase's model tier + lane + execution), confirm the local-coder gate passed (or list the phases that need
|
|
385
448
|
tightening), and: *"To start: `read the plan and implement Phase 1`. To resume later: `/handoff` at
|
|
386
449
|
session end, then `read relay.md` next time. The plan's Execution protocol carries every command —
|
|
387
450
|
nothing to memorize."*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The `flow-studio` skill: a model file (JSON) describes a flow, lifecycle or journey, and one
|
|
4
4
|
engine draws it as a self-contained HTML page with pan and zoom, lanes, linked nodes, a slide-in
|
|
5
5
|
inspector, scenario playback, metric overlays, live update, motion that carries state, and numbered implementation notes. The design is in
|
|
6
|
-
`.caddis/plans/flow-studio-skill-design.md`; the S4 stage status is in `.caddis/plans/flow-studio-s4-status.md`.
|
|
6
|
+
`.caddis/plans/done/flow-studio-skill-design.md`; the S4 stage status is in `.caddis/plans/flow-studio-s4-status.md`.
|
|
7
7
|
`SKILL.md` is the current playbook.
|
|
8
8
|
|
|
9
9
|
## Use it
|
|
@@ -36,7 +36,6 @@ them into its commit, so check first, before Step 1.
|
|
|
36
36
|
- Step 3, point 4: make the plan's Tracker edit in `<worktree>/.caddis/plans/<feature>.md`, and write
|
|
37
37
|
any new parking-lot item under `<worktree>/.caddis/parking-lot/`, not in this checkout.
|
|
38
38
|
- Step 4: skip `caddis_tidy.py --apply` (report `skipped: shared checkout`).
|
|
39
|
-
- Step 6: retired; nothing to skip (row 8 reports `skipped: retired (see the 3-store model)`).
|
|
40
39
|
- Step 6b: skip `session_state.py prune` (report `skipped: shared checkout`).
|
|
41
40
|
- Step 6c: run `--reindex` in the worktree (it edits the tracked `DOC-MAP.md`).
|
|
42
41
|
- Step 6d: runs as written. It never writes a file in this checkout; it only removes worktrees and
|
|
@@ -53,27 +52,22 @@ them into its commit, so check first, before Step 1.
|
|
|
53
52
|
|
|
54
53
|
## Checklist
|
|
55
54
|
The handoff is a fixed checklist. Every row ends as `done`, `skipped: <reason>` or `failed: <error>`, and
|
|
56
|
-
Step 8 prints all
|
|
57
|
-
Rows 3 and 8 are retired (the 3-store model, 21 Oct 2026): they stay in the list so the row numbers do not
|
|
58
|
-
move for a fleet that mixes caddis versions, and each always reports
|
|
59
|
-
`skipped: retired (see the 3-store model)`. A later release removes them with their scripts.
|
|
55
|
+
Step 8 prints all 12 in this order. Never drop a row from the report, even when its step did not apply.
|
|
60
56
|
|
|
61
57
|
| # | Row | What it is | Shared checkout (Step 0) |
|
|
62
58
|
|---|---|---|---|
|
|
63
59
|
| 1 | `knowledge-transfer` | Step 1 | edits only in the Step 0 worktree |
|
|
64
60
|
| 2 | `plan-tracker` | the plan's Tracker row (Rules) | edit in the Step 0 worktree |
|
|
65
|
-
| 3 | `
|
|
66
|
-
| 4 | `
|
|
67
|
-
| 5 | `
|
|
68
|
-
| 6 | `
|
|
69
|
-
| 7 | `
|
|
70
|
-
| 8 | `
|
|
71
|
-
| 9 | `
|
|
72
|
-
| 10 | `
|
|
73
|
-
| 11 | `
|
|
74
|
-
| 12 | `
|
|
75
|
-
| 13 | `handover-check` | Step 5 | runs |
|
|
76
|
-
| 14 | `own-cleanup` | Step 6d: `caddis_created.py cleanup --apply` removes this session's merged, clean worktrees and scratch folders; lists the rest with a reason | runs (only this session's recorded worktrees and scratch) |
|
|
61
|
+
| 3 | `relay` | Step 3: the relay, written from scratch with current state only | the relay is local; runs |
|
|
62
|
+
| 4 | `tasks-file` | Step 3c | runs |
|
|
63
|
+
| 5 | `kb-index` | Step 6c: refresh the KB index | in the Step 0 worktree |
|
|
64
|
+
| 6 | `violations-report` | Step 6c: report standing violations, each with a one-line fix command | runs (report only) |
|
|
65
|
+
| 7 | `usage-record` | Step 6b: `session_state.py usage` | runs |
|
|
66
|
+
| 8 | `tidy-apply` | Step 4: `caddis_tidy.py --apply` | `skipped: shared checkout` |
|
|
67
|
+
| 9 | `state-prune` | Step 6b: `session_state.py prune` | `skipped: shared checkout` |
|
|
68
|
+
| 10 | `prune-list` | Step 6b: `caddis_tidy.py --prune --temp`, list only | runs (lists, never applies) |
|
|
69
|
+
| 11 | `handover-check` | Step 5 | runs |
|
|
70
|
+
| 12 | `own-cleanup` | Step 6d: `caddis_created.py cleanup --apply` removes this session's merged, clean worktrees and scratch folders; lists the rest with a reason | runs (only this session's recorded worktrees and scratch) |
|
|
77
71
|
|
|
78
72
|
`tidy-apply` and `state-prune` run only on `SHARED: no`. Handoff never runs
|
|
79
73
|
`caddis_tidy.py --prune --apply` on its own, in any checkout (nor `--prune --temp --apply`); only the user can ask for it (Step 6b). In a
|
|
@@ -172,7 +166,6 @@ history, and the relay has a 4,000-character budget (`caddis_budget.py`).
|
|
|
172
166
|
> checkout (Step 0) write it in the Step 0 worktree.
|
|
173
167
|
> - **The order of work:** the plan Tracker and the roadmap (below). Set the Tracker row of each phase this
|
|
174
168
|
> session finished (Rules).
|
|
175
|
-
> Row 3 (`open-work-row`) is retired: report it exactly as `skipped: retired (see the 3-store model)`.
|
|
176
169
|
> The `.caddis/open-work.md` and `.caddis/todo-list/` stores are retired. Never write them. A repo that
|
|
177
170
|
> still holds an old file keeps it as its own document; caddis no longer reads or writes it.
|
|
178
171
|
> **Order of work:** when the repo has a roadmap (`caddis_roadmap.py list` prints a slug), the
|
|
@@ -294,11 +287,6 @@ incoming session looking for a prompt that was never written. Fix what it lists,
|
|
|
294
287
|
It also notes any generated artefact committed before its generator last changed. That is advisory,
|
|
295
288
|
not blocking — but do not quote a report the note names without rebuilding it first.
|
|
296
289
|
|
|
297
|
-
## Step 6 — retired (task reconcile)
|
|
298
|
-
This step is retired. It used to reconcile the `todo-list/` store, which is retired too (the 3-store model),
|
|
299
|
-
so the step does nothing: do not run any script for it. Report row 8 (`todo-reconcile`) as
|
|
300
|
-
`skipped: retired (see the 3-store model)`. The script stays in place for older installs only.
|
|
301
|
-
|
|
302
290
|
## Step 6b — record usage and tidy session state
|
|
303
291
|
The Stop hook only writes the session-state file. These two used to run on every turn; they run
|
|
304
292
|
here, once:
|
|
@@ -309,7 +297,7 @@ python "${CLAUDE_PLUGIN_ROOT}/scripts/session_state.py" prune
|
|
|
309
297
|
`usage` finds this session's transcript by its id and appends one token-and-skill record to
|
|
310
298
|
`.caddis/usage-log.jsonl`, which `/usage-review` reads. Pass `--transcript <path>` if you know the
|
|
311
299
|
path and it is not under the Claude config folder. `prune` keeps the newest 8 files in
|
|
312
|
-
`.caddis/session-state/`; run it after Step
|
|
300
|
+
`.caddis/session-state/`; run it after Step 3c, which reads this session's file. Skip `prune` in a
|
|
313
301
|
shared checkout (Step 0). Include the
|
|
314
302
|
`[USAGE]` line in your output. Both always exit 0; if the script is missing, skip this step.
|
|
315
303
|
|
|
@@ -328,12 +316,12 @@ yourself**; deleting is the user's choice. If they ask, run `--prune --temp --ap
|
|
|
328
316
|
Both scripts fall back to `claude-harness/scripts/check_doc_coverage.py` and `scripts/caddis_tidy.py` in a
|
|
329
317
|
source checkout; a script that is missing is `skipped: <script> not installed`.
|
|
330
318
|
|
|
331
|
-
Checklist row
|
|
319
|
+
Checklist row 5, `kb-index` (in a shared checkout, run it in the Step 0 worktree, before the Step 0
|
|
332
320
|
`finish`; it edits `DOC-MAP.md`):
|
|
333
321
|
```
|
|
334
322
|
python "${CLAUDE_PLUGIN_ROOT}/scripts/check_doc_coverage.py" --reindex
|
|
335
323
|
```
|
|
336
|
-
Checklist row
|
|
324
|
+
Checklist row 6, `violations-report` (all three only report; never fix files here):
|
|
337
325
|
```
|
|
338
326
|
python "${CLAUDE_PLUGIN_ROOT}/scripts/caddis_tidy.py" --check
|
|
339
327
|
python "${CLAUDE_PLUGIN_ROOT}/scripts/check_doc_coverage.py"
|
|
@@ -353,7 +341,7 @@ python "${CLAUDE_PLUGIN_ROOT}/scripts/caddis_roadmap.py" render --all
|
|
|
353
341
|
```
|
|
354
342
|
|
|
355
343
|
## Step 6d — remove this session's own worktrees and scratch folders
|
|
356
|
-
Checklist row
|
|
344
|
+
Checklist row 12, `own-cleanup`. It runs in every checkout, a shared one too, after the Step 0 `finish`
|
|
357
345
|
(falls back to `scripts/caddis_created.py` in a source checkout; if the script is missing, or exits 2 because
|
|
358
346
|
it has no `cleanup`, the row is `skipped: not installed`):
|
|
359
347
|
```
|
|
@@ -392,18 +380,16 @@ Print this block, every row filled with `done`, `skipped: <reason>` or `failed:
|
|
|
392
380
|
=== HANDOFF CHECKLIST ===
|
|
393
381
|
1 knowledge-transfer done | skipped: <reason> | failed: <error>
|
|
394
382
|
2 plan-tracker <same three forms>
|
|
395
|
-
3
|
|
396
|
-
4
|
|
397
|
-
5
|
|
398
|
-
6
|
|
399
|
-
7
|
|
400
|
-
8
|
|
401
|
-
9
|
|
402
|
-
10
|
|
403
|
-
11
|
|
404
|
-
12
|
|
405
|
-
13 handover-check <same three forms>
|
|
406
|
-
14 own-cleanup <same three forms>
|
|
383
|
+
3 relay <same three forms>
|
|
384
|
+
4 tasks-file <same three forms>
|
|
385
|
+
5 kb-index <same three forms>
|
|
386
|
+
6 violations-report <same three forms>
|
|
387
|
+
7 usage-record <same three forms>
|
|
388
|
+
8 tidy-apply <same three forms>
|
|
389
|
+
9 state-prune <same three forms>
|
|
390
|
+
10 prune-list <same three forms>
|
|
391
|
+
11 handover-check <same three forms>
|
|
392
|
+
12 own-cleanup <same three forms>
|
|
407
393
|
Shared checkout: yes|no <reason>
|
|
408
394
|
```
|
|
409
395
|
|
|
@@ -236,6 +236,17 @@ report — do not redo completed work.
|
|
|
236
236
|
every phase after the first, which is the original bug wearing a different hat. For a
|
|
237
237
|
`caddis_lanes.py` launch command, follow "Multi-lane phases" above instead of spawning the command
|
|
238
238
|
blind.
|
|
239
|
+
- **EXECUTION** — read the phase's `Execution:` line. A missing line means `inline` (older plans
|
|
240
|
+
have none). `inline`: run the steps below for the whole phase, as before. `Execution: per-task`:
|
|
241
|
+
run the phase's tasks in order. Give each task a fresh implementer: a subagent on the phase's
|
|
242
|
+
lane and model, with a brief that holds the task's `Files:`, `Interfaces:` and steps, the plan's
|
|
243
|
+
Global Constraints and the test-economy lines (Multi-lane item 7b). If you cannot dispatch a
|
|
244
|
+
subagent, implement the task yourself and note that in the review file. After each task, run a
|
|
245
|
+
short task review before the next task: first spec compliance (the task's files, names and tests
|
|
246
|
+
match the plan), then quality (the author self-check). Fix blocking findings, then go on. Record
|
|
247
|
+
each task (name, commit, review result) under `## Task progress` in the review file. Then run the
|
|
248
|
+
phase's normal gates: VERIFY, the `review-tier` review by another vendor, COMMIT and the Tracker.
|
|
249
|
+
The task reviews never replace that review.
|
|
239
250
|
- **RED** — write the failing test(s) the phase names (`<test file>::<case>`). Run them; confirm they
|
|
240
251
|
fail for the right reason (the missing behavior, not an import error). If a phase genuinely has no
|
|
241
252
|
testable surface, say so in the review file and implement the minimal change directly.
|
|
@@ -348,6 +359,9 @@ branch: <current branch>
|
|
|
348
359
|
## Assumptions made
|
|
349
360
|
- <any gap the plan left that you decided — or "none">
|
|
350
361
|
|
|
362
|
+
## Task progress *(only for `Execution: per-task` phases)*
|
|
363
|
+
- <phase N task N.M — commit <hash> — task review: clean | fixed <finding>>
|
|
364
|
+
|
|
351
365
|
## Not done / follow-ups
|
|
352
366
|
- <phases skipped/blocked and why — or "none; all phases complete">
|
|
353
367
|
|
|
@@ -33,6 +33,15 @@ impactful finding** — the one most likely to reduce rate-limit consumption or
|
|
|
33
33
|
|
|
34
34
|
Do NOT paraphrase every finding in prose — the report is already the output.
|
|
35
35
|
|
|
36
|
+
## Step 2b — check the borrowed upstream skills
|
|
37
|
+
|
|
38
|
+
Run `python "<scripts folder>/caddis_upstream_check.py"` from the project root (same folder as
|
|
39
|
+
`usage_review.py`). It compares the upstream skills that caddis borrowed ideas from with the copies
|
|
40
|
+
installed on this machine. Show every `DRIFT` line in the report under **Upstream drift**. A `DRIFT`
|
|
41
|
+
line means: review the upstream diff, port what fits, then update `.github/upstream-sources.json`.
|
|
42
|
+
Say nothing for `UP-TO-DATE`, `NOT-INSTALLED` or `NO-SOURCES` (no record: not the caddis source repo).
|
|
43
|
+
The check never fails the review.
|
|
44
|
+
|
|
36
45
|
## Step 3 — offer to apply
|
|
37
46
|
|
|
38
47
|
For each finding marked **[apply]** in the report, ask the user whether to apply it.
|