@fusebase/harness-lead 0.0.0-stage → 0.2.41

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +190 -0
  2. package/README.md +132 -2
  3. package/dist/lead.mjs +11435 -0
  4. package/package.json +41 -4
  5. package/skills/crew-lead/SKILL.md +5 -0
  6. package/skills/lead/SKILL.md +97 -0
  7. package/skills/lead/delegates/codee/SKILL.md +76 -0
  8. package/skills/lead/delegates/guides/SKILL.md +37 -0
  9. package/skills/lead/references/clean-room.md +10 -0
  10. package/skills/lead/references/delegate.md +41 -0
  11. package/skills/lead/references/goal.md +37 -0
  12. package/skills/lead/references/help.md +29 -0
  13. package/skills/lead/references/init.md +17 -0
  14. package/skills/lead/references/intake.md +38 -0
  15. package/skills/lead/references/mockup-swarm.md +26 -0
  16. package/skills/lead/references/plan.md +66 -0
  17. package/skills/lead/references/project-documents.md +18 -0
  18. package/skills/lead/references/qa.md +31 -0
  19. package/skills/lead/references/reverse.md +29 -0
  20. package/skills/lead/references/review.md +19 -0
  21. package/skills/lead/references/score.md +10 -0
  22. package/skills/lead/references/status.md +8 -0
  23. package/skills/lead/references/sync.md +64 -0
  24. package/skills/lead/references/task.md +73 -0
  25. package/skills/lead/references/visual.md +26 -0
  26. package/skills/lead/references/watch.md +33 -0
  27. package/skills/lead/references/workspace.md +9 -0
  28. package/skills/lead/scorers/mockup_persona/scorer.md +18 -0
  29. package/skills/lead/scorers/qa_pointer_pass/scorer.md +20 -0
  30. package/skills/lead/scorers/task_compliance/scorer.md +17 -0
  31. package/skills/lead/templates/backlog-index.md +20 -0
  32. package/skills/lead/templates/one-pager.md +68 -0
  33. package/skills/lead/templates/task-note.md +35 -0
  34. package/skills/lead-goal/SKILL.md +10 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,190 @@
