@sabaiway/agent-workflow-memory 4.4.0 → 4.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,24 @@ All notable changes to the memory substrate. Versions are this **package's** npm
4
4
  they are distinct from the **deployment-lineage** stamp written into a project's
5
5
  `docs/ai/.memory-version` (which tracks the shared `agent-workflow` lineage, head `3.0.0`).
6
6
 
7
+ ## 4.5.0 — the closing state block gets a canon rule, and its slot labels are declared English (AD-098; ships with kit 5.10.0)
8
+
9
+ **Three slots that answer three different questions, or one restatement written three times.** The
10
+ deployed rules template already asked for a closing state block; what it never said was what belongs
11
+ in each slot — so *now* drifted into a report of finished work, and the block collapsed into a
12
+ summary the reader had already read.
13
+
14
+ - **`agent_rules.md` gains the rule, in §2.5.** *Now* is the state at this instant — what is running
15
+ or what the work is stopped on, never a report of what was completed (that belongs in the message
16
+ body, above the block). *From you* is the real unblocker, named; a turn that is ending always has
17
+ one. *Next* is what follows.
18
+ - **The slot LABELS stay English; the values take the dialogue language.** An English label is what
19
+ lets a state-block checker find the block and its slots at all; everything written into a slot is
20
+ in the project's own language, and the checker's English phrase sets do not judge those values.
21
+ This is the substrate half of the same decision the kit's guard ships.
22
+ - **One test point renamed to describe the check it actually runs** — the `--write-index` refusal is
23
+ a pre-write symlink refusal on the index path, which is what the body has pinned since 4.4.0.
24
+
7
25
  ## 4.4.0 — the deploy finishes by writing the navigator its entry point declares (AD-096; ships with kit 5.9.0)
8
26
 
9
27
  **The substrate deployed an `AGENTS.md` that calls `docs/ai/index.md` always-loaded, and no step
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: agent-workflow-memory
3
3
  description: Deploy or upgrade a portable AI-agent memory substrate in any project — an entry-point `AGENTS.md` (+ `CLAUDE.md` alias) and a structured `docs/ai/` context store with cap/archive/index enforcement. Use when the user wants to bootstrap `docs/ai/`, set up the Memory Map and session protocols, install the docs-rotation pre-commit hook, or run `/agent-workflow-memory` / `/agent-workflow-memory upgrade`. Triggers on "set up the memory system", "deploy the AI memory here", "bootstrap docs/ai", "upgrade the memory substrate". This is the substrate only — the workflow methodology (plan→execute→review, queue, Cleanup) is owned elsewhere and injected into AGENTS.md by the family composition root.
4
4
  disable-model-invocation: true
5
5
  metadata:
6
- version: '4.4.0'
6
+ version: '4.5.0'
7
7
  ---
8
8
 
9
9
  # agent-workflow-memory
package/capability.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "schema": 1,
4
4
  "name": "agent-workflow-memory",
5
5
  "kind": "memory-substrate",
6
- "version": "4.4.0",
6
+ "version": "4.5.0",
7
7
  "provides": ["context"],
8
8
  "roles": {},
9
9
  "detect": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sabaiway/agent-workflow-memory",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "Portable, cross-agent memory substrate for AI coding agents — an AGENTS.md entry point + docs/ai context with cap/archive/index enforcement, deployable standalone or as part of the agent-workflow family. The memory layer of the agent-workflow family.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -1,6 +1,6 @@
1
1
  // check-docs-size-cli.test.mjs — runCli branch pins the subprocess smokes cannot reach
2
2
  // in-process (Phase-5 coverage fill; the main spec file is parity-frozen, so these ride a
3
- // colocated file): the unknown-argument refusal and the written-empty-index guard.
3
+ // colocated file): the unknown-argument refusal and the pre-write symlink refusal on the index path.
4
4
  import { describe, it } from 'node:test';
5
5
  import assert from 'node:assert/strict';
6
6
  import { mkdtempSync, mkdirSync, writeFileSync, symlinkSync, rmSync } from 'node:fs';
@@ -20,7 +20,7 @@ describe('check-docs-size runCli — refusal branches', () => {
20
20
  assert.match(stderr, /Unknown argument: --bogus/);
21
21
  });
22
22
 
23
- it('--write-index landing on a sink path (index stat size 0) is the loud written-empty refusal', async () => {
23
+ it('--write-index refuses a symlinked index path BEFORE writing, naming the path', async () => {
24
24
  const root = mkdtempSync(join(tmpdir(), 'cds-cli-'));
25
25
  try {
26
26
  mkdirSync(join(root, 'docs', 'ai'), { recursive: true });
@@ -73,6 +73,7 @@ Apply this as part of §2 before any user-facing summary:
73
73
  - **No condescension, no filler.** Own a miss plainly and fix it in the same message.
74
74
  - **Large artifact (≈>100 lines):** deliver a real summary or the key excerpt inline **and** link the file — never flood the reader with a 2000-line paste, never hide the answer behind a bare pointer.
75
75
  - **Live host/session facts are tool-composed only.** Any claim about the current host or session state (prompts fired, sandbox scope, whether a bypass was needed, network reachability, approval counts) must trace to **live tool output** from **this session**; a memory/handover snapshot is **context, never report facts**, and a claim with no live signal is **omitted or explicitly marked unverified** — never asserted from recollection.
76
+ - **The closing state block answers three DIFFERENT questions.** Close a user-facing message with three labelled slots — *now* · *what I need from you* · *what's next*. The slot LABELS stay ENGLISH — an English label is what lets a state-block checker FIND the block and its slots at all; everything written INTO a slot is in the project's dialogue language; when that language is not English, the checker's English phrase sets do not judge those values. **Now** = the state at this instant: what is RUNNING, or what the work is stopped on. It is **never a report of finished work** — what you completed goes in the message BODY, above the block. **From you** = the real unblocker, named; a turn that is ENDING always has one. **Next** = what follows. A *now* slot that opens with what was completed buries the one fact the reader opened the message for, and the three slots collapse into one restatement.
76
77
 
77
78
  ### 2.6. Planning, review & process-fidelity invariants
78
79
  Apply these when authoring a plan, reviewing, folding a finding, or editing code — the layer read **before any code change**. (Full canon: the project's planning / workflow-methodology + orchestration canon. This section is rendered from that canon and refreshed on upgrade; a custom edit is preserved verbatim, but flagged.)