Repository navigation
docs(design): a plugin declares its own OS packages, gated by a default-off local_install - #440
Merged
Merged
Conversation
…lt-off local_install DESIGN.md gains two requirements. D-CANDY-6: on a plugin candy, `package:` and `os_override:` declare the OS packages the plugin needs in order to run, resolved against the `os` family of the host that runs it; the `packaging:` metadata that builds charly's own native packages declares only what core needs, and a plugin's packages enter those packages through the union of the plugins a variant lists, never as a transcribed list. D-STORE-9: `local_install` is `false` by default, so charly installs nothing on the host unless the operator enables it; `charly local-install` is the one command that installs a declared plugin's OS packages there, `--local-install` enables it for one invocation, and while the switch is off every other path reports the missing packages (`charly doctor`) or fails naming them. Wired into §8.1 (the plugin's config), the §11.1 candy field table, D-STORE-2 (the user configuration holds the switch), the §19 host command group and D-CLI-5 (the OS packages are the one requirement beyond the binary). TODO.md records the decision and carries work item 6.9: the current-state evidence, the per-plugin config migration and the code work. Docs only: no code, no pin, no submodule, no behavioural config. Closes #439 Assisted-by: DSH DeepSeek V4.1 Flash (documentation reviewed)
Contributor
Review — PASSHead SHA: Security screen: PASS — docs-only diff ( Checklist: All applicable rules PASS or NA.
Comment thread: empty (0 comments) — nothing to disposition. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 25, 2026
… releases land (#1274) `charly task sync` on a tree current with origin/main (7f11b25): 74 leaf submodules rolled to their default-branch HEAD (11 moved), 321 leaf pins advanced in the index (11 moved) — 22 pins total. The five distro-* pin_map edges were re-pinned from charly's own gitlinks and did not move. Two of the moves are what this wave is for (#1273): sdk 2bfea23e -> dd87eb2c sdk#640 — a unit never runs as container root plugin-deploy-pod c87f056c -> c10caae #97 — a CDI device rides a keep-id unit via a derived devices-only spec; #95 writes the deploy entry's image before any overlay write The other 20 travelled on the same mechanism, each a merged upstream PR: charly #1275, layer-cdi #20, layer-vectorchord #13, marketplace #652, plugin-enc #11, pod-charly-mcp #15, pod-immich #23, pod-qwen3-tts #15/#13, spec #440, plus eleven unmaterialized paths advanced in the index (layer-devops-tools #8, layer-ollama-cuda #11, layer-ollama-rocm #9, layer-pre-commit #9, layer-versatiles-style #7, pod-airflow #15, pod-android-emulator-layer #21, pod-appium-server #9, pod-dbus #8, pod-jupyter-ml #15, pod-pmtiles-viewer #7). The plugin-deploy-pod advance moved engineDefaultRuntime from engine_ops.go:139-146 to 129-136, out from under the citation DESIGN A.13 records for "containerd namespace per deployment" (design/dulling.tsv). The row is re-anchored to the construct's new range and design/cite-baseline.tsv regenerated for that one row; the construct read at the new pin is the same one, and the regenerated baseline changes no other row. Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926` Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
An OS package a plugin needs in order to run —
podmanfor the pod kinds, theqemu/libvirtset for the vm kinds, the nerdctl stack,kind,openssh*,gocryptfs+fuse3,gnupg+pinentry,rust+a monospace font+procps-ngforrecord: gif,tesseractfor theartifact_contains_text:assertion — is declared today in charly's own package:charly/packaging/charly.yml'spackaging.formats.*.dependscarries 222 entries across its 6depends:lists, and no plugin candy declares an OS package it needs on the host in order to run. DESIGN.md never said where those packages belong, and nothing said whether charly may install them on the host at all. This lands both halves as design, inDESIGN.mdandTODO.mdonly:D-CANDY-6— on a plugin candy,package:andos_override:declare the OS packages the plugin needs in order to run, resolved against theosfamily of the host that runs it. Thepackaging:metadata that builds charly's own native packages declares only what core needs; a plugin's packages enter those packages through the union of the plugins a variant lists, never as a transcribed list, andcharly local-installinstalls them only when the configuration allows it (D-STORE-9). Pointered from §8.1 (the plugin's config) and carried by the §11.1 candy field rows forpackageandpackaging.D-STORE-9— the requested switch:local_installisfalseby default, so charly installs nothing on the host that runs it unless the operator enables it.charly local-installis the one command that installs a declared plugin's OS packages there; it refuses while the switch isfalseunless--local-installenables the install for that invocation, and while it isfalseevery other path reports the missing packages (charly doctor) or fails naming them. Wired intoD-STORE-2(the user configuration holds it, set throughcharly config), the §19 host command group, andD-CLI-5(a plugin's OS packages are the one requirement beyond thecharlybinary itself).TODO.md— the operator decision in §1 and work item 6.9: the current-state evidence, the per-plugin config migration, and the code work (release-packageunions a variant's plugins' packages; the newlocal-installcommand installs only under the switch; the transcribed lists are deleted).Scope, stated plainly. This diff is
DESIGN.mdandTODO.md, and nothing else. No code, no pin, no submodule gitlink, no plugin candy, no behavioural config. Two surfaces are deliberately left to their owning repos, because they are the current state this design replaces and editing them here would be an edit across a submodule boundary:charly/AGENTS.mdR9's rule that runtime OS dependencies belong in the charly candy'spackaging:section, and the transcribed lists incharly/packaging/charly.yml. Both are the implementation side of work item 6.9, whose evidence is in that item.DESIGN.cueis deliberately untouched, and that is a claim about the design's own consistency control, not an omission: the rule is not schema-expressible (packaging:is#Opaque, owned by the operations plugin, and the candypackage:/os_override:fields already exist), so a// D-CANDY-6tag would have had no line to enforce and would have demanded adesign/negative/case for a shape that does not exist. Control 2/5 below is the check that makes DESIGN.md and DESIGN.cue state the same design, and it passes on this head.Closes #439.
How tested
Every command below was executed for this PR; the three tree-dependent ones name the tree they ran in, because the design gate needs no submodule while the two sweeps do.
The design's own gate, on the committed tree of this head (
DESIGN.mdAppendix A.1: a change to DESIGN.md, DESIGN.cue, TODO.md or the check lands only with this output on the final tree):The blobs the PR carries are the exact bytes that gate ran against, before and after it:
The gate is not blind to what this PR adds. Three negative probes, each run on the byte-identical content (the hashes above) and each reverted immediately afterwards, so the committed tree is the passing one:
So all three new ids resolve as real requirements of DESIGN.md, and the ID-order discipline the new requirements were placed under is enforced rather than trusted. The 27 and 18 numbers above are the check's own planted-defect suites, every one caught.
The umbrella's commit gate ran on this commit and passed, with its own skips visible rather than silent:
Two facts in that transcript belong in the record rather than in a footnote. The gate used the main clone's charly binary because this worktree has no local build, and the hook prints that NOTICE itself; it is a worktree build (CalVer-stamped by
scripts/bootstrap-charly.sh), never a shared install, and no charly source is touched by this change. And the body linter insidehooks/pre-pushskipped because the marketplace submodule is not materialized in this worktree — so the body of this PR was linted by hand instead, from the marketplace checkout in the main clone, on this exact body file, exit 0.The claim that no plugin candy declares a host OS package is a completeness claim, so here is the sweep and its whole output. It ran in the main clone, the only tree whose plugin submodules are materialized:
Three of the 121 candy manifests carry a package list, and none of the three is a plugin declaring what it needs on the host:
plugin-marketplace's plugin candy installsgitinto the image its bed builds (its steps clone inside that image),plugin-mise/candy/curl-taris a content candy for the mise builder stage (grep -c "plugin:" plugin-mise/candy/curl-tar/charly.ymlreturns 0, so it is not a plugin candy at all), andplugin-package's two lines arepackage:verb inputs inside a plan check, not candy fields. What IS declared on the host today is charly's own package metadata, which is the diff's premise:The two surfaces this PR routes instead of touching, with the pointer that carries them:
The merge gate is the org-wide
validate / validatecheck run, required once by the ONE org ruleset; this repo ships no per-repo PR workflow (.github/workflows/holdstag-on-merge.ymlalone), so there is no repo gate this change class could have run instead.Rulebook compliance
/charly-internals:skills(where guidance belongs),/charly-internals:plugin(what a plugin candy is) and/charly-internals:git-workflowwere loaded before the first edit; the design's own gate is the one this change class owns (DESIGN.md Appendix A.1).~/.cache/charly/toolwas blocked and my| tail -20pipeline masked the failure astail's status (re-run with a writable cache; the final runs are unpiped with the exit code captured directly); and the commit's first attempt failed inhooks/pre-commitbecause a session worktree has nocharlysubmodule, socharly taskcould not load the project (fixed by materializing the submodule at the gitlink this branch records, not by bypassing the hook).D-CANDY-6andD-STORE-9; §8.1 carries a one-line pointer to the first, the §11.1 field rows carry the meaning of the two fields, and no sentence is duplicated between DESIGN.md and TODO.md beyond TODO.md's own job of recording the decision and the migration.charly/AGENTS.mdR9 and the transcribed lists are named in the Summary and in TODO item 6.9 as the implementation side, with the grep above showing the line that still stands in that repo today.feat/design-local-installbranch off fetchedorigin/mainin this session's own worktree, no force-push, no hook bypass, no--no-verify; the main clone's staged submodule gitlinks and itscharlycheckout were left untouched (the worktree's submodule has its own git dir under.git/worktrees/opencharly8/modules/charly).origin/mainbefore branching and the CUE toolchain the design check pins by digest.charly/bin/charly— a worktree build, never a shared install. Stated rather than glossed; this diff changes no charly source.bash scripts/design-check.sh, run on this committed tree, exit 0, with the frozen-blob proof and the three negative probes above. No disposable bed applies, and forcing one would prove nothing about prose.Change classification
Documentation only. Every path in the diff is a root
*.md; no code, pin, script, schema or behavioural config is touched. Gate:bash scripts/design-check.sh, run on this committed tree in this worktree,all controls pass, exit 0, plus the umbrellahooks/pre-commitgate on this commit (pre-commit: OK).Tier:
documentation reviewed.Agent: design-local-install
Assisted-by: DSH DeepSeek V4.1 Flash (documentation reviewed)