feat(trekresearch): emit and export the five STORM measurement fields

This commit is contained in:
Kjell Tore Guttormsen 2026-08-09 15:01:15 +02:00
commit f3874946ad
7 changed files with 136 additions and 7 deletions

View file

@ -648,6 +648,11 @@ Record format (one JSON line):
"project_dir": "{project_dir or null}",
"brief_path": "{brief_destination}",
"dimensions": {N},
"dimensions_baseline": {N},
"effort": "{low|standard|high}",
"conv_turns": {N},
"empty_turns": {N},
"unique_sources": {N},
"agents_local": {N},
"agents_external": {N},
"gemini_used": {true|false},
@ -657,6 +662,17 @@ Record format (one JSON line):
}
```
**The five measurement fields (v5.10).** `effort` is the grouping key — the
resolved `phase_signal_result.effort` for the `research` phase, a
low-cardinality label (`low|standard|high`), and the only axis on which a
high-effort run can be compared against a standard one. The other four are
numeric: `unique_sources` (distinct sources cited across the brief),
`dimensions_baseline` (the interview-derived dimension count, so the Phase 4.5
delta against `dimensions` is machine-readable), `conv_turns` (Phase 5 loop
turns actually spent), and `empty_turns` (loop turns that returned no findings
or no citations). On a standard run the loop never arms, so
`dimensions_baseline == dimensions` and both turn counters are `0`.
If `${CLAUDE_PLUGIN_DATA}` is not set or not writable, skip tracking silently.
## Profile (v4.1)