Skip to content

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

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/storeroot-design
Nov 11, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/storeroot-design

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The design record said the four roots are resolved in sdk. They are not, any more — and leaving
that 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:

where was is
DESIGN.md D-STORE-1 "The roots, resolved by one sdk package" resolved by ONE resolver on the contract surface — spec/storeroot — with sdk/storekit re-exporting it as its own API; the four path clauses are UNCHANGED
DESIGN.md CI-gates "store roots only via sdk (D-STORE-1)" "store roots only via the contract resolver (D-STORE-1)"
DESIGN.md D-SDK-1 "the store and its roots (§20)" among the sdk mechanisms "the store (§20)" — the roots' home is D-STORE-1's to state
TODO.md store phase "The store and the roots (sdk/storekit)" names both homes: sdk/storekit for the store, spec/storeroot for the roots it lives under

Why the move happened, in one line each (the three producer legs, all merged):

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:

file what it is
DESIGN.md D-STORE-1's mechanism home, D-SDK-1's mechanism list, and the CI-gates sentence that repeated it
TODO.md the store phase's parenthetical home

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

 DESIGN.md | 6 +++---
 TODO.md   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

This head is

e24197ce1180c8439e121dc62c911eaff74d2188

How tested

Every command below was run against this head (e24197ce1180c8439e121dc62c911eaff74d2188) in the
session worktree, and pasted from its capture.

1. The gate that owns DESIGN.md — green before and after

DESIGN.md Appendix A's consistency control is the gate a design-record change owns; the umbrella's
hooks/pre-push runs it for any design-class push, and it is green on this head:

$ cd .worktrees/cache-root-resolver/opencharly
$ bash scripts/design-consistency.sh; echo "rc=$?"
consistency: tables, table shape, word lists, rule tags, ids and § references, vocabulary, grammar — all agree
rc=0

The same control was green on pristine origin/main before the edit
(bash scripts/design-consistency.sh → rc=0, same line), so the change adds no finding and
removes none.

2. The full Appendix A check — all seven controls

$ bash scripts/design-check.sh
== 1/7 toolchain
== 2/7 DESIGN.md ↔ DESIGN.cue
consistency: tables, table shape, word lists, rule tags, ids and § references, vocabulary, grammar — all agree
== 3/7 examples and negative cases
examples: 14 validated
== 4/7 the capability ledger
== 5/7 every citation into a pinned module, at the pin
== 6/7 the schema patterns of every pinned plugin module
== 7/7 every pin's relation to a release tag
design-pintag: 409 pinned module(s) in the index, 409 judged, 0 skipped (no module store)
design-pintag: 409 pin(s): tagged 380, changelog-tip 21, changelog-chain 0, pre-release-process 2, not-applicable 5, untagged 1
design-pintag: 1 recorded in design/pintag-baseline.tsv (tracked by opencharly/opencharly#793 …)
design-pintag: every pin is at a tag, one CHANGELOG commit above one, or explained

design-check: all controls pass
design-check rc=0

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:

$ git ls-remote --tags https://github.com/opencharly/distro-omarchy.git | grep -F d1040b2097dcdd7ff88af90f33b156378250b8ee
d1040b2097dcdd7ff88af90f33b156378250b8ee	refs/tags/v2026.314.0703
$ git --git-dir .git/modules/distro-omarchy tag --points-at d1040b20   # before the fetch: (nothing)
$ git --git-dir .git/modules/distro-omarchy fetch --tags origin
 * [new tag]         v2026.314.0703 -> v2026.314.0703
$ git --git-dir .git/modules/distro-omarchy tag --points-at d1040b20
v2026.314.0703

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 --tags on the module store — no pin moved, no
census 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:

$ 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

$ grep -o '"\(provider\|model\)": "[^"]*"' \
    /home/atrawog/.dsh/storages/session_projcache/sessions/85d64ba8-b11b-44ae-91dd-f6be77ffe8ee.json | sort | uniq -c
      1 "model": "deepseek-v4.1-flash"
      1 "provider": "ollama-cloud"

Rulebook compliance

  • R0 — skills first. /charly-internals:git-workflow, /charly-internals:strict-policy and the
    umbrella 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 why
    the 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 --tags against the module's own remote, not
    a 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:

    $ git grep -n 'resolved by one sdk package'                    # this head
    (no output, rc=1)
    $ git grep -n 'only via sdk'                                   # this head
    (no output, rc=1)
    $ git grep -n 'resolved by one sdk package' origin/main        # calibration: MUST match
    origin/main:DESIGN.md:2482:| D-STORE-1 | The roots, resolved by one sdk package: configuration `$XDG_CONFIG_HOME/charly`, cache `$XDG_CACHE_HOME/charly` (single override `CHARLY_CACHE_DIR`), state `$XDG_STATE_HOME/charly`, runtime `$XDG_RUNTIME_DIR/charly`. |
    $ git grep -n 'only via sdk' origin/main                       # calibration: MUST match
    origin/main:DESIGN.md:2652:only via sdk (D-STORE-1); test roots (D-STORE-8); no unused kinds or fields (D-LAW-2); the
    

    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 NOT
    the predicate — it matches on this head too, at DESIGN.md:2651, because the retained half of the
    sentence still says the roots must go through the resolver:

    $ git grep -n 'store roots'                                    # this head
    DESIGN.md:2651:`describe` (§4.4); typed protocol (D-ROLE-2, D-PROTO-6); protocol conformance in every plugin repository (§4.7); generation reproducibility (D-GEN-2); store roots
    $ sed -n '2652p' DESIGN.md
    only via the contract resolver (D-STORE-1); test roots (D-STORE-8); no unused kinds or fields (D-LAW-2); the
    

    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/main and each absent here.

  • R6 — preserve user work; Git safety. git status read before the first edit and after every
    step; the session worktree is feat/storeroot-design off fresh origin/main; no submodule was
    edited 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 the
    real remote, and its output is pasted.

  • R9 — binary equals source. N/A, reasoned: no binary is built or changed here. The repo's
    charly binary is untouched by a two-file prose diff.

  • R10 — fresh disposable proof. Documentation-only change class: no disposable: true bed is
    owed 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 charly and of every
module 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 — so
a rollback is only correct together with rolling back the three producer legs.

Filed issues

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

…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)
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: ab78b122193bd0b721c0a9ad65511f285737e7fa (branch: feat/storeroot-design)

