Skip to content

docs: make the testing guide's provisioning default match provision.sh - #515

Merged
vladimirrott merged 4 commits into
lacs-project:mainfrom
yuee3:docs/testing-default-model
Sep 28, 2026
Merged

vladimirrott merged 4 commits into
lacs-project:mainfrom
yuee3:docs/testing-default-model

Conversation

@yuee3

@yuee3 yuee3 commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

TLDR

docs/contributing/testing.md told readers the VM harness defaults to llama3.2:3b. tests/e2e/provision.sh actually defaults to qwen3:8b — the model the same section warns cannot finish a call on a CPU-only VM. This makes the guide say what the script does, and pins the pairing so the two cannot drift apart again.

User Flow

A contributor with no GPU reads the provisioning section, runs ./tests/e2e/atomic-vm.sh provision with nothing set, and gets what the current guide promises to make impossible: a 5 GB qwen3:8b pull (the guide promised ~2 GB) followed by every story failing with the thinking-mode HTTP 500 the same page warns about. HACKING.md:305 and crates/sysknife-brain/src/config.rs:24 both agree with the script; the testing guide has been the odd one out since the initial public release.

Changes

docs/contributing/testing.md — the provisioning section now matches provision.sh:

  • the model-pull paragraph sizes the default as qwen3:8b (~5 GB) with ~2 GB for the override, not the reverse
  • the SYSKNIFE_TEST_MODEL block lists qwen3:8b first with # default, GPU passthrough only, and moves # default-style annotation off the llama3.2:3b line (now # CPU-only friendly)
  • the "default" sentence states the harness default (qwen3:8b) and points at the expansion in provision.sh; the llama3.2:3b paragraph now describes the recommended CPU-only override rather than the default
  • line 124 (CI smoke test) is untouched — .github/workflows/e2e.yml does pull llama3.2:3b on that path
  • the empirical claim about llama3.2:3b on a 4-vCPU VM is kept verbatim in substance (moved to the override paragraph)

tests/e2e/provider-parity.test.sh — new assertion in the same test that already derives provider tables from config.rs:

  1. reads the default out of provision.sh's SYSKNIFE_TEST_MODEL="${SYSKNIFE_TEST_MODEL:-...}" expansion
  2. requires the guide's default sentence (The harness default is **qwen3:8b**...) to name that model
  3. requires the # default comment in the block to sit on that model's line
  4. reports rather than passing when the expansion cannot be found, so a renamed variable or reformatted line fails loudly instead of silently unchecking itself

Test evidence

Written test-first against the unfixed guide, in a scratch checkout of the branch:

=== before the docs fix ===
FAIL  testing.md does not name qwen3:8b as the provisioning default while provision.sh pulls it by default

=== after the docs fix (clean) ===
(no provisioning-default failures)

=== mutation: default changed to qwen2.5:3b in a scratch provision.sh ===
FAIL  testing.md does not name qwen2.5:3b as the provisioning default while provision.sh pulls it by default

=== mutation: SYSKNIFE_TEST_MODEL assignment removed from a scratch provision.sh ===
FAIL  tests/e2e/provision.sh has no `SYSKNIFE_TEST_MODEL="${SYSKNIFE_TEST_MODEL:-...}"` assignment; renamed or reformatted, the default is unchecked

Only the two files named in the issue are touched; both are LF-only and the diff against main contains only the intended hunks.

