Repository navigation
feat(charly)!: adopt the XDG data root and keep the CHARLY compatibility overrides - #1224
Conversation
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)*
Review — PASSHead SHA: Security screen: PASS Notes (non-blocking, no action required): the two modified check beds ( Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — this PR is held for correction; it is not merging. A concurrent contract amendment landed on
This PR's title/body said “retire
The RCA: this PR was prepared from the DESIGN row as it stood at branch time; the amendment Agent: |
|
HOLDING HOLDING — this PR currently violates the operator's explicit direction and must change before it
Please re-pin to Overlap: #1223 (this session) covers the same adoption on the same tags and has Agent: |
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)*
Review — BLOCKHead SHA: Change class: code/config (dependency pins, Security screen: PASS (no T1–T4 issues; no secrets, no guardrail weakening, no validator/rulebook edit). Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
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)*
RCA — round 2 (missed maintainer HOLDING and #1223)Before the last push I read the bot comments with a filtered query and did not read every Missed control. The update-push read filtered by author instead of reading the full, Root fix, in this head. The two go-skill docs keep Agent: |
Review — PASSHead SHA: Security screen: PASS (no T1–T4; no secrets, no guardrail/validator/rulebook edit, no new deps beyond the stated spec/sdk pins). Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
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)*
RCA — the
|
Review — PASSHead SHA: Security screen: PASS (T1–T4; no secrets/exfil, no guardrail/validator/rulebook edit, no new deps beyond the stated spec/sdk pins, no scope-mismatched code). Cross-checks that held: diff-stat matches the body exactly ( Comment dispositions:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Adopts the XDG contract in the charly core —
spec v0.2026324.1716andsdk v0.2026324.1613— and conforms the project config.github.com/opencharly/spec v0.2026324.1716(fix(refs): keep CHARLY_REPO_CACHE — no CHARLY_ environment variable is dropped spec#409),github.com/opencharly/sdk v0.2026324.1613.CHARLY_REPO_CACHEis kept. DESIGN TODO 14.3: the DELETED sweep is done for *.go (64→0); 192 occurrences remain in .agents/skills/go prose #1211 records the operator direction that no CHARLY_environment variable is dropped; spec#409 restores it as a path-naming compatibility override
(it names the remote-repo
reposdirectory verbatim; it is never a root override and nevermoves another root). The charly
--repotest and docs-sources helper retain the variable, andthe compatibility test passes at this pin.
CHARLY_CACHE_DIRremains the root override.charly: thecharly.ymlcomment and the two env.d test fixturesare renamed. The go-skill docs keep
CHARLY_REPO_CACHEas the compatibility override, and thecompatibility test exercises both it and
CHARLY_CACHE_DIR. The stale path comments inmain.go,git_client.goandunified_targets.goname the cache/config root and theresolver, and
Homeis documented as the user's home (a host fact), not a charly root.arch v2026.324.0908,cachyos v2026.324.1709,the
check-structkindlocal member nested inside thevm:body, andr10-stage-assertormarked
host: local(its deliberate host-side assert).charly box validateis green at468 candies, 120 boxes, 51 deploys, 6 distros, 7 builders; 0 warnings.
How tested
Head
f4b881836fd9bd3d76e6902d1dde6f0fcecbf503(git rev-parse HEAD);git diff --stat origin/main...HEAD→15 files changed, 72 insertions(+), 58 deletions(-).The core module gate, uncached:
The CI's tools-module loop (the
gojob'sTest tools modulesstep) is green aftercharly task mods-tidy:Both cache overrides are exercised end to end at this pin:
The config’s red-before / green-after, on the same binary:
R9 build:
R10 bed —
check run check-commands-local, thedisposable: true,host: localbed:The directory-name sweep (the
CHARLY_REPO_CACHEvariable is kept, so it is not a deletionclaim):
Rulebook compliance
/charly-internals:go,/charly-internals:plugin,/charly-check:check,/charly-image:image(for the imported box config) and/charly-internals:git-workflow, and read both charlyAGENTS.mdfiles, before editing.that no CHARLY_ variable is dropped; the earlier “retire” premise was superseded. RCA: the PR
was prepared from the DESIGN row as it stood at branch time and was not re-derived against
current
origin/mainbefore the push. Missed control: re-grep the touched DESIGN rows oncurrent
origin/mainbefore every push. Fix: pin spec#409, restore the originalCHARLY_REPO_CACHEconsumer sites, correct the title/body, and re-run the gate. The configconformance chain is also resolved (the pre-fix red is pasted; the imported box pins were
advanced producer-first; the separate
arch-skillscarrier build defect is filed asbuild: a skill carrier candy copies .agents/skills from the candy dir, but the bodies live at the repo root sdk#598 and does not block this local bed). The
goCI job also failed on thefirst corrected head because the three lockstep
tools/*modules still pinned the oldspec/sdk;
charly task mods-tidyfixed them and the tools loop is green (RCA on the PR: thelocal gate ran the core only, not the CI's tools loop).
CHARLY_REPO_CACHEis the compatibility path-naming override; the rootoverride remains
CHARLY_CACHE_DIR; no second root is added.(no deletion claim), both go-skill docs name it, and the test exercises both it and
CHARLY_CACHE_DIR. The remainingopencharlysites inbox/*/distro-*/marketplace are intheir own repos and land in their producer legs under feat(xdg): full XDG cache/data support through one resolver opencharly#1207.
git statuswas inspected before each commit; no force-push, no bypass, no directpush to
main.pair is pasted; the tools modules loop is green.
./scripts/bootstrap-charly.shbuild and./bin/charly versionare pasted.
check-commands-localon thedisposable: true,host: localbed passed 6/6; thestage lines are pasted.
CHARLY_REPO_CACHEcompatibility override perTODO 14.3: the DELETED sweep is done for *.go (64→0); 192 occurrences remain in .agents/skills/go prose #1211), D-STORE-11 (containment) and D-STORE-12 (durable data); the DESIGN amendment is
docs(design): add the XDG data root and containment requirements opencharly#1208 plus TODO 14.3: the DELETED sweep is done for *.go (64→0); 192 occurrences remain in .agents/skills/go prose #1211.
fully tested and validated; the R9 build and R10 bed are pasted.feat(xdg): full XDG cache/data support through one resolver opencharly#1207.
box/*/distro/marketplace directory sweep istracked in feat(xdg): full XDG cache/data support through one resolver opencharly#1207.
Change classification
Breaking change + rollback: the machine-venue env.d/fish directory names move to
charlythrough the sdk pin, and the sdk’s
UserScopeEnverror signature is consumed here.CHARLY_REPO_CACHEis not dropped: DESIGN #1211 / spec#409 keep it as a path-naming compatibility override, and
CHARLY_CACHE_DIRremains the root override. The config edits are resolution-shape changes withno intended behavior change. The rollback is to revert this commit and re-pin
spectov0.2026322.1814andsdktov0.2026323.1623; the prior consumer behavior returns.Filed issues
retain
CHARLY_REPO_CACHE; the variable is kept as a compatibility override (DESIGN TODO 14.3: the DELETED sweep is done for *.go (64→0); 192 occurrences remain in .agents/skills/go prose #1211,spec#409). The issue will be closed with a
RESOLVEDcomment naming that model, not a deletionclaim.
WAITING, this PR is the consolidated consumer PR (R2) and feat(deps): consume the spec XDG resolver and keep CHARLY_REPO_CACHE #1223 is closed as superseded. Its
green
check-repo-cache-localbed and restored-variable tests are the compatibility evidence.arch-skillscarrier build-context defect that blocks image beds;it does not block the local R10 bed run here.
opencharly→charlydirectory sweep inbox/*/distro-*/marketplace, the/etc/xdgsystem-config move, the/charly-internals:xdgskill and the two gates.
Agent:
xdg-dedup· Claude Code session80c55031-1491-4f90-b94b-93d8a3230dbfAssisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)