@sabaiway/agent-workflow-kit 19.4.0 → 19.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 CHANGED
@@ -4,6 +4,21 @@ 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
+ ## 19.5.0 — the spec reader counts no children, and one plain upgrade brings it to every deployment (AD-215)
8
+
9
+ **The spec reader your project runs no longer refuses an index of more than 30 children.** The kit carries memory
10
+ 8.7.0's reader pair and store-root template: the `fan-out` refusal is gone, so a folder of the spec store is bounded
11
+ by the layout check's entries per directory where it runs, and every index by its own `maxLines: 80`. A child listed twice and a
12
+ line that is not a child link still refuse.
13
+
14
+ **One plain upgrade writes the new reader.** The reader pair memory 8.0.0 to 8.6.3 shipped, one body throughout, is
15
+ now a known prior, so your upgrade names it and writes the bundled bodies, with no question and no copy kept:
16
+
17
+ `scripts/spec-schema.mjs: matches a body an earlier release shipped — refreshed to the bundled one`
18
+
19
+ and the same line for `scripts/spec-schema.test.mjs`. A store root you already have keeps its `(at most 30)` sentence:
20
+ it is your file, seeded once, and no reader judges that prose. Contracts: source-size revision 7, project-rules revision 9.
21
+
7
22
  ## 19.4.0 — each recorded pile is offered a queue row; the layout rules are read at every session start; the spec store drops files per root (AD-214)
8
23
 
9
24
  **Recommendations now offers a queue row that plans the cleanup of each pile the size check records.** A pile is a
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: agent-workflow-kit
3
3
  description: Deploy or upgrade a portable AI-agent memory-and-workflow system in any project. Use when the user wants to bootstrap `docs/ai/` + an entry-point `AGENTS.md` (+ `CLAUDE.md` alias) + cap/archive/index enforcement in a new or existing repo, set up the Memory Map and session protocols, install the docs-rotation pre-commit hook, or run `/agent-workflow-kit` / `/agent-workflow-kit upgrade`. Triggers on phrases like "set up the memory system", "deploy the AI workflow here", "bootstrap docs/ai", "upgrade the workflow". New to the epic, story and task tier? Run `/agent-workflow-kit tier`. A typed decision with a confidence from Jev? Run `/agent-workflow-kit jev`.
4
4
  disable-model-invocation: true
5
5
  metadata:
6
- version: '19.4.0'
6
+ version: '19.5.0'
7
7
  ---
8
8
 
9
9
  # agent-workflow-kit
package/capability.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "schema": 1,
4
4
  "name": "agent-workflow-kit",
5
5
  "kind": "composition-root",
6
- "version": "19.4.0",
6
+ "version": "19.5.0",
7
7
  "provides": [],
8
8
  "roles": {},
9
9
  "detect": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sabaiway/agent-workflow-kit",
3
- "version": "19.4.0",
3
+ "version": "19.5.0",
4
4
  "description": "Portable, cross-agent memory & workflow for AI coding agents — Claude Code, Codex, Cursor, Devin Desktop. One command deploys an AGENTS.md entry point + docs/ai context with cap/archive/index enforcement into any repo.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -12,7 +12,6 @@ export const SPEC_SCHEMA = Object.freeze({
12
12
  statuses: Object.freeze(['draft', 'live', 'retired']),
13
13
  transitions: Object.freeze([Object.freeze(['draft', 'live']), Object.freeze(['live', 'retired'])]),
14
14
  maxLines: Object.freeze({ index: 80, spec: 150, part: 150 }),
15
- fanOutMax: 30,
16
15
  slugPattern: '^[a-z0-9]+(-[a-z0-9]+)*$',
17
16
  emptyMarker: '*(empty)*',
18
17
  unboundMarker: 'unbound',