Checklist

  • The documentation change states what provision.sh does today, not a proposed default (per the issue's scope note — changing the default is a maintainer decision)
  • The check derives the truth from the script, never restates it
  • The check refuses to pass when its extraction finds nothing
  • bash -n passes on the modified test; no other test asserts on these lines

Fixes #501

testing.md said the VM harness defaults to llama3.2:3b while provision.sh
pulls qwen3:8b — the model the same section calls unusable on a CPU-only
VM. A contributor without a GPU followed the guide, pulled 5 GB, and lost
every story to the thinking-mode HTTP 500 the docs promised could not
happen. State qwen3:8b as the default (needs a GPU) and llama3.2:3b as the
CPU-only override, and anchor them: provider-parity.test.sh now reads the
default back out of provision.sh's SYSKNIFE_TEST_MODEL expansion and
requires the guide's default sentence and its `# default` comment to name
the same model. The assertion refuses to pass when the line it reads
cannot be found, so a renamed variable cannot silently uncheck itself.

Fixes lacs-project#501

@vladimirrott vladimirrott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed at 7aeda743. Nothing here blocks.

You kept to the scope: the guide now says what provision.sh does, the default is untouched, and line 124 about the CI smoke test stays as it was. The new assertion reads the default out of the script rather than restating it, and it reports when the expansion is missing instead of comparing nothing. That last part is what keeps it from going quiet after a rename.

What I checked

maintainer screen marks the test script as executable, and my container sandbox was unavailable today, so I did not run provider-parity.test.sh. I did replay its two document checks with my own grep, using the same patterns, against the guide on main and on your branch:

$ bt='`'; for ref in origin/main p515; do git show $ref:docs/contributing/testing.md > /tmp/r28-testing.md; a=0; grep -Eq "^(We default to|The harness default is) \*\*${bt}qwen3:8b${bt}\*\*" /tmp/r28-testing.md && a=1; b=0; grep -Eq "^SYSKNIFE_TEST_MODEL=qwen3:8b .+# default" /tmp/r28-testing.md && b=1; echo "$ref sentence=$a comment=$b"; done
origin/main sentence=0 comment=0
p515 sentence=1 comment=1

Both fail on today's guide and pass on yours, which matches your before-and-after. shellcheck --severity=warning is clean on the new script, all five workflows at your head passed, and the branch merges clean. Before I approve, I will run your qwen2.5:3b mutation myself.

Optional

Two sentences read a little off after the move, and neither will go red:

  • "~2 GB if you override" does not say override to what. "~2 GB for llama3.2:3b" says it.
  • "On a CPU-only VM, override to llama3.2:3b after empirical live testing on a CPU-only 4-vCPU / 10 GB VM" reads as though the reader has to do the testing first. Something like "On a CPU-only VM, override to llama3.2:3b. In live testing on a 4-vCPU / 10 GB VM it downloads ~2 GB, has no thinking mode, calls tools reliably and takes ~2-4 min per story."

Once this lands, #411 is another place where the docs leave a contributor to guess about their platform: nothing says the suite is only observed on Linux, and a macOS contributor dropped a working fix over it. Comment on #411 if you want it and I will assign it to you there.

@vladimirrott vladimirrott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved at 7aeda743.

Reading the default back out of provision.sh instead of hardcoding it is what makes this hold. The section now fails when either side moves, and the failure names the model: a future bump to the provisioning default breaks the doc check rather than quietly restoring the drift you are fixing.

The second assertion is the one I would have left out and been wrong to. Requiring # default to sit on the override line for the model the script pulls with no override means a reader who copies any line from that block gets a working command, and the one they get by copying nothing is labelled.

What I ran:

$ maintainer-merge verify 515 7aeda743 tests/e2e/provider-parity.test.sh \
    's%SYSKNIFE_TEST_MODEL:-qwen3:8b%SYSKNIFE_TEST_MODEL:-llama3.2:3b%' shell
  running 'tests/e2e/provider-parity.test.sh' unmutated
  shell suite: evidence of 1 executed unit(s), passing unmutated
  applying the mutation and re-running
  receipt recorded for #515 at 7aeda743 (observed: clean pass, mutated fail)

That flips provision.sh to pull a different model and leaves your doc alone. Your check fires and says testing.md does not name it. That is the direction the guard has to work in, and it does.

local_bt=$(printf '')reads odd out of context and is correct: a backtick inside the double-quotedgrep -Eq` pattern would start command substitution. Worth the comment you put on it.

Board: 12 pass, container-smoke skipping, merge clean. CHANGELOG entry at merge is mine.

The #411 offer from this morning still stands: nothing in the suite says it is only observed on Linux, and a macOS contributor dropped a working fix over that silence. Comment there and I will assign it.

Anyone who chases a 5 GB model pull down to the line of shell that caused it is running VMs for real work. sysknife history and sysknife audit verify are read-only and answer what changed on a box, if that is ever useful to you.

@vladimirrott
vladimirrott merged commit dc0822a into lacs-project:main Sep 28, 2026
13 checks passed
vladimirrott added a commit that referenced this pull request Sep 28, 2026
#515 added `[HACKING.md](../../HACKING.md)` to the testing guide. HACKING.md is
not in `docs/SUMMARY.md`, so mdBook rewrites the target to `../../HACKING.html`
and publishes a link to a page it never wrote. #379's new
`scripts/check-mdbook-links.sh` caught it on the merged tree, within an hour of
#515 landing, which is the class of defect that check exists for.

The second relative link on the same page is rewritten the same way by #379
itself, so this touches only the line #515 introduced.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01BYyuZWfzSYSH2CQG1GTmgc
vladimirrott added a commit that referenced this pull request Sep 28, 2026
Four contributor pull requests landed today and the Unreleased section was
empty, so `maintainer-repo release-check` had nothing to read and said so.
#516 is stories only and carries no entry.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01BYyuZWfzSYSH2CQG1GTmgc
@vladimirrott

Copy link
Copy Markdown
Member

Merged as dc0822a8. The guard is on main and the testing guide and provision.sh now agree by construction rather than by somebody remembering.

One thing I should have caught in review and did not. The sentence you added links to HACKING.md with ../../HACKING.md, and that file is not in docs/SUMMARY.md, so mdBook rewrites the target to ../../HACKING.html and publishes a link to a page it never builds. #379 landed a book-link checker an hour later and named it:

mdbook-links: broken generated links:
.../real-book/contributing/testing.html	../../HACKING.html

That is my miss rather than yours. markdown-link-check has always passed this, because the path resolves on disk; nothing in the repository looked at the published book until today. I rewrote the link as an absolute URL on main in 7224b15c and left the rest of your paragraph alone.

The #411 offer still stands: nothing in the suite says it is only observed on Linux, and a macOS contributor dropped a working fix over that silence. Comment there and I will assign it.

vladimirrott added a commit that referenced this pull request Sep 28, 2026
Middle digit for one reason: #520 changes behaviour a caller relied on.
`CreateScheduledJob` now writes `sysknife-<name>.service` and `.timer` instead
of `<name>.service` and `.timer`, and refuses when either path already exists
where the old helper opened it with "w" and truncated it. A request that used to
succeed now exits non-zero, which docs/release.md counts as a break in the 0.y
series whether or not a signature moved.

That is also the reason to ship rather than wait: every installed copy still has
a helper that will destroy a systemd unit named after the job.

Nothing else here reaches the published crates. #379, #512, #513, #515, #516 and
#523 are documentation, CI gates and end-to-end stories, and
`git diff v0.22.0..HEAD -- crates apps packages` named only the four files #520
touches.

    All release versions match 0.23.0 (15 internal dependency pins checked).
    Full release rehearsal passed; every public crate packaged and verified.
    Summary 1880 tests run: 1880 passed

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01BYyuZWfzSYSH2CQG1GTmgc
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.

The testing guide says the VM harness defaults to llama3.2:3b, and provision.sh pulls qwen3:8b, the model the guide says fails on CPU

2 participants