Repository navigation
sminos derive forks on Haiku, never on the session's own model - #680
Conversation
derive asked a live session through its bridge's side question (btw), which forks on the session's own model. A session idle past its cache's hour had its whole conversation written again at that model's price: on Fable sessions $4-5.50 a derive, $443 of the owner's $3,818 of Fable over 2026-11-22 to 11-29 (the gateway ledgers of both Macs), all from the Fable weekly window. derive_line now always runs the uncached headless fork with --model haiku --effort medium: live, 151k-231k tokens read by claude-haiku-5-5 (1M context) for $0.08-0.12 in 6-13 s. A session the headless fork may not start for (a protected folder: launch_refused) is no longer derived through btw. ask_btw, which only derive called, is removed; btw stays the desk's side question. sminos 1.70.0.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: deb2d6f433
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| got = fork.headless_fork(project, m, prompt, tools=False, cache=False, model=DERIVE_MODEL, | ||
| effort=DERIVE_EFFORT, timeout=timeout) |
There was a problem hiding this comment.
Update the hermetic derive tests for the headless-only path
The core hermetic suite still requires the removed side-question behavior: sminos/tests/run-sminos-tests.sh:6372–6379 asserts the bridge's answer, via btw, no headless process, and a recorded btw prompt; subsequent cases also require the deleted fallback diagnostics. Always invoking headless_fork makes these assertions fail, and the prompt lookup indexes an empty list. Since .github/ci-kit.yml runs this script with SMINOS_PART=core in the sminos gate, this change leaves that CI gate failing. Update these cases to assert the new headless-only behavior alongside the Python and live tests.
Useful? React with 👍 / 👎.
Behavior
sminos derive(the daemon's five-minute refresh of each session's in-charge line, and the compaction hook's) no longer asks a live session through its bridge's side question (btw).btwforks on the session's own model, so a Fable session idle past its cache's hour had its whole conversation (270–340k tokens) written again at Fable's 1h cache-write price: $4–5.50 per derive. Over 2026-11-22..29 the two Macs' gateway ledgers show 249 such calls, $443 of $3,818 of Fable list-price spend, all drawn from the scarce Fable weekly window; for some sessions derive cost more than the session's own work (physics-exam-prep-deck $58 vs $32, pedagogist $46 vs $20).derive_linenow always runs the uncached headless fork with--model haiku --effort medium(DERIVE_MODEL,DERIVE_EFFORT).headless_forkgains optionalmodel/effort.ask_btw, which only derive called, is removed; the bridge'sbtwop stays for the desk.Trade-off: a session the headless fork may not start for (a protected folder,
launch_refused, e.g. a session in$HOMEor~/Documents) was derived throughbtwand now is not; it is held off as before and said once in the daemon log.Validation
derive_lineon a 230-message session →via headless fork · cache read 0 · input 231,251, 13 s; the gateway ledger records it asclaude-haiku-5-5, no cache. A direct fork of a Fable session (151k tokens) answered in 6 s for $0.076 (modelUsage: claude-haiku-5-5, contextWindow 1,000,000).test_summary.py(new: derive forks headless on haiku even where the bridge offersbtw),test_threads_stopped.py,test_manager.py,test_find.py,test_rpcs.py: all pass locally.run-sminos-tests.shand the live manager check (tests/mods/live-manager-check.py, updated for check 9); CI runs the gates.