mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-09-14 14:01:28 +08:00
401e02d511
* fix(metaharness): preserve readiness verdict payloads * test(metaharness): cover blocked genome verdicts * fix(adr): parse bullet metadata and relationships (#2659) * fix(adr): align adr-create with AgentDB schema (#2651) * fix(adr): make index updates idempotent (#2660) * fix(memory): bound session-end graph consolidation (#2628) * fix(memory): align active row visibility (#2652) * fix(memory): honor database path during init * fix(hooks): keep all shim fallback tags aligned * fix(codex): omit unbacked full-template skills * fix(init): generate complete native dual projects * test(memory): isolate path and legacy-row regressions * chore(release): prepare v3.32.37
25 lines
911 B
JavaScript
25 lines
911 B
JavaScript
import assert from 'node:assert/strict';
|
|
import { readFileSync } from 'node:fs';
|
|
import test from 'node:test';
|
|
|
|
test('adr-create documents the live AgentDB key/value/tier and causal-edge schema', () => {
|
|
const skill = readFileSync(
|
|
new URL('../../skills/adr-create/SKILL.md', import.meta.url),
|
|
'utf8',
|
|
);
|
|
assert.doesNotMatch(skill, /^\s*-\s+path:/m);
|
|
assert.match(skill, /^\s*-\s+key:\s+`mem:ADR-NNN`/m);
|
|
assert.match(skill, /^\s*-\s+tier:\s+`semantic`/m);
|
|
assert.match(skill, /value: a JSON-encoded string:/);
|
|
assert.match(skill, /^\s*-\s+sourceId:\s+`mem:ADR-NNN`/m);
|
|
assert.match(skill, /^\s*-\s+targetId:\s+`mem:ADR-RELATED`/m);
|
|
|
|
for (const relative of [
|
|
'../../REFERENCE.md',
|
|
'../../commands/adr.md',
|
|
]) {
|
|
const companion = readFileSync(new URL(relative, import.meta.url), 'utf8');
|
|
assert.doesNotMatch(companion, /(?:--path|\bat path)[^\n]*adr\/ADR-/i);
|
|
}
|
|
});
|