Skip to content

server: pin the in-lock runner log attrs, and correct the divergence note - #291

Merged
glennneuber merged 1 commit into
mainfrom
test/sched-logvalue-attrs
Sep 10, 2026
Merged

glennneuber merged 1 commit into
mainfrom
test/sched-logvalue-attrs

Conversation

@glennneuber

Copy link
Copy Markdown

Follow-up to #289 and #290: turns the reason we keep our LogValue into a test, and corrects an overstatement in the divergence note.

  • TestRunnerRefLogValueKeepsFieldsUnderRefMu logs a runner while holding refMu, exactly as sched.go:433 does, and asserts name, inference, pid and num_ctx survive. It passes on ours; with upstream 0.34.0's LogValue pasted in it fails on all four attrs (negative control run, output in the commit message). That is what pins the divergence when the 0.34.0 fold reaches LogValue.
  • Correction. The note said those were "exactly the lines this fork reads when diagnosing runner behaviour", implying routine use. They are slog.Debug lines, and only one run this week was captured at debug level (the 2026-09-06 array-trace probe, which does show sched.go:433 … runner.name=…gemma4:12b-nvfp4 runner.pid=316 runner.num_ctx=65536). The campaign logs run at INFO and never carried them. The narrower, supported claim replaces it.

🤖 Generated with Claude Code

…note

The claim that upstream's TryLock LogValue costs us the fields we read is
now a test rather than an assertion: log a runner while holding refMu,
exactly as sched.go:433 does, and assert name/inference/pid/num_ctx
survive. It passes on ours and fails on all four with upstream 0.34.0's
LogValue pasted in, which is what pins the divergence at the next sync.

Also corrects an overstatement in the note: these are slog.Debug lines
and only one run this week was captured at debug level, so 'the lines we
read all week' was wrong. The narrower claim -- they carry the fields we
need when diagnosing a runner, and upstream drops them at the eleven
in-lock sites -- is what the evidence supports.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@glennneuber
glennneuber merged commit 4c9f65e into main Sep 10, 2026
14 checks passed
@glennneuber
glennneuber deleted the test/sched-logvalue-attrs branch September 10, 2026 12:27
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