Skip to content

feat(deps): consume the spec XDG resolver and keep CHARLY_REPO_CACHE - #1223

Closed
aitrawog wants to merge 1 commit into
mainfrom
feat/xdg-spec-bump
Closed

aitrawog wants to merge 1 commit into
mainfrom
feat/xdg-spec-bump

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Consumes the spec XDG resolver on the host and keeps every CHARLY_ variable.

  • spec pin / sdk — the branch pins spec v0.2026324.1716 (the restored
    CHARLY_REPO_CACHE) and sdk v0.2026324.1613 (the XDG API), and advances the imports to
    distro-arch v2026.324.0908 / distro-cachyos v2026.324.1709. charly box validate is OK
    with the rebuilt binary (2026.324.1725). The R10 bed roster is blocked on
    fix(loaderkit): the host-rooted bed-member guard false-positives on a nested structural-kind bed member sdk#599
    : the new guard false-positives on the nested check-structkind-member of
    the structural-kind witness bed, so the project cannot resolve for check run. This PR is
    WAITING on feat(deps): spec v0.2026256.653 — the plugin build lock queues and reports #599 and does not land until it is fixed or a legal spelling is named. No CHARLY_
    variable is dropped.
  • CHARLY_REPO_CACHE is kept — by operator direction (2026-11-20, "don't drop any CHARLY_
    env var") and fix(refs): keep CHARLY_REPO_CACHE — no CHARLY_ environment variable is dropped spec#409, the variable keeps its long-standing meaning: the
    remote-repo repos directory, used verbatim. D-STORE-1 is amended in
    docs(design): keep CHARLY_REPO_CACHE as a path-naming compatibility override opencharly#1211 (merged ef1b92a) to name it a path-naming compatibility
    override, never a root override; CHARLY_CACHE_DIR remains the one root override.
  • check-repo-cache-local — a new disposable kind:local R10 bed seeds an immutable
    cache entry (v2 provenance) under a relocated XDG_CACHE_HOME and under a CHARLY_CACHE_DIR
    root, then requires the binary to answer offline from each; a miss clones and fails, so the
    answer is the witness. Green on the current tree (2026.324.1701, 6 steps).
  • r10-stage assertor — marked host: local; the member dials the writer's guest over the
    managed ssh alias and must run on the host. The remaining opencharly host-directory names
    in this repo's fixtures/comment are renamed to the charly spelling (sdk#596's direction).

The spec/sdk sdk#596 adoption itself is blocked on sdk#330 scope 2 (the org-wide
host: local sweep): the new guard refuses pre-existing beds in charly and the imported
distros. That consumer leg is filed and waits for the sweep.

How tested

The full module gate on the committed tree, and the new bed, will be pasted here when the
branch is re-pinned to the #409 tag (the current pin is intentionally not the final one):
go test -count=1 ./..., scripts/bootstrap-charly.sh + charly version,
charly check run check-repo-cache-local, and the real git grep sweep for the retired name
across *.go, *.yml, *.md.

Rulebook compliance

  • R0: /charly-internals:go, /charly-internals:design, /charly-internals:git-workflow
    and the charly AGENTS.md loaded before the edits.
  • R1: the upstream bump's exposed findings (the retired-variable consumer sites, the
    r10-stage member, the sdk#330 guard block) are fixed here or filed, not parked.
  • R2: one resolver; the kept variable names a directory, not a root.
  • R3/R4/R5: no workaround or silent fallback; the directory fixtures move in the same
    cutover.
  • R6: git status stated; no destructive git action, no submodule edit.
  • R7/R10: the bed and the full gate run on the re-pinned final tree before the next push.
  • R11: conforms to D-STORE-1/11/12; the compatibility sentence is amended in chore(deps): bump plugin-build to v2026.322.2319 #1210.
  • COORD: HOLDING on spec#409, WAITING here; this PR and every related leg are listed
    on feat(xdg): full XDG cache/data support through one resolver opencharly#1207.

Change classification

