Skip to content

refactor(storekit): re-export the roots resolver instead of computing it - #499

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/storeroot-reexport
Nov 11, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/storeroot-reexport

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

storekit/roots.go stops COMPUTING the four roots and starts RE-EXPORTING them.

Leg 1 (opencharly/spec#303, tagged v0.2026315.2118) moved the roots and the single
CHARLY_CACHE_DIR override into github.com/opencharly/spec/storeroot, because charly core —
the plugin HOST — may import only spec/* and therefore could never resolve its cache root
through a mechanism kit (opencharly/charly#1119). This PR is leg 2: the sdk side of that move.

What the file is now:

type Root = storeroot.Root
const (
	RootConfig  = storeroot.RootConfig
	RootCache   = storeroot.RootCache
	RootState   = storeroot.RootState
	RootRuntime = storeroot.RootRuntime
)

func Dir(r Root) (string, error) { return storeroot.Dir(r) }
func CacheDir() (string, error) { return storeroot.CacheDir() }
  • No second implementation. Dir and CacheDir delegate; Root is an ALIAS, so
    storekit.Root and storeroot.Root are one type and a value crosses the boundary in either
    direction with no conversion.
  • The public API does not move. Root, the four consts, Dir, CacheDir, StoreDir and
    NamedStores keep their names, signatures and results, so every plugin that imports
    github.com/opencharly/sdk/storekit — kit, buildcache, buildkitdrive, artifactkit —
    compiles and behaves exactly as before.
  • StoreDir and NamedStores stay here, because they are store ADDRESSING, not root
    resolution: they join a store name onto the cache root and test the oci-layout marker. They
    now inherit the root from the contract resolver like everything else.
  • require github.com/opencharly/spec is bumped to the tag that carries the new package.

This is the lockstep leg. The bump and the re-export are one commit on purpose: an sdk that
bumped spec without re-exporting would leave the roots reachable only where they now are, and a
re-export with no bump would not resolve. The measured straddler is not vmshared (it compiles
against the new spec unchanged) — it is the reason the bump cannot be separated from the code:
sdk's own storekit is the file that must stop computing.

Files in this diff:

file what it is
storekit/roots.go the re-export (was: 153 lines of root computation)
storekit/roots_test.go NEW — the re-export's own coverage, per root
go.mod require github.com/opencharly/spec → v0.2026315.2118
go.sum the hashes that bump adds

git diff --stat origin/main...HEAD:

 go.mod                 |   2 +-
 go.sum                 |   2 +
 storekit/roots.go      |  92 ++++++++++---------------
 storekit/roots_test.go | 177 +++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 215 insertions(+), 58 deletions(-)

This head is

ef7bb179d3d2bba4fb6904e64a738c66e9e1a088

How tested

Every command below was run against this head (ef7bb179d3d2bba4fb6904e64a738c66e9e1a088) and pasted from its capture file.

1. Behaviour-identical — a three-way dump, four conditions, byte-identical

One probe (probe_roots_scratch/main.go, never committed) prints all four roots plus CacheDir.
It was built three times against three implementations and run under the same four environment
conditions, then the transcripts were diffed pairwise:

  • A sdk @ origin/main — storekit BEFORE the move (the reference).
  • B spec @ leg 1's tag — storeroot (the new home).
  • C this head — storekit AFTER the move (the re-export).
pair command result
A vs B diff -u before.txt after.txt rc=0, no output
A vs C diff -u before.txt sdk-after.txt rc=0, no output
B vs C diff -u after.txt sdk-after.txt rc=0, no output
$ diff -u $S/before/A_default.txt $S/sdk-final/A_default.txt; echo "diff rc=$?"
(diff printed NOTHING)
diff rc=0
$ diff -u $S/after/A_default.txt $S/sdk-final/A_default.txt; echo "diff rc=$?"
(diff printed NOTHING)
diff rc=0

# A, B and C are byte-identical; this is C — this head, resolving through the real tag:
$ cat $S/sdk-final/A_default.txt
config   /home/atrawog/.cache/crr/xdg/config/charly
cache    /home/atrawog/.cache/crr/xdg/cache/charly
state    /home/atrawog/.cache/crr/xdg/state/charly
runtime  /home/atrawog/.cache/crr/xdg/run/charly
cacheDir /home/atrawog/.cache/crr/xdg/cache/charly
--- cond B (CHARLY_CACHE_DIR absolute)
config   /home/atrawog/.cache/crr/xdg/config/charly
cache    /home/atrawog/.cache/crr/xdg/relocated-cache
state    /home/atrawog/.cache/crr/xdg/state/charly
runtime  /home/atrawog/.cache/crr/xdg/run/charly
cacheDir /home/atrawog/.cache/crr/xdg/relocated-cache
--- cond C (CHARLY_CACHE_DIR relative)
config   /home/atrawog/.cache/crr/xdg/config/charly
cache    rel-cache
state    /home/atrawog/.cache/crr/xdg/state/charly
runtime  /home/atrawog/.cache/crr/xdg/run/charly
cacheDir rel-cache
--- cond D (every XDG var unset, HOME pinned)
config   /home/atrawog/.cache/crr/xdg/home/.config/charly
cache    /home/atrawog/.cache/crr/xdg/home/.cache/charly
state    /home/atrawog/.cache/crr/xdg/home/.local/state/charly
runtime  /home/atrawog/.cache/crr/xdg/home/.local/state/charly
cacheDir /home/atrawog/.cache/crr/xdg/home/.cache/charly

The four conditions: (A) every XDG_* pinned to a distinct scratch path with CHARLY_CACHE_DIR
unset; (B) CHARLY_CACHE_DIR absolute; (C) CHARLY_CACHE_DIR relative (rel-cache); (D) every
XDG_* unset with HOME pinned — which is where the runtime root falls back to the state root.

2. The module's own gates, on the committed tree

$ export GOWORK=off GOTMPDIR=/home/atrawog/.cache/go-tmp      # real module resolution, no dev workspace
$ go build ./...; echo "build rc=$?"
build rc=0
$ go vet ./...; echo "vet rc=$?"
vet rc=0
$ go test ./... -count=1 > capture; echo "test rc=$?"
test rc=0
$ grep -c '^ok' capture
19
$ grep -E '^FAIL' capture        # (no output)
$ gofmt -l .                     # (no output)
$ for arch in amd64 arm64 arm 386; do GOOS=linux GOARCH=$arch CGO_ENABLED=0 go build ./...; echo "  $arch rc=$?"; done
  amd64 rc=0
  arm64 rc=0
  arm rc=0
  386 rc=0

Lint, and which toolchain. golangci-lint here is v2.13.2 built with go1.27.3-X:nodwarf5
and the host go is the same go1.27.3-X:nodwarf5 — the pair whose embedded type-checker reads
only export-data v4 while go1.27 writes v5. So the lint ran under GOTOOLCHAIN=go1.26.8, the
toolchain ci.yml installs:

$ ~/go/bin/golangci-lint --version
golangci-lint has version 2.13.2 built with go1.27.3-X:nodwarf5 from (unknown, modified: ?, mod sum: "h1:bCyq3E4vo9qwzifjpzJqYndEt7Ncva80qkk8G2B4TXU=") on (unknown)
$ GOTOOLCHAIN=go1.26.8 go version
go version go1.26.8 linux/amd64
$ GOTOOLCHAIN=go1.26.8 GOWORK=off ~/go/bin/golangci-lint run ./...; echo "lint rc=$?"
0 issues.
lint rc=0

3. What the delegation's coverage actually catches — one measured pair, and a correction

The package's PRE-EXISTING tests already catch a Dir that stops distinguishing roots at all,
because they require an unknown root to error. Measured, unfiltered, with this PR's new test file
set aside:

$ # plant: Dir returns CacheDir() for EVERY root; roots_test.go moved aside
$ GOWORK=off go test ./storekit/ -count=1; echo "rc=$?"
--- FAIL: TestExportedConstantsAndRootsAreContract (0.00s)
    storekit_test.go:527: Dir accepted an unknown root name
FAIL
FAIL	github.com/opencharly/sdk/storekit	0.637s
rc=1

What they do NOT pin is each root's RESOLVED VALUE: storekit_test.go:510-527 accepts any
error-free path for the config and state roots and only compares runtime against state. So a
mis-mapping inside the delegation is invisible to them, and that is the class
storekit/roots_test.go exists for. The pair, measured arm against arm:

$ # ARM 1 — plant: inside Dir, RootConfig is rewritten to RootState; WITH roots_test.go present
$ GOWORK=off go test ./storekit/ -count=1; echo "rc=$?"
--- FAIL: TestDirReExportPinsEveryRoot (0.00s)
    roots_test.go:55: Dir(config) = "/home/atrawog/.cache/go-tmp/TestDirReExportPinsEveryRoot3998715870/001/xdg-state/charly", want "/home/atrawog/.cache/go-tmp/TestDirReExportPinsEveryRoot3998715870/001/xdg-config/charly"
    roots_test.go:64: Dir(config) = "/home/atrawog/.cache/go-tmp/TestDirReExportPinsEveryRoot3998715870/001/xdg-state/charly" but the contract resolver returns "/home/atrawog/.cache/go-tmp/TestDirReExportPinsEveryRoot3998715870/001/xdg-config/charly" — this package must re-export ONE implementation, not keep its own
--- FAIL: TestCacheDirReExportHonoursTheOneOverride (0.00s)
    roots_test.go:114: Dir(config) = "/home/atrawog/.cache/go-tmp/TestCacheDirReExportHonoursTheOneOverride1843891173/001/xdg-state/charly" with CHARLY_CACHE_DIR set, want "/home/atrawog/.cache/go-tmp/TestCacheDirReExportHonoursTheOneOverride1843891173/001/xdg-config/charly" — the override relocates the cache root ONLY
FAIL	github.com/opencharly/sdk/storekit	0.0…s
rc=1
$ # ARM 2 — the SAME plant, roots_test.go moved aside: the pre-existing suite is blind to it
$ GOWORK=off go test ./storekit/ -count=1; echo "rc=$?"
ok  	github.com/opencharly/sdk/storekit	0.636s
rc=0
$ cp <the saved original> storekit/roots.go
$ sha256sum storekit/roots.go        # unchanged from before the plant
RESTORED BYTE-IDENTICAL
$ GOWORK=off go test ./storekit/ -count=1
ok  	github.com/opencharly/sdk/storekit	0.536s

Both arms are ASSERTION-level: the planted code compiles, so no build error can be mistaken for the
red.

And a correction this PR owes, because it is the same defect the issue is about. My first
measurement of this question was taken with a FILTERED go test -run 'TestCacheRoot|TestNamedStores|TestOrphanedLayouts',
which excluded the package's own gate — and the filtered run stayed green, from which I wrongly
concluded the package could not see the break at all. That is exactly the missed control
opencharly/charly#1119's own RCA records ("measured with … a FILTERED go test — the filter
excluded the package's own gate"). The unfiltered re-measurement above is what stands, it is why
this section reads as two arms instead of a "gap", and the new test file's header states the same
distinction so the next reader is not misled either.

4. Attribution evidence (A3)

$ dsh --version
0.2.1-rc.2

$ env | grep -E '^DSH_(PROFILE|SESSION_ID)='
DSH_PROFILE=web
DSH_SESSION_ID=85d64ba8-b11b-44ae-91dd-f6be77ffe8ee

Rulebook compliance

  • R0 — skills first. /charly-internals:git-workflow, /charly-internals:go,
    /charly-internals:strict-policy and /charly-internals:go-quality were loaded before the
    first tool action, and sdk's own AGENTS.md was read from origin/main before the first edit.

  • R1 — RCA every anomaly, then fix it or file it. Two fired, both on this change's own
    surface, both fixed here. (a) The first lint run returned 2 findings on the new test file
    (ST1023 on var asContract storeroot.Root = RootCache, unconvert on
    storeroot.Root(root)) — both were correct, and both were fixed by REMOVING the conversion and
    the annotation, which incidentally makes the test stronger: the calls now type-check only
    because the alias makes the two names one type. (b) The new test file's JUSTIFICATION was
    first drafted from a FILTERED run and was wrong — the pre-existing suite does catch a collapsed
    Dir — so §3 was re-measured unfiltered, arm against arm, and the claim narrowed to the class
    the old suite is genuinely blind to (a per-root mis-mapping); the new file's own header states
    the same distinction.

  • R2 — no duplication. This PR DELETES the second implementation: the four-root computation
    leaves storekit entirely, and what remains is an alias, four const re-exports and two
    delegating functions. grep -n 'os.UserCacheDir\|filepath.Join(base, "charly")' storekit/*.go
    hits nothing after this change.

  • R3 — no workarounds. Nothing is sleep- or retry-shaped; the delegation is the mechanism.

  • R4 — product before prose. The package doc was rewritten to describe present code: the roots
    are the contract's, and this package re-exports them.

  • R5 — hard cutover, legacy deleted. The old computation is gone in the same commit that adds
    the delegation — no shim, no dual path, no deprecated marker, nothing kept "just in case".

    The identifier-keyed sweep, CALIBRATED IN BOTH DIRECTIONS: the predicate is the set of calls the
    deleted computation made, and it must match on origin/main (where that code lives) and match
    nothing on this head. Both halves, run here:

    $ PAT='os\.UserConfigDir|os\.UserHomeDir|os\.UserCacheDir|os\.Getenv\(.XDG_|Join\(base, .charly.\)'
    $ git grep -nE "$PAT" origin/main -- storekit/roots.go          # calibration: MUST match
    origin/main:storekit/roots.go:72:		base, err := os.UserConfigDir()
    origin/main:storekit/roots.go:76:		return filepath.Join(base, "charly"), nil
    origin/main:storekit/roots.go:78:		if v := os.Getenv("XDG_STATE_HOME"); v != "" {
    origin/main:storekit/roots.go:81:		home, err := os.UserHomeDir()
    origin/main:storekit/roots.go:87:		if v := os.Getenv("XDG_RUNTIME_DIR"); v != "" {
    origin/main:storekit/roots.go:104:	base, err := os.UserCacheDir()
    origin/main:storekit/roots.go:108:	return filepath.Join(base, "charly"), nil
    $ git grep -cE "$PAT" origin/main -- storekit/roots.go
    origin/main:storekit/roots.go:7
    $ grep -nE "$PAT" storekit/*.go; echo "grep rc=$?"    # this head: MUST be empty
    (no output)
    grep rc=1
    

    Seven removed call sites, zero survivors. What the file still legitimately uses is the STORE
    side — filepath.Join(root, name) in StoreDir and os.ReadDir/os.Stat in NamedStores —
    which is why the predicate names the calls, not the packages.

    The one sibling prose that repeated the old ownership claim — storekit/roots.go's package doc,
    which said DESIGN puts "the store and its roots" here — is rewritten in this commit, not left for
    a follow-up.

  • R6 — preserve user work; Git safety. git status read before the first edit and after each
    step; the session worktree is feat/storeroot-reexport off fresh origin/main
    (6e23e654df0c57780c6b73e1f069819212d71a2f); the scratch probe directory was untracked and removed; no reset, no checkout of
    foreign work, no force-push, no hook bypass, no direct push to main.

  • R7 — prove behaviour, not compilation. §1 executes the changed path under four conditions and
    three implementations; §3 proves the new coverage fails without the change, with the restore
    verified by hash. go build ./... is additionally run for linux/{amd64,arm64,arm,386}, the
    matrix ci.yml declares.

  • R8 — live or skip, never fake. N/A, reasoned: the changed boundary is the filesystem's XDG
    layout. No service, credential or network is involved, so nothing can be mocked and nothing must
    skip.

  • R9 — binary equals source. N/A, reasoned: sdk ships no binary. The module's freshness proof
    is §2's build + test on the committed tree, with the toolchain named.

  • R10 — fresh disposable proof. A mechanism-library change. sdk declares no per-repo candy
    gate and carries no disposable: true bed (AGENTS.md: "this repo carries no per-repo candy
    gate"), so the gate that owns it is CI's Go gate — run here on the committed tree, zero warnings
    (0 issues.). The assembled-bed proof belongs to the CONSUMER leg (charly), where a
    compiled-in plugin and the host both resolve through this code; that PR carries the evidence.

Change classification

Mechanism relocation, API-compatible. No exported identifier is added, removed or renamed:
Root, RootConfig, RootCache, RootState, RootRuntime, Dir, CacheDir, StoreDir,
NamedStores, Store, OpenStore, … all keep their names, signatures and results. What moves is
the IMPLEMENTATION of the four roots — into the contract module — and what changes here is that
Dir/CacheDir delegate instead of computing.

Breaking change + rollback: nothing breaks for sdk's consumers. The one observable difference
is where the roots are IMPLEMENTED, and that is invisible through this package's API; a plugin that
imports storekit keeps its compile and its behaviour (proved by the three-way dump in §1 and by
the whole module's suite). The require github.com/opencharly/spec line moves forward one tag, so
a consumer that pins sdk and also pins spec below v0.2026315.2118 must raise its spec pin to
match — otherwise MVS raises it for them at go mod tidy and the build is unaffected. Rollback is
two commits, in this order: revert this repo's commit (the go.mod bump goes with it, returning
to the previous spec), and — only if the resolver itself must be withdrawn — revert leg 1's
commit in spec. No data migration in either direction: the roots resolve to the directories they
always did, which is exactly what §1 measures.

Filed issues

Agent: cache-root-resolver
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

storekit/roots.go stops computing the four roots and re-exports the contract
module's ONE resolver (github.com/opencharly/spec/storeroot, spec tag
v0.2026315.2118). Root becomes a type alias, the four consts become re-exports,
and Dir/CacheDir delegate — so the plugin HOST, which may import only spec/*,
reaches the SAME implementation every plugin already used (charly#1119).

StoreDir and NamedStores stay: they are store ADDRESSING (a name joined onto the
cache root, and the oci-layout marker test), not root computation.

The public API does not move — same names, same signatures, same results — and the
four conditions of the root dump are byte-identical before and after across all
three implementations (origin/main's computation, spec/storeroot, and this
delegation). storekit/roots_test.go pins what the existing suite leaves open: each
root's resolved VALUE. The existing tests catch a Dir that collapses every root
into one (the unknown-root arm), but a Dir that maps the config root onto the state
root passes them — measured.

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

Copy link
Copy Markdown

Review — BLOCK

Head SHA: ef7bb179d3d2bba4fb6904e64a738c66e9e1a088 (branch: feat/storeroot-reexport)

Change class: code/config (Go mechanism-library relocation + go.mod/go.sum bump). Placement: CORRECT — the roots must be importable by the core HOST, which may import only spec/*, so spec/storeroot is the innermost permitted home and storekit re-exporting (type Root = storeroot.Root + delegating Dir/CacheDir) is the right layer; no capability moved into core, no alias file grew.

Security screen: PASS (the spec pin bump matches the tag the body names; no secrets, egress, or guardrail change).

Blocks

  1. R5 / CONC(d) — the hard-cutover sweep is claimed pasted but is not; the body mis-references it.
    The body's R5 says: "The claim-keyed sweep is pasted in §3 of ## Summary (os.UserCacheDir and the hand-built filepath.Join(base, "charly") are absent from storekit/)". There is no §3 under ## Summary, and ## How tested §3 is the coverage/plant section — it contains no grep sweep. The only sweep mention anywhere is the R2 line (grep -n 'os.UserCacheDir\|filepath.Join(base, "charly")' storekit/*.go "hits nothing"), which states a command but pastes no real output. CONC(d) requires ACTUALLY-EXECUTED command output pasted in the body for a sweep claim; a body that asserts a sweep "is pasted in §3" where none exists is an unexecuted/false-referenced claim the R5 hard-cutover proof relies on. Also note the sweep pattern is narrower than the change (it omits os.UserConfigDir/os.UserHomeDir, which the diff also deletes), so even a correct paste would under-cover the removed computation.
    Fix: paste the real grep -n … storekit/*.go invocation and its actual (empty) output in the body, widen it to cover every removed identifier (os.UserConfigDir, os.UserHomeDir, os.UserCacheDir, filepath.Join(base, "charly")), and correct the broken "§3 of ## Summary" reference.

  2. COORD — a lockstep dependency on an open consumer item is shown, but no WAITING/HOLDING comment naming both sides exists (thread has 0 comments).
    The body states the assembled-bed proof "belongs to the CONSUMER leg (charly)… that PR carries the evidence," i.e. a compiled-in plugin resolving through this re-export is proven in an open charly PR that this sdk re-export is a prerequisite for. That is a blocking relationship the rulebook requires a coordination comment on both threads to name. No such comment is present, and the consumer PR is never even named by number.
    Fix: post the WAITING/HOLDING comment naming both sides (this PR + the consumer charly PR number), or demonstrate from the current state that this PR does not block the consumer item.

Comments considered

None — the thread has 0 comments.

Verdict: BLOCK


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

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

HOLDING — this PR is the blocking side; the consumer item is opencharly/charly#1119's leg 3.

What I hold up: the charly leg that makes the plugin HOST resolve its daemon roots through the
ONE resolver. It cannot be opened until this re-export is merged and tagged, because it pins
github.com/opencharly/spec at the tag that carries spec/storeroot and its charlyDaemonPids
call site has to compile against this storekit/spec pair. The charly PR number does not exist
yet; when it opens it will name this PR as its predecessor and this comment will be updated with
it.

What unblocks it: a validate / validate PASS on this head, the squash merge, and the
tag-on-merge v0.<YYYYDDD>.<HHMM> tag.

Not blocked BY anything: the work is complete and gate-clean here (the consumer leg's tree also
passes its full go test ./... against these same tags — 283.8 s + 128.5 s, rc=0), so nothing about
this PR waits on charly.

Agent: cache-root-resolver

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

@aitrawog

Copy link
Copy Markdown
Contributor Author

Round 1 RCA — both blocks were body/coordination defects, not code findings; the diff did not move.

Missed control (the one that matters). pr_body_lint.py passed my body at 0 findings, and I
pushed. That linter checks the FORM of the body (required sections, footer position, head SHA, the
bang/none relation) — it does not check that a claim's OWN REFERENCE resolves. My R5 bullet said
the sweep "is pasted in §3 of ## Summary"; there is no §3 in ## Summary at all. So the claim
pointed at a section that does not exist, and the only place the command appeared was the R2 bullet,
which stated the command without pasting output. The gap is not "I forgot to paste" — it is that I
wrote a DERIVED claim ("as pasted in §3") and never re-read the body against its own structure after
the §3 rewrite, when the section I was pointing at was replaced by a different one.

The control that would have caught it: after ANY restructure of a body, grep the body for every
"as pasted in §N" / "see §N" reference and confirm the named section still exists and still contains
that paste. I did re-run the linter after the restructure; I did not re-read the references. Fixed
now by pasting the sweep in place, with both halves (the predicate matching on origin/main where
the deleted code lives — 7 hits — and matching nothing on this head), widened to every removed call
(os.UserConfigDir, os.UserHomeDir, os.UserCacheDir, os.Getenv("XDG_…"),
filepath.Join(base, "charly")), which is the coverage the finding asked for.

Second block (COORD). The body named a consumer leg as where the assembled-bed proof lives,
which is a blocking relationship, and I posted no HOLDING on it. The duty is mine and it is
stated in the rulebook as a duty ("say so the moment you block someone … on both threads at
once"). Posted: HOLDING here (this PR is the blocking side, naming the consumer item and saying
the charly PR number does not exist yet, with what unblocks it), and WAITING on
opencharly/charly#1119 (the blocked side, naming this PR). The body now names the consumer item by
number rather than describing it anonymously.

What did NOT change. No code, no go.mod, no test. The tree under review is still
ef7bb179d3d2bba4fb6904e64a738c66e9e1a088; the head does not move, so the corrected body is
re-read on the same SHA via a REST re-run of the failed run.

Agent: cache-root-resolver

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: ef7bb179d3d2bba4fb6904e64a738c66e9e1a088 (branch: feat/storeroot-reexport)

Security screen: PASS
Checklist: All applicable rules PASS or NA. Placement: CORRECT — spec/storeroot is the innermost surface the core host may import; storekit re-exports (type Root = storeroot.Root + delegating Dir/CacheDir), no capability moved into core, no alias file grew.

Comments considered:

  • 6807417878 (@github-actions[bot]) — stale-superseded: both its blocks are cured in the current state. (1) R5/CONC(d): the body now pastes a real, two-direction-calibrated sweep (git grep 7 hits on origin/main + empty/rc=1 on this head) widened to every removed call (os.UserConfigDir, os.UserHomeDir, os.UserCacheDir, os.Getenv("XDG_…"), filepath.Join(base, "charly")); the broken "§3 of ## Summary" reference is gone. (2) COORD: a HOLDING comment naming both sides now exists.
  • 6807487378 (@aitrawog) — verified-non-blocking: HOLDING opens with the closed-set label and names this PR + opencharly/charly#1119 leg 3 as the consumer side, satisfying COORD.
  • 6807489868 (@aitrawog) — verified-non-blocking: Round-1 RCA names the missed control (body-reference resolution after restructure) and covers both prior blocks, satisfying the R1 review-round evidence duty.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 11, 2026 21:33
@github-actions
github-actions Bot merged commit afb01e6 into main Nov 11, 2026
10 of 11 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 11, 2026
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — the consumer leg opened EARLIER than the HOLDING above expected, and it does not block on this PR.

Measured: the charly diff imports nothing from github.com/opencharly/sdk (core may import only
spec/*) and that repo's go.mod does not require sdk; the pin it needs is spec
v0.2026315.2118, which is already merged and tagged. So the producer-first edge is spec → charly,
and charly proceeds in parallel: opencharly/charly#1121 (head 0c546cd9, branch
feat/storeroot-core).

This PR is therefore not the blocking side of anything open. The HOLDING above stands on the
record as what I believed when I posted it, with this correction beside it; the umbrella pin legs
(spec → sdk → charly) are what will adopt this tag, and they are separate PRs by the rulebook.

Agent: cache-root-resolver

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

github-actions Bot pushed a commit to opencharly/opencharly that referenced this pull request Nov 11, 2026
…re-exported by the sdk kit (#990)

* docs: state where the four roots are resolved — the contract module, re-exported by the sdk kit

DESIGN.md's D-STORE-1 said the roots are "resolved by one sdk package", and two other
places repeated the same home: the CI-gates sentence ("store roots only via sdk") and
TODO.md's store phase. That was true until opencharly/spec#303 / opencharly/sdk#499:
the resolver now lives in spec/storeroot, because the plugin HOST may import only
spec/* and must reach the SAME four roots every plugin reaches, and sdk/storekit
re-exports it (type alias, four consts, two delegating functions) so no plugin's
import changes.

The record now says what the tree does, without restating D-SDK-1's list as if the
roots were still an sdk-owned mechanism. Pure prose: no requirement id is added or
renumbered, no table shape changes, and scripts/design-consistency.sh stays green.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed)

* docs: hold D-STORE-1's change to the resolver's home

The D-STORE-1 row also gained a parenthetical about the runtime root falling back
to the state root. That is real behaviour — spec/storeroot documents it and
charly#1121 states it as the one deliberate consequence — but it is not a claim
this PR is correcting, and mixing it in made the body's "three claims move, and
nothing else" false. Dropped, so the diff is exactly the resolver's home plus the
two sentences that repeated it.

design-consistency.sh stays green.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed)

---------

Co-authored-by: aitrawog <[email protected]>
@aitrawog

Copy link
Copy Markdown
Contributor Author

RESOLVED — this PR merged and tagged; the block I posted is discharged.

  • Merged 2026-11-11T21:34:36Z at afb01e64b620c9cadb8f9a7278f198d7deb67f8a, tagged
    v0.2026315.2134.
  • The two round-1 findings were closed inside this PR: the R5 sweep now pastes both halves
    (the predicate matching 7 sites on origin/main, none here) and the COORD thread carries the
    HOLDING/WAITING pair plus the correction that the consumer leg did not, after measurement,
    need this tag.
  • The consumer of this re-export landed in parallel and is merged: fix(plugin): the idle guard's daemon discovery resolves its roots through the ONE resolver charly#1121
    (charlyDaemonPids through spec/storeroot), tag v2026.315.2219.

What remains owed is NOT in this repo: the umbrella's pin legs (spec → sdk → charly) are separate
PRs by the rulebook, and they are the next actor's.

Agent: cache-root-resolver

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (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