@@ -38,7 +37,7 @@ export const SPEC_SCHEMA = Object.freeze({
38
37
  rules: Object.freeze([
39
38
  'frontmatter', 'frontmatter-key', 'substrate-key', 'type', 'kind', 'maxlines', 'status', 'revision',
40
39
  'root-owns', 'slug', 'kind-path', 'root-uplink', 'title', 'section-missing', 'section-order',
41
- 'section-forbidden', 'fence', 'open-list', 'children-link', 'children-duplicate', 'fan-out', 'scenario-line',
40
+ 'section-forbidden', 'fence', 'open-list', 'children-link', 'children-duplicate', 'scenario-line',
42
41
  'scenario-number', 'scenario-marker', 'scenario-path', 'scenarios-empty', 'out-of-scope', 'module-line', 'module-empty',
43
42
  'module-traversal', 'module-absolute', 'module-backslash', 'module-glob', 'module-mix', 'parts',
44
43
  ]),
@@ -243,7 +242,6 @@ const checkChildren = (parsed, errors) => {
243
242
  }
244
243
  const duplicate = targets.find((target, i) => targets.indexOf(target) !== i);
245
244
  if (duplicate !== undefined) errors.push({ rule: 'children-duplicate', message: `child "${duplicate}" is listed twice` });
246
- if (targets.length > SPEC_SCHEMA.fanOutMax) errors.push({ rule: 'fan-out', message: `${targets.length} children > ${SPEC_SCHEMA.fanOutMax} — subdivide along slice boundaries` });
247
245
  };
248
246
 
249
247
  const parseScenario = (line) => {
@@ -113,13 +113,13 @@ describe('readSpecDocument — refuse, exactly one rule per defect', () => {
113
113
  refuses(partDoc({ extra: '\n## Scenarios\n\n- S1 x :: unbound\n' }), 'auth/login/sessions.md', 'section-forbidden');
114
114
  });
115
115
 
116
- it('children-link / children-duplicate / fan-out', () => {
116
+ it('children-link / children-duplicate; the reader counts no children, so an index of 31 reads clean', () => {
117
117
  refuses(indexDoc({ children: ['- login'] }), 'auth/index.md', 'children-link');
118
118
  refuses(indexDoc({ children: ['- [login](../login.md)'] }), 'auth/index.md', 'children-link');
119
119
  refuses(indexDoc({ children: ['- [login](./login.md)', '- [login again](./login.md)'] }), 'auth/index.md', 'children-duplicate');
120
- const many = Array.from({ length: SPEC_SCHEMA.fanOutMax + 1 }, (_, i) => `- [c${i}](./c${i}.md)`);
121
- refuses(indexDoc({ children: many }), 'auth/index.md', 'fan-out');
122
- expect(readSpecDocument(indexDoc({ children: many.slice(0, SPEC_SCHEMA.fanOutMax) }), 'auth/index.md').errors).toEqual([]);
120
+ const many = Array.from({ length: 31 }, (_, i) => `- [c${i}](./c${i}.md)`);
121
+ const verdict = readSpecDocument(indexDoc({ children: many }), 'auth/index.md');
122
+ expect({ errors: verdict.errors, children: verdict.structure.children.length }).toEqual({ errors: [], children: 31 });
123
123
  });
124
124
 
125
125
  it('scenario-line / scenario-number / scenario-marker / scenario-path', () => {
@@ -341,8 +341,8 @@ describe('classifyPath + the frozen constants', () => {
341
341
  ]);
342
342
  });
343
343
 
344
- it('SPEC_SCHEMA carries the frozen numbers and SPECS_COLLAPSE joins the store root', () => {
345
- expect(SPEC_SCHEMA.fanOutMax).toBe(30);
344
+ it('SPEC_SCHEMA carries the frozen numbers, no children count, and SPECS_COLLAPSE joins the store root', () => {
345
+ expect({ fanOutMax: Object.hasOwn(SPEC_SCHEMA, 'fanOutMax'), rules: SPEC_SCHEMA.rules.length, fanOut: SPEC_SCHEMA.rules.includes('fan-out') }).toEqual({ fanOutMax: false, rules: 34, fanOut: false });
346
346
  expect(SPEC_SCHEMA.maxLines).toEqual({ index: 80, spec: 150, part: 150 });
347
347
  expect(SPEC_SCHEMA.statuses).toEqual(['draft', 'live', 'retired']);
348
348
  expect(SPEC_SCHEMA.kinds).toEqual(['index', 'spec', 'part']);
@@ -13,7 +13,7 @@ kind: index
13
13
  > Up: [technical_specification.md](../technical_specification.md)
14
14
 
15
15
  The top spec is the system root; this store holds the per-feature contracts under it. Every folder's
16
- `index.md` lists ONLY its immediate children (at most 30); a spec over 150 lines is promoted to
16
+ `index.md` lists ONLY its immediate children; a spec over 150 lines is promoted to
17
17
  `<slug>/index.md` + parts. Author a new spec from the skill's `SPEC_TEMPLATE.md`; the canon is the
18
18
  engine's `references/specs.md`.
19
19
 
@@ -60,6 +60,8 @@ export const SCRIPT_PRIORS = Object.freeze([
60
60
  prior('install-git-hooks.test.mjs', '8.3.0', '8.3.0', '058ac6de4dd5f83c4f09c8afd72ef2bfda365a9aea55bddd0089ce89a4e941e2'),
61
61
  prior('install-git-hooks-repo-exec.test.mjs', '8.3.0', '8.3.0', 'd5a3253fa0cd088733b927f2a7187c6484298f11dec48f6f63953e380b071c9a'),
62
62
  prior('archive-decisions.mjs', '8.1.3', '8.4.0', '2e1c378fe8a395440dc17a712643a549487e87f958f9d6ec5922dced876421ad'),
63
+ prior('spec-schema.mjs', '8.0.0', '8.6.3', '238e9a0ab3839f56b9f488b8c3232e8289c90d9808c772864dd5a95405b8488c'),
64
+ prior('spec-schema.test.mjs', '8.0.0', '8.6.3', '192661dd459c130004b2639d506676ee023fb24e862aad09656adc8c1418af04'),
63
65
  ]);
64
66
 
65
67
  export const digestOf = (bytes) => createHash('sha256').update(bytes).digest('hex');