ai-psychosis/tests
Kjell Tore Guttormsen 86c3eae30c docs(wording): reframe alerts and report from verdict to inquiry (tiltak 2)
BRIEF-vurdering-v2.md tiltak 2: "design for the investigator, not the
validator". The hook alerts stated short conclusions a reader can only
accept or dismiss ("Rapid-fire: N consecutive fast interactions",
"possible stuck/spiral", "Consider a break").

Each alert in tool-tracker.mjs now follows the form the read-dominant
edit-ratio message introduced in 2c9e2de — observation, the counter-signal
that changes how to read it, then what to check:

- burst: names the interval and that edits were among the calls, and asks
  whether each change was verified before the next
- edit ratio: carries the read percentage and asks what the remaining
  calls are doing and whether the approach is converging
- soft warning: closes on framing instead of prescribing a break
- hard warning: asks the model to name its observations and ask what they
  reflect; the required stop action is unchanged

commands/interaction-report.md gains the same rule for Observations and
trend reporting, plus an explicit "investigator, not validator" tone rule
and a "report the difference, not a label for it" rule.

Wording only — thresholds, heuristics, data model and required actions
are untouched. README examples and threshold-basis cells updated to match.

Tests first (Iron Law): 6 new/updated assertions on message text in
tests/tool-tracker.test.mjs and tests/interaction-report.test.mjs, red
before the change. node --test tests/*.test.mjs: 269 pass, 5 fail — the
pre-existing perf wall-clock cases only.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013U8ZH25KiMtts89yWRuVWD
2026-08-13 21:10:39 +02:00
..
domain-detection.test.mjs feat(ai-psychosis): add 8 paper-grounded domain patterns 2026-05-01 21:32:26 +02:00
interaction-report.test.mjs docs(wording): reframe alerts and report from verdict to inquiry (tiltak 2) 2026-08-13 21:10:39 +02:00
lib.test.mjs fix(hooks): close F-5 path-traversal hardening in lib.mjs, split by field 2026-08-09 10:04:33 +02:00
perf.test.mjs test(ai-psychosis): perf budget validated at v1.2 pattern set 2026-05-01 21:56:14 +02:00
privacy.test.mjs test(ai-psychosis): privacy canary covers v1.2 detectors 2026-05-01 21:54:22 +02:00
prompt-analyzer.test.mjs fix(hooks): include required hookEventName in hookSpecificOutput JSON 2026-06-24 06:46:11 +02:00
session-end.test.mjs feat(ai-psychosis): promote domain_context to array for multi-domain support 2026-05-01 21:28:36 +02:00
session-start.test.mjs fix(hooks): close F-5 path-traversal hardening in lib.mjs, split by field 2026-08-09 10:04:33 +02:00
skill-md.test.mjs docs(ai-psychosis): SKILL.md cites paper Score 5 + 11 guidance criteria 2026-05-01 21:51:21 +02:00
stakes-matrix.test.mjs feat(ai-psychosis): domain-stakes weighting on alert thresholds 2026-05-01 21:46:29 +02:00
test-helper.mjs feat(ultraplan-local): v1.6.0 — /ultraresearch-local deep research command 2026-04-08 08:58:35 +02:00
tool-tracker.test.mjs docs(wording): reframe alerts and report from verdict to inquiry (tiltak 2) 2026-08-13 21:10:39 +02:00
user-info.test.mjs feat(ai-psychosis): tier-1 user-info isolation alert (per-session) 2026-05-01 21:38:51 +02:00
validation-seeking.test.mjs feat(ai-psychosis): domain-stakes weighting on alert thresholds 2026-05-01 21:46:29 +02:00