Files
ruvnet__ruflo/plugins/ruflo-adr/scripts/__tests__/adr-create-schema-2651.test.mjs
T
rUv 401e02d511 fix: complete reports and consistent initialization for v3.32.37 (#2851)
* 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
2026-07-29 15:40:17 -04:00

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);
}
});