1
+ # Changelog
2
+
3
+ ## 0.2.41 — 2026-12-02
4
+
5
+ - Publish to npmjs and preserve project-specific registries for other packages.
6
+
7
+ ## 0.2.40 — 2026-12-02
8
+
9
+ - Publish as `@fusebase/harness-lead` from GitLab to the shared FuseBase registry.
10
+ - Update portable launchers and registry updates without changing global npm settings.
11
+ - Migrate an existing `@evercrew/lead` dependency after the replacement kit installs successfully.
12
+
13
+ ## 0.2.39 — 2026-12-01
14
+
15
+ - Share one lead runtime across independent repositories, with a read-only overview and per-thread repository selection.
16
+ - Keep enable and status separate from execution, and read the existing One Pager for adopted projects.
17
+ - Preserve existing note IDs and leave archived folders and legacy Jira records out of routine sync.
18
+ - Publish complete task specifications under the product's Tasks folder and surface missing sections or links in the sync preview. Keep the backlog for proposals.
19
+ - Require the full specification in Jira Story handoffs to Codee.
20
+
21
+ ## 0.2.37 — 2026-12-01
22
+
23
+ - Resume active tasks from `status`, with the last verified step, blockers, evidence, and available independent work.
24
+ - Record browser QA against the checked code and require it before handoff on tasks with declared browser checks.
25
+ - Capture optional mockup persona feedback and ship offline scoring rubrics for task compliance, pointer QA, and mockup feedback.
26
+ - Preview FuseBase and Jira sync actions and reconcile uncertain writes after replanning.
27
+ - Fix the `improve` command and check types and installed CLI commands before publishing.
28
+
29
+ ## 0.2.36 — 2026-11-30
30
+
31
+ - `@evercrew/lead` is publishable to npm. A GitHub Actions workflow publishes on `v*` tags. `pnpm publish:local` publishes from this machine using `EVERCREW_NPM_TOKEN` in `.env`. `update` with no `--from` uses the running package when it is a kit root; otherwise it still clones the git kit.
32
+ - Product repos keep installing a copy into `.lead/` and skills. The npm package is the release channel, not a runtime import.
33
+
34
+ ## 0.2.35 — 2026-11-30
35
+
36
+ - Merge GitHub `main` with the GitLab mirror. Keep mirror work through 0.2.34, and keep the GitHub notes that were not on the mirror: task `owner` on the one-pager, one ask before deep research, and one ask before a Cursor goal on a single task.
37
+
38
+ ## 0.2.34 — 2026-11-30
39
+
40
+ - `activity analyze` summarises `.lead/activity/*.jsonl`: counts by event and task, waits, and starts without an end. `--day`, `--since`, `--json`.
41
+
42
+ ## 0.2.33 — 2026-11-30
43
+
44
+ - Under a Cursor `/goal`, the shipped `lead-goal` skill keeps a three-line heartbeat and appends `.lead/activity/YYYY-MM-DD.jsonl` via `activity`. Lead does not start `/goal`. The log is for later harness analysis (`docs/activity.md`).
45
+
46
+ ## 0.2.32 — 2026-11-30
47
+
48
+ - A delegate's how-to stays in `delegates/<id>/`. Generic lead files may point at the skill; they do not copy that service's statuses, assignees, or handoff steps. Same rule in the harness `AGENTS.md` and in the product AGENTS block.
49
+
50
+ ## 0.2.31 — 2026-11-30
51
+
52
+ - Codee handoff: one home per app (Epic, or one Story under a shared epic). A single deliverable is a Sub-task under that home, not a Task on the shared epic. A breakdown is a Story on `Decomposition Needed`. A checklist in a description is not a handoff.
53
+
54
+ ## 0.2.30 — 2026-11-30
55
+
56
+ - One chat holds a merge with `merge-hold`. The other does not run `glab mr merge` for that repo until the hold is released or 15 minutes old. The merge command stays `glab mr merge <iid> --repo <group/project> --yes`, which matches an allowlist prefix `glab mr merge`.
57
+
58
+ ## 0.2.29 — 2026-11-30
59
+
60
+ - A merge into the default branch is the last command of the turn, after the next independent task. The command is always `glab mr merge <iid> --repo <group/project> --yes`, so the host can allow that shape from then on. A pipeline that is still running does not hold the turn.
61
+
62
+ ## 0.2.28 — 2026-11-30
63
+
64
+ - A reply that is a state, an order, or a wait is drawn in the chat with the host's own visuals. `references/visual.md` names the priority cases (status as a gantt, a pipeline wait, counts, blockers) and leaves every other picture to the agent. No widget library.
65
+
66
+ ## 0.2.27 — 2026-11-29
67
+
68
+ - A new thread in a multi-app repo does not continue the previous app. `.lead/current` is not a choice. Status asks which app to work on, or to create one, until this thread passes `--project` or the command runs inside that app.
69
+
70
+ ## 0.2.26 — 2026-11-29
71
+
72
+ - In `auto`, a finished task is merged into the default branch, including a task in the middle of the milestone. A parent that is not the default branch gets a merge into it. A red pipeline waits.
73
+ - `finish --merged` treats a branch as merged when its commits are on the published default branch (`origin/main` or `origin/HEAD`), not on the current checkout. A missing local service the project already describes is started, not skipped.
74
+
75
+ ## 0.2.25 — 2026-11-29
76
+
77
+ - `auto` follows the procedure already written for the current stage. A pause is only when the next step changes the product, needs the person, is hard to undo, or two plan-following steps lead to different results. Committing and pushing the task branch after its checks pass is the procedure. A menu of "stop" or "later" is not a second path.
78
+
79
+ ## 0.2.24 — 2026-11-29
80
+
81
+ - `mode` is `auto` or `approve`, stored in `.lead/mode` (not in git) and shown on `status`. Until it is set, the first inside-the-plan pause asks once which to use. `auto` does that step and says what it did. A product decision, a missing secret, or a destructive step still asks.
82
+
83
+ ## 0.2.23 — 2026-11-29
84
+
85
+ - A stated choice is consent: a new app asks only for the slug, a named install starts, a request that already asks for later spec stages drafts them, and naming Codee plus the task hands it off.
86
+ - Reverse keeps walking every route, records an unknown image size, and patches a broken vendor init only under `~/.lead/sources`.
87
+ - A Task goes to Codee on `[AI] Ready for development`. A Story goes to Decomposition Needed. Inputs must already be on a pushed branch.
88
+ - `start` copies untracked files of the project into the new worktree. A check that did not run is not a pass.
89
+
90
+ ## 0.2.22 — 2026-11-29
91
+
92
+ - A project keeps `.lead/improve.md`: when lead stops, asks, or does something a kit change would avoid. `improve` prints it; `improve --kind stop|ask|avoidable --where … --what … [--avoid …]` appends one note. Product decisions stay out of it.
93
+
94
+ ## 0.2.20 — 2026-11-28
95
+
96
+ - A done task is ticked on the one-pager. Status badges: ToDo default, In Progress teal, QA amber, Done success, Blocked danger.
97
+
98
+ ## 0.2.18 — 2026-11-28
99
+
100
+ - `/lead status` reports the project state and checks every delegated task with that service's own Check section. It does not start work or mark a task done.
101
+
102
+ ## 0.2.17 — 2026-11-28
103
+
104
+ - `/lead watch` runs a local clock for delegated tasks. Default gap is 15 minutes, shortest is 5. `start`, `stop`, `interval 15m`. `start --close` lets a finished milestone close without asking. The clock marks a check due; it does not call the service.
105
+ - A messenger opens only from a message URL. `/team` and a request for project updates stay on `status` and the board.
106
+
107
+ ## 0.2.16 — 2026-11-28
108
+
109
+ - `/lead` with a Teams, Discord, or Slack message link reads the thread through the connector already in the session, lists the separate requests, and continues as a plan or one task. The kit has no messenger client.
110
+
111
+ ## 0.2.15 — 2026-11-28
112
+
113
+ - `/lead delegate` proposes which open task to hand to which available service, instead of asking an open question.
114
+
115
+ ## 0.2.14 — 2026-11-27
116
+
117
+ - Checking a Codee handoff reviews each linked merge request against the lead task. It does not approve or merge.
118
+
119
+ ## 0.2.13 — 2026-11-27
120
+
121
+ - A handoff to Codee assigns the Jira story to the Codee user, not to the person who runs lead.
122
+
123
+ ## 0.2.12 — 2026-11-27
124
+
125
+ - `/lead delegate` lists services and checks tasks already handed off. A service is a skill, shipped or added under `.lead/delegates/`. A delegated task stays a lead task and is marked with the service on the one-pager. Codee and Guides ship as the first two.
126
+
127
+ ## 0.2.11 — 2026-11-27
128
+
129
+ - Research is a long note (`work/spec/01-research.md`) written and confirmed before flows, architecture and tasks. The one-pager repeats only its conclusions and links the note. Sync publishes it beside the OnePager.
130
+
131
+ ## 0.2.10 — 2026-11-27
132
+
133
+ - Browser QA uses the pointer when computer use is available. Handles left on, a drag that does not stick, and a control with no idle state are failures, not polish for later.
134
+
135
+ ## 0.2.9 — 2026-11-27
136
+
137
+ - `/lead how` prints the project stages as a mermaid waterfall. Dates are a reading order.
138
+
139
+ ## 0.2.8 — 2026-11-27
140
+
141
+ - The push-and-sync offer comes when the user's whole request is done and lead is not waiting on a decision. Finishing one task does not trigger it.
142
+
143
+ ## 0.2.7 — 2026-11-27
144
+
145
+ - After `finish`, lead offers to push the task branch and sync FuseBase and Jira. Nothing is pushed or synced until the person picks that option.
146
+
147
+ ## 0.2.6 — 2026-11-27
148
+
149
+ - A FuseBase checklist item is a checkbox, then a priority badge (wave 1 is High), a status badge, the task text, and the Jira link.
150
+ - The OnePager sent to FuseBase includes a Mermaid gantt. The dates are a reading order, not a plan.
151
+
152
+ ## 0.2.5 — 2026-11-27
153
+
154
+ - Sync: readable names, FuseBase widgets, real links, Jira descriptions with check marks, QA evidence, renames, and a saved copy of each pushed note for a later pull.
155
+
156
+ ## 0.2.4 — 2026-11-27
157
+
158
+ - `/lead` recognises a written spec that waits for confirmation (`confirm_spec`) and asks for it with what each section decides.
159
+ - Every lead reply ends with the next step and options, unasked.
160
+ - Progress: a short line after every step of a task; limits `reviews` (3) and `minutes` (60) stop a long task and ask the person; review findings outside the criteria become new tasks instead of new rounds.
161
+ - Choices come as pickable options (Claude Code's question UI, or a numbered list where "1"/"ok" takes the recommended one); never an open question without options.
162
+ - A question to the person no longer holds up independent ready tasks; after the plan is confirmed, wave 1 starts right away.
163
+
164
+ ## 0.2.3 — 2026-11-27
165
+
166
+ - A link given to the user must be checked first; a background server that may stop at the end of the turn is handed over as a command, not a link.
167
+
168
+ ## 0.2.2 — 2026-11-27
169
+
170
+ - Sync rules name no specific automation: `[AI] …` statuses are avoided because they start a parallel automated process.
171
+
172
+ ## 0.2.1 — 2026-11-27
173
+
174
+ - Codex: `install` writes `.codex/hooks.json` (SessionStart, Stop) next to the Claude Code hooks; verified on Codex CLI 0.172: `$lead` skill, session id from SessionStart, Stop makes the agent record checks. Silent until `lead enable`.
175
+
176
+ ## 0.2.0 — 2026-11-27
177
+
178
+ - **Opt-in per developer.** `lead enable` / `lead disable` (also `/lead enable`); stored in `.lead/enabled`, not in git. While off, the SessionStart and Stop hooks do nothing, so people who do not use lead are not affected.
179
+ - No shared permissions: lead no longer adds allow rules to `.claude/settings.json`, and `update` removes the ones older versions added.
180
+ - `install` no longer creates or edits `CLAUDE.md`; the `AGENTS.md` block says lead is optional.
181
+ - The skill triggers only on `/lead`, `$lead` or an explicit request to use lead.
182
+
183
+ ## 0.1.1 — 2026-11-27
184
+
185
+ - Abandoned work: only a task's own commits and changed files count as activity (a fresh worktree no longer looks active).
186
+ - Status does not offer a ready task whose `touches` overlap a task in progress.
187
+
188
+ ## 0.1.0 — 2026-11-27
189
+
190
+ First release: `/lead`, init, plan by stages, tasks with checks and independent review, browser QA, clean room, sync to FuseBase and Jira, `lead update`, `/lead how`.
package/README.md CHANGED
@@ -1,3 +1,133 @@
1
- # Temporary Holding Version
1
+ # lead
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ lead runs the work of a product repo. State is Markdown in `work/`: a one-pager for people, a board, a spec, and tasks. The agent does not keep the project in the chat. A person types `/lead` in plain words and sees where the project is and what the next step is.
4
+
5
+ The harness stays off for each person until they type `/lead enable`. Hooks stay silent and other people's sessions are left alone.
6
+
7
+ ## How a project moves
8
+
9
+ Each stage starts when the previous one ends. The dates on the diagram are a reading order, not a calendar.
10
+
11
+ ```mermaid
12
+ gantt
13
+ title Project stages
14
+ dateFormat YYYY-MM-DD
15
+ axisFormat %b %d
16
+
17
+ section Plan
18
+ Research :p1, 2026-01-01, 7d
19
+ Flows :p2, after p1, 7d
20
+ Mockups :p3, after p2, 7d
21
+ Acceptance :p4, after p3, 7d
22
+ Architecture :p5, after p4, 7d
23
+ Tasks :p6, after p5, 7d
24
+
25
+ section Build
26
+ Build :b1, after p6, 7d
27
+ Review :b2, after b1, 7d
28
+
29
+ section Accept
30
+ Milestone QA :c1, after b2, 7d
31
+
32
+ section Share
33
+ Sync :s1, after c1, 7d
34
+ ```
35
+
36
+ **Plan.** Research comes first: who the user is, what already exists, constraints, conclusions. When the session already has a deep-research tool (OpenAI, Gemini, or Perplexity), lead asks once before running it. The one-pager repeats only the conclusions. Then flows, mockups, acceptance, architecture, and tasks in waves. A person confirms the spec before code.
37
+
38
+ **Build.** A task runs in its own worktree: code, the repo's checks, an independent review. If the session has a goal mode, lead asks once before using it, and only for that one task, after its acceptance criteria can be checked. The goal stops on a repeated failed check or a limit. Lead still finishes the task. For a screen, review opens a browser; when computer use is available it moves the pointer, not only takes a screenshot. Done means `finish` succeeded: checks recorded, criteria met, review passed.
39
+
40
+ **Milestone QA.** When the milestone's tasks are done, QA walks the milestone. A person decides whether to close it or move the rest forward.
41
+
42
+ **Sync.** `/lead sync` mirrors `work/` to FuseBase and Jira when the project is configured for it. The repo stays the source of truth.
43
+
44
+ A person is needed in four places: confirm the spec, answer a question, merge a branch, close a milestone. When the request as a whole is done, lead offers to push the branches and sync statuses, and waits for the choice.
45
+
46
+ ## What else it does
47
+
48
+ | Command | What it does |
49
+ |---|---|
50
+ | `/lead` | State and the next step |
51
+ | `/lead status` | The same state, plus a live check of every delegated task |
52
+ | `/lead how` | The same diagram, inside the session |
53
+ | `/lead init` | First run in a repo: checks, one project or several |
54
+ | `/lead plan` | Research and the rest of the plan |
55
+ | `/lead <url>` | A Teams, Discord, or Slack message URL: one request from the thread becomes a plan or a task. The word `/team` on its own is not this |
56
+ | `/lead delegate` | Which connected service should take an open task. Today those are Codee and video guides. The owner stays the person who asked. The one-pager shows the person, then the service |
57
+ | `/lead watch start` | A local clock for tasks already delegated, every 15 minutes by default. `start --close` closes a milestone without asking only when every task in it is already done |
58
+ | `/lead qa` | An independent check of a task or a milestone |
59
+
60
+ A service of your own is a skill in `.lead/delegates/<id>/`. A kit update does not replace it.
61
+
62
+ A task counts as demo-ready after it is merged. With `can_show: deployed` in config, it appears on the one-pager only after someone has also marked that they saw it on dev.
63
+
64
+ ## Where things are
65
+
66
+ | Path | Owner | What |
67
+ |---|---|---|
68
+ | `work/one-pager.md` | project | milestones, what can be shown, risks |
69
+ | `work/board.md` | project | ready, in progress, in review, needs a person |
70
+ | `work/spec/` | project | spec stages; do not edit the assembled `work/spec.md` by hand |
71
+ | `work/tasks/` | project | one file per task |
72
+ | `.lead/config.yml` | project | checks, monorepo projects, QA, sync |
73
+ | `.lead/local.md` | project | this repo's rules on top of the kit |
74
+ | `.lead/lead.mjs`, skills | kit | replaced on update |
75
+
76
+ A filled `work/` tree: [examples/text-kit](examples/text-kit).
77
+
78
+ ## Install
79
+
80
+ Node 22. The kit is one file, `dist/lead.mjs`, with no runtime dependencies. Agents still need a copy of the skills inside the product repo; the npm package is how you get a release, not a library to import.
81
+
82
+ From npm:
83
+
84
+ ```sh
85
+ cd /path/to/repo
86
+ pnpm add -D -E @fusebase/harness-lead@latest
87
+ pnpm exec lead install .
88
+ ```
89
+
90
+ From a kit checkout:
91
+
92
+ ```sh
93
+ git clone https://gl.nimbusweb.co/agents/teamlead-harness.git ~/.lead/kit
94
+ node ~/.lead/kit/dist/lead.mjs install /path/to/repo
95
+ cd /path/to/repo
96
+ ```
97
+
98
+ In Claude Code, accept the folder trust prompt once, then:
99
+
100
+ ```
101
+ /lead enable
102
+ /lead init
103
+ ```
104
+
105
+ `init` finds the check commands, asks whether the repo is one project or several, writes `.lead/config.yml`, and asks where to start. After that, `/lead` is enough. A single product (one app, or a monorepo that is still one product) stays without `projects.glob`. A catalog of independent apps sets `projects.glob`.
106
+
107
+ Codex uses the same skills through `$lead` and the hooks in `.codex/hooks.json` (CLI 0.172+). Trust the project and its hooks once. A task worktree writes into `.git`, so start Codex with `--add-dir "$(git rev-parse --git-common-dir)"`. A clean room, where the agent is denied the source it is not supposed to read, depends on the Claude Code sandbox.
108
+
109
+ Update the copy inside a product repo:
110
+
111
+ ```sh
112
+ pnpm exec lead update # when lead is installed as a pnpm dependency
113
+ node .lead/lead.mjs update # also works for a standalone install
114
+ node .lead/lead.mjs update --from ~/.lead/kit
115
+ ```
116
+
117
+ By default, `update` fetches `@fusebase/harness-lead@latest` and runs that release's installer. If the root package already declares lead, the command uses pnpm or npm to update its exact version and lockfile. Without the dependency, it uses a temporary npm install, including for projects installed from a Git checkout. Use `--from` to choose a local kit or Git source explicitly.
118
+
119
+ For the first upgrade from a version that predates this behavior, update the dependency once with `pnpm add -D -E @fusebase/harness-lead@latest` (add `-w` at a workspace root) and run `pnpm exec lead update --from ./node_modules/@fusebase/harness-lead`.
120
+
121
+ Kit files are replaced. These are kept: `.lead/config.yml`, `.lead/local.md`, `.lead/local/*.md`, `work/`, and skills in `.lead/delegates/`. A kit file edited by hand is kept, and the new version is placed in `.lead/update/`. Move your text to `.lead/local/` and run `update --force`.
122
+
123
+ If hooks stay silent, lead is off for that person (`/lead enable`) or the folder is not trusted. `node .lead/lead.mjs doctor` checks the setup. FuseBase and Jira sync uses the person's own access; without it lead works locally and says what is missing.
124
+
125
+ For several independent checkouts, create a workspace catalog `.lead/workspace.yml` at their common parent with `version: 1` and a `repositories` mapping from names to relative checkout paths. Run the built CLI with `workspace deploy --cwd /path/to/workspace`, then use `workspace attach <repo>` for each new checkout. Attached repositories keep their project state and portable launcher, and the workspace owns the runtime. In a workspace-root thread, `workspace use <repo> --session <id>` binds activity to that repository. Use `workspace overview` to read across the catalog. See [Lead workspace](skills/lead/references/workspace.md) for client routing and app selection.
126
+
127
+ ## Registry access and publication
128
+
129
+ The package is published from the GitLab source repository to npmjs as `@fusebase/harness-lead`. The portable launcher and `lead update` fetch it from npmjs without changing the registry used by other `@fusebase` packages in your projects.
130
+
131
+ The GitLab tag pipeline runs checks and publishes matching version tags using `CI_JOB_TOKEN`; project 838 must allow this repository's job token. A new version is immutable: bump `package.json`, update the changelog, create a matching tag, and push it. `pnpm publish:dry` checks the package locally without publishing; `pnpm publish:local` uses existing npm authentication.
132
+
133
+ To work on the kit itself: `pnpm install`, `pnpm build`, `pnpm test`, `pnpm lint`. Design notes: [docs/adr](docs/adr).