@sabaiway/agent-workflow-memory 8.1.4 → 8.1.5
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,14 @@ 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 `4.0.0`).
|
|
6
6
|
|
|
7
|
+
## 8.1.5 — the gate migration names the `lcovProducer` marker (AD-175)
|
|
8
|
+
|
|
9
|
+
`references/scripts/migrate-gates.mjs`: the four hints that print the paste-ready suite cmd (the
|
|
10
|
+
customized `unit-tests` recovery, the INERT row of a vendored checker, and the withheld-checker and inert-checker
|
|
11
|
+
warnings) also name the other producer form: `add "lcovProducer": true to that gate in docs/ai/gates.json`, for a suite cmd
|
|
12
|
+
that already writes the lcov in a form the migration cannot recognise. The guarded `coverage-producer canon` and
|
|
13
|
+
`checker-claim canon` regions are unchanged and stay byte-identical to the kit's. PATCH: no migration result changes.
|
|
14
|
+
|
|
7
15
|
## 8.1.4 — the templates carry the four-session story flow (AD-170)
|
|
8
16
|
|
|
9
17
|
`references/templates/agent_rules.md`: §2.6 is the engine 5.12.0 lens render (the Finding scope, Spec-first, Fold
|
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.1.
|
|
6
|
+
version: '8.1.5'
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# agent-workflow-memory
|
package/capability.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sabaiway/agent-workflow-memory",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.5",
|
|
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",
|
|
@@ -461,12 +461,14 @@ export const resultingGates = (plan) => {
|
|
|
461
461
|
return [...kept, ...moved, ...added]; // move/add go LAST — the checker ends up the last declared gate
|
|
462
462
|
};
|
|
463
463
|
|
|
464
|
+
const MARKER_LANE = 'or, if your suite cmd already writes that lcov in a form this check cannot recognise, add "lcovProducer": true to that gate in docs/ai/gates.json';
|
|
465
|
+
|
|
464
466
|
// The per-entry customized recovery: a unit-tests-class entry gets the FULL canonical flag set
|
|
465
467
|
// (the intent is known — the cmd shape just cannot be verified); anything else gets the
|
|
466
468
|
// dead-tool recovery.
|
|
467
469
|
const customizedRecovery = (gate) =>
|
|
468
470
|
gate.id === 'unit-tests'
|
|
469
|
-
? `declare the canonical suite gate by hand so the coverage contract is verifiable: node --test ${UNIT_TESTS_COVERAGE_FLAGS} <your test paths
|
|
471
|
+
? `declare the canonical suite gate by hand so the coverage contract is verifiable: node --test ${UNIT_TESTS_COVERAGE_FLAGS} <your test paths> — ${MARKER_LANE}`
|
|
470
472
|
: 'remove the entry, or repoint it at a living check — the review-ledger / fold-completeness tools no longer exist.';
|
|
471
473
|
|
|
472
474
|
const warningLines = ({ customized, finalCapable, hasReviewState = finalCapable, hasProducer = false, checkerWithheld = false, canonicalCheckerInert = false, duplicateCheckers = 0, externalCoreChecks = [], reviewStateCandidate }) => {
|
|
@@ -495,7 +497,7 @@ const warningLines = ({ customized, finalCapable, hasReviewState = finalCapable,
|
|
|
495
497
|
} else if (inert && hasProducer) {
|
|
496
498
|
lines.push(' it is also INERT as declared: a gate DOES produce the lcov, but it runs AFTER this entry, so this checker reads nothing (or stale bytes) and passes while verifying nothing — a checker belongs LAST, after its producer.');
|
|
497
499
|
} else if (inert) {
|
|
498
|
-
lines.push(` it is also INERT as declared: no declared gate PRODUCES the lcov it reads, so it passes while verifying nothing — declare the suite gate: node --test ${UNIT_TESTS_COVERAGE_FLAGS} <your test paths
|
|
500
|
+
lines.push(` it is also INERT as declared: no declared gate PRODUCES the lcov it reads, so it passes while verifying nothing — declare the suite gate: node --test ${UNIT_TESTS_COVERAGE_FLAGS} <your test paths> — ${MARKER_LANE}`);
|
|
499
501
|
}
|
|
500
502
|
}
|
|
501
503
|
if (externalCoreChecks.length) {
|
|
@@ -506,12 +508,14 @@ const warningLines = ({ customized, finalCapable, hasReviewState = finalCapable,
|
|
|
506
508
|
if (checkerWithheld) {
|
|
507
509
|
lines.push(' WARNING: the canonical coverage-check gate was NOT added — no declared gate would PRODUCE the lcov it reads, and a checker with no producer passes while verifying nothing. Declare the suite gate first, then re-run this migration:');
|
|
508
510
|
lines.push(` node --test ${UNIT_TESTS_COVERAGE_FLAGS} <your test paths>`);
|
|
511
|
+
lines.push(` ${MARKER_LANE}, then re-run this migration`);
|
|
509
512
|
}
|
|
510
513
|
// The CANONICAL checker's inertness only. An external row's is said on the row itself above, with
|
|
511
514
|
// the edit that fits that row — this block would otherwise add a second, contradictory one.
|
|
512
515
|
if (canonicalCheckerInert) {
|
|
513
516
|
lines.push(' WARNING: the DECLARED coverage-check gate is INERT — no declared gate PRODUCES the lcov it reads, so it passes while verifying nothing. Nothing is removed for you; declare the suite gate:');
|
|
514
517
|
lines.push(` node --test ${UNIT_TESTS_COVERAGE_FLAGS} <your test paths>`);
|
|
518
|
+
lines.push(` ${MARKER_LANE}`);
|
|
515
519
|
}
|
|
516
520
|
if (duplicateCheckers > 1) {
|
|
517
521
|
lines.push(` WARNING: ${duplicateCheckers} declared gates are the canonical coverage checker — run-gates --final accepts EXACTLY ONE, so the result is NOT final-run-capable. Nothing is removed for you; keep a single checker and delete the rest by hand.`);
|
|
@@ -122,6 +122,7 @@ describe('migrate-gates — the pure migration plan', () => {
|
|
|
122
122
|
const preview = formatPreview(analysis, 'APPLY');
|
|
123
123
|
assert.match(preview, /CUSTOMIZED \(untouched\): unit-tests/);
|
|
124
124
|
assert.match(preview, /declare the canonical suite gate by hand/, 'the paste-ready recovery rides along');
|
|
125
|
+
assert.match(preview, /recovery \(apply by hand[^\n]*"lcovProducer": true/, 'the recovery names the marker as the other lane');
|
|
125
126
|
});
|
|
126
127
|
|
|
127
128
|
it('adds the coverage-check gate LAST with the RESOLVED quoted path; never a second one', () => {
|
|
@@ -143,6 +144,7 @@ describe('migrate-gates — the pure migration plan', () => {
|
|
|
143
144
|
const preview = formatPreview(analysis, 'APPLY');
|
|
144
145
|
assert.match(preview, /coverage-check/, 'the withheld checker is named');
|
|
145
146
|
assert.match(preview, /produce/i, 'the preview says WHY — no gate produces the lcov it would read');
|
|
147
|
+
assert.match(preview, /WARNING: the canonical coverage-check gate was NOT added[^\n]*\n[^\n]*\n[^\n]*"lcovProducer": true/, 'the withheld block names the marker as the other lane');
|
|
146
148
|
});
|
|
147
149
|
|
|
148
150
|
it('an ALREADY-declared checker over no producer is reported INERT, is never removed, and is not final-run-capable', () => {
|
|
@@ -154,6 +156,7 @@ describe('migrate-gates — the pure migration plan', () => {
|
|
|
154
156
|
const preview = formatPreview(analysis, 'APPLY');
|
|
155
157
|
assert.match(preview, /INERT/, 'the inert pair is named');
|
|
156
158
|
assert.match(preview, /--experimental-test-coverage/, 'the paste-ready suite cmd is carried');
|
|
159
|
+
assert.match(preview, /WARNING: the DECLARED coverage-check gate is INERT[^\n]*\n[^\n]*\n[^\n]*"lcovProducer": true/, 'the inert block names the marker as the other lane');
|
|
157
160
|
assert.doesNotMatch(preview, /already final-run-capable/);
|
|
158
161
|
});
|
|
159
162
|
|
|
@@ -352,6 +355,7 @@ describe('migrate-gates — a VENDORED core check is the tool, from a copy --kit
|
|
|
352
355
|
const absent = formatPreview(buildMigrationPlan([INSTALLED_REVIEW_STATE, vendored], KIT_TOOLS, PROJECT), 'APPLY');
|
|
353
356
|
assert.match(absent, /no declared gate PRODUCES the lcov/, 'with nothing producing, the old sentence still holds');
|
|
354
357
|
assert.match(absent, /declare the suite gate/);
|
|
358
|
+
assert.match(absent, /no declared gate PRODUCES the lcov[^\n]*"lcovProducer": true/, 'the INERT row names the marker as the other lane');
|
|
355
359
|
});
|
|
356
360
|
|
|
357
361
|
it('a mixed declaration renders ONE edit, never a removal and a reorder at once', () => {
|