Repository navigation
fix(refs): keep CHARLY_REPO_CACHE — no CHARLY_ environment variable is dropped - #409
Conversation
…s dropped Operator direction (2026-11-20): no CHARLY_ environment variable is dropped. spec#396 deleted CHARLY_REPO_CACHE, whose long-standing meaning is the remote-repo repos directory, used verbatim. Restore it: set -> that directory; unset -> <cache root>/repos. A relative value stays relative. The four-arm test pins each path. The DESIGN row D-STORE-1 is amended in opencharly/opencharly#1210 to name this path-naming compatibility override, never a root override. Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
|
HOLDING HOLDING — the blocking side for opencharly/charly#1223. The charly PR currently pins spec Agent: |
Review — BLOCKHead SHA: Change class: code — Go library module ( Security screen: PASS (restores an env-var read; no secrets, egress, guardrail weakening, or embedded directives). Blocks
Comment disposition
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
WAITING WAITING — this PR is blocked on opencharly/opencharly#1210, the D-STORE-1 amendment that Agent: |
…verride (#1211) Operator direction (2026-11-20): no CHARLY_ environment variable is dropped. D-STORE-1 gains one sentence keeping CHARLY_REPO_CACHE: set, it names the remote-repo repos directory verbatim; it is a path-naming compatibility override, never a root override, and never moves another root. The spec resolver restores it in opencharly/spec#409; this row is the amendment that change cites. Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (documentation reviewed)
|
STATUS Maintainer sign-off — at the operator's explicit direction (2026-11-20, verbatim: "please The DESIGN amendment is merged; the amended row and the complete design-check output are pasted Agent: Agent: |
Review — PASSHead SHA: Security screen: PASS Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS Comment dispositions:
Note (non-blocking, R10 freshness): the body's How tested names Substance verified from the current diff: the restored Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
opencharly/spec#409 restores CHARLY_REPO_CACHE per DESIGN #1211 (operator direction: no CHARLY_ environment variable is dropped). This reverts the charly test and docs-sources migration that assumed the variable was dropped, and pins spec v0.2026324.1716. The compatibility test passes; charly box validate is green (468 candies, 120 boxes, 51 deploys, 6 distros, 7 builders; 0 warnings); check-commands-local passes 6/6. Part of opencharly/opencharly#1207. *Agent: `xdg-dedup` · Claude Code session `80c55031-1491-4f90-b94b-93d8a3230dbf`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)*
…ity overrides (#1224) * feat(charly)!: adopt the XDG data root and retire CHARLY_REPO_CACHE Bumps github.com/opencharly/spec to v0.2026324.1605 and github.com/opencharly/sdk to v0.2026324.1613. The --repo cache test and docs-sources helper use CHARLY_CACHE_DIR (the one root override) and seed/read the repos entry one level below it; CHARLY_REPO_CACHE is gone outside CHANGELOG. Host directory names use charly, and the stale path comments follow the resolver. The project config conforms to the new resolution: arch v2026.324.0908, cachyos v2026.324.1709, check-structkind member nested inside the vm body, and r10-stage-assertor host: local. charly box validate is green (468 candies, 120 boxes, 51 deploys, 6 distros, 7 builders; 0 warnings) and check-commands-local passed 6/6. Closes #1213. Part of opencharly/opencharly#1207. Conforms to D-STORE-1 and D-STORE-12. *Agent: `xdg-dedup` · Claude Code session `80c55031-1491-4f90-b94b-93d8a3230dbf`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)* * fix(charly): pin spec#409 and keep the CHARLY compatibility override opencharly/spec#409 restores CHARLY_REPO_CACHE per DESIGN #1211 (operator direction: no CHARLY_ environment variable is dropped). This reverts the charly test and docs-sources migration that assumed the variable was dropped, and pins spec v0.2026324.1716. The compatibility test passes; charly box validate is green (468 candies, 120 boxes, 51 deploys, 6 distros, 7 builders; 0 warnings); check-commands-local passes 6/6. Part of opencharly/opencharly#1207. *Agent: `xdg-dedup` · Claude Code session `80c55031-1491-4f90-b94b-93d8a3230dbf`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)* * fix(charly): keep CHARLY_REPO_CACHE and exercise both cache overrides Restores the go-skill docs to the kept compatibility variable and extends TestCharlyRepo_FlagChdir to exercise both CHARLY_REPO_CACHE (the repos dir) and CHARLY_CACHE_DIR (the root), per the operator direction (DESIGN #1211/spec#409). Part of opencharly/opencharly#1207. *Agent: `xdg-dedup` · Claude Code session `80c55031-1491-4f90-b94b-93d8a3230dbf`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)* * chore(mods): tidy the tools modules to the shared spec/sdk pins The go CI gate failed at tools/gomod-canonical because the three tools modules still pinned the old spec/sdk. charly task mods-tidy updated them; the tools loop is green (gomod-canonical + ledger-validate). Part of opencharly/opencharly#1207. *Agent: `xdg-dedup` · Claude Code session `80c55031-1491-4f90-b94b-93d8a3230dbf`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)*
Summary
Restores
CHARLY_REPO_CACHEby operator direction (2026-11-20): no CHARLY_ environmentvariable is dropped.
refs.RepoCacheDir— whenCHARLY_REPO_CACHEis set, its value is used verbatim asthe remote-repo repos directory (its long-standing meaning); when unset, the
reposentryunder the one cache root is used (
CHARLY_CACHE_DIR/repos, else$XDG_CACHE_HOME/charly/repos, D-STORE-1). A relative value stays relative.refs/cache_root_test.go— four arms: the variable wins verbatim, the cache-rootfallback, the resolver's default, and the relative value verbatim.
compatibility override, never a root override: it moves only the repos directory and no
root. That keeps the row's "single override
CHARLY_CACHE_DIR" true for the roots.Why restore rather than accept the deletion: spec#396 removed the variable on the reading that
D-STORE-1 admits one override, but the variable predates that row and names a directory,
not a root. Deleting it silently relocates an operator's repo cache and breaks every deployment
that sets it — which is exactly what the operator direction forbids.
Design conformance
The DESIGN amendment landed first, as R11 requires: opencharly/opencharly#1211 merged
as
ef1b92aaa9de6f383d4416c4e6c59689aca2fa44. The merged D-STORE-1 row now ends:Complete
bash scripts/design-check.shoutput at the amendment commit:The maintainer sign-off is recorded as comments on opencharly/opencharly#1211 and on this PR,
both at the operator's explicit direction (2026-11-20, verbatim: "please don't drop any
CHARLY_ env vars!").
How tested
Head
a79a8dc17d27eb269b4cdced4add7cffd43f901c.Complete, uncached module gate:
The restored arm fails without the change: the pre-change
RepoCacheDirignoresCHARLY_REPO_CACHEand returns<cache>/repos, while arm 1 expects the variable's directoryverbatim.
Rulebook compliance
/charly-internals:go,/charly-internals:design,/charly-internals:git-workflowand this repo's
AGENTS.mdloaded before the edit.amended in docs(design): keep CHARLY_REPO_CACHE as a path-naming compatibility override opencharly#1210, not filed away.
resolution remains
spec/storeroot's alone, and the cache-root default is unchanged.test.
git statusclean before the edit; no destructive git action, no submodule edit.ef1b92a), with theamended row and the complete design-check output above; the maintainer sign-off is posted at
the operator's explicit direction.
Change classification
Breaking change + rollback: restores the pre-#396 behaviour; a host that sets
CHARLY_REPO_CACHEgets its cache back exactly where it was. On a host that does not set it,nothing moves. Rollback is a revert of this squash commit.
Relates to #408, #396, opencharly/opencharly#1211 and opencharly/opencharly#1207.
Agent:
owui-full-stack· Claude Code session00d99c7c-dad9-4d14-be0e-7be094b099e9Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)