fix(stats): intent_approved reaches the OTel allowlist like every other trekbrief field

The trekbrief-stats record gained intent_approved in f5dc08f (prose +
jsonl-schemas row) but not lib/exporters/field-allowlist.mjs, so the
exporter would drop it silently. Boolean, low-cardinality — safe label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-09-23 07:52:45 +02:00
commit 2045432ce7
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q

View file

@ -21,6 +21,7 @@
const TREKBRIEF_ALLOWED = Object.freeze(new Set([ const TREKBRIEF_ALLOWED = Object.freeze(new Set([
'ts', 'slug', 'mode', 'interview_turns', 'review_iterations', 'ts', 'slug', 'mode', 'interview_turns', 'review_iterations',
'brief_quality', 'research_topics', 'auto_research', 'auto_result', 'brief_quality', 'research_topics', 'auto_research', 'auto_result',
'intent_approved', // veikart steg 1: boolean, whether Phase 4h stamped the intent
'profile', 'profile_source', 'profile', 'profile_source',
])); ]));