Skip to content

sminos derive forks on Haiku, never on the session's own model - #680

Merged
SSFSKIM merged 2 commits into
mainfrom
derive-on-haiku
Nov 30, 2026
Merged

SSFSKIM merged 2 commits into
mainfrom
derive-on-haiku

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 30, 2026

Copy link
Copy Markdown
Owner

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). btw forks 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_line now always runs the uncached headless fork with --model haiku --effort medium (DERIVE_MODEL, DERIVE_EFFORT). headless_fork gains optional model/effort. ask_btw, which only derive called, is removed; the bridge's btw op 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 $HOME or ~/Documents) was derived through btw and now is not; it is held off as before and said once in the daemon log.

Validation

  • Live: derive_line on a 230-message session → via headless fork · cache read 0 · input 231,251, 13 s; the gateway ledger records it as claude-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 offers btw), test_threads_stopped.py, test_manager.py, test_find.py, test_rpcs.py: all pass locally.
  • Not run: the full run-sminos-tests.sh and the live manager check (tests/mods/live-manager-check.py, updated for check 9); CI runs the gates.

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T11:28:25.836408Z deb2d6f PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +13188 to +13189
got = fork.headless_fork(project, m, prompt, tools=False, cache=False, model=DERIVE_MODEL,
effort=DERIVE_EFFORT, timeout=timeout)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@SSFSKIM
SSFSKIM merged commit c0a193b into main Nov 30, 2026
17 checks passed
@SSFSKIM
SSFSKIM deleted the derive-on-haiku branch November 30, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant