@sabaiway/agent-workflow-kit 1.30.0 → 1.31.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,35 @@ Semantically versioned ([semver](https://semver.org)), newest first. The `versio
4
4
  is the current release. `upgrade` mode reads a project's `docs/ai/.workflow-version` and applies
5
5
  every `migrations/<version>-<slug>.md` newer than it, in semver order.
6
6
 
7
+ ## 1.31.0 — Progressive disclosure: SKILL.md becomes a thin router over references/modes + references/shared (AD-039)
8
+
9
+ A **feature** release; packaging-only for deployments (the deployment lineage stays `1.3.0` — no
10
+ `docs/ai` structure change, no migration). The 112,106 B / 680-line SKILL.md monolith — loaded
11
+ whole on EVERY invocation — becomes a **10,139 B router** plus per-mode files, so an invocation
12
+ reads only what it needs:
13
+
14
+ - **The router** keeps the always-needed core: the composition-root decision (detect → delegate /
15
+ fallback + the init refresh-cascade), the safe-routing rule + version-status routing note, and
16
+ 16 bare `### Mode:` headers each carrying ONE line — the catalog `kind` EXACTLY + ``read
17
+ `${CLAUDE_SKILL_DIR}/references/modes/<mode>.md` before acting.``
18
+ - **`references/modes/<key>.md` ×16** — the mode bodies, moved verbatim (set-equality-guarded
19
+ against the `tools/commands.mjs` catalog). **`references/shared/`** — the point-of-use
20
+ contracts: `report-footer.md` (backend-status line · version block + welcome mat · version
21
+ disclosure), `composition-handoff.md` (hand-off + bounded pointer reconciliation),
22
+ `deploy-tail.md` (Gotchas · Setup contracts · System principles · Hard-Constraints template).
23
+ Each mode file opens with one `Requires:` line naming its shared reads (bootstrap/upgrade → all
24
+ three; status → the report footer; the daily modes none).
25
+ - **Byte budgets are acceptance, not vibes** — the new `test/router-contract.test.mjs` asserts,
26
+ over the real files: router ≤ 10,240 B · router + any mode ≤ 28,672 · every full read set
27
+ ≤ 53,248 · the daily no-shared modes ≤ 16,384 (realized: 10,139 · 27,392 · 48,419 · 14,121 —
28
+ a daily `help` run is ~10× lighter, the worst path (`upgrade`) ~2.3×). It also pins the D4
29
+ pointer audits permanently: every `Requires:` resolves, zero italic/plain cross-mode refs, zero
30
+ bare kit-relative links, moved shared-section references carry their pointer.
31
+ - **Nothing else moved:** runtime routing untouched (`routeInvocation` never reads SKILL.md);
32
+ packaging additive (`references/` already rides `files[]`; the npx installer copies it
33
+ recursively; tarball 96 → 115 files, exact-count-pinned); frontmatter byte-compatible with the
34
+ twin version readers; 7 content-coupled guards re-anchored to the new files.
35
+
7
36
  ## 1.30.0 — Review-recipe enforcement: the configured recipe is impossible to miss, "reviewed ≠ shipped" is detectable, grounding is a command (AD-038)
8
37
 
9
38
  A **feature** release (ships the bundled bridges refreshed to **2.2.0**). Origin: a real
package/README.md CHANGED
@@ -306,7 +306,8 @@ One kit, two tiers — **no logic is duplicated per tool:**
306
306
  - The **output** (`AGENTS.md` + `docs/ai/`) is read natively by Claude Code (via the `CLAUDE.md`
307
307
  alias) · Codex · Cursor · Devin Desktop · Copilot · Gemini CLI & 20+ tools.
308
308
  - The **bootstrapper** runs from Claude Code · Codex · Devin Desktop — their launchers point at the
309
- same `SKILL.md`, so deployment logic lives in one place.
309
+ same `SKILL.md` router (which loads its `references/modes/` + `references/shared/` files per
310
+ invocation), so deployment logic lives in one place.
310
311
 
311
312
  ---
312
313
 
@@ -315,10 +316,12 @@ One kit, two tiers — **no logic is duplicated per tool:**
315
316
  ```
316
317
  agent-workflow-kit/
317
318
  ├── README.md ← you are here (the kit's manual)
318
- ├── SKILL.md ← agent-facing deploy / upgrade algorithm
319
+ ├── SKILL.md ← thin agent-facing router: mode index + safe routing
319
320
  ├── CHANGELOG.md ← version history
320
321
  ├── capability.json ← agent-workflow family manifest (composition-root)
321
322
  ├── references/
323
+ │ ├── modes/ ← one file per mode (deploy/upgrade/… procedures)
324
+ │ ├── shared/ ← shared contracts (footer · hand-off · tail)
322
325
  │ ├── templates/ ← AGENTS.md + every docs/ai file
323
326
  │ ├── scripts/ ← caps / archive / index + tests
324
327
  │ └── contracts.md ← visibility / language / attribution rules