timmy-talking-turd/tests/product-decisions.test.js
Timmy 3c51308a9e
All checks were successful
Quality gates / quality (pull_request) Successful in 1m14s
docs: fix product boundary and release authority
2026-08-20 08:32:16 +00:00

18 lines
954 B
JavaScript

import test from 'node:test';
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
const decisionPath = new URL('../docs/PRODUCT-DECISIONS.md', import.meta.url);
test('product decision record fixes the AI boundary and release authority', async () => {
const decision = await readFile(decisionPath, 'utf8');
assert.match(decision, /Observable AI fields[\s\S]*Bristol form[\s\S]*broad color[\s\S]*image quality/i);
assert.match(decision, /Prohibited inferences[\s\S]*disease[\s\S]*bleeding[\s\S]*pain[\s\S]*urgency[\s\S]*fever[\s\S]*vomiting[\s\S]*food/i);
assert.match(decision, /Hermes\/Timmy[\s\S]*release authority/i);
assert.match(decision, /Human gates[\s\S]*clinical and privacy review[\s\S]*beta consent[\s\S]*RC approval/i);
assert.match(decision, /\.\.\/PRODUCT\.md/);
assert.match(decision, /\.\.\/AI-EVIDENCE\.md/);
assert.match(decision, /\.\.\/research\/SELF-HOSTED-STOOL-VISION\.md/);
});