Repository navigation
feat(check): enable the plugin-native roster (VM caps, cli env, primaries mutex) - #656
Conversation
… docs - Cap every disposable VM bed at cpu: 2 / ram: 2G (vmShapeOverride reads them). - host_build_cli: merge spec.CliRequest.Env into the child environment (the placement-invariant carrier for the bed session's isolation vars). - Update check_bed_run_test to the one resolver (uf.Beds()); correct the stale --all-beds doc to the real check-roster spelling. Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated)
pluginPrimaries was an unguarded map mutated by provider registration at connect and read by loaderThreaded() per parse. A concurrent roster (127 bed runs in one process, each re-loading the project) raced 'concurrent map writes'. Guard with an RWMutex; project a copy per parse. Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated)
…eck v0.2026268.55 All three producer tags are MERGED; drop every local replace and pin the merged releases (the roster capability arrives via the plugin-check tag). Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated)
f169a35 to
da3effb
Compare
Review — BLOCKHead SHA: Change class: Blocks
Comment thread is empty — no comment dispositions apply. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…-all-beds doc - TestMergedChildEnv_OverridesAndInherits: the per-call env merge (in-place override, inherited kept, empty=>nil). - TestPluginPrimaries_ConcurrentAccessNoRace (-race): the roster-exposed race. - Replace the stale 'charly check run --all-beds' doc with the check-roster spelling. Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…s/--ram) The pinned plugin-vm declared --ram/--cpus but never read them; the read landed in v0.2026266.1235 (PR #39). Without it the roster/bed VM cap is a silent no-op. Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated)
Resolve charly/go.mod: take main's newer plugin-task pin, keep the roster's spec/sdk/plugin-check/plugin-vm pins. Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: Security screen (T3 — supply chain / non-hermetic build): the diff adds a local-path module override that makes the build depend on an out-of-repo sibling checkout and silently bypasses the pinned, merged module version. Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…chema
check/eval-host-project/charly.yml carried version 2026.240.1943; the current
binary requires 2026.261.1747, so the guest nested 'charly check run check-local'
failed at load ('schema is required — run: charly migrate'). Stale on main; the
version line is the only diff (charly migrate updates it). Fixes the bed to green.
Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated)
Assisted-by: opencode ollama-cloud deepseek-v4.1-flash (documentation reviewed)
Assisted-by: opencode ollama-cloud deepseek-v4.1-flash (documentation reviewed)
Review — BLOCKHead SHA: Change class: Security screen (T1–T4): PASS — no injection/instruction text in body or comments; no secrets/egress/eval; the previously-flagged local-path Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Adopt the merged spec carrying the Beds() mutual-import cycle guard (spec#156); drop the local replace. Assisted-by: opencode ollama-cloud deepseek-v4.1-flash (fully tested and validated)
Assisted-by: opencode ollama-cloud deepseek-v4.1-flash (documentation reviewed)
Review — PASSHead SHA: Security screen: PASS — no injection/instruction text in body or comments; no secrets/egress/eval; the previously-flagged local-path Comment dispositions (all re-derived against the current head):
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary of changes
The charly-side legs of the plugin-native check-bed roster cutover (the roster itself is plugin-check#55; the namespace fixes are spec#154/#155 + sdk#281/#283; the VM-shape fix is plugin-check#56).
charly.yml— cap every disposable VM bed atcpu: 2/ram: 2G(17 beds; read by plugin-vm'svmShapeOverride/ the bed-node seed). Replace the stalecharly check run --all-bedsdoc with the realcharly check run <roster>spelling.charly/host_build_cli.go—mergedChildEnv: mergespec.CliRequest.Envinto the child environment (the placement-invariant carrier for the bed session's isolation vars).charly/node_desugar.go+charly/loader_threaded.go— serializepluginPrimaries(sync.RWMutex;snapshotPluginPrimaries()projects a copy per parse). A concurrent roster racedconcurrent map writes.charly/host_build_cli_test.go— NEWTestMergedChildEnv_OverridesAndInherits(the file'sstringsimport is pre-existing; no import change).charly/node_desugar_test.go— NEWTestPluginPrimaries_ConcurrentAccessNoRace(-race).charly/check_bed_run_test.go—TestCheckBeds_…→TestBeds_…(the one resolver).charly/go.mod/charly/go.sum— pin the MERGED producers (noreplace; hermetic):specv0.2026268.642(carries theBeds()cycle guard, spec#156),sdkv0.2026267.2238,plugin-checkv0.2026268.616(roster + bed-shape),plugin-vmv0.2026266.1235(readsvm create --cpus/--ram).check/eval-host-project/charly.yml— migrate the stale guest fixture (schema2026.240.1943→2026.261.1747); version line only.Beds()mutual-import cycle guard; adopted via the spec pin (the charly suite'sTestImportNamespace_MutualCyclewas deadlocking without it).Closes / relates to: opencharly/plugin-check#55/#56, opencharly/spec#154/#155, opencharly/sdk#281/#283.
Breaking change + rollback: bed VM shapes change (2cpu/2G). Rollback is a revert.
Change class
charly Go code+ candy config. Gate:go test/go vet+bootstrap-charly.sh+ a live bed run.How R10-tested — exact gate, commands, and pasted output
go vet .,go test .(+-racefor the concurrency piece),./scripts/bootstrap-charly.sh+charly version, then livecharly check runondisposable: truebeds.check-local-vm(authoredcpu:2/ram:2G); (b) a 3-bed bounded roster built from a THROWAWAY fixture project (acheck-rosterselectingproof-a/proof-bsharingrequires_exclusive: [proof-lock]+ an independentproof-c, all on thedocs-site-appimage;lanes: 2) — the fixture lives outside the repo (it is a demonstration, not shipped config; the shipped roster is the umbrella-rootcharly.yml)../scripts/bootstrap-charly.sh→bin/charly2026.268.0543.pluginPrimariesmutex, and the bed VM-shape seeding all ran live (pasted).lanes>1pool + the shared-token serial chain (timeline below); the primaries race is unit-proven under-race.1. Gate output (verbatim):
2. CHANGED run path executing LIVE — the roster, 3 beds, lanes=2, shared-token serial pair:
Serial ordering (verbatim line numbers, same file):
3. VM-bed cap proof — the
check-local-vmVM bed ran FULLY GREEN (10/10 steps, zero warnings) at the authored 2G/2cpu:The domain shape (before teardown):
(
2097152 KiB = 2 GiB; the templateeval-host-vmdeclares 6 GiB — before the per-bed shape fix the domain reported6291456.)Reaching green here also surfaced + fixed a pre-existing stale guest fixture:
check/eval-host-project/charly.ymlcarried schema2026.240.1943while the current binary requires2026.261.1747(the guest's nestedcharly check run check-localfailed at load:schema … is required — run: charly migrate). The fixture was stale onmain; the version line was the only diff (charly migrateupdates it). Fixed in this PR.Attribution tier
fully tested and validated— the changed roster/primaries/VM-shape paths all ran live (pasted), zero warnings.Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)/charly-internals:go,/charly-check:check.pluginPrimariesrace + the ineffective VM cap RCA'd and fixed; bed runs zero warnings.--all-bedsdoc is DELETED and replaced; therun_cmd/verify-bedsredirect is deleted in plugin-check#55.git statuschecked; main merged in (not force-pushed); no destructive action.summary.yml+ the libvirt domain XML are the emitted artifacts, verified../scripts/bootstrap-charly.sh(CalVer-stamped).disposable: truebeds ran; new tests ship for both new pieces.disposable: truebeds ran.gofmtclean;go test/go vetgreen.N/A— post-merge bytag-on-merge.Assisted-by: opencode ollama-cloud deepseek-v4.1-flash (fully tested and validated)