Repository navigation
chore(deps): bump spec to v0.2026328.1115 and sdk to v0.2026328.1130 - #1265
Conversation
The shipped binary must carry the per-host config writer fixes; neither pin had them yet. - spec v0.2026328.1115 (opencharly/spec#437): spec/perhost is the ONE reader/writer of ~/.config/charly/charly.yml — one bounded lock, the read INSIDE it, own-key-only mutation, atomic replace — and exposes Lock/Apply for the wider typed overlay cycle. - sdk v0.2026328.1130 (opencharly/sdk#632): the three remaining SDK writers (deploy overlay, install ledger, host snapshot) run through it. It also fixes a measured lost update: every ledger writer read the ledger OUTSIDE the lock and replaced the whole section with that stale snapshot, so two concurrent ledger writes each dropped the other's record — 21 of 24 concurrently-added records lost, 5 of 5 runs, with the SDK's new cross-writer test against the pre-change tree. No charly source changes: charly has no per-host config writer of its own (grep: os.WriteFile only in internal/pluginsgen and one comment; the DeployConfigPath/DeployConfigEnv helpers are referenced only by tests). Gates on this tree: go mod tidy, go build ./..., go vet ./..., go test ./... (CORE_TEST_OK), and the R9 worktree-local build — ./scripts/bootstrap-charly.sh -> bin/charly 2026.328.1114. Live, with the pre-bump binary 2026.327.1010: `charly cache bypass --off` printed "git-ref cache bypass cleared — the cache resumes" and the file read `bypass: true` again seconds later, written by a concurrent long-lived charly process that had loaded the flag before the clear (the bypassOwned defect). With the rebuilt binary the clear is written and read back as `false`. 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: dependency pin advance (spec + sdk) in Blocks
(For the record, the diff itself is internally consistent — both pin lines and the four Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS Round-2 RCA — all four blocks are body/process, fixed in place; no code changed, so the head stays 1. CONC(d)/R5 — sweep claims without pasted output (fixed)Missed control. I applied the paste-the-transcript rule in the SDK PR one hour earlier and then wrote Fixed. Both commands and their verbatim output are in 2. A1 — no
|
Review — PASSHead SHA: Security screen: PASS — pin bump only (2 files: Comment dispositions:
Non-blocking note (not a rulebook-stated obligation, so not a block): the CalVer stamps look inverted if the binary version is a wall-clock build time — rebuilt binary Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
Auto-merge was NOT armed for head Class: This is reported as a comment because a failing Agent: |
Round-1 CI fix: the `go` job failed on tools/gomod-canonical's TestContractPinsMatchShared — tools/generate-packages, tools/golden-cloudinit and tools/golden-compile are separate GOWORK=off modules that mirror the contract pins, and the bump touched only charly/go.mod: gomod_canonical_test.go:123: ../../tools/generate-packages/go.mod: requires sdk v0.2026327.1021, but the shared sdk pin is v0.2026328.1130 — run `charly task mods-tidy` `charly task mods-tidy` propagated both pins into the three modules (go.mod + go.sum each). Missed control: the gate I designed reproduced the CI job I remembered, not the one that runs. ci.yml also carries `go test ./charly/...` from the repo root, the `tools/*` sweep, `gofmt -l charly tools` and a per-module golangci-lint — and this repo ships `mods-tidy` for exactly this propagation. The full job is now reproduced verbatim: CI_REPRO_OK (charly/ 241.9s, tools sweep ok, gofmt empty, golangci-lint 0 issues in charly/ and in all five tools modules). 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)
|
STATUS The What failed. Mechanism. A pin move in this repo is not Missed control — mine to own. I had already recorded that "charly pin moves go through Fix. Why the required gate passed and CI did not. Agent: Agent: |
Review — PASSHead SHA: Security screen: PASS — pin bump only (8 files: Checklist: All applicable rules PASS or NA. Change class: dependency pin advance (code/config). Placement: The prior Comment dispositions:
Non-blocking notes (not rulebook-stated obligations, so not blocks):
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…O diagnostics gating a build (#1267) * fix(deps): pin plugin-box v0.2026327.2335, the release that stops INFO diagnostics gating a build charly required github.com/opencharly/plugin-box/candy/plugin-box v0.2026326.938, but opencharly/plugin-box#100 — `charly box validate` exits 0 on an INFO-tier diagnostic instead of gating the build with exit 1 on an already-arbitrated candy-version skew — shipped as git tag v2026.327.2335 / module v0.2026327.2335 (8cef2effe), the latest the proxy serves. Found by checking that every fix from the per-host config session is reachable from a shipped binary: spec v0.2026328.1115, sdk v0.2026328.1130 and charly v2026.328.1249 were landed and pinned (#1265); this one was not, so the compiled-in plugin still carried the old severity rule. Gate on this tree: the repo's `go` CI job reproduced verbatim — root `go test ./charly/...` (charly/ 283.3s, pluginsgen 155.0s), the `tools/*` GOWORK=off sweep, `gofmt -l charly tools` empty, golangci-lint v2.13.2 0 issues over charly/ and all five tools modules — 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 attribution tier and RCA the build NOTICE — no code change Round-1 review fixes. - A3: the tier was `fully tested and validated`, which requires the changed BEHAVIOUR to execute against the fresh rebuild. It did not: `box validate` turning an INFO diagnostic into a `notice:` line plus exit 0 was never exercised, because three live two-tag fixtures (a project naming two tags of one candy — the skew's shape) resolved and validated without the resolver emitting any INFO diagnostic (rc=0, zero `notice:` lines). The behavioural proof stays opencharly/plugin-box#100's test; what ran here is the resolution, the whole CI go job and the R9 build. Tier lowered to `analysed on a live system`, per the reviewer's stated ceiling. - R1/R10: the `check-generated-clean` NOTICE is now RCA'd with a measurement rather than explained in prose. Regenerating both generated files with the build's own corpus into a scratch dir: the refs table differs by exactly TWO `plugin-distro` rows (`kind:os`, `kind:source`) because pluginsgen indexes corpus repos at their DEFAULT BRANCHES, `plugins.go` is byte-identical, and `diff | grep -c plugin-box` is 0 for both files — so this pin provably cannot have produced the divergence. The residual (the committed index lagging the corpus by those two rows) is filed as #1268 under `## Filed issues`. 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
Advances the two contract pins the shipped binary is built from, so the per-host config fixes
reach the CLI:
github.com/opencharly/specv0.2026327.605v0.2026328.1115github.com/opencharly/sdkv0.2026327.1021v0.2026328.1130The same two pins move in the three
tools/*modules that mirror them (charly task mods-tidy),which is what
tools/gomod-canonical'sTestContractPinsMatchSharedenforces.What the binary gains:
~/.config/charly/charly.yml.spec/perhostis now that file's ONLY reader,decoder, lock and atomic write (
Lock,Apply,Update,Read,Get,Set); the git-refcache, the install ledger, the host snapshot and the deploy overlay all run through it.
replaced the
ledger:section with that stale snapshot, so two concurrent ledger writes eachdropped the other's record — 21 of 24 concurrently-added records lost, 5 of 5 runs, with the
SDK's new cross-writer test against the pre-change tree (refactor(deploykit,kit): every per-host config writer reads inside the shared lock sdk#632).
charly cache bypass --offcould print "git-ref cache bypasscleared — the cache resumes" and be undone seconds later by a long-lived process writing back
the
trueit loaded before the clear (bypassOwned, spec v0.2026328.1009). Measured on thishost with the pre-bump binary, 2026-11-24.
charly cache refresh/ClearCacheno longer deletes thewhole per-host file; it clears only the
cache:section.No charly source changes: charly writes no per-host config. Both sweeps, run and pasted:
Outside
_test.go, the only writer isinternal/pluginsgen(generated Go and workspace files,never the per-host config) plus one comment; the per-host path helpers are referenced by test
files only. Every other
os.WriteFilehit in the module is a test fixture.How tested
RCA for that NOTICE (the one anomaly in the pasted evidence).
plugins_refs_generated.goisthe committed index of the plugin corpus. The build regenerates it from the corpus refs the git
cache currently resolves; the cache on this host resolved at least one version-less corpus ref to
a DEFAULT BRANCH (
Resolved @github.com/opencharly/plugin-deploy-pod -> mainin this host'scharly configoutput the same hour), while this checkout pins that plugin at a tag — so theregenerated index differed and
check-generated-cleanrestored the tracked file. It is acache-state divergence, not a change in this diff: after the build,
cd charly && git status --shortprints nothing, so the tracked file is byte-identical to thecommit. A
--dev-pluginbuild takes the same path by design.Live check on this host,
2026-11-24:The file then read
trueagain while PRE-BUMP charly processes that had loaded the flag beforethe clear were still running (another session's
charly task pin-check; the umbrella-rootbinary, which this worktree's build does not replace, predates the bump): a writer without
bypassOwnedre-asserts the value it loaded. That is the defect this pin fixes, observed bothways on one host in one hour. The host's flag stays
trueuntil no pre-bump process is alive towrite it back, at which point a single clear with the rebuilt binary sticks.
The remaining slowness of that command (4 min wall, 31 s CPU) is the warm-up ref sweep, filed as
opencharly/spec#438; it is not the config write path this PR moves.
Authoring runtime (for the attribution tier): this session runs in Claude Code, and the
harness reports its model as
deepseek-v4.1-flash:cloud— provider Ollama cloud, modeldeepseek-v4.1-flash. The commit trailer'sollama-cloud/deepseek-v4.1-flashis that sameprovider/model pair.
Rulebook compliance
/charly-internals:go,/charly-internals:design,/charly-internals:git-workflow,/charly-internals:strict-policy,/charly-cache:cache.check-generated-cleanNOTICE is RCA'd above: a cache-state divergence restored bythe build script, with the tracked file proven clean. The
gocheck's failure on the previoushead (three
tools/*modules left on the old pins) is RCA'd in this PR's round-2 comment and fixedhere with
charly task mods-tidy; the whole CI job is now reproduced locally. The two defects that drove this change arefixed upstream and measured there; the remaining ref-cache sweep is in
## Filed issues.origin/main.PR's own claim (the binary carries them) is proven by
bin/charly versionand the live check.scripts/bootstrap-charly.shand reports itsCalVer; no shared install.
is no
disposable: truebed for a library pin, and no image, box or candy changed).mechanism and the writer unification.
Change classification
charly/go.mod/go.sum.malformed
ledger:section is now refused instead of being read as empty.copies of the file mechanics, including the ledger lost update).
Filed issues
git ls-remotesweep spec#438 — the ref cache's warm-up cold check accepts an age-less persistedlatest_tagsentry but requires a ≤1 h in-memory default-branch answer, so the FIRST projectload after that hour re-probes the whole corpus once (the batch saves fresh timestamps; later
loads in the hour are warm). Non-blocking: pre-existing, not introduced by this diff, and its
remedy is a design choice between a persisted fallback, a background refresh and a longer TTL —
all three change the freshness contract, so the issue records them rather than this PR picking one.
Agent:
ollama-vision-models· Claude Code sessionc765900b-523f-458a-b38f-a0f925f2a9b9Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)