Repository navigation
docs: state where the four roots are resolved — the contract module, re-exported by the sdk kit - #990
Conversation
…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)
Review — BLOCKHead SHA: Change class: documentation-only (DESIGN.md, TODO.md prose). Blocks
Notes (non-blocking)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
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)
|
Round 1 RCA — one finding: an unaccounted behavioural clause in the D-STORE-1 row; fixed by REMOVING it, not by justifying it. The finding. My D-STORE-1 rewrite also appended "(the state root when there is no runtime dir to Missed control — I widened a correction into an improvement. The PR's job is to make the design Fix. The parenthetical is gone, so the row's change is exactly the resolver's home (the four path The fallback behaviour stays documented where it belongs and where it is proven: Agent: cache-root-resolver Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) |
Review — PASSHead SHA: Change class: documentation-only ( Security screen: PASS — no code, secrets, network calls, or guardrail changes; nothing in the body or thread instructs the validator. Comments:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
The design record said the four roots are resolved in
sdk. They are not, any more — and leavingthat sentence in place would make the org's own normative document false about the code three
repos just landed.
Three claims move, and nothing else:
DESIGN.mdD-STORE-1spec/storeroot— withsdk/storekitre-exporting it as its own API; the four path clauses are UNCHANGEDDESIGN.mdCI-gatesDESIGN.mdD-SDK-1TODO.mdstore phasesdk/storekit)"sdk/storekitfor the store,spec/storerootfor the roots it lives underWhy the move happened, in one line each (the three producer legs, all merged):
spec/storerootnow owns the four-root computation and the singleCHARLY_CACHE_DIRoverride (tagv0.2026315.2118).storekit/roots.gore-exports it (type Root = storeroot.Root, the fourconsts,
Dir/CacheDirdelegating), so no plugin's import changes (tagv0.2026315.2134).charlyDaemonPidsresolves its two roots through the contractsurface, which is the only way the plugin HOST could reach the ONE resolver at all, because core
may import only
spec/*.What did NOT change in the record: no requirement id is added, removed or renumbered; no table
gains or loses a row or a cell; §10.1's vocabulary, §12.4's rules and the parity ledger are
untouched. The change is prose inside four cells — two of them D-STORE-1's and D-SDK-1's own text.
Files in this diff:
DESIGN.mdTODO.mdgit diff --stat origin/main...HEAD:This head is
How tested
Every command below was run against this head (
e24197ce1180c8439e121dc62c911eaff74d2188) in thesession worktree, and pasted from its capture.
1. The gate that owns DESIGN.md — green before and after
DESIGN.mdAppendix A's consistency control is the gate a design-record change owns; the umbrella'shooks/pre-pushruns it for any design-class push, and it is green on this head:The same control was green on pristine
origin/mainbefore the edit(
bash scripts/design-consistency.sh→rc=0, same line), so the change adds no finding andremoves none.
2. The full Appendix A check — all seven controls
One anomaly on the way, with its RCA. The first run of 7/7 was RED on
distro-omarchy's pin("untagged — 2 first-parent commit(s) above v2026.305.2206"). It was not this change and it was not
a real pin defect: the umbrella is a blobless clone whose shared module store's TAG MAP predated the
tag, so a healthy pin read as untagged. Measured — the remote has the tag the local store lacked:
The control's own footer states the same limitation ("a tag that was never fetched into a store is
invisible to this reading"). The refresh is
git fetch --tagson the module store — no pin moved, nocensus row added, no gate relaxed — and 7/7 is green afterwards. This is the live instance of
#980 (open), which I have commented on with the measurement rather than filing
a duplicate.
3. Attribution evidence (A3)
The footer's harness, provider and full model name are each corroborated by an artifact the
authoring session wrote:
Rulebook compliance
R0 — skills first.
/charly-internals:git-workflow,/charly-internals:strict-policyand theumbrella
AGENTS.md(Part I + Part II, incl. chore: harness parity with charly — rulebook, pi/claude/opencode/reasonix config, skills #1's no-edits-inside-a-submodule rule, which is whythe CODE lives in three PRs to three repos and this one carries only the umbrella's own prose)
were loaded before the first tool action.
R1 — RCA every anomaly, then fix it or file it. One anomaly, RCA'd in §2: a stale module-store
tag map made a healthy pin read as untagged, which blocked the push. It is design-pintag: a light worktree reads a shared module store whose tag map can predate the tag, so healthy pins report untagged — and the FAIL text points at the census #980's
documented mechanism; measured in both directions (the remote HAS the tag, the local store lacked
it), fixed by refreshing the store's tags, and the issue gets the measurement. Nothing else fired.
R2 — no duplication. This PR REMOVES a duplicated statement of where the roots live: the
D-STORE-1 row, the CI-gates sentence and the TODO phase line all claimed the sdk home, and they now
agree with the code and with the one place that states the mechanism home.
R3 — no workarounds. The tag refresh is
git fetch --tagsagainst the module's own remote, nota suppression, a census row, or an edited gate. No sleep/retry exists in this change.
R4 — product before prose. The product moved first: spec#303, sdk#499 and charly#1121 are
merged or in review, and this record follows the tree. No documented command changes.
R5 — hard cutover, legacy deleted. The retired claim is DELETED, not qualified: no place in
this tree still says the roots are resolved by an sdk package. Claim-keyed sweep over the three
files that carried it:
Calibrated in both directions, and PREDICATE BY PREDICATE: the CI-gates sentence wraps across lines
in
DESIGN.md, so a single-line disjunction under-covers it.git grep -n 'store roots'is NOTthe predicate — it matches on this head too, at
DESIGN.md:2651, because the retained half of thesentence still says the roots must go through the resolver:
So the subject ("store roots") survives by design and the retired CLAIM ("only via sdk") does not.
The two retired claims are each matched on
origin/mainand each absent here.R6 — preserve user work; Git safety.
git statusread before the first edit and after everystep; the session worktree is
feat/storeroot-designoff freshorigin/main; no submodule wasedited from the umbrella (Part II chore: harness parity with charly — rulebook, pi/claude/opencode/reasonix config, skills #1 — the code legs went to their own repos); no reset, no
checkout of foreign work, no force-push, no hook bypass, no direct push to
main.R7 — prove behaviour, not compilation. The changed artefact IS prose, and its verifier is the
design gate: §1 shows the control green before and after, and §2 shows it can be RED (it was, on a
pin, in the same run) — so the green is a measurement, not a tautology.
R8 — live or skip, never fake. N/A, reasoned: no service boundary, no credential, no network
call and no mock in this change. The one network operation (
git fetch --tags) is a read of thereal remote, and its output is pasted.
R9 — binary equals source. N/A, reasoned: no binary is built or changed here. The repo's
charlybinary is untouched by a two-file prose diff.R10 — fresh disposable proof. Documentation-only change class: no
disposable: truebed isowed or claimed, and the gate that owns the change is the design control (§1, §2), run on this
head with zero warnings. The runtime proof for the underlying move lives in the producer PRs
(
charly#1121§2 and §4: real processes, real/proc, freshly built binary).Change classification
Documentation-only. Two tracked files, prose inside existing cells — no requirement id, table
row, cell count, vocabulary word, rule tag or ledger row moves. Behaviour of
charlyand of everymodule is unchanged by this PR, and the design record now states what the code does.
Breaking change + rollback: nothing breaks — this is prose in the umbrella's own design record,
consumed by readers and by the design controls, and both are green on this head. The reader-visible
change is that D-STORE-1 no longer claims an sdk home for the roots, which is the correction. Rollback
is one inverse commit (
git revert ab78b12), and it would restore a claim the tree contradicts — soa rollback is only correct together with rolling back the three producer legs.
Filed issues
predate the tag, so a healthy pin reports
untagged; that is what blocked this push for one round.Already open and already describes the mechanism exactly; this PR adds the measured live instance
(
distro-omarchyatd1040b20, its tagv2026.314.0703present on the remote and absent from.git/modules/distro-omarchyuntilgit fetch --tags) rather than filing a duplicate.row that remains; untouched here, and no census row is added (the control's prose forbids raising
the census to silence a finding).
Agent: cache-root-resolver
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed)