teamsmith 0.0.0-stage → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +158 -2
- package/bin/team.mjs +59 -0
- package/install.sh +94 -0
- package/package.json +37 -4
- package/skills/teamsmith/CHANGELOG.md +763 -0
- package/skills/teamsmith/SKILL.md +312 -0
- package/skills/teamsmith/extension/team-bg.ts +435 -0
- package/skills/teamsmith/extension/team-inbox-watch.ts +1412 -0
- package/skills/teamsmith/extension/team-notify.ts +663 -0
- package/skills/teamsmith/references/agent-adapters.md +643 -0
- package/skills/teamsmith/references/config.md +477 -0
- package/skills/teamsmith/references/meeting.md +124 -0
- package/skills/teamsmith/references/memory.md +133 -0
- package/skills/teamsmith/references/migration.md +227 -0
- package/skills/teamsmith/references/openspec.md +222 -0
- package/skills/teamsmith/references/philosophy.md +95 -0
- package/skills/teamsmith/references/protocol.md +712 -0
- package/skills/teamsmith/references/troubleshooting.md +1384 -0
- package/skills/teamsmith/references/workflows.md +448 -0
- package/skills/teamsmith/scripts/lib/cmd-agents.sh +1709 -0
- package/skills/teamsmith/scripts/lib/cmd-bg.sh +284 -0
- package/skills/teamsmith/scripts/lib/cmd-bootstrap.sh +311 -0
- package/skills/teamsmith/scripts/lib/cmd-config.sh +1156 -0
- package/skills/teamsmith/scripts/lib/cmd-death.sh +562 -0
- package/skills/teamsmith/scripts/lib/cmd-docs.sh +149 -0
- package/skills/teamsmith/scripts/lib/cmd-draft.sh +124 -0
- package/skills/teamsmith/scripts/lib/cmd-init.sh +212 -0
- package/skills/teamsmith/scripts/lib/cmd-meeting.sh +904 -0
- package/skills/teamsmith/scripts/lib/cmd-outbox.sh +196 -0
- package/skills/teamsmith/scripts/lib/cmd-project.sh +642 -0
- package/skills/teamsmith/scripts/lib/cmd-review.sh +1393 -0
- package/skills/teamsmith/scripts/lib/cmd-status.sh +1399 -0
- package/skills/teamsmith/scripts/lib/cmd-update.sh +191 -0
- package/skills/teamsmith/scripts/lib/cmd-watch.sh +1681 -0
- package/skills/teamsmith/scripts/lib/common.sh +4964 -0
- package/skills/teamsmith/scripts/lib/draft-entry.sh +51 -0
- package/skills/teamsmith/scripts/lib/outbox.sh +2042 -0
- package/skills/teamsmith/scripts/lib/tmux-argv.sh +165 -0
- package/skills/teamsmith/scripts/monitor.mjs +616 -0
- package/skills/teamsmith/scripts/panel/README.md +192 -0
- package/skills/teamsmith/scripts/panel/build.sh +47 -0
- package/skills/teamsmith/scripts/panel/bun.lock +109 -0
- package/skills/teamsmith/scripts/panel/draft-send.sh +68 -0
- package/skills/teamsmith/scripts/panel/package.json +24 -0
- package/skills/teamsmith/scripts/panel/panel.js +388 -0
- package/skills/teamsmith/scripts/panel/src/App.tsx +2150 -0
- package/skills/teamsmith/scripts/panel/src/clipboard.ts +154 -0
- package/skills/teamsmith/scripts/panel/src/compose.ts +691 -0
- package/skills/teamsmith/scripts/panel/src/data.ts +555 -0
- package/skills/teamsmith/scripts/panel/src/format.ts +50 -0
- package/skills/teamsmith/scripts/panel/src/layout.ts +2562 -0
- package/skills/teamsmith/scripts/panel/src/main.tsx +894 -0
- package/skills/teamsmith/scripts/panel/src/markdown.ts +340 -0
- package/skills/teamsmith/scripts/panel/src/sanitize.ts +42 -0
- package/skills/teamsmith/scripts/panel/src/settings.ts +154 -0
- package/skills/teamsmith/scripts/panel/src/strings/en.ts +416 -0
- package/skills/teamsmith/scripts/panel/src/strings/index.ts +65 -0
- package/skills/teamsmith/scripts/panel/src/strings/types.ts +9 -0
- package/skills/teamsmith/scripts/panel/src/strings/zh.ts +414 -0
- package/skills/teamsmith/scripts/panel/src/theme.ts +116 -0
- package/skills/teamsmith/scripts/panel/src/types.ts +652 -0
- package/skills/teamsmith/scripts/panel/src/width.ts +105 -0
- package/skills/teamsmith/scripts/panel/tsconfig.json +16 -0
- package/skills/teamsmith/scripts/shim/signal-gate +156 -0
- package/skills/teamsmith/scripts/shim/tmux +403 -0
- package/skills/teamsmith/scripts/team +143 -0
- package/skills/teamsmith/templates/AGENTS.section.md.tmpl +147 -0
- package/skills/teamsmith/templates/BOARD.md.tmpl +18 -0
- package/skills/teamsmith/templates/DECISIONS.md.tmpl +22 -0
- package/skills/teamsmith/templates/OWNERSHIP.md.tmpl +25 -0
- package/skills/teamsmith/templates/PROTOCOL.md.tmpl +84 -0
- package/skills/teamsmith/templates/ROADMAP.md.tmpl +29 -0
- package/skills/teamsmith/templates/config.sh.tmpl +106 -0
- package/skills/teamsmith/templates/memory-seed.md.tmpl +46 -0
- package/skills/teamsmith/templates/pm-prompt.md.tmpl +110 -0
- package/skills/teamsmith/templates/report.md.tmpl +36 -0
- package/skills/teamsmith/templates/task.md.tmpl +65 -0
- package/skills/teamsmith/templates/threads-README.md +17 -0
- package/skills/teamsmith/tests/bg-ledger-harness.mjs +682 -0
- package/skills/teamsmith/tests/bg-ledger.sh +307 -0
- package/skills/teamsmith/tests/checkout-shape-probe.sh +800 -0
- package/skills/teamsmith/tests/config-cli.sh +1562 -0
- package/skills/teamsmith/tests/container-tmux.sh +493 -0
- package/skills/teamsmith/tests/coverage-inventory.sh +173 -0
- package/skills/teamsmith/tests/death-cause.sh +564 -0
- package/skills/teamsmith/tests/delivery-truth.sh +1231 -0
- package/skills/teamsmith/tests/fake-tui.py +450 -0
- package/skills/teamsmith/tests/fixtures/delivery-truth-real/README.md +60 -0
- package/skills/teamsmith/tests/fixtures/delivery-truth-real/judge-second.py +139 -0
- package/skills/teamsmith/tests/fixtures/delivery-truth-real/mock-server.py +29 -0
- package/skills/teamsmith/tests/fixtures/delivery-truth-real/observe.ts +20 -0
- package/skills/teamsmith/tests/fixtures/delivery-truth-real/run-case.sh +79 -0
- package/skills/teamsmith/tests/fixtures/delivery-truth-real/scenario.sh +175 -0
- package/skills/teamsmith/tests/fixtures/p55/flip-p49.sh +229 -0
- package/skills/teamsmith/tests/fixtures/p71-incident/README.md +22 -0
- package/skills/teamsmith/tests/fixtures/p71-incident/dev2.seen +8 -0
- package/skills/teamsmith/tests/fixtures/p71-incident/dev2.wake +9 -0
- package/skills/teamsmith/tests/fixtures/p71-incident/pm-nudges.wake +3 -0
- package/skills/teamsmith/tests/fixtures/signal-lint-cases.txt +40 -0
- package/skills/teamsmith/tests/flip-glue.sh +162 -0
- package/skills/teamsmith/tests/flip-m12-26c.sh +129 -0
- package/skills/teamsmith/tests/flip-m12.sh +185 -0
- package/skills/teamsmith/tests/flip-m16.sh +166 -0
- package/skills/teamsmith/tests/flip-m17.sh +204 -0
- package/skills/teamsmith/tests/flip-m33.sh +284 -0
- package/skills/teamsmith/tests/flip-m34.sh +96 -0
- package/skills/teamsmith/tests/flip-m37.sh +185 -0
- package/skills/teamsmith/tests/flip-m4.3.sh +375 -0
- package/skills/teamsmith/tests/flip-m43.sh +128 -0
- package/skills/teamsmith/tests/flip-m44.sh +262 -0
- package/skills/teamsmith/tests/flip-m45.sh +244 -0
- package/skills/teamsmith/tests/flip-m46.sh +238 -0
- package/skills/teamsmith/tests/flip-m48.sh +304 -0
- package/skills/teamsmith/tests/flip-m6.2.sh +205 -0
- package/skills/teamsmith/tests/flip-m6.3.sh +283 -0
- package/skills/teamsmith/tests/flip-m6.4.sh +267 -0
- package/skills/teamsmith/tests/flip-m6.5.sh +113 -0
- package/skills/teamsmith/tests/flip-m7.1.sh +135 -0
- package/skills/teamsmith/tests/flip-m7.2.sh +321 -0
- package/skills/teamsmith/tests/flip-p144.sh +112 -0
- package/skills/teamsmith/tests/flip-p156.sh +133 -0
- package/skills/teamsmith/tests/flip-p158.sh +301 -0
- package/skills/teamsmith/tests/flip-p160.sh +182 -0
- package/skills/teamsmith/tests/flip-p171.sh +249 -0
- package/skills/teamsmith/tests/flip-p18.1.sh +95 -0
- package/skills/teamsmith/tests/flip-p20.sh +286 -0
- package/skills/teamsmith/tests/flip-p201.sh +249 -0
- package/skills/teamsmith/tests/flip-p210.sh +239 -0
- package/skills/teamsmith/tests/flip-p211.sh +152 -0
- package/skills/teamsmith/tests/flip-p217.sh +288 -0
- package/skills/teamsmith/tests/flip-p22.sh +123 -0
- package/skills/teamsmith/tests/flip-p23.sh +239 -0
- package/skills/teamsmith/tests/flip-p25.sh +165 -0
- package/skills/teamsmith/tests/flip-p71.sh +184 -0
- package/skills/teamsmith/tests/flip-p72.sh +202 -0
- package/skills/teamsmith/tests/frames/README.md +176 -0
- package/skills/teamsmith/tests/frames/p78-conversation-rule-below-box.txt +6 -0
- package/skills/teamsmith/tests/frames/p78-cursor-mid-draft.txt +6 -0
- package/skills/teamsmith/tests/frames/p78-draft-rule-below-cursor-line.txt +6 -0
- package/skills/teamsmith/tests/frames/p78-draft-rule-below-cursor.txt +6 -0
- package/skills/teamsmith/tests/frames/p78-draft-rule-blank-region.txt +6 -0
- package/skills/teamsmith/tests/frames/p78-draft-rule-only.txt +5 -0
- package/skills/teamsmith/tests/frames/p78-spinner-row-below-cursor.txt +6 -0
- package/skills/teamsmith/tests/frames/p78-wider-rule-below-cursor.txt +6 -0
- package/skills/teamsmith/tests/frames/p86-f1-mixed-width-disjoint-box.txt +8 -0
- package/skills/teamsmith/tests/frames/p86-f1-narrower-width-disjoint-box.txt +8 -0
- package/skills/teamsmith/tests/frames/p86-f1-spinner-top-disjoint-box.txt +8 -0
- package/skills/teamsmith/tests/frames/pi-0.85.1-update-banner.txt +30 -0
- package/skills/teamsmith/tests/frames/pi-0.87.0-draft-half-sentence.txt +30 -0
- package/skills/teamsmith/tests/frames/pi-0.87.0-empty-box.txt +30 -0
- package/skills/teamsmith/tests/frames/pi-0.87.0-one-line-draft.txt +30 -0
- package/skills/teamsmith/tests/frames/pi-0.87.0-project-trust-prompt.txt +30 -0
- package/skills/teamsmith/tests/frames/pi-0.99.2-empty-editor.txt +32 -0
- package/skills/teamsmith/tests/frames/pi-0.99.2-human-draft.txt +32 -0
- package/skills/teamsmith/tests/frames/pi-1.0.0-git-error-in-box.txt +32 -0
- package/skills/teamsmith/tests/gate-guard.sh +112 -0
- package/skills/teamsmith/tests/guard-matrix.sh +233 -0
- package/skills/teamsmith/tests/install-shape.sh +731 -0
- package/skills/teamsmith/tests/ledger-ban.sh +612 -0
- package/skills/teamsmith/tests/lib/box-judge.sh +68 -0
- package/skills/teamsmith/tests/lib/checkout-shape.sh +129 -0
- package/skills/teamsmith/tests/lib/loop-scan.awk +114 -0
- package/skills/teamsmith/tests/lib/pty-wait.sh +676 -0
- package/skills/teamsmith/tests/lib/section-guard.sh +855 -0
- package/skills/teamsmith/tests/lib/shell-lex.pl +261 -0
- package/skills/teamsmith/tests/lib/tmp-root.sh +528 -0
- package/skills/teamsmith/tests/lib/tmux-cap.sh +35 -0
- package/skills/teamsmith/tests/lib/tmux-iso-call-probe.sh +81 -0
- package/skills/teamsmith/tests/lib/tmux-iso-probe.sh +46 -0
- package/skills/teamsmith/tests/lib/tmux-iso.sh +381 -0
- package/skills/teamsmith/tests/load-experiment.sh +290 -0
- package/skills/teamsmith/tests/loop-inventory.tsv +84 -0
- package/skills/teamsmith/tests/panel-b2-slow-stub.sh +19 -0
- package/skills/teamsmith/tests/panel-b2.sh +1183 -0
- package/skills/teamsmith/tests/panel-b3-pty-mouse.py +240 -0
- package/skills/teamsmith/tests/panel-b3-pty-tmux-mouse.py +138 -0
- package/skills/teamsmith/tests/panel-b3-stub.sh +279 -0
- package/skills/teamsmith/tests/panel-b3.sh +1301 -0
- package/skills/teamsmith/tests/panel-choices.sh +572 -0
- package/skills/teamsmith/tests/panel-clipboard-model.ts +187 -0
- package/skills/teamsmith/tests/panel-compose-model.ts +290 -0
- package/skills/teamsmith/tests/panel-contrast.mjs +81 -0
- package/skills/teamsmith/tests/panel-cpu-premise.sh +173 -0
- package/skills/teamsmith/tests/panel-cpu.sh +391 -0
- package/skills/teamsmith/tests/panel-flip-m54.sh +207 -0
- package/skills/teamsmith/tests/panel-flip-p123.sh +278 -0
- package/skills/teamsmith/tests/panel-flip-p125.sh +318 -0
- package/skills/teamsmith/tests/panel-flip-p128.sh +259 -0
- package/skills/teamsmith/tests/panel-keyprobe-pty.py +99 -0
- package/skills/teamsmith/tests/panel-keyprobe-stub.sh +41 -0
- package/skills/teamsmith/tests/panel-keyprobe.sh +82 -0
- package/skills/teamsmith/tests/panel-keyprobe.tsx +116 -0
- package/skills/teamsmith/tests/panel-knobs.sh +83 -0
- package/skills/teamsmith/tests/panel-p21.sh +2181 -0
- package/skills/teamsmith/tests/panel-snapshots.sh +802 -0
- package/skills/teamsmith/tests/panel-strings.mjs +195 -0
- package/skills/teamsmith/tests/perf.sh +740 -0
- package/skills/teamsmith/tests/pm-box-real.sh +350 -0
- package/skills/teamsmith/tests/pulse-nudge-key.sh +563 -0
- package/skills/teamsmith/tests/routes.sh +1652 -0
- package/skills/teamsmith/tests/section-budgets.tsv +150 -0
- package/skills/teamsmith/tests/section-guard.sh +231 -0
- package/skills/teamsmith/tests/section-needs-audit.sh +94 -0
- package/skills/teamsmith/tests/section-paths.tsv +142 -0
- package/skills/teamsmith/tests/section-select.sh +655 -0
- package/skills/teamsmith/tests/signal-gate.sh +366 -0
- package/skills/teamsmith/tests/signal-lint-legacy.txt +14 -0
- package/skills/teamsmith/tests/signal-lint.pl +416 -0
- package/skills/teamsmith/tests/skill-load.mjs +65 -0
- package/skills/teamsmith/tests/smoke.sh +19711 -0
- package/skills/teamsmith/tests/snapshots/zh-dark-120-detail.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-dark-120-p4.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-dark-120.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-dark-160-p4.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-dark-160.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-dark-59-detail.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-dark-59-p4.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-dark-59.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-dark-99-p4.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-dark-99.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-light-120-detail.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-light-120-p4.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-light-120.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-light-160-p4.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-light-160.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-light-59-detail.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-light-59-p4.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-light-59.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-light-99-p4.txt +32 -0
- package/skills/teamsmith/tests/snapshots/zh-light-99.txt +32 -0
- package/skills/teamsmith/tests/spec-ledger-refs.tsv +78 -0
- package/skills/teamsmith/tests/spec-refs.sh +826 -0
- package/skills/teamsmith/tests/task-header-model.sh +267 -0
- package/skills/teamsmith/tests/team-bg-flip.sh +239 -0
- package/skills/teamsmith/tests/team-bg-harness.mjs +392 -0
- package/skills/teamsmith/tests/team-bg-stop.sh +434 -0
- package/skills/teamsmith/tests/team-inbox-watch-flip.sh +191 -0
- package/skills/teamsmith/tests/team-inbox-watch-harness.mjs +1559 -0
- package/skills/teamsmith/tests/tmp-hygiene.sh +1190 -0
- package/skills/teamsmith/tests/tmux-lint-legacy.txt +31 -0
- package/skills/teamsmith/tests/tmux-lint.pl +604 -0
- package/skills/teamsmith-init/SKILL.md +100 -0
- package/skills/teamsmith-init/references/bootstrap.md +74 -0
- package/skills/teamsmith-init/templates/bootstrap-prompt.md.tmpl +46 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# PM memory: what to remember, what to write down
|
|
2
|
+
|
|
3
|
+
> This document is about the **PM's own memory**: what belongs in it, what must go to disk instead, and what
|
|
4
|
+
> survives compaction, restarts and `/reload`. magic-context is a **required dependency** since D10 — the skill's
|
|
5
|
+
> files never hold memory, so without the extension the PM's memory layer is simply empty
|
|
6
|
+
> (`team doctor` fails; `TEAM_REQUIRE_MAGIC_CONTEXT=0` downgrades that to a warning for odd environments).
|
|
7
|
+
|
|
8
|
+
## 1. Why the PM is the role that needs memory
|
|
9
|
+
|
|
10
|
+
The PM is the only role that spans tasks, restarts and time: a worker agent is one short session with one brief,
|
|
11
|
+
while the PM holds the roadmap, the decision history and the constraints that were learned the hard way. When the
|
|
12
|
+
the pulse raises the PM again — or a human opens a new session — someone has to know *why* the interface looks like
|
|
13
|
+
this, which option was already rejected, and which trap cost a day last time.
|
|
14
|
+
|
|
15
|
+
Memory is what stops three failure modes we have actually hit:
|
|
16
|
+
|
|
17
|
+
- **decisions get re-litigated**: the same question is answered twice, and answered differently;
|
|
18
|
+
- **constraints silently disappear**: "gates need a hard timeout", "never move the worktree" — nobody contradicts
|
|
19
|
+
them, they are simply not there any more;
|
|
20
|
+
- **the context says X, the disk says Y**: a skill copy that the PM loaded days ago still lives inside a compacted
|
|
21
|
+
context and describes behaviour that was replaced since; the PM reasons from the stale copy while the repository
|
|
22
|
+
says something else. Disk wins — see [philosophy.md](philosophy.md) #6 and §4 below.
|
|
23
|
+
|
|
24
|
+
## 2. The three layers, and who trusts each one
|
|
25
|
+
|
|
26
|
+
| Layer | What it is | Who trusts it |
|
|
27
|
+
|---|---|---|
|
|
28
|
+
| **Session memory** | magic-context (`ctx_search`, `ctx_expand`, `ctx_memory`, `ctx_note`, memory ids) — recall across compaction and restarts for *this* session | the PM, as a shortcut |
|
|
29
|
+
| **Disk evidence** | `reports/`, `reviews/`, `BOARD.md`, `threads/`, `DECISIONS.md`, `ROADMAP.md`, the commits | the next PM, any human, any other tool |
|
|
30
|
+
| **Skill version state** | `team mark-loaded` / `team version --check` / `/reload` — memory *about the tool itself* | the PM, before trusting its own recollection of the skill |
|
|
31
|
+
|
|
32
|
+
The rule that ties them together: **conclusions and evidence land on disk; "I remember" is never evidence**
|
|
33
|
+
([philosophy.md](philosophy.md) #1 independently verifiable, #6 handover-ready). Project memory is the PM's
|
|
34
|
+
fast path back into a project, not a second copy of the record. If the two ever disagree, the disk is right.
|
|
35
|
+
|
|
36
|
+
## 3. What belongs in project memory
|
|
37
|
+
|
|
38
|
+
One **standalone fact per entry** — it has to make sense without this session's context, because that is exactly
|
|
39
|
+
who reads it later. Three families are worth the effort:
|
|
40
|
+
|
|
41
|
+
- **Project facts**: session/window names, roster, gates command, protected branch, worktree paths, branch mode.
|
|
42
|
+
Each one is verifiable, and each one saves a fresh session a round of `team paths` / `git worktree list`.
|
|
43
|
+
- **Working rules**: the part of the creed that applies to this project — reports are claims, status is a promise,
|
|
44
|
+
repeated problems must become mechanisms, skips must be declared. These are cross-project, so they are copied
|
|
45
|
+
from the creed rather than invented per project.
|
|
46
|
+
- **Project-specific traps**: "the e2e gate needs a build first", "this test is flaky ~5%, re-run once before
|
|
47
|
+
judging", "gates must carry `timeout`". Each of these cost real time once and will cost it again.
|
|
48
|
+
|
|
49
|
+
`templates/memory-seed.md.tmpl` is the starting set — it lists the project facts and the working rules with
|
|
50
|
+
placeholder values, so the first session can copy it into memory entry by entry.
|
|
51
|
+
|
|
52
|
+
**What does not belong:**
|
|
53
|
+
|
|
54
|
+
| Not in memory | Where it goes instead |
|
|
55
|
+
|---|---|
|
|
56
|
+
| current task state ("T3.2 is in review") | `BOARD.md` — it changes hourly and memory cannot be kept in sync |
|
|
57
|
+
| secrets, tokens, anything from a credential file | nowhere: token files stay on disk, injected for a command only (see [protocol.md](protocol.md) §7) |
|
|
58
|
+
| long logs, diffs, gate output | the report/review file, or the git history |
|
|
59
|
+
| anything that is evidence | the file that holds it — memory must not become the only copy |
|
|
60
|
+
| anything that will be stale tomorrow | the roadmap's leftovers or a session note (`ctx_note`), not memory |
|
|
61
|
+
|
|
62
|
+
## 4. When to read, when to write
|
|
63
|
+
|
|
64
|
+
The PM prompt gives the two moments; in detail:
|
|
65
|
+
|
|
66
|
+
**On start** (raised by the pulse, or a new session): with memory available, `ctx_search` for the project's
|
|
67
|
+
existing constraints, the last progress and the options that were already rejected — *before* re-deriving them.
|
|
68
|
+
Without it, read `DECISIONS.md`, the roadmap's leftovers and the newest thread entries. Then the ordinary waking
|
|
69
|
+
routine: `team pulse status` → `team digest` → `team inbox --ack` → `team resume --dry-run`
|
|
70
|
+
(see [workflows.md](workflows.md) I).
|
|
71
|
+
|
|
72
|
+
**On wrap-up** (after a delivery or a decision): ① land the conclusion and this round's evidence on disk — report,
|
|
73
|
+
review record, BOARD status, `DECISIONS.md` with rationale and impact ([protocol.md](protocol.md) §10); ② only
|
|
74
|
+
then add what holds **across tasks** to project memory, and park "do later" items as notes or roadmap leftovers.
|
|
75
|
+
|
|
76
|
+
**When memory and disk disagree — disk wins, then fix the memory.** Do not "average" them and do not trust the
|
|
77
|
+
more recent-sounding one: read the file, correct the entry (or archive it), and record why the drift happened if
|
|
78
|
+
it is interesting. A memory entry that survived a rewrite of the thing it describes is worse than no entry.
|
|
79
|
+
|
|
80
|
+
## 5. Lifecycles: what survives what
|
|
81
|
+
|
|
82
|
+
| Event | What happens to memory | What to do |
|
|
83
|
+
|---|---|---|
|
|
84
|
+
| `/compact` (or automatic compaction) | history is summarised; the raw turns stay retrievable through `ctx_search` / `ctx_expand` | nothing — this is what memory tooling is for |
|
|
85
|
+
| Restart (`pi -c`, or the pulse bringing the PM up) | the session continues, so the memory attached to it continues too | re-read `state/watchdog.log` and the newest thread entries to find where you stopped; do not redo finished work |
|
|
86
|
+
| `/reload` (skill updated on disk) | the skill text in the *current context* may still be the old one | re-read the file you are about to rely on; `team version --check` tells you whether the loaded version is current |
|
|
87
|
+
| The worktree is moved or renamed | sessions are keyed by **cwd**, so the memory of that path can be orphaned | never move an agent worktree ([protocol.md](protocol.md) §3, [troubleshooting.md](troubleshooting.md) §2); if it already happened, treat it as a new session and rebuild from disk |
|
|
88
|
+
| A different machine | nothing is shared: memory is per session and per machine | anything that must travel goes to disk or a `team meeting` — see §7 |
|
|
89
|
+
|
|
90
|
+
What magic-context honestly does **not** do:
|
|
91
|
+
|
|
92
|
+
- it does not make the PM stateless-safe — disk is still the only durable record;
|
|
93
|
+
- it does not sync between machines or users, and it is not shared with worker agents (they have their own
|
|
94
|
+
sessions, and they do not read the PM's memory);
|
|
95
|
+
- it does not verify anything: an entry is a claim the PM wrote, exactly like a report is a claim an agent wrote;
|
|
96
|
+
- it does not survive the session being deleted — prune or revert a session and its memory goes with it.
|
|
97
|
+
|
|
98
|
+
## 6. When it is missing (and what "required" means)
|
|
99
|
+
|
|
100
|
+
Since D10 magic-context is a **required dependency**, not a recommendation: `team doctor` fails without it, and
|
|
101
|
+
`dispatch` prints a one-line warning (it does not block a worker — the evidence/spec layer is what is incomplete,
|
|
102
|
+
not the task). `TEAM_REQUIRE_MAGIC_CONTEXT=0` downgrades the failure to a warning for odd environments; the skill
|
|
103
|
+
then behaves exactly as it did when memory was optional.
|
|
104
|
+
|
|
105
|
+
With the dependency missing and downgraded, the routine below is what a session actually does — it is a degraded
|
|
106
|
+
mode, not an equivalent one: read `DECISIONS.md` (with rationale and impact), the roadmap's leftovers, the newest
|
|
107
|
+
entries of `threads/<agent>.md` and the last review records, and walk `templates/memory-seed.md.tmpl` as a
|
|
108
|
+
checklist instead of expecting recall. (The CLI still prints its output strings in Chinese; the line there is the
|
|
109
|
+
"not detected" warning, see [troubleshooting.md](troubleshooting.md).)
|
|
110
|
+
|
|
111
|
+
The fallback routine is the disk: read `DECISIONS.md` (with rationale and impact), the roadmap's leftovers, the
|
|
112
|
+
newest entries of `threads/<agent>.md`, and the last review records. `templates/memory-seed.md.tmpl` doubles as a
|
|
113
|
+
reading checklist in that mode: walk its items and answer them from the project, rather than expecting to recall
|
|
114
|
+
them.
|
|
115
|
+
|
|
116
|
+
What you lose without it: search over compacted history (you re-read files instead of recalling), and the ability
|
|
117
|
+
to park a note that resurfaces later — use the roadmap's leftovers for that instead. What you do **not** lose is
|
|
118
|
+
any evidence: reports, reviews, the board and the decision log are all files.
|
|
119
|
+
|
|
120
|
+
Two config keys matter here, both documented in [config.md](config.md): `TEAM_PI_SETTINGS_FILE` (where the
|
|
121
|
+
extension is detected; override it for tests or multi-user setups) and `TEAM_REQUIRE_MAGIC_CONTEXT=1` (make memory
|
|
122
|
+
a hard requirement — `team doctor` fails without it). A project should only set the latter when every PM session
|
|
123
|
+
is guaranteed to have it, otherwise the first session without it sees a failing `doctor`.
|
|
124
|
+
|
|
125
|
+
## 7. Keeping another PM (or a human) in sync
|
|
126
|
+
|
|
127
|
+
Memory is per session and per machine, so **anything another PM needs must be on disk** — or, for a different
|
|
128
|
+
project, in a `team meeting` ([meeting.md](meeting.md)): the transcript there is the only truth, and the peer PM
|
|
129
|
+
cannot read this project's memory. When a second PM takes over (a shift change, a second machine, a human reading
|
|
130
|
+
the project for the first time), the handover is the disk: `BOARD.md`, `DECISIONS.md`, the newest reviews, the
|
|
131
|
+
threads — plus the seed items from `templates/memory-seed.md.tmpl` so the newcomer can rebuild its own memory
|
|
132
|
+
rather than inherit yours. If a fact is only in your memory, then for everyone else in the system it does not
|
|
133
|
+
exist yet.
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Migration and upgrade guide
|
|
2
|
+
|
|
3
|
+
One place for everything a project needs when it was set up with an older teamsmith — or under its former name,
|
|
4
|
+
`pi-team`, which was renamed in v1.13.0 (§2). It is written for the person who owns that project (usually the PM
|
|
5
|
+
session) and for anyone deciding whether upgrading is safe.
|
|
6
|
+
|
|
7
|
+
> **Headline: project data never needs migrating.** Task briefs, reports, reviews, the board, threads, decisions,
|
|
8
|
+
> `.pi/team/config.sh` and the runtime files under `.pi/team/state/` keep their format across every version. An
|
|
9
|
+
> upgrade is "get a newer skill checkout, re-run two commands, read what `doctor` says" — never a data conversion.
|
|
10
|
+
> What *can* move under you are the surfaces in §3–§5, and each has a one-line fix.
|
|
11
|
+
|
|
12
|
+
## 1. What is stable (stop worrying about it)
|
|
13
|
+
|
|
14
|
+
| Surface | Why it does not move |
|
|
15
|
+
|---|---|
|
|
16
|
+
| the `team` CLI | sub-commands are only ever **removed**, never renamed in place; everything that still exists keeps its name and flags |
|
|
17
|
+
| `.pi/team/config.sh` | sourced by bash, flat `TEAM_*` keys; new keys ship with a default, so a config written years ago keeps working |
|
|
18
|
+
| `TEAM_*` environment variables | override the config file (env beats config) and are read that way in every version |
|
|
19
|
+
| the `docs/team/**` layout | `tasks/ reports/ reviews/ threads/ inbox/` plus `BOARD.md ROADMAP.md OWNERSHIP.md DECISIONS.md PROTOCOL.md` |
|
|
20
|
+
| `docs/team/BOARD.md` columns | `ID · task · agent · branch · deps · status`, with the status vocabulary `todo/wip/review/done/blocked/dropped` |
|
|
21
|
+
| the `AGENTS.md` protocol section | injected between markers and **refreshed in place** by `team init`, never appended twice; only the marker text changed once (§2) |
|
|
22
|
+
| `.pi/team/state/` | flat `key=value` files (agent records, `pm-loaded.env`, logs); version-agnostic and never migrated |
|
|
23
|
+
| version bookkeeping | `team mark-loaded` + `team version --check` compare a version string and a content hash; deleting `state/pm-loaded.env` only makes the tool say "unknown", nothing breaks |
|
|
24
|
+
|
|
25
|
+
The **text** of `SKILL.md`, `references/**` and the templates is the part that genuinely changes between versions.
|
|
26
|
+
Commands always re-read `scripts/**` from disk, but text already read into a running session does not change under
|
|
27
|
+
you — that is what `/reload` is for (§6), and §7 covers going back.
|
|
28
|
+
|
|
29
|
+
## 2. The rename: `pi-team` → `teamsmith` (v1.13.0)
|
|
30
|
+
|
|
31
|
+
The name change touched three things and only one of them needs a command from you.
|
|
32
|
+
|
|
33
|
+
| Old | New | What to do |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| `skills/pi-team` (repository path **and** installed skill directory) | `skills/teamsmith` | **change the path** (since the release that carries M22): the compatibility symlink was **removed**, so an absolute path or a `settings.json` entry that still says `skills/pi-team` must be updated to `skills/teamsmith` (or to the installed `~/.agents/skills/teamsmith`). The installed copy is unaffected — it is a link to *this repository*, not to the old name. See §2b below |
|
|
36
|
+
| the Pi command `/pi-team-reload` | `/teamsmith-reload` | **nothing**: the old spelling stays registered as an alias |
|
|
37
|
+
| the `AGENTS.md` marker `<!-- pi-team:begin -->` … `<!-- pi-team:end -->` | `<!-- teamsmith:begin -->` … `<!-- teamsmith:end -->` | run `team init` (or `team bootstrap`) once: the marker is rewritten **in place** and idempotently, with no duplicate section. `team doctor` prints a pointer to this file while the old marker is still there |
|
|
38
|
+
| the repository name `pi-team` | `teamsmith` | only if your own notes or scripts hard-code it; the skill's contracts (command, config, `TEAM_*`, `docs/team/**`) were never renamed |
|
|
39
|
+
| prose in your own docs, briefs or scripts | — | by hand: the skill cannot rewrite your files (the former name is also what a "stale session" error message used to say) |
|
|
40
|
+
|
|
41
|
+
Note on absolute paths: while the alias existed the compatibility symlink followed the **repository**, so the common
|
|
42
|
+
`~/.agents/skills/<name>` link and a `settings.json` `skills` entry kept working. That symlink is now **removed**
|
|
43
|
+
(§2c) — an absolute path written as `skills/pi-team` (the removed alias) must be updated to `skills/teamsmith`. A *copy* install
|
|
44
|
+
(`./install.sh --copy`) made before the release where `pi-team` was renamed keeps a frozen directory with no symlink
|
|
45
|
+
inside; re-run `./install.sh` there.
|
|
46
|
+
|
|
47
|
+
## 2b. The rename: `watchdog` → `pulse` (v1.36.0)
|
|
48
|
+
|
|
49
|
+
The periodic patrol was renamed. During the alias period (until v2.0.0) **nothing needs to change**:
|
|
50
|
+
|
|
51
|
+
- **Commands**: `team pulse up|down|restart|status|logs` (bare `team pulse` = `status`). The old names
|
|
52
|
+
(aliases: `team watchdog …`, `watchdog-status`, `install-watchdog`, `uninstall-watchdog`) still work — they print one
|
|
53
|
+
`[deprecated]` line on stdout and then do exactly what the `pulse` form does.
|
|
54
|
+
- **Window**: the default window name is now `pulse` (`TEAM_PULSE_WINDOW`). A still-running `watchdog` window is
|
|
55
|
+
recognized as the backend: `team pulse status` / `team doctor` say so and point at `team pulse restart`, which
|
|
56
|
+
swaps it for a `pulse` window. `team pulse up` never opens a second patrol next to a legacy one.
|
|
57
|
+
- **Variables**: each `TEAM_PULSE_<NAME>` wins over `TEAM_WATCH_<NAME>`, which wins over the default. Freshly
|
|
58
|
+
generated configs write the new names; an old config keeps working, and `team pulse status` / `team doctor`
|
|
59
|
+
name every legacy variable still in effect.
|
|
60
|
+
- **State files stay put**: `state/watchdog.pid/.log/.last/.nudge/.tick.log` keep their names during the alias
|
|
61
|
+
period — two patrols side by side (double nudges, double restarts) is the one thing that must never happen.
|
|
62
|
+
|
|
63
|
+
To migrate fully: rename the six `TEAM_WATCH_*` keys in `.pi/team/config.sh` to `TEAM_PULSE_*` (values unchanged),
|
|
64
|
+
then `team pulse restart` to swap the window name.
|
|
65
|
+
|
|
66
|
+
## 2c. The removed path alias: `skills/pi-team` (M22)
|
|
67
|
+
|
|
68
|
+
The rename in §2 originally kept `skills/pi-team` as a compatibility symlink. That symlink is **gone** — the alias
|
|
69
|
+
period was ended early by the user's call. What this means for an existing project:
|
|
70
|
+
|
|
71
|
+
| Where the old path can still be written down | What to do |
|
|
72
|
+
|---|---|
|
|
73
|
+
| your `settings.json` `skills` array, or a config/`TEAM_*` value with an **absolute** path | replace the removed alias `skills/pi-team` with `skills/teamsmith` (a project that uses the CLI through `PATH` or a `~/.agents/skills/teamsmith` link needs nothing) |
|
|
74
|
+
| your own notes, briefs or scripts | by hand — the skill cannot rewrite your files |
|
|
75
|
+
| the installed directory `~/.agents/skills/pi-team` | re-run `./install.sh` (it installs the canonical directories only); `./install.sh --uninstall` also removes a legacy `pi-team` entry left by an older install |
|
|
76
|
+
| an `AGENTS.md` marker `<!-- pi-team:begin -->` | **still automatic**: the next `team init`/`team bootstrap` rewrites the marker in place (§2) |
|
|
77
|
+
| the Pi command `/pi-team-reload` | **still works**: it stays registered as an alias of `/teamsmith-reload` — a *command name*, not a path |
|
|
78
|
+
|
|
79
|
+
A *copy* install (`./install.sh --copy`) made while the symlink existed simply carries a copy of the old alias;
|
|
80
|
+
delete that one directory (or re-run the installer into the same target).
|
|
81
|
+
|
|
82
|
+
## 3. Removed commands (v1.10 → v1.11) and what replaced them
|
|
83
|
+
|
|
84
|
+
The skill stopped wrapping tools that already exist. Rolling those wrappers back is not on the roadmap; the
|
|
85
|
+
replacement is always "the PM runs the real tool", which is why the guide points at the procedure docs instead of a
|
|
86
|
+
command.
|
|
87
|
+
|
|
88
|
+
| What you typed (or a script still does) | What you see | What to run instead | Read |
|
|
89
|
+
|---|---|---|---|
|
|
90
|
+
| `team merge <ID>` (and `team merge --pr N`) | a "removed in v1.11.0" refusal (printed in Chinese), exit 2; on a pre-1.10 checkout it printed a recipe, and before that it actually merged | the PM runs git: squash-merge the task branch into the protected branch, commit from the main worktree, push; only then `team board set <ID> done` | `SKILL.md` → "git and forge", `references/workflows.md` |
|
|
91
|
+
| `team pr <ID>` | same removal message | push the branch with `git` and open the PR/MR with the forge's own tool (`gh`, `glab`, `tea`, `curl`, or the web UI); tokens stay in the project's token files | `SKILL.md` → "git and forge" |
|
|
92
|
+
| `team gh …` / `team gl …` | a "pass-through removed in v1.11.0" refusal for `gh`/`gl`, exit 2 | call the real `gh`/`glab`/`curl` and inject the token yourself (`GH_TOKEN="$(< .gh-pat)" gh …`); the skill never reads or echoes tokens | `SKILL.md` → "git and forge", `references/troubleshooting.md` |
|
|
93
|
+
| `team review <ID>` **without** `--dir` (changed in v1.11.0) | refused: a review needs a PM-prepared independent checkout | `git -C <root> worktree add --detach /tmp/review-<ID> <task branch>`, then `team review <ID> --dir /tmp/review-<ID> [--strong]` | `SKILL.md` → Verify row, `references/workflows.md` |
|
|
94
|
+
| `team add-agent <a>` / `team bootstrap` silently creating worktrees | they now **print** the `git worktree add` command | keep git in your hands: run the printed command, or pass `--create` / `--create-worktrees` to delegate creation | `../../teamsmith-init/references/bootstrap.md` |
|
|
95
|
+
| `team close <ID>` deleting the task branch | `close` never touches git any more | reset and delete the branch yourself; with `TEAM_TASK_BRANCH_RESET=1` (default) `close` prints the exact `git -C <worktree> switch --detach <protected>` command | `references/config.md` |
|
|
96
|
+
|
|
97
|
+
Two of these removals are *deliberate and permanent*: the skill has no `merge`, `pr`, `gh` or `gl` sub-command and no
|
|
98
|
+
forge wrapper script. If a script of yours calls one, it will keep exiting non-zero — change the script.
|
|
99
|
+
|
|
100
|
+
## 4. New required dependencies (v1.19.0): magic-context and OpenSpec
|
|
101
|
+
|
|
102
|
+
Before v1.19.0 both were optional; since then `team doctor` **fails** without them.
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
pi install npm:@cortexkit/pi-magic-context # PM memory: cross-session recall (ctx_search/ctx_memory/ctx_note)
|
|
106
|
+
openspec init --tools none # the project's spec root (TEAM_SPEC_DIR, default: openspec/)
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
- `team doctor` checks both and names the fix when one is missing: a `✓` line with the resolved version for the Pi
|
|
110
|
+
package (read from `TEAM_PI_SETTINGS_FILE`, default `~/.pi/agent/settings.json`) and for the OpenSpec CLI
|
|
111
|
+
(`TEAM_OPENSPEC_BIN`, default `openspec`), plus a separate line for the spec directory (`TEAM_SPEC_DIR`).
|
|
112
|
+
- The project gate should carry the spec layer as well — `TEAM_GATES` is the config key:
|
|
113
|
+
`openspec validate --all --strict && <your old gates>`.
|
|
114
|
+
- Escape hatch for unusual environments: `TEAM_REQUIRE_MAGIC_CONTEXT=0` and `TEAM_REQUIRE_OPENSPEC=0` downgrade the
|
|
115
|
+
two checks from failure to warning, and `TEAM_PI_SETTINGS_FILE` / `TEAM_OPENSPEC_BIN` point the checks at a
|
|
116
|
+
non-standard location. `dispatch` only warns about a missing dependency, it never blocks.
|
|
117
|
+
- **The honest cost of the escape hatch**: with `TEAM_REQUIRE_MAGIC_CONTEXT=0` the PM loses cross-session recall and
|
|
118
|
+
has to fall back to `/compact` plus files on disk (see `references/memory.md`); with `TEAM_REQUIRE_OPENSPEC=0` there
|
|
119
|
+
is no spec layer at all, and any gate line still calling `openspec validate` fails on its own. Turning the
|
|
120
|
+
requirement off silences the *check*, not the *gap*.
|
|
121
|
+
|
|
122
|
+
## 5. Behaviour changes that can surprise an existing project
|
|
123
|
+
|
|
124
|
+
Each row is a v1.19.0-or-later change that a project set up earlier will notice. The "what to check" column is the
|
|
125
|
+
one-line reaction.
|
|
126
|
+
|
|
127
|
+
| Change | Since | What to check |
|
|
128
|
+
|---|---|---|
|
|
129
|
+
| `dispatch` refuses a worktree whose branch is not the task's branch | v1.21.0 | `git -C .worktrees/<agent> branch --show-current` must equal the task branch; the refusal prints the `git switch` command to run |
|
|
130
|
+
| `dispatch` refuses a brief outside the project, an unknown recipient, and a model-limit overrun | v1.21.0 | keep briefs under `docs/team/tasks/`, keep the recipient in `TEAM_AGENTS`, and check `team ps` for free concurrency slots (`TEAM_MODEL_LIMITS`) |
|
|
131
|
+
| `team board set <ID> done` requires evidence | v1.20.0 | the branch must be merged into the protected branch or a review record must exist; the only override is `TEAM_BOARD_DONE_FORCE=1` **plus** `TEAM_BOARD_DONE_REASON="…"`, and it is recorded in `reviews/<ID>-done.md` |
|
|
132
|
+
| a review must run in a clean checkout of the task branch, and the record is bound to that revision | v1.20.0 | prepare a detached worktree per review; if the branch moves afterwards `digest` lists the task for re-verification; `TEAM_REVIEW_ALLOW_DIRTY` / `…_IGNORED` / `…_ANY_DIR` are explicit, recorded overrides |
|
|
133
|
+
| empty or whitespace-only tmux targets are refused in every wrapper | v1.21.0 | nothing to do — this guard is what stops a wrapper from typing into (or killing) the *current* pane; only custom scripts that build a target from a variable need to prove it is non-empty |
|
|
134
|
+
| the patrol is a `pulse` window in **the project's own** tmux session, and `TEAM_SESSION` must match that session name | v1.12.0 (single backend); renamed `watchdog` → `pulse` in v1.36.0 (§2b) | `team pulse status`; after renaming a session, update `TEAM_SESSION` in `.pi/team/config.sh`. Real example: on 2026-09-14 this project's session was renamed while the config kept the old name, so `dispatch` and the patrol reported a missing session and the PM as not running until the config was fixed |
|
|
135
|
+
| long-lived sessions are checked against the model's context window; `--fresh` starts a new one | v1.22.0 | before switching an agent to a model with a smaller window, dispatch with `--fresh` (or accept the refusal); `team ps` / `roster` show used/window |
|
|
136
|
+
| reports that are not committed yet no longer point at a review, and a squash-merged branch reports "already merged (squash, same content) — no push needed" | v1.22.0 | read the wording before acting: both lines exist to stop a PM from reviewing or pushing something that is already done |
|
|
137
|
+
| the PM's own CLI is configurable (`TEAM_PM_CMD` / `TEAM_PM_BIN` / `TEAM_PM_RESUME_ARGS`) | M8.1 | nothing to do — all three keys are empty by default and the built-in Pi command is byte-for-byte unchanged. They belong to the internal seam (frozen): reserved for a possible future non-Pi adapter, no compatibility promise — the PM side runs Pi (`references/agent-adapters.md` §2) |
|
|
138
|
+
| the console brings three state files and one changed default: `TEAM_MONITOR_REFRESH` drops `5` → `3` | v1.38.0 (pulse-console B3) | the TUI keeps its own preferences in `state/panel.conf` (`lang`, `page`, `activity`, `mouse`, `density` and an optional `theme`), remembers the last page in `state/panel-page`, and holds the PM's compose draft in `state/draft.md`. All three are runtime state: deleting them is safe and `--print`/`--json` never read them. Set `TEAM_MONITOR_REFRESH=5` to keep the old cadence (`references/config.md` lists the key) |
|
|
139
|
+
|
|
140
|
+
## 6. Upgrade recipe
|
|
141
|
+
|
|
142
|
+
Replace `<skill checkout>` with the git checkout the installed skill points at (`team paths` prints it).
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# 1) get the new skill (a copy install updates by re-running ./install.sh instead)
|
|
146
|
+
git -C <skill checkout> pull --ff-only # refuses when the checkout has diverged (local commits) — deliberate
|
|
147
|
+
|
|
148
|
+
# 2) is this session still the old version?
|
|
149
|
+
team version --check
|
|
150
|
+
# expect two version numbers (loaded vs disk) and a hint to run /reload;
|
|
151
|
+
# identical versions print "consistent" instead. Exit code stays 0 either way.
|
|
152
|
+
|
|
153
|
+
# 3) environment self-check — fix every ✗ before going on
|
|
154
|
+
team doctor
|
|
155
|
+
|
|
156
|
+
# 4) re-render this project's contracts (idempotent: config is kept, the AGENTS.md
|
|
157
|
+
# section is refreshed in place, and a legacy marker is rewritten to the new one)
|
|
158
|
+
team init
|
|
159
|
+
|
|
160
|
+
# 5) the spec layer, only when openspec/ is missing
|
|
161
|
+
openspec init --tools none
|
|
162
|
+
|
|
163
|
+
# 6) put the spec gate into TEAM_GATES in .pi/team/config.sh
|
|
164
|
+
# TEAM_GATES="openspec validate --all --strict && <old gates>"
|
|
165
|
+
|
|
166
|
+
# 7) rebuild the pulse window and look at it (renamed from `watchdog` in v1.36.0 — §2b:
|
|
167
|
+
# the old commands/window/variables still work; a running `watchdog` window is adopted
|
|
168
|
+
# and `team pulse restart` swaps it for a `pulse` one)
|
|
169
|
+
team pulse up
|
|
170
|
+
team pulse status
|
|
171
|
+
|
|
172
|
+
# 8) prove the tooling end to end in a throwaway repository (never touches this project)
|
|
173
|
+
bash skills/teamsmith/tests/smoke.sh # full suite (tens of seconds idle, minutes on a loaded box)
|
|
174
|
+
TEAM_SMOKE_FAST=1 bash skills/teamsmith/tests/smoke.sh # logic-only subset; each skipped section prints SKIP
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Expected output, in order:
|
|
178
|
+
|
|
179
|
+
| Step | What you should see |
|
|
180
|
+
|---|---|
|
|
181
|
+
| `version --check` | the disk version, the `SKILL.md` version and the loaded version, then either a "consistent" line or the "this session is old" line with the `/reload` hint |
|
|
182
|
+
| `/reload` in Pi | the skill list is rebuilt; the extension sends a follow-up that makes the PM read `SKILL.md` again (text already in the conversation history does **not** change by itself) |
|
|
183
|
+
| `doctor` | every line prefixed with a check mark; each `✗` line carries its own fix (`pi install …`, `openspec init --tools none`, `TEAM_*_BIN`, …); the summary line counts failures and warnings |
|
|
184
|
+
| `init` | a write/refresh line per generated file — the `AGENTS.md` protocol section appears exactly once (check with `grep -c '<!-- teamsmith:begin -->' AGENTS.md`) |
|
|
185
|
+
| `smoke` | an all-green summary (or the failure count), and in fast mode a line listing the skipped process sections |
|
|
186
|
+
|
|
187
|
+
Do the upgrade **before** dispatching new work, and note the version in `DECISIONS.md`: a worker dispatched after the
|
|
188
|
+
upgrade gets the new prompt template, one dispatched before does not.
|
|
189
|
+
|
|
190
|
+
## 7. Rolling back
|
|
191
|
+
|
|
192
|
+
An upgrade is reversible and needs no data rollback, because §1 is true: the skill does not migrate project files.
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
git -C <skill checkout> tag -l # recent releases are tagged (e.g. v1.20.0); see what is available
|
|
196
|
+
git -C <skill checkout> checkout v1.20.0 # pin the older release
|
|
197
|
+
git -C <skill checkout> log --oneline | head # no tag for the version you want? use its release commit
|
|
198
|
+
team mark-loaded # re-record what this session should compare against
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
- Restart or `/reload` the PM session after pinning, otherwise the running session still holds the newer `SKILL.md`.
|
|
202
|
+
- `team version --check` will compare against the pinned revision from then on; running `team mark-loaded` again stops
|
|
203
|
+
it from reporting a mismatch you deliberately created.
|
|
204
|
+
- `openspec/`, `docs/team/**`, `.pi/team/**` and any existing review records stay exactly as they are — nothing needs
|
|
205
|
+
to be re-generated.
|
|
206
|
+
- Two honest caveats: a config file written by a newer version may contain keys an older one ignores (harmless: they
|
|
207
|
+
simply have no effect), and rolling back **below v1.11.0** brings back the git/forge wrappers — the skill would touch
|
|
208
|
+
git again. Pin at v1.11.0 or later unless that is exactly what you want.
|
|
209
|
+
- Rollback and re-upgrade can be repeated freely; the only state the skill keeps about versions is
|
|
210
|
+
`.pi/team/state/pm-loaded.env`.
|
|
211
|
+
|
|
212
|
+
## 8. What is deliberately not supported
|
|
213
|
+
|
|
214
|
+
- **The PM side is Pi.** The four `TEAM_AGENT_*` keys are an internal seam (frozen) — reserved for a possible
|
|
215
|
+
future non-Pi adapter, with no compatibility promise; the PM prompt, `pi -c` restarts and the notify extension
|
|
216
|
+
stay Pi. Contract, worked examples and the unsupported list:
|
|
217
|
+
[agent-adapters.md](agent-adapters.md).
|
|
218
|
+
- **The old Podman/container and systemd patrol backends** (removed in v1.12.0). There is exactly one backend
|
|
219
|
+
now: the `pulse` window in the project's own tmux session. If the tmux server dies, the PM is gone too, and
|
|
220
|
+
`team up` / `team pulse up` rebuild both.
|
|
221
|
+
- **git and forge wrappers** (`team merge`, `team pr`, `team gh`, `team gl`, a forge library script), removed in
|
|
222
|
+
v1.11.0: the PM runs git and the forge's own CLI. See §3 and `SKILL.md`.
|
|
223
|
+
- The repository's own boundary — what this project will and will not do on someone else's machine — is in
|
|
224
|
+
[SCOPE.md](../../../SCOPE.md).
|
|
225
|
+
|
|
226
|
+
If something here does not match what `team doctor`, `team version --check` or `team smoke` actually print, that is a
|
|
227
|
+
bug in the guide (or in the tool): report it with the command and the output rather than working around it.
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# OpenSpec: the five-phase pipeline and its gates
|
|
2
|
+
|
|
3
|
+
OpenSpec owns **what must hold** (requirements with scenarios) and the change artifacts; teamsmith owns the
|
|
4
|
+
**evidence** (briefs, reports, reviews, decisions). This document covers the part OpenSpec cannot know: **how the
|
|
5
|
+
process is run here** — which phase runs, in whose hands, and what has to be true before the next one starts.
|
|
6
|
+
|
|
7
|
+
It deliberately does not repeat OpenSpec's own documentation (artifact anatomy, requirement/scenario syntax, the
|
|
8
|
+
CLI reference, `validate` output). Those live where they are generated and maintained; §0 says where.
|
|
9
|
+
|
|
10
|
+
> Scope note (D23): teamsmith **uses** OpenSpec, it does not re-implement its validation. There is no custom
|
|
11
|
+
> delta-semantics checker in the gate; delta mistakes surface at the trial archive above. If the same class bites
|
|
12
|
+
> twice in real work, the answer is an upstream issue against `@fission-ai/openspec`, not a local mirror.
|
|
13
|
+
|
|
14
|
+
## 0. Where the authoritative OpenSpec documentation is
|
|
15
|
+
|
|
16
|
+
- **The phase commands themselves** — `.pi/prompts/opsx-*.md` and `.pi/skills/openspec-*/SKILL.md`, generated for
|
|
17
|
+
this project's agent tool (`openspec init --tools pi`; §6 states exactly which of the five phases the installed
|
|
18
|
+
OpenSpec actually generates). That is what an agent actually follows. They describe the
|
|
19
|
+
*mechanics* of a phase (how to explore, how to write the artifacts); **who may invoke a phase, and behind which
|
|
20
|
+
gate, is teamsmith's rule, not theirs** — see §1, §2 and §4.
|
|
21
|
+
- **The artifact instructions** — `openspec instructions <artifact>` (proposal / specs / design / tasks / apply /
|
|
22
|
+
archive) and `openspec context` (the project context and rules an AI sees).
|
|
23
|
+
- **The workflow schema** — `openspec/config.yaml` (`schema: spec-driven` plus the project's per-artifact rules).
|
|
24
|
+
|
|
25
|
+
One teamsmith-side fact frames everything below: OpenSpec is a **required dependency** (`team doctor` and
|
|
26
|
+
`team paths` resolve `TEAM_OPENSPEC_BIN` / `TEAM_SPEC_DIR`) and it **owns spec management** — the spec gate is
|
|
27
|
+
`openspec validate --all --strict`, and a defect validate cannot see surfaces at the trial archive (§5), where
|
|
28
|
+
OpenSpec's own machinery speaks.
|
|
29
|
+
|
|
30
|
+
The writing convention survives as **convention, not gate**: every requirement still carries testable scenarios —
|
|
31
|
+
a scenario that cannot fail is worthless, and the PM's proposal review (§4) still rejects such a delta by
|
|
32
|
+
judgement. What is gone is the separate checker; no project script re-judges OpenSpec's files.
|
|
33
|
+
|
|
34
|
+
## 1. The pipeline: five phases, five owners, five gates
|
|
35
|
+
|
|
36
|
+
In Pi the commands are `/opsx-explore`, `/opsx-propose`, `/opsx-apply`, `/opsx-verify`, `/opsx-archive`; in another
|
|
37
|
+
CLI they are the equivalent prompt/skill files (§0).
|
|
38
|
+
|
|
39
|
+
| # | Phase (command) | Owner | Hand-in | Hand-out (artifact) | Gate before the next phase |
|
|
40
|
+
|---|---|---|---|---|---|
|
|
41
|
+
| 1 | `opsx-explore` | an **explorer** worker — never the eventual implementer (the verify agent, or a dedicated explorer) | the user's request / problem statement, existing specs and code | exploration report: options, risks, recommended approach, effort — written as the task's report | **PM**: accepts the approach, records the decision in `docs/team/DECISIONS.md`, and writes the propose brief |
|
|
42
|
+
| 2 | `opsx-propose` | the **explorer** (the same agent — it holds the context) | the accepted approach | `openspec/changes/<id>/` (proposal, delta specs, design, tasks) — **planning only, no code** (the workflow itself states this boundary) | **PM proposal review — a recorded gate, same standing as `team review`**: `openspec validate --all --strict` green **and** the verdict written to `docs/team/reviews/<change>-proposal.md` as ACCEPTED (§4). **No apply brief may be dispatched before that.** |
|
|
43
|
+
| 3 | `opsx-apply` | a **dev** agent, different from 1 and 4 | the change + the brief | code committed on its task branch + report | **independent verification** is dispatched to a different agent |
|
|
44
|
+
| 4 | `opsx-verify` | an **independent verify** agent (never the implementer) | the change, the landed code, the report | verification record `docs/team/reviews/<ID>.md` + findings; every scenario of the change exercised, with red/green evidence | **PM**: re-runs the gate on the merged tree, decides `done`, and only then proposes archiving |
|
|
45
|
+
| 5 | `opsx-archive` | **PM** (it changes the ledger) | the verified change | `openspec/changes/archive/<date>-<id>/` + updated capability specs | `team change status <id>` exits 0 (every task finished **and** its `tasks.md` checklist fully ticked — §5); **the user** confirms; the PM may confirm as the user's proxy only when it states that plainly and records why (small, reversible, already covered by the approved approach) |
|
|
46
|
+
|
|
47
|
+
An exploration whose conclusion is "not worth doing", and a verification that fails twice, do not advance: see §7.
|
|
48
|
+
|
|
49
|
+
## 2. One phase = one task = one owner
|
|
50
|
+
|
|
51
|
+
- The phases are **never merged into a single brief**: explore, propose, apply, verify and archive are five briefs
|
|
52
|
+
(or five gate decisions for the phases the PM owns), each with its own `task:` id, `agent:`, `deps:` and `phase:`
|
|
53
|
+
header line.
|
|
54
|
+
- **No agent verifies its own work** — the `team review` rule applied to the OpenSpec phases. The verify phase is
|
|
55
|
+
owned by an agent that did not implement, and the apply phase by an agent that did not propose. Explore and
|
|
56
|
+
propose may be the same agent (it holds the context) — but neither may apply its own proposal.
|
|
57
|
+
- A phase is not a formality: its hand-out is the **artifact on disk**, and the PM checks the artifact, not the
|
|
58
|
+
agent's account of it. Reports and reviews stay the evidence; nothing here replaces `reports/` + `reviews/`.
|
|
59
|
+
- **1 change : N tasks, 1 task : 0..1 change.** The change is the dispatch unit (proposal, design, delta,
|
|
60
|
+
tasks, archive); a task is one batch or one phase inside it, and several agents or several apply batches may
|
|
61
|
+
share a change. The brief's header is the foreign key: `change:` (exactly one id, or `-`), `specs:`/`anchor:`
|
|
62
|
+
(a change-less brief must resolve `openspec/specs/<capability>/spec.md#<requirement>` or declare
|
|
63
|
+
`anchor: none (infra) — <reason>`) and `deltas:` (the change's delta files this task writes; absent = the whole
|
|
64
|
+
set). `team dispatch` enforces the mapping before it opens a window; `team change status <id>` shows it. The
|
|
65
|
+
grammar and the template live in `templates/task.md.tmpl`, the rules in the skill's `references/protocol.md` §5b.
|
|
66
|
+
- A spec stands on its own: evidence belongs in the spec's own text, and a `docs/team/…` reference is allowed
|
|
67
|
+
only when `skills/teamsmith/tests/spec-ledger-refs.tsv` declares it with its kind and its basis — a slot
|
|
68
|
+
pattern never lets a concrete record through. Record ids stay defined by the one `Id families:` line of
|
|
69
|
+
`boundary#Specs are the contract`. Before hand-off run `bash skills/teamsmith/tests/spec-refs.sh --check`:
|
|
70
|
+
it judges the text the archive will write, names what a pending change retires, and is red on anything
|
|
71
|
+
undeclared or on a family the key line does not name.
|
|
72
|
+
|
|
73
|
+
## 3. How it maps onto teamsmith
|
|
74
|
+
|
|
75
|
+
| OpenSpec object | teamsmith object |
|
|
76
|
+
|---|---|
|
|
77
|
+
| change (`openspec/changes/<id>/`) | the requirement-level unit; its id goes in the brief's `change:` line |
|
|
78
|
+
| the five phases | the brief's `phase:` line (`explore\|propose\|apply\|verify\|archive`) |
|
|
79
|
+
| who runs a phase | the brief's `agent:` line |
|
|
80
|
+
| the phase order | `deps:` in the briefs (propose depends on the accepted exploration, apply on the ACCEPTED proposal review, verify on the landed branch) |
|
|
81
|
+
| the gates | `docs/team/reviews/**` records, `team board set <ID> done`, `BOARD.md` |
|
|
82
|
+
| the artifacts | `openspec/changes/<id>/`, and after archive `openspec/specs/<capability>/spec.md` |
|
|
83
|
+
|
|
84
|
+
The board carries the tasks, the change carries the requirements, the ledger carries the evidence. There is still
|
|
85
|
+
only **one** spec system: a promise that must hold goes into a spec; reasoning and guidance go into `references/`;
|
|
86
|
+
an execution slice goes into a brief. Never grow requirement lists or spec copies inside briefs, reports or
|
|
87
|
+
`docs/team/**`.
|
|
88
|
+
|
|
89
|
+
## 4. The PM proposal review: a recorded gate between propose and apply
|
|
90
|
+
|
|
91
|
+
After `opsx-propose` and **before the first apply brief**, the PM reviews the change artifacts and writes the
|
|
92
|
+
verdict down. It is not "the PM glanced at it": it has the same standing as `team review <ID>`, and its record is
|
|
93
|
+
`docs/team/reviews/<change>-proposal.md`:
|
|
94
|
+
|
|
95
|
+
```md
|
|
96
|
+
# <change> · PM proposal review
|
|
97
|
+
|
|
98
|
+
time: 2026-01-01T00:00:00Z · reviewer: pm · verdict: **ACCEPTED** # or **NEEDS-CHANGES**
|
|
99
|
+
|
|
100
|
+
## Commands run (real output, not a promise)
|
|
101
|
+
$ openspec validate --all --strict # → … exit 0
|
|
102
|
+
$ <a command the proposal itself promises> # → spot-checked: it exists and runs
|
|
103
|
+
|
|
104
|
+
## Findings (one line per checklist item)
|
|
105
|
+
1. matches the approved exploration — PASS
|
|
106
|
+
2. observable … — PASS
|
|
107
|
+
|
|
108
|
+
## Required changes (NEEDS-CHANGES only)
|
|
109
|
+
- <item> · <what must change> · <who changes it>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
- **No apply task may be dispatched before the verdict is ACCEPTED.** A revised proposal is re-reviewed and the
|
|
113
|
+
record updated; a change that was agreed in conversation is still not an accepted proposal.
|
|
114
|
+
- A **NEEDS-CHANGES** verdict names the checklist item, the evidence that is missing, and the owner of the fix.
|
|
115
|
+
- The review looks at the **planning artifacts**, not at code — proposals are planning only.
|
|
116
|
+
|
|
117
|
+
### The PM's proposal review checklist (ten points, followed literally)
|
|
118
|
+
|
|
119
|
+
1. **Matches the approved exploration** — no silent widening or narrowing of scope; call out scope creep *and*
|
|
120
|
+
scope cuts.
|
|
121
|
+
2. **Observable** — the delta specs describe only externally observable behavior (commands, exit codes, files on
|
|
122
|
+
disk), and every scenario can fail.
|
|
123
|
+
3. **Closed coverage, both ways** — every affected requirement has at least one task item, and every task item
|
|
124
|
+
points at a requirement or scenario (no orphan tasks).
|
|
125
|
+
4. **Explicit boundaries** — the proposal states what is out of scope, and who may not touch which paths.
|
|
126
|
+
5. **Acceptance commands** — copy-pasteable and existing: the PM runs `openspec validate --all --strict`,
|
|
127
|
+
then spot-checks the commands the proposal itself promises.
|
|
128
|
+
6. **Defect fixes state the flip** — red → green, or "break the implementation → the guard must fail → restore it".
|
|
129
|
+
7. **No conflict with existing specs** — grep `openspec/specs/` before accepting a statement: a duplicate or a
|
|
130
|
+
supersession must be a MODIFIED/REMOVED delta, not a parallel statement in a new requirement.
|
|
131
|
+
8. **Granularity** — can one apply brief finish it? If not, the split and its order are named (several briefs
|
|
132
|
+
under the same change, applied and verified one by one).
|
|
133
|
+
9. **One change per task** — every brief the change's plan will dispatch declares exactly one `change:` id (or `-`
|
|
134
|
+
with an anchor). Judgement: `grep -n '^change:' docs/team/tasks/*.md` and, once the briefs exist,
|
|
135
|
+
`team change status <id>` must list them under this change and no other. A brief with two ids, a second
|
|
136
|
+
`change:` line or a typo is a NEEDS-CHANGES item naming the brief and the line (dispatch refuses it anyway —
|
|
137
|
+
there is no override for this rule).
|
|
138
|
+
10. **The anchor exists** — each dispatched brief either points at this change, or names a `specs:` requirement
|
|
139
|
+
that resolves in `openspec/specs/<capability>/spec.md`, or declares `anchor: none (infra) — <reason>` with a
|
|
140
|
+
reason from the allowed classes (environment/CI/toolchain, pure internal refactor, docs and fixtures).
|
|
141
|
+
Judgement: `grep -n '^anchor:\|^specs:' <brief>` and, for the infra form, is the reason honest — a rule that
|
|
142
|
+
must hold across tasks (silent failure, destructive action, authority, identity, gate, performance contract)
|
|
143
|
+
is **not** infrastructure, whatever the brief says; the correct verdict is NEEDS-CHANGES with the capability
|
|
144
|
+
named.
|
|
145
|
+
|
|
146
|
+
## 5. What the PM does at each gate
|
|
147
|
+
|
|
148
|
+
| Phase | Read | Must be true | Write |
|
|
149
|
+
|---|---|---|---|
|
|
150
|
+
| explore | the exploration report, the specs and code it cites | the recommendation is one option with its risks and effort, and the scope is the user's request — not a wish list | the decision in `docs/team/DECISIONS.md` + the propose brief |
|
|
151
|
+
| propose | `openspec/changes/<id>/` end to end | `openspec validate --all --strict` green and all eight checklist points pass | `docs/team/reviews/<change>-proposal.md` = ACCEPTED (or NEEDS-CHANGES + per-item findings) |
|
|
152
|
+
| apply | the brief, the change, the branch, the report | the branch carries exactly the change's scenarios; the acceptance commands really ran; nothing outside the boundaries was touched | the verify brief (a different agent) |
|
|
153
|
+
| verify | the change, the landed code, the verification record, the diff | every scenario was exercised with red/green evidence, on a clean independent checkout | `docs/team/reviews/<ID>.md`; then `team board set <ID> done` after re-running the gate on the merged tree |
|
|
154
|
+
| archive | the verified change + the user's confirmation | `team change status <id>` exits 0 — every task of the change is finished **and the change's `tasks.md` has no unchecked `- [ ]` item** (the command names the count and the first three line numbers/titles and exits non-zero) — and the user confirmed; **trial archive first**: `cp -r openspec /tmp/trial && (cd /tmp/trial && openspec archive -y <id>)` — OpenSpec catches some delta defects (a MODIFIED naming a requirement the base lacks, an ADDED collision, …) *only here*; the trial surfaces them while fixing is cheap, and a failure hands the change back to apply with the archiver's message | then `openspec archive -y <id>` for real, and the user's confirmation recorded (who confirmed, or why the PM acted as proxy) |
|
|
155
|
+
|
|
156
|
+
The checklist half of that exit code is the apply phase's own ledger: three changes reached archive with 23/24/16
|
|
157
|
+
items unticked (P151 F3, P175 F3, P206 F1), each caught by a human instead of by the gate. The check counts
|
|
158
|
+
**empty boxes only** — an item ticked with its reason (`- [x] 2.3 … 引用 P206`) is complete, and a box ticked to
|
|
159
|
+
clear the gate is no evidence: the ledger is reconciled on the apply side (tick what was really done, say in the
|
|
160
|
+
item what was not). Since `openspec archive` does not consult teamsmith, the gate that still catches a skipped
|
|
161
|
+
checklist afterwards is the archive task's `team board set <ID> done`: it reads the change's `tasks.md` in the
|
|
162
|
+
archive copy once the live directory is gone.
|
|
163
|
+
|
|
164
|
+
`team board set <ID> done` reads those same phases from the brief: `explore` is done on the PM's recorded
|
|
165
|
+
acceptance (a `DECISIONS.md` entry whose heading names the task, or `reviews/<ID>.md`), `propose` only on an `ACCEPTED`
|
|
166
|
+
`reviews/<change>-proposal.md` (a `NEEDS-CHANGES` record refuses and says so), `verify` on the task's review
|
|
167
|
+
record, and `archive` once the change id appears under `openspec/changes/archive/`; `apply` keeps the code-task rule
|
|
168
|
+
(non-`FAIL` review record, or a merged branch tip **whose commits carry the task's report** `<docs>/reports/<ID>-*.md`
|
|
169
|
+
— a branch created a minute ago is an ancestor of the protected branch too, so the committed report is what tells
|
|
170
|
+
"merged with content" apart from "created and never touched"). A brief with no `phase:` line (or `-`, or an unknown value) keeps
|
|
171
|
+
exactly the code-task rule — the guard is never widened for tasks that do not declare a phase, and an archived
|
|
172
|
+
directory is evidence of the archive, not of the user's confirmation.
|
|
173
|
+
|
|
174
|
+
The same phase evidence is what clears a phase task from the digest's pending-verification list: a board row the PM
|
|
175
|
+
has already moved to `done` is never listed again (the evidence was checked at the transition, so the list does not
|
|
176
|
+
second-guess it), and while a phase task is still in progress the digest names the phase's own next step — for
|
|
177
|
+
`explore`/`propose`/`archive` the deliverable does not live on a code branch, so a generic `team review <ID>` would
|
|
178
|
+
send the PM at the wrong artifact.
|
|
179
|
+
|
|
180
|
+
Staleness is judged per phase against the revision a record is bound to: for a `verify` task that is the branch named
|
|
181
|
+
in the record's header (`分支:`) — the verifier's own branch carries its report commit, so a new commit there does not
|
|
182
|
+
expire the record, while a new commit on the reviewed branch does and puts the task back on the pending list — and for
|
|
183
|
+
tasks with no `phase:` (including `apply`) it stays the code-task rule, the record against the task branch's current
|
|
184
|
+
tip.
|
|
185
|
+
|
|
186
|
+
## 6. Preconditions
|
|
187
|
+
|
|
188
|
+
- Generate what the installed OpenSpec can generate: `openspec init --tools pi` writes the command and skill files
|
|
189
|
+
for the workflows of the active profile (use the tool's own id for a non-Pi CLI). With the version this project
|
|
190
|
+
pins — **1.8.0, whose only profile is `core`** (`openspec config list` prints
|
|
191
|
+
`workflows: propose, explore, apply, update, sync, archive (from core profile)`) — that is
|
|
192
|
+
`opsx-{explore,propose,apply,archive}` plus the helper commands `opsx-update`/`opsx-sync`, and the matching
|
|
193
|
+
skills `openspec-{explore,propose,apply-change,archive-change}` plus `openspec-sync-specs`/`openspec-update-change`.
|
|
194
|
+
**It does not generate the verify pair** (`opsx-verify.md`,
|
|
195
|
+
`openspec-verify-change/SKILL.md`): 1.8.0 has no `verify` workflow, and the `expanded` profile this guide used to
|
|
196
|
+
name does not exist (`openspec config profile expanded` → `Error: Unknown profile preset "expanded". Available
|
|
197
|
+
presets: core`). Once a project has generated files, `openspec update` refreshes them; it finds the configured
|
|
198
|
+
tools from those files and answers "No configured tools found" when there are none.
|
|
199
|
+
- **A phase whose command is missing is not a phase that did not run.** The verify phase is owned by this guide, not
|
|
200
|
+
by a generated file: run it from §1 and §5 — a different agent than the implementer, the change + the landed code
|
|
201
|
+
+ the report as its hand-in, `docs/team/reviews/<ID>.md` as its hand-out. If you want a command for it, write the
|
|
202
|
+
prompt yourself and say it is yours; do not record a hand-written prompt as generated. What teamsmith gates on is
|
|
203
|
+
the **artifact** (the review record); the command file is only checked where the checkout carries one (a checkout
|
|
204
|
+
without the machine-generated surface gets a named skip, never a red — P222).
|
|
205
|
+
- Whether the generated files are committed follows the project's own ignore rules. This repository ignores `.pi/**`
|
|
206
|
+
(`.gitignore`): the files are per-machine, every clone and every CI checkout starts without them, and the gate
|
|
207
|
+
reports the `.pi/prompts` / `.pi/skills` checks as named skips there. A project that does commit them gets those
|
|
208
|
+
checks on every checkout, which is strictly more coverage.
|
|
209
|
+
- Resolve the CLI and the spec root: `team paths` (and `team doctor`) print `TEAM_OPENSPEC_BIN` / `TEAM_SPEC_DIR`;
|
|
210
|
+
with `TEAM_REQUIRE_OPENSPEC=1` (the default) a missing CLI or spec directory fails the doctor. The gate needs the
|
|
211
|
+
CLI on `PATH` (or an absolute path in `TEAM_OPENSPEC_BIN`).
|
|
212
|
+
|
|
213
|
+
## 7. Escalation: stopping a change
|
|
214
|
+
|
|
215
|
+
- **Exploration says "not worth doing"** → the PM records the decision in `DECISIONS.md`, does not dispatch
|
|
216
|
+
propose, and says so in the ledger. Nothing is archived, nothing is left half-planned.
|
|
217
|
+
- **Verification fails twice** → the PM **stops the change**: leave it in `openspec/changes/<id>/` with a note
|
|
218
|
+
naming the blocker (and the failed findings), rather than pushing it through. The next PM can see it.
|
|
219
|
+
- **The user is not available for the archive decision** → the change stays open; the code can already be merged
|
|
220
|
+
and `done` on the board (the ledger proves it), only the archive waits for the user.
|
|
221
|
+
- Never archive to make a red thing disappear: `openspec archive` merges the deltas into `specs/` — after it, the
|
|
222
|
+
spec set claims the change is real. Archive only after the gate passed and the user confirmed.
|