Skip to content

docs(design): a plugin declares its own OS packages, gated by a default-off local_install - #440

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/design-local-install
Oct 8, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/design-local-install

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Summary

An OS package a plugin needs in order to run — podman for the pod kinds, the qemu/libvirt set for the vm kinds, the nerdctl stack, kind, openssh*, gocryptfs+fuse3, gnupg+pinentry, rust+a monospace font+procps-ng for record: gif, tesseract for the artifact_contains_text: assertion — is declared today in charly's own package: charly/packaging/charly.yml's packaging.formats.*.depends carries 222 entries across its 6 depends: 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, in DESIGN.md and TODO.md only:

  • 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; a plugin's packages enter those packages through the union of the plugins a variant lists, never as a transcribed list, and charly local-install installs 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 for package and packaging.
  • D-STORE-9 — the requested switch: local_install is false by default, so charly installs nothing on the host that runs it unless the operator enables it. charly local-install is the one command that installs a declared plugin's OS packages there; it refuses while the switch is false unless --local-install enables the install for that invocation, and while it is false every other path reports the missing packages (charly doctor) or fails naming them. Wired into D-STORE-2 (the user configuration holds it, set through charly config), the §19 host command group, and D-CLI-5 (a plugin's OS packages are the one requirement beyond the charly binary 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-package unions a variant's plugins' packages; the new local-install command installs only under the switch; the transcribed lists are deleted).

Scope, stated plainly. This diff is DESIGN.md and TODO.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.md R9's rule that runtime OS dependencies belong in the charly candy's packaging: section, and the transcribed lists in charly/packaging/charly.yml. Both are the implementation side of work item 6.9, whose evidence is in that item.

DESIGN.cue is 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 candy package:/os_override: fields already exist), so a // D-CANDY-6 tag would have had no line to enforce and would have demanded a design/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.md Appendix A.1: a change to DESIGN.md, DESIGN.cue, TODO.md or the check lands only with this output on the final tree):

$ cd /home/atrawog/Sync/Atrapub/a/dsh/opencharly/.worktrees/design-local-install/opencharly
$ bash scripts/design-check.sh
== 1/5 toolchain
== 2/5 DESIGN.md ↔ DESIGN.cue
== 3/5 examples and negative cases
== 4/5 self-test of the consistency check
selftest design-consistency.sh: 27 planted defects
== 5/5 self-test of the example check
selftest design-examples.sh: 18 planted defects

design-check: all controls pass
$ echo $?
0

The blobs the PR carries are the exact bytes that gate ran against, before and after it:

$ git show HEAD:DESIGN.md | sha256sum
bd2da73e937c05f7d864b753da1578912691d9f0fbef8281643b11578e4486bd  -
$ git show HEAD:TODO.md | sha256sum
09d650dc079407e5c9163d47ad5d61e90e38b5b655d3cdc90d5221ef9775468e  -
$ git diff --stat origin/main...HEAD
 DESIGN.md | 15 ++++++++++-----
 TODO.md   |  5 +++++
 2 files changed, 15 insertions(+), 5 deletions(-)

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:

$ printf '\n| 12.9 | probe: D-CANDY-99 must not resolve | §11.1 | none | none |\n' >> TODO.md && bash scripts/design-consistency.sh
FAIL TODO.md:186: D-CANDY-99 is not a requirement of DESIGN.md
$ printf '\n| 12.9 | probe: D-STORE-99 must not resolve | §17 | none | none |\n' >> TODO.md && bash scripts/design-consistency.sh
FAIL TODO.md:188: D-STORE-99 is not a requirement of DESIGN.md
$ (plant a new requirement between D-CANDY-4 and D-CANDY-5) && bash scripts/design-consistency.sh
FAIL DESIGN.md:637: D-CANDY-7 out of order (expected D-CANDY-5)
FAIL DESIGN.md:638: D-CANDY-5 out of order (expected D-CANDY-6)
FAIL DESIGN.md:639: D-CANDY-6 out of order (expected D-CANDY-7)

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:

