@sabaiway/agent-workflow-memory 8.0.2 → 8.1.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 +9 -1
- package/README.md +1 -1
- package/SKILL.md +5 -5
- package/capability.json +1 -1
- package/migrations/README.md +1 -1
- package/migrations/legacy-stamp-takeover.md +3 -3
- package/package.json +1 -1
- package/scripts/stamp-takeover.mjs +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the memory substrate. Versions are this **package's** npm versions;
|
|
4
4
|
they are distinct from the **deployment-lineage** stamp written into a project's
|
|
5
|
-
`docs/ai/.memory-version` (which tracks the shared `agent-workflow` lineage, head `
|
|
5
|
+
`docs/ai/.memory-version` (which tracks the shared `agent-workflow` lineage, head `4.0.0`).
|
|
6
|
+
|
|
7
|
+
## 8.1.0 — the deployment-lineage head moves to 4.0.0 (AD-157)
|
|
8
|
+
|
|
9
|
+
`scripts/stamp-takeover.mjs`: `LINEAGE_HEAD` is `4.0.0`, so a memory bootstrap stamps `docs/ai/.memory-version` with
|
|
10
|
+
`4.0.0`, and a stamp of `4.0.0` is no longer refused as newer than the head. The kit's step `4.0.0` offers the epic
|
|
11
|
+
and task settings and the epic store (kit 14.11.0); this package gains no `4.0.0` migration note, since its own
|
|
12
|
+
re-stamp needs none. `SKILL.md`, `README.md`, `migrations/README.md` and `migrations/legacy-stamp-takeover.md` name
|
|
13
|
+
the new head. MINOR: the stamp a bootstrap writes changes.
|
|
6
14
|
|
|
7
15
|
## 8.0.2 — the rules template gains the Story sessions section (AD-152)
|
|
8
16
|
|
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ Open your agent inside a project and run the skill:
|
|
|
45
45
|
|
|
46
46
|
Two independent axes: this package's **npm version** vs the **deployment-lineage** stamp the
|
|
47
47
|
substrate writes into a project. They are not the same number. `.memory-version` tracks the
|
|
48
|
-
shared `agent-workflow` deployment lineage (head `
|
|
48
|
+
shared `agent-workflow` deployment lineage (head `4.0.0` today), **not** this package's
|
|
49
49
|
version. A project bootstrapped by the kit's fallback carries a `.workflow-version`; when this
|
|
50
50
|
substrate is later installed, `migrations/legacy-stamp-takeover.md` copies that value verbatim
|
|
51
51
|
into `.memory-version` and never deletes the legacy stamp. See `migrations/README.md`.
|
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: '8.0
|
|
6
|
+
version: '8.1.0'
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# agent-workflow-memory
|
|
@@ -146,7 +146,7 @@ bootstrapping over a live system, but the user makes the final call.
|
|
|
146
146
|
append-only (never duplicate an existing line), then **verify `git status` shows them ignored**.
|
|
147
147
|
Never the machine-global excludes; never edit `package.json`.
|
|
148
148
|
10. **Stamp the deployment lineage.** Write the **deployment-lineage head** into
|
|
149
|
-
`docs/ai/.memory-version` (one semver line). The lineage head is **`
|
|
149
|
+
`docs/ai/.memory-version` (one semver line). The lineage head is **`4.0.0`** (the
|
|
150
150
|
`LINEAGE_HEAD` constant in `scripts/stamp-takeover.mjs`) — the shared `agent-workflow`
|
|
151
151
|
lineage, a **separate axis** from this package's npm version (the two may even coincide by
|
|
152
152
|
accident; see *Stamp = lineage head, not package version*). Use the atomic writer in
|
|
@@ -185,7 +185,7 @@ Fill strategy:
|
|
|
185
185
|
`scripts/stamp-takeover.mjs` decides the action per state; the Markdown migration is the
|
|
186
186
|
no-Node manual fallback. If **no** stamp exists at all, offer a conservative re-bootstrap.
|
|
187
187
|
2. **Never-downgrade gate FIRST, then the stamp-independent hidden-mode reconcile (D14).** Compare the
|
|
188
|
-
stamp to the **deployment-lineage head** (`LINEAGE_HEAD`, `
|
|
188
|
+
stamp to the **deployment-lineage head** (`LINEAGE_HEAD`, `4.0.0`). **Greater than the head, or
|
|
189
189
|
unparseable → STOP and report immediately, before ANY write** (never downgrade or guess, and never
|
|
190
190
|
touch `.git/info/exclude`). This STOP is one of the only two places the number is shown (see
|
|
191
191
|
*Version disclosure* below): tell the user **the `docs/ai` structure version** their deployment
|
|
@@ -216,7 +216,7 @@ Fill strategy:
|
|
|
216
216
|
orchestration `_README` note in place on an existing file is the **composition root's** job on
|
|
217
217
|
its own reconcile — this substrate is standalone and only seeds-or-preserves; it owns no
|
|
218
218
|
cross-package refresh helper. The gates declaration gets no note-refresh at all — authored
|
|
219
|
-
content, seed-or-preserve only.) This is why an equal-head (`
|
|
219
|
+
content, seed-or-preserve only.) This is why an equal-head (`4.0.0`) deployment still gains the
|
|
220
220
|
config seeds **without a lineage-head bump or a migration file** (the
|
|
221
221
|
stamp-independent-reconcile precedent — like the pointer slots + the hidden-mode footprint).
|
|
222
222
|
**Same gate, also stamp-independent: ensure the ADR-store enforcement pair** — copy
|
|
@@ -330,7 +330,7 @@ memory substrate has none, so it relies on the STOP + the explicit ask — never
|
|
|
330
330
|
- **Source vs target directory.** Templates/scripts are read from the skill's own dir; the
|
|
331
331
|
**working directory is the target project** — never write substrate files back into the skill.
|
|
332
332
|
- **Stamp = lineage head, not package version.** `.memory-version` carries the **deployment-lineage
|
|
333
|
-
head** (`
|
|
333
|
+
head** (`4.0.0`, the shared `agent-workflow` lineage) — a **separate axis** from this package's npm
|
|
334
334
|
version (the two may even coincide by accident). They move independently.
|
|
335
335
|
- **All three pointer slots ship empty and stay the user's.** Never author methodology,
|
|
336
336
|
orchestration or autonomy text into them; on upgrade, preserve their content byte-for-byte. The
|
package/capability.json
CHANGED
package/migrations/README.md
CHANGED
|
@@ -13,7 +13,7 @@ releases add files/templates, which `upgrade` reconciles without a migration.
|
|
|
13
13
|
`.memory-version` verbatim — see that migration.
|
|
14
14
|
2. Select every migration whose `<version>` is **strictly newer** than the stamp.
|
|
15
15
|
3. Apply them in **ascending semver order**.
|
|
16
|
-
4. Re-stamp `docs/ai/.memory-version` to the deployment-lineage head (`
|
|
16
|
+
4. Re-stamp `docs/ai/.memory-version` to the deployment-lineage head (`4.0.0` today — the shared
|
|
17
17
|
lineage sequence, **not** this package's npm version). The legacy `.workflow-version`, if present,
|
|
18
18
|
is never deleted.
|
|
19
19
|
|
|
@@ -13,13 +13,13 @@ any other migration.
|
|
|
13
13
|
|
|
14
14
|
The deployment stamp moved from `.workflow-version` (owned by the kit) to `.memory-version`
|
|
15
15
|
(owned by this substrate). They track the **same** shared deployment-lineage sequence — never
|
|
16
|
-
their package versions. The current lineage head is **`
|
|
16
|
+
their package versions. The current lineage head is **`4.0.0`** (`LINEAGE_HEAD`). This migration
|
|
17
17
|
adopts an existing legacy stamp into the new file **without** changing the lineage value and
|
|
18
18
|
**without** deleting the legacy stamp (both may coexist; each tool migrates from its own stamp).
|
|
19
19
|
|
|
20
20
|
## State table (idempotent)
|
|
21
21
|
|
|
22
|
-
Look at `docs/ai/` and act by row. `V` is the legacy stamp's value; `head` = `
|
|
22
|
+
Look at `docs/ai/` and act by row. `V` is the legacy stamp's value; `head` = `4.0.0`.
|
|
23
23
|
|
|
24
24
|
| `docs/ai/` state | Action |
|
|
25
25
|
|---|---|
|
|
@@ -42,7 +42,7 @@ Look at `docs/ai/` and act by row. `V` is the legacy stamp's value; `head` = `3.
|
|
|
42
42
|
done
|
|
43
43
|
```
|
|
44
44
|
2. **Validate** each value that exists: it must be `MAJOR.MINOR.PATCH`, non-empty, and **not** greater
|
|
45
|
-
than `
|
|
45
|
+
than `4.0.0`. If any present stamp is empty, unparseable, or in the future → **STOP and report**;
|
|
46
46
|
do nothing else.
|
|
47
47
|
3. **Apply** the matching row above. For the "only `.workflow-version=V`" row, copy verbatim and
|
|
48
48
|
write **atomically** — create an exclusive randomized temp in `docs/ai/` (so a planted temp-name
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sabaiway/agent-workflow-memory",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.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",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// The deployment lineage is a SINGLE shared sequence; its current head is LINEAGE_HEAD.
|
|
7
7
|
// Both `.memory-version` and the kit-fallback `.workflow-version` track THAT sequence —
|
|
8
8
|
// never their package versions. So this substrate's package may be 1.0.0 while the stamp
|
|
9
|
-
// it writes is the lineage head (
|
|
9
|
+
// it writes is the lineage head (4.0.0 today).
|
|
10
10
|
//
|
|
11
11
|
// `decideTakeover` is a PURE function (stamp state in → action out) so the state machine is
|
|
12
12
|
// unit-testable per row. `applyTakeover` is the thin fs wrapper; stamp writes are ATOMIC
|
|
@@ -23,7 +23,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
23
23
|
|
|
24
24
|
// The shared agent-workflow deployment-lineage head. Bumped only when a project-migration
|
|
25
25
|
// changes the deployed docs/ai structure — NOT on a packaging-only release.
|
|
26
|
-
export const LINEAGE_HEAD = '
|
|
26
|
+
export const LINEAGE_HEAD = '4.0.0';
|
|
27
27
|
|
|
28
28
|
const SEMVER_RE = /^v?(\d+)\.(\d+)\.(\d+)$/;
|
|
29
29
|
|