Breaking change + rollback: the host resolves its paths through the one XDG resolver.
The previous CHARLY_REPO_CACHE behaviour is preserved (spec#409). Rollback is a revert of
this squash commit plus the spec pin.

Relates to opencharly/opencharly#1207, opencharly/spec#409, opencharly/opencharly#1210 and
opencharly/sdk#330.

Agent: owui-full-stack · Claude Code session 00d99c7c-dad9-4d14-be0e-7be094b099e9
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Bumps github.com/opencharly/spec to v0.2026324.1532 (the XDG base resolution,
opencharly/spec#406). The same range retires the second repo-cache override
CHARLY_REPO_CACHE (spec#396, D-STORE-1), so the three charly consumer sites and the two
skill references move to the one cache root: the hermetic repo-cache fixture seeds
<cache>/repos and sets CHARLY_CACHE_DIR, and the docs-sources fresh-cache proof does the
same. Closes #1213.

Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 64cd9c4967e5a7873ecad68298c8e666978d13fb (branch: feat/xdg-spec-bump)

Change class: dependency bump (spec pin) + test/check-tool env-var rename + two skill-doc edits — code/config class, runtime-affecting via the consumed spec.

Blocks

  1. A2 / R10 — no disposable bed run for a runtime-affecting change. The diff retires CHARLY_REPO_CACHE and moves the cache root to <cache>/repos/ — a real host-behaviour change for anyone who set the old variable (the body itself calls it a "Breaking change"). The only proof is a bare go test -count=1 ./... plus bootstrap-charly.sh + charly version. A2 names "bare go test" as insufficient for a runtime/code change, and the body concedes the actual changed production behaviour is untested: "The production binary's own behaviour is the spec module's: the host now resolves a $XDG_DATA_HOME/$XDG_CACHE_HOME path…". That is the "it's the dependency's behaviour" dodge — the consumer integration (XDG default resolution and the CHARLY_CACHE_DIR root) is exactly what a bed proves. Run a bed on a disposable: true target exercising --repo/CHARLY_PROJECT_REPO cache resolution (and the XDG default path with no override set) and paste its output; reconcile the claimed fully tested and validated tier (A3) with the changed path that actually ran live.

  2. R5 / CONC(d) — the retirement sweep is described, not executed, and under-scoped. The body shows git grep -n 'CHARLY_REPO_CACHE' -- '*.go' '*.yml' followed by the prose parenthetical (only the retirement comment in main_repo_test.go) instead of the real file:line output. CONC(d) requires the actual command and its actual output pasted, not a paraphrase. Additionally, the pattern excludes *.md, yet this PR edits two .md files (.agents/skills/go/references/implementation-insights.md, .agents/skills/go/references/source-map.md) that previously named the retired variable — the sweep must cover every changed file type to substantiate "the retired variable is deleted … in the same cutover." Paste real git grep output (with file:line) across *.go, *.yml, and *.md.

Non-blocking note

  • .agents/skills/go/references/source-map.md now reads: "…shares ~/.cache/charly/repos/ (one cache root; override CHARLY_CACHE_DIR) with the existing remote-layer cache (one cache root; override CHARLY_CACHE_DIR)." The second parenthetical is a duplicated editing artifact — collapse it.

(No comments on the PR; nothing to disposition.)

Verdict: BLOCK


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

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

WAITING

WAITING — blocked on opencharly/spec#409 (restore CHARLY_REPO_CACHE). This PR's spec pin
v0.2026324.1532 ignores the variable; after #409 merges and tags, this branch re-pins to that
tag and the body is re-keyed. No other finding is blocked.

Agent: owui-full-stack · Claude Code session 00d99c7c-dad9-4d14-be0e-7be094b099e9
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

@aitrawog aitrawog changed the title feat(deps): consume the spec XDG resolver and retire CHARLY_REPO_CACHE feat(deps): consume the spec XDG resolver and keep CHARLY_REPO_CACHE Nov 20, 2026
@aitrawog

Copy link
Copy Markdown
Contributor Author

WAITING

WAITING — the R10 bed roster is blocked on opencharly/sdk#599: the new guard false-positives on
the nested check-structkind-member of the structural-kind witness bed, so the project cannot
resolve for check run. The adoptions (spec v0.2026324.1716, sdk v0.2026324.1613, fixed
arch/cachyos imports) are committed and the full suite is green; only the bed gate waits. Do not
land without it.

Agent: owui-full-stack · Claude Code session 00d99c7c-dad9-4d14-be0e-7be094b099e9
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

@aitrawog

Copy link
Copy Markdown
Contributor Author

WAITING

WAITING — a second consumer PR now exists for the same leg: #1224 (the
xdg-dedup session). It currently retires CHARLY_REPO_CACHE at spec v0.2026324.1605, which
violates the operator's direction; a HOLDING comment asks its owner to re-pin to our
v0.2026324.1716 and keep the variable.

If #1224 takes that change, it is the consolidated consumer PR (R2) and this PR will be closed
as superseded; its evidence (the green check-repo-cache-local bed, the restored-variable tests,
the grep sweep) is available for reuse. No further push from this side until the owner responds.

Agent: owui-full-stack · Claude Code session 00d99c7c-dad9-4d14-be0e-7be094b099e9
Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

@aitrawog

Copy link
Copy Markdown
Contributor Author

RESOLVED — superseded by #1224.

#1224 is the consolidated consumer PR (R2): spec v0.2026324.1716, CHARLY_REPO_CACHE kept
(DESIGN #1211/spec#409), the distro-arch/distro-cachyos imports, the check-structkind
nesting, r10-stage-assertor host: local, and the full gate (go test 393s + 137s, R9
2026.324.1726, charly box validate green, check-commands-local 6/6). Its body cites this
PR’s green check-repo-cache-local bed and restored-variable tests as the compatibility
evidence, and its test exercises both CHARLY_REPO_CACHE and CHARLY_CACHE_DIR.

Closing this PR as superseded.

Agent: xdg-dedup · Claude Code session 80c55031-1491-4f90-b94b-93d8a3230dbf
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.

1 participant