teamsmith 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -7
- package/package.json +1 -1
- package/skills/teamsmith/CHANGELOG.md +67 -0
- package/skills/teamsmith/SKILL.md +26 -8
- package/skills/teamsmith/extension/team-notify.ts +37 -6
- package/skills/teamsmith/extension/team.ts +438 -0
- package/skills/teamsmith/references/agent-adapters.md +7 -7
- package/skills/teamsmith/references/config.md +65 -18
- package/skills/teamsmith/references/migration.md +220 -34
- package/skills/teamsmith/references/protocol.md +250 -25
- package/skills/teamsmith/references/troubleshooting.md +124 -7
- package/skills/teamsmith/references/workflows.md +66 -20
- package/skills/teamsmith/scripts/lib/cmd-agents.sh +525 -90
- package/skills/teamsmith/scripts/lib/cmd-bootstrap.sh +71 -10
- package/skills/teamsmith/scripts/lib/cmd-config.sh +562 -128
- package/skills/teamsmith/scripts/lib/cmd-death.sh +2 -15
- package/skills/teamsmith/scripts/lib/cmd-docs.sh +6 -3
- package/skills/teamsmith/scripts/lib/cmd-draft.sh +4 -4
- package/skills/teamsmith/scripts/lib/cmd-help.sh +677 -0
- package/skills/teamsmith/scripts/lib/cmd-init.sh +157 -5
- package/skills/teamsmith/scripts/lib/cmd-interrupt.sh +461 -0
- package/skills/teamsmith/scripts/lib/cmd-meeting.sh +2 -25
- package/skills/teamsmith/scripts/lib/cmd-project.sh +149 -105
- package/skills/teamsmith/scripts/lib/cmd-reap.sh +277 -0
- package/skills/teamsmith/scripts/lib/cmd-reply.sh +96 -0
- package/skills/teamsmith/scripts/lib/cmd-review.sh +188 -40
- package/skills/teamsmith/scripts/lib/cmd-status.sh +268 -30
- package/skills/teamsmith/scripts/lib/cmd-update.sh +36 -7
- package/skills/teamsmith/scripts/lib/cmd-watch.sh +634 -54
- package/skills/teamsmith/scripts/lib/common.sh +1560 -109
- package/skills/teamsmith/scripts/lib/gate-lock.sh +544 -0
- package/skills/teamsmith/scripts/monitor.mjs +34 -3
- package/skills/teamsmith/scripts/panel/README.md +22 -11
- package/skills/teamsmith/scripts/panel/draft-send.sh +11 -1
- package/skills/teamsmith/scripts/panel/panel.js +226 -224
- package/skills/teamsmith/scripts/panel/src/App.tsx +478 -184
- package/skills/teamsmith/scripts/panel/src/clipboard.ts +11 -5
- package/skills/teamsmith/scripts/panel/src/compose.ts +6 -3
- package/skills/teamsmith/scripts/panel/src/data.ts +95 -7
- package/skills/teamsmith/scripts/panel/src/layout.ts +703 -152
- package/skills/teamsmith/scripts/panel/src/main.tsx +129 -19
- package/skills/teamsmith/scripts/panel/src/settings.ts +1 -1
- package/skills/teamsmith/scripts/panel/src/strings/en.ts +76 -31
- package/skills/teamsmith/scripts/panel/src/strings/zh.ts +78 -33
- package/skills/teamsmith/scripts/panel/src/types.ts +204 -17
- package/skills/teamsmith/scripts/replies.mjs +896 -0
- package/skills/teamsmith/scripts/shim/tmux +18 -0
- package/skills/teamsmith/scripts/strings/commands.tsv +86 -0
- package/skills/teamsmith/scripts/strings/help.en.tsv +503 -0
- package/skills/teamsmith/scripts/strings/help.zh.tsv +489 -0
- package/skills/teamsmith/scripts/team +20 -6
- package/skills/teamsmith/templates/AGENTS.section.md.tmpl +23 -3
- package/skills/teamsmith/templates/BOARD.md.tmpl +2 -2
- package/skills/teamsmith/templates/OWNERSHIP.md.tmpl +7 -3
- package/skills/teamsmith/templates/PROTOCOL.md.tmpl +17 -0
- package/skills/teamsmith/templates/config.sh.tmpl +29 -5
- package/skills/teamsmith/templates/memory-seed.md.tmpl +3 -0
- package/skills/teamsmith/templates/pm-prompt.md.tmpl +41 -1
- package/skills/teamsmith/templates/report.md.tmpl +12 -0
- package/skills/teamsmith/templates/task.md.tmpl +4 -0
- package/skills/teamsmith/tests/bg-ledger-harness.mjs +464 -40
- package/skills/teamsmith/tests/bg-ledger.sh +168 -10
- package/skills/teamsmith/tests/checkout-shape-probe.sh +3 -1
- package/skills/teamsmith/tests/config-cli.sh +320 -300
- package/skills/teamsmith/tests/death-cause.sh +5 -2
- package/skills/teamsmith/tests/fixtures/delivery-truth-real/scenario.sh +7 -1
- package/skills/teamsmith/tests/fixtures/p287/lint-good.sh.in +3 -0
- package/skills/teamsmith/tests/fixtures/p287/lint-hardcoded.sh.in +3 -0
- package/skills/teamsmith/tests/fixtures/p287/lint-no-ns.sh.in +3 -0
- package/skills/teamsmith/tests/fixtures/p55/flip-p49.sh +18 -6
- package/skills/teamsmith/tests/flip-m33.sh +5 -3
- package/skills/teamsmith/tests/flip-m37.sh +4 -1
- package/skills/teamsmith/tests/flip-m4.3.sh +4 -1
- package/skills/teamsmith/tests/flip-m6.3.sh +4 -1
- package/skills/teamsmith/tests/flip-m6.5.sh +4 -1
- package/skills/teamsmith/tests/flip-m7.2.sh +4 -1
- package/skills/teamsmith/tests/flip-p158.sh +2 -1
- package/skills/teamsmith/tests/flip-p210.sh +4 -1
- package/skills/teamsmith/tests/flip-p217.sh +4 -1
- package/skills/teamsmith/tests/flip-p287-lock.sh +342 -0
- package/skills/teamsmith/tests/flip-p287-name.sh +279 -0
- package/skills/teamsmith/tests/flip-p304-read-side.sh +98 -0
- package/skills/teamsmith/tests/flip-p308-skip-not-pass.sh +151 -0
- package/skills/teamsmith/tests/flip-p309-p162-deep.sh +122 -0
- package/skills/teamsmith/tests/flip-p310-lock.sh +216 -0
- package/skills/teamsmith/tests/flip-p310-socket.sh +125 -0
- package/skills/teamsmith/tests/help-surface.sh +1664 -0
- package/skills/teamsmith/tests/install-shape.sh +283 -22
- package/skills/teamsmith/tests/key-replies-pty.sh +374 -0
- package/skills/teamsmith/tests/key-replies-ui.sh +325 -0
- package/skills/teamsmith/tests/key-replies.sh +1314 -0
- package/skills/teamsmith/tests/ledger-ban.sh +9 -8
- package/skills/teamsmith/tests/ledger-claim.sh +248 -0
- package/skills/teamsmith/tests/lib/bounded-spin.sh +90 -0
- package/skills/teamsmith/tests/lib/model-policy.sh +30 -0
- package/skills/teamsmith/tests/lib/model-routing-boundary.sh +420 -0
- package/skills/teamsmith/tests/lib/model-routing-expansion.sh +155 -0
- package/skills/teamsmith/tests/lib/model-routing-flips.py +187 -0
- package/skills/teamsmith/tests/lib/model-routing-roles.sh +250 -0
- package/skills/teamsmith/tests/lib/proc-io.sh +103 -0
- package/skills/teamsmith/tests/lib/reply-fixture.sh +367 -0
- package/skills/teamsmith/tests/lib/section-guard.sh +258 -13
- package/skills/teamsmith/tests/lib/tmp-root.sh +139 -27
- package/skills/teamsmith/tests/lib/tmux-cap.sh +10 -1
- package/skills/teamsmith/tests/lib/tmux-iso.sh +39 -13
- package/skills/teamsmith/tests/loop-inventory.tsv +59 -47
- package/skills/teamsmith/tests/panel-b2.sh +107 -4
- package/skills/teamsmith/tests/panel-b3-stub.sh +139 -4
- package/skills/teamsmith/tests/panel-b3.sh +189 -29
- package/skills/teamsmith/tests/panel-choices.sh +81 -63
- package/skills/teamsmith/tests/panel-cpu.sh +3 -2
- package/skills/teamsmith/tests/panel-knobs.sh +7 -1
- package/skills/teamsmith/tests/panel-p21.sh +445 -241
- package/skills/teamsmith/tests/panel-snapshots.sh +41 -225
- package/skills/teamsmith/tests/panel-strings.mjs +33 -18
- package/skills/teamsmith/tests/perf.sh +122 -31
- package/skills/teamsmith/tests/pm-box-real.sh +1 -1
- package/skills/teamsmith/tests/pulse-nudge-key.sh +1 -1
- package/skills/teamsmith/tests/routes.sh +364 -109
- package/skills/teamsmith/tests/seat-interrupt.sh +1002 -0
- package/skills/teamsmith/tests/seat-visibility.sh +675 -0
- package/skills/teamsmith/tests/section-budgets.tsv +26 -12
- package/skills/teamsmith/tests/section-guard.sh +6 -1
- package/skills/teamsmith/tests/section-needs-audit.sh +24 -7
- package/skills/teamsmith/tests/section-paths.tsv +42 -26
- package/skills/teamsmith/tests/section-select.sh +90 -7
- package/skills/teamsmith/tests/slash-team-e2e.sh +323 -0
- package/skills/teamsmith/tests/slash-team.sh +617 -0
- package/skills/teamsmith/tests/smoke.sh +3762 -628
- package/skills/teamsmith/tests/snapshots/zh-dark-120-detail.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-dark-120-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-dark-120.txt +9 -9
- package/skills/teamsmith/tests/snapshots/zh-dark-160-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-dark-160.txt +9 -9
- package/skills/teamsmith/tests/snapshots/zh-dark-59-detail.txt +1 -1
- package/skills/teamsmith/tests/snapshots/zh-dark-59-p4.txt +1 -1
- package/skills/teamsmith/tests/snapshots/zh-dark-59.txt +5 -5
- package/skills/teamsmith/tests/snapshots/zh-dark-99-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-dark-99.txt +5 -5
- package/skills/teamsmith/tests/snapshots/zh-light-120-detail.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-light-120-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-light-120.txt +9 -9
- package/skills/teamsmith/tests/snapshots/zh-light-160-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-light-160.txt +9 -9
- package/skills/teamsmith/tests/snapshots/zh-light-59-detail.txt +1 -1
- package/skills/teamsmith/tests/snapshots/zh-light-59-p4.txt +1 -1
- package/skills/teamsmith/tests/snapshots/zh-light-59.txt +5 -5
- package/skills/teamsmith/tests/snapshots/zh-light-99-p4.txt +2 -2
- package/skills/teamsmith/tests/snapshots/zh-light-99.txt +5 -5
- package/skills/teamsmith/tests/task-header-model.sh +2 -1
- package/skills/teamsmith/tests/task-model-routing.sh +1511 -0
- package/skills/teamsmith/tests/tmp-hygiene.sh +782 -45
- package/skills/teamsmith/tests/tmux-identity-leak.sh +773 -0
- package/skills/teamsmith/tests/tmux-lint-legacy.txt +12 -18
- package/skills/teamsmith/tests/upgrade-recipe.sh +537 -0
- package/skills/teamsmith-init/SKILL.md +43 -43
- package/skills/teamsmith-init/references/bootstrap.md +8 -6
- package/skills/teamsmith-init/templates/bootstrap-prompt.md.tmpl +9 -5
|
@@ -12,9 +12,13 @@
|
|
|
12
12
|
|
|
13
13
|
## Roster
|
|
14
14
|
|
|
15
|
-
| Agent |
|
|
16
|
-
|
|
17
|
-
| <name> |
|
|
15
|
+
| Agent | Long-lived worktree | Scope |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| <name> | `.worktrees/<name>` | <module> |
|
|
18
|
+
|
|
19
|
+
> A seat is a roster name and a directory, **not a model**. Models are the project's task-category policy
|
|
20
|
+
> (`TEAM_TASK_MODELS` in `.pi/team/config.sh`) plus the independent `TEAM_PM_MODEL`; a brief's `category:` selects
|
|
21
|
+
> one, and ownership never follows model strength.
|
|
18
22
|
|
|
19
23
|
## Change process
|
|
20
24
|
|
|
@@ -40,6 +40,23 @@
|
|
|
40
40
|
`team review <ID> --dir <checkout>` runs the gates and writes the evidence.
|
|
41
41
|
- A brief may require stricter commands than the project gates; the brief wins.
|
|
42
42
|
|
|
43
|
+
## Model policy: task categories, not seats
|
|
44
|
+
|
|
45
|
+
- The contract maps **task categories** to models (`TEAM_TASK_MODELS`, e.g. `routine=… analysis=… verify=…`) and
|
|
46
|
+
names one independent `TEAM_PM_MODEL`; a seat is a roster name, not a model identity.
|
|
47
|
+
- The brief's `category:` picks a **new** dispatch's model; `team dispatch --model` overrides it for that launch.
|
|
48
|
+
A same-task recovery keeps the committed model/SID even if the category later leaves the map; a new task citing a
|
|
49
|
+
dropped category is refused. Editing the map changes future selections only.
|
|
50
|
+
- Choose by the work: routine for bounded ordinary implementation, analysis for complex planning/judgment, verify
|
|
51
|
+
for independent adversarial review (a project that uses other names says so in its briefs — the CLI never maps
|
|
52
|
+
phase or seat to a model automatically). Put the rationale in the brief when the choice is not obvious.
|
|
53
|
+
- Shared-token concurrency: strong models are the scarce resource (`TEAM_MODEL_LIMITS`); `team ps` shows the
|
|
54
|
+
current occupancy, so keep the parallel agent count inside the provider quota and queue the rest.
|
|
55
|
+
- A running PM keeps its model until an explicit `team up --fresh-pm`; hand over through disk (brief, report,
|
|
56
|
+
thread, `state/`), not through a session conversation.
|
|
57
|
+
- Changing the project's own contract, launching a fresh PM, landing source on a shared branch/skill path and
|
|
58
|
+
adopting a shared source are **distinct gates**: preview the exact command and get authorization per operation.
|
|
59
|
+
|
|
43
60
|
## Specs (OpenSpec)
|
|
44
61
|
|
|
45
62
|
Specs and change proposals live in `openspec/` (required dependency). `openspec validate --all --strict` is part of
|
|
@@ -11,11 +11,25 @@ TEAM_SESSION="{{SESSION}}" # tmux session name (the PM and every agen
|
|
|
11
11
|
# `team bootstrap` writes this default and renames a differently-named current window instead of inheriting it.
|
|
12
12
|
TEAM_PM_WINDOW="{{PM_WINDOW}}" # window running the PM; notifications are typed into it
|
|
13
13
|
|
|
14
|
-
# ---- roster and
|
|
14
|
+
# ---- roster, task model policy and concurrency ----
|
|
15
15
|
TEAM_AGENTS="{{AGENTS}}"
|
|
16
|
-
#
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
# Task category → model policy (required; `team init --task-models '<map>'` writes it).
|
|
17
|
+
# Categories are the project's own words: "routine=provider/light analysis=provider/strong verify=provider/strong".
|
|
18
|
+
# A new dispatch picks its model from the brief's `category:` line; a same-task recovery keeps the model/SID it was
|
|
19
|
+
# already assigned, even if the map later drops that category. One category: team config set-task-model <category> <model>;
|
|
20
|
+
# the whole map: team config set TEAM_TASK_MODELS '<map>' --yes. The old TEAM_AGENT_MODELS / TEAM_DEFAULT_MODEL keys are
|
|
21
|
+
# retired: an existing project migrates on the next `team up` (the startup transaction derives the pairs, prints them,
|
|
22
|
+
# backs the file up and writes through the same checked writer) or explicitly with
|
|
23
|
+
# `team config upgrade-models --task-models '<map>' --pm-model '<model>'`.
|
|
24
|
+
TEAM_TASK_MODELS=""
|
|
25
|
+
# Independent PM model (required; the PM never falls back to a worker/task model). `team up` guards it with --fresh-pm.
|
|
26
|
+
TEAM_PM_MODEL=""
|
|
27
|
+
# Configuration shape number (written by the tool; do not edit): init/bootstrap write the current one and the
|
|
28
|
+
# startup transaction writes it when it migrates an old shape. A number higher than the tool's newest is refused.
|
|
29
|
+
TEAM_CONFIG_VERSION="{{CONFIG_VERSION}}"
|
|
30
|
+
# team up version notice: 0 = no npm lookup at all (and no cache read/write); every outcome except
|
|
31
|
+
# "local is older" is silent and never changes the exit code. The tool never installs itself.
|
|
32
|
+
TEAM_UPDATE_CHECK=1
|
|
19
33
|
# Concurrency caps ("provider/model=N"): important when a provider quota is small,
|
|
20
34
|
# e.g. "kimi-coding/k3=2 openai-codex/gpt-5.6-sol=1" (wildcards allowed)
|
|
21
35
|
TEAM_MODEL_LIMITS="kimi-coding/k3=2 openai-codex/*=1"
|
|
@@ -46,6 +60,11 @@ TEAM_PI_BIN="pi" # agent CLI binary (use an absolute path i
|
|
|
46
60
|
TEAM_INSTALL_CMD="" # dependency install after creating a worktree, e.g. "pnpm install --frozen-lockfile"
|
|
47
61
|
TEAM_DOCS_DIR="{{DOCS_DIR}}" # where briefs/reports/threads/inbox live
|
|
48
62
|
TEAM_WORKTREES_DIR=".worktrees"
|
|
63
|
+
# Temp root for fixtures/gates (empty = resolve TMPDIR -> this pin -> /var/tmp/teamsmith-<ns>).
|
|
64
|
+
# A TMPDIR in the environment wins over this pin; the divergence is printed, never silent.
|
|
65
|
+
# Only the project file can set it (`team config set` refuses it): moving a location is an operator action.
|
|
66
|
+
# Rollback to the previous default: TEAM_TMP_ROOT="/tmp".
|
|
67
|
+
TEAM_TMP_ROOT=""
|
|
49
68
|
# Branch model: task (default; one branch per task -- the unit of verification/merge/rollback) | agent (one long-lived branch per agent)
|
|
50
69
|
TEAM_BRANCH_MODE="task"
|
|
51
70
|
TEAM_TASK_BRANCH_PREFIX="task"
|
|
@@ -70,6 +89,12 @@ TEAM_MIN_AVAIL_MB=1024 # hard floor for MemAvailable (one machine
|
|
|
70
89
|
TEAM_WARN_AVAIL_MB=4096 # below this MemAvailable: warn only (slowness is acceptable)
|
|
71
90
|
TEAM_ZRAM_WARN_PCT=85 # warn above this zram usage (zram pages live in RAM)
|
|
72
91
|
TEAM_AGENT_MEM_MB=6144 # empirical memory per agent, used by `team ps` estimates
|
|
92
|
+
# Orphan seat processes (P276 · change: orphan-visibility): `team ps`/`status`/`up` report the host-side
|
|
93
|
+
# census of seat processes whose tmux window is gone. The census only reads /proc (no signal, no file
|
|
94
|
+
# written); `team reap` is the separate, explicitly authorized cleanup entry.
|
|
95
|
+
TEAM_ORPHAN_WARN_MB=1024 # at or above this many MB of orphan RSS the digest capacity line carries one hint (0 = never)
|
|
96
|
+
TEAM_ORPHAN_SCAN=1 # 1 = scan for orphan seat processes; 0 = no /proc read at all, one named skip line
|
|
97
|
+
TEAM_ORPHAN_PROC_ROOT="/proc" # fixture-only: the proc root the census reads (tests only)
|
|
73
98
|
TEAM_NOTIFY_TMUX=1 # 0 = write the inbox only, never knock on the PM window
|
|
74
99
|
TEAM_NOTIFY_DEDUP_SEC=20 # dedup window for identical briefings (Pi may settle repeatedly)
|
|
75
100
|
TEAM_INBOX_MAX_CHARS=150
|
|
@@ -98,7 +123,6 @@ TEAM_PULSE_INTERVAL=900 # patrol interval (seconds): 15 minutes by
|
|
|
98
123
|
TEAM_PULSE_NUDGE_GAP=900 # minimum gap before the same backlog is mentioned again (seconds)
|
|
99
124
|
TEAM_PULSE_REBUILD_TMUX=0 # 0 = leave tmux alone (report a missing session/window); 1 = allow rebuilding
|
|
100
125
|
TEAM_PULSE_MAX_RESTARTS=5 # maximum automatic PM restarts per hour (crash-loop guard)
|
|
101
|
-
TEAM_PM_MODEL="" # the PM's own model; empty = TEAM_DEFAULT_MODEL
|
|
102
126
|
TEAM_PM_SESSION_ID="" # empty = `pi -c` (continue the previous session in this directory, keeping history)
|
|
103
127
|
TEAM_PM_EXTRA_PI_ARGS=""
|
|
104
128
|
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
- Project: {{PROJECT}}; main worktree `{{MAIN_ROOT}}`; team docs `{{DOCS_DIR}}`.
|
|
14
14
|
- tmux session/window: `{{SESSION}}:{{PM_WINDOW}}` (PM), agent windows per roster, pulse window `pulse`.
|
|
15
15
|
- Roster: {{AGENTS}}; gates command: `{{GATES}}`.
|
|
16
|
+
- Model policy: task categories → models in `TEAM_TASK_MODELS` (routine for bounded work, analysis for complex
|
|
17
|
+
judgment, verify for independent adversarial review — or this project's own names) plus the independent
|
|
18
|
+
`TEAM_PM_MODEL`. Editing the map changes future selections only; a committed assignment keeps its model/SID.
|
|
16
19
|
- The protected branch `{{PROTECTED_BRANCH}}` is PM-only; one branch per task `task/<ID>-<slug>`.
|
|
17
20
|
- Branch mode: `{{BRANCH_MODE}}`; agent worktrees: `{{WORKTREES_DIR}}/<agent>` (**never move them**: sessions are keyed by cwd).
|
|
18
21
|
|
|
@@ -19,6 +19,27 @@ its line. Commands keep the bare code (`team close M12`) -- there it is a key, n
|
|
|
19
19
|
`team digest` / `team status` / `team roster` already render the name next to the code; use the same shape in your
|
|
20
20
|
own messages. Prefer the BOARD's task column as the name (that is the shared short name), not a fresh description.
|
|
21
21
|
|
|
22
|
+
**Answer the reader's question first, and keep only the sentences that carry their evidence.** Lead with the
|
|
23
|
+
conclusion and the next step; how you got there comes after. A caution, a limitation or a warning stays only when
|
|
24
|
+
it names something checkable — a measurement, a counterexample, a gap in the reasoning, a boundary you did not
|
|
25
|
+
observe; when the evidence no longer supports a claim, say what it does support rather than narrowing the claim,
|
|
26
|
+
and never delete a boundary sentence that carries its fact. Every finding states what it changed — the
|
|
27
|
+
implementation, the next step, the conclusion, or nothing; an observation that changes nothing is not part of the
|
|
28
|
+
answer. Delete what names nothing checkable: what stays is what the reader can verify. See
|
|
29
|
+
`{{SKILL_DIR}}/references/protocol.md` §11b.
|
|
30
|
+
|
|
31
|
+
**Key conclusions: replies written for the user go to the reply page first.** The reader decides what gets
|
|
32
|
+
published -- a landed milestone, an answer to a question, a status or progress report, a conclusion or a ruling, a
|
|
33
|
+
decision you ask the user for, a delivery or verification summary, and any other reply written for the user; a
|
|
34
|
+
short reply is published just like a long one, and a reply is never held back because it reads like process
|
|
35
|
+
rather than like a conclusion. Publish the complete reply -- the substance the user needs to read, not a
|
|
36
|
+
play-by-play of the work -- with
|
|
37
|
+
`team reply post --from pm --title '<short title>' --stdin < <file>`, then send that same body in the conversation.
|
|
38
|
+
Replies written to the patrol, to another seat, to another project's PM and tool receipts are not for the user and
|
|
39
|
+
stay out of the page. When it is not obvious, ask **who is this reply written for?**; if it cannot be settled, treat
|
|
40
|
+
the reply as written for the user. A batch of user-facing replies may be one reply. See
|
|
41
|
+
`{{SKILL_DIR}}/references/protocol.md` §4b.
|
|
42
|
+
|
|
22
43
|
## First moves (on every start / whenever the pulse raises you)
|
|
23
44
|
|
|
24
45
|
```bash
|
|
@@ -36,7 +57,8 @@ If the pulse restarted you: first check the tail of `{{DOCS_DIR}}/../.pi/team/st
|
|
|
36
57
|
`{{DOCS_DIR}}/threads/*.md` entries, work out where you stopped, and **do not redo finished work**.
|
|
37
58
|
|
|
38
59
|
> If the project has never been initialised (no `.pi/team/config.sh`): run `team bootstrap` first
|
|
39
|
-
> (one command: config + docs skeleton + agent worktrees + pulse window + next steps
|
|
60
|
+
> (one command: config + docs skeleton + agent worktrees + pulse window + next steps; a **fresh** project must pass
|
|
61
|
+
> `--task-models '<category=provider/model …>' --pm-model '<provider/model>'` — there is no default model).
|
|
40
62
|
|
|
41
63
|
## Cross-project (you may talk; you may not command)
|
|
42
64
|
|
|
@@ -88,6 +110,24 @@ their repo. **Workers do not attend meetings** — they write `BLOCKED:` in thei
|
|
|
88
110
|
that hold across tasks in project memory (`ctx_memory`) and park "do later" items as notes — but **evidence
|
|
89
111
|
always lives in the files on disk**.
|
|
90
112
|
|
|
113
|
+
## Choosing a model: categories, not seats
|
|
114
|
+
|
|
115
|
+
The contract maps task categories to models (`TEAM_TASK_MODELS`) and names your own model (`TEAM_PM_MODEL`); a seat
|
|
116
|
+
is a roster name, not a model identity. Each brief declares its `category:` — **routine** for bounded ordinary
|
|
117
|
+
implementation, **analysis** for complex planning/judgment, **verify** for independent adversarial review; a project
|
|
118
|
+
may define other names, and the CLI never picks a model from the phase or the seat. A new dispatch selects the
|
|
119
|
+
category's model (`team dispatch --model` overrides that one launch); a complete same-task recovery keeps the
|
|
120
|
+
committed model/SID even after the category leaves the map, while a **new** task citing a dropped category is
|
|
121
|
+
refused. Write the rationale into the brief prose when the choice is not obvious. Strong models are the
|
|
122
|
+
shared-token scarce resource: read `team ps` (model concurrency + `TEAM_MODEL_LIMITS`) before dispatching several
|
|
123
|
+
agents and queue what does not fit; the PM's own model changes only through an explicit `team up --fresh-pm`. Disk
|
|
124
|
+
beats memory across a fresh takeover: brief, report, thread and `state/` carry the work, never a session.
|
|
125
|
+
|
|
126
|
+
Four operations are **separate recorded gates**, each previewed and authorized per command: private source
|
|
127
|
+
verification; landing validated source on a shared/protected tree; writing this project's configuration (and the
|
|
128
|
+
first fresh launch that reads it); and adopting a changed shared skill/copy source — a shared link reads its
|
|
129
|
+
target's current bytes, so changing that target can affect other readers without any installer.
|
|
130
|
+
|
|
91
131
|
## Boundaries
|
|
92
132
|
|
|
93
133
|
- **Act only inside this project / this team session**: do not modify other projects' repos, do not read other
|
|
@@ -18,6 +18,18 @@ $ <command>
|
|
|
18
18
|
|
|
19
19
|
- Verdict: <pass / fail / not run>
|
|
20
20
|
- Notes: what was not verified, known risks, TODOs (**be explicit**: if you did not run it, say so)
|
|
21
|
+
- Ledger ban (fixed acceptance line — run it **in your own worktree, on your branch's tree**):
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
$ bash skills/teamsmith/tests/ledger-ban.sh --names-file "$(git rev-parse --path-format=absolute --git-common-dir)/../.pi/team/forbidden-names.txt"
|
|
25
|
+
ledger-ban: root=… scope=published files=<n> hits=<n> names=ok user=resolved
|
|
26
|
+
$ echo $?
|
|
27
|
+
<rc>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Paste the real `hits=` and `rc` from this tree. **Running it in the main checkout cannot see files that exist
|
|
31
|
+
only on your branch** (a report you just wrote is simply absent there), so a `hits=0` from the main
|
|
32
|
+
checkout is not evidence that the branch's own ledger is clean.
|
|
21
33
|
|
|
22
34
|
## Flip evidence (required for defect-fix tasks)
|
|
23
35
|
|
|
@@ -21,6 +21,10 @@ budget: <one work block; if it runs long, deliver a PARTIAL report rather than s
|
|
|
21
21
|
> The five phases are `explore|propose|apply|verify|archive` and the `phase:` line names the one this brief runs.
|
|
22
22
|
> **An `apply` brief may not start before the PM's proposal review is ACCEPTED** in
|
|
23
23
|
> `{{DOCS_DIR}}/reviews/<change>-proposal.md` (the PM's recorded gate — see the skill's `references/openspec.md`).
|
|
24
|
+
> The `category:` header (written by `team task --category`) selects a **new** dispatch's model from the project's
|
|
25
|
+
> `TEAM_TASK_MODELS`; a same-task recovery keeps its committed model/SID. Choose routine for bounded ordinary
|
|
26
|
+
> implementation, analysis for complex planning/judgment and verify for independent adversarial review (or the
|
|
27
|
+
> project's own category names), and say why in the brief when the choice is not obvious.
|
|
24
28
|
|
|
25
29
|
## Required evidence
|
|
26
30
|
|