@sabaiway/agent-workflow-engine 1.8.0 → 1.9.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 CHANGED
@@ -4,6 +4,22 @@ 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.9.0 — Honest installer messaging: the verb states what was observed, the note states facts
8
+
9
+ A **feature** release (installer output contract only; the canon text is unchanged). `bin/install.mjs`
10
+ no longer claims "updated the canon to vX" on every run and no longer accuses the npx cache on a
11
+ same-version re-run:
12
+
13
+ - **The final verb is keyed on the OBSERVED version comparison**, never on mere presence: fresh or
14
+ legacy/unstamped → `installed` (no transition claim when the prior version is unknowable); older →
15
+ `updated the canon to vX`; same → `refreshed the already-current canon`; newer → `downgraded the
16
+ canon to vX` (reachable only under the explicit `--allow-downgrade`).
17
+ - **The same-version note states observable facts only** — the copy still ran (a re-run repairs
18
+ locally modified or deleted files) — plus a CONDITIONAL hint: *if you expected a newer version*,
19
+ invoke the `@latest` tag explicitly. The "npx likely served a cached build" accusation is gone
20
+ (not observable without a network check).
21
+ - The never-downgrade gate, its refusal wording, and the read-before-write ordering are untouched.
22
+
7
23
  ## 1.8.0 — Mechanize the §9 review-loop discipline (round cap · crossover · finding-origin)
8
24
 
9
25
  A **feature** release. The methodology canon institutionalizes the review-loop economics so the round
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.8.0'
6
+ version: '1.9.0'
7
7
  ---
8
8
 
9
9
  # agent-workflow-engine
package/bin/install.mjs CHANGED
@@ -241,15 +241,25 @@ const main = async () => {
241
241
  await Promise.all(
242
242
  PAYLOAD.map((entry) => copyRecursive(resolve(PKG_ROOT, entry), resolve(target, entry), target)),
243
243
  );
244
- console.log(
245
- `[agent-workflow-engine] ${wasPresent ? 'updated the canon to' : 'installed'} v${version} -> ${tildify(target)}`,
246
- );
244
+ // Verb keyed on the OBSERVED version relation (cmp), never on mere presence: null (fresh install,
245
+ // or a legacy/unstamped one whose prior version is unknowable) → "installed"; -1 a real update;
246
+ // 0 → already current (the copy still ran — see the note below); 1 is reachable only under
247
+ // --allow-downgrade (the gate above refused otherwise) and says so plainly.
248
+ const verb =
249
+ cmp === 0 ? 'refreshed the already-current canon'
250
+ : cmp === 1 ? 'downgraded the canon to'
251
+ : cmp === -1 ? 'updated the canon to'
252
+ : 'installed';
253
+ console.log(`[agent-workflow-engine] ${verb} v${version} -> ${tildify(target)}`);
247
254
 
248
- // No-op re-run (same version) almost always npx served a cached build; say so + point at @latest.
255
+ // Same-version re-run: state observable facts only. The copy DID run (repair-on-rerun is a feature
256
+ // it restores locally modified/deleted files), and whether npx served a cached build is NOT
257
+ // observable here (no network), so the note never claims it; the @latest hint is conditional.
249
258
  if (cmp === 0) {
250
259
  console.log(
251
- `[agent-workflow-engine] note: no version change — the canon was already v${version}. If you ` +
252
- `expected an update, npx likely served a cached build; re-run bypassing the cache:\n` +
260
+ `[agent-workflow-engine] note: the canon was already v${version} the copy still ran, restoring ` +
261
+ `any locally modified or deleted canon file to this version's packaged contents. If you ` +
262
+ `expected a NEWER version, invoke the @latest tag explicitly:\n` +
253
263
  ` npx @sabaiway/agent-workflow-engine@latest init`,
254
264
  );
255
265
  }
package/capability.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "schema": 1,
4
4
  "name": "agent-workflow-engine",
5
5
  "kind": "methodology-engine",
6
- "version": "1.8.0",
6
+ "version": "1.9.0",
7
7
  "available": true,
8
8
  "provides": ["plan"],
9
9
  "roles": {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sabaiway/agent-workflow-engine",
3
- "version": "1.8.0",
3
+ "version": "1.9.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",