STATVS turn rows never carry effort, and miss the model on every first prompt: TurnRecord reads both from UserPromptSubmit input
Version
LifeOS 8.761.0 · attestation: 161 system file(s) differ from danielmiessler/[email protected]:
- hooks/MemoryTurnStart.hook.ts
- hooks/KnowledgeWriteGuard.hook.ts
- hooks/VoiceCompletion.hook.ts
- hooks/DriftReminder.hook.ts
- hooks/DeployRegistrationGate.hook.ts
- hooks/VerificationGate.hook.ts
- hooks/SatisfactionCapture.hook.ts
- hooks/PromptProcessing.hook.ts
- hooks/lib/identity.ts
- hooks/lib/system-file-guard-core.ts
- hooks/lib/output-validators.ts
- hooks/lib/isa-turn.ts
- hooks/lib/learning-utils.ts
- hooks/lib/isa-utils.ts
- hooks/lib/lane-rules.ts
- hooks/WorkCompletionLearning.hook.ts
- hooks/BlockerText.hook.ts
- hooks/FormatGate.hook.ts
- hooks/handlers/VoiceNotification.ts
- skills/Cortex/Tools/ContextSearch.ts
- skills/Prioritize/Tools/Prioritize.ts
- skills/WriteStory/Tools/VoiceMetrics.ts
- skills/HTML/Tools/Render.ts
- skills/LifeOSHooks/hooks/lib/build.ts
- skills/LifeOSHooks/hooks/LifeOSHooks.ts
- skills/LifeOSHooks/SKILL.md
- skills/HillClimb/Tools/Population.ts
- skills/Writing/Tools/VoiceMetrics.ts
- agents/Grok.md
- LIFEOS/TOOLS/vendor-pricing.json
- LIFEOS/TOOLS/WatermarkScan.ts
- LIFEOS/TOOLS/DoctrineMark.ts
- LIFEOS/TOOLS/Upgrades.ts
- LIFEOS/TOOLS/ExtractTranscript.ts
- LIFEOS/TOOLS/MemoryWriter.ts
- LIFEOS/TOOLS/MemoryRetriever.ts
- LIFEOS/TOOLS/HarvestExecutor.ts
- LIFEOS/TOOLS/GrokQuery.ts
- LIFEOS/TOOLS/KnowledgeHarvester.ts
- LIFEOS/TOOLS/SplitAndTranscribe.ts
- …and 121 more
What is broken
StatvsSystem.md § Rewind promises that every human prompt writes a turn row carrying "the model and effort the turn ran on", and that Rewind.ts input builds a fixture from "the conditions the turn row recorded". In practice effort is null on every row, and model is null on the first prompt of every session. hooks/TurnRecord.hook.ts runs on UserPromptSubmit and reads input.effort and input.model; LIFEOS/STATVS/lib/turn.ts turnEffort() falls back to $CLAUDE_EFFORT. The Claude Code hooks reference lists effort as "Present for PreToolUse, PostToolUse, Stop, SubagentStop, and other events with a tool-use context", the UserPromptSubmit input adds only prompt (and session_title), and "Only SessionStart hooks can receive a model field". So at prompt time neither field arrives, and a rewind fixture looks complete while it never carries the effort the turn ran on. Seen the same on a clean 8.761.0 install (185 of 185 rows effort null; model null on 177 of 185) and on this install, whose two files on this path are byte-identical to the release (400 of 400; model null on 296 of 400, present only from the transcript fallback). Both interactive and headless sessions. Possible directions, yours to choose: record effort from Stop, which fires on every turn and carries effort; take the model from SessionStart / PostModelSwitch; or say in the doc that neither is available at prompt time.
Where (file:line)
hooks/TurnRecord.hook.ts:32
Repro on a clean tree
1. On a 8.761.0 install, use Claude Code for a few prompts (any session, interactive or `claude -p`).
2. Run `bun LIFEOS/STATVS/Statvs.ts tail --stream turn --n 50 --hours 24 --data --local`.
3. Every row has `"effort": null`; rows at `transcript_offset: 0` also have `"model": null`.
Expected: effort (and model) recorded as the § Rewind doc says.
Negative control
Probe: bun LIFEOS/STATVS/Statvs.ts tail --stream turn --n 50 --hours 24 --data --local | bun -e 'const r=(await Bun.stdin.text()).split("\n").filter(l=>l.startsWith("{")).map(l=>JSON.parse(l));const n=r.filter(x=>x.data&&x.data.effort===null).length;console.log("turn rows",r.length,"effort null",n);process.exit(r.length&&n===r.length?1:0)' · exit 1 · captured 2026-11-27T17:12:10.215Z
Red looks like: effort null 50
turn rows 50 effort null 50
Suggested fix
None proposed.
Environment
- OS: macOS 27.0.1 (arm64)
- Harness: claude-code
- bun: 1.4.4 · git: 2.56.0
- Doctor broken: none
[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler
Thanks for this. Feature requests and larger changes now live in Discussions under Ideas, so the issue list only tracks defects we're fixing now. I moved this one there with your full write-up: https://github.com/danielmiessler/LifeOS/discussions/3108. Nothing is lost, and that's where we'll pick it up. Closing here.