@sabaiway/agent-workflow-engine 1.3.0 → 1.5.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/CHANGELOG.md +37 -0
- package/SKILL.md +1 -1
- package/capability.json +1 -1
- package/package.json +1 -1
- package/references/methodology-slot.md +1 -1
- package/references/orchestration-slot.md +1 -1
- package/references/planning.md +11 -0
- package/references/procedures.md +22 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,43 @@ All notable changes to the methodology engine. Versions are this **package's** n
|
|
|
4
4
|
they are distinct from the **deployment-lineage** stamp written into a project's `docs/ai/`
|
|
5
5
|
(which tracks the shared `agent-workflow` lineage, head `1.3.0`).
|
|
6
6
|
|
|
7
|
+
## 1.5.0 — Right-altitude & code-grounded folds in the canon
|
|
8
|
+
|
|
9
|
+
A **feature** release. The planning canon (`references/planning.md`, read **live** by the composition
|
|
10
|
+
root) gains a `## 9. Right-altitude & code-grounded folds` section + a §8 self-review bullet; the
|
|
11
|
+
activity-procedures canon (`references/procedures.md`) weaves a terse §9 review-lens pointer into the
|
|
12
|
+
rendered Self-review steps of **both** activities (binding to §9, not restating it). Two guards pin the
|
|
13
|
+
disciplines: a new `test/planning-canon.test.mjs` and an extended `test/procedures-canon.test.mjs`. The
|
|
14
|
+
deployment-lineage head stays **`1.3.0`** (no `docs/ai` structural change); the npm package version is a
|
|
15
|
+
separate axis.
|
|
16
|
+
|
|
17
|
+
- **Right altitude.** A plan pins intent + architecture + invariants + acceptance criteria; fine
|
|
18
|
+
code-mechanics are resolved at Execute, not spelled out in prose.
|
|
19
|
+
- **Fold by code, not prose.** Before folding a code-touching finding, read the cited `file:line` and cite it.
|
|
20
|
+
- **Convergence heuristic.** A stable architecture + recurring code-mechanism findings ⇒ raise the
|
|
21
|
+
altitude or hand the mechanics to Execute.
|
|
22
|
+
- The procedures lens stays a terse pointer (the terseness invariant holds: `procedures.md` < `planning.md`).
|
|
23
|
+
|
|
24
|
+
## 1.4.0 — Durable session contracts in the canon: read-at-start, Definition of Done, communication
|
|
25
|
+
|
|
26
|
+
A **feature** release. The activity-procedures canon (`references/procedures.md`, read **live** by the
|
|
27
|
+
composition root) gains three durable-session contracts, and the two bounded slot fragments gain the
|
|
28
|
+
matching clauses so the composition root's canonical-refresh can push them to existing deployments:
|
|
29
|
+
|
|
30
|
+
- **Read-at-start.** The canon tells the agent to read the project's standing recipe preference in
|
|
31
|
+
`docs/ai/orchestration.json` at the start of a planning/execution session (set it with the `set-recipe`
|
|
32
|
+
writer) — no re-asking what is already configured.
|
|
33
|
+
- **plan-authoring Definition of Done.** A planning session must produce a self-contained plan **and** a
|
|
34
|
+
cold-start execution prompt for the next session — both **without the user asking**.
|
|
35
|
+
- **Communication contract.** User-facing messages deliver the artifact **inline** (never a bare "see
|
|
36
|
+
§X" as a substitute), lead with the result, with a large-artifact carve-out.
|
|
37
|
+
- **Slot fragments.** `orchestration-slot.md` gains the read-at-start clause (points at `set-recipe`);
|
|
38
|
+
`methodology-slot.md` gains the communication clause. Both stay one bounded content line, under the
|
|
39
|
+
deployed-`AGENTS.md` cap.
|
|
40
|
+
|
|
41
|
+
Generic as ever — no project release-publishing bake-in. The deployment-lineage head stays **`1.3.0`**
|
|
42
|
+
(stamp-independent reconciles reach the base; the engine **package** version is a separate axis).
|
|
43
|
+
|
|
7
44
|
## 1.3.0 — Activity procedures: named, recipe-aware playbooks
|
|
8
45
|
|
|
9
46
|
The engine now also owns the **activity-procedures** canon — *how to perform* a named workflow
|
package/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: agent-workflow-engine
|
|
|
3
3
|
description: Canonical home of the agent-workflow planning methodology — the Plan→Phase→Step→Substep vocabulary, plan lifecycle, queue.md series index, mandatory Cleanup phase, the bounded methodology slot fragment, the orchestration-recipe vocabulary (Solo / Reviewed / Council / Delegated), and the activity-procedures canon (plan-authoring / plan-execution, with typed recipe slots). A published, installable npm package (available:true) that *provides* the methodology text; it mutates nothing. The composition root (agent-workflow-kit) reads this canon LIVE from the installed engine and injects the bounded slots from it — one source of truth, no bundled mirror; `npx @sabaiway/agent-workflow-kit@latest init` installs the engine.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
metadata:
|
|
6
|
-
version: '1.
|
|
6
|
+
version: '1.5.0'
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# agent-workflow-engine
|
package/capability.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sabaiway/agent-workflow-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Canonical home of the agent-workflow planning methodology — the Plan→Phase→Step vocabulary, plan lifecycle, queue.md series index, and mandatory Cleanup phase, consumed by the kit (composition root). The methodology engine of the agent-workflow family.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
> **Workflow methodology** — plan → execute → review. Plans are ephemeral `docs/plans/*.md` (gitignored, **never committed**); every Plan ends with a mandatory **Phase: Cleanup**; series order lives in `docs/plans/queue.md`. Full vocabulary, lifecycle, and the plan-then-execute split live in the project's **planning skill** (it overrides the generic `writing-plans`); summary in `docs/ai/agent_rules.md` §5. Named activities (plan-authoring, plan-execution) have procedures — see `/agent-workflow-kit procedures <activity>` for the steps + resolved recipe.
|
|
1
|
+
> **Workflow methodology** — plan → execute → review. Plans are ephemeral `docs/plans/*.md` (gitignored, **never committed**); every Plan ends with a mandatory **Phase: Cleanup**; series order lives in `docs/plans/queue.md`. Full vocabulary, lifecycle, and the plan-then-execute split live in the project's **planning skill** (it overrides the generic `writing-plans`); summary in `docs/ai/agent_rules.md` §5. Named activities (plan-authoring, plan-execution) have procedures — see `/agent-workflow-kit procedures <activity>` for the steps + resolved recipe. **Communication:** user-facing messages deliver the artifact inline (paste the prompt / diff / command — never "see §X" as a substitute), lead with the result, show exactly what was asked, and never read as mockery (a large artifact: a real summary inline + a link).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
> **Orchestration recipes** — compose plan → execute → review with a named recipe: **Solo** (no backend), **Reviewed** (one backend reviews), **Council** (both review, you synthesize), **Delegated** (a backend executes a bounded sub-task); the orchestrator always commits, a backend is never autonomous. Pick + plan one for this environment with `/agent-workflow-kit recipes` (read-only); the deployed how/why lives in your `docs/ai/` workflow docs.
|
|
1
|
+
> **Orchestration recipes** — compose plan → execute → review with a named recipe: **Solo** (no backend), **Reviewed** (one backend reviews), **Council** (both review, you synthesize), **Delegated** (a backend executes a bounded sub-task); the orchestrator always commits, a backend is never autonomous. Pick + plan one for this environment with `/agent-workflow-kit recipes` (read-only); the deployed how/why lives in your `docs/ai/` workflow docs. At the start of a planning/execution session, read your standing recipe preference in `docs/ai/orchestration.json` — set it in plain language with `/agent-workflow-kit set-recipe` (previews first; hand-edit stays supported).
|
package/references/planning.md
CHANGED
|
@@ -103,3 +103,14 @@ The volume trigger above (files / LoC / tokens) is necessary but not sufficient.
|
|
|
103
103
|
- Vocabulary is strict (§1); the Plan ends with **Phase N: Cleanup** (§4).
|
|
104
104
|
- If part of a series: `queue.md` is initialised / updated (§3).
|
|
105
105
|
- No `git add <plan>` and no "commit the plan" wording in the final report.
|
|
106
|
+
- Every code-touching decision cites the `file:line` it is grounded in; the plan stays at intent / invariant / acceptance altitude, leaving fine code-mechanics to Execute (§9).
|
|
107
|
+
|
|
108
|
+
## 9. Right-altitude & code-grounded folds
|
|
109
|
+
|
|
110
|
+
Two disciplines keep a plan converging instead of churning. They govern authoring, every review round, and execution.
|
|
111
|
+
|
|
112
|
+
**Right altitude.** A plan pins *intent + architecture + invariants + acceptance criteria* — the named tests that must stay green and the new tests that must pass. It does NOT spell out fine code-mechanics in prose: those are resolved in code at Execute (against the real files + the per-Step review + the gates), where prose cannot diverge from reality. Most "blockers" that resurface across review rounds are code-level details that never belonged in a prose plan.
|
|
113
|
+
|
|
114
|
+
**Fold by code, not prose.** Before folding any code-touching finding into the plan, READ the cited `file:line`; the fold cites it. A fold grounded in prose alone drifts from the code and seeds the next bug.
|
|
115
|
+
|
|
116
|
+
**Convergence heuristic.** When a review round keeps finding code-mechanism issues on a stable architecture, STOP refining prose — either raise the spec to invariant + acceptance altitude, or hand the mechanics to Execute. Do not re-litigate code mechanics in the plan.
|
package/references/procedures.md
CHANGED
|
@@ -24,6 +24,17 @@ committed); `plan-execution` commits **per Step**. Any project-declared release/
|
|
|
24
24
|
stages are honored per the project's `workflow:methodology` slot — this generic canon bakes in no
|
|
25
25
|
single project's stages.
|
|
26
26
|
|
|
27
|
+
**Read your preference at session start.** At the start of a planning or execution session, read the
|
|
28
|
+
project's standing recipe preference in `docs/ai/orchestration.json` (set it in plain language with
|
|
29
|
+
`/agent-workflow-kit set-recipe` — it previews then writes; hand-editing the file stays supported); the
|
|
30
|
+
kit resolves it against backend readiness. Do not re-ask each session what is already configured there.
|
|
31
|
+
|
|
32
|
+
**Communication contract.** Every user-facing message delivers the artifact **inline** — the plan, the
|
|
33
|
+
next-session prompt, the diff, the value asked for — never a bare pointer ("see §X / open the file") as a
|
|
34
|
+
*substitute* for showing it; lead with the result, show exactly what was asked, and never read as
|
|
35
|
+
mockery. For a genuinely large artifact, deliver a real summary or the key excerpt inline **and** link
|
|
36
|
+
the file — never flood, never hide.
|
|
37
|
+
|
|
27
38
|
---
|
|
28
39
|
|
|
29
40
|
## plan-authoring
|
|
@@ -37,12 +48,18 @@ Produce a self-contained, cold-readable plan, reviewed to the configured depth b
|
|
|
37
48
|
with exact paths and commands per Step. Bind to that structure; do not restate it here.
|
|
38
49
|
3. **Self-review** — run the [`planning.md`](planning.md) §8 checklist (exact paths/commands, strict
|
|
39
50
|
vocabulary, every out-of-plan recommendation folded into a Step, `queue.md` updated for a series).
|
|
51
|
+
Apply the [`planning.md`](planning.md) §9 lens — fold by code (read and cite the `file:line`), and
|
|
52
|
+
hold the right altitude.
|
|
40
53
|
4. **review {recipe}** — review the draft at the depth the resolved `review` recipe selects: Solo
|
|
41
54
|
(self-review only), Reviewed (one backend reviews), or Council (both backends review, you
|
|
42
55
|
synthesize). The kit resolves the effective recipe from `docs/ai/orchestration.json` + readiness.
|
|
43
56
|
5. **Fold + loop** — fold every finding back into the draft and re-review until the review is clean.
|
|
44
57
|
6. **Present for approval** — surface the finished plan to the user; do not begin execution here.
|
|
45
58
|
|
|
59
|
+
**Required output (Definition of Done):** a planning session produces a self-contained plan in
|
|
60
|
+
`docs/plans/` **and** a cold-start execution prompt to begin the next session — **both produced without
|
|
61
|
+
the user asking**. A planning session that ends without both is not done.
|
|
62
|
+
|
|
46
63
|
The plan MUST end with the mandatory **Phase: Cleanup** ([`planning.md`](planning.md) §4) — a plan
|
|
47
64
|
without it is not done.
|
|
48
65
|
|
|
@@ -59,12 +76,16 @@ Execute an approved plan Step by Step; each Step is one logical commit.
|
|
|
59
76
|
directly.
|
|
60
77
|
3. **Implement / integrate** — apply the change (your own edits, or the reviewed delegated diff),
|
|
61
78
|
following the project's reuse + clean-code rules.
|
|
62
|
-
4. **Self-review** — run the [`planning.md`](planning.md) §8 self-review on the change
|
|
79
|
+
4. **Self-review** — run the [`planning.md`](planning.md) §8 self-review on the change, applying the
|
|
80
|
+
[`planning.md`](planning.md) §9 lens — fold by code (read and cite the `file:line`), and hold the
|
|
81
|
+
right altitude.
|
|
63
82
|
5. **review {recipe}** — review the result at the resolved `review` depth (Solo / Reviewed / Council),
|
|
64
83
|
exactly as in plan-authoring.
|
|
65
84
|
6. **Gates** — run the project's verification gate (tests + checks) to green before committing.
|
|
66
85
|
7. **Commit boundary** — the orchestrator makes the single commit for the Step; a backend never
|
|
67
86
|
commits. The project's commit-approval policy (e.g. ask first) lives in the project's own rules.
|
|
68
87
|
|
|
88
|
+
**Output:** each Step lands as one logical commit with its gates green; the orchestrator owns the commit.
|
|
89
|
+
|
|
69
90
|
Honor any project-declared release/publishing or extra stages (per the `workflow:methodology` slot)
|
|
70
91
|
before the plan's Cleanup — this generic canon does not enumerate them.
|