@tacuchi/agent-workflow-cli 20.11.0 → 20.13.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/dist/application/workspace-init-service.js +12 -1
- package/dist/application/workspace-init-service.js.map +1 -1
- package/package.json +1 -1
- package/skills/w/SKILL.md +2 -2
- package/skills/w/commands/resume.md +18 -7
- package/skills/w/commands/workspace-init.md +1 -1
- package/skills/w/harness/HARNESS.md +7 -1
- package/skills/w/loops/CHASSIS.md +11 -0
- package/skills/w/loops/spec-refine-loop/LOOP.md +18 -2
|
@@ -303,7 +303,18 @@ function renderSkillsTomlTemplate() {
|
|
|
303
303
|
"[skills]",
|
|
304
304
|
];
|
|
305
305
|
const roleLines = SKILL_ROLES.map((role) => `# ${role} = "${BUILTIN_DEFAULT_SKILLS[role]}"`);
|
|
306
|
-
|
|
306
|
+
const compactionLines = [
|
|
307
|
+
"",
|
|
308
|
+
"# Context self-regulation of the loops (see the chassis' Self-regulation subsection):",
|
|
309
|
+
'# "confirm" (default, also with no config) = the loop proposes `Compactar`, the user ratifies',
|
|
310
|
+
'# "auto" = checkpoint + compact without asking (hosts with a non-interactive mechanism',
|
|
311
|
+
'# only; elsewhere it degrades to "confirm")',
|
|
312
|
+
'# "confirm" is already the default; the real opt-in is "auto". To switch,',
|
|
313
|
+
"# uncomment BOTH lines and set the value:",
|
|
314
|
+
"# [compaction]",
|
|
315
|
+
'# mode = "confirm"',
|
|
316
|
+
];
|
|
317
|
+
return `${[...header, ...roleLines, ...compactionLines].join("\n")}\n`;
|
|
307
318
|
}
|
|
308
319
|
async function reconcileVisibility(fs, env, wsPaths, workspace, sources, previousPaths) {
|
|
309
320
|
// Visibility must be configured for every source whose path lives OUTSIDE the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-init-service.js","sourceRoot":"","sources":["../../src/application/workspace-init-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAA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AkB,EAAE,SAAiB;IAC5E,MAAM,sBAAsB,CAC1B,EAAE,EACF,SAAS,EACT,kEAAkE,EAClE,oBAAoB,CACrB,CAAC;AACJ,CAAC;AAED,sGAAsG;AACtG,KAAK,UAAU,sBAAsB,CACnC,EAAkB,EAClB,SAAiB,EACjB,EAAU;IAEV,MAAM,sBAAsB,CAC1B,EAAE,EACF,SAAS,EACT,6DAA6D,EAC7D,uBAAuB,CAAC,EAAE,CAAC,CAC5B,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,OAA0B;IACjD,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACnC,OAAO;YACL,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,gKAAgK;SACvK,CAAC;IACJ,CAAC;IACD,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAClC,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;QACxB,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YACxB,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,4BAA4B,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAC5F,CAAC;QACD,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,oBAAoB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;QAC3E,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
1
|
+
{"version":3,"file":"workspace-init-service.js","sourceRoot":"","sources":["../../src/application/workspace-init-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,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,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tacuchi/agent-workflow-cli",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.13.0",
|
|
4
4
|
"description": "Runtime CLI for Workline — the stages + loops + artifacts system for agent work. Bundles the universal `w` skill set under `skills/w/` (slash commands `/w:*`: spec-new/spec-refine, plan-new/plan-exec, quick, persist, workspace-init, export-*); `self install --target <host>` copies SKILL + commands + hooks into the host. Pluggable capability skills via `.workflow/skills.toml`. Multi-empresa parametrization via `profile.json` cascade. Namespace auto-detected from any `.<ns>/sessions/` dir in CWD; default `workflow`.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/skills/w/SKILL.md
CHANGED
|
@@ -112,7 +112,7 @@ The flows are **composable with host-native work, never exclusive**. The host is
|
|
|
112
112
|
- `/w:fix-git` — resolves an in-progress merge's conflicts in any repo (identifies origin↔destination, analyzes intent, *structured-choice* on ambiguity). No session, never touches `docs/`; git-safe; backed by `aw merge-state`.
|
|
113
113
|
- `/w:generate-launch` — (re)generates the per-source launch scripts (`.workflow/launch/<alias>/`) by detecting each source's stack; idempotent (preserves hand-edited scripts, `--force` overwrites). Complements the launch flow's on-demand generation. No session, never touches `docs/`; backed by `aw generate-launch`.
|
|
114
114
|
- `/w:persist` — persists work **already done in this conversation** (an analysis, conclusions, a plan) into `docs/`: classifies its shape and routes it — analysis/conclusions → `docs/research/` · requirement-shaped → spec draft (`spec-new` procedure) · plan-shaped → plan adoption (`plan-new` mode 4) — with `## Origin` + attribution (host · model · date) and the anti-duplicate check. Never creates sessions; the host→`docs/` counterpart of `export-*` (which stays the only session→`docs/` path).
|
|
115
|
-
- `/w:resume` — read-only: composes `/w:status` for a prioritized summary of pending work (workline signals + host context) and proposes how to continue via structured-choice, routed to the target command (`spec-refine` / `plan-new` / `plan-exec` / reopen). Writes nothing; the actionable sibling of `/w:status`.
|
|
115
|
+
- `/w:resume` — read-only: composes `/w:status` for a prioritized summary of pending work (workline signals + host context) and proposes how to continue via structured-choice, routed to the target command (`spec-refine` / `plan-new` / `plan-exec` / reopen); an optional artifact argument (spec/plan/session) skips the survey and gets its exact re-entry route. Writes nothing; the actionable sibling of `/w:status`.
|
|
116
116
|
|
|
117
117
|
### The loops (Layer 2)
|
|
118
118
|
|
|
@@ -171,7 +171,7 @@ The doctrine names abstract **capabilities**, never a concrete harness tool. A s
|
|
|
171
171
|
Key capabilities:
|
|
172
172
|
|
|
173
173
|
- **structured-choice** — ask the human ≤3 content questions + 1 `flow` control. Claude Code: `AskUserQuestion`. Fallback: numbered markdown.
|
|
174
|
-
- **compaction** — shrink the context without losing the thread. Claude Code: `/compact`. Fallback: `CHECKPOINT` + resume.
|
|
174
|
+
- **compaction** — shrink the context without losing the thread; its context-pressure signal feeds the loops' self-regulation (chassis § *Compact / resume*). Claude Code: `/compact`. Fallback: `CHECKPOINT` + resume.
|
|
175
175
|
- **command-invocation** · **procedure-loading** · **subagent-dispatch** (opt.) · **persistent-context** · **external-data** (MCP) · **dry-run/preview**.
|
|
176
176
|
|
|
177
177
|
The only `must` capabilities for a loop's cycle are **structured-choice** and **compaction**, and both degrade to text → any harness with chat + files runs the full model. Detail, binding matrix and distribution (canonical `AGENTS.md` + `CLAUDE.md` symlink): see `harness/HARNESS.md`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Use when the user asks to resume or pick up pending work — a half-done session, a spec to refine, a plan mid-execution, or work with no Workline flow at all. Composes /w:status
|
|
3
|
-
argument-hint:
|
|
2
|
+
description: Use when the user asks to resume or pick up pending work — a half-done session, a spec to refine, a plan mid-execution, or work with no Workline flow at all. Composes /w:status and proposes how to continue via structured-choice routed to the right command; an artifact argument (spec, plan or session) skips the survey and gets its exact re-entry route. Transversal (not a flow), read-only; never touches docs/ or .workflow/. Backed by aw status + aw resume-summary.
|
|
3
|
+
argument-hint: "[docs/specs/… | docs/plans/… | session NNN]"
|
|
4
4
|
allowed-tools:
|
|
5
5
|
[
|
|
6
6
|
"Bash",
|
|
@@ -10,21 +10,32 @@ allowed-tools:
|
|
|
10
10
|
|
|
11
11
|
# resume — pick up pending work (transversal)
|
|
12
12
|
|
|
13
|
-
Summarizes what is pending in the workspace and proposes how to continue. Single-pass, **read-only**: no loop, no session, writes nothing in `docs/` or `.workflow/`. **Transversal** command (belongs to no SPEC/PLAN/QUICK flow). The **actionable sibling of `/w:status`**: it composes the `/w:status` summary and adds a proposal layer. User-facing output in the user's language.
|
|
13
|
+
Summarizes what is pending in the workspace and proposes how to continue. Single-pass, **read-only**: no loop, no session, writes nothing in `docs/` or `.workflow/`. **Transversal** command (belongs to no SPEC/PLAN/QUICK flow). The **actionable sibling of `/w:status`**: it composes the `/w:status` summary and adds a proposal layer. With an **argument** (a spec, plan or session) it skips the survey and proposes the exact re-entry route for that artifact (§ *Directed resume*). User-facing output in the user's language.
|
|
14
14
|
|
|
15
15
|
> **Not `aw session-resume` / `aw resume-summary` / `create_or_resume`.** Those are internal session mechanics (reopen a session, the PostCompact payload, loop resume). `/w:resume` is the **user-facing** command that *summarizes + proposes*; it never runs the pending work — it routes to the command that does.
|
|
16
16
|
|
|
17
17
|
> **Hard floor — applies even if you read nothing beyond this file:**
|
|
18
18
|
>
|
|
19
|
-
> 1. **Read-only** — never execute the pending work and never write `docs/` or `.workflow
|
|
20
|
-
> 2. **Summary always, question only when pending** — show the prioritized summary every time
|
|
19
|
+
> 1. **Read-only** — never execute the pending work and never write `docs/` or `.workflow/`, **with or without an argument**. Routing means handing off to the target command; the user drives it.
|
|
20
|
+
> 2. **Summary always, question only when pending** — without an argument, show the prioritized summary every time and ask **only** when there is at least one pending item; with an argument, the directed route (§ *Directed resume*) replaces the survey.
|
|
21
21
|
> 3. **Ask via structured-choice** — the proposal is a structured-choice with the top ≤3 concrete options, recommendation first. Never route silently.
|
|
22
22
|
> 4. **Language** — headings in English (parse contract); user-facing output in the **user's language**.
|
|
23
23
|
|
|
24
|
+
## Directed resume (optional argument)
|
|
25
|
+
|
|
26
|
+
`$ARGUMENTS` may name an artifact: a spec (`docs/specs/NNN-spec-<slug>.md`), a plan (`docs/plans/PPP-plan-<slug>.md`) or a session (`NNN` code or `NNN-<slug>-<flow>` folder). Empty → the survey flow below (`## Run`). With an argument:
|
|
27
|
+
|
|
28
|
+
1. **Derive the slug** from the artifact name (session code `NNN` → resolve the folder via `aw sessions --state all`).
|
|
29
|
+
2. **Locate the candidate sessions**: `aw sessions --state all` (and `aw resume-summary --include-recent-closed` for checkpoint detail) filtered by that slug.
|
|
30
|
+
3. **Confirm by `## Origin`**: read the candidates' `SESSION.md` — the `## Origin` names the spec/plan the session came from; it, not the slug match, decides the association.
|
|
31
|
+
4. **Propose the exact route** via structured-choice, per the `## Routing` table with the artifact's path filled in (`Retomar` recommended, `Descartar`/`Cerrar` secondary). No candidate session and no clear stage → say so and fall back to the survey flow.
|
|
32
|
+
|
|
33
|
+
Same hard floor: this mode **proposes** the route — it never starts the target command itself.
|
|
34
|
+
|
|
24
35
|
## Run
|
|
25
36
|
|
|
26
37
|
1. **Workline level — compose `/w:status`.** Read-and-follow [`status.md`](status.md) to produce the prioritized summary (it already renders `aw status` and, when available, the host-context section). Do **not** re-implement the summary. For deeper session detail, `aw resume-summary [--include-recent-closed]` gives the primary session's CHECKPOINT state, and `aw session-resume --code <NNN>` the full checkpoint of any other active or closed session.
|
|
27
|
-
2. **Interpret the stage marks.** Map each signal to its stage: spec `refined` / `open_questions`; plan checkbox progress (`tasks_done` / `tasks_total`); session `checkpoint_present` / `status`. Associate a session to its plan or spec by **slug** — there is no linkage field, so infer it from `folder` / `slug
|
|
38
|
+
2. **Interpret the stage marks.** Map each signal to its stage: spec `refined` / `open_questions`; plan checkbox progress (`tasks_done` / `tasks_total`); session `checkpoint_present` / `status`. Associate a session to its plan or spec by **slug** — there is no linkage field in the `aw status` output, so infer it from `folder` / `slug`; when precision matters, confirm by the session's `## Origin` (§ *Directed resume*).
|
|
28
39
|
3. **Build the prioritized pending list** — fixed order: **session with CHECKPOINT > plan half-done > spec unrefined > host context**.
|
|
29
40
|
4. **Host level (second source).** If the workline level does not explain the pending work (or no Workline flow was used), rely on the host-context already surfaced by `/w:status`; escalate it to a proposal and, only if needed, use the host-memory *deep* tier or ask the user (universal fallback: git / `docs/` signals + a question). See [`../harness/HARNESS.md`](../harness/HARNESS.md) § *host-memory*.
|
|
30
41
|
5. **Propose (only when ≥1 pending).** One structured-choice with the top ≤3 options by the priority order; each option **routes** to its command (table below). Every proposal carries `Retomar` (recommended) and `Descartar` / `Cerrar` (secondary).
|
|
@@ -46,7 +57,7 @@ Reuses the continuity rule of [`../SKILL.md`](../SKILL.md) § *Operating context
|
|
|
46
57
|
|
|
47
58
|
## Plan mode
|
|
48
59
|
|
|
49
|
-
Read-only already: compose `/w:status`, describe the prioritized summary and the proposal it would offer (top ≤3 routed options), without asking or writing.
|
|
60
|
+
Read-only already: compose `/w:status`, describe the prioritized summary and the proposal it would offer (top ≤3 routed options; with an argument, the exact route it would propose), without asking or writing.
|
|
50
61
|
|
|
51
62
|
## Resources
|
|
52
63
|
|
|
@@ -21,7 +21,7 @@ aw workspace-init --source alias:path[:branch] [--proyecto <name>] [--main-branc
|
|
|
21
21
|
## Interactive steps
|
|
22
22
|
|
|
23
23
|
1. **Detect/confirm sources** — the CLI detects the repo path(s); the user confirms aliases, paths and branches. Multiple `--source` accepted.
|
|
24
|
-
2. **Pick default skills** — the catalog of available capabilities (roles) is presented. Per role: `built-in default`, override to a third-party skill (`skills.sh`), or `off`. The result is written to `.workflow/skills.toml`. Config cascade: `built-in → ~/.workflow/skills.toml (global) → .workflow/skills.toml (workspace)`.
|
|
24
|
+
2. **Pick default skills** — the catalog of available capabilities (roles) is presented. Per role: `built-in default`, override to a third-party skill (`skills.sh`), or `off`. The result is written to `.workflow/skills.toml`. Config cascade: `built-in → ~/.workflow/skills.toml (global) → .workflow/skills.toml (workspace)`. The template also ships a commented `[compaction]` section — the `mode` switch for the loops' context self-regulation (`auto` is the opt-in; `confirm` is the default — chassis § *Self-regulation (proactive compaction)*).
|
|
25
25
|
3. **Write the MINIMAL scaffolding** — only the activation set: `.workflow/sessions/` (the marker that activates the operating context), `.workflow/skills.toml`, the `WORKSPACE` block in CLAUDE.md/AGENTS.md (sources + metadata) and the `.gitignore` policy (below). **Nothing else upfront**: each `docs/<category>` folder (`specs/`, `plans/`, `scripts/`, `manuals/`, `diagrams/`, `reports/`) is born on demand at its first numbered write — `aw next-number docs/<cat>` creates it (skills stay unchanged); launch artifacts (`.workflow/launch/<alias>/`) and `docs/logs/` are generated by the launch flow at the first launch.
|
|
26
26
|
4. **External sources** — for every source living OUTSIDE the workspace folder (any count, including a single external source), configures multi-root visibility (settings.local.json + config, gitignored) and reconciles sources.
|
|
27
27
|
|
|
@@ -35,10 +35,11 @@ The capabilities the harness layer depends on, with their universal fallback (wh
|
|
|
35
35
|
| **command-invocation** | the user triggers a flow by name (`spec-new`, `plan-exec`, …) | the user writes "run the `<cmd>` procedure" and the AI reads its doc |
|
|
36
36
|
| **procedure-loading** | load a loop's/command's doctrine | the AI **reads the `.md`** of the loop and follows it (read-and-follow) |
|
|
37
37
|
| **structured-choice** | ask the human ≤3 content questions **+ always** a `flow` control (`Compactar`/`Cerrar`) through a side channel | a **numbered markdown** question in chat; the `flow` control is offered as one more option |
|
|
38
|
-
| **compaction** | shrink the context without losing the thread | write `CHECKPOINT` and ask the user to restart the context and resume (resume keys off `CHECKPOINT`) |
|
|
38
|
+
| **compaction** | shrink the context without losing the thread (+ a context-pressure **signal** for the chassis' self-regulation) | write `CHECKPOINT` and ask the user to restart the context and resume (resume keys off `CHECKPOINT`) |
|
|
39
39
|
| **subagent-dispatch** | *(optional)* parallelize research breadth | **inline sequential** research in the same session (the default anyway) |
|
|
40
40
|
| **persistent-context** | the `WORKSPACE` block + conventions always present | the repo's context file (standard **`AGENTS.md`**; `CLAUDE.md` on Claude Code) |
|
|
41
41
|
| **host-memory** | *(optional)* recover state/pending work from the host's accessible history — a **second source** after the workline signals | recent **git** / **`docs/`** signals + (in `/resume`) **ask the user**; plus Workline's own `.workflow/CHECKPOINT` via `aw resume-summary` |
|
|
42
|
+
| **web-research** | *(optional)* search/fetch external online evidence inside a consented ideation round (spec-refine § *Ideation gate*) | **offline ideation** (own knowledge + workspace + repos) — the loop **declares** the web was unavailable |
|
|
42
43
|
| **external-data** | read-only DB reads or other sources for research/validation | **MCP** (widely supported); without it, the gap degrades to a human question |
|
|
43
44
|
| **dry-run / preview** | preview what a command would do without writing | the command **describes** the change instead of applying it (e.g. `spec-new` lists the draft without creating the file) |
|
|
44
45
|
|
|
@@ -57,6 +58,7 @@ Concrete mechanism per harness (**Jul-2026**, verified against official docs; `~
|
|
|
57
58
|
| subagent-dispatch | `Task` (parallel) | `SubagentStart` / agents | agents (`.gemini/agents`) | `.opencode/agent/*.md` | ~ | ~ (cloud agents) | inline |
|
|
58
59
|
| persistent-context | `CLAUDE.md` (does **not** read AGENTS.md → symlink) | `AGENTS.md` | `GEMINI.md` + `AGENTS.md` | `AGENTS.md` | `CRUSH.md` + `AGENTS.md` | `AGENTS.md` (auto) | `AGENTS.md` |
|
|
59
60
|
| **host-memory** | `MEMORY.md` (cheap) + transcripts/`--resume` (deep) | `AGENTS.md` (static → fallback) | `GEMINI.md`+`AGENTS.md` (static → fallback) | `AGENTS.md` (static → fallback) | `CRUSH.md`+`AGENTS.md` (static → fallback) | rules / history (~) | git/`docs/` + ask |
|
|
61
|
+
| **web-research** | `WebSearch` / `WebFetch` | `web_search` (opt-in config) | `google_web_search` + `web_fetch` | `webfetch` (~) | ~ | ~ (agent web access) | — (offline + declare) |
|
|
60
62
|
| external-data (MCP) | `.mcp.json` | `.codex/config.toml` `[mcp_servers]` | `settings.json` `mcpServers` | `opencode.json` `mcp` | `crush.json` `mcp` | `.warp/.mcp.json` (+auto-discovers `.mcp.json`) · Oz: `--mcp` flag | — |
|
|
61
63
|
| **enforcement (deny tool)** | `PreToolUse` → `permissionDecision:deny` / exit 2 | `PreToolUse` (**≈same protocol**) | `BeforeTool` → `decision:deny` / exit 2 | plugin `tool.execute.before` (`throw`) | `allowed_tools` (+ preliminary hooks) | allow/deny lists (**coarse**) | doctrine (git-safe #5) |
|
|
62
64
|
| plugin / dist | `.claude-plugin` + marketplace | `.codex-plugin` + `/plugins` marketplace | Extension `gemini-extension.json` | JS/TS plugin (npm) | MCP + skills + config | Warp Drive | — |
|
|
@@ -65,8 +67,12 @@ Concrete mechanism per harness (**Jul-2026**, verified against official docs; `~
|
|
|
65
67
|
|
|
66
68
|
> **Oz (Warp's cloud sibling).** `oz agent run` is a cloud agent orchestrator that **reuses Warp's surfaces**: same skills (`.agents/skills`, top-level dirs like Warp) and `AGENTS.md`, with `structured-choice` equally degraded to numbered markdown. It differs in three points: **detection** via `OZ_RUN_ID` (takes priority over Warp when both markers coexist); **MCP without a config file** — the JSON is passed via the `--mcp` flag of `oz agent run` (or the `OZ_MCP_CONFIG` env), it never writes `.warp/.mcp.json`; and **no plugin or hooks** (advisory enforcement, like Warp). Hence it shares the **Warp / Oz** column with that MCP caveat.
|
|
67
69
|
|
|
70
|
+
> **compaction (signal & self-regulation).** The chassis' *Self-regulation (proactive compaction)* doctrine (`../loops/CHASSIS.md` § *Compact / resume*) needs two per-host facts: the **context-pressure signal** (does the host surface one the agent can read?) and **`auto`-mode viability** (can compaction fire **without user interaction**?). Claude Code: the signal is the harness' own context warnings; `/compact` is user-invoked — the agent cannot run it itself, so `auto` **degrades to `confirm`** there (the native auto-compact is already cushioned by the PreCompact/PostCompact hooks: checkpoint-write + resume-summary). Hosts with compaction hooks/events (Codex Pre/PostCompact, OpenCode `session.compacted`) cushion resume the same way; hosts with neither signal nor mechanism run the universal fallback (CHECKPOINT + restart + resume) and `auto` likewise degrades. Mode semantics (`[compaction]` config, default, consent): the chassis' subsection — single source.
|
|
71
|
+
|
|
68
72
|
> **host-memory (tiers & consumers).** Two tiers: *cheap* (structured, bounded — on Claude Code the auto-memory `MEMORY.md` + `CLAUDE.md`) and *deep* (transcript / `--resume` search, expensive). Consumers: **`/status`** reads only the *cheap* tier, **opportunistically and additively** (a `CONTEXTO DEL HOST` section when available; it **never asks** — a read-only dashboard — and silently omits the section on degrade); **`/resume`** **composes `/status`** and escalates a host-only finding **to a proposal only when the workline level does not explain the pending work** (the spec's fixed order governs the proposals, not the summary), optionally using the *deep* tier or asking as fallback. It is *enhancement*, never a `must`.
|
|
69
73
|
|
|
74
|
+
> **web-research (consumer & consent).** Single consumer today: `spec-refine-loop` § *Ideation gate* (the SPEC flow's divergent gate). Consent is **bundled into accepting that gate's offer** — one accepted offer authorizes that round's searches; never free browsing outside a consented round. It is *enhancement*, never a `must`: on degrade the loop ideates **offline and declares it** (unlike host-memory's silent omit — the user consented expecting the web, so silence would mislead).
|
|
75
|
+
|
|
70
76
|
## Leverage installed skills
|
|
71
77
|
|
|
72
78
|
"Leverage whatever skills the harness has installed" resolves through the **same** `.workflow/skills.toml` binding: a role can point at a skill **installed on the host** (third-party, via skills.sh) instead of the built-in. Rule:
|
|
@@ -151,6 +151,7 @@ A **probe** (PoC / spike) is the resolver for **executable doubt**: research *re
|
|
|
151
151
|
|
|
152
152
|
- Since the `flow` control is **always** present → **≤3 content questions + 1 `flow` control**.
|
|
153
153
|
- **`flow` control** (lifecycle, always present): `Compactar` | `Cerrar`. Answering only the content questions (not touching `flow`) = keep iterating.
|
|
154
|
+
- **Proactive raise**: under context pressure the loop does not wait for the next content batch — it raises the structured-choice itself, with `Compactar` as the recommended action (see *Compact / resume* → *Self-regulation (proactive compaction)*).
|
|
154
155
|
- **Content questions** can be:
|
|
155
156
|
- human doubts (non-factual gaps);
|
|
156
157
|
- MCP choice (DB rule) — before running queries;
|
|
@@ -172,6 +173,16 @@ Resume **keys off the `CHECKPOINT`** of the run's session, not the existence of
|
|
|
172
173
|
|
|
173
174
|
> **`Compactar`** (the `flow` control, across all 3 cases) → write `CHECKPOINT.md` in the session (in-flight progress, remaining gaps, Q&A, `attempts`) → trigger the harness **compaction** (Claude Code: `/compact`; see [`../harness/HARNESS.md`](../harness/HARNESS.md)) → resume by reading the checkpoint.
|
|
174
175
|
|
|
176
|
+
### Self-regulation (proactive compaction)
|
|
177
|
+
|
|
178
|
+
`Compactar` is not only reactive: the loop **watches its own context pressure** and raises compaction itself.
|
|
179
|
+
|
|
180
|
+
- **Signal**: the host's context-pressure signal when it exists (see the *compaction* capability in [`../harness/HARNESS.md`](../harness/HARNESS.md)); with no signal the fallback is **qualitative** — at batch/phase boundaries of an already-long run, ask *"would a fresh reader need the CHECKPOINT to continue?"*. Doctrine fixes **no numeric thresholds** (harness-agnostic).
|
|
181
|
+
- **Modes** — config `[compaction]` table in `.workflow/skills.toml`, key `mode` (values `confirm` | `auto`):
|
|
182
|
+
- **`confirm`** (default, also with no config): raise a **proactive structured-choice** whose `flow` control carries `Compactar` as the recommended action — the human ratifies; consent is never skipped.
|
|
183
|
+
- **`auto`** (opt-in): write `CHECKPOINT.md`, then trigger the host's compaction binding **without asking**. Viable only where the host has a **non-interactive** mechanism (see the *Harness binding matrix*); otherwise it **degrades to `confirm`**.
|
|
184
|
+
- **Invariant — CHECKPOINT before compacting**: in every mode, `CHECKPOINT.md` is written (or verified fresh) **before** any compaction fires; resume keys off it (the 3 cases above).
|
|
185
|
+
|
|
175
186
|
## Convergence / exit
|
|
176
187
|
|
|
177
188
|
- **No material gaps** → **convergence gate** (read-only) = **`Success criteria` green** (*verification-first*). Whatever fails **comes back as a gap**; if it passes → the loop **flips the green criteria** in `SESSION.md` (`- [ ]` → `- [x]`) and offers its closing action. The checklist must reflect the real final state: a criterion left unchecked at `finalize` needs an explicit reason (`Open questions`/`BACKLOG`). The heirs are **instances** of the same gate: `spec-refine` = analyze gate, `plan-new` and `plan-refine` = plan coherence, `plan-exec` = final validation, `quick` = proportional spot validation.
|
|
@@ -3,7 +3,8 @@ name: spec-refine-loop
|
|
|
3
3
|
description: >-
|
|
4
4
|
Refines a draft spec (docs/specs/NNN-spec-<slug>.md) by editing it IN PLACE
|
|
5
5
|
until it is unambiguous. Heir of the chassis (loops/CHASSIS.md). Deltas:
|
|
6
|
-
spec gap taxonomy, analyze gate,
|
|
6
|
+
spec gap taxonomy, analyze gate, ideation gate (consented brainstorming,
|
|
7
|
+
optional web-research), ## UI spec section via the ui-design
|
|
7
8
|
capability, and adds Refinement decisions + Q&A traceability — the refined
|
|
8
9
|
mark plan-new detects. Started by /w:spec-refine (or the live escalation
|
|
9
10
|
from quick-loop); resumable via CHECKPOINT and re-runnable on demand.
|
|
@@ -81,7 +82,7 @@ Structured Markdown description (screens → regions/components). See [`ui-spec`
|
|
|
81
82
|
|
|
82
83
|
## Refinement decisions ← NEW (ADDED)
|
|
83
84
|
What was defined while refining and why. Includes what inline research
|
|
84
|
-
resolved (
|
|
85
|
+
resolved (ref. the session's CONCLUSIONS) and the ideation verdicts (§ Ideation gate).
|
|
85
86
|
|
|
86
87
|
## Q&A traceability ← NEW (ADDED)
|
|
87
88
|
Every doubt asked to the human + the chosen answer.
|
|
@@ -108,8 +109,18 @@ Every doubt asked to the human + the chosen answer.
|
|
|
108
109
|
| Hidden assumptions | the spec assumes unstated things | **research** validates / **human** confirms |
|
|
109
110
|
| Internal contradiction | sections contradict each other | **human** |
|
|
110
111
|
| Over-specified requirement | scope/criteria gold-plated — beyond the actual need (chassis § *Minimality*) | **human** (AI proposes the cut, human ratifies) |
|
|
112
|
+
| Unexplored solution space | the spec settles on the first conceivable approach — no alternatives weighed nor adopted from the conversation | **human consents** → **ideation** (see *Ideation gate*) |
|
|
111
113
|
| UI unspecified *(if it applies)* | the requirement involves UI but `## UI spec` is missing | **`ui-design` capability** |
|
|
112
114
|
|
|
115
|
+
## Ideation gate (creativity)
|
|
116
|
+
|
|
117
|
+
The loop's one **divergent** gate: every other resolver closes a gap; this one widens the option space before the spec hardens around its first idea. It resolves **Unexplored solution space** in two consented steps:
|
|
118
|
+
|
|
119
|
+
1. **Offer & consent.** The gap enters the batch as a content question — `Explorar ideas` vs `Seguir sin ideación` — carrying the AI's recommendation like any other. Declining marks the gap **exhausted** (never re-offered this run); an explicit user request for ideas at any point counts as an accepted offer (on-demand entry). Alternatives already weighed in the conversation are *adopted context* — the gap does not fire.
|
|
120
|
+
2. **Ideation round** (one per consent). Propose fresh ideas and **combinations** (the user's + found ones). If the host exposes **web-research** ([`../../harness/HARNESS.md`](../../harness/HARNESS.md)), the accepted offer also authorizes that round's web searches — no per-search consent; findings + sources land in the session's `CONCLUSIONS`, like inline research. Without the capability, ideate offline (own knowledge + workspace + repos) and **declare it** — never silently.
|
|
121
|
+
|
|
122
|
+
**Verdicts (back to convergence).** Present the top ≤3 ideas via the same structured-choice, each with a recommended verdict: `Adoptar` → integrate into `Requirement`/`Scope`/criteria + trace in `## Refinement decisions` (idea, rationale, source/URL when web-found) · `Descartar` → one line + reason there · `Aparcar` → `## Open questions`. Ideas beyond the top 3 stay summarized in `CONCLUSIONS`. Divergence is bounded by *Minimality* (chassis): nothing enters the spec without an explicit `Adoptar`; the analyze gate keeps pruning gold-plating. This gate exists **only** in this loop — `spec-new` stays single-pass (no research, no web) and the plan/quick loops inherit none of it.
|
|
123
|
+
|
|
113
124
|
## Sequence
|
|
114
125
|
|
|
115
126
|
```
|
|
@@ -128,6 +139,8 @@ spec-refine-loop(spec):
|
|
|
128
139
|
if gap = UI (requirement involves UI, ## UI spec missing):
|
|
129
140
|
compose ui-design → author ## UI spec # design-system/theme via structured-choice (counts in the batch)
|
|
130
141
|
work = integrate(work, ui) # → ## UI spec
|
|
142
|
+
else if gap = Unexplored solution space (creativity):
|
|
143
|
+
pending_human.push("ideation offer") # offer with AI recommendation: `Explorar ideas` | `Seguir sin ideación`
|
|
131
144
|
else if factual(gap) and attempts[gap] < MAX:
|
|
132
145
|
if it needs DB and >1 MCP without default → queue "MCP choice" in pending_human
|
|
133
146
|
res = research_inline(gap) # in the current session: ANALYSIS-FILE → CONCLUSIONS (+read-only SCRIPTS.sql)
|
|
@@ -142,6 +155,8 @@ spec-refine-loop(spec):
|
|
|
142
155
|
Compactar → write CHECKPOINT (refine_session) ; compact(harness) ; continue
|
|
143
156
|
Cerrar → goto finalize
|
|
144
157
|
work = integrate(work, ans) # → Q&A traceability / Open questions
|
|
158
|
+
ideation offer accepted → run the round NOW, then its verdicts as a NEW ≤3+flow batch (§ Ideation gate) → integrate
|
|
159
|
+
ideation offer declined → mark that gap exhausted # anti re-fire; on-demand entry stays open
|
|
145
160
|
# no material gaps → analyze gate = Success criteria green (read-only) before offering Guardar:
|
|
146
161
|
issues = analyze(work) # criteria trace to the Requirement · no contradictions · coherent Scope · Open questions closed/deferred · scenarios↔criteria · no gold-plating (minimality)
|
|
147
162
|
if issues: gaps += issues ; continue # findings come back into the loop as gaps
|
|
@@ -172,6 +187,7 @@ Full mechanism (3 cases, `Compactar`, re-run on demand with `--reopen`) in the c
|
|
|
172
187
|
## Integration (where each resolution lands)
|
|
173
188
|
|
|
174
189
|
- Resolved via **inline research** → the spec's `## Refinement decisions` (+ ref to the session's `CONCLUSIONS`).
|
|
190
|
+
- Resolved via **ideation** → per verdict (§ *Ideation gate*): `Adoptar` → the spec's sections + `## Refinement decisions` · `Descartar` → there · `Aparcar` → `## Open questions`.
|
|
175
191
|
- Resolved via **human** → the spec's `## Q&A traceability`.
|
|
176
192
|
- Resolved via the **`ui-design` capability** (UI gap) → the spec's `## UI spec` section.
|
|
177
193
|
- **Inconclusive or unresolved research** → the spec's `## Open questions` (deferred) + the refine session's `BACKLOG.md` (only if something is deferred).
|