@sabaiway/agent-workflow-engine 1.4.0 → 1.6.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 +26 -0
- package/SKILL.md +1 -1
- package/capability.json +1 -1
- package/package.json +1 -1
- package/references/orchestration.md +10 -5
- package/references/planning.md +11 -0
- package/references/procedures.md +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,32 @@ 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.6.0 — Loosen the agy Issue-001 caveat (grounded review is sound)
|
|
8
|
+
|
|
9
|
+
A **feature** release. `references/orchestration.md` §5 reframes the `agy` health advisory: the grounded
|
|
10
|
+
`agy-review` contract removes agy's stale-model / partial-diff **false positives**, so `agy` is a **sound**
|
|
11
|
+
second opinion now — no longer something to merely avoid. The real **service-stall** caveat (Issue-001) is
|
|
12
|
+
kept — it is a separate risk that grounding does not remove — as is the codex-before-agy tie-break for
|
|
13
|
+
large / latency-sensitive substantive reviews and the `--add-dir` escalation path. The deployment-lineage
|
|
14
|
+
head stays **`1.3.0`** (no `docs/ai` structural change).
|
|
15
|
+
|
|
16
|
+
## 1.5.0 — Right-altitude & code-grounded folds in the canon
|
|
17
|
+
|
|
18
|
+
A **feature** release. The planning canon (`references/planning.md`, read **live** by the composition
|
|
19
|
+
root) gains a `## 9. Right-altitude & code-grounded folds` section + a §8 self-review bullet; the
|
|
20
|
+
activity-procedures canon (`references/procedures.md`) weaves a terse §9 review-lens pointer into the
|
|
21
|
+
rendered Self-review steps of **both** activities (binding to §9, not restating it). Two guards pin the
|
|
22
|
+
disciplines: a new `test/planning-canon.test.mjs` and an extended `test/procedures-canon.test.mjs`. The
|
|
23
|
+
deployment-lineage head stays **`1.3.0`** (no `docs/ai` structural change); the npm package version is a
|
|
24
|
+
separate axis.
|
|
25
|
+
|
|
26
|
+
- **Right altitude.** A plan pins intent + architecture + invariants + acceptance criteria; fine
|
|
27
|
+
code-mechanics are resolved at Execute, not spelled out in prose.
|
|
28
|
+
- **Fold by code, not prose.** Before folding a code-touching finding, read the cited `file:line` and cite it.
|
|
29
|
+
- **Convergence heuristic.** A stable architecture + recurring code-mechanism findings ⇒ raise the
|
|
30
|
+
altitude or hand the mechanics to Execute.
|
|
31
|
+
- The procedures lens stays a terse pointer (the terseness invariant holds: `procedures.md` < `planning.md`).
|
|
32
|
+
|
|
7
33
|
## 1.4.0 — Durable session contracts in the canon: read-at-start, Definition of Done, communication
|
|
8
34
|
|
|
9
35
|
A **feature** release. The activity-procedures canon (`references/procedures.md`, read **live** by the
|
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.6.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.6.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",
|
|
@@ -22,8 +22,8 @@ Each backend declares what it can do in its `capability.json` `provides` / `role
|
|
|
22
22
|
- **`codex-cli-bridge`** (`codex`) — `provides: ["execute", "review"]`. It can run a bounded
|
|
23
23
|
execution sub-task (`codex-exec`, output: a diff) and give an advisory review (`codex-review`,
|
|
24
24
|
modes `plan` / `code`).
|
|
25
|
-
- **`antigravity-cli-bridge`** (`agy`) — `provides: ["review", "probe"]`. It
|
|
26
|
-
review and
|
|
25
|
+
- **`antigravity-cli-bridge`** (`agy`) — `provides: ["review", "probe"]`. It gives an advisory,
|
|
26
|
+
grounded review via `agy-review` (modes `code` / `plan` / `diff`) and answers a bounded probe via `agy-run`.
|
|
27
27
|
|
|
28
28
|
Both are **subscription** backends with a **finite quota** — spend deliberately.
|
|
29
29
|
|
|
@@ -78,9 +78,14 @@ cheapest model that fits the task; not reach for a top-tier model by reflex; and
|
|
|
78
78
|
A **standing health advisory** applies to `agy`: the Antigravity service can **stall on substantive
|
|
79
79
|
prompts** (a long hang that returns nothing — an external service issue, not a setup problem;
|
|
80
80
|
tracked as **Issue-001** in the kit's known issues). It is **invisible to file-presence detection**,
|
|
81
|
-
so it is *not* a readiness signal —
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
so it is *not* a readiness signal — only a standing caveat. The **grounded** `agy-review` contract
|
|
82
|
+
makes `agy` a **sound** second opinion — it removes the stale-model / partial-diff **false positives**
|
|
83
|
+
that the old ungrounded, `--add-dir`-roaming reviews produced — so `agy` is no longer something to
|
|
84
|
+
merely avoid. But the *service* stall is a **separate, real** risk that grounding does **not** remove,
|
|
85
|
+
so keep reviews **focused** (the inherited hard timeout is the guard) and **prefer `codex`** for large
|
|
86
|
+
or latency-sensitive substantive reviews and for the `--add-dir` escalation path (the deterministic
|
|
87
|
+
Reviewed tie-break in §3). The recipe machinery **never runs a subscription CLI** to check — detection
|
|
88
|
+
stays read-only.
|
|
84
89
|
|
|
85
90
|
## 6. The orchestrator always commits
|
|
86
91
|
|
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
|
@@ -48,6 +48,8 @@ Produce a self-contained, cold-readable plan, reviewed to the configured depth b
|
|
|
48
48
|
with exact paths and commands per Step. Bind to that structure; do not restate it here.
|
|
49
49
|
3. **Self-review** — run the [`planning.md`](planning.md) §8 checklist (exact paths/commands, strict
|
|
50
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.
|
|
51
53
|
4. **review {recipe}** — review the draft at the depth the resolved `review` recipe selects: Solo
|
|
52
54
|
(self-review only), Reviewed (one backend reviews), or Council (both backends review, you
|
|
53
55
|
synthesize). The kit resolves the effective recipe from `docs/ai/orchestration.json` + readiness.
|
|
@@ -74,7 +76,9 @@ Execute an approved plan Step by Step; each Step is one logical commit.
|
|
|
74
76
|
directly.
|
|
75
77
|
3. **Implement / integrate** — apply the change (your own edits, or the reviewed delegated diff),
|
|
76
78
|
following the project's reuse + clean-code rules.
|
|
77
|
-
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.
|
|
78
82
|
5. **review {recipe}** — review the result at the resolved `review` depth (Solo / Reviewed / Council),
|
|
79
83
|
exactly as in plan-authoring.
|
|
80
84
|
6. **Gates** — run the project's verification gate (tests + checks) to green before committing.
|