$ git commit -F /tmp/commitmsg.txt
pre-commit: NOTICE — using the main clone's charly binary: /home/atrawog/Sync/Atrapub/a/dsh/opencharly/charly/bin/charly
  (this tree has none; R9 prefers a worktree-local build, so re-run
   ./charly/scripts/bootstrap-charly.sh here if this tree's charly/ differs)
  SKIP  hooks/pre-push fired assertions: .../design-local-install/opencharly/marketplace/scripts is absent (the marketplace submodule is not materialized in this checkout)
  SKIP  materialize it with: git -C .../design-local-install/opencharly submodule update --init --depth 1 marketplace
check-pr-body-gate: OK
check-bed-watch.sh --self-test: OK (15 assertions)
pre-commit: OK
[feat/design-local-install 9558754] docs(design): a plugin declares its own OS packages, gated by a default-off local_install
 2 files changed, 15 insertions(+), 5 deletions(-)

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 inside hooks/pre-push skipped 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:

$ cd /home/atrawog/Sync/Atrapub/a/dsh/opencharly
$ ls -d plugin-*/candy/*/charly.yml | wc -l
121
$ for f in plugin-*/candy/*/charly.yml; do hits=$(grep -n -E "^ +(package|distro|packaging|depends|os_override):" "$f"); if [ -n "$hits" ]; then echo "$f:"; echo "$hits"; fi; done
plugin-marketplace/candy/plugin-marketplace/charly.yml:
46:        distro:
48:                package:
plugin-mise/candy/curl-tar/charly.yml:
7:        package: [curl, tar, gzip]
plugin-package/candy/plugin-package/charly.yml:
16:                package: package
20:              package:
21:                package: bash

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 installs git into the image its bed builds (its steps clone inside that image), plugin-mise/candy/curl-tar is a content candy for the mise builder stage (grep -c "plugin:" plugin-mise/candy/curl-tar/charly.yml returns 0, so it is not a plugin candy at all), and plugin-package's two lines are package: 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:

$ awk '/^ *depends:/{c++} END{print "depends lists: "c}' charly/packaging/charly.yml
depends lists: 6
$ grep -c "^ *- " charly/packaging/charly.yml
222

The two surfaces this PR routes instead of touching, with the pointer that carries them:

$ grep -n "Runtime OS dependencies" charly/AGENTS.md
58:- Runtime OS dependencies belong in the charly candy's `packaging:` section
$ grep -n "^| 6.9 |" TODO.md | cut -c1-40
146:| 6.9 | Every OS package a plugin needs

The merge gate is the org-wide validate / validate check run, required once by the ONE org ruleset; this repo ships no per-repo PR workflow (.github/workflows/ holds tag-on-merge.yml alone), so there is no repo gate this change class could have run instead.

Rulebook compliance

  • R0 - skills first: /charly-internals:skills (where guidance belongs), /charly-internals:plugin (what a plugin candy is) and /charly-internals:git-workflow were loaded before the first edit; the design's own gate is the one this change class owns (DESIGN.md Appendix A.1).
  • R1 - two anomalies were root-caused rather than worked around in this session, both recorded above with their evidence: my first design-check run reported exit 0 while actually dying at step 1/5, because the CUE cache write to ~/.cache/charly/tool was blocked and my | tail -20 pipeline masked the failure as tail'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 in hooks/pre-commit because a session worktree has no charly submodule, so charly task could not load the project (fixed by materializing the submodule at the gitlink this branch records, not by bypassing the hook).
  • R2 - both halves of the cutover are in one change: the mandate for a plugin's own declaration and the mandate for the default-off install switch, in the same two files, with their TODO work item.
  • R3 - one home per statement: the requirement bodies are D-CANDY-6 and D-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.
  • R4 - no workaround: the switch is designed as its own command with its own gate rather than a flag scattered over the commands that happen to need a package, and no bypass was taken for the commit hook.
  • R4a - N/A — no documented command and no defect is routed around; this is design prose, and the current-state rule it replaces is routed to its owning repo by name rather than edited across the submodule boundary.
  • R5 - the replaced rule is not left ambiguous: charly/AGENTS.md R9 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.
  • R6 - user work preserved: a fresh feat/design-local-install branch off fetched origin/main in this session's own worktree, no force-push, no hook bypass, no --no-verify; the main clone's staged submodule gitlinks and its charly checkout were left untouched (the worktree's submodule has its own git dir under .git/worktrees/opencharly8/modules/charly).
  • R7 - behaviour proven at the level a design-prose change has: the design's gate ran on this committed tree (exit 0), the new ids and their order are proven live by the three negative probes, and the two tree-dependent sweeps are pasted with the tree they ran in named.
  • R7a - N/A — no live external service is involved; the only network use was fetching origin/main before branching and the CUE toolchain the design check pins by digest.
  • R8 - the emitted artifact of this change is the pair (DESIGN.md, DESIGN.cue) itself, and it is validated at its boundary by the consistency control that compares them, not by inspection.
  • R9 - binary equals source: the worktree-local gate binary does not exist in this worktree, and the hook's own NOTICE says it used the main clone's charly/bin/charly — a worktree build, never a shared install. Stated rather than glossed; this diff changes no charly source.
  • R10 - this is a documentation change with no runtime target: its change-class gate is 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 umbrella hooks/pre-commit gate on this commit (pre-commit: OK).

Tier: documentation reviewed.

Agent: design-local-install
Assisted-by: DSH DeepSeek V4.1 Flash (documentation reviewed)

…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)
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 95587545795ed6c63ec9593001a142a8e678197c (branch: feat/design-local-install)

Security screen: PASS — docs-only diff (DESIGN.md, TODO.md), no secrets/egress, no gate/rulebook/validator-spec weakening, no scope mismatch.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: body accounts for every diff item (D-CANDY-6, D-STORE-9, §8.1 pointer, §11.1 rows, D-STORE-2, §19 host row, D-CLI-5, TODO §1 + item 6.9); docs-only class matches bash scripts/design-check.sh gate with pasted output; tier documentation reviewed legal for an all-*.md diff; footer ends with the italicized Assisted-by: line.
  • B5/B6/B10/B14: routed current-state rule (AGENTS.md R9, charly/packaging/charly.yml lists) names its exit (work item 6.9, cross-submodule boundary), not a vague deferral; the two R1 anomalies carry real RCAs; no forbidden framing.
  • B12/B17: no disposable bed applies to prose; the three negative probes + frozen-blob hashes + gate exit 0 are internally consistent.
  • B16: placement CORRECT — the design moves capability OUTWARD into plugin candies (package:/os_override:) and keeps core-only packages in charly's own metadata.

Comment thread: empty (0 comments) — nothing to disposition.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 8, 2026 12:36
@github-actions
github-actions Bot merged commit fcb8426 into main Oct 8, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 8, 2026
@aitrawog
aitrawog deleted the feat/design-local-install branch November 1, 2026 19:08
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DESIGN.md: a plugin declares its own OS packages — and installing them on the host is off by default (local_install)

1 participant