Repository navigation
feat(build)!: per-worktree binary is the ONE dev workflow - #131
Conversation
Remove the system-wide install machinery from the Taskfile — the `charly` (build+install), `install`, and `install-arch` tasks are deleted, no alias, no deprecated stub. `task build:binary` (builds ./bin/charly, CalVer-stamped, regenerates the compiled-in plugin wiring) is now the ONE development build task and NEVER touches the host; `task build:install-portable` remains as the explicit, separate, user-level $HOME/.local/bin action. Motivated by an incident in cutover #55: a host-wide `task build:charly` rebuild, run mid-session while mistaking a stale-binary guard trip for a precondition to fix rather than a signal the wrong bed was chosen, broke another teammate's per-worktree-binary verification on a shared multi-agent host. Sweeps every live `task build:charly` reference across the super repo (Taskfile.yml, taskfiles/Setup.yml, the stale-binary guard's remediation string in main_freshness.go/main.go, the schema-too-new load errors in unified.go and plugin-migrate/engine.go, pluginsgen's regenerated-file header, calver_script_test.go, the embedded charly.yml/build_defaults.yml comments, and CLAUDE.md's R10 gate matrix). Rewrites README.md's Install section around three empirically-verified paths (dev: task build:binary; personal PATH: task build:install-portable; native packages: task build:pkg:arch|fedora|debian -> dist/ artifact -> pacman -U/dnf install/apt install) and REMOVES the previously-documented `go install github.com/opencharly/charly/charly@latest` path, proven broken in an isolated GOBIN/GOMODCACHE scratch dir: `go install` hard-rejects the charly module's go.mod because it carries a `replace github.com/opencharly/sdk => ../sdk` directive. Also fixes a documentation divergence discovered while testing this cutover live: taskfiles/Build.yml claimed the pkg:* release-artifact builds run "in a podman container" — verified false (a live `task build:pkg:arch` run shells makepkg directly on the host, confirmed by reading all three formats' local_pkg.build_template). Assisted-by: Claude (analysed on a live system)
…ble's desc Per review: confirm (not just infer) that `binary`'s pluginsgen regeneration step is genuinely exercised, not merely present as an unexercised line. Corrupted charly/plugins_generated.go, ran `task build:binary`, verified the corruption was replaced with byte-identical committed content; repeated with the file fully deleted. Both prove the step runs and the build succeeds. Also scope `install-portable`'s own `desc:` with the PATH-shadow caution (solo/bootstrap use only, never during in-flight multi-teammate work), aligned with the README wording, per review. Assisted-by: Claude (analysed on a live system)
Wave-1 plugins docs batch: charly-binary discipline + policy sweep + hygiene. Adds the canonical "charly binary in a multi-teammate / multi-worktree setup" section to internals/skills/agents/SKILL.md (five live-incident- driven rules), sweeps every genuine `task build:charly`/`task build:install` dev-workflow mention across 10 skill/agent files to the new `task build:binary` per-worktree-only policy (paired with the superproject Taskfile deletion in opencharly/charly#131), and fixes a pre-existing trailing-whitespace hygiene item. Assisted-by: Claude (documentation reviewed)
…e CHANGELOG at 2026.197.1113 The R5 sweep in this cutover missed .gitignore's go.work comment (still named the deleted `task build:charly`) — fixed in the same super-repo-only scope this cutover already claims to cover. Also finalizes the merge-time CalVer: renames the placeholder CHANGELOG entry and documents the fresh pr-validator's independent re-verification (delta re-gate after gh pr update-branch onto post-#127 main, the pluginsgen hard-proof, the freshness-guard trip, and the live build:pkg:arch run). Assisted-by: Claude (analysed on a live system)
…ior commit was rename-only) The prior commit's `git add` failed on a stale pathspec and staged only the CHANGELOG rename, silently dropping the .gitignore fix and the CHANGELOG's content edits (H1 date + validator-findings section). This commit lands the content that commit intended. Assisted-by: Claude (analysed on a live system)
pr-validator — APPROVED ✅Change class: charly Go code + build/hook scripts (Taskfile.yml) + documentation (README/CLAUDE.md) — mixed, runtime tier (docs ride along). Checklist
Validator-discovered finding (fixed before merge)R5 gap: this PR's own claim — "sweep every live Independent re-verification (not taken on the author's word)
Test-methodology self-correction (disclosed per R1)My first freshness-guard trip used Cross-PR sweep (comment-intake + coordination)
DecisionAPPROVED. Every rule independently re-verified — including catching and fixing a real R5 gap the author's own sweep missed, and catching my own test-methodology error before it could produce a false finding. Proceeding to finalize the merge-time CalVer (2026.197.1113, already committed on the branch), squash-merge, and tag. Assisted-by: Claude (analysed on a live system) |
…ator findings Renames the final-round CHANGELOG entry to the merge-time CalVer and appends the fresh pr-validator's independent findings: the delta re-gate onto post-#131 main, the adversarial spot-check of the BoxConfig/Op/BundleNode collision-handling, the R5 sweep, the investigation resolving why ~28 additional vmshared spec-passthrough-shaped symbols correctly stay out of this cutover's scope (their consumers sit in the not-yet-started K4 migration wave), the cross-PR sweep, and the no-`!`-marker justification. Assisted-by: Claude (analysed on a live system)
…hrough symbols (task #16) vmshared→spec envelope-route repoint (task #16): all 23 spec-passthrough symbols in `charly/vmshared_aliases.go` repointed to reference `sdk/spec` directly instead of routing through `sdk/vmshared` (a forbidden mechanism-kit hop for core). These are E-envelope types the kernel/plugin boundary law says core should reference directly; the defect fixed was the route, never the reference. Zero behavior change. Symbols repointed, one commit per group (see CHANGELOG for the full per-commit collision-class breakdown): LibvirtDomain, LibvirtGraphicsListeners, MCPServerYAML, PackageItem, PortScope, PreemptibleConfig, TunnelYAML, ShellConfig, EnvDependency, ServiceEntry, InstallContext, BuildStageContext, CandyPluginDecl, DistroDef, VmDeployState, Matcher, MatcherList, PortSpec, CandyYAML, BoxConfig, Step, BundleNode, Op. Remaining in `vmshared_aliases.go` (correctly out of scope): 6 genuine `vmshared` mechanism functions with no `spec` equivalent, plus the deploykit-defined E-envelope symbols tracked separately as task #13, plus ~28 further spec-passthrough-shaped types whose charly-side consumers sit inside the not-yet-started K4 migration wave (deploy + config resolution) — their aliases dissolve naturally when K4 moves those call sites. R10: confirmation bed `check-sidecar-pod` PASS (12/12 steps, 382s). Independently re-verified by the fresh pr-validator: go build/vet/test/lint clean across charly + 5 touched plugin modules, on the delta-re-gated tree after `gh pr update-branch` onto post-#127-and-post-#131 main; adversarial spot-check of the BoxConfig/Op/BundleNode collision handling; R5 grep sweep clean (zero live bare-type stragglers). Assisted-by: Claude (analysed on a live system)
…er-drop heads (#1219) `./bin/charly task sync` — this repo's own pin verb, which advances EVERY pin this repo declares — moved the two `box/*` gitlinks that were behind the ref their own `.gitmodules` entries name: box/cachyos 7f0c6c15fe5d -> ba2c187a1626 (distro-cachyos main: #209's CDI VM-driver drop, #199, #211 and #212's pod-comfyui offload pins) box/fedora 01887aee5c9a -> e9696d3e85f8 (distro-fedora main: #129 and #131, the same VM-driver drop on the Fedora side) The other three (`box/arch`, `box/debian`, `box/ubuntu`) were already at the tips their `.gitmodules` declare. Both advances are fast-forwards onto merged heads (`git -C box/cachyos merge-base --is-ancestor 7f0c6c15fe5d ba2c187a1626` -> rc=0, and the same for fedora), so there is nothing to reconcile. Control after the wave: currency: 0 of 5 pin(s) NOT current [5 cur] What the `box/*` gitlinks actually govern here, measured rather than assumed (#1218): the `cachyos` namespace is composed by the @github TAG pin (`charly.yml:30`), so `charly box list boxes` exposes the tag's box names and not one `-cdi` box — the distro beds are NOT what this moves. The gitlink is what this repo's OWN gate reads: `charly/cue_kinds_corpus_test.go` (the `../box/*/box/*/charly.yml` corpus), `charly/refs_sweep_test.go` and `charly/build_test.go` (`LoadBuildConfigForBox` over this repo's production box/cachyos distro config). That is where the corpus was run, and it passes on the moved trees. This is the hop that lets the umbrella's `charly:box/cachyos` and `charly:box/fedora` edges become current — until it lands, both report `blocked-by charly:box/...` (behind). Agent: `edge-1182` · DeepSeek Harness session `a8d6ae4d-d0e0-4b37-8e6c-58081b9e6040` Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)
Summary
charly,install,install-arch) —task build:binarybecomes the ONE per-worktree dev build task and NEVER touches the host;task build:install-portableremains as the explicit, separate, user-level action.task build:charlyrebuild, run mid-session while mistaking a stale-binary guard trip for a precondition to fix rather than a signal the wrong bed was chosen, broke another teammate's per-worktree-binary verification on a shared multi-agent host.task build:charlyreference across the super repo (Taskfile.yml, taskfiles/Setup.yml, the stale-binary guard's remediation string, two schema-too-new load errors, pluginsgen's regenerated-file header, test comments, embedded-config comments, CLAUDE.md's R10 gate matrix).go install github.com/opencharly/charly/charly@latestpath — proven broken, not merely suspected (see verbatim evidence below).pkg:*release-artifact comment claimed a podman-container build; verified false.Test plan
go test ./...(charly module) — green, 110sgolangci-lint run ./...— 0 issuesgo vet ./...— cleangofmt -l— cleancharly box validate— exit 0task -l— confirms the new task set;build:charly/install/install-archgonetask build:binary's pluginsgen step PROVEN the hard way (not just inferred from a passing test) — verbatim belowtask build:install-portablerun live (verbatim below — caught and fixed a shared-host PATH-shadowing hazard mid-test)task build:pkg:archrun live — realdist/*.pkg.tar.zstartifacts produced, zero system-wide install (verbatim below); test artifacts cleaned up afterward,pkg/arch/PKGBUILD's expectedpkgver()dirt restoredgo installclaim RDD-verified in an isolated GOBIN/GOMODCACHE/GOPATH scratch dir — proven broken, removed from README (verbatim below)go install— the RDD verdict (why it's removed from README)charly/go.modcarriesreplace github.com/opencharly/sdk => ../sdk;go install pkg@versionhard-rejects this. Root cause confirmed, not assumed.Stale-binary freshness guard — tripped live, new remediation string
Rebuilt (
task build:binary) →./bin/charly box generateexits 0, no stale-binary error.task build:binary's pluginsgen step — proven the hard wayA parallel finding raised a legitimate concern: on pre-cutover
main,task build:binarydid NOT run the pluginsgen regeneration step (only the deletedcharlytask did) — soTestPluginsGenReproduciblepassing could just mean the committed file happened to already be current, not thatbinaryactually regenerates it. Proved it directly, twice:Repeated with the file fully DELETED (
rm -f charly/plugins_generated.go):task build:binaryrecreated it byte-identical to HEAD and the subsequent build succeeded (./bin/charly versionprinted a fresh CalVer both times). This confirms the pluginsgen step is genuinely IN this PR'sbinarytask body and exercised on every build, not merely an unexercised comment.task build:install-portable— run live, caught a real hazard mid-testRan it; it installed
./bin/charlyto$HOME/.local/bin/charlyas documented. Checking PATH resolution afterward found$HOME/.local/binprecedes/usr/binon this shared host —which charlynow resolved to my worktree's binary instead of the shared system package, which would have silently changed whichcharlyany OTHER teammate's bare-$PATHbed step resolves to. Removed the shadow immediately (rm -f $HOME/.local/bin/charly), confirmedwhich charly/charly versionrestored to the system package. Added a caution to the README about this exact shadowing risk on a shared host.task build:pkg:arch— run liveConfirmed real Zstandard-compressed package artifacts on disk, zero
sudo/pacman -Uinvoked (matches the documented "artifact only, install stays a separate explicit step" behavior). This run also proved thepkg:*comment's "podman container" claim false — makepkg ran directly viabash -con the host, confirmed both by the visible output and by reading all three formats'local_pkg.build_templates (none use a container). Fixed the comment in the same commit.Test-run cleanup: removed
dist/*.pkg.tar.zstand the ~750 MB of gitignored git clones + build treescharly box pkgleft inpkg/arch/(opencharly-git/,opencharly-sdk/,src/,pkg/), and restoredpkg/arch/PKGBUILD's expectedpkgver()dirt (git -C pkg/arch restore PKGBUILD).Review follow-up (2nd commit)
install-portable's owndesc:now carries the PATH-shadow caution too (aligned with the README wording), scoped "solo/bootstrap use only, never during in-flight multi-teammate work."Reported, not fixed in this PR (separate scope — see CHANGELOG for detail)
pkg/arch/PKGBUILD(a submodule) carries two stale comments referencing removed tasks (task install,task build:charly) — out of this cutover's super-repo-only scope; needs its ownpkg/archPR leg.charly box pkg(pre-existing, unchanged here) performs no cleanup of the git clones / build trees it leaves inpkg/arch/after a build — the oldinstalltask's cleanup covered only its OWN directmakepkginvocation, never this path. Elevatingtask build:pkg:archto the documented end-user path makes this more visible but is not a regression this cutover introduces.Assisted-by: Claude (analysed on a live system)