skill: replace the lane model with the work queue
The lane machinery is gone: work is a markdown queue, items run in parallel in their own worktrees, the committer stage lands its own work, land-check.sh gates cleanup, branches are never deleted, and pipelines wait (rather than a driver script) is what wakes a session. references/lanes.md becomes references/queue.md; the remaining lane references in work/orchestration/debugging/delivery/format and SKILL.md are rewritten, and the installer now prunes a managed file it no longer bundles when the copy is unmodified.
This commit is contained in:
@@ -6,12 +6,12 @@ pauses, resumes and reports that ledger. Nothing important lives only in the
|
||||
conversation: running the skill again, in any project on this machine, reads the
|
||||
ledger and continues. This is the multi-project lifecycle on top of
|
||||
`references/orchestration.md` (work items, briefs, pipeline choice) and
|
||||
`references/lanes.md` (parallel workspaces).
|
||||
`references/queue.md` (parallel items).
|
||||
|
||||
## Where the ledger lives
|
||||
|
||||
Keep state **outside repositories**, under one work root, so it never collides with a
|
||||
lane's tree or a commit:
|
||||
item's worktree or a commit:
|
||||
|
||||
${XDG_STATE_HOME:-$HOME/.local/state}/pipelines/work/
|
||||
registry.json every project this machine knows
|
||||
@@ -27,7 +27,7 @@ lane's tree or a commit:
|
||||
PAUSED marker: stop dispatching new items
|
||||
|
||||
- `<slug>` is `<basename>-<8 hex of sha256(absolute project root)>`. **Resolve a
|
||||
worktree to its main repository** so a lane shares the project's one ledger.
|
||||
worktree to its main repository** so every item shares the project's one ledger.
|
||||
- `PIPELINES_WORK_DIR` overrides the work root. `registry.json` maps projects to
|
||||
roots; add a project the first time it is worked on and keep it current.
|
||||
- `state.json` holds `project`, `root`, `endpoint` (the CLI's `--url`), `pipeline`
|
||||
@@ -71,12 +71,12 @@ Write every brief exactly as `references/orchestration.md` describes. A brief fi
|
||||
`queue/` may open with up to three directive lines, stripped before the prompt is sent:
|
||||
|
||||
# pipeline: Focused tweak - implement review commit
|
||||
# workspace: /path/to/lane-app2
|
||||
# workspace: /path/to/item-worktree
|
||||
# device: emulator-5556
|
||||
|
||||
Goal: …
|
||||
|
||||
`pipeline` overrides the default for that item; `workspace` routes an item to a lane's
|
||||
`pipeline` overrides the default for that item; `workspace` routes an item to its own
|
||||
checkout (a driver only claims items for its own workspace); `device` is for the
|
||||
brief's own text. Number briefs `0001-…`, `0002-…` so order is explicit.
|
||||
|
||||
@@ -86,7 +86,7 @@ A queue is advanced by a small driver, so work continues while the operator slee
|
||||
Write the driver once per project to `drivers/workd.sh` and launch it; it is
|
||||
restart-safe (it resumes from `done/`, reattaches to `active/` runs by id, and never
|
||||
starts a duplicate), and it stops on the first item that fails twice. Run **one
|
||||
driver per workspace**; several drivers sharing one queue advance different lanes in
|
||||
item at a time per worktree**; several items in their own worktrees advance in
|
||||
parallel because an item is claimed by an atomic rename.
|
||||
|
||||
```sh
|
||||
@@ -97,7 +97,7 @@ parallel because an item is claimed by an atomic rename.
|
||||
#
|
||||
# PROJECT_ROOT identifies the ledger (default: the current directory).
|
||||
# WORKSPACE is the checkout this driver may run in (default: the ledger's
|
||||
# workspace). One driver per workspace lets several lanes advance one shared
|
||||
# workspace). One item per worktree lets several items advance against one shared
|
||||
# queue: an item is claimed by an atomic rename, so it runs exactly once.
|
||||
#
|
||||
# Restart-safe. It resumes from done/, reattaches to active/ runs by id and
|
||||
|
||||
Reference in New Issue
Block a user