@fusebase/harness-lead 0.3.0 → 0.3.3
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/CHANGELOG.md +28 -0
- package/dist/lead.mjs +1490 -1113
- package/package.json +1 -1
- package/skills/lead/SKILL.md +1 -1
- package/skills/lead/delegates/codee/SKILL.md +3 -1
- package/skills/lead/references/qa.md +2 -0
- package/skills/lead/references/status.md +2 -2
- package/skills/lead/references/watch.md +12 -1
package/package.json
CHANGED
package/skills/lead/SKILL.md
CHANGED
|
@@ -60,7 +60,7 @@ Stop and ask only when the next step is not determined:
|
|
|
60
60
|
- it is hard to undo (delete history, force-push, discard someone else's uncommitted work);
|
|
61
61
|
- two next steps both follow the plan and lead to different results.
|
|
62
62
|
|
|
63
|
-
Within an authorized task, auto mode commits its files and pushes its task branch. Auto-merge only a merge request opened in this session, with green required checks and pipeline for the reviewed revision, an accepted diff and no open safety objection. Verify the MR target against repository or CI configuration for dev deployment. Leave the merge to the user if the target is unverified, the session did not open the MR, or permissions prevent the merge. Do not retarget an MR to qualify it or create or push a production tag. For a failing or running pipeline, continue independent work and report what is pending. Sync to shared notes needs its own authorization.
|
|
63
|
+
Within an authorized task, auto mode commits its files and pushes its task branch. Auto-merge only a merge request opened in this session, with green required checks and pipeline for the reviewed revision, an accepted diff and no open safety objection. Verify the MR target against repository or CI configuration for dev deployment. Leave the merge to the user if the target is unverified, the session did not open the MR, or permissions prevent the merge. A merge request this session did not open is merged only when the user named it, or said to merge the existing reviewed requests, in this conversation, and every other condition above holds. Do not retarget an MR to qualify it or create or push a production tag. For a failing or running pipeline, continue independent work and report what is pending. Sync to shared notes needs its own authorization.
|
|
64
64
|
|
|
65
65
|
Use `finish --merged` after verifying that the task commits reached the published default branch (`origin/main` or `origin/HEAD`). A merge to another dev branch can be reported while the task stays open. For a delegated task without a branch name, record the ref containing its commits once you verify default-branch inclusion, then run `finish --merged`.
|
|
66
66
|
|
|
@@ -20,7 +20,7 @@ Codee is a worker that polls Jira and runs Claude on issues in `[AI]` statuses.
|
|
|
20
20
|
Codee polls the issue type and the `[AI]` status. It does not read a checklist in a description. Keep the board of the shared epic readable: one home for the app, not a sibling Task for every lead task.
|
|
21
21
|
|
|
22
22
|
1. **Home of the app.** Prefer one Jira **Epic** per app. If the repo still uses one shared epic (`sync.jira.epic`) with **one Story per app** under it, that Story is the home. Do not invent a third home.
|
|
23
|
-
2. **One deliverable, no breakdown** → a **Sub-task** under that home Story. Assignee Codee. Status `[AI] Ready for development`. Prefer the existing sync sub-task for this lead task when it already exists; otherwise create one. Do **not** create a Task or Story as a child of the shared epic next to the app Story.
|
|
23
|
+
2. **One deliverable, no breakdown** → a **Sub-task** under that home Story, but only when the home Story is assigned to Codee. Codee does not pick up a Sub-task under a Story that belongs to someone else: create a separate Story under the epic for it (rule 3) and put the Sub-task there. Assignee Codee. Status `[AI] Ready for development`. Prefer the existing sync sub-task for this lead task when it already exists; otherwise create one. Do **not** create a Task or Story as a child of the shared epic next to the app Story.
|
|
24
24
|
3. **Needs a breakdown** → a **Story** under the app's Epic (or under `sync.jira.epic` when that is still the only epic). Assignee Codee. Status `Decomposition Needed` so the planner runs. Do not send a Story with no subtasks to `[AI] Ready for development`.
|
|
25
25
|
4. A checklist or task list in the description is not a handoff. Codee will not see it.
|
|
26
26
|
5. There is no issue type above Epic in this Jira. Several app epics are linked with a label or `relates` to a list page, not nested under a parent epic.
|
|
@@ -68,6 +68,8 @@ On an auto watch tick, perform the following after the Check, in the same turn w
|
|
|
68
68
|
- **`[AI] Ready for Human Review`.** Move a passing issue to Ready for QA on Develop after reviewing the diff and seeing green required checks for the current revision. A parent Story can pass after its required children pass. For shared MRs, record the verdict against each issue's own criteria. Return only the child whose own acceptance fails to `[AI] Ready for development`, with the unmet criterion and evidence. A running pipeline or inconclusive evidence is a named blocker. Leave the merge to the separate merge workflow.
|
|
69
69
|
- **Story in human review with a required child back in development.** Check the current statuses of the Story and its required children, including after any child transition on this tick. If a required child is in `[AI] Ready for development` or `[AI] In Progress` while the parent remains in human review, Codee may wait on the parent. Report the child's summary and request any required approval to transition the parent to `[AI] Ready for development`. Recheck both statuses before applying the approved transition. Leave passing siblings and any blocked QA subtask in their current states. If a child is only blocked or its evidence is inconclusive, report the blocker and keep the Story in review.
|
|
70
70
|
- **QA subtask blocked on named dev merges.** Read the blocker and the current state of every dependency it names. For each required merge, verify that the merged commit is reachable from the repository's actual dev deployment branch and that a successful pipeline on that branch includes that commit. If deployment is a separate step, verify the dev deployment also includes it. If a named dependency is back in development, a merge or pipeline is missing, or another blocker remains, leave QA blocked and report the specific dependency and evidence.
|
|
71
|
+
- **Review-ready dependency or QA ticket.** On every check, process each implementation or QA-dependency ticket that is ready for review, including a merge request in another repository that a QA subtask names. Review the current diff, the pipeline, and the deployed evidence where it applies; reproduce the relevant check independently and separate code checks from a live rollout. With no finding or open risk, record the verdict and move the ticket to its next status, including Done for a verified merged dependency. With a concern, tag the responsible person in Jira with the finding, the evidence and the decision needed. Do not leave a ticket in review because a monitor only listed it.
|
|
72
|
+
- **QA subtask blocked on a dependency that is still open.** Trace each prerequisite to the failing job, deployment, or Jira issue and verify the cause before waiting. If the dependency is an existing To Do issue that suits Codee and the handoff is authorized, assign it to Codee and move it to `[AI] Ready for development` with the evidence and a concrete verification check. After the fix lands, verify the expected build on the required environment, then move only the eligible QA subtasks to Ready for QA. Escalate only an unresolved decision or missing access.
|
|
71
73
|
- Once all of that QA subtask's prerequisites are satisfied, prepare a Jira comment with the verified branch, commit and pipeline links for each dependency. Request any required approval for the comment and the exact `[AI] Ready for QA` transition. When authorized, post the evidence and transition only that still-blocked QA subtask in the same turn. Recheck its current status before writing. If the comment already exists after a partial attempt, reuse it and request approval for the remaining write as required.
|
|
72
74
|
|
|
73
75
|
## Confirmation video on dev
|
|
@@ -29,3 +29,5 @@ Use when `.lead/config.yml` has `qa` (`run`, `url`, `ready`) and the change touc
|
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Required checks must all pass for the checked code before `finish` can hand off the task. After code changes, repeat the affected QA and record the full result for the new code.
|
|
32
|
+
|
|
33
|
+
Run the QA yourself. Do not report QA as "ready" or as the person's next step while checks the agent can run are still unrun. Use the real app and a browser with the test identities the person or `.lead/local.md` approved. Before a deployment, run the relevant local or stage checks and record which scenarios need a deployed build. After verifying the deployed revision, run the rest and attach the evidence. Stop only on a specific access blocker, and name it.
|
|
@@ -4,5 +4,5 @@ Report status and end the turn. This also applies to “статус проек
|
|
|
4
4
|
|
|
5
5
|
1. From `status --json`, say the state in a few lines: project, milestone, wave, what is ready, in review, waiting for a person. For an interrupted or blocked task use `recovery` to show the last verified step, the blocker, its evidence, and the next action. Offer `independentReady` when work can continue elsewhere. Draw it with `references/visual.md`.
|
|
6
6
|
2. For an adopted project, read `overview.source` and lead with the dated status, the current milestone, what's landed and what still needs verification. Label the CLI task counts as the local lead list. The One Pager and tracker can cover work outside that list. A scaffolded draft does not block existing work.
|
|
7
|
-
3. Check external services only when the person asks for live status. Use their read-only check and report the result without recording changes.
|
|
8
|
-
4. End with the next decision supported by the evidence. Wait for the person.
|
|
7
|
+
3. Check external services only when the person asks for live status. For a delegated issue in human review, follow the service skill: review the current diff and pipeline and report the verdict per issue, not only that it is waiting. Use their read-only check and report the result without recording changes.
|
|
8
|
+
4. End with the next decision supported by the evidence. When blockers are known and actionable (a conflicted request to return to its owner, a failing check to fix), offer to resolve them as the first option; the status itself still changes nothing. Wait for the person.
|
|
@@ -19,7 +19,7 @@ Run `node .lead/lead.mjs watch ...` for the same words. State is `.lead/watch.js
|
|
|
19
19
|
2. For each task that is not `done`, follow the Check section of its service skill. A due watch in auto mode can also perform documented follow-up when the decision is already made and the required authorization is in place. If approval is required, report the exact proposed changes and wait. Explicit status and delegate checks are read-only.
|
|
20
20
|
3. Record the service status, ref, date, and any action taken or required under `## Notes` in the task file. Then run `board`.
|
|
21
21
|
4. Do not merge on a watch tick or mark a task done from the service status. `finish --merged` only when the branch is already merged, the same rule as any other task.
|
|
22
|
-
5. After assessing the actionable items, run `node .lead/lead.mjs watch ack` so the same tick is not done twice.
|
|
22
|
+
5. After assessing the actionable items, run `node .lead/lead.mjs watch ack --acted` when you took or required any action, or `node .lead/lead.mjs watch ack --idle` when there was nothing to do, so the same tick is not done twice. The flag feeds the probe comparison below; state it honestly.
|
|
23
23
|
6. Report changes and actionable waits even when the status stayed the same. Name the open question, failed check, or approval needed and who can resolve it. Do not post to a messenger.
|
|
24
24
|
|
|
25
25
|
## Closing a milestone
|
|
@@ -31,3 +31,14 @@ With `--close`, when every task of the current milestone is `done`, say that it
|
|
|
31
31
|
## A check while nobody has a session open
|
|
32
32
|
|
|
33
33
|
The clock only marks the check due. To run it with no chat open, set `LEAD_WATCH_COMMAND` in the environment of the process that starts the watch to a headless agent command whose prompt is: read `references/watch.md` and run the due check in this repo. The kit does not pick that command.
|
|
34
|
+
|
|
35
|
+
## Probe (shadow)
|
|
36
|
+
|
|
37
|
+
`node .lead/lead.mjs watch probe` is a pass over the delegated tasks that spends no model tokens. It reads cheap facts, fingerprints them and says whether an agent would have anything to do:
|
|
38
|
+
|
|
39
|
+
- Merge requests: every merge request address found in the task file, through `glab api` (state, head commit, pipeline, conflicts, open discussions).
|
|
40
|
+
- Tracker: a command the person provides in `LEAD_WATCH_JIRA_COMMAND`. It is called with an issue key and prints `{"status": "...", "updated": "...", "comments": 3}`. The kit holds no tracker credentials; without the command the tracker source is unreadable and every tick wakes an agent.
|
|
41
|
+
|
|
42
|
+
Verdicts: `quiet` (nothing changed since the last acknowledged check), `new`, `forced` (no acknowledged check for 24 hours), `unknown` (a source could not be read, never treated as quiet), and for a change `conflict`, `ci_failed`, `review`, `blocked`, `dev_check`, `clarification`, `qa`, `done`, `changed`. Any change in the facts, including a new commit or comment, wakes an agent.
|
|
43
|
+
|
|
44
|
+
`watch probe shadow` makes each clock tick also record what the probe would have decided (`.lead/logs/watch-probe.jsonl`, not in git). **Shadow never skips a check**: the agent still runs it as above. `watch probe report` compares the two: a tick the probe called quiet but an agent acted on is a probe bug. The report says "ready" only after 7 days, 200 ticks, no such miss, and few unreadable sources or unannotated acknowledgements. Nothing switches checks off yet; `watch probe off` stops recording. `watch probe --dry` runs one pass without recording.
|