Change class: documentation-only (DESIGN.md, TODO.md prose).

Blocks

  1. A1 — diff item missing from the body's accounting. The DESIGN.md D-STORE-1 row (line ~2482) adds a new behavioral clause the body never accounts for:
    runtime \$XDG_RUNTIME_DIR/charly` (the state root when there is no runtime dir to use). The body states "Three claims move, and nothing else" and its D-STORE-1 table row describes only the resolver-home move (spec/storeroot/sdk/storekitre-export); it does not mention that the runtime root now falls back to the state root when no runtime dir exists. No pasted evidence (design-consistency/design-check, or the producer legs spec#303 / sdk#499 / charly#1121) shows the resolver actually performs this fallback, so the new assertion is both unaccounted and unverified against the tree it claims to "follow." Fix: either drop the parenthetical so the diff matches the "nothing else moves" claim, or add it to the Summary/How-tested and show (from the mergedspec/storeroot` resolver) that the runtime→state-root fallback is real.

Notes (non-blocking)

Verdict: BLOCK


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

View action run

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)
@aitrawog

Copy link
Copy Markdown
Contributor Author

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
use)". That is true of the merged resolver — spec/storeroot documents the fallback and
charly#1121 states it as the one deliberate consequence — but it is not a claim this PR corrects, and
it made the Summary's own "Three claims move, and nothing else" false.

Missed control — I widened a correction into an improvement. The PR's job is to make the design
record state WHERE the roots resolve. While rewriting the row I added a behaviour the record had
never stated, on the reasoning that it was now true and worth saying. Two things were missed by
that: the body's file/claim accounting (a diff item with no line in the body) and the rule that a
correction PR carries the correction, not adjacent improvements. The mechanical control is a
diff-item census: after finalising the body, walk the diff hunk by hunk and require each added claim
to appear in the Summary — an added CLAUSE is a diff item exactly like an added file.

Fix. The parenthetical is gone, so the row's change is exactly the resolver's home (the four path
clauses are untouched) and the body's claim is true again:

$ grep -n 'D-STORE-1' DESIGN.md | tail -1
2482:| D-STORE-1 | The roots, resolved by ONE resolver on the contract surface — `spec/storeroot`, so the plugin host and every plugin it serves resolve the same trees from the same code, with `sdk/storekit` re-exporting it as its own API — configuration `$XDG_CONFIG_HOME/charly`, cache `$XDG_CACHE_HOME/charly` (single override `CHARLY_CACHE_DIR`), state `$XDG_STATE_HOME/charly`, runtime `$XDG_RUNTIME_DIR/charly`. |
$ bash scripts/design-consistency.sh; echo rc=$?
consistency: tables, table shape, word lists, rule tags, ids and § references, vocabulary, grammar — all agree
rc=0

The fallback behaviour stays documented where it belongs and where it is proven: spec/storeroot's
package doc (its own test, TestRuntimeRootFallsBackToStateAlone) and opencharly/charly#1121's body
and arms. Nothing else moved; the design gate is green on the new head.

Agent: cache-root-resolver

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

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: e24197ce1180c8439e121dc62c911eaff74d2188 (branch: feat/storeroot-design)

Change class: documentation-only (DESIGN.md, TODO.md prose).

Security screen: PASS — no code, secrets, network calls, or guardrail changes; nothing in the body or thread instructs the validator.
Checklist: All applicable rules PASS or NA. The four-cell diff is fully accounted for in the Summary table and matches git diff --stat (4 insertions / 4 deletions); the R5 calibrated sweep output is consistent with the current diff; the one surfaced anomaly (distro-omarchy pin) carries a measured RCA + real fix and references already-open #980/#793 under ## Filed issues; the design gates are pasted green; attribution documentation reviewed is legal for an all-doc diff and the model/provider/harness are corroborated.

Comments:

  • github-actions[bot] Comment 6808510546 (BLOCK) — stale-superseded: the flagged parenthetical "(the state root when there is no runtime dir to use)" is absent from the current D-STORE-1 row (line 2482); the finding is resolved in the current diff.
  • @aitrawog Comment 6808629556 — verified-non-blocking: the round-1 RCA names the missed control and its fix is present in the current diff (parenthetical removed); R1 review-round evidence satisfied.

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 22:46
@github-actions
github-actions Bot merged commit 8e41270 into main Nov 11, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 11, 2026
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