voyage/tests/scripts
Kjell Tore Guttormsen ee4d748639
test(yardstick): use counts an order only when a Voyage record names its id (red)
measureUse({ queue, runs, cutoff, countingSince }): runs come from
orderRuns(stats) - trekbrief-stats.jsonl only. YES = a trekbrief record names
the order's id under one slug that names no other order; declared NO = a
new-work order carrying <!-- arbeidsform: ordre --> on its own line; no
record or a disputed record = NOT MEASURED, never a no (PM 04.10, point 1).
countingSince null -> NOT COUNTABLE, every order not measured; the window
starts at the latest of cutoff, MARKER_SINCE and the counting start.
facts.ordersNamedByARecord is the known-positive diagnostic (SC8).

Existing use tests get countingSince = MARKER_SINCE (their window unchanged)
and records instead of slugs; their denominators now read YES + declared NO.
Replaced: "a new-work order without a slug leaves the numerator NOT
MEASURED" - the slug join it guarded is gone. New exports are read through a
namespace import, so the trust/interrupts/mutants tests still run.

Red: 24 of 43 fail (every use test, the two measureAll tests, the symlink
CLI test); 19 pass, none of them new.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 19:52:22 +02:00
..
annotate.test.mjs docs: remove dead references to a retired repository (green) 2026-09-23 12:28:05 +02:00
comparison-gate.test.mjs feat(measure): the comparison gate counts the 14 areas against five frameworks and the tidy denominator, and it is RED [skip-docs] 2026-10-02 20:31:14 +02:00
end-state-gate.test.mjs docs(tests): tracked comments name the measurement, not the coordination 2026-09-18 03:01:09 +02:00
storm-measure.test.mjs fix(storm-measure): check BOTH halves of the activation SC, not just the count delta 2026-08-12 23:01:59 +02:00
synthesis-measure.test.mjs feat(voyage): S12 — NW3 synthesis-agent built + measured → declined per measurement [skip-docs] 2026-06-18 17:58:39 +02:00
yardstick.test.mjs test(yardstick): use counts an order only when a Voyage record names its id (red) 2026-10-04 19:52:22 +02:00