Repository navigation
fix(plugins): refresh the compiled-in provider-ref table from the current corpus - #1272
Conversation
…rent corpus Closes #1268. pluginsgen indexes each corpus repo at its DEFAULT BRANCH, so plugins_refs_generated.go tracks upstream tips rather than module pins; the committed table was missing the two plugin-distro kind words the corpus declares today (kind:os, kind:source). Regenerated with the build's own command; plugins_generated.go is byte-identical. Agent: `ollama-vision-models` · Claude Code session `c765900b-523f-458a-b38f-a0f925f2a9b9` Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: compiled Go change (generated provider-ref table Security screen: PASS (no secrets, no network egress, no guardrail weakening, no embedded directives; content is inert data). Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…index Round-1 review fixes for #1272. - R7/R10: the two added rows had no test that fails without them. This pins pluginProviderRefs for kind:os and kind:source — the same shape engine_word_cutover_test.go already uses for the containerd words. Red proof: removing the two rows makes it fail with 'pluginProviderRefs["kind:os"] is missing — the index was not refreshed from the corpus'. Agent: `ollama-vision-models` · Claude Code session `c765900b-523f-458a-b38f-a0f925f2a9b9` Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Round-1 review fixes for #1272. - A2/A3: the tier was `fully tested and validated`, which requires the changed path to execute against the fresh rebuild. The two rows are pinned by a test that executes the same lookup (TestPluginRefsIndexCarriesTheDistroKinds, with a red proof), and the corpus source is pasted — but a live CLI resolution of `kind:os`/`kind:source` on the rebuilt binary was NOT obtained: the hidden provider-list verb stayed unresponsive for over ten minutes on this host (six concurrent charly sessions, two image builds) and was stopped rather than pasted as a timeout. Tier lowered to `analysed on a live system`. - R1: the restore-vs-fail policy question the body left open on #1268 is now its own issue, #1273, listed under `## Filed issues`, so "Closes #1268" no longer contradicts an open decision. - CONC(d): the corpus evidence is pasted — plugin-distro's default branch at 0b82628 declares `kind:os` and `kind:source` (candy/plugin-distro/charly.yml:20-21) — alongside the generator's own diff and the test's red/green transcripts. Agent: `ollama-vision-models` · Claude Code session `c765900b-523f-458a-b38f-a0f925f2a9b9` Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
|
STATUS Round-2 RCA and fixes — five blocks, all body/test/process.
Agent: Agent: |
Review — BLOCKHead SHA: Change class: generated-artifact refresh plus new test code — 2 files: Blocks
Comment dispositions
Accepted as tool-limited: the Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS STATUS — correcting my own round-2 statement about the live-resolution attempt, with the output this time. I said the hidden provider-list verb "stayed unresponsive for over ten minutes and I stopped it". It has since completed on the rebuilt binary (2026.328.1556): So the accurate statement is stronger and simpler: no CLI surface enumerates kind words — the verb lists provider CLASSES (command/verb/…), not kinds — so the two rows cannot be demonstrated live by a CLI call at all, whatever the host load. The tier stays Agent: |
|
STATUS Round-3 RCA — three A1 blocks, all body; the head's code is unchanged, so the body is corrected in place and the failed gate re-run on the same SHA.
The reviewer's dispositions are noted and accepted: round-1's blocks 2–5 are superseded by this Agent: Agent: |
Review — PASSHead SHA: Security screen: PASS — inert generated data + a test; no secrets, no egress, no guardrail weakening, no embedded directives. Comment dispositions:
Tool-limited accept: the generator Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…ange Round-1 review fixes for #1274. - R1/CONC(b): the body referred to a NOTICE "in the build below" that the pasted block did not contain. The NOTICE line is now pasted verbatim, and the finding is filed as REAL issues under `## Filed issues` — #1268 (the drift, fix in PR #1272) and #1273 (the restore-vs-fail policy) — instead of pointing at a PR number. - R10/A1: the untruncated output is pasted for the changed pieces — the two `go test` package lines with real durations, the five `tools/*` module lines from the `GOWORK=off` sweep, `gofmt -l charly tools` empty, and all six `0 issues.` lines from the per-module golangci-lint. - A3/R7: the delivered behaviour (the degraded-load guard) was never executed against this tree's binary — staging a config the loader cannot unify is not something this tree can do without inventing one — so the tier is `analysed on a live system` in the body and in this trailer. Agent: `ollama-vision-models` · Claude Code session `c765900b-523f-458a-b38f-a0f925f2a9b9` Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
…aded config load (#1274) * chore(deps): bump sdk to v0.2026328.1554 so the binary refuses a degraded config load opencharly/sdk#633 (tagged v0.2026328.1554) makes deploykit.SaveDeployConfig refuse to persist a DEGRADED per-host config load: it compares the typed re-read with the file's own deploy-key count and aborts instead of writing the short set. That is the data-safety half of #1269 (the per-host config lost both deploy entries mid-run on 2026-11-24). charly/go.mod and the three tools/* modules that mirror the contract pins (charly task mods-tidy) move to v0.2026328.1554. No charly source change; the guard lives in the SDK. Gate: the repo's full `go` CI job reproduced verbatim (root go test ./charly/..., the tools/* GOWORK=off sweep, gofmt, per-module golangci-lint) plus the R9 worktree build. Agent: `ollama-vision-models` · Claude Code session `c765900b-523f-458a-b38f-a0f925f2a9b9` Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * chore(pr): correct the evidence and the attribution tier — no code change Round-1 review fixes for #1274. - R1/CONC(b): the body referred to a NOTICE "in the build below" that the pasted block did not contain. The NOTICE line is now pasted verbatim, and the finding is filed as REAL issues under `## Filed issues` — #1268 (the drift, fix in PR #1272) and #1273 (the restore-vs-fail policy) — instead of pointing at a PR number. - R10/A1: the untruncated output is pasted for the changed pieces — the two `go test` package lines with real durations, the five `tools/*` module lines from the `GOWORK=off` sweep, `gofmt -l charly tools` empty, and all six `0 issues.` lines from the per-module golangci-lint. - A3/R7: the delivered behaviour (the degraded-load guard) was never executed against this tree's binary — staging a config the loader cannot unify is not something this tree can do without inventing one — so the tier is `analysed on a live system` in the body and in this trailer. Agent: `ollama-vision-models` · Claude Code session `c765900b-523f-458a-b38f-a0f925f2a9b9` Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Summary
Closes #1268.
charly/plugins_refs_generated.go— the committed"<class>:<word>" → candy reftable thatpluginsgenwrites — was regenerated from the corpus thebuild uses. The only change is the two
plugin-distrokind words the corpus declares today and thetracked file lacked:
plugins_generated.go(the compiled-in wiring) regenerates byte-identical, so the generated half isone file and two lines. The PR also ADDS ONE TEST,
charly/engine_word_cutover_test.go(+18 lines),which pins the two words against the same table the runtime reads — added in round 2 after the first
review found the rows unproven. Two files in total: the generated data and its assertion.
Why it happened, stated so the next reader does not re-derive it:
pluginsgenindexes each corpusrepo at its default branch (the corpus is a repo list, not a pin list), while
scripts/bootstrap-charly.sh'scheck-generated-cleanrestores the tracked file when theregenerated one differs — so every build printed
and nobody acted on it. The NOTICE disappears with this commit, which is the proof that the drift,
not the message, was the defect. The separate policy question — should a release build keep
restoring (reproducible) or fail on drift, and who owns the refresh — is filed as
#1273 and listed under
## Filed issues, so closing #1268 here does not decide it.How tested
Disposable target: N/A — with the reason. No
disposable: truebed exists for a word→ref table(the R10 matrix's beds exercise images, pods, VMs and live services; none enumerates
pluginProviderRefs). The class-appropriate gate is this repo'sgojob (run above) plus the R9build's
check-generated-clean, which compares the regenerated table with the committed one — theartifact is validated at the boundary that was complaining. The live-execution question is answered
by the added test below.
What did and did not execute live, stated exactly. The two rows are compiled into the rebuilt
binary (the build below), and the changed lookup —
pluginProviderRefs["kind:os"]/["kind:source"]— executes inTestPluginRefsIndexCarriesTheDistroKinds, whose red proof is above.A CLI path that PRINTS those two words on the rebuilt binary was attempted and does not exist: the
hidden verb that lists registered providers (
charly __plugin list) completes withrc=0on therebuilt binary but prints provider CLASSES (
command:*,verb:*, …), andgrep -cE "kind:(os|source)"over its output is0— it does not report kind words at all. So no CLI surfaceenumerates the two rows, and a timeout on a first attempt (the host runs six concurrent charly
sessions) is not the reason. So the tier is
analysed on a live system, notfully tested and validated— the diff's correctness is established by the executing test and thecorpus source, not by a live CLI resolution.
The decisive check is the R9 build below: with the tracked file now matching the corpus,
check-generated-cleanprints no NOTICE and the tree stays clean — the artifact is validated atthe boundary that was complaining.
Rulebook compliance
/charly-internals:go,/charly-internals:git-workflow,/charly-internals:strict-policy.with the same command that measured it.
NOT EDIT and this PR does not).
origin/main.TestPluginRefsIndexCarriesTheDistroKinds, which fails withpluginProviderRefs["kind:os"] is missing — the index was not refreshed from the corpuswhen theyare deleted (transcript above); the drift's disappearance is proven by the NOTICE count going to 0
on a fresh build.
scripts/bootstrap-charly.shbuilds the worktree-local CalVer binary; itscheck-generated-cleanstep is the validator for this file.goCI job reproduced verbatim(root
go test ./charly/..., thetools/*GOWORK=offsweep,gofmt, per-modulegolangci-lint) plus the R9 build.corpus plugin; only the index catches up.
Filed issues
check-generated-cleanRESTORES a drifted corpus index instead offailing, so a drift is reported on every build and resolved by nobody. Split out of the committed plugin-corpus index lags upstream: pluginsgen indexes branch tips, so plugin-distro's kind:os/kind:source are missing from plugins_refs_generated.go #1268: the
drift is fixed here, the restore-vs-fail policy needs its own decision.
Change classification
plugins_refs_generated.go(+2) and
engine_word_cutover_test.go(+18).kind:osandkind:sourceresolve toplugin-distrofrom the compiled-in table,which is what the corpus has said since those words landed.
resolution.
Agent:
ollama-vision-models· Claude Code sessionc765900b-523f-458a-b38f-a0f925f2a9b9Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (analysed on a live system)