@deftai/directive-content 0.86.0 → 0.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/QUICK-START.md CHANGED
@@ -151,6 +151,8 @@ Read and follow `../AGENTS.md`. This starts the normal first-session flow (user
151
151
 
152
152
  **Upgrade pointer:** Users moving between framework versions should also read [UPGRADING.md](./UPGRADING.md) in the repo root for the version-by-version guide. For a multi-version "big jump", start at its [big-jump triage entry point](./UPGRADING.md#big-jump-triage--multi-version-upgrades-start-here), which names which version buckets apply and in what order. An agent on a big jump that hits both a stale AGENTS.md and pre-cutover artifacts should follow [Case G+H](#case-gh--combined-stale-agentsmd--pre-cutover-migration-big-jump-one-session) above to complete both in one session.
153
153
 
154
+ **OpenClaw agent-host pointer:** Running Directive under OpenClaw persistent-memory agents? See [docs/openclaw-agent-host.md](./docs/openclaw-agent-host.md) for Control UI / identity notes, the executable babysit path (installed review-cycle skill), and the epic babysit → `sessions_spawn` Approach 1 expectation — skill and register contracts stay in shipped skills (#2877 / epic #2874).
155
+
154
156
  **Contributor pointer (non-blocking):** Working on Deft itself (a `deftai/directive` source checkout)? See [CONTRIBUTING.md](../CONTRIBUTING.md) and use the maintainer install path (`deft-install --yes --upgrade --maintainer --repo-root . --json`). The repo's root `AGENTS.md` has contributor instructions — you do not need the consumer first-session flow above.
155
157
 
156
158
  ## Update notifications
package/Taskfile.yml CHANGED
@@ -406,6 +406,7 @@ tasks:
406
406
  - verify:skill-external-fetch-gate
407
407
  - verify:contract-drift
408
408
  - verify:cursor-tier1
409
+ - verify:openclaw-tier1
409
410
  - verify:go-freeze
410
411
  - verify:bridge-drift
411
412
  - verify:branch
@@ -960,7 +961,7 @@ tasks:
960
961
  CLI_ARGS: "{{.CLI_ARGS}}"
961
962
 
962
963
  triage:show:
963
- desc: "Per-issue triage detail (#1128 / D11). -- task triage:show -- <N> [--repo OWNER/NAME]"
964
+ desc: "Per-issue triage detail (#1128 / D11, #2890). -- task triage:show -- <N> [--format=default|operator] [--repo OWNER/NAME]"
964
965
  cmds:
965
966
  - task: triage-queue:show
966
967
  vars:
@@ -46,7 +46,7 @@ The following `type` values are recognized by deft's tooling and skills. Any
46
46
  semantics.
47
47
 
48
48
  - `x-vbrief/plan` — reference to another vBRIEF plan (epic→story or story→epic links, also the canonical v0.5 enum value)
49
- - `x-vbrief/github-issue` — a GitHub issue (the origin of an ingested scope vBRIEF, or a related issue)
49
+ - `x-vbrief/github-issue` — a GitHub issue (the **primary** origin of an ingested scope vBRIEF). `task issue:emit` treats any `plan.references[]` entry whose type matches `github-issue` / `x-vbrief/github-issue` / `x-xbrief/github-issue` as **already tracked** and SKIPs create. Do **not** add related-only issue refs with this type when the brief still needs emit for its primary origin — keep related links in narratives / PR body / `Refs #N` prose instead (#2881 related-ref footgun).
50
50
  - `x-vbrief/github-pr` — a GitHub pull request (implementing PR, related PR, or superseded PR)
51
51
  - `x-vbrief/jira-ticket` — a Jira ticket (origin provenance for Jira-backed projects)
52
52
  - `x-vbrief/user-request` — a direct user request captured verbatim (no external tracker ID)
@@ -139,3 +139,5 @@ Full command reference for every triage and cache verb lives in [`commands.md`
139
139
  ## Agent Configuration
140
140
 
141
141
  <!-- TODO: Cover AGENTS.md, skill routing, Warp Drive integration, and cloud agent dispatch -->
142
+
143
+ **OpenClaw:** If your agent host is OpenClaw (persistent-memory agents, Control UI, `sessions_spawn`), read [openclaw-agent-host.md](./openclaw-agent-host.md) for the host mental model, executable babysit path (installed skills), and the epic babysit → `sessions_spawn` Approach 1 expectation. Skill gate text remains in `deft-directive-review-cycle` / `deft-directive-swarm` — the host doc only points.
@@ -0,0 +1,137 @@
1
+ # Agent host: OpenClaw
2
+
3
+ Consumer/operator guide for running **Deft Directive** under **OpenClaw** persistent-memory agents (`ape-deft`-class and peers).
4
+
5
+ This is an **agent-host** adapter note — not a product-UI design standard (those live under `interfaces/` for CLI/TUI/REST/Web) and not a hardware platform pack (`platforms/` is Atari/Unity-class). OpenClaw sits in the same mental model as Warp, Cursor, and Grok Build: a runtime that can host Directive skills, swarm launch, and PR review-monitors.
6
+
7
+ Legend (RFC2119): `!`=MUST, `~`=SHOULD, `≉`=SHOULD NOT, `⊗`=MUST NOT, `?`=MAY.
8
+
9
+ Epic spine: [#2874](https://github.com/deftai/directive/issues/2874). This doc is the discoverable operator path for [#2877](https://github.com/deftai/directive/issues/2877).
10
+
11
+ ---
12
+
13
+ ## Who this is for
14
+
15
+ - Operators running OpenClaw as the always-on agent runtime and wanting Directive lifecycle (xBRIEF, triage, swarm, review-cycle) without re-deriving host mappings every session.
16
+ - First-session agents that need a short answer to: **“What is babysit on OpenClaw?”**
17
+ - Maintainers comparing host primitives across Warp / Cursor / Grok Build / OpenClaw.
18
+
19
+ If you are installing Directive for the first time, start at [QUICK-START.md](../QUICK-START.md) or [getting-started.md](./getting-started.md), then return here for host-specific expectations.
20
+
21
+ ---
22
+
23
+ ## Mental model (host class)
24
+
25
+ | Host | Host-native background spawn (typical) | Directive review-monitor role |
26
+ |------|----------------------------------------|-------------------------------|
27
+ | Warp | `start_agent` | Approach 1 when Tier 1 |
28
+ | Grok Build | `spawn_subagent` | Approach 1 when Tier 1 |
29
+ | Cursor | `Task` (`run_in_background: true`) | Approach 1 when Tier 1 |
30
+ | **OpenClaw** | **`sessions_spawn`** (optional visible) | Approach 1 when Tier 1 **in the installed skill/matrix** |
31
+
32
+ OpenClaw’s native background-spawn tool is **`sessions_spawn`**. Operator intent places that tool in the **same Tier-1 role** as Warp / Grok Build / Cursor — not “interactive shell only.” Whether a given Directive **release** classifies OpenClaw as Tier 1 is decided by the **shipped** swarm matrix and review-cycle skill, not by this page.
33
+
34
+ ! Gate tiers, allowed register primitives, dispatch detection, and review Approaches are defined **only** in shipped skill + engine text:
35
+
36
+ - Swarm capability matrix + launch path: [`skills/deft-directive-swarm/SKILL.md`](../skills/deft-directive-swarm/SKILL.md) (Phase 3 runtime detection / launch adapter).
37
+ - PR babysit / shepherd / watch: [`skills/deft-directive-review-cycle/SKILL.md`](../skills/deft-directive-review-cycle/SKILL.md) → **Review Monitoring**.
38
+ - Provider-neutral dispatch envelope: [`templates/agent-prompt-preamble.md`](../templates/agent-prompt-preamble.md).
39
+ - Review-owner lease: `task review-monitor:register` / `task verify:review-monitor` (only `--platform-primitive` values those commands accept in your install).
40
+
41
+ ! When this host guide and the installed skill/CLI disagree, **the skill and CLI win**.
42
+
43
+ ⊗ Invent a parallel “OpenClaw-only” review gate that bypasses `deft-directive-review-cycle`.
44
+
45
+ ⊗ Pass `sessions_spawn` (or any host-native name) to `task review-monitor:register -- --platform-primitive …` unless that exact token is listed in the **installed** skill/CLI help.
46
+
47
+ ---
48
+
49
+ ## First-session: babysit on OpenClaw
50
+
51
+ **Operator says:** “babysit this PR”, “shepherd”, “watch the PR”, or equivalent PR-shepherding intent on a Deft-managed repo (`.deft/core/` present, or framework checkout with Directive skills).
52
+
53
+ ### Executable path (any installed Directive version)
54
+
55
+ 1. ! Load **`deft-directive-review-cycle`** — not a host-global babysit skill and not a freestyle `gh` poll loop in the main session ([#2261](https://github.com/deftai/directive/issues/2261) class).
56
+ 2. ! Select monitoring Approach using **runtime detection in that skill** (and the swarm Phase 3 matrix when relevant). Do not invent a host path outside the skill.
57
+ 3. ! If the installed skill reports Tier 1, use **Approach 1** (background review-monitor) and register with a **`--platform-primitive` value accepted by the installed CLI**.
58
+ 4. ! Prefer deterministic wait language from the skill (`task pr:watch` when the consumer Taskfile exposes it) over inventing sleep/cron loops.
59
+ 5. ⊗ Treat **OpenClaw cron alone** as Approach 1. Cron / scheduler re-invocation is fallback territory when a live background review-monitor cannot be spawned per the skill — not a substitute for Approach 1 when the skill says spawn is available.
60
+ 6. ⊗ Block the main session with long `gh` poll + sleep when the skill’s Tier 1 / background path is available (#1880 Gap D / incident class on epic #2874).
61
+
62
+ ### Operator expectation: babysit → `sessions_spawn` (epic target)
63
+
64
+ Epic [#2874](https://github.com/deftai/directive/issues/2874) sets the **intended** OpenClaw mapping:
65
+
66
+ > On OpenClaw, PR babysit/shepherd/watch routes into **`deft-directive-review-cycle` Approach 1** using the host-native **`sessions_spawn`** (prefer **visible** when Control UI is the control plane), not main-session `gh` poll + cron.
67
+
68
+ That expectation is for operators and first-session agents to **find and remember**. It becomes the **executable** default only when the installed Directive version’s swarm matrix + review-cycle skill name OpenClaw / `sessions_spawn` as Tier 1 Approach 1 (sibling work):
69
+
70
+ | Issue | Lands |
71
+ |-------|--------|
72
+ | [#2875](https://github.com/deftai/directive/issues/2875) | Swarm matrix + `openclaw` descriptor + verify gate |
73
+ | [#2876](https://github.com/deftai/directive/issues/2876) | Review-cycle Approach 1 + register primitive for OpenClaw `sessions_spawn`; cron ≠ Approach 1 |
74
+ | [#2879](https://github.com/deftai/directive/issues/2879) | Poller/preamble templates + heartbeat mapping |
75
+ | [#2878](https://github.com/deftai/directive/issues/2878) | Consumer `pr:watch` / official gh fallback |
76
+
77
+ ~ After those slices are in your Directive version, follow the **updated skill text** end-to-end (including any new register token). Until then, still open review-cycle on babysit intent and use only primitives the **current** skill accepts — while keeping the `sessions_spawn` expectation as the design north star (do not freestyle a weaker path when you could wait for / upgrade to the OpenClaw-capable release).
78
+
79
+ This section is a **discovery map**. Authoritative Approaches, register primitives, and exit predicates live only in skill files and CLI.
80
+
81
+ ---
82
+
83
+ ## Control plane preference (operator signal)
84
+
85
+ When multiple OpenClaw surfaces are available:
86
+
87
+ | Surface | Role |
88
+ |---------|------|
89
+ | **Control UI** | Default **control plane** for long infra work and **visible** subagent watch (review-monitors, swarm leaves). |
90
+ | **Telegram** (or similar mobile chat) | Remote/mobile chat; not the preferred surface for long blocking polls. |
91
+ | **TUI** | Break-glass local terminal — use when UI/channels are unavailable. |
92
+
93
+ ~ Prefer **visible** background review-monitors when Control UI is in play so the operator can see the subagent without freezing the parent conversation. Once OpenClaw Approach 1 is skill-backed, that usually means visible `sessions_spawn`.
94
+
95
+ ! Keep long-running review-monitors and implementation leaves on independent/background dispatch so the parent session stays interactive (Gap D — see preamble and review-cycle skill).
96
+
97
+ ---
98
+
99
+ ## Bot identity vs human GitHub identity
100
+
101
+ OpenClaw agents often act under a **bot / service identity** (e.g. `ape-deft`-class) that is distinct from the human operator’s GitHub login.
102
+
103
+ - ! Assume the agent’s `gh` auth may be a bot account with different permissions than the human (merge rights, org SSO, protected-branch rules).
104
+ - ~ Prefer bot-owned comments, review-monitor leases, and PR status updates when the bot is the active worker; do not silently switch identities mid-loop.
105
+ - ⊗ Mandate merge rights for bot accounts in this doc — merge policy is per-repo ops, not an OpenClaw host requirement (epic #2874 out of scope).
106
+ - ~ When a merge or ruleset action requires a human, surface a clear handoff instead of retrying with the wrong identity.
107
+
108
+ ---
109
+
110
+ ## Directive-for-OpenClaw-users (onboarding blurb)
111
+
112
+ 1. Install / refresh Directive like any other host ([QUICK-START.md](../QUICK-START.md), `directive init` / `directive update`).
113
+ 2. Confirm skills resolve under the deposit (consumer: `.deft/core/.agents/skills/…`; framework checkout: `content/skills/…`).
114
+ 3. On first PR shepherding request, open **`deft-directive-review-cycle`** and follow its Review Monitoring section for **your** install. Remember the epic expectation: OpenClaw → Approach 1 via `sessions_spawn` once skill wiring ships (#2875 / #2876).
115
+ 4. For multi-story parallel work, follow **`deft-directive-swarm`** — do not hand-roll worktree orchestration outside the skill.
116
+ 5. Keep CHANGELOG / xBRIEF / branch gates the same as on Cursor or Warp; the host changes the **spawn surface**, not the Directive lifecycle.
117
+
118
+ ---
119
+
120
+ ## Anti-patterns
121
+
122
+ - ⊗ Main-session `gh` poll + **cron** as the default babysit path when the installed skill offers a Tier 1 / background monitor.
123
+ - ⊗ Inventing skill gate semantics or unregistered `--platform-primitive` values in operator docs instead of linking to shipped `SKILL.md` / CLI text.
124
+ - ⊗ Treating `content/platforms/` hardware packs as the home for agent-host OpenClaw guidance.
125
+ - ⊗ Substituting host-native review theater for `deft-directive-review-cycle` on Deft-managed repos.
126
+ - ⊗ Claiming this doc alone makes `sessions_spawn` a shipped register/matrix primitive — that is epic skill/engine work (#2875 / #2876).
127
+
128
+ ---
129
+
130
+ ## See also
131
+
132
+ - [QUICK-START.md](../QUICK-START.md) — install / AGENTS.md refresh entry
133
+ - [getting-started.md](./getting-started.md) — orientation lifecycle
134
+ - [skill-pin-policy.md](./skill-pin-policy.md) — always-pin process skills (includes review-cycle)
135
+ - [`skills/deft-directive-review-cycle/SKILL.md`](../skills/deft-directive-review-cycle/SKILL.md)
136
+ - [`skills/deft-directive-swarm/SKILL.md`](../skills/deft-directive-swarm/SKILL.md)
137
+ - [`templates/agent-prompt-preamble.md`](../templates/agent-prompt-preamble.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deftai/directive-content",
3
- "version": "0.86.0",
3
+ "version": "0.87.0",
4
4
  "description": "Shippable Directive framework content in the consumer .deft/core/ layout (C1 flatten), plus the engine surfaces (.githooks/, Taskfile.yml, tasks/) the deposit wires. Python-free per #2022 Phase 3. Refs #11, #1669, #1967.",
5
5
  "type": "module",
6
6
  "files": [