From 3df0d3de7b14e87f897e3205f4289941dd10518b Mon Sep 17 00:00:00 2001 From: Sergio Alexander Florez Galeano Date: Mon, 16 Nov 2026 17:47:01 -0500 Subject: [PATCH 1/3] chore: adopt DeepWorkPlan 8.0.0 (herdr-peers 2.1.0, ak 1.5.0 pins) ## Summary Refresh the vendored DeepWorkPlan pack to the stable v8.0.0 release (DWP standard 8.0.0; new plans default to plan-contract/v8, existing plans keep their generation). ## Change Log - Vendored .agents/skills/deepworkplan/ at v8.0.0 via the tree-URL skills install; all 188 files verified against the release SHA256SUMS (digest cb877b16...) - skills-lock.json: ref v8.0.0, computedHash from the real skills CLI - Addon registry: herdr v2.1.0, agentkit v1.5.0, devcontainer v1.3.0, dependency-upgrade and design-system v8.0.0 (mirrors the descriptors) - dev.sh host install hint: herdr-peers v2.1.0 - AGENTS.md and the skills catalog: version, standard and v8 default ## Risks - Agent tooling only; nothing ships to CLI users Co-Authored-By: Claude Opus 5.5 --- .agents/docs/skills_agents_catalog.md | 4 +- .agents/skills/deepworkplan/SKILL.md | 21 +- .agents/skills/deepworkplan/TRUST.md | 19 +- .agents/skills/deepworkplan/addons/README.md | 6 +- .../deepworkplan/addons/agentkit/SKILL.md | 16 +- .../deepworkplan/addons/agentkit/SPEC.md | 8 +- .../deepworkplan/addons/agentkit/addon.json | 2 +- .../addons/agentkit/templates/INTEGRATION.md | 2 +- .../addons/ai-diff-reviewer/SKILL.md | 2 +- .../deepworkplan/addons/dailybot/SKILL.md | 12 +- .../deepworkplan/addons/dailybot/SPEC.md | 8 +- .../addons/dailybot/templates/INTEGRATION.md | 8 +- .../addons/dependency-upgrade/SKILL.md | 2 +- .../addons/design-system/SKILL.md | 2 +- .../deepworkplan/addons/devcontainer/SKILL.md | 14 +- .../deepworkplan/addons/devcontainer/SPEC.md | 16 +- .../addons/devcontainer/addon.json | 2 +- .../skills/deepworkplan/addons/herdr/SKILL.md | 24 +- .../skills/deepworkplan/addons/herdr/SPEC.md | 16 +- .../deepworkplan/addons/herdr/addon.json | 23 +- .../deepworkplan/addons/herdr/install.md | 10 +- .../deepworkplan/addons/machine-installs.md | 18 +- .../skills/deepworkplan/addons/vim/SKILL.md | 2 +- .agents/skills/deepworkplan/author/SKILL.md | 2 +- .agents/skills/deepworkplan/create/SKILL.md | 10 +- .agents/skills/deepworkplan/create/v6.md | 74 +- .agents/skills/deepworkplan/execute/SKILL.md | 6 +- .agents/skills/deepworkplan/execute/debate.md | 2 +- .../skills/deepworkplan/execute/delegation.md | 8 +- .agents/skills/deepworkplan/execute/v6.md | 48 +- .agents/skills/deepworkplan/guide/GUIDE.md | 24 +- .agents/skills/deepworkplan/onboard/SKILL.md | 6 +- .agents/skills/deepworkplan/onboard/addons.md | 10 +- .agents/skills/deepworkplan/refine/SKILL.md | 10 +- .agents/skills/deepworkplan/resume/SKILL.md | 2 +- .agents/skills/deepworkplan/shared/config.py | 12 +- .../skills/deepworkplan/shared/contract_v6.py | 250 +++- .agents/skills/deepworkplan/shared/ledger.py | 200 ++- .../deepworkplan/shared/progress_header.py | 189 +++ .agents/skills/deepworkplan/shared/queue.py | 294 +++++ .../skills/deepworkplan/shared/resources.py | 8 +- .../skills/deepworkplan/shared/scheduler.py | 13 +- .agents/skills/deepworkplan/spec/ADDONS.md | 20 +- .../deepworkplan/spec/AGENT_PROTOCOL.md | 4 +- .../skills/deepworkplan/spec/ARCHETYPES.md | 4 +- .agents/skills/deepworkplan/spec/CONFIG.md | 6 +- .../spec/DOCUMENTATION_STANDARD.md | 16 +- .../deepworkplan/spec/DWP_SPECIFICATION.md | 6 +- .../skills/deepworkplan/spec/LITE_PLANS.md | 4 +- .../deepworkplan/spec/LOOP_ENGINEERING.md | 174 +++ .../skills/deepworkplan/spec/PLAN_STATE.md | 10 +- .agents/skills/deepworkplan/spec/README.md | 24 +- .../skills/deepworkplan/spec/V6_LIFECYCLE.md | 15 +- .../skills/deepworkplan/spec/V7_ABILITIES.md | 8 +- .../skills/deepworkplan/spec/V7_CONTRACT.md | 6 +- .../skills/deepworkplan/spec/V7_ROADMAP.md | 2 +- .../schema/addon-descriptor-v1.schema.json | 19 +- .../spec/schema/journal-event-v8.schema.json | 1093 +++++++++++++++++ .../spec/schema/plan-contract-v8.schema.json | 551 +++++++++ .../spec/schema/plan-snapshot-v8.schema.json | 361 ++++++ .agents/skills/deepworkplan/status/SKILL.md | 2 +- .agents/skills/deepworkplan/upgrade/SKILL.md | 4 +- .agents/skills/deepworkplan/verify/SKILL.md | 7 +- .../deepworkplan/verify/compliance_audit.py | 13 +- .../skills/deepworkplan/verify/conformance.sh | 8 +- .../deepworkplan/verify/plan_contract.py | 22 +- .dwp/config.json | 10 +- AGENTS.md | 4 +- dev.sh | 2 +- skills-lock.json | 4 +- 70 files changed, 3526 insertions(+), 278 deletions(-) create mode 100644 .agents/skills/deepworkplan/shared/progress_header.py create mode 100644 .agents/skills/deepworkplan/shared/queue.py create mode 100644 .agents/skills/deepworkplan/spec/LOOP_ENGINEERING.md create mode 100644 .agents/skills/deepworkplan/spec/schema/journal-event-v8.schema.json create mode 100644 .agents/skills/deepworkplan/spec/schema/plan-contract-v8.schema.json create mode 100644 .agents/skills/deepworkplan/spec/schema/plan-snapshot-v8.schema.json diff --git a/.agents/docs/skills_agents_catalog.md b/.agents/docs/skills_agents_catalog.md index 14c71a96..e0620821 100644 --- a/.agents/docs/skills_agents_catalog.md +++ b/.agents/docs/skills_agents_catalog.md @@ -42,7 +42,7 @@ The full pack lives under [`.agents/skills/dailybot/`](../skills/dailybot/) (rou ### Deep Work Plan skill pack (vendored from [`DailybotHQ/deepworkplan-skill`](https://github.com/DailybotHQ/deepworkplan-skill)) -The full pack lives under [`.agents/skills/deepworkplan/`](../skills/deepworkplan/) (router + 9 sub-skills + addons). Vendored at **v7.12.1** (DWP standard **7.0.0**). The router auto-routes by intent — read [`skills/deepworkplan/SKILL.md`](../skills/deepworkplan/SKILL.md) and let it pick the right sub-skill. Each sub-skill is independently invocable, and each has a short `dwp-*` alias in [`.agents/commands/`](../commands/) for ergonomic typing. +The full pack lives under [`.agents/skills/deepworkplan/`](../skills/deepworkplan/) (router + 9 sub-skills + addons). Vendored at **v8.0.0** (DWP standard **8.0.0**; installed with the tree-URL form, all 188 files verified against the release `SHA256SUMS`, digest `cb877b16…`). The router auto-routes by intent — read [`skills/deepworkplan/SKILL.md`](../skills/deepworkplan/SKILL.md) and let it pick the right sub-skill. Each sub-skill is independently invocable, and each has a short `dwp-*` alias in [`.agents/commands/`](../commands/) for ergonomic typing. | Slug | Procedure | Use when | |------|-----------|----------| @@ -123,4 +123,4 @@ Persona definitions. Use these as the system prompt / role when spawning a sub-a ## Dogfood reconciliation — 2026-11-16 -DeepWorkPlan v7.12.1, AI Diff Reviewer v3.3.16 and Dailybot skill v3.23.20 are pinned in `skills-lock.json` (dailybot sits one patch ahead of the pack's v3.23.17 floor). The pack's herdr addon pins herdr-peers v1.3.1 — 1.2.x added `herdr-peers autopilot` and 1.3.x adds `--loop`, `--notify`, the read-only `plans`/`fleet` verbs and the fleet UI; autopilot stays an optional daemon only a human starts; the pack's Dailybot notifier accepts the daemon's `herdr-peers/plan-event-v1` schema (fixed in pack 7.12.1) — and the addon registry follows that pack pin. The `dev.sh` host install hint is one step ahead of the pack pin at herdr-peers **v2.0.0** (protocol 2: lead appointment `--appoint`, the opt-in fail-closed `--brain`, the `dwp-queue-v1` plan-queue consumer); the registry and the pack descriptor align again at pack 8.0.0 — until then the vendored addon's detect step treats a protocol-2 binary as not available (fail-closed), pausing the pack's herdr features without breaking anything else (coding-agents-kit is pinned at v1.4.0, where `ak update` is documented as human-invoked only). The container is **not** re-rendered: devcontainer-kit stays v1.0.1 and still embeds herdr-peers v1.0.0 (with coding-agents-kit v1.0.1; DeepWorkPlan Vim v1.0.0 remains a container editor layer), so host tools and the container embeds disagree on herdr-peers until dck ships a newer release. The addon registry records agentkit v1.4.0, devcontainer v1.1.2, herdr v1.3.1 and vim v1.0.1, with the pack addons (dependency-upgrade, design-system) at v7.12.1. Repository hooks, review rules, design documentation and historical plans are preserved. +DeepWorkPlan v8.0.0, AI Diff Reviewer v3.3.16 and Dailybot skill v3.23.20 are pinned in `skills-lock.json` (dailybot matches the pack's agent-skill descriptor at v3.23.20). The pack's herdr addon pins herdr-peers **v2.1.0** and accepts protocol 1 or 2 — 1.2.x added `herdr-peers autopilot`, 1.3.x adds `--loop`, `--notify`, the read-only `plans`/`fleet` verbs and the fleet UI, 2.0.x moves the wire to protocol 2 (lead appointment `--appoint`, the opt-in fail-closed `--brain`, the `dwp-queue-v1` plan-queue consumer) and 2.1.0 adds the fleet UI views and the v8 blocker classes; autopilot stays an optional daemon only a human starts. The `dev.sh` host install hint, the addon registry and the pack descriptor all agree on herdr-peers v2.1.0; the pack descriptors pin coding-agents-kit v1.5.0 (`ak update` stays documented as human-invoked only), devcontainer-kit v1.3.0 and DeepWorkPlan Vim v1.0.1. The container is **not** re-rendered: this repository's rendered devcontainer still embeds herdr-peers v1.0.0 (with coding-agents-kit v1.0.1; DeepWorkPlan Vim v1.0.0 remains a container editor layer), so host tools and the container embeds disagree on herdr-peers until the container is re-rendered from a newer devcontainer-kit release. The addon registry records agentkit v1.5.0, devcontainer v1.3.0, herdr v2.1.0 and vim v1.0.1, with the pack addons (dependency-upgrade, design-system) at v8.0.0. Repository hooks, review rules, design documentation and historical plans are preserved. diff --git a/.agents/skills/deepworkplan/SKILL.md b/.agents/skills/deepworkplan/SKILL.md index 4e1cbbf4..dc55bcb8 100644 --- a/.agents/skills/deepworkplan/SKILL.md +++ b/.agents/skills/deepworkplan/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan description: DeepWorkPlan — turn any repo AI-first and run Deep Work Plans. Routes to create, execute, refine, resume, status, verify, upgrade, and repo-onboarding sub-skills based on intent. Use when the developer wants to plan, execute, manage, or verify structured multi-task work, or make a repository AI-agent-ready. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write @@ -10,17 +10,12 @@ metadata: {"openclaw":{"emoji":"🧠","homepage":"https://deepworkplan.com","req # DeepWorkPlan — Methodology Skill (Router) -Models matter; context matters more. The **DeepWorkPlan** skill turns any -repository into a structured environment — context, guardrails, and a durable -plan — where any coding agent executes reliably on short or long work. It makes -the repository "AI-first" — `AGENTS.md` + `docs/` + per-module docs + `.agents/` -(with the `.claude → .agents` and `.cursor → .agents` symlinks) — and runs structured **Deep Work -Plans**: Lite plans for bounded work and Full task-file plans for longer work; -an AI agent creates, refines, executes task-by-task, -and resumes. All plan output lands in a gitignored `.dwp/` directory -at the repo root (`.dwp/plans/`). +The repository is the harness. +**Spec-first, loop-closed: the repository is the harness and the plan runs itself to done.** Plans are Lite (bounded work) or Full (task files, longer work). Planning is spec-first per episode: the plan precedes the code, with acceptance criteria, as git-ignored, exportable `.dwp/plans/` state any agent can resume, not a maintained specification. Loop engineering registers a lead and its succession; an optional daemon a human starts nudges without adding authority. Plans run within their recorded authority and gates; the method works alone. -Source of truth: . License: MIT. +DWP measures the instruction bytes each flow loads. It has not shown a general saving in provider tokens. + +Source: . ## Start here (first run) @@ -160,8 +155,8 @@ developer which they mean before routing. or mutate files — regardless of how they are invoked. - **Plan generation is detected, never assumed.** A plan folder carrying a `manifest.json` contract pointer, a `contract.json`, or a `contracts/` - revision chain is **v6** (contract generation v6 or v7, - `spec/V7_CONTRACT.md`) — create and execute route it through their + revision chain is **v6** (contract generation v6–v8, + `spec/V6_LIFECYCLE.md`) — create and execute route it through their `v6.md` loops (contract, journal, scheduler, verified closure). Anything else keeps the recorded v5 lifecycle, is never migrated silently, and a v5-only runner that meets a v6 plan reports it as unsupported rather diff --git a/.agents/skills/deepworkplan/TRUST.md b/.agents/skills/deepworkplan/TRUST.md index 112597dd..9ed86144 100644 --- a/.agents/skills/deepworkplan/TRUST.md +++ b/.agents/skills/deepworkplan/TRUST.md @@ -13,7 +13,7 @@ Source of truth: · License: MIT. A **Markdown-first** agent skill: the "code" is the `SKILL.md` prompt files an agent reads at runtime, plus a small set of local helpers. Two Bash: `setup.sh` (symlinking, at the repository root, not inside the pack) and, inside the pack, -`shared/context.sh` for repo/branch/`.dwp/` detection. Twenty Python (stdlib +`shared/context.sh` for repo/branch/`.dwp/` detection. Twenty-two Python (stdlib only, Python 3.9+), all inside the pack: `verify/conformance.sh` and its `verify/plan_contract.py` for the read-only conformance check, `verify/compliance_audit.py` for the read-only compliance audit of finished @@ -36,12 +36,14 @@ each step atomic and resumable, never rewriting a different contract or another generation's manifest; it also captures each task's starting fingerprint at `task_start` and executes both legs of a declared control pair, materializing the old leg as a detached worktree -at that recorded revision; for v7 plans its `delegate` command records -delegation launches and results behind a gate — v7 contract, +at that recorded revision; for v7 and v8 plans its `delegate` command records +delegation launches and results behind a gate — a v7-or-later contract, `agent_delegation` grant, `parallel_safe` task or read-only delegate, an enabled and detected transport addon — and **never runs a delegate itself**: the transport addon does, and a delegate's result stays -`asserted` until this ledger's own gate observes it), `shared/views.py` +`asserted` until this ledger's own gate observes it; for v8 plans its +`block` and `unblock` commands are the only writers of structured blocker +records and re-project `state.json` — they run nothing), `shared/views.py` rendering the deterministic generated views under the human-edit rule, `shared/scheduler.py` — the read-only authorization core that turns journal records into dispatch/refusal decisions (it never writes and never executes @@ -76,6 +78,15 @@ prints one action per addon; it writes nothing and installs nothing; and notifier: it reads one `plan-event-v1` JSON document on stdin and, only when the Dailybot CLI is installed, sends one report through it — every other case (no CLI, invalid input, failed send) exits 0 silently; and +`shared/queue.py`, the plan queue (dwp-queue-v1): the only writer of +`.dwp/queue.json` — create appends on approval, execute marks a plan +started on a task start while it is still queued and done after its closure, create/refine may +skip with a note — an atomic 0600 write, and a read of anything that is not +a valid bounded document is a quiet none; and +`shared/progress_header.py`, the v8 `PROGRESS.md` header writer: it reads +the plan's records read-only and rewrites only the four header lines under +the title of that plan's `PROGRESS.md` (atomic; the body below is never +touched; `--check` writes nothing); and `shared/migrate_v6.py`, the explicit v5 → v6 migration helper — preview, guarded resumable migrate, verified rollback. It never executes anything: a v5 gate record is imported through the ledger writer as `imported` diff --git a/.agents/skills/deepworkplan/addons/README.md b/.agents/skills/deepworkplan/addons/README.md index 45279d2d..d4e65863 100644 --- a/.agents/skills/deepworkplan/addons/README.md +++ b/.agents/skills/deepworkplan/addons/README.md @@ -78,13 +78,13 @@ An addon MAY additionally ship per-stack presets, examples, or migration notes. | Addon | Folder | Status | |-------|--------|--------| -| Devcontainer support | [`addons/devcontainer/`](devcontainer/SKILL.md) | **Authored** — vendor-neutral thin integrator of devcontainer-kit (`dck`, pinned `v1.1.2`, interface 2): detect with `dck doctor --json`, offer the kit and its tag-pinned `dck-dockerfile` skill, reason service/runtime/ports/agents from the real stack, render the repository's own layout (`.devcontainer/devcontainer.json`, `docker/local//Dockerfile`, `docker/local/docker-compose.yaml`, `dev.sh`) from the official runtime image pinned by digest — no shared base image required; `dck init` reconciles an existing layout (consented diffs, backups — never clobbered), optional Herdr container profile, validation with a real build. Loopback ports, agent forwarding, no host `~/.ssh` mounts (the developer's own `[ssh] copy_keys` opt-in in their host profile aside), no privileged options. Never required. | +| Devcontainer support | [`addons/devcontainer/`](devcontainer/SKILL.md) | **Authored** — vendor-neutral thin integrator of devcontainer-kit (`dck`, pinned `v1.3.0`, interface 2): detect with `dck doctor --json`, offer the kit and its tag-pinned `dck-dockerfile` skill, reason service/runtime/ports/agents from the real stack, render the repository's own layout (`.devcontainer/devcontainer.json`, `docker/local//Dockerfile`, `docker/local/docker-compose.yaml`, `dev.sh`) from the official runtime image pinned by digest — no shared base image required; `dck init` reconciles an existing layout (consented diffs, backups — never clobbered), optional Herdr container profile, validation with a real build. Loopback ports, agent forwarding, no host `~/.ssh` mounts (the developer's own `[ssh] copy_keys` opt-in in their host profile aside), no privileged options. Never required. | | Dailybot integration | [`addons/dailybot/`](dailybot/SKILL.md) | **Authored** — opt-in install of the Dailybot agent skill (**3.23.20**) / CLI (**>= 3.9.0**), auth **deferred** to the Dailybot skill's own consent flow, **four lifecycle events** (kickoff, significant task, blocked, completion) wired as optional best-effort reports via the `report` sub-skill, optional deterministic hook enforcement, and access to the full 17-capability Dailybot skill when invoked directly. The core methodology has **zero** Dailybot dependency. | | Dependency upgrade | [`addons/dependency-upgrade/`](dependency-upgrade/SKILL.md) | **Authored** — **near-default**, **package-manager-agnostic** dependency upgrades: offered for every repo with declared dependencies, with the inert `/lib-upgrade` delegator installed under the onboarding consent unless explicitly declined (an install runs no upgrade). When invoked: detect the repo's real manager (npm/pnpm/yarn + ncu, pip/poetry/uv, cargo, go mod, bundler, composer…), classify by semver, upgrade in safe batches, run the repo's **real** validation gate after each batch, revert a failing batch, summarize. | | Design system | [`addons/design-system/`](design-system/SKILL.md) | **Authored** — opt-in, **interface-surface-scoped** `DESIGN.md` at `docs/DESIGN.md` (indexed from `AGENTS.md`; root only if no `docs/` tree), covering three profiles in one file: **visual-ui** (design tokens from CSS vars / Tailwind config / token files / component styles; WCAG AA contrast), **cli-output** (semantic terminal styles, output components, TTY/`NO_COLOR` degradation), and **conversational** (voice & register, message anatomy, per-platform rendering with plain-text fallbacks). Reason about the repo's **real** design source — never a brand file — and reconcile an existing `DESIGN.md` instead of clobbering it. Offered by `onboard` **only when an interface surface is detected** — the offer is mandatory, not skippable, with the detection rationale recorded — and every profile (**visual-ui** strongly recommended) installs only after explicit acceptance, never auto-applied. | | AI Diff Reviewer | [`addons/ai-diff-reviewer/`](ai-diff-reviewer/SKILL.md) | **Authored** — **required local review** (baseline since 2.3.0): tag-pinned install of the vendored `DailybotHQ/ai-diff-reviewer` skill (currently **v3.3.16**; workflows pin the moving `@v3`; marketplace listing "AI Diff Reviewer") plus a repo-tailored `.review/extension.md`, wired into the Final Review's security pass; the CI Action (Flow B — same prompt bytes as the local pass, methodology and severity parity) and the `apply-review` / `address-review` companions stay an explicit opt-in. | -| Herdr | [`addons/herdr/SKILL.md`](herdr/SKILL.md) | **Authored** — thin integrator, explicit opt-in offered in `onboard` Phase 7b, pinned to `herdr-peers@v1.3.1` (protocol/interface 1, detected with `herdr-peers --version`; Herdr's official skill pinned `herdrdev/herdr@v0.9.3`): the **interactive** delegation transport of v7 plans — one `herdr-peers ask` to a peer pane on any machine, recorded in the plan journal before it is relied on, the reply asserted until the plan's own gates observe the work. The peer protocol and native debate sub-skill live in herdr-peers; this folder carries no copy. Its default decision mode: a plan settles each consequential decision through a herdr-peers decide debate, planned as an approved decision task, falling back to the agent's own record without blocking (`SPEC.md` §6.4; off with `config.py decisions debate off`). Never required. | -| agentkit | [`addons/agentkit/SKILL.md`](agentkit/SKILL.md) | **Authored** — thin integrator, explicit opt-in offered in `onboard` Phase 7b, pinned to `coding-agents-kit@v1.4.0` (interface 1, detected with `ak doctor --json`): the **headless** delegation transport of v7 plans — one `ak run` per delegate in a dedicated git worktree, recorded through `ledger.py delegate`, result asserted until the plan's own gates observe it. Install by a clone of the exact tag + `install.sh`. The kit launches agents in autonomy by default and its `--ask` / `AGENTKIT_PERMISSIONS=ask` opt-out always wins; the pack spells no autonomy flag and passes only `--ask` — always for a read-only delegate, and for writing delegates when a plan records the opt-out. Never required. | +| Herdr | [`addons/herdr/SKILL.md`](herdr/SKILL.md) | **Authored** — thin integrator, explicit opt-in offered in `onboard` Phase 7b, pinned to `herdr-peers@v2.1.0` (protocol/interface 1 or 2, detected with `herdr-peers --version`; Herdr's official skill pinned `herdrdev/herdr@v0.9.3`): the **interactive** delegation transport of v7 plans — one `herdr-peers ask` to a peer pane on any machine, recorded in the plan journal before it is relied on, the reply asserted until the plan's own gates observe the work. The peer protocol and native debate sub-skill live in herdr-peers; this folder carries no copy. Its default decision mode: a plan settles each consequential decision through a herdr-peers decide debate, planned as an approved decision task, falling back to the agent's own record without blocking (`SPEC.md` §6.4; off with `config.py decisions debate off`). Never required. | +| agentkit | [`addons/agentkit/SKILL.md`](agentkit/SKILL.md) | **Authored** — thin integrator, explicit opt-in offered in `onboard` Phase 7b, pinned to `coding-agents-kit@v1.5.0` (interface 1, detected with `ak doctor --json`): the **headless** delegation transport of v7 plans — one `ak run` per delegate in a dedicated git worktree, recorded through `ledger.py delegate`, result asserted until the plan's own gates observe it. Install by a clone of the exact tag + `install.sh`. The kit launches agents in autonomy by default and its `--ask` / `AGENTKIT_PERMISSIONS=ask` opt-out always wins; the pack spells no autonomy flag and passes only `--ask` — always for a read-only delegate, and for writing delegates when a plan records the opt-out. Never required. | | DeepWorkPlan Vim | [`addons/vim/SKILL.md`](vim/SKILL.md) | **Authored** — thin integrator, explicit opt-in offered in `onboard` Phase 7b, pinned to `deepworkplan-vim@v1.0.1` (interface 1, read from the product's `addon/surface.json`). Optional machine-level install of DeepWorkPlan Vim, the terminal editor for Deep Work Plan (Neovim 0.12+, GPL-3.0, its own repo `DailybotHQ/deepworkplan-vim`): detect it through the product's surface, offer — never impose — the editor, guide the documented install (macOS/Linux via the product's install page `https://deepworkplan.com/vim` — download, verify the pinned checksum, run, never a remote-installer pipe spelled in this pack's text; Windows `winget install Neovim.Neovim` + a tagged clone, never piped PowerShell), and validate the installed surface (command index, VS Code gestures, plan browser, markdown viewer). Two routes: the full editor now, the Neovim plugin in v7.1. An existing Neovim config is **never** overwritten without explicit consent — non-interactive installs onto an existing config abort with instructions; backups go to `~/.config/previous-deepworkplan-vim`. Never a conformance gate. | > This README is the mechanism doc. The first addon, `addons/devcontainer/`, is diff --git a/.agents/skills/deepworkplan/addons/agentkit/SKILL.md b/.agents/skills/deepworkplan/addons/agentkit/SKILL.md index 38b15ebe..111c3310 100644 --- a/.agents/skills/deepworkplan/addons/agentkit/SKILL.md +++ b/.agents/skills/deepworkplan/addons/agentkit/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-agentkit -description: Optional DeepWorkPlan addon that integrates coding-agents-kit (the `ak` command, DailybotHQ/coding-agents-kit pinned at v1.4.0, interface 1) as the headless delegation transport - a thin integrator that detects the kit through `ak doctor --json`, offers it (never imposes it) from onboard Phase 7b, documents the install from a clone of the pinned tag plus the kit's install.sh, records the acceptance in the .dwp/config.json addon registry, and maps a v7 plan's delegation operations (launch, observe, collect, cancel) onto one `ak run` per delegate in a dedicated git worktree. Never required, never a conformance gate. The kit launches agents in autonomy by default and its opt-out (--ask or AGENTKIT_PERMISSIONS=ask) always wins; the pack spells no CLI autonomy flag, never passes --auto, and passes --ask always for a read-only delegate and for writing delegates when a plan records the opt-out. -version: "7.12.1" +description: Optional DeepWorkPlan addon that integrates coding-agents-kit (the `ak` command, DailybotHQ/coding-agents-kit pinned at v1.5.0, interface 1) as the headless delegation transport - a thin integrator that detects the kit through `ak doctor --json`, offers it (never imposes it) from onboard Phase 7b, documents the install from a clone of the pinned tag plus the kit's install.sh, records the acceptance in the .dwp/config.json addon registry, and maps a v7 plan's delegation operations (launch, observe, collect, cancel) onto one `ak run` per delegate in a dedicated git worktree. Never required, never a conformance gate. The kit launches agents in autonomy by default and its opt-out (--ask or AGENTKIT_PERMISSIONS=ask) always wins; the pack spells no CLI autonomy flag, never passes --auto, and passes --ask always for a read-only delegate and for writing delegates when a plan records the opt-out. +version: "8.0.0" documentation_url: https://deepworkplan.com/kit/agentkit user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write @@ -13,7 +13,7 @@ metadata: {"openclaw":{"emoji":"🧰","homepage":"https://deepworkplan.com/kit/a Integrate **coding-agents-kit** — one command surface (`ak`) for every terminal coding agent (claude, codex, cursor, opencode, pi, cline, grok and their provider variants, multiple accounts through profiles) — as the -**headless** transport a v7 plan may use to delegate a `parallel_safe` +**headless** transport a v7 or v8 plan may use to delegate a `parallel_safe` task. This is an **opt-in addon**, never required for a repo to be AI-first and never a conformance gate: without it every task runs in the current session exactly as before. @@ -26,7 +26,7 @@ DWP); everything this addon relies on is the kit's frozen **interface 1** | Pin | Value | |-----|-------| | Product | `DailybotHQ/coding-agents-kit` | -| Tag | `v1.4.0` (autonomy by default since `v0.2.0`; accounts, `ak usage`, `ak pick`, `ak profiles --json`, `--trust-cwd` and the `agentkit-orchestrate` skill since `v0.5.0`; Cursor's Linux login and Claude's `keychain` login kind since `v0.5.1`; a default account per CLI, `AGENTKIT_DEFAULT_PROFILE_`, since `v0.5.2`; Codex started with `--no-daemon` when a shared home records a daemon from another machine, since `v0.5.3`; `ak capacity` with its usage cache, `ak lease` and `ak pick --owner` since `v0.6.0`; `ak capacity --self` inside Codex lanes, `ak pick --owner` counting the owner's own leases with `--reuse @profile` for a successor, one account per kind and profile, and Grok folder trust since `v0.6.1`; Antigravity quota and every account listed in `ak usage` since `v0.7.0`; a profile's suffixed credential variable counted as its login since `v0.7.1`; the first stable release, its interface committed to semantic versioning, `v1.0.0`; every profile, `@default` included, its own account inside a devcontainer-kit container, since `v1.0.1`; `ak usage` listing the measurable blocks first since `v1.1.0`; Herdr restoring a pane through `ak` — same account, key and permission posture after a reboot or Herdr restart, `AGENTKIT_HERDR_RESUME=0` turns it off — and `ak last` relaunching the newest session of that directory in any terminal since `v1.2.0`; the daemon-facing surface — `ak pick --kinds KIND,... --json` (pick-v2: the first kind in priority order with a qualifying account, the exact `launch.argv` and `launch.permissions` auto|ask) and the provider-neutral `--model` head flag mapped to each CLI's own (codex `-m`) since `v1.3.0`; `ak update ` — the verified vendor update against the CLI's default home, whatever profile is active (the fix for updaters that resolve relative to a profile CODEX_HOME) — since `v1.4.0`. `ak update` is human-invoked only, never run by a daemon (the kit's SECURITY.md says so)) | +| Tag | `v1.5.0` (autonomy by default since `v0.2.0`; accounts, `ak usage`, `ak pick`, `ak profiles --json`, `--trust-cwd` and the `agentkit-orchestrate` skill since `v0.5.0`; Cursor's Linux login and Claude's `keychain` login kind since `v0.5.1`; a default account per CLI, `AGENTKIT_DEFAULT_PROFILE_`, since `v0.5.2`; Codex started with `--no-daemon` when a shared home records a daemon from another machine, since `v0.5.3`; `ak capacity` with its usage cache, `ak lease` and `ak pick --owner` since `v0.6.0`; `ak capacity --self` inside Codex lanes, `ak pick --owner` counting the owner's own leases with `--reuse @profile` for a successor, one account per kind and profile, and Grok folder trust since `v0.6.1`; Antigravity quota and every account listed in `ak usage` since `v0.7.0`; a profile's suffixed credential variable counted as its login since `v0.7.1`; the first stable release, its interface committed to semantic versioning, `v1.0.0`; every profile, `@default` included, its own account inside a devcontainer-kit container, since `v1.0.1`; `ak usage` listing the measurable blocks first since `v1.1.0`; Herdr restoring a pane through `ak` — same account, key and permission posture after a reboot or Herdr restart, `AGENTKIT_HERDR_RESUME=0` turns it off — and `ak last` relaunching the newest session of that directory in any terminal since `v1.2.0`; the daemon-facing surface — `ak pick --kinds KIND,... --json` (pick-v2: the first kind in priority order with a qualifying account, the exact `launch.argv` and `launch.permissions` auto|ask) and the provider-neutral `--model` head flag mapped to each CLI's own (codex `-m`) since `v1.3.0`; `ak update ` — the verified vendor update against the CLI's default home, whatever profile is active (the fix for updaters that resolve relative to a profile CODEX_HOME) — since `v1.4.0`. `ak update` is human-invoked only, never run by a daemon (the kit's SECURITY.md says so)) | | Interface | `1` (`ak doctor --json` → `"interface": 1`) | | Registry key | `agentkit` (`.dwp/config.json` → `addons.agentkit`) | | Transport | `headless` — provides `subagents`, `cancel_children`, `model_routing`; requires the `agent_delegation` grant | @@ -43,7 +43,7 @@ DWP); everything this addon relies on is the kit's frozen **interface 1** - **`onboard` Phase 7b** offers it as an explicit opt-in when the developer wants a plan to hand bounded tasks to other coding agents. -- **`execute`** uses it only through `delegation.md`, only on a v7 plan whose +- **`execute`** uses it only through `delegation.md`, only on a v7 or v8 plan whose contract grants `agent_delegation`, only for a `parallel_safe` task (or a read-only delegate), and only when `resources.py abilities` shows `addon:agentkit` as a `subagents` source. @@ -116,7 +116,7 @@ Declining is a complete answer. ### Step 2 — Install (pinned; point-don't-run by default) ``` -git clone --branch v1.4.0 https://github.com/DailybotHQ/coding-agents-kit +git clone --branch v1.5.0 https://github.com/DailybotHQ/coding-agents-kit ./coding-agents-kit/install.sh ``` @@ -131,7 +131,7 @@ re-detect afterwards. ### Step 3 — Record -`python3 ../../shared/config.py enable agentkit --version v1.4.0 --repo `. +`python3 ../../shared/config.py enable agentkit --version v1.5.0 --repo `. Delegation still needs each plan's contract to grant `agent_delegation` — enabling the addon grants nothing. @@ -253,7 +253,7 @@ room once per task boundary with `ak usage @ --json`. ## Validation checklist (component 4 — mirrored from SPEC §8) 1. `SKILL.md`, `SPEC.md`, `addon.json`, `templates/INTEGRATION.md` exist; - the descriptor pins `DailybotHQ/coding-agents-kit` `v1.4.0`, interface 1, + the descriptor pins `DailybotHQ/coding-agents-kit` `v1.5.0`, interface 1, transport `headless`. 2. Detection is read-only and reports `interface` 1, or one warning. 3. Install used the pinned tagged clone + `install.sh`; nothing piped. diff --git a/.agents/skills/deepworkplan/addons/agentkit/SPEC.md b/.agents/skills/deepworkplan/addons/agentkit/SPEC.md index 68b10b68..9b9fa170 100644 --- a/.agents/skills/deepworkplan/addons/agentkit/SPEC.md +++ b/.agents/skills/deepworkplan/addons/agentkit/SPEC.md @@ -4,7 +4,7 @@ This document is the normative specification of the DeepWorkPlan **agentkit addon**: an opt-in thin integrator of **coding-agents-kit** -(`ak`), used as the **headless** delegation transport of v7 plans +(`ak`), used as the **headless** delegation transport of v7 and v8 plans (`../../spec/V7_CONTRACT.md`). The kit is a separate product with its own repository, license and release cycle; this addon is the DWP-side integration contract only: detection, the offer, the pinned install, the @@ -17,7 +17,7 @@ registry record and the mapping of the four delegation operations onto |-------|-------| | **Version** | 0.2.0 | | **Status** | Stable — autonomy by default (coding-agents-kit `v0.2.0` and later) | -| **Product pin** | `DailybotHQ/coding-agents-kit` `v1.4.0`, interface `1` | +| **Product pin** | `DailybotHQ/coding-agents-kit` `v1.5.0`, interface `1` | | **Companions** | `SKILL.md`, `addon.json`, `templates/INTEGRATION.md`, `../README.md`, `../../spec/ADDONS.md`, `../../spec/V7_ABILITIES.md`, `../../execute/delegation.md` | ## 1. Conventions @@ -53,7 +53,7 @@ kit** is coding-agents-kit; **the addon** is this folder. complete and writes nothing. - The documented install is the pinned tagged clone plus the kit's installer: - `git clone --branch v1.4.0 https://github.com/DailybotHQ/coding-agents-kit` then + `git clone --branch v1.5.0 https://github.com/DailybotHQ/coding-agents-kit` then `./coding-agents-kit/install.sh` (Windows: `install.ps1`). A fetch-and-execute pipeline **MUST NOT** appear anywhere in this pack's text. The addon **MUST NOT** install coding-agent CLIs on its own. @@ -165,7 +165,7 @@ minor version (`v0.2.0`), and SPEC 0.2.0 describes it. 1. `SKILL.md`, `SPEC.md`, `addon.json`, `templates/INTEGRATION.md` exist; `addon.json` validates with key `agentkit`, product - `DailybotHQ/coding-agents-kit` `v1.4.0`, interface 1, transport + `DailybotHQ/coding-agents-kit` `v1.5.0`, interface 1, transport `headless`. 2. Detection is read-only; interface 1 or one warning. 3. Install used the pinned tagged clone; no pipeline anywhere in the text. diff --git a/.agents/skills/deepworkplan/addons/agentkit/addon.json b/.agents/skills/deepworkplan/addons/agentkit/addon.json index f7a74f61..d3f6763b 100644 --- a/.agents/skills/deepworkplan/addons/agentkit/addon.json +++ b/.agents/skills/deepworkplan/addons/agentkit/addon.json @@ -1,7 +1,7 @@ { "schema": "https://deepworkplan.com/schema/addon-descriptor/v1.json", "key": "agentkit", - "product": { "repo": "DailybotHQ/coding-agents-kit", "tag": "v1.4.0", "interface": 1 }, + "product": { "repo": "DailybotHQ/coding-agents-kit", "tag": "v1.5.0", "interface": 1 }, "detect": { "command": "ak doctor --json", "interface_from": "json:interface" }, "provides_abilities": ["subagents", "cancel_children", "model_routing"], "requires_grants": ["agent_delegation"], diff --git a/.agents/skills/deepworkplan/addons/agentkit/templates/INTEGRATION.md b/.agents/skills/deepworkplan/addons/agentkit/templates/INTEGRATION.md index beb3c98f..b27de66b 100644 --- a/.agents/skills/deepworkplan/addons/agentkit/templates/INTEGRATION.md +++ b/.agents/skills/deepworkplan/addons/agentkit/templates/INTEGRATION.md @@ -1,6 +1,6 @@ # Template — one headless delegate through `ak` (reason, don't copy-paste) -Reasoning guidance for running ONE delegate of a v7 plan through +Reasoning guidance for running ONE delegate of a v7 or v8 plan through coding-agents-kit. Fill every `` from the plan and the machine; never guess. Preconditions are in `../../../execute/delegation.md` (grant, `parallel_safe` or read-only, `addon:agentkit` in the effective diff --git a/.agents/skills/deepworkplan/addons/ai-diff-reviewer/SKILL.md b/.agents/skills/deepworkplan/addons/ai-diff-reviewer/SKILL.md index 0683ee47..529e5230 100644 --- a/.agents/skills/deepworkplan/addons/ai-diff-reviewer/SKILL.md +++ b/.agents/skills/deepworkplan/addons/ai-diff-reviewer/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-ai-diff-reviewer description: "DeepWorkPlan addon — required local review (baseline since standard 2.3.0), optional CI surface — connects an AI-first repo to the AI Diff Reviewer. Onboarding installs the vendored coding-agent skill and extension with consent; the Final Review runs the local pass when present or records a missing-reviewer finding without bootstrapping. Flow B CI setup remains an explicit opt-in delegated to upstream. Invocation errors never block, completed-review critical findings still follow the Final Review contract, and all install/auth/wizard details defer to upstream consent flows." -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/addons/dailybot/SKILL.md b/.agents/skills/deepworkplan/addons/dailybot/SKILL.md index 212c7e88..2d29294c 100644 --- a/.agents/skills/deepworkplan/addons/dailybot/SKILL.md +++ b/.agents/skills/deepworkplan/addons/dailybot/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-dailybot description: Optional DeepWorkPlan addon that connects an AI-first repo to the developer's Dailybot team — installing (with consent) the Dailybot agent skill (DailybotHQ/agent-skill, currently 3.23.20) and/or the Dailybot CLI (DailybotHQ/cli, >= 3.9.0), wiring the plan lifecycle into best-effort agent updates - kickoff when a plan starts, significant task completions, a blocked report when an unattended run halts, and a milestone on plan completion - with payloads derived from the plan's state layer, and optionally committing the Dailybot skill's deterministic hook enforcement (dailybot hook lifecycle hooks) so the agent harness itself reminds agents about unreported work. Opt-in, never required, never blocks the work, reconciles existing setups instead of clobbering them, and defers all auth to the Dailybot skill's own consent flow. Use when the developer or team already uses Dailybot and wants DWP progress visible to humans. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write @@ -161,8 +161,10 @@ This is the integration value. Reasoning guidance is in 2. **Significant task** (MAY, regular) — a feature/bug fix/major refactor completes; intermediate setup tasks are never reported. 3. **Blocked** (SHOULD, regular with `blockers`) — the plan halts on a stop - condition and `state.json.blocked` is populated (typical of unattended - runs): the team sees *what is stuck and what it needs* in the standup + condition and `state.json.blocked` is populated — on a v8 plan, + `state.json.blocker` (the v8 snapshot has no `blocked` object, and its + held task reads `blocked`, not `in_progress`) — typical of unattended + runs: the team sees *what is stuck and what it needs* in the standup instead of discovering a silent overnight halt. 4. **Completion** (SHOULD, the only **milestone**) — via the dailybot `report` sub-skill (`dailybot agent update ... --milestone --json-data @@ -175,7 +177,9 @@ This is the integration value. Reasoning guidance is in - Where the plan carries the machine-readable state layer (`../../spec/PLAN_STATE.md`), derive the `--json-data` payload from `state.json`: `completed` from completed tasks (phrased as outcomes), - `in_progress` from the current task, `blockers` from `state.json.blocked`. + `in_progress` from the current task, `blockers` from `state.json.blocked` + (on a v8 plan, `state.json.blocker`, and the blocked task is the current + one). - Every event MUST be **best-effort and conditional**: it fires only if the Dailybot skill/CLI is present, authenticated and reporting is authorized, and it **MUST NOT block** `create` or `execute` if Dailybot is absent, unauthenticated, or unreachable — diff --git a/.agents/skills/deepworkplan/addons/dailybot/SPEC.md b/.agents/skills/deepworkplan/addons/dailybot/SPEC.md index 3fe245b0..2489ace8 100644 --- a/.agents/skills/deepworkplan/addons/dailybot/SPEC.md +++ b/.agents/skills/deepworkplan/addons/dailybot/SPEC.md @@ -182,7 +182,7 @@ execution documentation (the generated `AGENTS.md` reporting section and/or |-------|---------|-------|-------------| | **Kickoff** | A plan is materialized and approved (`create` Step 5), or its first `execute` turn begins | regular | **SHOULD** | | **Significant task** | A task that is independently significant completes — a feature, a bug fix, a major refactor (`execute` Step 5). Intermediate setup tasks are **not** reported. | regular | **MAY** | -| **Blocked** | The plan halts on a stop condition and `state.json.blocked` is populated (`AGENT_PROTOCOL.md` §7.3, `PLAN_STATE.md` §4.4) — typical of unattended runs | regular, with `blockers` populated | **SHOULD** | +| **Blocked** | The plan halts on a stop condition and `state.json.blocked` is populated — `state.json.blocker` on a v8 plan (`AGENT_PROTOCOL.md` §7.3, `PLAN_STATE.md` §4.4, `LOOP_ENGINEERING.md` §3) — typical of unattended runs | regular, with `blockers` populated | **SHOULD** | | **Completion** | All tasks `[x]`; the plan finishes (`execute` Step 7) | **milestone** | **SHOULD** | - The **kickoff** report describes *what is being built and why it matters* @@ -191,7 +191,8 @@ execution documentation (the generated `AGENTS.md` reporting section and/or - The **blocked** report is the unattended profile's escalation made human: the team sees *what is stuck and what it needs* in the standup channel instead of discovering a silent overnight halt. Its content **MUST** come from - `state.json.blocked` (`reason`, `needs`). + `state.json.blocked` (`reason`, `needs`), or from `state.json.blocker` on a + v8 plan (the same `reason` and `needs`, plus its class). - A plan **completion** is the only **milestone**; every other event is a regular report. A plan **MUST NOT** emit more than one kickoff and one completion report. @@ -205,7 +206,8 @@ The report command shape is - When the plan carries the machine-readable state layer (`PLAN_STATE.md`), `--json-data` **SHOULD** be derived from `state.json`: `completed` from the completed tasks (phrased as outcomes, not task numbers), `in_progress` from - the task currently `in_progress`, and `blockers` from `state.json.blocked`. + the task currently `in_progress`, and `blockers` from `state.json.blocked` + (`state.json.blocker` on a v8 plan). The state layer is the single source the payload is projected from — the addon **MUST NOT** invent a second progress-tracking mechanism. - Without the state layer, the payload is derived from the plan README's diff --git a/.agents/skills/deepworkplan/addons/dailybot/templates/INTEGRATION.md b/.agents/skills/deepworkplan/addons/dailybot/templates/INTEGRATION.md index 6fd682bc..7dab1780 100644 --- a/.agents/skills/deepworkplan/addons/dailybot/templates/INTEGRATION.md +++ b/.agents/skills/deepworkplan/addons/dailybot/templates/INTEGRATION.md @@ -88,7 +88,8 @@ convey: > Dailybot skill/CLI is installed and authenticated, DWP work emits agent > updates at four points — **kickoff** (plan approved: what is being built), > **significant task** (a feature/fix ships mid-plan), **blocked** (the plan -> halts and `state.json.blocked` says what it needs), and **completion** (the +> halts and `state.json.blocked` — `state.json.blocker` on a v8 plan — says +> what it needs), and **completion** (the > only **milestone**: what was built). If Dailybot is absent, unauthenticated, > or unreachable — or if `.dailybot/disabled` is present — skip silently and > continue. Reporting MUST NOT block `create` or `execute`. @@ -112,6 +113,7 @@ if command -v dailybot >/dev/null 2>&1 && [ ! -f .dailybot/disabled ]; then || echo "Dailybot report skipped (non-blocking)." # 3) Blocked (regular, blockers populated) — derive from state.json.blocked + # (state.json.blocker on a v8 plan; its held task reads `blocked`) dailybot agent update "" \ --json-data '{"completed":[""],"in_progress":[],"blockers":[" — needs "]}' \ || echo "Dailybot report skipped (non-blocking)." @@ -132,7 +134,9 @@ Decision notes: - **Payload from the state layer:** when the plan carries `state.json` (`PLAN_STATE.md`), derive `--json-data` from it — `completed` from completed tasks phrased as outcomes, `in_progress` from the current task, `blockers` - from `state.json.blocked` (`reason`, `needs`). Without the state layer, + from `state.json.blocked` (`reason`, `needs`) — on a v8 plan from + `state.json.blocker` (the same fields plus its class), where the held task + reads `blocked` and counts as the current one. Without the state layer, derive from the plan README's checkboxes. Never maintain a separate progress ledger just for reporting. - **One kickoff, one completion** per plan — re-runs and resumes do not diff --git a/.agents/skills/deepworkplan/addons/dependency-upgrade/SKILL.md b/.agents/skills/deepworkplan/addons/dependency-upgrade/SKILL.md index 68ff215c..acc7a4ee 100644 --- a/.agents/skills/deepworkplan/addons/dependency-upgrade/SKILL.md +++ b/.agents/skills/deepworkplan/addons/dependency-upgrade/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-dependency-upgrade description: DeepWorkPlan addon that safely upgrades a repo's dependencies — reasoning about the repo's ACTUAL package manager (npm/pnpm/yarn + ncu, pip/poetry/uv, cargo, go mod, bundler, composer, and more) rather than assuming npm — with a batched, validated, revertible workflow that detects the manager and manifests/lockfiles, classifies upgrades (patch/minor/major), upgrades in safe batches, runs the repo's real validation gate after each batch, reverts a failing batch, and summarizes. Near-default — offered for every repo with declared dependencies, and its delegator installs under the onboarding consent unless declined; upgrades themselves never run automatically, only as explicit, gated work. Never required for baseline conformance; reconciles with the repo's existing tooling. Use when the developer wants to bring dependencies up to date without breaking the build. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/addons/design-system/SKILL.md b/.agents/skills/deepworkplan/addons/design-system/SKILL.md index 40887443..6f6849ef 100644 --- a/.agents/skills/deepworkplan/addons/design-system/SKILL.md +++ b/.agents/skills/deepworkplan/addons/design-system/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-design-system description: Optional DeepWorkPlan addon that gives a repo with a user-facing interface surface a DESIGN.md (under docs/, indexed from AGENTS.md) — a Markdown design-system file any coding agent reads to generate interface output consistent with the repo's OWN conventions. Covers three profiles detected independently from real files — visual-ui (rendered web/mobile/desktop UI), cli-output (styled terminal output — semantic colors, panels, spinners, prompts, TTY/NO_COLOR degradation), and conversational (chat/email messaging — voice and register, message anatomy, per-platform rendering). Reasons about the repo's ACTUAL design source (CSS custom properties, Tailwind config, token files, component styles, a CLI display/theme module, or message-composition helpers) rather than copying a brand file; checks contrast (WCAG AA), color-is-not-the-only-carrier, plain-text fallbacks, and token integrity. A detected interface surface makes the evaluation and offer mandatory (with a clear recommendation), while installation always requires explicit acceptance — no profile is auto-applied, even in trust mode. Never offered for a repo with no interface surface (pure library, headless service, infra-only); never required for baseline conformance; reconciles an existing DESIGN.md instead of clobbering it. Use when the developer wants agents to produce on-brand, consistent interface output — visual UI, terminal output, or outbound messages. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/addons/devcontainer/SKILL.md b/.agents/skills/deepworkplan/addons/devcontainer/SKILL.md index ec012487..5b2118ce 100644 --- a/.agents/skills/deepworkplan/addons/devcontainer/SKILL.md +++ b/.agents/skills/deepworkplan/addons/devcontainer/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-devcontainer -description: Optional DeepWorkPlan addon that gives a repository a reproducible dev container through devcontainer-kit (the `dck` command, DailybotHQ/devcontainer-kit pinned at v1.1.2, interface 2) - a vendor-neutral thin integrator that detects the kit with `dck doctor --json`, offers the kit and its tag-pinned `dck-dockerfile` skill, and lets them render the repository's own layout (.devcontainer/devcontainer.json, docker/local//Dockerfile, docker/local/docker-compose.yaml, dev.sh) from the official runtime image pinned by digest - no shared base image required. Reconciles an existing layout and never clobbers it, keeps loopback ports and agent forwarding, and validates the result with a real build. Opt-in, never required, never a conformance gate. -version: "7.12.1" +description: Optional DeepWorkPlan addon that gives a repository a reproducible dev container through devcontainer-kit (the `dck` command, DailybotHQ/devcontainer-kit pinned at v1.3.0, interface 2) - a vendor-neutral thin integrator that detects the kit with `dck doctor --json`, offers the kit and its tag-pinned `dck-dockerfile` skill, and lets them render the repository's own layout (.devcontainer/devcontainer.json, docker/local//Dockerfile, docker/local/docker-compose.yaml, dev.sh) from the official runtime image pinned by digest - no shared base image required. Reconciles an existing layout and never clobbers it, keeps loopback ports and agent forwarding, and validates the result with a real build. Opt-in, never required, never a conformance gate. +version: "8.0.0" documentation_url: https://deepworkplan.com/kit/devcontainer user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write @@ -28,7 +28,7 @@ file name. | Pin | Value | |-----|-------| | Product | `DailybotHQ/devcontainer-kit` | -| Tag | `v1.1.2` (per-repository Dockerfile, no shared base image; host accounts through `[agents] host_profiles` since `v0.3.0`; the antigravity kind, per-developer CLI choice (`[agents] supported`) and non-shared profiles on the agents volume since `v0.3.6`; coding-agents-kit `v0.7.1` and herdr-peers `v0.3.2` baked in since `v0.3.7`; the first stable release, its interface committed to semantic versioning, baking coding-agents-kit, herdr-peers and deepworkplan-vim `v1.0.0`, `v1.0.0`; coding-agents-kit `v1.0.1` baked in, so `@default` stays the container's own account, and a `dck doctor` warning when a shared `codex@default` mixes host and container Codex versions, since `v1.0.1`; coding-agents-kit `v1.1.0` and DeepWorkPlan Vim `v1.0.1` baked in since `v1.1.1`; herdr-peers `v1.2.1` (autopilot included) baked in since `v1.1.2`) | +| Tag | `v1.3.0` (per-repository Dockerfile, no shared base image; host accounts through `[agents] host_profiles` since `v0.3.0`; the antigravity kind, per-developer CLI choice (`[agents] supported`) and non-shared profiles on the agents volume since `v0.3.6`; coding-agents-kit `v0.7.1` and herdr-peers `v0.3.2` baked in since `v0.3.7`; the first stable release, its interface committed to semantic versioning, baking coding-agents-kit, herdr-peers and deepworkplan-vim `v1.0.0`, `v1.0.0`; coding-agents-kit `v1.0.1` baked in, so `@default` stays the container's own account, and a `dck doctor` warning when a shared `codex@default` mixes host and container Codex versions, since `v1.0.1`; coding-agents-kit `v1.1.0` and DeepWorkPlan Vim `v1.0.1` baked in since `v1.1.1`; herdr-peers `v1.2.1` (autopilot included) baked in since `v1.1.2`; herdr-peers `v1.3.1` (the plan loop) and coding-agents-kit `v1.4.0` (pick-v2) baked in since `v1.2.0`; opt-in container-only named volumes (`[compose] container_only`) since `v1.3.0`) | | Interface | `2` (`dck doctor --json` → `"interface": 2`) | | Skill | `dck-dockerfile`, installed from the same tag | | Registry key | `devcontainer` (`.dwp/config.json` → `addons.devcontainer`) | @@ -307,9 +307,9 @@ are copied in. Declining is complete. ### Step 2 — Install the kit and its skill (pinned; point-don't-run by default) ``` -git clone --branch v1.1.2 https://github.com/DailybotHQ/devcontainer-kit +git clone --branch v1.3.0 https://github.com/DailybotHQ/devcontainer-kit ./devcontainer-kit/install.sh -npx --yes skills add https://github.com/DailybotHQ/devcontainer-kit/tree/v1.1.2 --skill dck-dockerfile -y +npx --yes skills add https://github.com/DailybotHQ/devcontainer-kit/tree/v1.3.0 --skill dck-dockerfile -y ``` Before running the installer, check the tag and the release's `SHA256SUMS` @@ -333,7 +333,7 @@ then `dck init …` after acceptance. ### Step 4 — Record and validate -`python3 ../../shared/config.py enable devcontainer --version v1.1.2 --repo `, +`python3 ../../shared/config.py enable devcontainer --version v1.3.0 --repo `, then validate what was rendered: - `dck doctor --json` — interface 2, repo config valid, no drift; @@ -376,7 +376,7 @@ plan simply declares the host command instead. ## Validation checklist (component 4 — mirrored from SPEC §8) 1. `SKILL.md`, `SPEC.md`, `addon.json`, `templates/INTEGRATION.md` exist; the - descriptor pins `DailybotHQ/devcontainer-kit` `v1.1.2`, interface 2; no + descriptor pins `DailybotHQ/devcontainer-kit` `v1.3.0`, interface 2; no template, Dockerfile, compose file, entrypoint or `dev.sh` copy ships here. 2. `dck doctor --json` reports interface 2, a valid repo config and no drift. 3. Existing files were changed only through accepted render diffs, each diff --git a/.agents/skills/deepworkplan/addons/devcontainer/SPEC.md b/.agents/skills/deepworkplan/addons/devcontainer/SPEC.md index 0d491baf..66a9392f 100644 --- a/.agents/skills/deepworkplan/addons/devcontainer/SPEC.md +++ b/.agents/skills/deepworkplan/addons/devcontainer/SPEC.md @@ -16,8 +16,8 @@ the kit's options, the registry record and the validation. | Field | Value | |-------|-------| | **Version** | 3.0.0 | -| **Status** | Stable — per-repository Dockerfile, no shared base image (devcontainer-kit `v1.1.2`, interface 2); supersedes 2.x (base-image flavours, interface 1) | -| **Product pin** | `DailybotHQ/devcontainer-kit` `v1.1.2`, interface `2`; skill `dck-dockerfile` at the same tag | +| **Status** | Stable — per-repository Dockerfile, no shared base image (devcontainer-kit `v1.3.0`, interface 2); supersedes 2.x (base-image flavours, interface 1) | +| **Product pin** | `DailybotHQ/devcontainer-kit` `v1.3.0`, interface `2`; skill `dck-dockerfile` at the same tag | | **Companions** | `SKILL.md`, `addon.json`, `templates/INTEGRATION.md`, `../README.md`, `../../spec/ADDONS.md` | ## 1. Conventions @@ -59,11 +59,11 @@ volume, CLI or profile file. - Explicit opt-in (`onboard` Phase 7b); a decline writes nothing. - Install the kit: - `git clone --branch v1.1.2 https://github.com/DailybotHQ/devcontainer-kit` then + `git clone --branch v1.3.0 https://github.com/DailybotHQ/devcontainer-kit` then `./devcontainer-kit/install.sh`. A fetch-and-execute pipeline **MUST NOT** appear in this pack's text. - The addon **SHOULD** offer the skill with - `npx --yes skills add https://github.com/DailybotHQ/devcontainer-kit/tree/v1.1.2 --skill dck-dockerfile -y` + `npx --yes skills add https://github.com/DailybotHQ/devcontainer-kit/tree/v1.3.0 --skill dck-dockerfile -y` (repo-local, recorded in `skills-lock.json`); the install **MUST** name the exact tag in that tree-URL form. - **The layout.** The render produces exactly @@ -93,7 +93,7 @@ volume, CLI or profile file. same verified release tarball, linked into every agent's skills directory at each start, so a recreate keeps them; the addon installs no second copy. - On acceptance: `addons.devcontainer` = `{"enabled": true, "version": - "v1.1.2"}` via `shared/config.py enable`. + "v1.3.0"}` via `shared/config.py enable`. ## 6. Security Defaults (inherited, never weakened) @@ -225,8 +225,8 @@ addon's container profile): enable the kit's Herdr machine option; `dck up` `~/.ssh/config` include and **MUST** be run only with its own explicit approval. Peers then run the pinned herdr-peers skill inside the container (`../herdr/install.md` §3); every image since `v0.3.5` carries herdr-peers -(`v1.1.2` bakes `v1.2.1`, autopilot included; the herdr addon itself pins -`v1.3.1`). The +(`v1.3.0` bakes `v1.3.1`, autopilot and the loop included; the herdr addon +itself pins `v2.1.0`). The kit's `[herdr] layout` key (`"standard"`: App · Editor · Development · Agents, created by `dck up`; `"none"` skips it) is the kit's choice, and the addon passes the person's preference without adding its own. The optional @@ -257,7 +257,7 @@ kit older than `v0.3.3`, the lead's brief names the value and a Codex pane 1. `SKILL.md`, `SPEC.md`, `addon.json`, `templates/INTEGRATION.md` exist; no layout, Dockerfile, compose, entrypoint, `dev.sh` or image copy ships in - this folder; `addon.json` pins `DailybotHQ/devcontainer-kit` `v1.1.2`, + this folder; `addon.json` pins `DailybotHQ/devcontainer-kit` `v1.3.0`, interface 2. 2. `dck doctor --json`: interface 2; repo config valid; drift reported. 3. Existing files changed only through accepted render diffs with diff --git a/.agents/skills/deepworkplan/addons/devcontainer/addon.json b/.agents/skills/deepworkplan/addons/devcontainer/addon.json index 4bb4d783..d3afd59f 100644 --- a/.agents/skills/deepworkplan/addons/devcontainer/addon.json +++ b/.agents/skills/deepworkplan/addons/devcontainer/addon.json @@ -1,7 +1,7 @@ { "schema": "https://deepworkplan.com/schema/addon-descriptor/v1.json", "key": "devcontainer", - "product": { "repo": "DailybotHQ/devcontainer-kit", "tag": "v1.1.2", "interface": 2 }, + "product": { "repo": "DailybotHQ/devcontainer-kit", "tag": "v1.3.0", "interface": 2 }, "detect": { "command": "dck doctor --json", "interface_from": "json:interface" }, "provides_abilities": [], "requires_grants": [] diff --git a/.agents/skills/deepworkplan/addons/herdr/SKILL.md b/.agents/skills/deepworkplan/addons/herdr/SKILL.md index 3f9aa0ec..08939800 100644 --- a/.agents/skills/deepworkplan/addons/herdr/SKILL.md +++ b/.agents/skills/deepworkplan/addons/herdr/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-herdr -description: Optional DeepWorkPlan addon that integrates herdr-peers (DailybotHQ/herdr-peers pinned at v1.3.1, protocol 1) as the interactive delegation transport - a thin integrator that detects the herdr-peers helper, offers it (never imposes it) from onboard Phase 7b, documents the pinned skill installs (herdr-peers and Herdr's official skill), records the acceptance in the .dwp/config.json addon registry, and maps a v7 plan's delegation operations onto one herdr-peers ask to a peer pane on any machine, with every delegation recorded in the plan journal. The message protocol lives in herdr-peers, never here. Never required, never a conformance gate. -version: "7.12.1" +description: Optional DeepWorkPlan addon that integrates herdr-peers (DailybotHQ/herdr-peers pinned at v2.1.0, protocol 1 or 2) as the interactive delegation transport - a thin integrator that detects the herdr-peers helper, offers it (never imposes it) from onboard Phase 7b, documents the pinned skill installs (herdr-peers and Herdr's official skill), records the acceptance in the .dwp/config.json addon registry, and maps a v7 plan's delegation operations onto one herdr-peers ask to a peer pane on any machine, with every delegation recorded in the plan journal. The message protocol lives in herdr-peers, never here. Never required, never a conformance gate. +version: "8.0.0" documentation_url: https://deepworkplan.com/kit/herdr user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write @@ -12,7 +12,7 @@ metadata: {"openclaw":{"emoji":"🕸️","homepage":"https://deepworkplan.com/ki Integrate **herdr-peers** — one authorized ask/reply between coding agents in [Herdr](https://herdr.dev) panes, on this machine or another — as the -**interactive** transport a v7 plan may use to delegate a task that needs +**interactive** transport a v7 or v8 plan may use to delegate a task that needs interaction, runs long, or must run on another machine. This is an **opt-in addon**, never required for a repo to be AI-first and never a conformance gate: without it every task runs in the current session. @@ -26,8 +26,8 @@ the install lines, the transport mapping and the journaling rule. | Pin | Value | |-----|-------| | Product | `DailybotHQ/herdr-peers` | -| Tag | `v1.3.1` (protocol 1 unchanged; native debates since `v1.1.0`, the optional autopilot since `v1.2.0`; the first stable release, `v1.0.0`, committed the interface to semantic versioning) | -| Interface | `1` (`herdr-peers --version` → `(protocol 1)`; `metadata.protocol: 1` in its `SKILL.md`) | +| Tag | `v2.1.0` (protocols 1 and 2 accepted; the loop since `v1.3.0` and lead appointment, the brain and the plan-queue consumer since `v2.0.0`; native debates since `v1.1.0`, the optional autopilot since `v1.2.0`; the first stable release, `v1.0.0`, committed the interface to semantic versioning) | +| Interface | `1` or `2` (`herdr-peers --version` → `(protocol N)`; `metadata.protocol: N` in its `SKILL.md`; protocol 2 is additive — every protocol-1 surface is intact) | | Depends on | Herdr's official skill, pinned `herdrdev/herdr@v0.9.3` | | Registry key | `herdr` (`.dwp/config.json` → `addons.herdr`) | | Transport | `interactive` — provides `subagents`, `cancel_children`; requires the `agent_delegation` grant | @@ -44,7 +44,7 @@ the install lines, the transport mapping and the journaling rule. - **`onboard` Phase 7b** offers it as an explicit opt-in when the developer works with several agents in Herdr panes. -- **`execute`** uses it only through `delegation.md`: a v7 plan granting +- **`execute`** uses it only through `delegation.md`: a v7 or v8 plan granting `agent_delegation`, a `parallel_safe` task (or a read-only delegate), and `resources.py abilities` listing `addon:herdr` as a `subagents` source. - Direct invocation, to install or check it. @@ -73,7 +73,7 @@ the install lines, the transport mapping and the journaling rule. ### Step 0 — Detect (read-only) `command -v herdr` and `command -v herdr-peers`; `herdr-peers --version` -must report `(protocol 1)` — anything else is one warning and "not +must report `(protocol 1)` or `(protocol 2)` — anything else is one warning and "not available". Inside Herdr, `HERDR_ENV=1` is set; outside it, the transport is not usable in this session (record it, continue sequentially). @@ -97,7 +97,7 @@ its own documented paths, never a piped installer. ### Step 3 — Record -`python3 ../../shared/config.py enable herdr --version v1.3.1 --repo `. +`python3 ../../shared/config.py enable herdr --version v2.1.0 --repo `. Enabling grants nothing: delegation still needs the plan's grant. ### Step 4 — Transport (during execute) @@ -207,13 +207,13 @@ enabled Herdr machine, accepts the recommended option on a waiting question or approval screen, and tells an agent that stopped to ask to continue; it never touches a login, and no message, peer or plan can start it. DWP never requires it, and an agent executing a plan **MUST NOT** start it on its own. -As of v1.3.1 it also answers a question shown with a preview beside its +As of v1.2.2 it also answers a question shown with a preview beside its options, and recognises the recommended mark in Spanish, French, German and Italian. Reference: -`https://github.com/DailybotHQ/herdr-peers/blob/v1.3.1/skills/herdr-peers/autopilot.md`. +`https://github.com/DailybotHQ/herdr-peers/blob/v2.1.0/skills/herdr-peers/autopilot.md`. -## Plan loop (herdr-peers `v1.3.1` and later) +## Plan loop (herdr-peers `v1.3.0` and later) `autopilot --loop` extends the same human-started daemon so open Deep Work Plans run to their end without the developer polling each lead: @@ -288,7 +288,7 @@ cross-cutting, settled by nothing in the repository — through a herdr-peers 1. `SKILL.md`, `SPEC.md`, `install.md`, `addon.json`, `templates/INTEGRATION.md` exist; no protocol copy ships here. -2. The descriptor pins `DailybotHQ/herdr-peers` `v1.3.1`, interface 1, +2. The descriptor pins `DailybotHQ/herdr-peers` `v2.1.0`, interface 1 or 2, transport `interactive`. 3. Every install line names an exact tag. 4. The registry entry exists only after acceptance. diff --git a/.agents/skills/deepworkplan/addons/herdr/SPEC.md b/.agents/skills/deepworkplan/addons/herdr/SPEC.md index 9937be7f..cf1b7dfb 100644 --- a/.agents/skills/deepworkplan/addons/herdr/SPEC.md +++ b/.agents/skills/deepworkplan/addons/herdr/SPEC.md @@ -18,7 +18,7 @@ rule. |-------|-------| | **Version** | 0.3.0 | | **Status** | Stable (DeepWorkPlan 7.0.0) | -| **Product pin** | `DailybotHQ/herdr-peers` `v1.3.1`, protocol/interface `1`; depends on `herdrdev/herdr@v0.9.3` (skill `herdr`) | +| **Product pin** | `DailybotHQ/herdr-peers` `v2.1.0`, protocol/interface `1` or `2`; depends on `herdrdev/herdr@v0.9.3` (skill `herdr`) | | **Companions** | `SKILL.md`, `addon.json`, `install.md`, `templates/INTEGRATION.md`, `../README.md`, `../../spec/ADDONS.md`, `../../execute/delegation.md` | ## 1. Conventions @@ -46,8 +46,8 @@ recipes — those drift; the pinned skill is the single source. ## 4. Detection - Read-only: `command -v herdr`, `command -v herdr-peers`, - `herdr-peers --version` (expect `herdr-peers 1.3.1 (protocol 1)`). -- A protocol other than `1` **MUST** be one warning and "not available". + `herdr-peers --version` (expect `herdr-peers 2.1.0 (protocol 2)`; a protocol-1 release also satisfies the descriptor — the accepted set is [1, 2]). +- A protocol outside the descriptor's accepted set (`[1, 2]`) **MUST** be one warning and "not available". - The transport is usable only inside Herdr (`HERDR_ENV=1`); outside it the addon is installed but not usable in that session — recorded, not an error. @@ -56,11 +56,11 @@ recipes — those drift; the pinned skill is the single source. - Explicit opt-in (`onboard` Phase 7b); a decline writes nothing. - Installs (`install.md`) **MUST** name exact tags: - `npx --yes skills add https://github.com/DailybotHQ/herdr-peers/tree/v1.3.1 --skill herdr-peers -g -y` + `npx --yes skills add https://github.com/DailybotHQ/herdr-peers/tree/v2.1.0 --skill herdr-peers -g -y` and `npx --yes skills add https://github.com/herdrdev/herdr/tree/v0.9.3 --skill herdr -g -y`. Herdr itself is installed through its own documented paths; a fetch-and-execute pipeline **MUST NOT** appear in this pack's text. -- On acceptance: `addons.herdr` = `{"enabled": true, "version": "v1.3.1"}` +- On acceptance: `addons.herdr` = `{"enabled": true, "version": "v2.1.0"}` via `shared/config.py enable`. Enabling grants no plan any authority. ## 6. The Transport (v7 delegation) @@ -210,7 +210,7 @@ it and how the plan records it. changes the plan's outcome is escalated as C3 (irreducible ambiguity) with the debate attached as the investigation. -## 6.5. Plan Loop (herdr-peers `v1.3.1` and later) +## 6.5. Plan Loop (herdr-peers `v1.3.0` and later) The `autopilot --loop` daemon (human-started, one per server, on the developer's machine) keeps open Deep Work Plans running to their end. The @@ -258,8 +258,8 @@ Nothing blocks `onboard`, `create`, `execute` or `verify`. 1. `SKILL.md`, `SPEC.md`, `install.md`, `addon.json`, `templates/INTEGRATION.md` exist; no protocol file ships in this folder. -2. `addon.json`: key `herdr`, product `DailybotHQ/herdr-peers` `v1.3.1`, - interface 1, transport `interactive`. +2. `addon.json`: key `herdr`, product `DailybotHQ/herdr-peers` `v2.1.0`, + interface 1 or 2 (the descriptor's accepted list), transport `interactive`. 3. Every install line pins a tag; no pipeline text. 4. The registry entry exists only after acceptance. 5. Every delegation: journal record before the ask; depth 1; result gated diff --git a/.agents/skills/deepworkplan/addons/herdr/addon.json b/.agents/skills/deepworkplan/addons/herdr/addon.json index 84ddd2c4..6d90dbac 100644 --- a/.agents/skills/deepworkplan/addons/herdr/addon.json +++ b/.agents/skills/deepworkplan/addons/herdr/addon.json @@ -1,9 +1,24 @@ { "schema": "https://deepworkplan.com/schema/addon-descriptor/v1.json", "key": "herdr", - "product": { "repo": "DailybotHQ/herdr-peers", "tag": "v1.3.1", "interface": 1 }, - "detect": { "command": "herdr-peers --version", "interface_from": "regex:\\(protocol (\\d+)\\)" }, - "provides_abilities": ["subagents", "cancel_children"], - "requires_grants": ["agent_delegation"], + "product": { + "repo": "DailybotHQ/herdr-peers", + "tag": "v2.1.0", + "interface": [ + 1, + 2 + ] + }, + "detect": { + "command": "herdr-peers --version", + "interface_from": "regex:\\(protocol (\\d+)\\)" + }, + "provides_abilities": [ + "subagents", + "cancel_children" + ], + "requires_grants": [ + "agent_delegation" + ], "transport": "interactive" } diff --git a/.agents/skills/deepworkplan/addons/herdr/install.md b/.agents/skills/deepworkplan/addons/herdr/install.md index 1da22e68..02e06f74 100644 --- a/.agents/skills/deepworkplan/addons/herdr/install.md +++ b/.agents/skills/deepworkplan/addons/herdr/install.md @@ -17,7 +17,7 @@ the pinned official skill). ``` npx --yes skills add https://github.com/herdrdev/herdr/tree/v0.9.3 --skill herdr -g -y -npx --yes skills add https://github.com/DailybotHQ/herdr-peers/tree/v1.3.1 --skill herdr-peers -g -y +npx --yes skills add https://github.com/DailybotHQ/herdr-peers/tree/v2.1.0 --skill herdr-peers -g -y ``` Both `-y` flags are required in an agent's non-interactive shell (`npx @@ -25,9 +25,9 @@ Both `-y` flags are required in an agent's non-interactive shell (`npx The first is Herdr's official skill (the authority for every `herdr` command; `herdr --skill` prints the copy matching the installed binary). The second installs the herdr-peers skill and its helper script. Verify: -`herdr-peers --version` → `herdr-peers 1.3.1 (protocol 1)`. +`herdr-peers --version` → `herdr-peers 2.1.0 (protocol 2)`. -**Plan loop (herdr-peers v1.3.1 and later).** To have open Deep Work Plans +**Plan loop (herdr-peers v1.3.0 and later).** To have open Deep Work Plans run to their end without polling each lead, a human starts the loop daemon with the pack's Dailybot notifier (agents never start it): @@ -46,7 +46,7 @@ For a scoped trial in one repository without touching `$HOME` (F-10), install the helper skill repo-locally — drop `-g`: ``` -npx --yes skills add https://github.com/DailybotHQ/herdr-peers/tree/v1.3.1 --skill herdr-peers -y +npx --yes skills add https://github.com/DailybotHQ/herdr-peers/tree/v2.1.0 --skill herdr-peers -y ``` It lands under the repository's agent skills directory (e.g. @@ -84,5 +84,5 @@ host profile — this addon describes them, never sets them. ## 4. Record the acceptance ``` -python3 /shared/config.py enable herdr --version v1.3.1 --repo +python3 /shared/config.py enable herdr --version v2.1.0 --repo ``` diff --git a/.agents/skills/deepworkplan/addons/machine-installs.md b/.agents/skills/deepworkplan/addons/machine-installs.md index 1cd1083d..61fd6fa7 100644 --- a/.agents/skills/deepworkplan/addons/machine-installs.md +++ b/.agents/skills/deepworkplan/addons/machine-installs.md @@ -15,10 +15,10 @@ actually verified (`--ignore-missing` alone would pass with none). coding-agents-kit (`agentkit`): ```bash -git clone --branch v1.4.0 --depth 1 https://github.com/DailybotHQ/coding-agents-kit cak -git -C cak describe --tags --exact-match # must print v1.4.0 -curl -fsSL https://github.com/DailybotHQ/coding-agents-kit/releases/download/v1.4.0/SHA256SUMS -o cak.SHA256SUMS -echo "1ae33b64622a91a624c3fc1d483ae8b200896de6eb9f7a3f04cd7f23ce2fb2c6 cak.SHA256SUMS" | shasum -a 256 -c # the pinned digest +git clone --branch v1.5.0 --depth 1 https://github.com/DailybotHQ/coding-agents-kit cak +git -C cak describe --tags --exact-match # must print v1.5.0 +curl -fsSL https://github.com/DailybotHQ/coding-agents-kit/releases/download/v1.5.0/SHA256SUMS -o cak.SHA256SUMS +echo "d8057636d357ba056ab8c8a7feec58d31b53cb58c91d943109b7f22590b5cca3 cak.SHA256SUMS" | shasum -a 256 -c # the pinned digest (cd cak && shasum -a 256 -c --ignore-missing ../cak.SHA256SUMS) # must exit 0 (cd cak && shasum -a 256 -c --ignore-missing ../cak.SHA256SUMS | grep -c ': OK$') # must print a number above 0 ./cak/install.sh @@ -27,10 +27,10 @@ echo "1ae33b64622a91a624c3fc1d483ae8b200896de6eb9f7a3f04cd7f23ce2fb2c6 cak.SHA2 devcontainer-kit (`devcontainer`): ```bash -git clone --branch v1.1.2 --depth 1 https://github.com/DailybotHQ/devcontainer-kit dck -git -C dck describe --tags --exact-match # must print v1.1.2 -curl -fsSL https://github.com/DailybotHQ/devcontainer-kit/releases/download/v1.1.2/SHA256SUMS -o dck.SHA256SUMS -echo "c7a5ffb737777473f08932f9a2de153518d923f5d7edeb4ab97fdd7537bf2374 dck.SHA256SUMS" | shasum -a 256 -c # the pinned digest +git clone --branch v1.3.0 --depth 1 https://github.com/DailybotHQ/devcontainer-kit dck +git -C dck describe --tags --exact-match # must print v1.3.0 +curl -fsSL https://github.com/DailybotHQ/devcontainer-kit/releases/download/v1.3.0/SHA256SUMS -o dck.SHA256SUMS +echo "663b06f3be1108b93d401e8b9ec9da77b1f6953b86a98729bf54a8bfc5fae969 dck.SHA256SUMS" | shasum -a 256 -c # the pinned digest (cd dck && shasum -a 256 -c --ignore-missing ../dck.SHA256SUMS) # must exit 0 (cd dck && shasum -a 256 -c --ignore-missing ../dck.SHA256SUMS | grep -c ': OK$') # must print a number above 0 ./dck/install.sh @@ -44,7 +44,7 @@ repository-local `dck-dockerfile` skill at the same tag **herdr-peers** (host): the pinned skill installs in `herdr/install.md`; `dck setup` also installs a verified herdr-peers on the host. Verify with `herdr-peers --version` -(`(protocol 1)`). +(`(protocol N)` — the descriptor names the accepted majors). **DeepWorkPlan Vim:** the product's own checksum-verified installer under its consent gate (`vim/SKILL.md`); an existing Neovim config is diff --git a/.agents/skills/deepworkplan/addons/vim/SKILL.md b/.agents/skills/deepworkplan/addons/vim/SKILL.md index dc34e1dd..e7f93fce 100644 --- a/.agents/skills/deepworkplan/addons/vim/SKILL.md +++ b/.agents/skills/deepworkplan/addons/vim/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-vim description: Optional DeepWorkPlan addon that offers DeepWorkPlan Vim, the terminal editor for Deep Work Plan (Neovim 0.12+, its own repository DailybotHQ/deepworkplan-vim pinned at v1.0.1), as a machine-level install for the person behind a repository - a thin integrator that reads the product's own addon/surface.json (interface 1) to detect the editor, offers it (never imposes it) from onboard Phase 7b, guides the product's documented, checksum-verified install under an absolute consent gate, and validates the installed surface. Two routes - the full editor today, the Neovim plugin in v7.1. Never required, never a conformance gate, and an existing Neovim config is never overwritten without explicit consent. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com/kit/vim user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/author/SKILL.md b/.agents/skills/deepworkplan/author/SKILL.md index fcde73c9..c705f13f 100644 --- a/.agents/skills/deepworkplan/author/SKILL.md +++ b/.agents/skills/deepworkplan/author/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-author description: Author or update reusable skills, agents, and commands in the current repo — reason about the repo's .agents/ layout, follow the Open Agent Skills frontmatter contract, and keep the .agents/docs/ catalog in sync. Use when a developer wants to create or evolve the repo's agent kit (skills, agents, commands), or runs /skill-create or /agent-create. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/create/SKILL.md b/.agents/skills/deepworkplan/create/SKILL.md index 74731336..e2df4de2 100644 --- a/.agents/skills/deepworkplan/create/SKILL.md +++ b/.agents/skills/deepworkplan/create/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-create description: Create a Deep Work Plan for short or long work. Detect planning intent, materialize a compact Lite proposal first, then retain Lite or expand to Full task files when needed. Supports guided and trust handoff without executing product work. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write @@ -260,10 +260,10 @@ all following text is literal context. Never inspect ordinary context words. **0.3 Select the plan generation:** if this pack's line is 6+ or the developer explicitly asked for a v6 plan, read [`v6.md`](v6.md) and follow that flow -exclusively (it also covers v7). Stop here: Steps 1 onward describe the -retained v5 lifecycle and MUST NOT be applied to a v6 or v7 plan. With this -7.x pack, v7 is the default for new plans; an explicit `v6` request -materializes a v6 contract. Existing plans always keep their recorded generation. +exclusively (also v7 and v8). Stop here: Steps 1 onward describe the +retained v5 lifecycle and MUST NOT be applied to a v6–v8 plan. With this +8.x pack, v8 is the default for new plans; an explicit `v7` or `v6` request +materializes it. Existing plans always keep their recorded generation. ### Step 1 — Quick Introduction diff --git a/.agents/skills/deepworkplan/create/v6.md b/.agents/skills/deepworkplan/create/v6.md index 69a16bc2..66ce2360 100644 --- a/.agents/skills/deepworkplan/create/v6.md +++ b/.agents/skills/deepworkplan/create/v6.md @@ -1,15 +1,22 @@ -# Create — a v6/v7 plan (outcome contract, guarded materialization) - -Read this file when creating a plan with the current pack. It covers both -contract generations of the same record layer: **v7 is the default for new -plans on the 7.x pack** (contract `schema` = -`https://deepworkplan.com/schema/plan-contract/v7.json`, the v6 contract -plus the optional `tasks[].parallel_safe` marker; its journal also records -delegation — [`spec/V7_CONTRACT.md`](../spec/V7_CONTRACT.md)); an explicit -`v6` request writes `https://deepworkplan.com/schema/plan-contract/v6.json` -and the v6 rules below apply unchanged. `materialize` derives the manifest -and journal generation from that URL. Existing plans keep their recorded -generation. +# Create — a v6/v7/v8 plan (outcome contract, guarded materialization) + +Read this file when creating a plan with the current pack. It covers every +contract generation of the same record layer: **v8 is the default for new +plans on the 8.x pack** (contract `schema` = +`https://deepworkplan.com/schema/plan-contract/v8.json`: the v7 contract — +the v6 contract plus the optional `tasks[].parallel_safe` marker, with a +journal that also records delegation, +[`spec/V7_CONTRACT.md`](../spec/V7_CONTRACT.md) — plus the optional, closed +`autonomy` block, [`spec/LOOP_ENGINEERING.md`](../spec/LOOP_ENGINEERING.md)). +Write an `autonomy` block only for what the developer states (stall budget, +promptable panes, notify targets, whether a brain may act, queue start); +every absent key takes its recorded default, so most plans carry none. An +explicit `v7` request writes +`https://deepworkplan.com/schema/plan-contract/v7.json` and an explicit `v6` +request `https://deepworkplan.com/schema/plan-contract/v6.json`; the rules +below apply unchanged to all three. `materialize` derives the manifest and +journal generation from that URL (a v8 plan uses the v7 manifest and +journal line). Existing plans keep their recorded generation. A v6 plan is two authored artifacts plus one guarded sequence: @@ -92,6 +99,34 @@ the reference it was derived from. A later disagreement between the two is resolved by an amendment through refine, never by re-reading the request over the contract. Delegates receive pointers to the note, not paraphrases. +**The plan queue (when the developer asks to queue the plan, or a v8 +contract records `autonomy.queue` other than `none`).** After `materialize` +succeeds (the approval exists), append the plan to the repository's queue so +the herdr-peers loop starts it when it is ready +([`../spec/LOOP_ENGINEERING.md`](../spec/LOOP_ENGINEERING.md) §4); `--start` +is the contract's `autonomy.queue` when it records one: + +```bash +python3 ../shared/queue.py --dwp append --plan --lead
\ + [--after ] [--start prompt-lead|launch] +``` + +`--lead` is the pane the daemon prompts to start the plan: the one the +developer names, or else, inside Herdr, your own — pass `$HERDR_PANE_ID` as +it is (the helper accepts a pane id such as `w9:p1` or a full address such +as `local:w9:p1`). If the helper refuses it, take your row's address from +`herdr-peers list` or ask the developer, and retry with `--lead`. Append +without a lead only when no address is known yet: the item then waits (the +daemon reports it as `no lead named`) until the developer or the lead names +one with +`python3 ../shared/queue.py --dwp set-lead --plan --lead
`. + +`--after` names a plan already in the queue that must complete first. A +`prompt-lead` start makes the daemon prompt the named lead once; a `launch` +start is recorded but not started (launching is not available yet). The +helper is the only writer the flows use: never edit `queue.json` by hand from +a flow. Not queuing is the default and always correct. + **v7: marking `parallel_safe` and granting delegation.** Mark a task `"parallel_safe": true` only when **all** hold: the repository enables a delegation addon (`python3 ../shared/config.py enabled --repo ` lists @@ -123,6 +158,21 @@ says so. A **different** contract for a materialized plan is never written over the old one — that is a revision, the refine amendment path (`contracts/` chain, fresh approval). +**The `PROGRESS.md` header (v8).** Right after `materialize`, give the +plan's `PROGRESS.md` its structured header (spec +[`LOOP_ENGINEERING.md`](../spec/LOOP_ENGINEERING.md) §3.2) — four fixed +lines under the title that the loop, the fleet and `resume` read instead of +prose: + +```bash +python3 ../shared/progress_header.py --plan \ + --goal "" --next "" +``` + +`Current task` and `Needs` are derived from the records, so the header can +never claim a state the journal does not hold; the body below it stays the +working index the recorded flow describes. v6 and v7 plans skip this step. + After materialization: report the contract id and the plan digest back, and route to **execute** (the v6 loop). Never auto-execute; the create flow ends at the approval event, exactly as in guided mode. diff --git a/.agents/skills/deepworkplan/execute/SKILL.md b/.agents/skills/deepworkplan/execute/SKILL.md index b70d8e17..69114f56 100644 --- a/.agents/skills/deepworkplan/execute/SKILL.md +++ b/.agents/skills/deepworkplan/execute/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-execute description: Execute Lite or Full Deep Work Plans task-by-task — select validation from the actual surface, preserve state and evidence, recover safely, and finish with the Final Review. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write @@ -30,8 +30,8 @@ when their moment arrives. t0 set — the operative rules the loop needs are inline below. - **Conditional — read only when the trigger fires:** - [`v6.md`](v6.md) (this directory) — read only when Step 2.0 detects a - v6 or v7 plan; it carries the whole task loop. - - [`delegation.md`](delegation.md) — read only when a v7 plan granting + v6, v7 or v8 plan; it carries the whole task loop. + - [`delegation.md`](delegation.md) — read only when a v7 or v8 plan granting `agent_delegation` delegates a task. - [`debate.md`](debate.md) — read only when a listed decision task runs. - [`../guide/swarm.md`](../guide/swarm.md) §17 — read only when the diff --git a/.agents/skills/deepworkplan/execute/debate.md b/.agents/skills/deepworkplan/execute/debate.md index 16308fea..e2c6af9a 100644 --- a/.agents/skills/deepworkplan/execute/debate.md +++ b/.agents/skills/deepworkplan/execute/debate.md @@ -11,7 +11,7 @@ briefs, rounds, ballots, counting, the lead's contract — is herdr-peers' 1. `python3 ../shared/config.py show --plan ` resolves `decisions.debate` to `auto` and lists `herdr` enabled. 2. `printenv HERDR_ENV` is `1`, and `herdr-peers --version` reports - `1.1.0` or later on `(protocol 1)` — `1.0.x` has no debates. + `1.1.0` or later on protocol 1 or 2 — `1.0.x` has no debates. 3. The contract grants `agent_delegation`, and `python3 ../shared/resources.py --plan abilities` lists `addon:herdr` as a `subagents` source. diff --git a/.agents/skills/deepworkplan/execute/delegation.md b/.agents/skills/deepworkplan/execute/delegation.md index 0244f647..26f95603 100644 --- a/.agents/skills/deepworkplan/execute/delegation.md +++ b/.agents/skills/deepworkplan/execute/delegation.md @@ -1,7 +1,7 @@ -# Execute — delegation (v7 plans only) +# Execute — delegation (v7 and v8 plans) -Read this file only when a **v7** plan (contract `schema` = -`…/plan-contract/v7.json`) grants `agent_delegation` and the next task is +Read this file only when a **v7 or v8** plan (contract `schema` = +`…/plan-contract/v7.json` or `…/plan-contract/v8.json`) grants `agent_delegation` and the next task is marked `parallel_safe` — or a read-only delegate would help it. Otherwise the task runs in this session exactly as `v6.md` describes; not delegating is always correct. Normative source: `../spec/V7_CONTRACT.md` and @@ -9,7 +9,7 @@ is always correct. Normative source: `../spec/V7_CONTRACT.md` and ## When a delegate may be used (all must hold) -1. The contract is v7 and grants `agent_delegation`. +1. The contract is v7 or v8 and grants `agent_delegation`. 2. The task is marked `parallel_safe` by `create` — or the delegate is **read-only** (no worktree, no writes: research, review, analysis). 3. `python3 ../shared/resources.py --plan abilities` lists the diff --git a/.agents/skills/deepworkplan/execute/v6.md b/.agents/skills/deepworkplan/execute/v6.md index 9839b401..e59e16b0 100644 --- a/.agents/skills/deepworkplan/execute/v6.md +++ b/.agents/skills/deepworkplan/execute/v6.md @@ -58,6 +58,15 @@ For the task the scheduler selects (strict order, one at a time): were evaluated before the current task start — D3-6). Its decision, not the model's, is the dispatch. 2. **Start** — `python3 ../shared/ledger.py --plan start --task `. + On any task start while `.dwp/queue.json` still lists this plan as + `queued` (normally the first; a crash or a resume retries) and the + session runs inside Herdr (`HERDR_ENV=1`), mark it started with the + address your lead claim recorded (the `lead` of + `herdr-peers lead show --plan --json`): + `python3 ../shared/queue.py --dwp set-state --plan + --state started --lead `. Best-effort: a refusal + warns once and never blocks the task. Outside Herdr leave the item as it + is (the queue's consumer reads the journal's task start). Refused (exit 3) until a materialization-time `approval` event cites the live `contract_id`, and refused (exit 3, a recorded `refusal`) while any of the task's declared `prerequisites` is not complete — the scheduler's @@ -66,7 +75,7 @@ For the task the scheduler selects (strict order, one at a time): from exactly that record. 3. **Implement** the task's objective (its file is the work instruction; the skills and documentation decisions happen here as in Step 5 rule 2). - On a v7 plan that grants `agent_delegation`, a `parallel_safe` task MAY + On a v7 or v8 plan that grants `agent_delegation`, a `parallel_safe` task MAY be implemented by a delegate instead — read [`delegation.md`](delegation.md) first; its result is asserted until step 4 here observes it. A **decision task** the plan lists under @@ -130,7 +139,11 @@ For the task the scheduler selects (strict order, one at a time): ` (the reconciliation is itself recorded). Update the human layer (task log, README task list, `PROGRESS.md`) in the same order as the v5 loop: log → README → PROGRESS → commit. Never hand-edit `state.json` or - `views/*.md` — they are projections. + `views/*.md` — they are projections. On a v8 plan, refresh the + `PROGRESS.md` header on every transition — a task start, a close, a + blocker raised or resolved: `python3 ../shared/progress_header.py --plan + --next ""` (the goal is kept; the + current task and needs are derived from the records). 9. **Envelope posture** (when the contract declares limits) — `python3 ../shared/resources.py --plan report` and `hold`. The report names each limit's effective mode honestly (journal-computed, @@ -188,7 +201,36 @@ runs unchanged from [`SKILL.md`](SKILL.md) Step 7 (security pass with the required local review, final-state validation, skills and documentation reconciliation, closure) — over the plan's full accumulated change set. No handwritten success receipt: the receipt command's output, the -completion view and the exported manifest are the evidence. +completion view and the exported manifest are the evidence. If +`.dwp/queue.json` lists this plan, mark it done after the closure +(`python3 ../shared/queue.py --dwp set-state --plan +--state done`) so the loop can start the next one; best-effort, never a +gate. + +## Blockers (v8: structured, recorded by the helper) + +When a task of a v8 plan cannot continue, record the blocker with the +ledger — never by editing a file and never with a raw `append` (refused) — +then refresh the header and stop at it: + +```bash +python3 ../shared/ledger.py --plan block --task --json \ + '{"reason": "", "needs": "", "class": "C3", "resolver": "lead"}' +python3 ../shared/ledger.py --plan unblock --task --note "" +``` + +`class` is the escalation class of `AGENT_PROTOCOL.md` §7.5 (required). +Mark `"resolver": "lead"` only when the plan's lead can resolve it inside +the recorded authority without a credential, login, consent, payment, push +to main, release or deletion; otherwise omit it (absent = human). The +ledger refuses `lead` for C1, C2, C5 and C6, refuses a second task's raise +while one blocker is active, and refuses completion while the task's +blocker is unresolved (exit 4). `block` and `unblock` re-project +`state.json`, so the blocker is visible to the loop at once (spec +[`LOOP_ENGINEERING.md`](../spec/LOOP_ENGINEERING.md) §3). When the Dailybot +addon is wired, a blocked run emits its `blocked` report from +`state.json.blocker` (`reason`, `needs`). +v6 and v7 plans keep their recorded blocked protocol. ## Degraded postures (honest, never blocking) diff --git a/.agents/skills/deepworkplan/guide/GUIDE.md b/.agents/skills/deepworkplan/guide/GUIDE.md index 4d9911bd..52b727fd 100644 --- a/.agents/skills/deepworkplan/guide/GUIDE.md +++ b/.agents/skills/deepworkplan/guide/GUIDE.md @@ -2,16 +2,8 @@ ### How to Create Deep-Work Task Execution Plans (outputs under `.dwp/`) -This guide defines the **official structure and workflow** for creating _agent deep work plans_. - -These plans are designed so that an AI agent (Cursor, Claude, etc.) can: - -- Work for **many hours** (including overnight) -- Focus on **one task at a time** -- Follow a **clear, ordered execution plan** -- Keep everything **modular, auditable and disposable** - -Use this document whenever you need to generate a new deep-work plan. +The repository is the harness: versioned files travel with the code. **Spec-first, loop-closed: the repository is the harness and the plan runs itself to done.** Spec-first is one work episode: the plan is written before code with acceptance criteria. It lives as exportable, git-ignored `.dwp/plans/` working state, resumable by any agent in the repository, not as a maintained specification. +**Loop engineering** registers a lead and succession; a human starts the optional daemon, whose prompts add no authority. It supports takeover, granted appointment, `plan-event-v1`, `fleet-v1`, and prompt-lead queue starts. The plan runs within its recorded authority and gates. DWP measures the instruction bytes each flow loads; it has not shown a general saving in provider tokens. The method works alone. --- @@ -22,12 +14,9 @@ Use this document whenever you need to generate a new deep-work plan. > extraction comes back empty, that is a defect to report, never a blank > section. -This file is the **routing index** of the methodology guide. The guide's content -is unchanged; it is split into flow-scoped files so an agent loads only what its -current flow needs (`spec/DWP_SPECIFICATION.md` §5). The design rationale lives -in the contributor-only repository ADR. -Nothing here is compressed — every section that existed in -the single-file guide exists verbatim in exactly one file below. +This file is the routing index; each flow loads only what it needs +(`spec/DWP_SPECIFICATION.md` §5). +Do not read every guide file up front; load only what your current flow needs. ## How to read this guide (by flow) @@ -41,9 +30,6 @@ the single-file guide exists verbatim in exactly one file below. | **Upgrade** the installed skill | [`structure.md`](./structure.md) §1–§2 (what lives where) | the `upgrade` sub-skill itself (`../upgrade/SKILL.md`) — check is read-only, download needs explicit acceptance, `.dwp/` is never migrated | | **Author** skills/agents | [`skills-integration.md`](./skills-integration.md) | — | -Do not read every file by default. Each sub-skill's "Shared resources" section -names its essential files and its conditional triggers. - ## Section map (every section of the original guide, in original order) | Section | Now in | diff --git a/.agents/skills/deepworkplan/onboard/SKILL.md b/.agents/skills/deepworkplan/onboard/SKILL.md index d65f8efb..2b667dc1 100644 --- a/.agents/skills/deepworkplan/onboard/SKILL.md +++ b/.agents/skills/deepworkplan/onboard/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-onboard description: Make any repository AI-first — reason (never template) an adapted AGENTS.md, docs/, per-module docs and .agents/ kit from the real repo, discover and verify its full and scoped validation commands and source-to-test mapping, install the DeepWorkPlan skill, and, for a repository onboarded under an earlier version, perform a targeted, non-destructive, idempotent harness upgrade. Use when the developer wants to onboard or upgrade a repository for AI agents. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write @@ -104,7 +104,7 @@ When this flow finishes, the target repo contains: escalation paths and fallback, plus the unit-first posture — so every future plan can select its gates instead of guessing (`../spec/DOCUMENTATION_STANDARD.md` §3.4). 7. **A recorded standard and a first usable outcome** — the provenance line - `DWP standard: 7.0.0 (onboarded YYYY-MM-DD; skill x.y.z)` in `AGENTS.md`, and + `DWP standard: 8.0.0 (onboarded YYYY-MM-DD; skill x.y.z)` in `AGENTS.md`, and a `.dwp/onboard/REPORT.md` that names the verified command and mapping, the installed skill identity and version, the active capability limits (what could not be verified and why), and the exact post-onboarding next command @@ -472,7 +472,7 @@ context. It MUST cover these six responsibilities: (`full` / `scoped`). **Mark** any command that runs only in CI or only inside a container (e.g. "must run **inside** the Docker container"), and any scoped pattern that is proposed/unverified. -4. **Provenance** — one line, `DWP standard: 7.0.0 (onboarded YYYY-MM-DD; +4. **Provenance** — one line, `DWP standard: 8.0.0 (onboarded YYYY-MM-DD; skill x.y.z)` (on upgrade: `…; upgraded YYYY-MM-DD; skill x.y.z`), so a checker and a future agent can tell which standard the repository declares (`../spec/DOCUMENTATION_STANDARD.md` §3.5). diff --git a/.agents/skills/deepworkplan/onboard/addons.md b/.agents/skills/deepworkplan/onboard/addons.md index 182acd13..ea45af9d 100644 --- a/.agents/skills/deepworkplan/onboard/addons.md +++ b/.agents/skills/deepworkplan/onboard/addons.md @@ -78,22 +78,22 @@ records its Phase 7a status). Offer the seven optional ones independently: | Addon | Folder | Recommend in trust mode when… | |-------|--------|-------------------------------| -| **Devcontainer support** | [`../addons/devcontainer/`](../addons/devcontainer/SKILL.md) | the repo benefits from a reproducible isolated dev container (most repos with Docker/services). Pinned devcontainer-kit `v1.1.2` plus its `dck-dockerfile` skill; the repository owns its Dockerfile, no shared base image. | +| **Devcontainer support** | [`../addons/devcontainer/`](../addons/devcontainer/SKILL.md) | the repo benefits from a reproducible isolated dev container (most repos with Docker/services). Pinned devcontainer-kit `v1.3.0` plus its `dck-dockerfile` skill; the repository owns its Dockerfile, no shared base image. | | **Dailybot integration** | [`../addons/dailybot/`](../addons/dailybot/SKILL.md) | the developer/team **already uses Dailybot** or asks for team progress reporting — **do NOT auto-install for everyone**. | | **Dependency upgrade** | [`../addons/dependency-upgrade/`](../addons/dependency-upgrade/SKILL.md) | **near-default** — the repo has **declared dependencies** (any manifest or lockfile): offer **always**, and install the **inert** `/lib-upgrade` delegator under the onboarding consent **unless explicitly declined**. Installing the delegator runs **no** upgrade — upgrades are always explicit, gated work. | | **Design system** | [`../addons/design-system/`](../addons/design-system/SKILL.md) | the repo has a **user-facing interface surface**, detected per profile: when any surface is detected — even an ambiguous one — the evaluation and offer are **mandatory, not skippable**, with the detection rationale recorded. **visual-ui** (stylesheet with CSS custom properties, Tailwind config or `@theme` block, UI components, brand/style guide) is **strongly recommended**; **cli-output** (a CLI rendering library + a deliberate display layer) and **conversational** (a chat SDK or message-composition layer) are **recommended**. Every profile **requires explicit acceptance even in trust mode — none is auto-applied**. **Never offer for a repo with no interface surface** (pure library, headless service, infra-only). | -| **agentkit** | [`../addons/agentkit/`](../addons/agentkit/SKILL.md) | the developer wants plans to hand bounded `parallel_safe` tasks to other coding agents (claude, codex, cursor, …) — a machine-level install (`git clone --branch v1.4.0` + `install.sh`), never a repo requirement; delegation additionally needs each plan's `agent_delegation` grant. The kit runs agents in autonomy by default; the `--ask` / `AGENTKIT_PERMISSIONS=ask` opt-out always wins. | -| **Herdr** | [`../addons/herdr/`](../addons/herdr/SKILL.md) | the developer runs coding agents in [Herdr](https://herdr.dev) panes (one machine or several) and wants plans to ask a peer agent to take a task or run a native debate panel (by default, consequential plan decisions are debated; `decisions.debate off` turns it off) — a machine-level install of `herdr-peers@v1.3.1` (+ Herdr's official skill, pinned), never a repo requirement; delegation additionally needs each plan's `agent_delegation` grant. | +| **agentkit** | [`../addons/agentkit/`](../addons/agentkit/SKILL.md) | the developer wants plans to hand bounded `parallel_safe` tasks to other coding agents (claude, codex, cursor, …) — a machine-level install (`git clone --branch v1.5.0` + `install.sh`), never a repo requirement; delegation additionally needs each plan's `agent_delegation` grant. The kit runs agents in autonomy by default; the `--ask` / `AGENTKIT_PERMISSIONS=ask` opt-out always wins. | +| **Herdr** | [`../addons/herdr/`](../addons/herdr/SKILL.md) | the developer runs coding agents in [Herdr](https://herdr.dev) panes (one machine or several) and wants plans to ask a peer agent to take a task or run a native debate panel (by default, consequential plan decisions are debated; `decisions.debate off` turns it off) — a machine-level install of `herdr-peers@v2.1.0` (+ Herdr's official skill, pinned), never a repo requirement; delegation additionally needs each plan's `agent_delegation` grant. | | **DeepWorkPlan Vim** | [`../addons/vim/`](../addons/vim/SKILL.md) | a person on this machine uses Neovim ≥ 0.12 or asks for a terminal editor for plans — a **machine-level** install, never a repo requirement; the editor is never imposed and an existing Neovim config is **never** overwritten without explicit consent (non-interactive runs onto an existing config stop at instructions). Pinned `deepworkplan-vim@v1.0.1`, detected through the product's `addon/surface.json`. | | **AI Diff Reviewer** | [`../addons/ai-diff-reviewer/`](../addons/ai-diff-reviewer/SKILL.md) | **not offered here — installed in Phase 7a** (required local review, baseline since 2.3.0). In Phase 7b only confirm the Flow B (CI Action) opt-in decision if it was left open; never install the CI surface unrequested. | The first addon is **devcontainer support** ([`../addons/devcontainer/SKILL.md`](../addons/devcontainer/SKILL.md) + [`SPEC.md`](../addons/devcontainer/SPEC.md)), a thin integrator of -devcontainer-kit (`dck`, pinned `v1.1.2`). If the developer accepts: read +devcontainer-kit (`dck`, pinned `v1.3.0`). If the developer accepts: read that addon's `SKILL.md` and run its flow — detect the kit (`dck doctor --json`, interface `2`), install it and offer its `dck-dockerfile` skill -(`npx --yes skills add https://github.com/DailybotHQ/devcontainer-kit/tree/v1.1.2 --skill dck-dockerfile -y`), +(`npx --yes skills add https://github.com/DailybotHQ/devcontainer-kit/tree/v1.3.0 --skill dck-dockerfile -y`), then let the skill (or you, from the stack you detected in Phase 1) reason the service, runtime, ports and agents and render the repository's own layout — `.devcontainer/devcontainer.json`, diff --git a/.agents/skills/deepworkplan/refine/SKILL.md b/.agents/skills/deepworkplan/refine/SKILL.md index eaf80b25..d8756291 100644 --- a/.agents/skills/deepworkplan/refine/SKILL.md +++ b/.agents/skills/deepworkplan/refine/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-refine description: Refine a Deep Work Plan — safely edit scope, add, split or reorder tasks, promote a Lite plan to Full task files, recover a partial promotion, or explicitly migrate a legacy plan, always preserving completed evidence. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write @@ -48,7 +48,9 @@ counts, `PROGRESS.md`, and the **regenerated** `state.json` — kept mutually consistent. Deleting a completed task, dropping the Final Review (or a legacy plan's final tasks), or invalidating completed evidence requires explicit developer confirmation. `manifest.json` is **never** rewritten -(`../spec/PLAN_STATE.md` §2). +(`../spec/PLAN_STATE.md` §2). One write outside the plan folder: a queued +plan's `skipped` state in `.dwp/queue.json`, through `../shared/queue.py` +only (see *Plan queue* below). **It MUST NOT:** touch source files, write outside `.dwp/`, weaken a task's acceptance criteria or validation gate without saying so in the diff summary, @@ -340,6 +342,10 @@ a marked plan. Full-to-Lite downgrade is not automatic. exception and is explicit. - **No mandatory report:** refine never adds an Executive Report task; it may record an explicit report request in the README guidelines. +- **Plan queue:** when the developer takes a queued plan out of the + repository's queue, record why: `python3 ../shared/queue.py --dwp + set-state --plan --state skipped --note ""`. Reordering + is the developer's or the lead's own edit of `.dwp/queue.json`. - **Git ignore:** everything under `.dwp/` is git-ignored. - **No draft artifact:** `refine` always operates on a plan folder under `.dwp/plans/`. Nothing is written to `.dwp/drafts/` — it no longer exists. diff --git a/.agents/skills/deepworkplan/resume/SKILL.md b/.agents/skills/deepworkplan/resume/SKILL.md index 7a27ab4b..37b11b18 100644 --- a/.agents/skills/deepworkplan/resume/SKILL.md +++ b/.agents/skills/deepworkplan/resume/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-resume description: Resume interrupted Lite or Full Deep Work Plans from durable Markdown and state, including safe recovery of promotions without duplicating completed work or gates. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/shared/config.py b/.agents/skills/deepworkplan/shared/config.py index 9aad3e41..bace96e3 100644 --- a/.agents/skills/deepworkplan/shared/config.py +++ b/.agents/skills/deepworkplan/shared/config.py @@ -481,9 +481,15 @@ def descriptor_errors(doc: Any, dirname: Optional[str] = None) -> List[str]: errs.append('product.repo is not owner/name') if not isinstance(prod.get('tag'), str) or not VERSION_RE.match(prod['tag']): errs.append('product.tag is not an exact tag') - if 'interface' in prod and (type(prod['interface']) is not int - or prod['interface'] < 1): - errs.append('product.interface is not an integer >= 1') + if 'interface' in prod: + iface = prod['interface'] + ok = (type(iface) is int and iface >= 1) or ( + isinstance(iface, list) and iface + and all(type(v) is int and v >= 1 for v in iface) + and len(set(iface)) == len(iface)) + if not ok: + errs.append('product.interface is not an integer >= 1 or ' + 'a list of them') if 'detect' in doc: det = doc['detect'] if not isinstance(det, dict): diff --git a/.agents/skills/deepworkplan/shared/contract_v6.py b/.agents/skills/deepworkplan/shared/contract_v6.py index 492eacb6..f7204409 100644 --- a/.agents/skills/deepworkplan/shared/contract_v6.py +++ b/.agents/skills/deepworkplan/shared/contract_v6.py @@ -37,11 +37,23 @@ # carry exactly its generation's journal URL (mixed generations refused). CONTRACT_SCHEMA_URL_V7 = 'https://deepworkplan.com/schema/plan-contract/v7.json' JOURNAL_SCHEMA_URL_V7 = 'https://deepworkplan.com/schema/journal-event/v7.json' -CONTRACT_GENERATIONS = {CONTRACT_SCHEMA_URL: 'v6', CONTRACT_SCHEMA_URL_V7: 'v7'} -JOURNAL_GENERATIONS = {JOURNAL_SCHEMA_URL: 'v6', JOURNAL_SCHEMA_URL_V7: 'v7'} -JOURNAL_URL_BY_GENERATION = {'v6': JOURNAL_SCHEMA_URL, 'v7': JOURNAL_SCHEMA_URL_V7} +CONTRACT_SCHEMA_URL_V8 = 'https://deepworkplan.com/schema/plan-contract/v8.json' +JOURNAL_SCHEMA_URL_V8 = 'https://deepworkplan.com/schema/journal-event/v8.json' + +# The v8 generation (spec/LOOP_ENGINEERING.md) adds one optional top-level +# `autonomy` block to v7 — the plan's recorded authority for the loop — and +# its own journal generation: journal-event/v8 = v7 + the `blocker` event +# (structured blockers, LOOP_ENGINEERING.md section 3). The manifest line +# stays plan-manifest/v7: the manifest's shape and pointer do not change. +CONTRACT_GENERATIONS = {CONTRACT_SCHEMA_URL: 'v6', CONTRACT_SCHEMA_URL_V7: 'v7', + CONTRACT_SCHEMA_URL_V8: 'v8'} +JOURNAL_GENERATIONS = {JOURNAL_SCHEMA_URL: 'v6', JOURNAL_SCHEMA_URL_V7: 'v7', + JOURNAL_SCHEMA_URL_V8: 'v8'} +JOURNAL_URL_BY_GENERATION = {'v6': JOURNAL_SCHEMA_URL, 'v7': JOURNAL_SCHEMA_URL_V7, + 'v8': JOURNAL_SCHEMA_URL_V8} CONTRACT_URL_BY_GENERATION = {'v6': CONTRACT_SCHEMA_URL, - 'v7': CONTRACT_SCHEMA_URL_V7} + 'v7': CONTRACT_SCHEMA_URL_V7, + 'v8': CONTRACT_SCHEMA_URL_V8} # v7 delegation (spec/V7_CONTRACT.md section 3; ecosystem contract 2.5). DELEGATION_TRANSPORTS = ('headless', 'interactive') @@ -51,8 +63,19 @@ DIGEST = re.compile(r'^sha256:[0-9a-f]{64}$') +# The contract generations in order: a feature gated on a generation is +# available to every later one (spec/LOOP_ENGINEERING.md §5). +GENERATION_ORDER = ('v6', 'v7', 'v8') + + +def generation_at_least(generation, floor): + """True when `generation` is `floor` or a later contract generation.""" + return (generation in GENERATION_ORDER + and GENERATION_ORDER.index(generation) >= GENERATION_ORDER.index(floor)) + + def contract_generation(doc): - """'v6' or 'v7' from the contract's schema URL, else None.""" + """'v6', 'v7' or 'v8' from the contract's schema URL, else None.""" if not isinstance(doc, dict): return None return CONTRACT_GENERATIONS.get(doc.get('schema')) @@ -105,6 +128,23 @@ def journal_url_for(contract): # v7 catalog: the v6 catalog plus `delegation` (V7_CONTRACT.md section 3). JOURNAL_EVENT_TYPES_V7 = JOURNAL_EVENT_TYPES + ('delegation',) +# v8 catalog: the v7 catalog plus `blocker` (LOOP_ENGINEERING.md section 3). +JOURNAL_EVENT_TYPES_V8 = JOURNAL_EVENT_TYPES_V7 + ('blocker',) +JOURNAL_CATALOG_BY_GENERATION = {'v6': JOURNAL_EVENT_TYPES, + 'v7': JOURNAL_EVENT_TYPES_V7, + 'v8': JOURNAL_EVENT_TYPES_V8} + +# v8 structured blockers (LOOP_ENGINEERING.md section 3). The class is the +# escalation class of AGENT_PROTOCOL.md section 7.5; `resolver` says who may +# resolve it (absent = human). `lead` is refused for the classes that by +# definition need a human: approval (C1), a consent or login screen (C2), +# damage (C5) and terms (C6). +BLOCKER_ACTIONS = ('raised', 'resolved') +BLOCKER_CLASSES = ('C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7') +BLOCKER_RESOLVERS = ('lead', 'human') +BLOCKER_HUMAN_ONLY_CLASSES = ('C1', 'C2', 'C5', 'C6') +BLOCKER_REASON_MAX = 1000 +BLOCKER_NEEDS_MAX = 500 # Types whose payload carries evidence and therefore a trust label. EVIDENCE_TYPES = ('gate_run', 'observation', 'resource_sample', @@ -206,6 +246,54 @@ def _closed(obj, known, path, errors): # ---------------------------------------------------------------- contract +# v8 autonomy block (spec/LOOP_ENGINEERING.md): the plan's recorded +# authority for the loop. Closed keys; every default is the conservative one. +AUTONOMY_KEYS = ('stall_budget', 'promptable', 'notify', 'brain', 'queue') +AUTONOMY_NOTIFY_TARGETS = ('dailybot',) +AUTONOMY_QUEUE_STARTS = ('prompt-lead', 'launch', 'none') +# herdr-peers' exact form (MACHINE_RE): a machine id is passed to Herdr +# as an argument and must never read as an option, so it cannot start with '-'. +PANE_ADDRESS = re.compile(r"^(?:local|[A-Za-z0-9][A-Za-z0-9._-]{0,63}):[A-Za-z0-9]{1,32}:[A-Za-z0-9]{1,32}$") + + +def autonomy_errors(doc): + """Errors in the optional v8 `autonomy` block; empty means valid (or + absent — the block is optional and its defaults are conservative).""" + block = doc.get('autonomy') + if block is None: + return [] + if not isinstance(block, dict): + return ['autonomy: expected an object'] + errors = [] + _closed(block, set(AUTONOMY_KEYS), 'autonomy', errors) + budget = block.get('stall_budget') + if 'stall_budget' in block and (not isinstance(budget, int) or isinstance(budget, bool) + or not 1 <= budget <= 10): + errors.append('autonomy.stall_budget: an integer from 1 to 10 loop prompts') + promptable = block.get('promptable') + if 'promptable' in block: + if not isinstance(promptable, list) or not promptable: + errors.append('autonomy.promptable: a non-empty list of pane addresses') + else: + for addr in promptable: + if not isinstance(addr, str) or not PANE_ADDRESS.fullmatch(addr): + errors.append('autonomy.promptable: %r is not a pane address' % (addr,)) + notify = block.get('notify') + if 'notify' in block: + if not isinstance(notify, list) or not notify: + errors.append('autonomy.notify: a non-empty list of targets') + else: + for target in notify: + if target not in AUTONOMY_NOTIFY_TARGETS: + errors.append('autonomy.notify: unknown target %r' % (target,)) + if 'brain' in block and not isinstance(block['brain'], bool): + errors.append('autonomy.brain: a boolean (may a brain act on this plan)') + queue = block.get('queue') + if 'queue' in block and queue not in AUTONOMY_QUEUE_STARTS: + errors.append('autonomy.queue: one of %s' % ', '.join(AUTONOMY_QUEUE_STARTS)) + return errors + + def contract_errors(doc, parents=None): """All validation errors for one v6 contract document. @@ -216,12 +304,20 @@ def contract_errors(doc, parents=None): errors = [] if not isinstance(doc, dict): return ['contract: expected a JSON object'] - _closed(doc, {'schema', 'spec_version', 'plan', 'revision', - 'contract_id', 'parent_contract_id', 'created_at', 'title', - 'outcome', 'acceptance', 'invariants', 'scope', - 'authorization', 'permissions', 'dependencies', - 'resource_envelope', 'scheduling', 'tasks'}, 'contract', - errors) + generation = contract_generation(doc) + allowed = {'schema', 'spec_version', 'plan', 'revision', + 'contract_id', 'parent_contract_id', 'created_at', 'title', + 'outcome', 'acceptance', 'invariants', 'scope', + 'authorization', 'permissions', 'dependencies', + 'resource_envelope', 'scheduling', 'tasks'} + if generation == 'v8': + allowed.add('autonomy') + _closed(doc, allowed, 'contract', errors) + if 'autonomy' in doc and generation != 'v8': + errors.append('contract.autonomy: only the v8 generation carries the ' + 'autonomy block (generations never mix)') + if generation == 'v8': + errors.extend(autonomy_errors(doc)) declared = doc.get('schema') if declared not in CONTRACT_GENERATIONS: # Mixed-era refusal (section 9.1): v5 and older documents keep their @@ -302,7 +398,7 @@ def contract_errors(doc, parents=None): _envelope_errors(doc, errors) _scheduling_errors(doc, errors) _tasks_errors(doc, criteria, errors, - v7=CONTRACT_GENERATIONS[declared] == 'v7') + v7=generation_at_least(CONTRACT_GENERATIONS[declared], 'v7')) return errors @@ -923,8 +1019,7 @@ def journal_event_errors(event, contract=None): (expected or JOURNAL_SCHEMA_URL, event_url)) return errors etype = event.get('type') - catalog = JOURNAL_EVENT_TYPES_V7 if \ - JOURNAL_GENERATIONS[event_url] == 'v7' else JOURNAL_EVENT_TYPES + catalog = JOURNAL_CATALOG_BY_GENERATION[JOURNAL_GENERATIONS[event_url]] if etype not in catalog: errors.append('event.type: unknown event type %r (closed catalog: ' '%s)' % (etype, ', '.join(catalog))) @@ -1415,7 +1510,66 @@ def _v_delegation(event, errors): 'asserted until the parent runner observes it)') +def blocker_payload_errors(event, path='event'): + """Errors in one blocker raise/resolve payload (LOOP_ENGINEERING.md + section 3); shared by the journal validator and the ledger's writer so + a refusal names the same rule either way.""" + errors = [] + tid = event.get('task') + if not isinstance(tid, str) or not ID_TASK.match(tid): + errors.append('%s.task: expected a T-* id' % path) + action = event.get('action') + if action not in BLOCKER_ACTIONS: + errors.append('%s.action: expected raised/resolved' % path) + return errors + if action == 'resolved': + extra = sorted(k for k in ('reason', 'needs', 'class', 'resolver') + if k in event) + if extra: + errors.append('%s: a resolution carries only the task (and an ' + 'optional note), not %s' % (path, ', '.join(extra))) + return errors + reason = event.get('reason') + if not isinstance(reason, str) or not reason.strip() or \ + len(reason) > BLOCKER_REASON_MAX: + errors.append('%s.reason: expected a non-empty string (<= %d chars)' + % (path, BLOCKER_REASON_MAX)) + needs = event.get('needs') + if not isinstance(needs, str) or not needs.strip() or \ + len(needs) > BLOCKER_NEEDS_MAX or '\n' in needs or '\r' in needs: + errors.append('%s.needs: expected one non-empty line (<= %d chars) ' + 'saying what unblocks the task' % (path, BLOCKER_NEEDS_MAX)) + klass = event.get('class') + if klass not in BLOCKER_CLASSES: + errors.append('%s.class: expected one of %s (AGENT_PROTOCOL.md 7.5)' + % (path, '/'.join(BLOCKER_CLASSES))) + if 'resolver' in event: + resolver = event['resolver'] + if resolver not in BLOCKER_RESOLVERS: + errors.append('%s.resolver: expected lead/human (absent = human)' + % path) + elif resolver == 'lead' and klass in BLOCKER_HUMAN_ONLY_CLASSES: + errors.append('%s.resolver: lead is refused for %s - approval, ' + 'consent or login, damage and terms are the ' + "human's (LOOP_ENGINEERING.md section 3)" + % (path, klass)) + return errors + + +def _v_blocker(event, errors): + """LOOP_ENGINEERING.md section 3: one blocker raise or resolution. + + Not an evidence type (no trust label). Recorded only by the ledger's + block/unblock helper, never by a raw append. + """ + _closed(event, {'schema', 'type', 'seq', 'ts', 'plan', 'contract_id', + 'actor', 'note', 'task', 'action', 'reason', 'needs', + 'class', 'resolver'}, 'event', errors) + errors.extend(blocker_payload_errors(event)) + + _EVENT_VALIDATORS = { + 'blocker': _v_blocker, 'delegation': _v_delegation, 'task_start': _v_task_start, 'approval': _v_approval, @@ -1722,6 +1876,27 @@ def probe(label, mutate_contract=None, mutate_event=None): v6_marked['tasks'][0]['parallel_safe'] = True if not contract_errors(v6_marked): failures.append('parallel_safe under the v6 URL must fail') + # The parallel_safe overlap warning (R8): a dropped or inverted check + # must fail the self-test, not only the external bats suite. + def overlap_pair(surface_a, surface_b, chained=False): + return {'tasks': [ + {'id': 'T-a', 'parallel_safe': True, + 'touched_surface': [surface_a]}, + {'id': 'T-b', 'parallel_safe': True, + 'touched_surface': [surface_b], + 'prerequisites': ['T-a'] if chained else []}]} + for label, doc, expected in ( + ('same-path parallel_safe pair warns', + overlap_pair('src/product.py', 'src/product.py'), 1), + ('prerequisite-chained pair is silent', + overlap_pair('src/product.py', 'src/product.py', True), 0), + ('disjoint parallel_safe pair is silent', + overlap_pair('src/a.py', 'src/b.py'), 0)): + probes[0] += 1 + got = len(parallel_overlap_warnings(doc)) + if got != expected: + failures.append('%s: expected %d warning(s), got %d' + % (label, expected, got)) v7_stamped = dict(v7, contract_id=compute_contract_id(v7)) delegation = {'schema': JOURNAL_SCHEMA_URL_V7, 'type': 'delegation', 'seq': 1, 'ts': '2026-10-09T00:00:00Z', @@ -1747,6 +1922,53 @@ def probe(label, mutate_contract=None, mutate_event=None): mutate(ev) if not journal_event_errors(ev, against): failures.append('mutant %r should fail' % label) + # v8 generation (LOOP_ENGINEERING.md section 3): the blocker event is + # valid only under the v8 journal URL, and its rules hold. + v8 = json.loads(json.dumps(v7)) + v8['schema'] = CONTRACT_SCHEMA_URL_V8 + v8_stamped = dict(v8, contract_id=compute_contract_id(v8)) + raised = {'schema': JOURNAL_SCHEMA_URL_V8, 'type': 'blocker', 'seq': 2, + 'ts': '2026-11-16T00:00:00Z', 'plan': v8['plan'], + 'contract_id': v8_stamped['contract_id'], + 'actor': {'kind': 'agent', 'identity': 'selftest'}, + 'task': v8['tasks'][0]['id'], 'action': 'raised', + 'reason': 'the fixture repository is missing', + 'needs': 'clone the fixture repository', 'class': 'C3', + 'resolver': 'lead'} + resolved = dict({k: v for k, v in raised.items() + if k not in ('reason', 'needs', 'class', 'resolver')}, + action='resolved', seq=3) + for label, event in (('a v8 blocker raise', raised), + ('a v8 blocker resolution', resolved)): + probes[0] += 1 + if journal_event_errors(event, v8_stamped): + failures.append('%s should be valid: %s' + % (label, journal_event_errors(event, + v8_stamped)[:1])) + for label, mutate, against in ( + ('blocker under the v7 journal URL', + lambda e: e.update(schema=JOURNAL_SCHEMA_URL_V7), v7_stamped), + ('v8 event under a v7 contract', lambda e: None, v7_stamped), + ('lead resolver on a C1 blocker', + lambda e: e.update({'class': 'C1'}), v8_stamped), + ('lead resolver on a C2 blocker', + lambda e: e.update({'class': 'C2'}), v8_stamped), + ('lead resolver on a C5 blocker', + lambda e: e.update({'class': 'C5'}), v8_stamped), + ('lead resolver on a C6 blocker', + lambda e: e.update({'class': 'C6'}), v8_stamped), + ('blocker without a class', lambda e: e.pop('class'), v8_stamped), + ('multi-line needs', + lambda e: e.update(needs='one\ntwo'), v8_stamped), + ('unknown resolver', + lambda e: e.update(resolver='brain'), v8_stamped), + ('blocker claims trust', + lambda e: e.update(trust='asserted'), v8_stamped)): + probes[0] += 1 + ev = dict(raised) + mutate(ev) + if not journal_event_errors(ev, against): + failures.append('mutant %r should fail' % label) return (not failures, failures, probes[0]) diff --git a/.agents/skills/deepworkplan/shared/ledger.py b/.agents/skills/deepworkplan/shared/ledger.py index 4fdd8f59..57e3fbaa 100644 --- a/.agents/skills/deepworkplan/shared/ledger.py +++ b/.agents/skills/deepworkplan/shared/ledger.py @@ -63,8 +63,11 @@ import contract_v6 # noqa: E402 (sibling module, same directory) LEDGER_IDENTITY = 'dwp-ledger/6.0' -# F-24: a v7 plan's records name the v7 ledger (same code, v7 generation). -LEDGER_IDENTITY_BY_GENERATION = {'v6': LEDGER_IDENTITY, 'v7': 'dwp-ledger/7.0'} +# F-24: a plan's records name the ledger of its generation (same code). A +# v8 plan has its own journal and snapshot generations (journal-event/v8, +# plan-snapshot/v8; spec/LOOP_ENGINEERING.md section 3), so its records +# name the v8 ledger. +LEDGER_IDENTITY_BY_GENERATION = {'v6': LEDGER_IDENTITY, 'v7': 'dwp-ledger/7.0', 'v8': 'dwp-ledger/8.0'} def ledger_identity(contract): @@ -79,6 +82,13 @@ def ledger_identity(contract): # publishes under its own label, beside plan-contract/v6 and # journal-event/v6, and is described by spec/schema/plan-snapshot-v6.schema.json. STATE_SCHEMA_URL = 'https://deepworkplan.com/schema/plan-snapshot/v6.json' +# v8 plans project into plan-snapshot/v8: the v6 snapshot with `blocker` as +# the plan's active structured blocker (object or null) and `blocked` as a +# derived task status (spec/LOOP_ENGINEERING.md section 3). v6 and v7 plans +# keep plan-snapshot/v6 byte for byte. +STATE_SCHEMA_URL_V8 = 'https://deepworkplan.com/schema/plan-snapshot/v8.json' +SNAPSHOT_URL_BY_GENERATION = {'v6': STATE_SCHEMA_URL, 'v7': STATE_SCHEMA_URL, + 'v8': STATE_SCHEMA_URL_V8} # RFC 9.1 again, for the plan identity: the v6 manifest is its own new # generation (the v1/v2/v5 manifest shapes are frozen), and it carries the @@ -90,8 +100,13 @@ def ledger_identity(contract): # plans project into the unchanged v6 snapshot shape (positions are keyed # by event type, so the `delegation` type needs no new snapshot schema). MANIFEST_SCHEMA_URL_V7 = 'https://deepworkplan.com/schema/plan-manifest/v7.json' +# v8 plans keep the v7 manifest line (spec/LOOP_ENGINEERING.md section 5): +# the manifest's shape and its contract pointer are unchanged, so a new +# manifest URL would add a generation without a difference. The v8 +# generation changes the contract, the journal and the snapshot. MANIFEST_URL_BY_GENERATION = {'v6': MANIFEST_SCHEMA_URL, - 'v7': MANIFEST_SCHEMA_URL_V7} + 'v7': MANIFEST_SCHEMA_URL_V7, + 'v8': MANIFEST_SCHEMA_URL_V7} MANIFEST_SCHEMA_URLS = tuple(MANIFEST_URL_BY_GENERATION.values()) # Journal types that are render provenance, not plan state: they never @@ -132,6 +147,10 @@ class CompletionRefused(LedgerError): """Completion refused on missing in-window accepted evidence. Exit 4.""" +class BlockerRefused(LedgerError): + """A blocker raise/resolve the record layer refuses (recorded). Exit 5.""" + + # ---------------------------------------------------------------- plan load def _sibling_module(): @@ -566,7 +585,7 @@ def criterion_states(contract, events, task_id): if task is None: raise LedgerError('task %r is not in the contract' % task_id) start = task_start_seq_of(events, task_id) - accepted_by = {c['id']: c.get('accepted_evidence', []) + accepted_by = {c['id']: (c.get('accepted_evidence') or []) for c in contract['acceptance']['criteria']} invalid_before = invalidated_before(events) states = [] @@ -654,9 +673,43 @@ def invalidated_before(events): return found +def active_blocker(events): + """The plan's active structured blocker, or None (v8; a read-only fold). + + At most one blocker is active per plan (the writer refuses a second + task's raise). A re-raise on the same task updates reason, needs, class + and resolver but keeps `since` - the episode started at the first + raise. A resolution ends the episode. Deterministic: `since` is the + raising event's ts, never the wall clock. + """ + active = None + for event in events: + if event.get('type') != 'blocker': + continue + if event.get('action') == 'raised': + record = {'task': event.get('task'), + 'reason': event.get('reason'), + 'since': event.get('ts'), + 'needs': event.get('needs'), + 'class': event.get('class')} + if active is not None and active.get('task') == record['task']: + record['since'] = active['since'] + if 'resolver' in event: + record['resolver'] = event['resolver'] + active = record + elif event.get('action') == 'resolved' and active is not None and \ + active.get('task') == event.get('task'): + active = None + return active + + def task_complete(contract, events, task_id): """True when every gate_intent criterion has in-window accepted - evidence (the same zero-test predicate complete_task enforces).""" + evidence (the same zero-test predicate complete_task enforces) and no + unresolved blocker holds the task (LOOP_ENGINEERING.md section 3).""" + blocker = active_blocker(events) + if blocker is not None and blocker.get('task') == task_id: + return False return all(state.get('satisfied') for state in criterion_states(contract, events, task_id)) @@ -851,6 +904,12 @@ def _enforce_mint_rules(self, etype, actor, trust, evidence_path): 'gate_run records are produced only by the gate executor ' '(ledger.py gate) — a mediated write can never be ' 'observed evidence (A1)') + if etype == 'blocker': + raise LedgerError( + 'blocker records are produced only by `ledger.py block` and ' + '`ledger.py unblock` (one active blocker per plan; lead ' + 'refused for C1/C2/C5/C6) - a raw append cannot bypass them ' + '(LOOP_ENGINEERING.md section 3)') if etype == 'delegation': raise LedgerError( 'delegation records are produced only by `ledger.py ' @@ -1479,6 +1538,9 @@ def task_status(self, task_id): in_progress. A restart reopens the evidence window, so a restarted task derives in_progress again until fresh evidence lands.""" + blocker = active_blocker(self.events) + if blocker is not None and blocker.get('task') == task_id: + return 'blocked' # v8 only: blocker events exist from v8 if self.task_start_seq(task_id) is None: return 'pending' if task_complete(self.r.contract, self.events, task_id): @@ -1507,8 +1569,10 @@ def snapshot(self): seq = event.get('seq', 0) if etype and seq > positions.get(etype, {}).get('seq', 0): positions[etype] = {'seq': seq} + generation = contract_v6.contract_generation(self.r.contract) state = { - 'schema': STATE_SCHEMA_URL, + 'schema': SNAPSHOT_URL_BY_GENERATION.get(generation, + STATE_SCHEMA_URL), 'plan': self.r.contract['plan'], 'contract_id': self.r.contract_id, 'contract_revision': self.r.contract.get('revision', 1), @@ -1522,7 +1586,11 @@ def snapshot(self): 'positions': positions, 'resources': self._resource_totals(), 'checkpoint': self._last_authority_question(), - 'blocker': None, + # v8: the active structured blocker (LOOP_ENGINEERING.md + # section 3); v6/v7 projections keep the reserved null. + 'blocker': (active_blocker(self.events) + if contract_v6.generation_at_least(generation, 'v8') + else None), } archives = self.r.archives() if archives: @@ -1775,6 +1843,22 @@ def complete_task(self, task_id, actor=None): """Refuse completion unless every gate_intent criterion has in-window accepted evidence (zero-test control).""" self._check_position() + blocker = active_blocker(self.events) + if blocker is not None and blocker.get('task') == task_id: + self._append_raw('refusal', + {'subject': task_id, 'stage': 'gate', + 'reason': 'unresolved blocker (%s): %s - ' + 'resolve it with `ledger.py ' + 'unblock` first' % + (blocker.get('class'), + blocker.get('needs'))}, + actor={'kind': 'helper', + 'identity': LEDGER_IDENTITY}, + ts=_utc_now()) + raise CompletionRefused( + 'completion of %s refused: an unresolved blocker holds it ' + '(%s, needs: %s) - resolve it with `ledger.py unblock` first' + % (task_id, blocker.get('class'), blocker.get('needs'))) open_delegations = sorted( did for did, ev in self.delegations(task_id).items() if ev.get('state') == 'launched') @@ -1867,6 +1951,67 @@ def _warn_undecided_controls(self, task_id, states): 'contract at completion of %s ' '(non-blocking)' % task_id) + # -- structured blockers (v8, spec/LOOP_ENGINEERING.md section 3) ------- + + def _refuse_blocker(self, subject, reason): + self._append_raw('refusal', {'subject': subject, 'stage': 'authorize', + 'reason': reason}, + actor={'kind': 'helper', + 'identity': LEDGER_IDENTITY}, + ts=_utc_now()) + raise BlockerRefused('blocker refused: %s' % reason) + + def blocker(self, op, task_id, payload=None, actor=None, note=None): + """Raise or resolve the plan's structured blocker (writes). + + raise: a v8 plan, a task of this contract that is not complete, no + other task's blocker active, and a payload of exactly reason, needs + (one line), class (C1..C7) and an optional resolver (lead|human; + absent = human; lead refused for C1/C2/C5/C6). resolve: the active + blocker of that task. Every refusal is recorded. The only writer of + `blocker` events: a raw append is refused. + """ + self._check_position() + actor = actor or {'kind': 'agent', 'identity': 'caller'} + subject = '%s %s' % ('block' if op == 'raise' else 'unblock', task_id) + generation = contract_v6.contract_generation(self.r.contract) + if not contract_v6.generation_at_least(generation, 'v8'): + self._refuse_blocker(subject, 'this plan is %s - structured ' + 'blockers are recorded from v8 (older plans ' + 'keep their lifecycle)' % generation) + if not any(t.get('id') == task_id + for t in self.r.contract.get('tasks', [])): + self._refuse_blocker(subject, 'unknown task') + active = active_blocker(self.events) + if op == 'resolve': + if active is None or active.get('task') != task_id: + self._refuse_blocker(subject, 'no unresolved blocker holds ' + 'this task') + return self._append_raw('blocker', {'task': task_id, + 'action': 'resolved'}, + actor, _utc_now(), note=note) + if op != 'raise': + raise LedgerError('blocker op must be raise or resolve') + if not isinstance(payload, dict): + raise LedgerError('block --json must be a JSON object') + unknown = sorted(set(payload) - {'reason', 'needs', 'class', + 'resolver'}) + if unknown: + self._refuse_blocker(subject, 'unknown blocker field(s): %s ' + '(reason, needs, class, resolver)' + % ', '.join(unknown)) + if active is not None and active.get('task') != task_id: + self._refuse_blocker(subject, 'the plan is already blocked on %s ' + '- resolve that blocker first (one active ' + 'blocker per plan)' % active.get('task')) + if self.task_status(task_id) == 'completed': + self._refuse_blocker(subject, 'the task is already complete') + body = dict(payload, task=task_id, action='raised') + problems = contract_v6.blocker_payload_errors(body, 'blocker') + if problems: + self._refuse_blocker(subject, problems[0]) + return self._append_raw('blocker', body, actor, _utc_now(), note=note) + # -- delegation (v7, spec/V7_CONTRACT.md section 3) ---------------------- def delegations(self, task_id=None): @@ -1917,10 +2062,10 @@ def delegate(self, op, task_id, payload, actor=None, host_caps=None, if not isinstance(payload, dict): raise LedgerError('delegate --json must be a JSON object') if op == 'launch': - if contract_v6.contract_generation(contract) != 'v7': + if not contract_v6.generation_at_least(contract_v6.contract_generation(contract), 'v7'): self._refuse_delegation(task_id, 'this plan is %s - only v7 ' - 'plans record delegation (v6 plans ' - 'keep their lifecycle)' % + 'and later plans record delegation ' + '(v6 plans keep their lifecycle)' % contract_v6.contract_generation( contract)) granted = contract.get('permissions', {}).get('granted', []) @@ -2765,7 +2910,10 @@ def main(argv): '--human-note FILE ' '| delegate ' 'launch|observe|collect|cancel --task T [--json OBJ] ' - '[--caps JSON]} [options]') + '[--caps JSON] ' + '| block --task T --json \'{"reason":..,"needs":..,' + '"class":"C1".."C7"[,"resolver":"lead"|"human"]}\' ' + '| unblock --task T [--note TEXT]} [options]') if any(arg in ('-h', '--help') for arg in argv): print(usage) return 0 @@ -2876,6 +3024,36 @@ def main(argv): return 5 finally: lock.release() + if args.command in ('block', 'unblock'): + if not args.task: + print('%s requires --task' % args.command) + return 2 + if args.command == 'block' and not args.json: + print('block requires --json with reason, needs and class') + return 2 + rec, lock, writer = _writer_for(args, args.force) + try: + event = writer.blocker( + 'raise' if args.command == 'block' else 'resolve', + args.task, + json.loads(args.json) if args.json else None, + actor={'kind': args.actor_kind, + 'identity': args.actor_identity}, + note=args.note) + writer.project() + if args.command == 'block': + print('OK: %s blocked at seq %d (%s, resolver %s)' % + (args.task, event['seq'], event['class'], + event.get('resolver', 'human'))) + else: + print('OK: %s unblocked at seq %d' % (args.task, + event['seq'])) + return 0 + except BlockerRefused as exc: + print('REFUSED: %s' % exc) + return 5 + finally: + lock.release() if args.command == 'append': if not args.type or not args.json: print('append requires --type and --json') diff --git a/.agents/skills/deepworkplan/shared/progress_header.py b/.agents/skills/deepworkplan/shared/progress_header.py new file mode 100644 index 00000000..cc9c4e2c --- /dev/null +++ b/.agents/skills/deepworkplan/shared/progress_header.py @@ -0,0 +1,189 @@ +#!/usr/bin/env python3 +"""Write or refresh the structured header of a v8 plan's PROGRESS.md. + +The header is four fixed lines directly under the file's title, so a +reader (resume, the herdr-peers fleet, a daemon) finds the plan's state +without scraping prose (spec/LOOP_ENGINEERING.md section 3.2): + + Goal: + Current task: - (<status>) | none - plan complete + Next action: <one line> + Needs: none | <class> (<resolver>): <needs> + +`Current task` and `Needs` are derived from the plan's records (the +ledger's read-only snapshot: the blocked task first, else the first task +not completed in contract order; the active blocker's class, resolver and +needs). `Goal` and `Next action` are the caller's words: passed with +--goal / --next, otherwise kept from the existing header. Everything below +the header is the agents' own working index and is never touched. + +Stdlib only (Python 3.9+). Writes exactly one file, PROGRESS.md, atomically. + +Usage: + progress_header.py --plan PLAN_DIR [--goal TEXT] [--next TEXT] [--check] + +--check prints the header the records imply and exits 1 when the file's +header differs (writes nothing). + +Exit codes: 0 written/current · 1 refused or out of date · 2 usage. +""" +import argparse +import os +import re +import sys +import tempfile + +sys.dont_write_bytecode = True # never leave caches inside an installed pack + +import contract_v6 # noqa: E402 (sibling modules, same directory) +import ledger # noqa: E402 + +KEYS = ('Goal', 'Current task', 'Next action', 'Needs') +LINE_MAX = 300 # the caller's lines (Goal, Next action): refused beyond +TITLE_MAX = 200 # a task title is shortened to this; id and status never +_KEY_LINE = re.compile(r'^(%s): ?(.*)$' % '|'.join(re.escape(k) for k in KEYS)) + + +def _one_line(text, label): + text = ' '.join(str(text or '').split()) + if not text: + raise ValueError('%s must be a non-empty line' % label) + if len(text) > LINE_MAX: + raise ValueError('%s exceeds %d characters' % (label, LINE_MAX)) + return text + + +def derived(snapshot): + """(current task, needs) lines from a v8 snapshot.""" + tasks = snapshot.get('tasks') or [] + blocker = snapshot.get('blocker') + current = None + if isinstance(blocker, dict): + current = next((t for t in tasks if t.get('id') == blocker.get('task')), + None) + if current is None: + current = next((t for t in tasks if t.get('status') != 'completed'), + None) + if current is None: + task_line = 'none - plan complete' + else: + # Only the title may be shortened: the id and the status are what a + # reader acts on, so they are never cut. + title = ' '.join(str(current.get('title') or '').split()) + if len(title) > TITLE_MAX: + title = title[:TITLE_MAX - 3].rstrip() + '...' + task_line = '%s%s (%s)' % (current.get('id'), + ' - %s' % title if title else '', + current.get('status')) + if isinstance(blocker, dict): + # Never truncated: the ledger bounds needs to one line of at most + # 500 characters (LOOP_ENGINEERING.md section 3.1), and the unblock + # instruction is the line's whole purpose. + needs_line = '%s (%s): %s' % (blocker.get('class'), + blocker.get('resolver') or 'human', + ' '.join(str(blocker.get('needs') + or '').split())) + else: + needs_line = 'none' + return task_line, needs_line + + +def split_header(text): + """(before, header dict, after) - the title stays in `before`.""" + lines = text.splitlines() + start = 0 + if lines and lines[0].startswith('# '): + start = 1 + while start < len(lines) and not lines[start].strip(): + start += 1 + found = {} + end = start + while end < len(lines): + match = _KEY_LINE.match(lines[end]) + if not match or match.group(1) in found: + break + found[match.group(1)] = match.group(2).strip() + end += 1 + if not found: + end = start + title = lines[:1] if lines and lines[0].startswith('# ') else [] + return title, found, lines[end:] if found else lines[len(title):] + + +def render(title, values, rest): + body = ['%s: %s' % (key, values[key]) for key in KEYS] + while rest and not rest[0].strip(): + rest = rest[1:] + out = list(title) + ([''] if title else []) + body + \ + ([''] + rest if rest else []) + return '\n'.join(out) + '\n' + + +def main(argv): + parser = argparse.ArgumentParser(description=__doc__.splitlines()[0]) + parser.add_argument('--plan', required=True) + parser.add_argument('--goal') + parser.add_argument('--next', dest='next_action') + parser.add_argument('--check', action='store_true') + args = parser.parse_args(argv) + try: + plan_dir = ledger.find_plan_dir(args.plan) + records = ledger.PlanRecords(plan_dir) + generation = contract_v6.contract_generation(records.contract) + if not contract_v6.generation_at_least(generation, 'v8'): + print('progress_header: this plan is %s - the structured header ' + 'is written from v8 (older plans keep their PROGRESS.md)' + % generation, file=sys.stderr) + return 1 + snapshot = ledger.read_only_snapshot(records) + except (ledger.LedgerError, OSError, ValueError) as exc: + print('progress_header: %s' % exc, file=sys.stderr) + return 1 + path = os.path.join(plan_dir, 'PROGRESS.md') + try: + with open(path, encoding='utf-8') as fh: + text = fh.read() + except FileNotFoundError: + text = '# %s - progress\n' % records.contract['plan'] + title, found, rest = split_header(text) + task_line, needs_line = derived(snapshot) + try: + values = { + 'Goal': _one_line(args.goal if args.goal is not None + else found.get('Goal'), 'Goal (--goal)'), + 'Current task': task_line, + 'Next action': _one_line(args.next_action + if args.next_action is not None + else found.get('Next action'), + 'Next action (--next)'), + 'Needs': needs_line, + } + except ValueError as exc: + print('progress_header: %s' % exc, file=sys.stderr) + return 1 + rendered = render(title, values, rest) + if args.check: + print('\n'.join('%s: %s' % (k, values[k]) for k in KEYS)) + return 0 if rendered == text else 1 + if rendered == text: + print('OK: PROGRESS.md header current') + return 0 + fd, tmp = tempfile.mkstemp(dir=plan_dir, prefix='.PROGRESS.md.', + suffix='.tmp') + try: + with os.fdopen(fd, 'w', encoding='utf-8') as fh: + fh.write(rendered) + fh.flush() + os.fsync(fh.fileno()) + os.replace(tmp, path) + except BaseException: + if os.path.exists(tmp): + os.unlink(tmp) + raise + print('OK: PROGRESS.md header written (%s; needs %s)' + % (task_line, needs_line)) + return 0 + + +if __name__ == '__main__': + sys.exit(main(sys.argv[1:])) diff --git a/.agents/skills/deepworkplan/shared/queue.py b/.agents/skills/deepworkplan/shared/queue.py new file mode 100644 index 00000000..c3357150 --- /dev/null +++ b/.agents/skills/deepworkplan/shared/queue.py @@ -0,0 +1,294 @@ +#!/usr/bin/env python3 +"""The plan queue (``dwp-queue-v1``) — ``.dwp/queue.json``, written only by +the pack. + +Contract (PLAN_024 item 3.5, agreed with the herdr-peers side 2026-11-15): + +- Schema ``dwp-queue-v1``; the document is closed (no unknown keys) so every + consumer — the herdr-peers daemon, the fleet UI, the vim plan browser — + reads one stable shape, the way it reads the manifest today. +- Items: ``{plan, after (plan id | null), state: queued|started|done|skipped, + lead (a pane address | null), start: prompt-lead|launch}``; the queue may + carry ``parallel: true`` (default: one plan at a time per repository). +- Writers, and only these: `create` appends on approval (with the lead the + daemon prompts, ``--lead``); the developer or the lead names or renames a + queued plan's lead (``set-lead``) and reorders (the file is theirs to edit); `execute` flips ``started`` on a + task start while the item is still queued (with the lead address) and ``done`` after the plan's + closure; `create`/`refine` flip ``skipped`` with a one-line note. The + daemon is a bounded, read-only consumer and never writes. +- The write is atomic (temp file + rename) with mode 0600, the lead records' + discipline. A read of anything that is not a valid, bounded document is a + quiet None — a damaged queue must never break the plan lifecycle. + +Usage (the flows call it the way they call the other state helpers):: + + python3 shared/queue.py --dwp <dir> show + python3 shared/queue.py --dwp <dir> append --plan PLAN_x [--after PLAN_y] [--start prompt-lead] [--lead local:w1:p2] + python3 shared/queue.py --dwp <dir> set-lead --plan PLAN_x --lead local:w1:p2 + python3 shared/queue.py --dwp <dir> set-state --plan PLAN_x --state started --lead local:w1:p2 + python3 shared/queue.py --dwp <dir> set-state --plan PLAN_x --state done + python3 shared/queue.py --dwp <dir> set-state --plan PLAN_x --state skipped --note "reason" +""" + +import argparse +import json +import os +import re +import stat +import sys +import tempfile +import time + +SCHEMA = "dwp-queue-v1" +STATES = ("queued", "started", "done", "skipped") +STARTS = ("prompt-lead", "launch") +MAX_BYTES = 64 * 1024 +# The consumer's own caps (herdr-peers fleet_report): a queue above 64 items, +# or 64 KiB, is refused wholesale by the daemon — the writer enforces the +# same ceilings so a producer-valid document is always consumer-valid. +MAX_ITEMS = 64 +# herdr-peers' exact form, the same as contract_v6.PANE_ADDRESS (a test pins them +# equal): a machine id is passed to Herdr as an argument, so it cannot start with '-'. +PANE_ADDRESS = re.compile(r"^(?:local|[A-Za-z0-9][A-Za-z0-9._-]{0,63}):[A-Za-z0-9]{1,32}:[A-Za-z0-9]{1,32}$") +PANE_ID = re.compile(r"^[A-Za-z0-9]{1,32}:[A-Za-z0-9]{1,32}$") +PLAN_ID = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$") +NOTE_MAX = 200 + + +def norm_lead(value): + """A lead as written by a caller: a full pane address stays as it is; a + bare Herdr pane id (`w9:p1`, what $HERDR_PANE_ID may hold) becomes + `local:w9:p1`; surrounding blanks are dropped. The result is still checked + against PANE_ADDRESS by the caller.""" + if not isinstance(value, str): + return value + value = value.strip() + return "local:" + value if PANE_ID.fullmatch(value) else value + + +def _iso_now(): + return time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime()) + + +def queue_path(dwp_dir): + return os.path.join(dwp_dir, "queue.json") + + +def valid_doc(doc): + """True when doc is a closed, well-formed dwp-queue-v1 document.""" + if not isinstance(doc, dict): + return False + allowed = {"schema", "updated_at", "items", "parallel"} + if set(doc) - allowed or doc.get("schema") != SCHEMA: + return False + if not isinstance(doc.get("items"), list) or len(doc["items"]) > MAX_ITEMS: + return False + if "parallel" in doc and not isinstance(doc["parallel"], bool): + return False + for item in doc["items"]: + if not isinstance(item, dict): + return False + keys = set(item) + base = {"plan", "after", "state", "lead", "start"} + note = {"note"} + if not keys <= base | note or not keys >= base: + return False + if not isinstance(item["plan"], str) or not PLAN_ID.fullmatch(item["plan"]): + return False + after = item["after"] + if after is not None and (not isinstance(after, str) or not PLAN_ID.fullmatch(after)): + return False + if item["state"] not in STATES or item["start"] not in STARTS: + return False + lead = item["lead"] + if lead is not None and (not isinstance(lead, str) or not PANE_ADDRESS.fullmatch(lead)): + return False + if item["state"] == "started" and lead is None: + return False + if "note" in item and (not isinstance(item["note"], str) + or not item["note"].strip() or len(item["note"]) > NOTE_MAX): + return False + plans = [i["plan"] for i in doc["items"]] + return len(plans) == len(set(plans)) + + +def _safe_dwp(dwp_dir): + """Refuse a symlinked .dwp: the write must land inside the repository's + own .dwp, never in whatever a link points at (fleet_report's consumer + reads the repository's queue; a redirected write is data loss).""" + if os.path.islink(dwp_dir): + raise SystemExit("queue.py: %s is a symlink; the queue lives in the " + "repository's own .dwp" % dwp_dir) + + +def read(dwp_dir): + """The validated document, or None (a damaged queue never breaks the + lifecycle; the caller may warn once).""" + path = queue_path(dwp_dir) + try: + # O_NOFOLLOW + fstat on the descriptor itself: a queue.json that is + # a symlink is refused (it would read another file), and the stat + # never races through the path. + fd = os.open(path, os.O_RDONLY | getattr(os, "O_NOFOLLOW", 0)) + try: + info = os.fstat(fd) + if not stat.S_ISREG(info.st_mode): + return None + raw = os.read(fd, MAX_BYTES + 1) + finally: + os.close(fd) + if len(raw) > MAX_BYTES: + return None + doc = json.loads(raw.decode("utf-8")) + except (OSError, ValueError): + return None + return doc if valid_doc(doc) else None + + +def _write(dwp_dir, doc): + doc["updated_at"] = _iso_now() + doc.setdefault("schema", SCHEMA) + if not valid_doc(doc): + raise SystemExit("queue.py: refusing to write a document that would " + "not validate (dwp-queue-v1 is closed)") + path = queue_path(dwp_dir) + fd, tmp = tempfile.mkstemp(dir=dwp_dir, prefix=".queue.", suffix=".tmp") + try: + with os.fdopen(fd, "w") as fh: + json.dump(doc, fh, indent=2, sort_keys=True) + fh.write("\n") + os.chmod(tmp, 0o600) + os.replace(tmp, path) + finally: + if os.path.exists(tmp): + os.unlink(tmp) + + +def _load_or_new(dwp_dir): + doc = read(dwp_dir) + if doc is None: + if os.path.exists(queue_path(dwp_dir)): + raise SystemExit("queue.py: %s is not a valid dwp-queue-v1 document; " + "not touching it" % queue_path(dwp_dir)) + return {"schema": SCHEMA, "updated_at": _iso_now(), "items": []} + return doc + + +def append(dwp_dir, plan, after=None, start="prompt-lead", lead=None): + _safe_dwp(dwp_dir) + lead = norm_lead(lead) + if lead is not None and (not isinstance(lead, str) or not PANE_ADDRESS.fullmatch(lead)): + raise SystemExit("queue.py: --lead is not a pane address " + "(local|<machine>):<workspace>:<pane>") + doc = _load_or_new(dwp_dir) + for item in doc["items"]: + if item["plan"] == plan: + raise SystemExit("queue.py: %s is already in the queue (%s); plan " + "ids are one-shot — re-queuing is an error, use a " + "new plan" % (plan, item["state"])) + if after is not None: + if after == plan: + raise SystemExit("queue.py: --after must not name the plan itself") + if not any(i["plan"] == after for i in doc["items"]): + raise SystemExit("queue.py: --after names %s, which is not in the " + "queue; dependencies are queue-internal" % after) + if len(doc["items"]) >= MAX_ITEMS: + raise SystemExit("queue.py: the queue holds at most %d items (the " + "consumer refuses more)" % MAX_ITEMS) + doc["items"].append({"plan": plan, "after": after, "state": "queued", + "lead": lead, "start": start}) + _write(dwp_dir, doc) + return doc + + +def set_lead(dwp_dir, plan, lead): + """Name (or rename) the lead the daemon prompts to start a queued plan.""" + _safe_dwp(dwp_dir) + lead = norm_lead(lead) + if not isinstance(lead, str) or not PANE_ADDRESS.fullmatch(lead): + raise SystemExit("queue.py: --lead is not a pane address " + "(local|<machine>):<workspace>:<pane>") + doc = _load_or_new(dwp_dir) + item = next((i for i in doc["items"] if i["plan"] == plan), None) + if item is None: + raise SystemExit("queue.py: %s is not in the queue" % plan) + if item["state"] != "queued": + raise SystemExit("queue.py: only a queued plan's lead can be named (got %s)" % item["state"]) + item["lead"] = lead + _write(dwp_dir, doc) + return doc + + +def set_state(dwp_dir, plan, state, lead=None, note=None): + _safe_dwp(dwp_dir) + lead = norm_lead(lead) + doc = _load_or_new(dwp_dir) + if state == "started" and lead is None: + raise SystemExit("queue.py: started needs --lead (the lead that claimed the plan)") + if lead is not None: + if state != "started": + raise SystemExit("queue.py: --lead belongs to the started state") + if not isinstance(lead, str) or not PANE_ADDRESS.fullmatch(lead): + raise SystemExit("queue.py: --lead is not a pane address " + "(local|<machine>):<workspace>:<pane>") + item = next((i for i in doc["items"] if i["plan"] == plan), None) + if item is None: + raise SystemExit("queue.py: %s is not in the queue" % plan) + if item["state"] == "done": + raise SystemExit("queue.py: %s is already done; the queue is append-only history" % plan) + if state == "started" and item["state"] != "queued": + raise SystemExit("queue.py: only a queued plan starts (got %s)" % item["state"]) + if state == "skipped": + if not note or not note.strip(): + raise SystemExit("queue.py: skipping needs a one-line note") + item["note"] = note.strip()[:NOTE_MAX] + item["state"] = state + if state == "started": + item["lead"] = lead + _write(dwp_dir, doc) + return doc + + +def main(argv=None): + ap = argparse.ArgumentParser(prog="queue.py", description=__doc__.splitlines()[0]) + ap.add_argument("--dwp", required=True, help="the .dwp directory") + sub = ap.add_subparsers(dest="cmd", required=True) + sub.add_parser("show", help="print the queue document (exit 1 when unusable)") + p = sub.add_parser("append", help="append a queued plan (create, on approval)") + p.add_argument("--plan", required=True) + p.add_argument("--after", default=None, help="a plan id this one waits for") + p.add_argument("--start", default="prompt-lead", choices=STARTS) + p.add_argument("--lead", default=None, + help="the pane address the daemon prompts to start it (without one it waits for a human to name one)") + p = sub.add_parser("set-lead", help="name the lead the daemon prompts to start a queued plan") + p.add_argument("--plan", required=True) + p.add_argument("--lead", required=True) + p = sub.add_parser("set-state", help="flip a state (execute, create/refine)") + p.add_argument("--plan", required=True) + p.add_argument("--state", required=True, choices=STATES) + p.add_argument("--lead", default=None, help="the lead pane address (with started)") + p.add_argument("--note", default=None, help="the one-line reason (with skipped)") + args = ap.parse_args(argv) + if args.cmd == "show": + doc = read(args.dwp) + if doc is None: + print("queue.py: no usable queue at %s" % queue_path(args.dwp), file=sys.stderr) + return 1 + print(json.dumps(doc, indent=2, sort_keys=True)) + return 0 + if args.cmd == "set-lead": + if not PLAN_ID.fullmatch(args.plan): + raise SystemExit("queue.py: --plan is not a plan id") + set_lead(args.dwp, args.plan, args.lead) + return 0 + if args.cmd == "append": + if not PLAN_ID.fullmatch(args.plan): + raise SystemExit("queue.py: --plan is not a plan id") + append(args.dwp, args.plan, args.after, args.start, args.lead) + return 0 + set_state(args.dwp, args.plan, args.state, args.lead, args.note) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/.agents/skills/deepworkplan/shared/resources.py b/.agents/skills/deepworkplan/shared/resources.py index 1d3ab8cd..7d73d9b3 100644 --- a/.agents/skills/deepworkplan/shared/resources.py +++ b/.agents/skills/deepworkplan/shared/resources.py @@ -524,11 +524,13 @@ def addon_status(key, repo_root=None, addons_dir=None, timeout=DETECT_TIMEOUT_S) spec = det.get('interface_from') found = _read_interface(spec, stdout) if spec else None verdict['interface'] = found + accepted = pinned if isinstance(pinned, list) else [pinned] if found is None: verdict['reason'] = 'interface unreadable; treated as not available' - elif found != pinned: - verdict['reason'] = ('unknown interface major %d (pinned %d); treated ' - 'as not available' % (found, pinned)) + elif found not in accepted: + verdict['reason'] = ('unknown interface major %d (accepted %s); ' + 'treated as not available' + % (found, '/'.join(str(a) for a in accepted))) else: verdict['compatible'] = True return verdict diff --git a/.agents/skills/deepworkplan/shared/scheduler.py b/.agents/skills/deepworkplan/shared/scheduler.py index 64b55baa..d36a51e5 100644 --- a/.agents/skills/deepworkplan/shared/scheduler.py +++ b/.agents/skills/deepworkplan/shared/scheduler.py @@ -569,17 +569,24 @@ def ready(contract, events): [e.get('seq', 0) for e in events if isinstance(e, dict) and e.get('type') == 'approval'] or [0]) candidates = [] + # v8 structured blockers (LOOP_ENGINEERING.md section 3): the held task + # waits for its resolution, and a prerequisite is met only when + # task_complete says so - the same predicate start_task and authorize + # use, so evidence that landed under an open blocker never makes a + # successor look eligible. + hold = ledger.active_blocker(events) + held = hold.get('task') if hold else None for order, task in enumerate(contract.get('tasks', [])): task_id = task.get('id') - if ledger.task_complete(contract, events, task_id): + if task_id == held or ledger.task_complete(contract, events, task_id): continue blocked = False since = approval_seq or 1 for prereq in task.get('prerequisites', []): - states = ledger.criterion_states(contract, events, prereq) - if not all(state.get('satisfied') for state in states): + if not ledger.task_complete(contract, events, prereq): blocked = True break + states = ledger.criterion_states(contract, events, prereq) for state in states: since = max(since, state.get('via_seq') or 0) if blocked: diff --git a/.agents/skills/deepworkplan/spec/ADDONS.md b/.agents/skills/deepworkplan/spec/ADDONS.md index 66a8c7cc..da275b90 100644 --- a/.agents/skills/deepworkplan/spec/ADDONS.md +++ b/.agents/skills/deepworkplan/spec/ADDONS.md @@ -1,8 +1,8 @@ # ADDONS.md — Opt-In Addon Mechanism > **Version scope:** This is a retained v5.0.0 base document. The current -> v6 standard also requires the applicable `V6_*.md` extensions indexed in -> [README.md](README.md). Existing v5 plans keep this document’s recorded rules. +> standard (8.0.0) also requires the applicable `V6_*.md` extensions, their +> v7 additions and `LOOP_ENGINEERING.md`, indexed in [README.md](README.md). Existing v5 plans keep this document’s recorded rules. ## Abstract @@ -133,19 +133,19 @@ form**; only its CI surface is optional. - An optional addon at `skills/deepworkplan/addons/devcontainer/` that gives a repository a reproducible dev container through **devcontainer-kit** (`dck`; `https://github.com/DailybotHQ/devcontainer-kit`, MIT, its own - release cycle) pinned at `v1.1.2` (interface `2`). The kit owns the + release cycle) pinned at `v1.3.0` (interface `2`). The kit owns the Dockerfile template and its render (`dck init`, which reconciles and never clobbers), the pinned images and tools, the entrypoint, the launcher, SSH agent forwarding, Herdr registration and the `dck-dockerfile` skill; the addon owns detection, the offer, the stack → options reasoning, the registry record and validation. - **Per-repository layout, no shared base image (devcontainer-kit - `v1.1.2`):** the render produces `.devcontainer/devcontainer.json`, + `v1.3.0`):** the render produces `.devcontainer/devcontainer.json`, `docker/local/<service>/Dockerfile` (plus its entrypoint), `docker/local/docker-compose.yaml` and `dev.sh`. The Dockerfile starts from the official runtime image pinned by digest; the kit's GHCR base image is not required. The addon offers the skill through - `npx --yes skills add https://github.com/DailybotHQ/devcontainer-kit/tree/v1.1.2 --skill dck-dockerfile -y` + `npx --yes skills add https://github.com/DailybotHQ/devcontainer-kit/tree/v1.3.0 --skill dck-dockerfile -y` (repo-local), and the pack keeps no copy of the template. - **Vendor-neutral (7.0.0):** the 1.x in-pack templates and their company-specific requirements are retired; no network, volume, CLI or @@ -348,14 +348,14 @@ form**; only its CI surface is optional. ### 6.6 Herdr (sixth addon — interactive delegation transport, thin integrator) An optional addon integrating **herdr-peers** (`DailybotHQ/herdr-peers`, -MIT, its own release cycle) pinned at `v1.3.1` (protocol/interface `1`), as +MIT, its own release cycle) pinned at `v2.1.0` (protocol/interface `1` or `2`), as the **interactive** transport of v7 delegation ([`V7_CONTRACT.md`](V7_CONTRACT.md)): one `herdr-peers ask` to a peer agent in a [Herdr](https://herdr.dev) pane on any reachable machine, recorded in the plan journal before the reply is relied on, the reply asserted until the plan's own gates observe the work. `onboard` Phase 7b offers it as an **explicit opt-in**; installs are the pinned skills -(`herdr-peers@v1.3.1`, Herdr's official `herdr@v0.9.3`). +(`herdr-peers@v2.1.0`, Herdr's official `herdr@v0.9.3`). Placement decision (revised for 7.0.0): the peer protocol — stamp, grant, reply, loop guard, depth limit 1, fan-out cap, scope — moved out of the @@ -449,13 +449,13 @@ The shipped set: | key | product (pinned) | provides_abilities | requires_grants | transport | |---|---|---|---|---| -| `agentkit` | `DailybotHQ/coding-agents-kit` `v1.4.0`, interface 1 | `subagents`, `cancel_children`, `model_routing` | `agent_delegation` | `headless` | +| `agentkit` | `DailybotHQ/coding-agents-kit` `v1.5.0`, interface 1 | `subagents`, `cancel_children`, `model_routing` | `agent_delegation` | `headless` | | `ai-diff-reviewer` | `DailybotHQ/ai-diff-reviewer` `v3.3.16` | — | — | — | | `dailybot` | `DailybotHQ/agent-skill` `v3.23.20` | `telemetry` (reporting only, consent-gated) | — | — | | `dependency-upgrade` | in-pack only | — | — | — | | `design-system` | in-pack only | — | — | — | -| `devcontainer` | `DailybotHQ/devcontainer-kit` `v1.1.2`, interface 2 | — | — | — | -| `herdr` | `DailybotHQ/herdr-peers` `v1.3.1`, interface 1 | `subagents`, `cancel_children` | `agent_delegation` | `interactive` | +| `devcontainer` | `DailybotHQ/devcontainer-kit` `v1.3.0`, interface 2 | — | — | — | +| `herdr` | `DailybotHQ/herdr-peers` `v2.1.0`, interface 1 or 2 | `subagents`, `cancel_children` | `agent_delegation` | `interactive` | | `vim` | `DailybotHQ/deepworkplan-vim` `v1.0.1`, interface 1 | — | — | — | A descriptor is **data**: the pack executes nothing it names except its diff --git a/.agents/skills/deepworkplan/spec/AGENT_PROTOCOL.md b/.agents/skills/deepworkplan/spec/AGENT_PROTOCOL.md index 369698b8..2acf9e89 100644 --- a/.agents/skills/deepworkplan/spec/AGENT_PROTOCOL.md +++ b/.agents/skills/deepworkplan/spec/AGENT_PROTOCOL.md @@ -1,8 +1,8 @@ # AGENT_PROTOCOL.md — Cross-Agent Behavior Specification > **Version scope:** This is a retained v5.0.0 base document. The current -> v6 standard also requires the applicable `V6_*.md` extensions indexed in -> [README.md](README.md). Existing v5 plans keep this document’s recorded rules. +> standard (8.0.0) also requires the applicable `V6_*.md` extensions, their +> v7 additions and `LOOP_ENGINEERING.md`, indexed in [README.md](README.md). Existing v5 plans keep this document’s recorded rules. ## Abstract diff --git a/.agents/skills/deepworkplan/spec/ARCHETYPES.md b/.agents/skills/deepworkplan/spec/ARCHETYPES.md index f63c0e08..b6c9aec2 100644 --- a/.agents/skills/deepworkplan/spec/ARCHETYPES.md +++ b/.agents/skills/deepworkplan/spec/ARCHETYPES.md @@ -1,8 +1,8 @@ # ARCHETYPES.md — Repository Archetypes > **Version scope:** This is a retained v5.0.0 base document. The current -> v6 standard also requires the applicable `V6_*.md` extensions indexed in -> [README.md](README.md). Existing v5 plans keep this document’s recorded rules. +> standard (8.0.0) also requires the applicable `V6_*.md` extensions, their +> v7 additions and `LOOP_ENGINEERING.md`, indexed in [README.md](README.md). Existing v5 plans keep this document’s recorded rules. ## Abstract diff --git a/.agents/skills/deepworkplan/spec/CONFIG.md b/.agents/skills/deepworkplan/spec/CONFIG.md index bc4ee2ac..fa894887 100644 --- a/.agents/skills/deepworkplan/spec/CONFIG.md +++ b/.agents/skills/deepworkplan/spec/CONFIG.md @@ -34,10 +34,10 @@ Both files share one shape: "benchmark": { "enabled": true, "learnings": true }, "addons": { "ai-diff-reviewer": { "enabled": true, "version": "v3.3.16" }, - "herdr": { "enabled": true, "version": "v1.3.1" }, + "herdr": { "enabled": true, "version": "v2.1.0" }, "agentkit": { "enabled": false }, - "devcontainer": { "enabled": true, "version": "v1.0.1" }, - "vim": { "enabled": true, "version": "v1.0.0" }, + "devcontainer": { "enabled": true, "version": "v1.3.0" }, + "vim": { "enabled": true, "version": "v1.0.1" }, "dailybot": { "enabled": true, "version": "v3.23.20" } } } diff --git a/.agents/skills/deepworkplan/spec/DOCUMENTATION_STANDARD.md b/.agents/skills/deepworkplan/spec/DOCUMENTATION_STANDARD.md index 4ab2d6cf..6f89dadc 100644 --- a/.agents/skills/deepworkplan/spec/DOCUMENTATION_STANDARD.md +++ b/.agents/skills/deepworkplan/spec/DOCUMENTATION_STANDARD.md @@ -1,8 +1,8 @@ # DOCUMENTATION_STANDARD.md — DeepWorkPlan Repository Documentation Standard > **Version scope:** This is a retained v5.0.0 base document. The current -> v6 standard also requires the applicable `V6_*.md` extensions indexed in -> [README.md](README.md). Existing v5 plans keep this document’s recorded rules. +> standard (8.0.0) also requires the applicable `V6_*.md` extensions, their +> v7 additions and `LOOP_ENGINEERING.md`, indexed in [README.md](README.md). Existing v5 plans keep this document’s recorded rules. ## Abstract @@ -390,17 +390,19 @@ the onboarding flow **MUST** keep them distinct: report, per file, what it added or changed. - **Recorded provenance.** A repository that adopts this standard **SHOULD** record it — a line such as - `DWP standard: 7.0.0 (onboarded YYYY-MM-DD; upgraded YYYY-MM-DD; skill x.y.z)` + `DWP standard: 8.0.0 (onboarded YYYY-MM-DD; upgraded YYYY-MM-DD; skill x.y.z)` in `AGENTS.md` or `docs/README.md` — so a checker and a future agent can tell which standard the repository declares. The version in that line is the **umbrella DWP standard** implemented by the installed pack, not the version of this retained v5 base document. The v6 - extension documents and their v7 additions in this directory define the - current plan lifecycle. + extension documents, their v7 additions and the v8 loop engineering + (`LOOP_ENGINEERING.md`) in this directory define the current plan + lifecycle. A conformance checker reads the declaration against the standard it - implements and rejects a newer one. The standard's series are 2.x, 4.x, - 5.x and 6.x (historical) and 7.x (current — there is no 3.x); the skill package + implements and rejects a newer one. The standard's series are 2.x and + 4.x (historical), 5.x, 6.x and 7.x (retained) and 8.x (current — there is + no 3.x); the skill package `version:` and the `/v2.json` and `/v5.json` schema URLs are two further, separate series, never compared against this line. diff --git a/.agents/skills/deepworkplan/spec/DWP_SPECIFICATION.md b/.agents/skills/deepworkplan/spec/DWP_SPECIFICATION.md index eefa98fa..6c787f36 100644 --- a/.agents/skills/deepworkplan/spec/DWP_SPECIFICATION.md +++ b/.agents/skills/deepworkplan/spec/DWP_SPECIFICATION.md @@ -1,8 +1,8 @@ # DWP_SPECIFICATION.md — Deep Work Plan Specification > **Version scope:** This is a retained v5.0.0 base document. The current -> v6 standard also requires the applicable `V6_*.md` extensions indexed in -> [README.md](README.md). Existing v5 plans keep this document’s recorded rules. +> standard (8.0.0) also requires the applicable `V6_*.md` extensions, their +> v7 additions and `LOOP_ENGINEERING.md`, indexed in [README.md](README.md). Existing v5 plans keep this document’s recorded rules. ## Abstract @@ -39,7 +39,7 @@ workspace. Archetype-specific behavior is called out inline, especially in §8 Three version series coexist on purpose and never compare: the skill **package** `version:` (release-managed), the **DWP standard** this document versions -(2.x and 4.x historical, 5.x retained as the base, 6.x retained, 7.x current — there is no 3.x standard; the v3 launch +(2.x and 4.x historical, 5.x retained as the base, 6.x and 7.x retained, 8.x current — there is no 3.x standard; the v3 launch was a product release), and the **schema URLs** (`plan-state/v2.json`, `plan-state/v5.json` — a schema-shape series, not the standard's version; the v5 URLs are **generation snapshots** of the v2 shape, adding no property). diff --git a/.agents/skills/deepworkplan/spec/LITE_PLANS.md b/.agents/skills/deepworkplan/spec/LITE_PLANS.md index f07ff6f6..54e5c5e7 100644 --- a/.agents/skills/deepworkplan/spec/LITE_PLANS.md +++ b/.agents/skills/deepworkplan/spec/LITE_PLANS.md @@ -1,8 +1,8 @@ # Lite and Full Plan Lifecycle > **Version scope:** This is a retained v5.0.0 base document. The current -> v6 standard also requires the applicable `V6_*.md` extensions indexed in -> [README.md](README.md). Existing v5 plans keep this document’s recorded rules. +> standard (8.0.0) also requires the applicable `V6_*.md` extensions, their +> v7 additions and `LOOP_ENGINEERING.md`, indexed in [README.md](README.md). Existing v5 plans keep this document’s recorded rules. | Field | Value | | --- | --- | diff --git a/.agents/skills/deepworkplan/spec/LOOP_ENGINEERING.md b/.agents/skills/deepworkplan/spec/LOOP_ENGINEERING.md new file mode 100644 index 00000000..902804e4 --- /dev/null +++ b/.agents/skills/deepworkplan/spec/LOOP_ENGINEERING.md @@ -0,0 +1,174 @@ +# Loop Engineering (normative, v8) + +> Status: normative for the v8 generation. The loop's machinery lives in +> herdr-peers (`autopilot --loop --appoint --brain`, the fleet map and UI, +> the plan-queue consumer); this section defines what a **plan** records so +> the loop can carry it to the end, and nothing more. The key words MUST, +> MUST NOT, SHOULD and MAY are used as in RFC 2119. + +## 1. The v8 rule + +An approved plan MUST run to completion without routine human intervention, +inside the authority recorded in that plan. The human MUST be notified, not +waited on, except when a login or credential is required or a plan's own C1–C7 +gate requires human input and pre-authorization is absent. At those exceptions, +execution MUST stop at the gate until the required input is available. The +methodology works alone; addons only amplify. + +### 1.1. Loop semantics + +Loop engineering describes how an optional daemon carries an approved, +registered plan forward. It does not expand the plan's authority. + +**Registration and succession.** Registration uses a lead claim, which MUST +record the lead and its succession list. The peer holding the highest lead +epoch is the lead. With `autopilot --loop`, a plan with a readable state and a +lead record MAY be watched; the daemon MAY prompt an idle lead to continue +within the plan's recorded authority. If the lead pane is gone, the daemon MAY +prompt the first reachable successor to run `lead takeover`; the helper MUST +check whether takeover is allowed. The daemon MUST NOT write the lead record. +A peer outside the recorded succession MAY become lead only through +Appointment below, by its own takeover, never by the daemon. + +**Human-started daemon and authority.** A human MUST start autopilot. The +background daemon MAY cover enabled machines and sends fixed prompts; a prompt +MUST NOT be treated as a new approval or authority grant. In particular, a +continuation nudge asks the lead to respect the plan's existing gates and +authority. A human MUST provide logins and credentials. + +**Appointment.** Lead appointment MUST require both a human's recorded grant +on the lead claim and a human start of the daemon with `--appoint`. After the +lead and its successors meet the documented gone-and-no-progress checks, the +daemon MAY prompt the first eligible live lane to request appointment; the +helper MUST check the conditions again. A new lead MUST run `lead verify` +before a merge, tag, or release. + +**Queue, events, and fleet map.** When a queued item is ready (its `after` +plan is completed, or it has none) and its start is `prompt-lead`, the daemon +MAY prompt its named lead to start it through the plan tool's execute flow; +its start gate MUST check approval again. The daemon MAY report plan events as `plan-event-v1` +JSON to the configured `--notify` command. The `fleet-v1` map reports agents, +plans, and their roles; `fleet ui` shows the map live. The daemon MAY read +the queue and MUST NOT write it. + +These behaviors are the optional Herdr integration, documented in +[herdr-peers v2.1.0 `autopilot.md` §§1–9](https://github.com/DailybotHQ/herdr-peers/blob/v2.1.0/skills/herdr-peers/autopilot.md) +and [herdr-peers v2.1.0 `protocol.md` §12](https://github.com/DailybotHQ/herdr-peers/blob/v2.1.0/skills/herdr-peers/protocol.md#12-leadership-lead-notices-and-fencing). + +## 2. The `autonomy` block (plan-contract/v8) + +Optional, top-level, closed: a validator MUST refuse an unknown key, and +MUST refuse the block on any contract generation other than v8. Every +absent key has one recorded default, and a consumer MUST apply it, never a +guess of its own: + +| Key | Type | Absent means | +|---|---|---| +| `stall_budget` | integer 1–10 | `3` (herdr-peers' `MAX_PLAN_PROMPTS`) | +| `promptable` | non-empty list of pane addresses | the plan's **lead only** | +| `notify` | non-empty list of targets | no target (the loop still records) | +| `brain` | boolean | `false` — no brain may act on this plan | +| `queue` | `prompt-lead` \| `launch` \| `none` | `none` — the plan is not queued | + +A pane address MUST match herdr-peers' exact form +`(?:local|[A-Za-z0-9][A-Za-z0-9._-]{0,63}):[A-Za-z0-9]{1,32}:[A-Za-z0-9]{1,32}` +— a machine id never starts with `-` (it is passed to Herdr as an +argument). An absent block means all five defaults: the human is the +resolver, the lead is the only promptable pane, nothing is notified, no +brain acts, the plan is not queued. + +## 3. Structured blockers + +A v8 plan records why it cannot continue as data, so the loop, the fleet and +a resuming agent read the same fields instead of scraping prose. + +### 3.1. The blocker record + +A blocker MUST be recorded through the ledger's helper (`ledger.py block` +to raise, `ledger.py unblock` to resolve) as a `blocker` event of +`journal-event/v8`; a raw append of a `blocker` event MUST be refused, and +every refused raise or resolution MUST be recorded as a refusal. A raise +carries: + +| Field | Rule | +|---|---| +| `task` | the blocked task of this contract; a task its evidence already closed MUST NOT be blocked | +| `reason` | non-empty, at most 1000 characters: why the task cannot continue | +| `needs` | exactly one non-empty line, at most 500 characters: what unblocks it | +| `class` | REQUIRED, one of `C1`–`C7` ([`AGENT_PROTOCOL.md`](AGENT_PROTOCOL.md) §7.5) | +| `resolver` | OPTIONAL, `"lead"` or `"human"`; an absent resolver MUST be read as `human` | + +`lead` means resolvable inside the plan's recorded authority **without** a +credential, login, consent, payment, push to main, release or deletion. +`resolver: "lead"` MUST be refused for `C1`, `C2`, `C5` and `C6` (approval, +a consent or login screen, damage, terms are the human's). A resolution +carries only the task (and an optional note). + +At most one blocker MUST be active per plan: a raise on another task MUST be +refused until the active one is resolved. A re-raise on the same task MAY +update `reason`, `needs`, `class` and `resolver`; the episode keeps the +`since` of its first raise. While a blocker is unresolved its task MUST NOT +complete: completion MUST be refused, and evidence that lands meanwhile does +not close the task. + +### 3.2. Where readers find it + +The plan's `state.json` is `plan-snapshot/v8`: the `plan-snapshot/v6` shape +with `blocker` as the active blocker — `{task, reason, since, needs, class, +resolver?}` — or `null`, and `blocked` as a derived task status that wins over +the others while the blocker is unresolved. Like every snapshot field it is +projected by the ledger, never written by hand. + +`PROGRESS.md` SHOULD open with a structured header of four fixed lines +directly under its title, written by create and refreshed on every +transition (`shared/progress_header.py`): + +```text +Goal: <one line> +Current task: <task id> - <title> (<status>) +Next action: <one line> +Needs: none | <class> (<resolver>): <needs> +``` + +`Current task` and `Needs` are derived from the snapshot (the blocked task +first, else the first task not completed); `Goal` and `Next action` are the +executing agent's words. The rest of `PROGRESS.md` stays the agents' working +index. + +### 3.3. What the loop may do with it + +The loop (its brain included) MUST NOT ask a lead to resolve a blocker the +plan itself did not mark `resolver: "lead"`; everything else waits for the +human. v6 and v7 plans record no `blocker` events, keep `plan-snapshot/v6` +(whose `blocker` stays `null`), and every blocker they report is the +human's. + +## 4. The plan queue + +`.dwp/queue.json`, schema `dwp-queue-v1`. Only the pack (`shared/queue.py`) +or a human MAY write it; the daemon MUST only read it. Create appends on +approval; a human or the lead reorders. Inside Herdr, where the lead's pane +address exists, execute MUST mark `started` on a task start while the item is +still `queued` (normally the plan's first task, once its lead has claimed it; +a crash or a resume retries), together with that address (a `started` item +without one is invalid); outside Herdr the item stays `queued` and a consumer +reads the journal's task start as in flight. Execute marks +`done` after the plan's closure; create/refine skip with a +one-line note. A queue MUST NOT hold more than 64 items. +One plan at a time per repository unless the queue carries +`parallel: true`. Dependencies are queue-internal (`after` names a plan +already queued). The daemon is a bounded, read-only consumer; a damaged +queue is a quiet none and never breaks the lifecycle. + +## 5. What v8 keeps + +Everything v7 carries — `tasks[].parallel_safe`, delegation and the full v7 +event set — under one ordered generation ladder: every feature gated "v7" +MUST be available to v8 and later. A v8 plan MUST record its events under +`journal-event/v8` (the v7 event set plus `blocker`, §3) and project into +`plan-snapshot/v8`; a journal that mixes generations MUST be refused. A v8 +plan MUST keep the v7 manifest line (`plan-manifest/v7`): the manifest's +shape and its contract pointer do not change, so a new manifest URL would +add a generation without a difference. A conformance checker MUST pair a v7 +manifest with a v8 contract. v6 and v7 plans keep their records byte for +byte. diff --git a/.agents/skills/deepworkplan/spec/PLAN_STATE.md b/.agents/skills/deepworkplan/spec/PLAN_STATE.md index 7cc5dda4..30152b5c 100644 --- a/.agents/skills/deepworkplan/spec/PLAN_STATE.md +++ b/.agents/skills/deepworkplan/spec/PLAN_STATE.md @@ -1,8 +1,8 @@ # PLAN_STATE.md — Machine-Readable Plan State > **Version scope:** This is a retained v5.0.0 base document. The current -> v6 standard also requires the applicable `V6_*.md` extensions indexed in -> [README.md](README.md). Existing v5 plans keep this document’s recorded rules. +> standard (8.0.0) also requires the applicable `V6_*.md` extensions, their +> v7 additions and `LOOP_ENGINEERING.md`, indexed in [README.md](README.md). Existing v5 plans keep this document’s recorded rules. ## Abstract @@ -471,7 +471,11 @@ new-generation URL — `https://deepworkplan.com/schema/plan-snapshot/v6.json` is a generation snapshot of the v2 shape), and the v6 snapshot is a different artifact projected from the journal, not a mutation of those shapes. The same rule gave v6 the `plan-contract/v6` and -`journal-event/v6` labels. +`journal-event/v6` labels. v8 plans project into the next generation of +that label, `https://deepworkplan.com/schema/plan-snapshot/v8.json` +(`spec/schema/plan-snapshot-v8.schema.json`): the v6 shape with `blocker` +as the active structured blocker and `blocked` as a derived task status +([`LOOP_ENGINEERING.md`](LOOP_ENGINEERING.md) §3). **Materialization order.** `shared/ledger.py materialize` writes the v6 records in exactly this order — manifest, contract, approval event — each diff --git a/.agents/skills/deepworkplan/spec/README.md b/.agents/skills/deepworkplan/spec/README.md index 408b0dd6..f2ffc618 100644 --- a/.agents/skills/deepworkplan/spec/README.md +++ b/.agents/skills/deepworkplan/spec/README.md @@ -1,16 +1,21 @@ -# DeepWorkPlan Methodology Specification — v7 +# DeepWorkPlan Methodology Specification — v8 > The canonical normative standard for an **AI-first autopilot repository** and the -> The current **Deep Work Plan (DWP)** standard is **7.0.0** (decided for the -> 7.0.0-beta.1 release: it adds normative surface — the configuration file and -> addon registry `CONFIG.md`, addon descriptors `ADDONS.md` §7, -> addon-provided abilities `V7_ABILITIES.md`, the v7 contract generation -> `V7_CONTRACT.md` and four schemas; 6.0.0 declarations stay valid). The v5 +> The current **Deep Work Plan (DWP)** standard is **8.0.0** (decided for the +> 8.0.0-beta.1 release: it adds normative surface — the v8 contract generation +> with the optional `autonomy` block, the v8 journal and snapshot generations +> with structured blockers, and loop engineering, `LOOP_ENGINEERING.md`, with +> three schemas; 7.0.0 and 6.0.0 declarations stay valid). The 7.0.0 standard +> added the configuration file and addon registry `CONFIG.md`, addon +> descriptors `ADDONS.md` §7, addon-provided abilities `V7_ABILITIES.md`, the +> v7 contract generation `V7_CONTRACT.md` and four schemas. The v5 > base documents below remain versioned 5.0.0 so existing plans keep their > recorded rules; the four `V6_*.md` documents define the lifecycle on top of -> that base and the `V7_*.md` documents extend it. New plans created by the 7.x pack use the v7 contract generation of -> the same record layer (`V7_CONTRACT.md`: v6 plus the `parallel_safe` marker -> and delegation records); v6 plans keep v6. Existing v1/v2/v5 plans +> that base and the `V7_*.md` documents extend it. New plans created by the 8.x pack use the v8 contract generation of +> the same record layer (`LOOP_ENGINEERING.md`: the v7 contract plus the +> optional `autonomy` block, recorded under `journal-event/v8` with +> structured blockers; `V7_CONTRACT.md`: v6 plus the `parallel_safe` +> marker and delegation records); v7 and v6 plans keep their generation. Existing v1/v2/v5 plans > retain their recorded generation and are never silently migrated. Schema > URLs are published at `https://deepworkplan.com/schema/`. @@ -38,6 +43,7 @@ orchestrator hub, and agent workspace — are addressed throughout. | [`CONFIG.md`](CONFIG.md) | **7.0.0** configuration file: `.dwp/config.json` / `~/.dwp/config.json` — one shape, one stdlib parser (`shared/config.py`), two keys: `benchmark` (wholesale, `BENCHMARK.md` §1) and the `addons` registry (per-key precedence, keys = in-pack addon directory names, closed `{enabled, version}` entries, fail-closed with one warning, unknown keys ignored, absent = not enabled, informative `version`); the reconciling consent-gated writer used by `onboard`; published as `schema/dwp-config-v1`. The registry can only offer or amplify — never gate conformance or a plan. | | [`V7_CONTRACT.md`](V7_CONTRACT.md) | **7.0.0** contract generation v7 of the v6 record layer: `plan-contract/v7` = v6 + optional `tasks[].parallel_safe` (the create-time delegation marker); `journal-event/v7` = v6 + the `delegation` event (launched/completed/failed/cancelled; never evidence — a delegate's result stays `asserted` until this plan's runner observes it); `plan-manifest/v7`; generation by schema URL, never mixed; the record-layer delegation gate and `ledger.py delegate launch|observe|collect|cancel`. v6 schema bytes unchanged. | | [`V7_ABILITIES.md`](V7_ABILITIES.md) | **7.0.0** addon-provided abilities: effective abilities = host-declared ∪ `provides_abilities` of addons that are enabled in the registry, carry a valid `addon.json`, are detected (argv detect with no shell and a timeout, or paths) and report a compatible interface major; one warning and no contribution otherwise; never persisted into a plan; an ability is never authority (grants still apply) and never consent (telemetry). Extends `V6_RESOURCES.md` §1 without changing it. | +| [`LOOP_ENGINEERING.md`](LOOP_ENGINEERING.md) | **8.0.0 line** (normative from 8.0.0): contract generation v8 = `plan-contract/v8`, v7 plus the optional, closed `autonomy` block (stall budget, promptable panes, notify targets, brain, queue start; one recorded default per absent key); v8 plans keep the v7 manifest line and record under `journal-event/v8` (v7 plus the `blocker` event) projected into `plan-snapshot/v8`; the `dwp-queue-v1` plan queue written only by the pack (`shared/queue.py`) and read by the herdr-peers daemon; structured blockers (class C1–C7, resolver lead\|human, one line of needs; raised and resolved only by `ledger.py block`/`unblock`) and the `PROGRESS.md` header (`shared/progress_header.py`). | | [`V7_ROADMAP.md`](V7_ROADMAP.md) | **Non-normative** planning record for v7: the optional addons (Herdr, DeepWorkPlan Vim), a pointer to the peer protocol that now lives in herdr-peers, and the never-a-conformance-gate posture. Nothing here gates the current standard. | | [`ADDONS.md`](ADDONS.md) | The addon mechanism + contract (reconcile-don't-clobber); seven opt-in addons plus the AI Diff Reviewer local review, required in the baseline since 2.3.0 (§6.5). | diff --git a/.agents/skills/deepworkplan/spec/V6_LIFECYCLE.md b/.agents/skills/deepworkplan/spec/V6_LIFECYCLE.md index f7bb462c..09c8609c 100644 --- a/.agents/skills/deepworkplan/spec/V6_LIFECYCLE.md +++ b/.agents/skills/deepworkplan/spec/V6_LIFECYCLE.md @@ -45,15 +45,20 @@ event: |---|---|---|---|---| | v6 | `plan-contract/v6` | `journal-event/v6` | `plan-manifest/v6` | — | | v7 | `plan-contract/v7` | `journal-event/v7` | `plan-manifest/v7` | `tasks[].parallel_safe`, the `delegation` event ([`V7_CONTRACT.md`](V7_CONTRACT.md)) | +| v8 | `plan-contract/v8` | `journal-event/v8` | `plan-manifest/v7` | the optional `autonomy` block and structured blockers (the `blocker` event, projected into `plan-snapshot/v8`) ([`LOOP_ENGINEERING.md`](LOOP_ENGINEERING.md)); everything v7 carries | -Both generations run through the same loops and helpers and project into -the same `plan-snapshot/v6` shape. A plan never changes generation: a v6 -plan keeps v6 forever, and a journal mixing generations is refused. +Every generation runs through the same loops and helpers. v6 and v7 plans +project into the same `plan-snapshot/v6` shape; v8 plans project into +`plan-snapshot/v8`, the same shape with the structured blocker wired +([`LOOP_ENGINEERING.md`](LOOP_ENGINEERING.md) §3). A plan never changes +generation: a v6 plan keeps v6 forever, and a journal mixing generations is +refused. ## 2. Activation (normative) -With the current 7.x pack, new plans use the v7 contract generation by -default (§1 table); an explicit `v6` request materializes a v6 contract. A +With the current 8.x pack, new plans use the v8 contract generation by +default (§1 table); an explicit `v7` or `v6` request materializes that +contract generation. A developer's explicit v6 request also selects this flow when an older pack provides it. A 5.x pack without that request follows its recorded v5 flow. Existing diff --git a/.agents/skills/deepworkplan/spec/V7_ABILITIES.md b/.agents/skills/deepworkplan/spec/V7_ABILITIES.md index 9d88787f..4ac50aeb 100644 --- a/.agents/skills/deepworkplan/spec/V7_ABILITIES.md +++ b/.agents/skills/deepworkplan/spec/V7_ABILITIES.md @@ -48,11 +48,13 @@ A descriptor's `detect` is read-only: ## 3. Interface compatibility -When the descriptor pins `product.interface`, the integer the product -reports MUST equal it. The value is read by `detect.interface_from`: +When the descriptor pins `product.interface` — an integer, or a list of +integers when the product kept an older protocol's surface additive +(herdr-peers 2.0.0 kept protocol 1, so its descriptor accepts `[1, 2]`) — +the major the product reports MUST be a member of the pinned set. The value is read by `detect.interface_from`: `json:<field>` (the command's stdout is one JSON object, e.g. `ak doctor --json` → `"interface": 1`), `regex:<pattern>` (first group, e.g. -`herdr-peers --version` → `(protocol 1)`), or `file-json:<path>#<field>` +`herdr-peers --version` → `(protocol N)`), or `file-json:<path>#<field>` (e.g. the editor's `addon/surface.json`). An unreadable value or a different major is "not available" with one warning — the integrator refuses a product it cannot speak to rather than guess. A product that diff --git a/.agents/skills/deepworkplan/spec/V7_CONTRACT.md b/.agents/skills/deepworkplan/spec/V7_CONTRACT.md index 530e06ed..27bfc21a 100644 --- a/.agents/skills/deepworkplan/spec/V7_CONTRACT.md +++ b/.agents/skills/deepworkplan/spec/V7_CONTRACT.md @@ -19,7 +19,9 @@ journal event carries `…/journal-event/v7.json`. A journal that mixes generations, or a v7 event under a v6 contract, MUST be refused. - New plans created by the 7.x pack are v7 by default; an explicit `v6` - request materializes a v6 contract. A plan never changes generation: v6 + request materializes a v6 contract. The 8.x pack defaults to v8 + ([`LOOP_ENGINEERING.md`](LOOP_ENGINEERING.md): v7 plus the optional + `autonomy` block); an explicit `v7` request still materializes v7. A plan never changes generation: v6 plans keep v6 forever and run unchanged. - v7 plans project into the unchanged `plan-snapshot/v6` shape (its `positions` are keyed by event type, so the `delegation` type needs no new @@ -95,7 +97,7 @@ transition of one delegate: `launch` MUST be refused — and the refusal recorded as a `refusal` event, exit 5 — unless **all** hold: -1. the contract is v7; +1. the contract is v7 or later (v8, `LOOP_ENGINEERING.md` §5); 2. the contract grants `agent_delegation`; 3. the task exists, has started, and is not complete; 4. the task is marked `parallel_safe`, **or** the delegate is read-only diff --git a/.agents/skills/deepworkplan/spec/V7_ROADMAP.md b/.agents/skills/deepworkplan/spec/V7_ROADMAP.md index 8f0f31dd..c0f0ce11 100644 --- a/.agents/skills/deepworkplan/spec/V7_ROADMAP.md +++ b/.agents/skills/deepworkplan/spec/V7_ROADMAP.md @@ -27,7 +27,7 @@ number), and the pack carries a **thin integrator** for it — never a copy. | **Addon-provided abilities** | effective abilities = host ∪ abilities of enabled, valid, detected, interface-compatible addons; computed per call, never persisted; an ability is never authority or consent ([`V7_ABILITIES.md`](V7_ABILITIES.md)). | | **v7 contract generation** | `plan-contract/v7` (v6 + `parallel_safe`), `journal-event/v7` (v6 + `delegation`), `plan-manifest/v7`; default for new plans; v6 plans unchanged ([`V7_CONTRACT.md`](V7_CONTRACT.md)). | | **Delegation** | `ledger.py delegate launch|observe|collect|cancel` behind a recorded gate (grant, marker, ability); `execute/delegation.md`; a delegate's result stays `asserted` until the plan's own gates observe it. | -| **Thin integrators** | `agentkit` → `coding-agents-kit@v1.4.0` (headless transport, `ak run`; autonomy by default with an always-winning opt-out since `v0.2.0`); `herdr` → `herdr-peers@v1.3.1` (interactive transport and native debate panels; stamp `[herdr-peers]`, protocol owned by herdr-peers); `devcontainer` → `devcontainer-kit@v1.1.2` (`dck init` and the `dck-dockerfile` skill, interface 2, per-repository Dockerfile, vendor-neutral); `vim` → `deepworkplan-vim@v1.0.1` (surface-driven editor offer). | +| **Thin integrators** | `agentkit` → `coding-agents-kit@v1.5.0` (headless transport, `ak run`; autonomy by default with an always-winning opt-out since `v0.2.0`); `herdr` → `herdr-peers@v2.1.0` (interactive transport and native debate panels; stamp `[herdr-peers]`, protocol owned by herdr-peers); `devcontainer` → `devcontainer-kit@v1.3.0` (`dck init` and the `dck-dockerfile` skill, interface 2, per-repository Dockerfile, vendor-neutral); `vim` → `deepworkplan-vim@v1.0.1` (surface-driven editor offer). | | **Pre-release channel** | `prerelease.yml` cuts `X.Y.Z-beta.N` on dispatch (never `latest`, with `SHA256SUMS`); stable releases ignore pre-release tags and graduate only on `[graduate]`. | | **Standard** | DWP standard **7.0.0** (normative additions above); `6.0.0` declarations stay valid. | diff --git a/.agents/skills/deepworkplan/spec/schema/addon-descriptor-v1.schema.json b/.agents/skills/deepworkplan/spec/schema/addon-descriptor-v1.schema.json index b8bab2ba..fc6b009b 100644 --- a/.agents/skills/deepworkplan/spec/schema/addon-descriptor-v1.schema.json +++ b/.agents/skills/deepworkplan/spec/schema/addon-descriptor-v1.schema.json @@ -38,9 +38,22 @@ "pattern": "^v\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z.]+)?$" }, "interface": { - "type": "integer", - "minimum": 1, - "description": "The product interface major the integrator speaks (ecosystem contract section 2.0). Omitted for products that publish no interface integer; their compatibility is decided by the pinned tag alone." + "oneOf": [ + { + "type": "integer", + "minimum": 1 + }, + { + "type": "array", + "minItems": 1, + "uniqueItems": true, + "items": { + "type": "integer", + "minimum": 1 + } + } + ], + "description": "The product interface major(s) this addon accepts. Protocol generations are additive: herdr-peers 2.0.0 (protocol 2) keeps the protocol-1 surface, so the herdr descriptor accepts [1, 2]." } } }, diff --git a/.agents/skills/deepworkplan/spec/schema/journal-event-v8.schema.json b/.agents/skills/deepworkplan/spec/schema/journal-event-v8.schema.json new file mode 100644 index 00000000..c71a4dae --- /dev/null +++ b/.agents/skills/deepworkplan/spec/schema/journal-event-v8.schema.json @@ -0,0 +1,1093 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://deepworkplan.com/schema/journal-event/v8.json", + "description": "Deep Work Plan journal event, v8 generation (spec/LOOP_ENGINEERING.md section 3). A strict superset of journal-event/v7: the full v7 catalog unchanged plus the blocker event - one raise or resolution of the plan's structured blocker. A raise carries the task, a reason, needs (one line: what unblocks it), the escalation class C1..C7 (AGENT_PROTOCOL.md section 7.5) and an optional resolver (lead or human; absent means human; lead is refused for C1, C2, C5 and C6). A resolution carries only the task. At most one blocker is active per plan, an unresolved raise keeps its task from completing, and blocker events are written only by the ledger's block/unblock helper, never by a raw append. Not evidence: it carries no trust label.", + "type": "object", + "required": [ + "schema", + "type", + "seq", + "ts", + "plan", + "contract_id", + "actor" + ], + "properties": { + "schema": { + "const": "https://deepworkplan.com/schema/journal-event/v8.json" + }, + "type": { + "enum": [ + "task_start", + "approval", + "gate_run", + "observation", + "adaptation", + "amendment", + "intervention", + "resource_sample", + "control_pair", + "selection", + "refusal", + "view_render", + "reconciliation", + "journal_repair", + "delegation", + "blocker" + ] + }, + "seq": { + "type": "integer", + "minimum": 1, + "description": "Position in the journal; strictly increasing across the file. Rolls may not truncate below snapshot-cited positions (A12)." + }, + "ts": { + "type": "string", + "format": "date-time", + "description": "The scheduler's clock (A11) - the aging clock for starvation protection." + }, + "plan": { + "type": "string", + "description": "Plan folder name: optional monotonic numeric ID of at least three digits, followed by a 2–5-word lowercase snake_case slug; legacy unnumbered names remain valid.", + "pattern": "^PLAN_([0-9]{3,}_)?[a-z0-9]+(_[a-z0-9]+){1,4}$" + }, + "contract_id": { + "type": "string", + "pattern": "^[0-9a-f]{64}$", + "description": "Every record produced under a contract cites its id (section 3.1)." + }, + "actor": { + "type": "object", + "additionalProperties": false, + "required": [ + "kind", + "identity" + ], + "properties": { + "kind": { + "enum": [ + "helper", + "agent", + "host_adapter", + "human" + ] + }, + "identity": { + "type": "string", + "minLength": 1, + "maxLength": 100 + } + } + }, + "note": { + "type": "string", + "maxLength": 500 + } + }, + "oneOf": [ + { + "$ref": "#/$defs/task_start" + }, + { + "$ref": "#/$defs/approval" + }, + { + "$ref": "#/$defs/gate_run" + }, + { + "$ref": "#/$defs/observation" + }, + { + "$ref": "#/$defs/adaptation" + }, + { + "$ref": "#/$defs/amendment" + }, + { + "$ref": "#/$defs/intervention" + }, + { + "$ref": "#/$defs/resource_sample" + }, + { + "$ref": "#/$defs/control_pair" + }, + { + "$ref": "#/$defs/selection" + }, + { + "$ref": "#/$defs/refusal" + }, + { + "$ref": "#/$defs/view_render" + }, + { + "$ref": "#/$defs/reconciliation" + }, + { + "$ref": "#/$defs/journal_repair" + }, + { + "$ref": "#/$defs/delegation" + }, + { + "$ref": "#/$defs/blocker" + } + ], + "$defs": { + "task_start": { + "properties": { + "type": { + "const": "task_start" + }, + "task": { + "type": "string", + "pattern": "^T-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "fingerprint": { + "type": "object", + "additionalProperties": false, + "required": [ + "revision", + "dirty" + ], + "properties": { + "revision": { + "type": "string", + "minLength": 1 + }, + "dirty": { + "type": "string", + "description": "The section-2-row-16 dirty-state comparison string captured AT TASK START; empty means clean. This is the state a control pair's old leg materializes (D2-6); a non-empty dirty component makes every control on the attempt unavailable (D3-3). 'none' when the host had no git at task start." + } + }, + "description": "Optional: recorded by the start_task executor. A raw append records none, and a control on a fingerprint-less attempt records control=unavailable - never a guessed old tree." + } + }, + "required": [ + "type", + "task" + ] + }, + "approval": { + "properties": { + "type": { + "const": "approval" + }, + "authority": { + "type": "string", + "minLength": 1 + }, + "mechanism": { + "enum": [ + "plan_authorship", + "pre_authorization" + ], + "description": "Exactly the section-3.1 mechanisms; migration re-uses pre_authorization (D3-2), there is no third value." + }, + "plan_digest": { + "type": "string", + "pattern": "^[0-9a-f]{64}$", + "description": "Digest of the consented artifact: the reviewed plan markdown (plan_authorship) or the recorded pre-authorization (pre_authorization)." + } + }, + "required": [ + "type", + "authority", + "mechanism", + "plan_digest" + ], + "description": "The section-3.1 approval record {authority, mechanism, contract_id, plan digest}; contract_id rides the envelope, which is how the event cites it." + }, + "gate_run": { + "properties": { + "type": { + "const": "gate_run" + }, + "command": { + "type": "string", + "minLength": 1, + "maxLength": 500 + }, + "cwd": { + "type": "string", + "minLength": 1 + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "timeout_seconds": { + "type": "number", + "exclusiveMinimum": 0 + }, + "exit_code": { + "type": "integer" + }, + "trust": { + "$ref": "#/$defs/trust" + }, + "evidence_path": { + "type": "string", + "minLength": 1, + "description": "Recoverable pointer to captured outputs; REQUIRED when trust is observed or imported." + }, + "criterion": { + "type": "string", + "pattern": "^AC-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "task": { + "type": "string", + "pattern": "^T-[a-z0-9]+(-[a-z0-9]+)*$", + "description": "The task whose declared gate_intent this run executes; bound at execution time, never linked afterwards." + } + }, + "required": [ + "type", + "command", + "cwd", + "timeout_seconds", + "exit_code", + "trust", + "task", + "criterion" + ] + }, + "observation": { + "properties": { + "type": { + "const": "observation" + }, + "statement": { + "type": "string", + "minLength": 1 + }, + "trust": { + "$ref": "#/$defs/trust" + }, + "evidence_path": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "type", + "statement", + "trust" + ] + }, + "adaptation": { + "properties": { + "type": { + "const": "adaptation" + }, + "kind": { + "enum": [ + "split", + "reorder", + "insert", + "change_strategy", + "retry" + ], + "description": "The closed section-3.3 enumeration. Anything outside it is refused by the authorization core; this object has NO field that can carry criterion content - a substituted check is an amendment, never an adaptation." + }, + "trigger_observation": { + "type": "integer", + "minimum": 1, + "description": "Journal seq of the observation that triggered the proposal." + }, + "evidence_artifact": { + "type": "string", + "minLength": 1 + }, + "hypothesis": { + "type": "string", + "minLength": 1 + }, + "action": { + "type": "string", + "minLength": 1 + }, + "rationale": { + "type": "string", + "minLength": 1 + }, + "affected_tasks": { + "type": "array", + "items": { + "type": "string", + "pattern": "^T-[a-z0-9]+(-[a-z0-9]+)*$" + } + }, + "affected_criteria": { + "type": "array", + "items": { + "type": "string", + "pattern": "^AC-[a-z0-9]+(-[a-z0-9]+)*$" + } + }, + "authority": { + "type": "string", + "minLength": 1 + }, + "evidence_invalidated": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "evidence_preserved": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "resource_impact": { + "type": "object", + "additionalProperties": false, + "required": [ + "declared", + "unit" + ], + "properties": { + "declared": { + "type": "number", + "minimum": 0, + "description": "The D2-9a pending contribution: a pending proposal contributes its declared impact, or the last measured cost of the same task shape when undeclared." + }, + "unit": { + "type": "string", + "minLength": 1 + } + } + }, + "decision": { + "enum": [ + "authorized", + "refused" + ] + }, + "reason": { + "type": "string", + "minLength": 1, + "description": "REQUIRED when decision=refused; the refusal ledger view reads it (U3/B1)." + } + }, + "required": [ + "type", + "kind", + "trigger_observation", + "evidence_artifact", + "hypothesis", + "action", + "rationale", + "affected_tasks", + "affected_criteria", + "authority", + "evidence_invalidated", + "evidence_preserved", + "decision" + ] + }, + "amendment": { + "properties": { + "type": { + "const": "amendment" + }, + "original_criterion": { + "type": "string", + "minLength": 1, + "description": "Verbatim, never paraphrased." + }, + "observed_finding": { + "type": "string", + "minLength": 1 + }, + "disposition": { + "type": "string", + "minLength": 1 + }, + "revised_criterion": { + "type": "string", + "minLength": 1 + }, + "reason": { + "type": "string", + "minLength": 1 + }, + "authority": { + "type": "string", + "minLength": 1, + "description": "Recorded user or developer authority (section 3.4); an unmeetable mandatory criterion is a blocker, never completed work." + }, + "affected_tasks": { + "type": "array", + "items": { + "type": "string", + "pattern": "^T-[a-z0-9]+(-[a-z0-9]+)*$" + } + }, + "evidence_invalidated": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "evidence_preserved": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + } + }, + "required": [ + "type", + "original_criterion", + "observed_finding", + "disposition", + "revised_criterion", + "reason", + "authority", + "affected_tasks", + "evidence_invalidated", + "evidence_preserved" + ] + }, + "intervention": { + "properties": { + "type": { + "const": "intervention" + }, + "category": { + "enum": [ + "missing_intent", + "new_authority", + "environment_repair", + "engineering_rescue" + ], + "description": "Closed taxonomy, source of record docs/evaluations/v6/TELEMETRY.md (D3-11); campaign extraction and product records share this one enumeration (A13)." + }, + "description": { + "type": "string", + "minLength": 1 + }, + "question": { + "type": "string", + "minLength": 1, + "description": "The required authorization question asked of the human." + }, + "resolution": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "type", + "category", + "description", + "question" + ] + }, + "resource_sample": { + "properties": { + "type": { + "const": "resource_sample" + }, + "source": { + "type": "string", + "minLength": 1, + "description": "The metering source named by the enforced limit (A5): a host adapter reading real meters, or an asserted sample." + }, + "limit_id": { + "type": "string", + "pattern": "^[a-z][a-z0-9_]*$" + }, + "value": { + "type": "number", + "minimum": 0 + }, + "unit": { + "type": "string", + "minLength": 1 + }, + "trust": { + "$ref": "#/$defs/trust" + }, + "evidence_path": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "type", + "source", + "value", + "unit", + "trust" + ] + }, + "control_pair": { + "properties": { + "type": { + "const": "control_pair" + }, + "criterion": { + "type": "string", + "pattern": "^AC-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "check_artifacts": { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "minLength": 1 + }, + "description": "The D3-4 declaration: exactly these listed files travel back to the old leg's worktree; product files stay at their starting state. A v6-only surface - the v5 gate object has no such field." + }, + "starting_fingerprint": { + "type": "object", + "additionalProperties": false, + "required": [ + "revision", + "dirty" + ], + "properties": { + "revision": { + "type": "string", + "minLength": 1 + }, + "dirty": { + "type": "string", + "description": "Empty string means clean. A NON-EMPTY dirty component means the old leg cannot be materialized faithfully and the pair records control=unavailable (D3-3)." + } + } + }, + "old_leg": { + "type": "object", + "additionalProperties": false, + "required": [ + "available" + ], + "properties": { + "available": { + "type": "boolean" + }, + "outcome": { + "enum": [ + "PASS", + "FAIL" + ], + "description": "Present iff available=true." + }, + "log": { + "type": "string", + "minLength": 1 + } + }, + "allOf": [ + { + "if": { + "properties": { + "available": { + "const": true + } + } + }, + "then": { + "required": [ + "outcome" + ] + } + }, + { + "if": { + "properties": { + "available": { + "const": false + } + } + }, + "then": { + "not": { + "required": [ + "outcome" + ] + }, + "description": "An unavailable leg carries no outcome (D2-6/D3-3)." + } + } + ] + }, + "new_leg": { + "type": "object", + "additionalProperties": false, + "required": [ + "outcome", + "log" + ], + "properties": { + "outcome": { + "enum": [ + "PASS", + "FAIL" + ] + }, + "log": { + "type": "string", + "minLength": 1 + } + } + }, + "verdict": { + "enum": [ + "discriminating", + "non_discriminating", + "control_unavailable" + ], + "description": "Only (old FAIL, new PASS) is discriminating (A6/U2). (PASS, PASS) is recorded non-discriminating, never rounded up; (FAIL, FAIL) records non-discriminating with new_leg.outcome=FAIL preserved - the pair proves nothing about the control and the criterion still fails. Any unavailable leg or dirty starting fingerprint is control_unavailable." + }, + "trust": { + "$ref": "#/$defs/trust" + }, + "evidence_path": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "type", + "criterion", + "check_artifacts", + "starting_fingerprint", + "old_leg", + "new_leg", + "verdict", + "trust" + ] + }, + "selection": { + "properties": { + "type": { + "const": "selection" + }, + "task": { + "type": "string", + "pattern": "^T-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "priority_boost": { + "type": "boolean", + "description": "The section-5 starvation protection action, itself a journal event (A11)." + }, + "aging": { + "type": "object", + "additionalProperties": false, + "required": [ + "waiting_since_seq", + "threshold" + ], + "properties": { + "waiting_since_seq": { + "type": "integer", + "minimum": 1, + "description": "Journal position where the task became ready-but-blocked; the clock is journal timestamps." + }, + "threshold": { + "type": "string", + "minLength": 1, + "description": "The contract-declared aging threshold that fired." + } + } + } + }, + "required": [ + "type", + "task", + "priority_boost" + ] + }, + "refusal": { + "properties": { + "type": { + "const": "refusal" + }, + "subject": { + "type": "string", + "minLength": 1, + "description": "What was refused: a task id, or a pointer to the refused proposal." + }, + "stage": { + "enum": [ + "task_start", + "authorize", + "dispatch", + "gate" + ] + }, + "reason": { + "type": "string", + "minLength": 1 + }, + "proposal": { + "type": "integer", + "minimum": 1, + "description": "Journal seq of the refused adaptation proposal, when the subject is one." + } + }, + "required": [ + "type", + "subject", + "stage", + "reason" + ] + }, + "view_render": { + "properties": { + "type": { + "const": "view_render" + }, + "view": { + "type": "string", + "minLength": 1 + }, + "snapshot_digest": { + "type": "string", + "pattern": "^[0-9a-f]{64}$", + "description": "Digest of the source snapshot the view rendered from (section 4.4 discipline)." + }, + "digests": { + "type": "object", + "description": "Per-view sha256 of the rendered bytes (N3: human edits are detected by comparing on-disk content against the last recorded render, so marker-free edits can never be silently overwritten). Keys are view names; values are 64-hex digests.", + "additionalProperties": { + "type": "string", + "pattern": "^[0-9a-f]{64}$" + } + } + }, + "required": [ + "type", + "view", + "snapshot_digest" + ] + }, + "reconciliation": { + "properties": { + "type": { + "const": "reconciliation" + }, + "trigger": { + "type": "string", + "minLength": 1 + }, + "editor": { + "type": "string", + "minLength": 1, + "description": "Whose change won - the human document, not a mechanism label." + }, + "authority": { + "type": "string", + "minLength": 1, + "description": "The section-3.2 authority under which reconciled closures close (D2-4); without it a criterion downgrades to blocked, never reconciled." + } + }, + "required": [ + "type", + "trigger", + "editor", + "authority" + ] + }, + "journal_repair": { + "properties": { + "type": { + "const": "journal_repair" + }, + "byte_offset": { + "type": "integer", + "minimum": 0, + "description": "Where the torn tail was truncated; the append-only rule binds complete events only." + }, + "cause": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "type", + "byte_offset", + "cause" + ] + }, + "trust": { + "enum": [ + "observed", + "imported", + "asserted" + ], + "description": "Section 4.5: observed = a shipped helper itself executed the check; imported = matched external source with provenance; asserted = stated without independent establishment." + }, + "delegation": { + "properties": { + "type": { + "const": "delegation" + }, + "task": { + "type": "string", + "pattern": "^T-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "delegation_id": { + "type": "string", + "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$", + "description": "Correlates the launch with its terminal transition." + }, + "transport": { + "enum": [ + "headless", + "interactive" + ] + }, + "via": { + "type": "string", + "pattern": "^[a-z][a-z0-9-]{0,63}$", + "description": "The addon key that carried the delegate (agentkit, herdr)." + }, + "kind": { + "type": "string", + "minLength": 1, + "maxLength": 200, + "description": "The coding-agent kind (claude, codex, ...)." + }, + "profile": { + "type": "string", + "minLength": 1, + "maxLength": 200 + }, + "target": { + "type": "string", + "minLength": 1, + "maxLength": 200, + "description": "cwd for headless, machine:pane for interactive." + }, + "worktree": { + "type": [ + "string", + "null" + ], + "minLength": 1, + "maxLength": 300, + "description": "The delegate's own git worktree; null for a read-only delegate." + }, + "prompt_digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$", + "description": "The prompt is recorded by digest before the delegate is relied on." + }, + "state": { + "enum": [ + "launched", + "completed", + "failed", + "cancelled" + ] + }, + "result_path": { + "type": "string", + "minLength": 1, + "pattern": "^(?!/)(?!.*(^|/)\\.\\.(/|$)).+$", + "description": "Relative path of the collected result inside the plan or repository." + }, + "result_digest": { + "type": "string", + "pattern": "^sha256:[0-9a-f]{64}$" + } + }, + "required": [ + "type", + "task", + "delegation_id", + "transport", + "via", + "state" + ], + "allOf": [ + { + "if": { + "properties": { + "state": { + "const": "launched" + } + }, + "required": [ + "state" + ] + }, + "then": { + "required": [ + "prompt_digest" + ] + } + }, + { + "if": { + "required": [ + "result_path" + ] + }, + "then": { + "properties": { + "state": { + "enum": [ + "completed", + "failed" + ] + } + } + } + } + ] + }, + "blocker": { + "properties": { + "type": { + "const": "blocker" + }, + "task": { + "type": "string", + "pattern": "^T-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "action": { + "enum": [ + "raised", + "resolved" + ] + }, + "reason": { + "type": "string", + "minLength": 1, + "maxLength": 1000, + "pattern": "\\S", + "description": "Why the task cannot continue." + }, + "needs": { + "type": "string", + "minLength": 1, + "maxLength": 500, + "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$", + "description": "One line: what unblocks the task." + }, + "class": { + "enum": [ + "C1", + "C2", + "C3", + "C4", + "C5", + "C6", + "C7" + ], + "description": "The escalation class (AGENT_PROTOCOL.md section 7.5)." + }, + "resolver": { + "enum": [ + "lead", + "human" + ], + "description": "Who may resolve it; absent means human. lead: resolvable inside the plan's recorded authority without a credential, login, consent, payment, push to main, release or deletion." + } + }, + "required": [ + "type", + "task", + "action" + ], + "allOf": [ + { + "if": { + "properties": { + "action": { + "const": "raised" + } + }, + "required": [ + "action" + ] + }, + "then": { + "required": [ + "reason", + "needs", + "class" + ] + } + }, + { + "if": { + "properties": { + "action": { + "const": "resolved" + } + }, + "required": [ + "action" + ] + }, + "then": { + "not": { + "anyOf": [ + { + "required": [ + "reason" + ] + }, + { + "required": [ + "needs" + ] + }, + { + "required": [ + "class" + ] + }, + { + "required": [ + "resolver" + ] + } + ] + } + } + }, + { + "if": { + "properties": { + "resolver": { + "const": "lead" + } + }, + "required": [ + "resolver" + ] + }, + "then": { + "properties": { + "class": { + "enum": [ + "C3", + "C4", + "C7" + ] + } + } + } + } + ] + } + }, + "unevaluatedProperties": false +} diff --git a/.agents/skills/deepworkplan/spec/schema/plan-contract-v8.schema.json b/.agents/skills/deepworkplan/spec/schema/plan-contract-v8.schema.json new file mode 100644 index 00000000..1febaa22 --- /dev/null +++ b/.agents/skills/deepworkplan/spec/schema/plan-contract-v8.schema.json @@ -0,0 +1,551 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://deepworkplan.com/schema/plan-contract/v8.json", + "description": "Deep Work Plan outcome and authority contract, v8 generation (spec/LOOP_ENGINEERING.md). A strict superset of plan-contract/v7 (spec/V7_CONTRACT.md): every v7 rule \u2014 and through it every v6 rule, identity and revision semantic \u2014 applies unchanged, including the optional boolean tasks[].parallel_safe. The v8 generation adds the optional top-level `autonomy` block (spec/LOOP_ENGINEERING.md): the plan's recorded authority for the loop \u2014 stall_budget (1-10 loop prompts), promptable (non-empty list of pane addresses), notify (non-empty list of targets; dailybot today), brain (boolean: may a brain act on this plan), queue (prompt-lead|launch|none). The journal-event set is unchanged from v7.", + "type": "object", + "additionalProperties": false, + "required": [ + "schema", + "spec_version", + "plan", + "revision", + "created_at", + "outcome", + "acceptance", + "invariants", + "scope", + "authorization", + "permissions", + "dependencies", + "resource_envelope", + "tasks" + ], + "properties": { + "schema": { + "const": "https://deepworkplan.com/schema/plan-contract/v8.json" + }, + "spec_version": { + "type": "string", + "pattern": "^\\d+\\.\\d+\\.\\d+$" + }, + "plan": { + "type": "string", + "description": "Plan folder name: optional monotonic numeric ID of at least three digits, followed by a 2\u20135-word lowercase snake_case slug; legacy unnumbered names remain valid.", + "pattern": "^PLAN_([0-9]{3,}_)?[a-z0-9]+(_[a-z0-9]+){1,4}$" + }, + "revision": { + "type": "integer", + "minimum": 1 + }, + "contract_id": { + "type": "string", + "pattern": "^[0-9a-f]{64}$" + }, + "parent_contract_id": { + "type": "string", + "pattern": "^[0-9a-f]{64}$" + }, + "created_at": { + "type": "string", + "format": "date-time" + }, + "title": { + "type": "string", + "maxLength": 200 + }, + "outcome": { + "type": "object", + "additionalProperties": false, + "required": [ + "statement", + "success_definition", + "out_of_scope" + ], + "properties": { + "statement": { + "type": "string", + "minLength": 1 + }, + "success_definition": { + "type": "string", + "minLength": 1 + }, + "out_of_scope": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + } + } + }, + "acceptance": { + "type": "object", + "additionalProperties": false, + "required": [ + "criteria" + ], + "properties": { + "criteria": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "statement", + "observable_check", + "accepted_evidence" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^AC-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "statement": { + "type": "string", + "minLength": 1 + }, + "observable_check": { + "type": "string", + "minLength": 1, + "description": "An observable check: behavior, interface, or stored state - never a narration claim." + }, + "accepted_evidence": { + "type": "array", + "minItems": 1, + "items": { + "enum": [ + "observed", + "imported", + "asserted" + ] + }, + "uniqueItems": true, + "description": "Which section-4.5 trust classes may close this criterion. A criterion that does not accept 'asserted' never inherits completion from migration (A7/D3-5)." + }, + "control": { + "type": "object", + "additionalProperties": false, + "required": [ + "kind", + "rationale" + ], + "properties": { + "kind": { + "enum": [ + "regression", + "discrimination", + "exempt" + ] + }, + "rationale": { + "type": "string", + "minLength": 1 + } + }, + "description": "The negative control decided at contract authoring (section 6); 'exempt' is for minor prose/cosmetic criteria and says why." + } + } + } + } + } + }, + "invariants": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "statement" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^INV-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "statement": { + "type": "string", + "minLength": 1 + } + } + }, + "description": "Global conditions that must hold at every boundary; violation is a stop, not an adaptation." + }, + "scope": { + "type": "object", + "additionalProperties": false, + "required": [ + "allowed_paths", + "allowed_command_classes", + "forbidden_operations" + ], + "properties": { + "allowed_paths": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "allowed_command_classes": { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "minLength": 1 + }, + "uniqueItems": true, + "description": "Decidable only for declared gate commands the core validates and executes (section 8); an empty list is undeclared, not unrestricted; arbitrary shell is detection-plus-reporting, never prevention." + }, + "forbidden_operations": { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "minLength": 1 + }, + "description": "Destructive and outward-facing operations, named explicitly." + } + } + }, + "authorization": { + "type": "object", + "additionalProperties": false, + "required": [ + "mechanism", + "authority", + "timestamp", + "boundaries", + "consent_checkpoints" + ], + "properties": { + "mechanism": { + "enum": [ + "plan_authorship", + "pre_authorization" + ], + "description": "The binding mechanism ONLY (D3-1). plan_authorship = interactive git plans (the reviewed plan markdown is the consented artifact; authority = the session user). pre_authorization = unattended/non-git plans AND migration (the recorded pre-authorization is the migration request, D3-2). No third value exists. The citing record is the materialization-time journal 'approval' event - a record inside the contract cannot cite the contract's own content-addressed contract_id." + }, + "authority": { + "type": "string", + "minLength": 1, + "description": "Who or what approved - an identity, never a model's confidence." + }, + "timestamp": { + "type": "string", + "format": "date-time" + }, + "boundaries": { + "type": "string", + "minLength": 1, + "description": "Boundaries of the pre-approval: what it does and does not cover." + }, + "consent_checkpoints": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + }, + "description": "Carried verbatim from the plan; never paraphrased." + } + } + }, + "permissions": { + "type": "object", + "additionalProperties": false, + "required": [ + "granted", + "not_granted" + ], + "properties": { + "granted": { + "type": "array", + "items": { + "$ref": "#/$defs/capability" + }, + "uniqueItems": true + }, + "not_granted": { + "type": "array", + "items": { + "$ref": "#/$defs/capability" + }, + "uniqueItems": true, + "description": "Explicitly those NOT granted - the negative list is content, not filler." + } + } + }, + "dependencies": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "kind", + "detail" + ], + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "kind": { + "enum": [ + "external_system", + "credential", + "pinned_input" + ] + }, + "detail": { + "type": "string", + "minLength": 1, + "description": "For credentials: names only, never secrets." + } + } + } + }, + "resource_envelope": { + "type": "object", + "additionalProperties": false, + "required": [ + "limits" + ], + "properties": { + "limits": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "limit", + "unit", + "enforcement" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^[a-z][a-z0-9_]*$" + }, + "limit": { + "type": "number", + "minimum": 0, + "description": "Malformed values (negative, non-numeric) are invalid; the semantic validator rejects them with the offending id named." + }, + "unit": { + "type": "string", + "minLength": 1 + }, + "enforcement": { + "enum": [ + "enforced", + "advisory" + ], + "description": "enforced = a host adapter can actually stop the agent; advisory = instructed and reported only. Enforcement parity across hosts is never claimed (section 8)." + }, + "metering_source": { + "type": "string", + "minLength": 1, + "description": "REQUIRED iff enforcement=enforced (A5): a host adapter reading real provider meters. authorize() never enforces on asserted meter data - an asserted meter degrades the limit to advisory and the record says so." + }, + "reserve": { + "type": "number", + "minimum": 0, + "description": "OPTIONAL (section 8): budget held back from dispatch for verification, retry and resume. 0 <= reserve <= limit (the semantic validator enforces the ceiling and names the limit id); the dispatchable ceiling is limit - reserve." + } + }, + "allOf": [ + { + "if": { + "properties": { + "enforcement": { + "const": "enforced" + } + } + }, + "then": { + "required": [ + "metering_source" + ], + "description": "A5: an enforced limit names its metering source." + } + } + ] + } + } + } + }, + "scheduling": { + "type": "object", + "additionalProperties": false, + "description": "Deterministic-authorization policy (RFC section 5), declared in the contract. Every field is optional: an absent field means the authorization core applies its shipped finite default (never unlimited); a plan may declare tighter or looser bounds.", + "properties": { + "starvation_threshold_events": { + "type": "integer", + "minimum": 1, + "description": "Journal-event count a ready-but-unselected task waits before the oldest-blocked-wait priority boost fires (A11; the clock is the journal, never the wall)." + }, + "max_adaptations_per_task": { + "type": "integer", + "minimum": 0, + "description": "Maximum authorized adaptations whose affected_tasks include one task; bounded adaptation, loop termination." + }, + "max_retries_per_gate": { + "type": "integer", + "minimum": 0, + "description": "Maximum authorized retry adaptations per acceptance criterion; blind retries are refused independently of this cap." + }, + "handoff": { + "type": "object", + "additionalProperties": false, + "description": "Explicit handoff conditions (RFC section 5): when a fresh context or a cross-host resume is required.", + "properties": { + "fresh_context": { + "type": "string", + "minLength": 1, + "description": "Condition under which the session must be replaced by a fresh context." + }, + "cross_host_resume": { + "type": "string", + "minLength": 1, + "description": "Condition under which the plan must resume on another host." + } + } + } + } + }, + "tasks": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "title", + "prerequisites", + "touched_surface", + "gate_intent" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^T-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "title": { + "type": "string", + "minLength": 1 + }, + "prerequisites": { + "type": "array", + "items": { + "type": "string", + "pattern": "^T-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "uniqueItems": true, + "description": "Stable task IDs whose outcomes must hold first. The semantic validator rejects dangling references and prerequisite cycles." + }, + "touched_surface": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "gate_intent": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": [ + "criterion", + "check" + ], + "properties": { + "criterion": { + "type": "string", + "pattern": "^AC-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "check": { + "type": "string", + "minLength": 1 + } + } + }, + "description": "Selected gate intent: which acceptance criterion each declared gate serves." + }, + "parallel_safe": { + "type": "boolean", + "description": "Set by create (never inferred at execution): the task can run in a delegate without interleaving with sibling work - its touched surface does not overlap an in-progress sibling and it declares a bounded output. Absent means false." + } + } + } + }, + "autonomy": { + "type": "object", + "additionalProperties": false, + "description": "The plan's recorded authority for the loop. An absent block means every default: the human is the resolver, the lead is the only promptable pane, nothing is notified, no brain acts, the plan is not queued. Inside a present block every absent key keeps its own default: stall_budget absent = 3 (herdr-peers' MAX_PLAN_PROMPTS); promptable absent = the lead only; notify absent = no target; brain absent = false; queue absent = none. See spec/LOOP_ENGINEERING.md.", + "properties": { + "stall_budget": { + "type": "integer", + "minimum": 1, + "maximum": 10, + "description": "Loop prompts without progress before the plan is marked stalled. Absent = 3 (herdr-peers' MAX_PLAN_PROMPTS)." + }, + "promptable": { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "pattern": "^(?:local|[A-Za-z0-9][A-Za-z0-9._-]{0,63}):[A-Za-z0-9]{1,32}:[A-Za-z0-9]{1,32}$" + }, + "description": "Pane addresses the loop may prompt, herdr-peers' exact form (a machine id never starts with '-'). Absent = the plan's lead only." + }, + "notify": { + "type": "array", + "minItems": 1, + "items": { + "enum": [ + "dailybot" + ] + }, + "description": "Notification targets. Absent = no target (the loop still records)." + }, + "brain": { + "type": "boolean", + "description": "May a brain act on this plan. Absent = false." + }, + "queue": { + "enum": [ + "prompt-lead", + "launch", + "none" + ], + "description": "How the plan may be started from the queue. Absent = none (not queued)." + } + } + } + }, + "$defs": { + "capability": { + "enum": [ + "gate_command_exec", + "fs_write_plan_scope", + "fs_write_repo_scope", + "git_operations", + "network_access", + "host_adapter_metering", + "agent_delegation", + "context_export", + "model_routing" + ], + "description": "Closed capability set (section 3.2 Permissions). gate_command_exec: run DECLARED gate commands through the core's runner. fs_write_plan_scope / fs_write_repo_scope: writes inside the plan folder / inside allowed repo paths. git_operations: commits and fingerprinting. network_access: outbound fetch to named dependencies. host_adapter_metering: read real provider meters through an adapter. agent_delegation: sibling-plan fan-out under section 9's declared file ownership. context_export: the section-4.3 durability export command. model_routing: switch model tiers mid-plan (section 8) - an authority GRANT only; switching additionally requires the host ability of the same name, so the default posture stays fixed-model. Names outside this set are unsupported capabilities and are refused." + } + }, + "title": "plan-contract v8" +} diff --git a/.agents/skills/deepworkplan/spec/schema/plan-snapshot-v8.schema.json b/.agents/skills/deepworkplan/spec/schema/plan-snapshot-v8.schema.json new file mode 100644 index 00000000..1c5312a7 --- /dev/null +++ b/.agents/skills/deepworkplan/spec/schema/plan-snapshot-v8.schema.json @@ -0,0 +1,361 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://deepworkplan.com/schema/plan-snapshot/v8.json", + "title": "DWP v8 plan snapshot (state.json projection)", + "description": "The deterministic snapshot projection of a v8 plan (spec/LOOP_ENGINEERING.md section 3): the plan-snapshot/v6 shape with the blocker wired. The deterministic projection: rebuilt only by shared/ledger.py (project) from contract + journal.ndjson, atomically (temp + rename + fsync). Every timestamp derives from event ts values, never the wall clock, so replaying the same journal bytes yields a byte-identical snapshot. New schema-URL generation per RFC 9.1: not a mutation of the v5 plan-state shapes. Task statuses are derived, never declared: pending (no task_start), completed (every gate_intent criterion satisfied in-window — the same zero-test predicate the scheduler selects by), blocked (an unresolved structured blocker holds the task; it wins over the others), else in_progress; a restart reopens the evidence window and the task derives in_progress again until fresh evidence lands.", + "type": "object", + "additionalProperties": false, + "required": [ + "schema", + "plan", + "contract_id", + "contract_revision", + "generated_by", + "updated_at", + "tasks", + "positions", + "resources", + "checkpoint", + "blocker" + ], + "properties": { + "schema": { + "const": "https://deepworkplan.com/schema/plan-snapshot/v8.json" + }, + "plan": { + "type": "string", + "minLength": 1, + "pattern": "^PLAN_[A-Za-z0-9_-]+$" + }, + "contract_id": { + "type": "string", + "pattern": "^[a-f0-9]{64}$" + }, + "contract_revision": { + "type": "integer", + "minimum": 1 + }, + "generated_by": { + "type": "string", + "minLength": 1 + }, + "updated_at": { + "type": "string", + "description": "The latest event ts the projection covers; empty before the first event." + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/$defs/task" + } + }, + "positions": { + "type": "object", + "description": "Latest journal seq per event type (provenance types excluded). A position the journal cannot support after a markdown-wins reconciliation is recorded regenerated, never fabricated.", + "additionalProperties": { + "$ref": "#/$defs/position" + } + }, + "resources": { + "type": "object", + "additionalProperties": false, + "required": [ + "limits", + "latest_samples" + ], + "properties": { + "limits": { + "type": "array", + "description": "The contract's declared resource envelope limits, carried verbatim (the contract schema owns their shape).", + "items": true + }, + "latest_samples": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/sample" + } + } + } + }, + "checkpoint": { + "type": [ + "string", + "null" + ], + "description": "The latest open question an operator must answer; null when none is recorded." + }, + "blocker": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/$defs/blocker" + } + ], + "description": "The plan's active structured blocker, projected from the latest unresolved blocker raise (null when none). since is the first raise of the episode; resolver absent means human." + }, + "archives": { + "type": "array", + "description": "Journal roll archives beside the plan (nothing is ever deleted; snapshot-cited positions stay addressable).", + "items": { + "$ref": "#/$defs/archive" + } + } + }, + "$defs": { + "task": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "title", + "status", + "started_seq", + "criteria" + ], + "properties": { + "id": { + "type": "string", + "pattern": "^T-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "status": { + "enum": [ + "pending", + "in_progress", + "completed", + "blocked" + ], + "description": "Derived from the records: blocked (an unresolved blocker holds the task), pending (no task_start), completed (all gate_intent criteria satisfied in-window), in_progress otherwise." + }, + "started_seq": { + "type": [ + "integer", + "null" + ], + "minimum": 1, + "description": "The task_start event's journal position; null before the task starts." + }, + "criteria": { + "type": "array", + "items": { + "$ref": "#/$defs/criterion_state" + } + } + } + }, + "criterion_state": { + "oneOf": [ + { + "type": "object", + "additionalProperties": false, + "required": [ + "criterion", + "satisfied", + "via_seq", + "trust" + ], + "properties": { + "criterion": { + "type": "string", + "pattern": "^AC-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "satisfied": { + "const": true + }, + "via_seq": { + "type": "integer", + "minimum": 1, + "description": "The in-window evidence event's journal position." + }, + "trust": { + "enum": [ + "observed", + "imported", + "asserted" + ] + }, + "evidence_path": { + "type": "string", + "description": "Recoverable pointer to the evidence log, relative to the plan directory." + } + } + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "criterion", + "satisfied" + ], + "properties": { + "criterion": { + "type": "string", + "pattern": "^AC-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "satisfied": { + "const": false + }, + "started_seq": { + "type": [ + "integer", + "null" + ], + "minimum": 1 + }, + "stale_seqs": { + "type": "array", + "description": "Pre-start evidence events for this criterion: recorded history that can never satisfy the in-window rule.", + "items": { + "type": "integer", + "minimum": 1 + } + } + } + } + ] + }, + "position": { + "type": "object", + "additionalProperties": false, + "minProperties": 1, + "properties": { + "seq": { + "type": "integer", + "minimum": 1 + }, + "regenerated": { + "const": true, + "description": "The snapshot cites this position but the journal cannot support it (markdown-wins regeneration); ignored for roll bounding." + } + } + }, + "sample": { + "type": "object", + "additionalProperties": false, + "required": [ + "value", + "seq" + ], + "properties": { + "value": { + "description": "The sampled amount as recorded by the metering source; untyped because limit kinds differ." + }, + "seq": { + "type": "integer", + "minimum": 1 + }, + "trust": { + "enum": [ + "observed", + "imported", + "asserted" + ] + } + } + }, + "archive": { + "type": "object", + "additionalProperties": false, + "required": [ + "file", + "first_seq", + "last_seq" + ], + "properties": { + "file": { + "type": "string", + "pattern": "^journal-archive-[0-9]{6}-[0-9]{6}\\.ndjson$" + }, + "first_seq": { + "type": "integer", + "minimum": 1 + }, + "last_seq": { + "type": "integer", + "minimum": 1 + } + } + }, + "blocker": { + "type": "object", + "additionalProperties": false, + "required": [ + "task", + "reason", + "since", + "needs", + "class" + ], + "properties": { + "task": { + "type": "string", + "pattern": "^T-[a-z0-9]+(-[a-z0-9]+)*$" + }, + "reason": { + "type": "string", + "minLength": 1, + "maxLength": 1000 + }, + "since": { + "type": "string", + "description": "The ts of the raise that opened this blocker episode." + }, + "needs": { + "type": "string", + "minLength": 1, + "maxLength": 500, + "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$" + }, + "class": { + "enum": [ + "C1", + "C2", + "C3", + "C4", + "C5", + "C6", + "C7" + ] + }, + "resolver": { + "enum": [ + "lead", + "human" + ] + } + }, + "allOf": [ + { + "if": { + "properties": { + "resolver": { + "const": "lead" + } + }, + "required": [ + "resolver" + ] + }, + "then": { + "properties": { + "class": { + "enum": [ + "C3", + "C4", + "C7" + ] + } + } + } + } + ] + } + } +} diff --git a/.agents/skills/deepworkplan/status/SKILL.md b/.agents/skills/deepworkplan/status/SKILL.md index 3316c6b0..e4e4c9de 100644 --- a/.agents/skills/deepworkplan/status/SKILL.md +++ b/.agents/skills/deepworkplan/status/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-status description: Report Lite or Full Deep Work Plan status — format, approval, readiness, progress, checkpoint, blockers and Markdown/state consistency — without modifying anything. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob diff --git a/.agents/skills/deepworkplan/upgrade/SKILL.md b/.agents/skills/deepworkplan/upgrade/SKILL.md index 3a07886d..a01b98ca 100644 --- a/.agents/skills/deepworkplan/upgrade/SKILL.md +++ b/.agents/skills/deepworkplan/upgrade/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-upgrade description: Check whether a newer DeepWorkPlan skill and DWP standard exists and — only after the developer explicitly accepts — install the latest published tag through the documented channel and re-run onboarding exactly as if https://deepworkplan.com/init.md were executed fresh, preserving every plan under .dwp/ and surfacing local adaptations instead of silently overwriting them. Use when the developer asks to upgrade, update, or refresh DWP in a repository that already has it installed. Do not use it to onboard a repo for the first time (that is the onboard sub-skill) or to migrate an old plan's shape (that is refine migrate, and plans are never migrated by an upgrade). -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write @@ -77,7 +77,7 @@ versions relative to that directory. pre-release — is an equivalent alternative when the GitHub CLI is present.) 3. **Report, then stop.** State, in a few lines: installed skill version, latest published version, the standard each implements (the series are - 2.x, 4.x, 5.x and 6.x historical and 7.x current — `../spec/README.md`), + 2.x and 4.x historical, 5.x, 6.x and 7.x retained, 8.x current — `../spec/README.md`), and where the changelog lives (`https://github.com/DailybotHQ/deepworkplan-skill/blob/main/CHANGELOG.md`). If installed == latest, say the repository is current and **end here**. diff --git a/.agents/skills/deepworkplan/verify/SKILL.md b/.agents/skills/deepworkplan/verify/SKILL.md index cdbf173c..8c787ea9 100644 --- a/.agents/skills/deepworkplan/verify/SKILL.md +++ b/.agents/skills/deepworkplan/verify/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-verify description: Verify that a repository is DeepWorkPlan-conformant (AI-first) and that its plans are well-formed, producing an objective pass/fail report. Use when the developer asks to verify, audit, or check conformance of a repo or a plan. -version: "7.12.1" +version: "8.0.0" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob @@ -58,8 +58,9 @@ top — the script verifies *structure*; you verify *substance*. Conformance asks whether a plan is well-formed; the compliance audit asks whether finished v6/v7 work followed the rules the pack already ships: -criteria closed on their declared evidence class, a completed Final Review, -declared controls and their verdicts (dirty-start voids counted), §5.1.4 +criteria closed on their declared evidence class, each unclosed criterion +named with the tasks whose gate intent owns it (an empty list when none +does), a completed Final Review, declared controls and their verdicts (dirty-start voids counted), §5.1.4 `control missing` observations, a verbatim request kept, and re-anchoring (reported unmeasured — execution leaves no record of it). It never writes. diff --git a/.agents/skills/deepworkplan/verify/compliance_audit.py b/.agents/skills/deepworkplan/verify/compliance_audit.py index 6c4798de..d525096b 100644 --- a/.agents/skills/deepworkplan/verify/compliance_audit.py +++ b/.agents/skills/deepworkplan/verify/compliance_audit.py @@ -10,6 +10,8 @@ Per plan it reports: * criteria closed on a declared evidence class, and criteria closed outside it; + * each unclosed criterion's owning tasks (every task whose gate_intent + names it; an empty list when none does); * whether a Final Review task completed; * declared controls and their latest control-pair verdicts, including dirty-start `control_unavailable` voids (D3-3); @@ -89,10 +91,14 @@ def audit_plan(plan_dir): statuses = {t.get('id'): t.get('status') for t in snapshot.get('tasks', [])} criteria = contract.get('acceptance', {}).get('criteria', []) - owner = {} + # Every task whose gate_intent names a criterion, in contract order: a + # criterion several tasks can close names all of them. + owners = {} for task in contract.get('tasks', []): for intent in task.get('gate_intent', []): - owner[intent.get('criterion')] = task.get('id') + names = owners.setdefault(intent.get('criterion'), []) + if task.get('id') not in names: + names.append(task.get('id')) # "Closed" is decided exactly as the ledger decides it at completion # (ledger.criterion_states: in-window gate runs, amendment-invalidated @@ -168,6 +174,9 @@ def audit_plan(plan_dir): 'criteria_closed_on_declared_class': closed_ok, 'criteria_closed_outside_declared_class': closed_outside, 'criteria_unclosed': unclosed, + # Who owes each unclosed criterion: every task whose gate_intent + # names it, or an empty list when none does (nothing can close it). + 'criteria_unclosed_owners': {c: owners.get(c, []) for c in unclosed}, 'final_review': final_review, 'controls_declared': controlled, 'control_verdicts': {c: verdicts.get(c, 'no pair recorded') diff --git a/.agents/skills/deepworkplan/verify/conformance.sh b/.agents/skills/deepworkplan/verify/conformance.sh index 6af3b0aa..47f53bfa 100755 --- a/.agents/skills/deepworkplan/verify/conformance.sh +++ b/.agents/skills/deepworkplan/verify/conformance.sh @@ -90,14 +90,14 @@ warn() { # The newest repository provenance this checker accepts. Plans are judged by # generation inside plan_contract.py (v6/v7 records, v5 and older shapes). -SUPPORTED_SPEC="7.0.0" +SUPPORTED_SPEC="8.0.0" # The standard's released series: 2.x and 4.x are historical (repositories and # plans onboarded before each jump stay valid, DWP_SPECIFICATION.md §6.5), 5.x -# and 6.x are retained, and 7.x is current. There is no 3.x standard — the v3 launch was a product release, +# 6.x and 7.x are retained, and 8.x is current. There is no 3.x standard — the v3 launch was a product release, # not a standard bump (the series are mapped in DWP_SPECIFICATION.md "Status"). standard_series_ok() { # $1 = declared version; bash 3.2 safe - case "${1%%.*}" in 2|4|5|6|7) return 0 ;; *) return 1 ;; esac + case "${1%%.*}" in 2|4|5|6|7|8) return 0 ;; *) return 1 ;; esac } version_le() { @@ -219,7 +219,7 @@ check_repo_standard() { return 0 fi if ! standard_series_ok "$declared"; then - fail "AGENTS.md declares DWP standard $declared, which is not a DWP standard (the series are 2.x, 4.x, 5.x and 6.x historical and 7.x current; there is no 3.x) — correct the provenance line" + fail "AGENTS.md declares DWP standard $declared, which is not a DWP standard (the series are 2.x and 4.x historical, 5.x, 6.x and 7.x retained, 8.x current; there is no 3.x) — correct the provenance line" return 0 fi pass "AGENTS.md declares DWP standard $declared" diff --git a/.agents/skills/deepworkplan/verify/plan_contract.py b/.agents/skills/deepworkplan/verify/plan_contract.py index d1ae7006..9c18150e 100644 --- a/.agents/skills/deepworkplan/verify/plan_contract.py +++ b/.agents/skills/deepworkplan/verify/plan_contract.py @@ -40,7 +40,10 @@ MANIFEST_V6 = 'https://deepworkplan.com/schema/plan-manifest/v6.json' MANIFEST_V7 = 'https://deepworkplan.com/schema/plan-manifest/v7.json' RECORD_GENERATIONS = {MANIFEST_V6: 'v6', MANIFEST_V7: 'v7'} -SNAPSHOT_V6 = 'https://deepworkplan.com/schema/plan-snapshot/v6.json' +# The snapshot URL follows the live contract's generation: v6/v7 plans +# project into plan-snapshot/v6, v8 plans into plan-snapshot/v8 +# (spec/LOOP_ENGINEERING.md section 3), so the state check compares against +# the ledger's own projection, not a constant. # The standard's released series: 2.x and 4.x are historical (plans authored # before each jump stay valid, §6.5), 5.x is this checker's ceiling. There is no 3.x standard # — the v3 launch was a product release, not a standard bump. @@ -273,7 +276,12 @@ def records(plan, documents, report): except ledger.LedgerError as exc: return report.bad(f'contract: {exc}') found = contract_v6.contract_generation(rec.contract) - if not report.verdict(found == generation, + # A v8 contract lives in the v7 manifest line (spec/LOOP_ENGINEERING.md + # section 5): v8 changes the contract, journal and snapshot generations, + # never the manifest shape. The journal check below holds every event to + # the live contract's generation (a v8 plan's events carry + # journal-event/v8; a mixed journal is refused). + if not report.verdict(found == generation or (generation, found) == ('v7', 'v8'), f'{generation} manifest pairs with a {generation} contract', f'manifest.json is {generation} but the live contract is {found} — a ' 'torn pair this checker refuses to guess about; resolve the folder by hand'): @@ -327,9 +335,9 @@ def records(plan, documents, report): state = documents.get('state') if state is None: report.note('no state.json yet — run ledger.py project (the snapshot is derived)') - elif state.get('schema') != SNAPSHOT_V6: - report.bad(f'state.json is {state.get("schema")!r}, not the derived plan snapshot — ' - 'regenerate it with ledger.py project, never by hand') + elif state.get('schema') != snapshot['schema']: + report.bad(f'state.json is {state.get("schema")!r}, not the derived plan snapshot ' + f'({snapshot["schema"]}) — regenerate it with ledger.py project, never by hand') elif (plan / 'state.json').read_bytes() == ledger.snapshot_bytes(snapshot).encode('utf-8'): report.ok('state.json agrees with the journal (byte-identical projection)') else: @@ -338,6 +346,10 @@ def records(plan, documents, report): tasks = snapshot['tasks'] done = sum(t['status'] == 'completed' for t in tasks) report.ok(f'{done}/{len(tasks)} tasks completed (derived from gate evidence)') + blocker = snapshot.get('blocker') + if isinstance(blocker, dict): + report.note(f'blocked: {blocker.get("task")} ({blocker.get("class")}, resolver ' + f'{blocker.get("resolver") or "human"}) needs: {blocker.get("needs")}') if tasks and 'final review' not in str(tasks[-1].get('title') or '').lower(): report.note('the last contract task is not the Final Review (DWP_SPECIFICATION §6.1)') if tasks and done == len(tasks): diff --git a/.dwp/config.json b/.dwp/config.json index 1df0fbb9..802b8cc6 100644 --- a/.dwp/config.json +++ b/.dwp/config.json @@ -2,7 +2,7 @@ "addons": { "agentkit": { "enabled": true, - "version": "v1.4.0" + "version": "v1.5.0" }, "ai-diff-reviewer": { "enabled": true, @@ -14,19 +14,19 @@ }, "dependency-upgrade": { "enabled": true, - "version": "v7.12.1" + "version": "v8.0.0" }, "design-system": { "enabled": true, - "version": "v7.12.1" + "version": "v8.0.0" }, "devcontainer": { "enabled": true, - "version": "v1.1.2" + "version": "v1.3.0" }, "herdr": { "enabled": true, - "version": "v1.3.1" + "version": "v2.1.0" }, "vim": { "enabled": true, diff --git a/AGENTS.md b/AGENTS.md index 917bed85..f0477c14 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -713,7 +713,7 @@ When invoked: look up in `.agents/docs/skills_agents_catalog.md`, READ the proce ## Working with Deep Work Plans (DWP) -For any non-trivial change (more than ~3 files, more than one logical step, anything spanning auth + API client + commands + docs, anything you'd otherwise want a TodoList for), **drive the work through a Deep Work Plan** instead of free-form coding. The repo ships the [DWP skill pack](.agents/skills/deepworkplan/) (vendored at **v7.12.1**, standard **7.0.0**) and the matching `dwp-*` slash commands. New plans use the **v7** contract generation by default (the v6 identity manifest + versioned contract + append-only journal, plus `parallel_safe` tasks and delegation events; `state.json` is a snapshot). A plan is either **Lite** (task records inline in the plan's `README.md`, the default for most work) or **Full** (one file per task, for long-horizon work) — both carry the same contract: stable task ids, a Touched Surface, acceptance criteria, validation gates, completion evidence, and one Final Review. Existing v1/v2/v5 plans keep their recorded lifecycle and are never rewritten by an upgrade; v6 plans stay v6; moving a plan to a newer generation is an explicit `refine migrate` only. +For any non-trivial change (more than ~3 files, more than one logical step, anything spanning auth + API client + commands + docs, anything you'd otherwise want a TodoList for), **drive the work through a Deep Work Plan** instead of free-form coding. The repo ships the [DWP skill pack](.agents/skills/deepworkplan/) (vendored at **v8.0.0**, standard **8.0.0**) and the matching `dwp-*` slash commands. New plans use the **v8** contract generation by default (`plan-contract/v8`: the v7 contract — the v6 identity manifest + versioned contract + append-only journal, plus `parallel_safe` tasks and delegation events — plus the optional, closed `autonomy` block from `spec/LOOP_ENGINEERING.md`; a v8 plan uses the v7 manifest and journal line; `state.json` is a snapshot). An explicit `v7` or `v6` request still materializes that generation. A plan is either **Lite** (task records inline in the plan's `README.md`, the default for most work) or **Full** (one file per task, for long-horizon work) — both carry the same contract: stable task ids, a Touched Surface, acceptance criteria, validation gates, completion evidence, and one Final Review. Existing v1/v2/v5 plans keep their recorded lifecycle and are never rewritten by an upgrade; v6 and v7 plans keep their generation; moving a plan to a newer generation is an explicit `refine migrate` only. ### The loop @@ -798,7 +798,7 @@ Host capability declaration (abilities not listed are `false` — never inferred **Authority boundaries (from this repo's Mandatory Rules):** plan authorship is by the working agent; approval is `pre_authorization` only when the developer explicitly requests unattended continuation (`trust`/`auto`) or approves a plan up front. Always stop and ask before: push to remote, merge to `main`, force-push, publishing a release, sending external messages (email/chat) with guessed recipients, reading or writing secrets, replacing existing hand-written harness content, or applying `[skip release]` outside its two allowed use cases. Outcome checks for plan gates come from [docs/TESTING_GUIDE.md](docs/TESTING_GUIDE.md) and the Quick Commands block (`pytest`, `ruff`, `mypy`) — never invent a gate command. -DWP standard: 7.0.0 (onboarded 2026-06-12; upgraded 2026-10-01, 2026-10-11, 2026-10-12, 2026-10-13, 2026-10-14, 2026-10-25 and 2026-11-01; skill 7.12.1, vendored 2026-11-16) +DWP standard: 8.0.0 (onboarded 2026-06-12; upgraded 2026-10-01, 2026-10-11, 2026-10-12, 2026-10-13, 2026-10-14, 2026-10-25, 2026-11-01 and 2026-11-16; skill 8.0.0, vendored 2026-11-16) ## Documentation Maintenance diff --git a/dev.sh b/dev.sh index 50700812..4451340e 100755 --- a/dev.sh +++ b/dev.sh @@ -1300,7 +1300,7 @@ herdr_prepare_mesh() { mesh_require() { command -v herdr >/dev/null 2>&1 || die "herdr is not on PATH" command -v python3 >/dev/null 2>&1 || die "python3 is required" - command -v herdr-peers >/dev/null 2>&1 || die "herdr-peers is not on PATH — devcontainer-kit images (v1.0.0+) and the host kit ship it; otherwise: npx --yes skills add https://github.com/DailybotHQ/herdr-peers/tree/v2.0.0 --skill herdr-peers -g -y" + command -v herdr-peers >/dev/null 2>&1 || die "herdr-peers is not on PATH — devcontainer-kit images (v1.0.0+) and the host kit ship it; otherwise: npx --yes skills add https://github.com/DailybotHQ/herdr-peers/tree/v2.1.0 --skill herdr-peers -g -y" } # HERDR_PEERS_SELF names this machine as the Mac catalog knows it (dck pushes diff --git a/skills-lock.json b/skills-lock.json index 9c505ada..2867bc0d 100644 --- a/skills-lock.json +++ b/skills-lock.json @@ -17,10 +17,10 @@ }, "deepworkplan": { "source": "DailybotHQ/deepworkplan-skill", - "ref": "v7.12.1", + "ref": "v8.0.0", "sourceType": "github", "skillPath": "skills/deepworkplan/SKILL.md", - "computedHash": "13569c6e1a123a5de9d4e1c354655a9eb70ecf6aae677db73e74cd328c320a1e" + "computedHash": "00b3ade560b46232ace7cc838ee1770533e825b4ab4153cbfdaff99141b37e49" } } } From 8a03ce34acd36f20054da45ffef3063bc71c6470 Mon Sep 17 00:00:00 2001 From: Sergio Alexander Florez Galeano <xergioalex@gmail.com> Date: Mon, 16 Nov 2026 17:51:51 -0500 Subject: [PATCH 2/3] docs: state the v8 journal generation precisely (journal-event/v8) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index f0477c14..bdd4600d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -713,7 +713,7 @@ When invoked: look up in `.agents/docs/skills_agents_catalog.md`, READ the proce ## Working with Deep Work Plans (DWP) -For any non-trivial change (more than ~3 files, more than one logical step, anything spanning auth + API client + commands + docs, anything you'd otherwise want a TodoList for), **drive the work through a Deep Work Plan** instead of free-form coding. The repo ships the [DWP skill pack](.agents/skills/deepworkplan/) (vendored at **v8.0.0**, standard **8.0.0**) and the matching `dwp-*` slash commands. New plans use the **v8** contract generation by default (`plan-contract/v8`: the v7 contract — the v6 identity manifest + versioned contract + append-only journal, plus `parallel_safe` tasks and delegation events — plus the optional, closed `autonomy` block from `spec/LOOP_ENGINEERING.md`; a v8 plan uses the v7 manifest and journal line; `state.json` is a snapshot). An explicit `v7` or `v6` request still materializes that generation. A plan is either **Lite** (task records inline in the plan's `README.md`, the default for most work) or **Full** (one file per task, for long-horizon work) — both carry the same contract: stable task ids, a Touched Surface, acceptance criteria, validation gates, completion evidence, and one Final Review. Existing v1/v2/v5 plans keep their recorded lifecycle and are never rewritten by an upgrade; v6 and v7 plans keep their generation; moving a plan to a newer generation is an explicit `refine migrate` only. +For any non-trivial change (more than ~3 files, more than one logical step, anything spanning auth + API client + commands + docs, anything you'd otherwise want a TodoList for), **drive the work through a Deep Work Plan** instead of free-form coding. The repo ships the [DWP skill pack](.agents/skills/deepworkplan/) (vendored at **v8.0.0**, standard **8.0.0**) and the matching `dwp-*` slash commands. New plans use the **v8** contract generation by default (`plan-contract/v8`: the v7 contract — the v6 identity manifest + versioned contract + append-only journal, plus `parallel_safe` tasks and delegation events — plus the optional, closed `autonomy` block from `spec/LOOP_ENGINEERING.md`; a v8 plan keeps the v7 manifest line (`plan-manifest/v7`) and writes `journal-event/v8` events — the v7 event set plus `blocker`; `state.json` is a snapshot). An explicit `v7` or `v6` request still materializes that generation. A plan is either **Lite** (task records inline in the plan's `README.md`, the default for most work) or **Full** (one file per task, for long-horizon work) — both carry the same contract: stable task ids, a Touched Surface, acceptance criteria, validation gates, completion evidence, and one Final Review. Existing v1/v2/v5 plans keep their recorded lifecycle and are never rewritten by an upgrade; v6 and v7 plans keep their generation; moving a plan to a newer generation is an explicit `refine migrate` only. ### The loop From 9c3f9928918b3e339e79c84acd31eae3bcc02c55 Mon Sep 17 00:00:00 2001 From: Sergio Alexander Florez Galeano <xergioalex@gmail.com> Date: Mon, 16 Nov 2026 19:03:08 -0500 Subject: [PATCH 3/3] chore: move the DeepWorkPlan pin to 8.0.1 (deepworkplan-vim 1.1.0) - Re-vendored .agents/skills/deepworkplan/ from the v8.0.1 tree URL (tag commit 82bc1fd); all 188 files verified against the release SHA256SUMS (digest 0a49c301...) - skills-lock.json: ref v8.0.1, computedHash from the real skills CLI - Addon registry: vim v1.1.0, dependency-upgrade and design-system v8.0.1 - AGENTS.md and the skills catalog: 8.0.1 and the vim pin Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --- .agents/docs/skills_agents_catalog.md | 4 ++-- .agents/skills/deepworkplan/SKILL.md | 2 +- .agents/skills/deepworkplan/addons/README.md | 2 +- .../skills/deepworkplan/addons/agentkit/SKILL.md | 2 +- .../addons/ai-diff-reviewer/SKILL.md | 2 +- .../skills/deepworkplan/addons/dailybot/SKILL.md | 2 +- .../addons/dependency-upgrade/SKILL.md | 2 +- .../deepworkplan/addons/design-system/SKILL.md | 2 +- .../deepworkplan/addons/devcontainer/SKILL.md | 2 +- .../skills/deepworkplan/addons/herdr/SKILL.md | 2 +- .agents/skills/deepworkplan/addons/vim/SKILL.md | 12 ++++++------ .agents/skills/deepworkplan/addons/vim/SPEC.md | 16 ++++++++-------- .../skills/deepworkplan/addons/vim/addon.json | 2 +- .../addons/vim/templates/INTEGRATION.md | 10 +++++----- .agents/skills/deepworkplan/author/SKILL.md | 2 +- .agents/skills/deepworkplan/create/SKILL.md | 2 +- .agents/skills/deepworkplan/execute/SKILL.md | 2 +- .agents/skills/deepworkplan/onboard/SKILL.md | 2 +- .agents/skills/deepworkplan/onboard/addons.md | 4 ++-- .agents/skills/deepworkplan/refine/SKILL.md | 2 +- .agents/skills/deepworkplan/resume/SKILL.md | 2 +- .agents/skills/deepworkplan/spec/ADDONS.md | 6 +++--- .agents/skills/deepworkplan/spec/CONFIG.md | 2 +- .agents/skills/deepworkplan/spec/V7_ROADMAP.md | 2 +- .agents/skills/deepworkplan/status/SKILL.md | 2 +- .agents/skills/deepworkplan/upgrade/SKILL.md | 2 +- .agents/skills/deepworkplan/verify/SKILL.md | 2 +- .dwp/config.json | 6 +++--- AGENTS.md | 4 ++-- skills-lock.json | 4 ++-- 30 files changed, 54 insertions(+), 54 deletions(-) diff --git a/.agents/docs/skills_agents_catalog.md b/.agents/docs/skills_agents_catalog.md index e0620821..0d563e57 100644 --- a/.agents/docs/skills_agents_catalog.md +++ b/.agents/docs/skills_agents_catalog.md @@ -42,7 +42,7 @@ The full pack lives under [`.agents/skills/dailybot/`](../skills/dailybot/) (rou ### Deep Work Plan skill pack (vendored from [`DailybotHQ/deepworkplan-skill`](https://github.com/DailybotHQ/deepworkplan-skill)) -The full pack lives under [`.agents/skills/deepworkplan/`](../skills/deepworkplan/) (router + 9 sub-skills + addons). Vendored at **v8.0.0** (DWP standard **8.0.0**; installed with the tree-URL form, all 188 files verified against the release `SHA256SUMS`, digest `cb877b16…`). The router auto-routes by intent — read [`skills/deepworkplan/SKILL.md`](../skills/deepworkplan/SKILL.md) and let it pick the right sub-skill. Each sub-skill is independently invocable, and each has a short `dwp-*` alias in [`.agents/commands/`](../commands/) for ergonomic typing. +The full pack lives under [`.agents/skills/deepworkplan/`](../skills/deepworkplan/) (router + 9 sub-skills + addons). Vendored at **v8.0.1** (DWP standard **8.0.0**; installed with the tree-URL form, all 188 files verified against the release `SHA256SUMS`, digest `0a49c301…`). The router auto-routes by intent — read [`skills/deepworkplan/SKILL.md`](../skills/deepworkplan/SKILL.md) and let it pick the right sub-skill. Each sub-skill is independently invocable, and each has a short `dwp-*` alias in [`.agents/commands/`](../commands/) for ergonomic typing. | Slug | Procedure | Use when | |------|-----------|----------| @@ -123,4 +123,4 @@ Persona definitions. Use these as the system prompt / role when spawning a sub-a ## Dogfood reconciliation — 2026-11-16 -DeepWorkPlan v8.0.0, AI Diff Reviewer v3.3.16 and Dailybot skill v3.23.20 are pinned in `skills-lock.json` (dailybot matches the pack's agent-skill descriptor at v3.23.20). The pack's herdr addon pins herdr-peers **v2.1.0** and accepts protocol 1 or 2 — 1.2.x added `herdr-peers autopilot`, 1.3.x adds `--loop`, `--notify`, the read-only `plans`/`fleet` verbs and the fleet UI, 2.0.x moves the wire to protocol 2 (lead appointment `--appoint`, the opt-in fail-closed `--brain`, the `dwp-queue-v1` plan-queue consumer) and 2.1.0 adds the fleet UI views and the v8 blocker classes; autopilot stays an optional daemon only a human starts. The `dev.sh` host install hint, the addon registry and the pack descriptor all agree on herdr-peers v2.1.0; the pack descriptors pin coding-agents-kit v1.5.0 (`ak update` stays documented as human-invoked only), devcontainer-kit v1.3.0 and DeepWorkPlan Vim v1.0.1. The container is **not** re-rendered: this repository's rendered devcontainer still embeds herdr-peers v1.0.0 (with coding-agents-kit v1.0.1; DeepWorkPlan Vim v1.0.0 remains a container editor layer), so host tools and the container embeds disagree on herdr-peers until the container is re-rendered from a newer devcontainer-kit release. The addon registry records agentkit v1.5.0, devcontainer v1.3.0, herdr v2.1.0 and vim v1.0.1, with the pack addons (dependency-upgrade, design-system) at v8.0.0. Repository hooks, review rules, design documentation and historical plans are preserved. +DeepWorkPlan v8.0.1, AI Diff Reviewer v3.3.16 and Dailybot skill v3.23.20 are pinned in `skills-lock.json` (dailybot matches the pack's agent-skill descriptor at v3.23.20). The pack's herdr addon pins herdr-peers **v2.1.0** and accepts protocol 1 or 2 — 1.2.x added `herdr-peers autopilot`, 1.3.x adds `--loop`, `--notify`, the read-only `plans`/`fleet` verbs and the fleet UI, 2.0.x moves the wire to protocol 2 (lead appointment `--appoint`, the opt-in fail-closed `--brain`, the `dwp-queue-v1` plan-queue consumer) and 2.1.0 adds the fleet UI views and the v8 blocker classes; autopilot stays an optional daemon only a human starts. The `dev.sh` host install hint, the addon registry and the pack descriptor all agree on herdr-peers v2.1.0; the pack descriptors pin coding-agents-kit v1.5.0 (`ak update` stays documented as human-invoked only), devcontainer-kit v1.3.0 and DeepWorkPlan Vim v1.1.0. The container is **not** re-rendered: this repository's rendered devcontainer still embeds herdr-peers v1.0.0 (with coding-agents-kit v1.0.1; DeepWorkPlan Vim v1.0.0 remains a container editor layer), so host tools and the container embeds disagree on herdr-peers until the container is re-rendered from a newer devcontainer-kit release. The addon registry records agentkit v1.5.0, devcontainer v1.3.0, herdr v2.1.0 and vim v1.1.0, with the pack addons (dependency-upgrade, design-system) at v8.0.1. Repository hooks, review rules, design documentation and historical plans are preserved. diff --git a/.agents/skills/deepworkplan/SKILL.md b/.agents/skills/deepworkplan/SKILL.md index dc55bcb8..9133a91f 100644 --- a/.agents/skills/deepworkplan/SKILL.md +++ b/.agents/skills/deepworkplan/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan description: DeepWorkPlan — turn any repo AI-first and run Deep Work Plans. Routes to create, execute, refine, resume, status, verify, upgrade, and repo-onboarding sub-skills based on intent. Use when the developer wants to plan, execute, manage, or verify structured multi-task work, or make a repository AI-agent-ready. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/addons/README.md b/.agents/skills/deepworkplan/addons/README.md index d4e65863..cd74bc98 100644 --- a/.agents/skills/deepworkplan/addons/README.md +++ b/.agents/skills/deepworkplan/addons/README.md @@ -85,7 +85,7 @@ An addon MAY additionally ship per-stack presets, examples, or migration notes. | AI Diff Reviewer | [`addons/ai-diff-reviewer/`](ai-diff-reviewer/SKILL.md) | **Authored** — **required local review** (baseline since 2.3.0): tag-pinned install of the vendored `DailybotHQ/ai-diff-reviewer` skill (currently **v3.3.16**; workflows pin the moving `@v3`; marketplace listing "AI Diff Reviewer") plus a repo-tailored `.review/extension.md`, wired into the Final Review's security pass; the CI Action (Flow B — same prompt bytes as the local pass, methodology and severity parity) and the `apply-review` / `address-review` companions stay an explicit opt-in. | | Herdr | [`addons/herdr/SKILL.md`](herdr/SKILL.md) | **Authored** — thin integrator, explicit opt-in offered in `onboard` Phase 7b, pinned to `herdr-peers@v2.1.0` (protocol/interface 1 or 2, detected with `herdr-peers --version`; Herdr's official skill pinned `herdrdev/herdr@v0.9.3`): the **interactive** delegation transport of v7 plans — one `herdr-peers ask` to a peer pane on any machine, recorded in the plan journal before it is relied on, the reply asserted until the plan's own gates observe the work. The peer protocol and native debate sub-skill live in herdr-peers; this folder carries no copy. Its default decision mode: a plan settles each consequential decision through a herdr-peers decide debate, planned as an approved decision task, falling back to the agent's own record without blocking (`SPEC.md` §6.4; off with `config.py decisions debate off`). Never required. | | agentkit | [`addons/agentkit/SKILL.md`](agentkit/SKILL.md) | **Authored** — thin integrator, explicit opt-in offered in `onboard` Phase 7b, pinned to `coding-agents-kit@v1.5.0` (interface 1, detected with `ak doctor --json`): the **headless** delegation transport of v7 plans — one `ak run` per delegate in a dedicated git worktree, recorded through `ledger.py delegate`, result asserted until the plan's own gates observe it. Install by a clone of the exact tag + `install.sh`. The kit launches agents in autonomy by default and its `--ask` / `AGENTKIT_PERMISSIONS=ask` opt-out always wins; the pack spells no autonomy flag and passes only `--ask` — always for a read-only delegate, and for writing delegates when a plan records the opt-out. Never required. | -| DeepWorkPlan Vim | [`addons/vim/SKILL.md`](vim/SKILL.md) | **Authored** — thin integrator, explicit opt-in offered in `onboard` Phase 7b, pinned to `deepworkplan-vim@v1.0.1` (interface 1, read from the product's `addon/surface.json`). Optional machine-level install of DeepWorkPlan Vim, the terminal editor for Deep Work Plan (Neovim 0.12+, GPL-3.0, its own repo `DailybotHQ/deepworkplan-vim`): detect it through the product's surface, offer — never impose — the editor, guide the documented install (macOS/Linux via the product's install page `https://deepworkplan.com/vim` — download, verify the pinned checksum, run, never a remote-installer pipe spelled in this pack's text; Windows `winget install Neovim.Neovim` + a tagged clone, never piped PowerShell), and validate the installed surface (command index, VS Code gestures, plan browser, markdown viewer). Two routes: the full editor now, the Neovim plugin in v7.1. An existing Neovim config is **never** overwritten without explicit consent — non-interactive installs onto an existing config abort with instructions; backups go to `~/.config/previous-deepworkplan-vim`. Never a conformance gate. | +| DeepWorkPlan Vim | [`addons/vim/SKILL.md`](vim/SKILL.md) | **Authored** — thin integrator, explicit opt-in offered in `onboard` Phase 7b, pinned to `deepworkplan-vim@v1.1.0` (interface 1, read from the product's `addon/surface.json`). Optional machine-level install of DeepWorkPlan Vim, the terminal editor for Deep Work Plan (Neovim 0.12+, GPL-3.0, its own repo `DailybotHQ/deepworkplan-vim`): detect it through the product's surface, offer — never impose — the editor, guide the documented install (macOS/Linux via the product's install page `https://deepworkplan.com/vim` — download, verify the pinned checksum, run, never a remote-installer pipe spelled in this pack's text; Windows `winget install Neovim.Neovim` + a tagged clone, never piped PowerShell), and validate the installed surface (command index, VS Code gestures, plan browser, markdown viewer). Two routes: the full editor now, the Neovim plugin in v7.1. An existing Neovim config is **never** overwritten without explicit consent — non-interactive installs onto an existing config abort with instructions; backups go to `~/.config/previous-deepworkplan-vim`. Never a conformance gate. | > This README is the mechanism doc. The first addon, `addons/devcontainer/`, is > the methodology's proof that the mechanism works; the second, diff --git a/.agents/skills/deepworkplan/addons/agentkit/SKILL.md b/.agents/skills/deepworkplan/addons/agentkit/SKILL.md index 111c3310..99f9cb94 100644 --- a/.agents/skills/deepworkplan/addons/agentkit/SKILL.md +++ b/.agents/skills/deepworkplan/addons/agentkit/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-agentkit description: Optional DeepWorkPlan addon that integrates coding-agents-kit (the `ak` command, DailybotHQ/coding-agents-kit pinned at v1.5.0, interface 1) as the headless delegation transport - a thin integrator that detects the kit through `ak doctor --json`, offers it (never imposes it) from onboard Phase 7b, documents the install from a clone of the pinned tag plus the kit's install.sh, records the acceptance in the .dwp/config.json addon registry, and maps a v7 plan's delegation operations (launch, observe, collect, cancel) onto one `ak run` per delegate in a dedicated git worktree. Never required, never a conformance gate. The kit launches agents in autonomy by default and its opt-out (--ask or AGENTKIT_PERMISSIONS=ask) always wins; the pack spells no CLI autonomy flag, never passes --auto, and passes --ask always for a read-only delegate and for writing delegates when a plan records the opt-out. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com/kit/agentkit user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/addons/ai-diff-reviewer/SKILL.md b/.agents/skills/deepworkplan/addons/ai-diff-reviewer/SKILL.md index 529e5230..7ea4e334 100644 --- a/.agents/skills/deepworkplan/addons/ai-diff-reviewer/SKILL.md +++ b/.agents/skills/deepworkplan/addons/ai-diff-reviewer/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-ai-diff-reviewer description: "DeepWorkPlan addon — required local review (baseline since standard 2.3.0), optional CI surface — connects an AI-first repo to the AI Diff Reviewer. Onboarding installs the vendored coding-agent skill and extension with consent; the Final Review runs the local pass when present or records a missing-reviewer finding without bootstrapping. Flow B CI setup remains an explicit opt-in delegated to upstream. Invocation errors never block, completed-review critical findings still follow the Final Review contract, and all install/auth/wizard details defer to upstream consent flows." -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/addons/dailybot/SKILL.md b/.agents/skills/deepworkplan/addons/dailybot/SKILL.md index 2d29294c..121875b3 100644 --- a/.agents/skills/deepworkplan/addons/dailybot/SKILL.md +++ b/.agents/skills/deepworkplan/addons/dailybot/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-dailybot description: Optional DeepWorkPlan addon that connects an AI-first repo to the developer's Dailybot team — installing (with consent) the Dailybot agent skill (DailybotHQ/agent-skill, currently 3.23.20) and/or the Dailybot CLI (DailybotHQ/cli, >= 3.9.0), wiring the plan lifecycle into best-effort agent updates - kickoff when a plan starts, significant task completions, a blocked report when an unattended run halts, and a milestone on plan completion - with payloads derived from the plan's state layer, and optionally committing the Dailybot skill's deterministic hook enforcement (dailybot hook lifecycle hooks) so the agent harness itself reminds agents about unreported work. Opt-in, never required, never blocks the work, reconciles existing setups instead of clobbering them, and defers all auth to the Dailybot skill's own consent flow. Use when the developer or team already uses Dailybot and wants DWP progress visible to humans. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/addons/dependency-upgrade/SKILL.md b/.agents/skills/deepworkplan/addons/dependency-upgrade/SKILL.md index acc7a4ee..9c193e17 100644 --- a/.agents/skills/deepworkplan/addons/dependency-upgrade/SKILL.md +++ b/.agents/skills/deepworkplan/addons/dependency-upgrade/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-dependency-upgrade description: DeepWorkPlan addon that safely upgrades a repo's dependencies — reasoning about the repo's ACTUAL package manager (npm/pnpm/yarn + ncu, pip/poetry/uv, cargo, go mod, bundler, composer, and more) rather than assuming npm — with a batched, validated, revertible workflow that detects the manager and manifests/lockfiles, classifies upgrades (patch/minor/major), upgrades in safe batches, runs the repo's real validation gate after each batch, reverts a failing batch, and summarizes. Near-default — offered for every repo with declared dependencies, and its delegator installs under the onboarding consent unless declined; upgrades themselves never run automatically, only as explicit, gated work. Never required for baseline conformance; reconciles with the repo's existing tooling. Use when the developer wants to bring dependencies up to date without breaking the build. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/addons/design-system/SKILL.md b/.agents/skills/deepworkplan/addons/design-system/SKILL.md index 6f6849ef..65673715 100644 --- a/.agents/skills/deepworkplan/addons/design-system/SKILL.md +++ b/.agents/skills/deepworkplan/addons/design-system/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-design-system description: Optional DeepWorkPlan addon that gives a repo with a user-facing interface surface a DESIGN.md (under docs/, indexed from AGENTS.md) — a Markdown design-system file any coding agent reads to generate interface output consistent with the repo's OWN conventions. Covers three profiles detected independently from real files — visual-ui (rendered web/mobile/desktop UI), cli-output (styled terminal output — semantic colors, panels, spinners, prompts, TTY/NO_COLOR degradation), and conversational (chat/email messaging — voice and register, message anatomy, per-platform rendering). Reasons about the repo's ACTUAL design source (CSS custom properties, Tailwind config, token files, component styles, a CLI display/theme module, or message-composition helpers) rather than copying a brand file; checks contrast (WCAG AA), color-is-not-the-only-carrier, plain-text fallbacks, and token integrity. A detected interface surface makes the evaluation and offer mandatory (with a clear recommendation), while installation always requires explicit acceptance — no profile is auto-applied, even in trust mode. Never offered for a repo with no interface surface (pure library, headless service, infra-only); never required for baseline conformance; reconciles an existing DESIGN.md instead of clobbering it. Use when the developer wants agents to produce on-brand, consistent interface output — visual UI, terminal output, or outbound messages. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/addons/devcontainer/SKILL.md b/.agents/skills/deepworkplan/addons/devcontainer/SKILL.md index 5b2118ce..c1083739 100644 --- a/.agents/skills/deepworkplan/addons/devcontainer/SKILL.md +++ b/.agents/skills/deepworkplan/addons/devcontainer/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-devcontainer description: Optional DeepWorkPlan addon that gives a repository a reproducible dev container through devcontainer-kit (the `dck` command, DailybotHQ/devcontainer-kit pinned at v1.3.0, interface 2) - a vendor-neutral thin integrator that detects the kit with `dck doctor --json`, offers the kit and its tag-pinned `dck-dockerfile` skill, and lets them render the repository's own layout (.devcontainer/devcontainer.json, docker/local/<service>/Dockerfile, docker/local/docker-compose.yaml, dev.sh) from the official runtime image pinned by digest - no shared base image required. Reconciles an existing layout and never clobbers it, keeps loopback ports and agent forwarding, and validates the result with a real build. Opt-in, never required, never a conformance gate. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com/kit/devcontainer user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/addons/herdr/SKILL.md b/.agents/skills/deepworkplan/addons/herdr/SKILL.md index 08939800..44fa0e75 100644 --- a/.agents/skills/deepworkplan/addons/herdr/SKILL.md +++ b/.agents/skills/deepworkplan/addons/herdr/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-herdr description: Optional DeepWorkPlan addon that integrates herdr-peers (DailybotHQ/herdr-peers pinned at v2.1.0, protocol 1 or 2) as the interactive delegation transport - a thin integrator that detects the herdr-peers helper, offers it (never imposes it) from onboard Phase 7b, documents the pinned skill installs (herdr-peers and Herdr's official skill), records the acceptance in the .dwp/config.json addon registry, and maps a v7 plan's delegation operations onto one herdr-peers ask to a peer pane on any machine, with every delegation recorded in the plan journal. The message protocol lives in herdr-peers, never here. Never required, never a conformance gate. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com/kit/herdr user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/addons/vim/SKILL.md b/.agents/skills/deepworkplan/addons/vim/SKILL.md index e7f93fce..022283b6 100644 --- a/.agents/skills/deepworkplan/addons/vim/SKILL.md +++ b/.agents/skills/deepworkplan/addons/vim/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-addon-vim -description: Optional DeepWorkPlan addon that offers DeepWorkPlan Vim, the terminal editor for Deep Work Plan (Neovim 0.12+, its own repository DailybotHQ/deepworkplan-vim pinned at v1.0.1), as a machine-level install for the person behind a repository - a thin integrator that reads the product's own addon/surface.json (interface 1) to detect the editor, offers it (never imposes it) from onboard Phase 7b, guides the product's documented, checksum-verified install under an absolute consent gate, and validates the installed surface. Two routes - the full editor today, the Neovim plugin in v7.1. Never required, never a conformance gate, and an existing Neovim config is never overwritten without explicit consent. -version: "8.0.0" +description: Optional DeepWorkPlan addon that offers DeepWorkPlan Vim, the terminal editor for Deep Work Plan (Neovim 0.12+, its own repository DailybotHQ/deepworkplan-vim pinned at v1.1.0), as a machine-level install for the person behind a repository - a thin integrator that reads the product's own addon/surface.json (interface 1) to detect the editor, offers it (never imposes it) from onboard Phase 7b, guides the product's documented, checksum-verified install under an absolute consent gate, and validates the installed surface. Two routes - the full editor today, the Neovim plugin in v7.1. Never required, never a conformance gate, and an existing Neovim config is never overwritten without explicit consent. +version: "8.0.1" documentation_url: https://deepworkplan.com/kit/vim user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write @@ -26,7 +26,7 @@ product's machine-readable surface, `addon/surface.json`, at the pinned tag | Pin | Value | |-----|-------| | Product | `DailybotHQ/deepworkplan-vim` | -| Tag | `v1.0.1` | +| Tag | `v1.1.0` | | Interface | `1` (read from `addon/surface.json` → `"interface"`) | | Registry key | `vim` (`.dwp/config.json` → `addons.vim`) | @@ -52,7 +52,7 @@ product's machine-readable surface, `addon/surface.json`, at the pinned tag ## Two routes -1. **The full editor (available now, v1.0.1).** The whole DeepWorkPlan Vim +1. **The full editor (available now, v1.1.0).** The whole DeepWorkPlan Vim config: command index, VS Code gestures, the read-only plan browser, the markdown viewer, the consent-first installer. This is what the offer installs. @@ -124,7 +124,7 @@ backstop is the installer's, never the agent's judgment. Show the person the product's documented install at the pinned tag (surface `install.steps`): download `install.sh` from the tag to a local file, verify its SHA-256 equals the pinned `install.script.sha256` (stop on -a mismatch), then run it with the ref pinned (`DWP_VIM_REF=v1.0.1 bash +a mismatch), then run it with the ref pinned (`DWP_VIM_REF=v1.1.0 bash install.sh`) — three separate steps, never a remote-installer pipe spelled in this pack's text. Windows and manual paths are a tagged `git clone` then `lua install.lua` (Windows first `winget install Neovim.Neovim`), never @@ -135,7 +135,7 @@ with explicit acceptance, then re-detect and record the observed version. On acceptance, record the addon in the repository registry — `.dwp/config.json` → `"addons": {"vim": {"enabled": true, "version": -"v1.0.0"}}` (`../../spec/CONFIG.md`; reconcile an existing file, never +"v1.1.0"}}` (`../../spec/CONFIG.md`; reconcile an existing file, never clobber it) — then run the headless smoke start, the command-index mapping probe and the plan-browser module probe. Every outcome is recorded, none blocks. A failed check is a finding about the machine, never a repo diff --git a/.agents/skills/deepworkplan/addons/vim/SPEC.md b/.agents/skills/deepworkplan/addons/vim/SPEC.md index c32f3d19..f8bd2b62 100644 --- a/.agents/skills/deepworkplan/addons/vim/SPEC.md +++ b/.agents/skills/deepworkplan/addons/vim/SPEC.md @@ -19,7 +19,7 @@ baseline AI-first conformance. Since 7.0.0 it is a **wired, thin integrator**: `onboard` Phase 7b offers it as an explicit opt-in, and every claim it makes about the editor is read from the product's machine-readable surface (`addon/surface.json`, interface `1`) at the pinned tag -`deepworkplan-vim@v1.0.1`. +`deepworkplan-vim@v1.1.0`. ## Status of This Document @@ -115,7 +115,7 @@ the consent gate, and validation. read as "editor absent". - The addon MUST present the editor **only as an offer**, stating what it is — **only** the features the pinned surface lists in `features[]` (at - `v1.0.1`: the command index, VS Code gestures, the read-only plan browser, + `v1.1.0`: the command index, VS Code gestures, the read-only plan browser, the markdown viewer, the consent-first installer, the read-only orchestrator lanes view) — and what it costs (a machine-level Neovim config, not a repo file). Declining MUST leave the @@ -151,14 +151,14 @@ The addon points at the editor's **versioned, documented** paths at the pinned tag. It MUST NOT vendor, mirror, re-implement, or "improve" the installer; the source of truth is `install.sh` at the editor repository root at the tag, with the website serving a byte-identical mirror. The -pinned surface (`install` block of `addon/surface.json` at `v1.0.1`) names +pinned surface (`install` block of `addon/surface.json` at `v1.1.0`) names the script location, its SHA-256 and the steps. - **macOS / Linux (canonical documented path):** the product's install page (`https://deepworkplan.com/vim`) — download the tag's `install.sh` to a local file, verify its SHA-256 against the pinned surface (stop on a mismatch — a mismatch MUST NOT be run), then run it with the ref pinned - (`DWP_VIM_REF=v1.0.1 bash install.sh`): **three separate steps**. A one-line + (`DWP_VIM_REF=v1.1.0 bash install.sh`): **three separate steps**. A one-line fetch-and-execute pipeline MUST NOT appear anywhere in this pack's text, even as an illustration of what not to do: lexical security scanners (Snyk E005 / Socket W012) flag the pipe shape wherever it @@ -166,9 +166,9 @@ the script location, its SHA-256 and the steps. `6a05ed9`). The product's own documentation owns its one-liner; pack copy describes the flow, it never spells the pipeline. - **Windows (documented path — never piped PowerShell):** - `winget install Neovim.Neovim`, then a `git clone --branch v1.0.1` of the + `winget install Neovim.Neovim`, then a `git clone --branch v1.1.0` of the repository into `%LOCALAPPDATA%\nvim`, then `lua install.lua`. -- **Manual (any OS):** `git clone --branch v1.0.1` into the config dir, then +- **Manual (any OS):** `git clone --branch v1.1.0` into the config dir, then `lua install.lua`. - **Who runs it.** The addon's default posture is to **point at the @@ -187,7 +187,7 @@ the script location, its SHA-256 and the steps. On acceptance (installed now, or deferred with the person's agreement), the addon records itself in the repository's addon registry — `.dwp/config.json` → `addons.vim` = `{"enabled": true, "version": -"v1.0.1"}` (`../../spec/CONFIG.md`). The write reconciles an existing file +"v1.1.0"}` (`../../spec/CONFIG.md`). The write reconciles an existing file (other keys untouched) and never happens on a decline. The registry entry is informative: the methodology reads nothing from it that could gate a plan. @@ -283,7 +283,7 @@ This SPEC versions independently of the DeepWorkPlan pack (`0.2.0` here). The editor product versions independently of both, through its own repository's release flow; compatibility is decided by the product's integer interface (`1`), the installed release by the tag the pack pins -(`v1.0.1`, bumped only with a parity-tested pack change). The pack records +(`v1.1.0`, bumped only with a parity-tested pack change). The pack records the editor's observed version from the installed surface and `nvim --version` at detection/validation time. diff --git a/.agents/skills/deepworkplan/addons/vim/addon.json b/.agents/skills/deepworkplan/addons/vim/addon.json index 1933446e..b506e552 100644 --- a/.agents/skills/deepworkplan/addons/vim/addon.json +++ b/.agents/skills/deepworkplan/addons/vim/addon.json @@ -1,7 +1,7 @@ { "schema": "https://deepworkplan.com/schema/addon-descriptor/v1.json", "key": "vim", - "product": { "repo": "DailybotHQ/deepworkplan-vim", "tag": "v1.0.1", "interface": 1 }, + "product": { "repo": "DailybotHQ/deepworkplan-vim", "tag": "v1.1.0", "interface": 1 }, "detect": { "paths": ["~/.config/nvim/addon/surface.json"], "legacy_paths": ["~/.config/nvim/install.lua", "~/.config/nvim/lua/plugins.lua"], "interface_from": "file-json:~/.config/nvim/addon/surface.json#interface" }, "provides_abilities": [], "requires_grants": [] diff --git a/.agents/skills/deepworkplan/addons/vim/templates/INTEGRATION.md b/.agents/skills/deepworkplan/addons/vim/templates/INTEGRATION.md index 4a66bdf6..2163db79 100644 --- a/.agents/skills/deepworkplan/addons/vim/templates/INTEGRATION.md +++ b/.agents/skills/deepworkplan/addons/vim/templates/INTEGRATION.md @@ -57,7 +57,7 @@ checks) and what each implies: Present the editor as what it is — the terminal editor for Deep Work Plan — with its actual surface, and what it costs: a **machine-level Neovim config**, not a repo file. The only claims allowed are the pinned surface's -`features[]` (at `v1.0.1`): +`features[]` (at `v1.1.0`): - `command_index` — `<Leader>hh` (generated live from the actual keymaps) - `vscode_gestures` — `<C-a>` select-all in normal mode, `<Leader>y` system @@ -108,9 +108,9 @@ accepted (§3), using the documented command **verbatim**. | OS | Path (verbatim from the editor's docs) | |----|----------------------------------------| -| macOS / Linux | The documented installer at the pinned tag (`https://deepworkplan.com/vim`): download `install.sh` to a local file, verify its SHA-256 against the pinned surface (`install.script.sha256`; stop on a mismatch), then `DWP_VIM_REF=v1.0.1 bash install.sh` — three separate steps. Never spell a remote-installer pipe in reasoning, output, or recorded notes. | -| Windows | `winget install Neovim.Neovim`, then `git clone --branch v1.0.1` into `%LOCALAPPDATA%\nvim`, then `lua install.lua`. **Never piped PowerShell.** | -| Manual (any OS) | `git clone --branch v1.0.1` into `<config-dir>`, then `lua install.lua`. | +| macOS / Linux | The documented installer at the pinned tag (`https://deepworkplan.com/vim`): download `install.sh` to a local file, verify its SHA-256 against the pinned surface (`install.script.sha256`; stop on a mismatch), then `DWP_VIM_REF=v1.1.0 bash install.sh` — three separate steps. Never spell a remote-installer pipe in reasoning, output, or recorded notes. | +| Windows | `winget install Neovim.Neovim`, then `git clone --branch v1.1.0` into `%LOCALAPPDATA%\nvim`, then `lua install.lua`. **Never piped PowerShell.** | +| Manual (any OS) | `git clone --branch v1.1.0` into `<config-dir>`, then `lua install.lua`. | Decision notes: @@ -119,7 +119,7 @@ Decision notes: (`DailybotHQ/deepworkplan-vim`); the website serves a byte-identical copy. - After any install, **re-detect** (§1) and record the observed version. - On acceptance, record `addons.vim` = `{"enabled": true, "version": - "v1.0.1"}` in the repository's `.dwp/config.json`, reconciling an existing + "v1.1.0"}` in the repository's `.dwp/config.json`, reconciling an existing file (other keys untouched). A decline writes nothing. - On Windows, reason which of the two documented paths fits the person's setup (winget availability vs git clone); do not mix them into a hybrid. diff --git a/.agents/skills/deepworkplan/author/SKILL.md b/.agents/skills/deepworkplan/author/SKILL.md index c705f13f..bcaffc50 100644 --- a/.agents/skills/deepworkplan/author/SKILL.md +++ b/.agents/skills/deepworkplan/author/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-author description: Author or update reusable skills, agents, and commands in the current repo — reason about the repo's .agents/ layout, follow the Open Agent Skills frontmatter contract, and keep the .agents/docs/ catalog in sync. Use when a developer wants to create or evolve the repo's agent kit (skills, agents, commands), or runs /skill-create or /agent-create. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/create/SKILL.md b/.agents/skills/deepworkplan/create/SKILL.md index e2df4de2..ef0e4b42 100644 --- a/.agents/skills/deepworkplan/create/SKILL.md +++ b/.agents/skills/deepworkplan/create/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-create description: Create a Deep Work Plan for short or long work. Detect planning intent, materialize a compact Lite proposal first, then retain Lite or expand to Full task files when needed. Supports guided and trust handoff without executing product work. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/execute/SKILL.md b/.agents/skills/deepworkplan/execute/SKILL.md index 69114f56..6851e5f8 100644 --- a/.agents/skills/deepworkplan/execute/SKILL.md +++ b/.agents/skills/deepworkplan/execute/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-execute description: Execute Lite or Full Deep Work Plans task-by-task — select validation from the actual surface, preserve state and evidence, recover safely, and finish with the Final Review. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/onboard/SKILL.md b/.agents/skills/deepworkplan/onboard/SKILL.md index 2b667dc1..4ae5c5be 100644 --- a/.agents/skills/deepworkplan/onboard/SKILL.md +++ b/.agents/skills/deepworkplan/onboard/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-onboard description: Make any repository AI-first — reason (never template) an adapted AGENTS.md, docs/, per-module docs and .agents/ kit from the real repo, discover and verify its full and scoped validation commands and source-to-test mapping, install the DeepWorkPlan skill, and, for a repository onboarded under an earlier version, perform a targeted, non-destructive, idempotent harness upgrade. Use when the developer wants to onboard or upgrade a repository for AI agents. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/onboard/addons.md b/.agents/skills/deepworkplan/onboard/addons.md index ea45af9d..0436121e 100644 --- a/.agents/skills/deepworkplan/onboard/addons.md +++ b/.agents/skills/deepworkplan/onboard/addons.md @@ -84,7 +84,7 @@ records its Phase 7a status). Offer the seven optional ones independently: | **Design system** | [`../addons/design-system/`](../addons/design-system/SKILL.md) | the repo has a **user-facing interface surface**, detected per profile: when any surface is detected — even an ambiguous one — the evaluation and offer are **mandatory, not skippable**, with the detection rationale recorded. **visual-ui** (stylesheet with CSS custom properties, Tailwind config or `@theme` block, UI components, brand/style guide) is **strongly recommended**; **cli-output** (a CLI rendering library + a deliberate display layer) and **conversational** (a chat SDK or message-composition layer) are **recommended**. Every profile **requires explicit acceptance even in trust mode — none is auto-applied**. **Never offer for a repo with no interface surface** (pure library, headless service, infra-only). | | **agentkit** | [`../addons/agentkit/`](../addons/agentkit/SKILL.md) | the developer wants plans to hand bounded `parallel_safe` tasks to other coding agents (claude, codex, cursor, …) — a machine-level install (`git clone --branch v1.5.0` + `install.sh`), never a repo requirement; delegation additionally needs each plan's `agent_delegation` grant. The kit runs agents in autonomy by default; the `--ask` / `AGENTKIT_PERMISSIONS=ask` opt-out always wins. | | **Herdr** | [`../addons/herdr/`](../addons/herdr/SKILL.md) | the developer runs coding agents in [Herdr](https://herdr.dev) panes (one machine or several) and wants plans to ask a peer agent to take a task or run a native debate panel (by default, consequential plan decisions are debated; `decisions.debate off` turns it off) — a machine-level install of `herdr-peers@v2.1.0` (+ Herdr's official skill, pinned), never a repo requirement; delegation additionally needs each plan's `agent_delegation` grant. | -| **DeepWorkPlan Vim** | [`../addons/vim/`](../addons/vim/SKILL.md) | a person on this machine uses Neovim ≥ 0.12 or asks for a terminal editor for plans — a **machine-level** install, never a repo requirement; the editor is never imposed and an existing Neovim config is **never** overwritten without explicit consent (non-interactive runs onto an existing config stop at instructions). Pinned `deepworkplan-vim@v1.0.1`, detected through the product's `addon/surface.json`. | +| **DeepWorkPlan Vim** | [`../addons/vim/`](../addons/vim/SKILL.md) | a person on this machine uses Neovim ≥ 0.12 or asks for a terminal editor for plans — a **machine-level** install, never a repo requirement; the editor is never imposed and an existing Neovim config is **never** overwritten without explicit consent (non-interactive runs onto an existing config stop at instructions). Pinned `deepworkplan-vim@v1.1.0`, detected through the product's `addon/surface.json`. | | **AI Diff Reviewer** | [`../addons/ai-diff-reviewer/`](../addons/ai-diff-reviewer/SKILL.md) | **not offered here — installed in Phase 7a** (required local review, baseline since 2.3.0). In Phase 7b only confirm the Flow B (CI Action) opt-in decision if it was left open; never install the CI surface unrequested. | The first addon is **devcontainer support** @@ -194,7 +194,7 @@ The **DeepWorkPlan Vim** addon ([`../addons/vim/SKILL.md`](../addons/vim/SKILL.md) + [`SPEC.md`](../addons/vim/SPEC.md)) is a machine-level offer, not a repo change: detect Neovim and the editor read-only through the product's -`addon/surface.json` (pinned `deepworkplan-vim@v1.0.1`, interface `1`; an +`addon/surface.json` (pinned `deepworkplan-vim@v1.1.0`, interface `1`; an unknown interface is one warning and "not available"), then offer — never impose — the editor. On acceptance run that addon's flow: the product's documented, checksum-verified install under its absolute consent gate (an diff --git a/.agents/skills/deepworkplan/refine/SKILL.md b/.agents/skills/deepworkplan/refine/SKILL.md index d8756291..38877158 100644 --- a/.agents/skills/deepworkplan/refine/SKILL.md +++ b/.agents/skills/deepworkplan/refine/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-refine description: Refine a Deep Work Plan — safely edit scope, add, split or reorder tasks, promote a Lite plan to Full task files, recover a partial promotion, or explicitly migrate a legacy plan, always preserving completed evidence. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/resume/SKILL.md b/.agents/skills/deepworkplan/resume/SKILL.md index 37b11b18..e0a7aca8 100644 --- a/.agents/skills/deepworkplan/resume/SKILL.md +++ b/.agents/skills/deepworkplan/resume/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-resume description: Resume interrupted Lite or Full Deep Work Plans from durable Markdown and state, including safe recovery of promotions without duplicating completed work or gates. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/spec/ADDONS.md b/.agents/skills/deepworkplan/spec/ADDONS.md index da275b90..81a8e32a 100644 --- a/.agents/skills/deepworkplan/spec/ADDONS.md +++ b/.agents/skills/deepworkplan/spec/ADDONS.md @@ -391,7 +391,7 @@ lives in its own public repository (`https://github.com/DailybotHQ/deepworkplan-vim`, GPL-3.0, versioned independently of the pack); this folder is the DWP-side integration contract only, a **thin integrator** pinned to the product tag -`deepworkplan-vim@v1.0.1`: detection, feature claims and the install steps +`deepworkplan-vim@v1.1.0`: detection, feature claims and the install steps are read from the product's machine-readable surface (`addon/surface.json`, interface `1`); an unknown interface major is one warning and "not available", never an error. `onboard` Phase 7b offers it as an **explicit @@ -408,7 +408,7 @@ template). An optional addon integrating **coding-agents-kit** (`ak`; `https://github.com/DailybotHQ/coding-agents-kit`, MIT, its own release -cycle) pinned at `v1.0.1` (interface `1`), as the **headless** transport of +cycle) pinned at `v1.5.0` (interface `1`), as the **headless** transport of v7 delegation ([`V7_CONTRACT.md`](V7_CONTRACT.md)): one `ak run` per delegate, in a dedicated git worktree, recorded through `ledger.py delegate`, its result asserted until the plan's own gates observe it. @@ -456,7 +456,7 @@ The shipped set: | `design-system` | in-pack only | — | — | — | | `devcontainer` | `DailybotHQ/devcontainer-kit` `v1.3.0`, interface 2 | — | — | — | | `herdr` | `DailybotHQ/herdr-peers` `v2.1.0`, interface 1 or 2 | `subagents`, `cancel_children` | `agent_delegation` | `interactive` | -| `vim` | `DailybotHQ/deepworkplan-vim` `v1.0.1`, interface 1 | — | — | — | +| `vim` | `DailybotHQ/deepworkplan-vim` `v1.1.0`, interface 1 | — | — | — | A descriptor is **data**: the pack executes nothing it names except its `detect.command`, and only for an addon the registry enables — or, when diff --git a/.agents/skills/deepworkplan/spec/CONFIG.md b/.agents/skills/deepworkplan/spec/CONFIG.md index fa894887..5ebfd079 100644 --- a/.agents/skills/deepworkplan/spec/CONFIG.md +++ b/.agents/skills/deepworkplan/spec/CONFIG.md @@ -37,7 +37,7 @@ Both files share one shape: "herdr": { "enabled": true, "version": "v2.1.0" }, "agentkit": { "enabled": false }, "devcontainer": { "enabled": true, "version": "v1.3.0" }, - "vim": { "enabled": true, "version": "v1.0.1" }, + "vim": { "enabled": true, "version": "v1.1.0" }, "dailybot": { "enabled": true, "version": "v3.23.20" } } } diff --git a/.agents/skills/deepworkplan/spec/V7_ROADMAP.md b/.agents/skills/deepworkplan/spec/V7_ROADMAP.md index c0f0ce11..ee2c2616 100644 --- a/.agents/skills/deepworkplan/spec/V7_ROADMAP.md +++ b/.agents/skills/deepworkplan/spec/V7_ROADMAP.md @@ -27,7 +27,7 @@ number), and the pack carries a **thin integrator** for it — never a copy. | **Addon-provided abilities** | effective abilities = host ∪ abilities of enabled, valid, detected, interface-compatible addons; computed per call, never persisted; an ability is never authority or consent ([`V7_ABILITIES.md`](V7_ABILITIES.md)). | | **v7 contract generation** | `plan-contract/v7` (v6 + `parallel_safe`), `journal-event/v7` (v6 + `delegation`), `plan-manifest/v7`; default for new plans; v6 plans unchanged ([`V7_CONTRACT.md`](V7_CONTRACT.md)). | | **Delegation** | `ledger.py delegate launch|observe|collect|cancel` behind a recorded gate (grant, marker, ability); `execute/delegation.md`; a delegate's result stays `asserted` until the plan's own gates observe it. | -| **Thin integrators** | `agentkit` → `coding-agents-kit@v1.5.0` (headless transport, `ak run`; autonomy by default with an always-winning opt-out since `v0.2.0`); `herdr` → `herdr-peers@v2.1.0` (interactive transport and native debate panels; stamp `[herdr-peers]`, protocol owned by herdr-peers); `devcontainer` → `devcontainer-kit@v1.3.0` (`dck init` and the `dck-dockerfile` skill, interface 2, per-repository Dockerfile, vendor-neutral); `vim` → `deepworkplan-vim@v1.0.1` (surface-driven editor offer). | +| **Thin integrators** | `agentkit` → `coding-agents-kit@v1.5.0` (headless transport, `ak run`; autonomy by default with an always-winning opt-out since `v0.2.0`); `herdr` → `herdr-peers@v2.1.0` (interactive transport and native debate panels; stamp `[herdr-peers]`, protocol owned by herdr-peers); `devcontainer` → `devcontainer-kit@v1.3.0` (`dck init` and the `dck-dockerfile` skill, interface 2, per-repository Dockerfile, vendor-neutral); `vim` → `deepworkplan-vim@v1.1.0` (surface-driven editor offer). | | **Pre-release channel** | `prerelease.yml` cuts `X.Y.Z-beta.N` on dispatch (never `latest`, with `SHA256SUMS`); stable releases ignore pre-release tags and graduate only on `[graduate]`. | | **Standard** | DWP standard **7.0.0** (normative additions above); `6.0.0` declarations stay valid. | diff --git a/.agents/skills/deepworkplan/status/SKILL.md b/.agents/skills/deepworkplan/status/SKILL.md index e4e4c9de..d0f6d7a1 100644 --- a/.agents/skills/deepworkplan/status/SKILL.md +++ b/.agents/skills/deepworkplan/status/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-status description: Report Lite or Full Deep Work Plan status — format, approval, readiness, progress, checkpoint, blockers and Markdown/state consistency — without modifying anything. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob diff --git a/.agents/skills/deepworkplan/upgrade/SKILL.md b/.agents/skills/deepworkplan/upgrade/SKILL.md index a01b98ca..064abad6 100644 --- a/.agents/skills/deepworkplan/upgrade/SKILL.md +++ b/.agents/skills/deepworkplan/upgrade/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-upgrade description: Check whether a newer DeepWorkPlan skill and DWP standard exists and — only after the developer explicitly accepts — install the latest published tag through the documented channel and re-run onboarding exactly as if https://deepworkplan.com/init.md were executed fresh, preserving every plan under .dwp/ and surfacing local adaptations instead of silently overwriting them. Use when the developer asks to upgrade, update, or refresh DWP in a repository that already has it installed. Do not use it to onboard a repo for the first time (that is the onboard sub-skill) or to migrate an old plan's shape (that is refine migrate, and plans are never migrated by an upgrade). -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob, Edit, Write diff --git a/.agents/skills/deepworkplan/verify/SKILL.md b/.agents/skills/deepworkplan/verify/SKILL.md index 8c787ea9..a7f86878 100644 --- a/.agents/skills/deepworkplan/verify/SKILL.md +++ b/.agents/skills/deepworkplan/verify/SKILL.md @@ -1,7 +1,7 @@ --- name: deepworkplan-verify description: Verify that a repository is DeepWorkPlan-conformant (AI-first) and that its plans are well-formed, producing an objective pass/fail report. Use when the developer asks to verify, audit, or check conformance of a repo or a plan. -version: "8.0.0" +version: "8.0.1" documentation_url: https://deepworkplan.com user-invocable: true allowed-tools: Bash, Read, Grep, Glob diff --git a/.dwp/config.json b/.dwp/config.json index 802b8cc6..ea5d947b 100644 --- a/.dwp/config.json +++ b/.dwp/config.json @@ -14,11 +14,11 @@ }, "dependency-upgrade": { "enabled": true, - "version": "v8.0.0" + "version": "v8.0.1" }, "design-system": { "enabled": true, - "version": "v8.0.0" + "version": "v8.0.1" }, "devcontainer": { "enabled": true, @@ -30,7 +30,7 @@ }, "vim": { "enabled": true, - "version": "v1.0.1" + "version": "v1.1.0" } }, "host": { diff --git a/AGENTS.md b/AGENTS.md index bdd4600d..e2596aef 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -713,7 +713,7 @@ When invoked: look up in `.agents/docs/skills_agents_catalog.md`, READ the proce ## Working with Deep Work Plans (DWP) -For any non-trivial change (more than ~3 files, more than one logical step, anything spanning auth + API client + commands + docs, anything you'd otherwise want a TodoList for), **drive the work through a Deep Work Plan** instead of free-form coding. The repo ships the [DWP skill pack](.agents/skills/deepworkplan/) (vendored at **v8.0.0**, standard **8.0.0**) and the matching `dwp-*` slash commands. New plans use the **v8** contract generation by default (`plan-contract/v8`: the v7 contract — the v6 identity manifest + versioned contract + append-only journal, plus `parallel_safe` tasks and delegation events — plus the optional, closed `autonomy` block from `spec/LOOP_ENGINEERING.md`; a v8 plan keeps the v7 manifest line (`plan-manifest/v7`) and writes `journal-event/v8` events — the v7 event set plus `blocker`; `state.json` is a snapshot). An explicit `v7` or `v6` request still materializes that generation. A plan is either **Lite** (task records inline in the plan's `README.md`, the default for most work) or **Full** (one file per task, for long-horizon work) — both carry the same contract: stable task ids, a Touched Surface, acceptance criteria, validation gates, completion evidence, and one Final Review. Existing v1/v2/v5 plans keep their recorded lifecycle and are never rewritten by an upgrade; v6 and v7 plans keep their generation; moving a plan to a newer generation is an explicit `refine migrate` only. +For any non-trivial change (more than ~3 files, more than one logical step, anything spanning auth + API client + commands + docs, anything you'd otherwise want a TodoList for), **drive the work through a Deep Work Plan** instead of free-form coding. The repo ships the [DWP skill pack](.agents/skills/deepworkplan/) (vendored at **v8.0.1**, standard **8.0.0**) and the matching `dwp-*` slash commands. New plans use the **v8** contract generation by default (`plan-contract/v8`: the v7 contract — the v6 identity manifest + versioned contract + append-only journal, plus `parallel_safe` tasks and delegation events — plus the optional, closed `autonomy` block from `spec/LOOP_ENGINEERING.md`; a v8 plan keeps the v7 manifest line (`plan-manifest/v7`) and writes `journal-event/v8` events — the v7 event set plus `blocker`; `state.json` is a snapshot). An explicit `v7` or `v6` request still materializes that generation. A plan is either **Lite** (task records inline in the plan's `README.md`, the default for most work) or **Full** (one file per task, for long-horizon work) — both carry the same contract: stable task ids, a Touched Surface, acceptance criteria, validation gates, completion evidence, and one Final Review. Existing v1/v2/v5 plans keep their recorded lifecycle and are never rewritten by an upgrade; v6 and v7 plans keep their generation; moving a plan to a newer generation is an explicit `refine migrate` only. ### The loop @@ -798,7 +798,7 @@ Host capability declaration (abilities not listed are `false` — never inferred **Authority boundaries (from this repo's Mandatory Rules):** plan authorship is by the working agent; approval is `pre_authorization` only when the developer explicitly requests unattended continuation (`trust`/`auto`) or approves a plan up front. Always stop and ask before: push to remote, merge to `main`, force-push, publishing a release, sending external messages (email/chat) with guessed recipients, reading or writing secrets, replacing existing hand-written harness content, or applying `[skip release]` outside its two allowed use cases. Outcome checks for plan gates come from [docs/TESTING_GUIDE.md](docs/TESTING_GUIDE.md) and the Quick Commands block (`pytest`, `ruff`, `mypy`) — never invent a gate command. -DWP standard: 8.0.0 (onboarded 2026-06-12; upgraded 2026-10-01, 2026-10-11, 2026-10-12, 2026-10-13, 2026-10-14, 2026-10-25, 2026-11-01 and 2026-11-16; skill 8.0.0, vendored 2026-11-16) +DWP standard: 8.0.0 (onboarded 2026-06-12; upgraded 2026-10-01, 2026-10-11, 2026-10-12, 2026-10-13, 2026-10-14, 2026-10-25, 2026-11-01 and 2026-11-16; skill 8.0.1, vendored 2026-11-16) ## Documentation Maintenance diff --git a/skills-lock.json b/skills-lock.json index 2867bc0d..3c42260f 100644 --- a/skills-lock.json +++ b/skills-lock.json @@ -17,10 +17,10 @@ }, "deepworkplan": { "source": "DailybotHQ/deepworkplan-skill", - "ref": "v8.0.0", + "ref": "v8.0.1", "sourceType": "github", "skillPath": "skills/deepworkplan/SKILL.md", - "computedHash": "00b3ade560b46232ace7cc838ee1770533e825b4ab4153cbfdaff99141b37e49" + "computedHash": "1f09d4c813b88cfe4c08693d5217cffe498c65678dfe3e5c4c335ce5fdeed0e7" } } }