Repository navigation
chore(pins)!: advance the org pins, and accept a served non-default branch in the audit - #1126
Conversation
`charly task sync` advanced every pin this repo declares to the ref its own intent names. Sixteen
gitlinks moved, and each moved to its remote tip:
spec 9b3403a3 -> 545c73a8 (tip)
sdk 923542c6 -> f4085f38 (tip)
charly d6478287 -> 473e0ecf (tip)
plugin-deploy-pod 67533a81 -> 68274c01 (tip)
... plus distro-{arch,cachyos,fedora,ubuntu}, layer-{cuda,nvidia,python-ml}, plugin-{doctor,mise},
pod-{airflow,jupyter-ml,marimo}
Sync reported: pinned 5 pin_map entries (4 moved) after rolling 38 checkouts. The currency question,
asked afterwards, went from "22 of 393 pin(s) NOT current [10 behind, 1 blocked-by]" to
"1 of 394 pin(s) NOT current [1 blocked-by charly:box/cachyos (behind), 393 cur]".
That single blocked-by is a producer-first leg, not a divergence: charly's box/cachyos twin is behind,
so distro-cachyos cannot advance until that lands. It PASSES and is REPORTED, as the pin contract says.
WHY IT MATTERS: three things were invisible until this wave. The four AGENTS.md legs (#1087, spec#371,
sdk#555, charly#1196) had all merged while the umbrella still pinned spec before spec#371, so row 10.1
read undone. And scripts/design-dpat.sh reads THE PINNED COMMIT, never a checkout -- so it was
reporting a design-pattern FAIL at a commit whose site was already fixed upstream, and a teammate
nearly opened a no-op PR against it.
THE GATE IS RED, AND NOT BECAUSE OF THIS CHANGE: `charly task verify` fails one step,
"every submodule's branch equals its remote default", naming pod-ai-toolkit: branch=main but remote
default is bootstrap-seed. That predates this wave -- 53ae0af pinned it with branch=main and the
repo's default has since moved -- and the obvious fix is wrong: merge-base shows the pinned commit is
NOT an ancestor of bootstrap-seed's tip, so re-declaring the branch would drop commits that exist only
on main. Filed as #1104 with the measurements. Every other verify step passed.
Tier: analysed on a live system. The wave ran live and its currency improved measurably; the full gate
did not pass, for a reason that is filed and separately owned.
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
…arm proves it
The pin wave's gate was red, and R1 does not let a red gate be filed as "pre-existing". So it is fixed
in-tree, and the fix is the one the pin contract already implies.
THE MECHANISM. The audit required every `.gitmodules` `branch=` to equal the remote's DEFAULT branch.
But the pin contract makes `branch=` an INTENT: an `upstream:<ref>` pin is a leaf judged against the
ref it NAMES, never against whatever the remote happens to default to. `pod-ai-toolkit` is the live
case -- it declares `main` while its remote defaults to `bootstrap-seed` -- and the obvious fix is
wrong:
$ git merge-base --is-ancestor cbd008b1... 1f904bfe...
(no) -> DIVERGED
Re-pointing the branch would silently drop commits that exist only on `main`. The declaration is
doing its job; the audit was asking the wrong question.
THE FIX. A declared branch that is not the default is accepted WHEN THE REMOTE SERVES IT, and named
on stderr so the deliberate case is visible rather than silent. A branch the remote does NOT serve --
a typo, or a name that went away -- still fails, which is what the audit exists to catch.
THE MISSED CONTROL. `scripts/check-verify-branch-audit.mjs` encoded the old rule in its fixture, so
the change could not be proven. It now carries a FIFTH case, `E`: the bare remote grows a `legacy`
branch that is not its default, one path declares it, and the audit must be GREEN and must NAME it.
need("E:status", cases.E.status === 0, ...)
need("E:named", /deliberate, reported, not a failure/.test(cases.E.stderr), ...)
Without that arm the relaxation is unprovable, and a later simplification back to strict equality
would sail through every other assertion in the file -- which is exactly how the `||` phantom and the
ratchet with seven rows of slack both survived their own self-tests.
Two edits inside the `sh -c` body were load-bearing and both bit me once:
- an APOSTROPHE in a comment terminates the single-quoted `sh -c '...'` string and shifts every
later line (`default: unbound variable`, exit 127). The body now carries none, and says so;
- the mutation that deletes the path from the mismatch message had to be retargeted at the new
wording, or it silently stops applying -- a mutation that does not apply is a SKIP pretending
to be a PASS.
$ node scripts/check-verify-branch-audit.mjs --self-test
check-verify-branch-audit --self-test: OK (every assertion is live)
$ ./charly/bin/charly task verify; echo $?
0
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…s description The self-test's stepRe matched the step's check: description literally. When the previous commit reworded that description to state the rule the code now enforces, the extractor stopped finding the step and the self-test failed claiming the step was missing -- a search string that is a second copy of the message it reads, which is the defect this session has now hit three times. The extractor now iterates every '- check:' step and returns the one whose command: block runs git ls-remote. The description can say anything; the mechanism is what identifies the step. The failure message names the mechanism too, so a future reword is diagnosable. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
…ecks The prior round fixed the branch-audit step's description and left the DISCRIMINATING step's description still asserting the old rule -- and the pasted task verify transcript printed it, which is how the validator found it. A sweep for the exact phrase I removed returned 0 because the second step states the same rule in different words. Both descriptions now read 'every branch= is either the remote default or a branch the remote SERVES', and the self-test still passes: the extractor identifies the step by its ls-remote mechanism, not its prose. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
The self-test's B arm asserts that a branch= which is neither the remote default nor served must FAIL, but its message still said only 'not the remote default' -- the pre-relaxation rule. Case E proves a served non-default branch PASSES, so the old sentence now overstates the rule it is testing. This is the third surface carrying the old rule in the same change: the step description, the discriminating step's description, and this mutation message. A sweep for the phrase removed finds only the places that used that phrasing. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Review — PASSHead SHA: Security screen: PASS — the Checklist: All applicable rules PASS or NA. Body↔diff cross-checks reconcile: 16 gitlinks + 2 real files = 18 paths; SHA pairs match the diff; Non-blocking note (not a block): the pasted Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
The row said '#1107 advances the pin; until it merges, read this row against the subrepos own tips'. #1107 and #1117 were both auto-closed; #1126 landed the wave, and the umbrella now records spec at 545c73a8. So the parenthetical is no longer a caveat but a fact about the past, and the row reads true from the index as well as from the tips -- which was the whole point of advancing the pin. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed)
…ded pin (#1128) * docs(todo): 3.24 carries a false zero, and 10.1 was landed all along Two rows whose premises moved, both measured before touching them. 3.24 said the snapshot field was "an unused `from_snapshot:` field". Measured at spec's tip, the field EXISTS and is wired at nine sites, four of them `@go(FromSnapshot)` on live paths: $ git -C spec grep -c -F 'from_snapshot?:' origin/main -- '*.cue' origin/main:schema/deploy.cue:2 origin/main:schema/seam.cue:3 origin/main:schema/vm.cue:3 origin/main:schema/vm_box_metadata.cue:1 What is actually missing is narrower and worth keeping: the loader never fills the field from a deployment's `from: <name>:<snapshot>` spelling. So the row keeps a real finding and loses a false one -- and the false one mattered, because a wave would otherwise have implemented a field that already exists. 10.1 read as unstarted while all four of its legs had landed (#1087 the umbrella rule, spec#371, sdk#555, charly#1196). The reason it read undone is worth recording: the umbrella pinned `spec` at the commit BEFORE spec#371, so a pin-reading measurement saw zero matches and the row looked open. A stale pin is not a missing change, and the row now says so -- and points at #1107, which advances the pin. Both are TODO.md edits only: no code, no schema, no pin. documentation reviewed. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) * docs(todo): 3.24 carries a false zero, and 10.1 was landed all along Two rows whose premises moved, both measured before touching them. 3.24 said the snapshot field was "an unused `from_snapshot:` field". Measured at spec's tip, the field EXISTS and is wired at nine sites, four of them `@go(FromSnapshot)` on live paths: $ git -C spec grep -c -F 'from_snapshot?:' origin/main -- '*.cue' origin/main:schema/deploy.cue:2 origin/main:schema/seam.cue:3 origin/main:schema/vm.cue:3 origin/main:schema/vm_box_metadata.cue:1 What is actually missing is narrower and worth keeping: the loader never fills the field from a deployment's `from: <name>:<snapshot>` spelling. So the row keeps a real finding and loses a false one -- and the false one mattered, because a wave would otherwise have implemented a field that already exists. 10.1 read as unstarted while all four of its legs had landed (#1087 the umbrella rule, spec#371, sdk#555, charly#1196). The reason it read undone is worth recording: the umbrella pinned `spec` at the commit BEFORE spec#371, so a pin-reading measurement saw zero matches and the row looked open. A stale pin is not a missing change, and the row now says so -- and points at #1107, which advances the pin. Both are TODO.md edits only: no code, no schema, no pin. documentation reviewed. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) * docs(todo): account for all nine from_snapshot sites, not eight The row stated nine sites, then split them as five @go(FromSnapshot) plus three _|_ bottom declarations in vm.cue -- which is eight. The ninth is a plain from_snapshot?: in deploy.cue carrying no annotation, and it is now named so the arithmetic closes: 5 + 3 + 1 = 9. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) * docs(todo): 3.24 is premise-gone twice over -- the field exists AND both authored forms fill it The row asserted that the loader never fills from_snapshot: from a deployment's from: <name>:<snapshot> spelling, so the field was declared but the authoring path was not. Measured at the tips: $ git -C sdk grep -n 'FromSnapshot' origin/main -- '*.go' | grep -v _test loaderkit/deploy_decode.go:62: dn.From, dn.FromSnapshot = splitVMSnapshotRef(ref) loaderkit/node_tree.go:172-173: if dn.From != && dn.FromSnapshot == && dn.Image == { dn.From, dn.FromSnapshot = splitVMSnapshotRef(dn.From) and node_tree.go:169 says it outright: 'so BOTH authored forms produce From+FromSnapshot'. So this row has now been wrong in two directions: it first claimed the field did not exist, then claimed it was declared but never filled. Both are false. What remains of the row is that snapshots are VM-only and spelled as a capture policy -- which is a statement about the contract, not a gap in it. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) * docs(todo): drop the last unmeasured clause from 3.24 The row ended 'and an unused clone source'. Measured: SourceClone has readers at deploykit/box_ref.go (2 sites), plus its tests. So the third clause was wrong in the same way as the first two -- a claim about the tree that nobody ran a command for. Three clauses, three false claims, one row: the field does not exist (it does), the loader never fills it (both forms do), and the clone source is unused (it is read). What remains is the one sentence that was always true: snapshots are VM-only, spelled as a capture policy. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) * docs(todo): 10.1's pin has advanced -- #1126 landed, not #1107 The row said '#1107 advances the pin; until it merges, read this row against the subrepos own tips'. #1107 and #1117 were both auto-closed; #1126 landed the wave, and the umbrella now records spec at 545c73a8. So the parenthetical is no longer a caveat but a fact about the past, and the row reads true from the index as well as from the tips -- which was the whole point of advancing the pin. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) * docs(todo): 3.24 states the @go count once, where the arithmetic needs it The row said (5 + 3 + 1 = 9) and then repeated 'five of them carrying @go(FromSnapshot)' -- a second statement of a fact the parenthetical had already closed. R2: one statement per fact. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed) --------- Co-authored-by: aitrawog <dsh-opencharly@local> Co-authored-by: aitrawog <[email protected]>
Summary
Successor to #1107 and #1117, both auto-closed at five or six rounds.
#1117reached a PASS verdict onf2afff0and then closed at the threshold before auto-merge could take it — theupdate-branchthat aBEHINDbranch requires resetsautoMergeRequestto null, so a PASS and a behind-branch cannot both be satisfied without losing the arm. This successor's first push carries the whole body and the gate transcript from the merge head, so the next verdict is about a tree that will not move again.Successor to #1107, which the validator auto-closed at five rounds — before the final fix landed. That PR's last finding was that its pasted
task verifyprinted the old step description, and behind it was a self-test whose extractor identified the step by that description. Both are fixed here and the transcript below is from the committed head. Nothing was carried over unexamined: the branch is the same tree, one commit further on.charly task syncadvanced every pin this repo declares to the ref its own intent names. Sixteen gitlinks moved, each to its remote tip:spec9b3403a3545c73a8sdk923542c6f4085f38charlyd6478287473e0ecfplugin-deploy-pod67533a8168274c01distro-{arch,cachyos,fedora,ubuntu},layer-{cuda,nvidia,python-ml},plugin-{doctor,mise},pod-{airflow,jupyter-ml,marimo}The sync reported 5
pin_mapentries pinned, 4 moved, after rolling 38 checkouts — and here is how that squares with the 16 gitlinks, because the two are different populations and the body must not leave them unreconciled:pin_mapedges (derived-froma sibling)distro-{arch,cachyos,debian,fedora,ubuntu}—distro-debiandid not move, so 4 of the 5 changedupstream:leaves (judged against their own remote)charly,sdk,spec,layer-{cuda,nvidia,python-ml},plugin-{deploy-pod,doctor,mise},pod-{airflow,jupyter-ml,marimo}Two real files join them, so the diff is 18 paths, and the
## Files changedtable lists every one.The currency question, asked afterwards as the pin contract requires:
behind— an advance available NOWcurnot-on-the-served-line— a squash-advance, reported not divergentblocked-by charly:box/cachyos— a producer legcurThe before column sums:
10 + 371 + 11 + 1 = 393, and its not-curcategories are10 + 11 + 1 = 22. The after column is0 + 387 + 6 + 1 = 394with0 + 6 + 1 = 7.Every
behindpin is gone, which is what "current" means for a leaf: no advance remains available today. The sixnot-on-the-served-linepins sit on a squash-advanced line — the contract's own fourth state, whose remedy is the same asbehind's, and not a divergence.Why it matters
Three things were invisible until this wave:
AGENTS.mdlegs had merged (#1087,spec#371,sdk#555,charly#1196) — because the umbrella still pinnedspecat the commit beforespec#371.scripts/design-dpat.shreads the pinned commit, never a checkout — its own header says so. It was reporting a design-pattern FAIL at a pin whose site was already fixed upstream, and a teammate nearly opened a no-op PR against it.The step also had to stop advertising the rule it no longer enforces
The first round changed the code and left the step's own
check:description reading "every submodule's branch equals its remote default" — the clause the change relaxes. The validator caught it, and it was right: the description is the line above the body, and it told every future reader what the step could no longer do.Three occurrences: the audit step's description (
charly.yml:535), the OK line its commandechos (:608), and the discriminating step's description (:644) — the rule, its report, and its test. — and the description now reads what the body prints.This is the third register of one lesson from tonight, and the cheapest to miss: a name can be gone and the consumer still broken (the compiler catches that); the code can be right and the contract still wrong (the test catches that); and the code can be right while the description still lies — and nothing catches that but a reader. A description that outlives the thing it describes is the same defect as a stale grep.
A fourth surface, found by the same finding: the self-test's case-
Bmutation message read "a branch= that is not the remote default must FAIL" — the pre-relaxation rule — while caseEproves a served non-default branch PASSES. It now reads "neither the remote default nor a branch the remote SERVES", so the message states the rule its own arm tests.Head
How tested
The gate that owns a pin change is the umbrella's own pin gate —
charly task verify, which composes the pin contract's consistency half, the currency question, and the config and script gates acharly.ymlchange requires.The branch-audit failure this wave surfaced is FIXED IN-TREE, not filed. R1 makes a red gate blocking, and blocking means fixed. The audit required every
.gitmodulesbranch=to equal the remote's default; but the pin contract makesbranch=an intent, and anupstream:<ref>pin is a leaf judged against the ref it names.pod-ai-toolkitdeclaresmainwhile its remote defaults tobootstrap-seed, and the obvious fix is wrong:The self-test's case
Ebuilds exactly that shape: a bare remote that grows alegacybranch while thesuperproject's
.gitmodulesstill declaresbranch = legacy, and the step must PASS and name it, where itpreviously failed. The arm is what makes the relaxation provable; without it, the code change is a claim.
Re-pointing the branch would drop commits that exist only on
main. So the audit now accepts a served non-default branch (naming it on stderr, so the deliberate case is visible) and still fails a branch the remote does not serve — and a fifth case proves it:Case
Eis what makes the relaxation provable — it is a served non-default branch, it must PASS, and under strict equality it would not. A later simplification back to strict equality would sail through every other assertion — which is how the||phantom and the ratchet with seven rows of slack both survived their own self-tests.Rulebook compliance
/charly-internals:git-workflowloaded for the pinning rules, and it states this verb's scope before I ran it: "that verb is an ORG-WIDE cutover, not a way to move one pin".pod-ai-toolkitbranch divergence. Mechanism: the audit encoded declared branch == remote default, while the pin contract says a pin declares its intent. Blast radius: everytask verifyrun. Root fix in this diff, with a self-test arm; charly task verify is RED: pod-ai-toolkit declares branch=main, its remote default is bootstrap-seed #1101 closes with it.git addby hand, and no-timeoutorcontinue-on-erroranywhere.git statusread first. The wave holds the index lock while it rolls, so no git command ran in this worktree during it. The untracked*-omarchy/directories are not mine and were left untouched.behindbefore, 0 after. And the audit's relaxation is proven by caseEitself, which ships and would FAIL under strict equality — a served non-default branch that the old rule rejects. There is no separate plant that restores strict equality; an earlier draft of this body claimed one, and that claim was not supported by the mutation list.charly task verify, run above on this committed tree, rc=0.Change classification
Kind: sixteen gitlink advances, plus one config change and one code change — stated because an earlier version of this section claimed the diff authored none of that while its own file table listed both.
charly.yml— the branch audit relaxedscripts/check-verify-branch-audit.mjs— caseEBoth halves are gated: a pin diff's gate is
charly task verify, and a config/script diff's is parse + execute live +--self-test+bash scripts/design-check.sh.verifycomposes all of them and runs the self-test as its own step.Breaking change + rollback: none — and here is why it breaks nothing. A gitlink names a commit that already exists on the other side; consumers read the same tree, one commit later. The audit relaxation widens what passes and never narrows it — every branch that passed before still passes, because equality with the default is still accepted. Reverting restores the pointers and the strict message.
Filed issues
What is FIXED IN-TREE and what is FILED, stated once so the two cannot contradict each other elsewhere in this body:
pod-ai-toolkitbranch-audit failure. Thecharly.ymlaudit and caseEare in this diff, andverifyis pasted green above. Nothing about it is deferred.merge-baseDIVERGED result), added there before closing.||is a logical operator, not a union — the dpat phantom finding #1105 — MERGED UPSTREAM.design-dpatread||as a union; the pin advance surfaced it and the fix landed before this branch. Not a follow-up — named because a reader comparing this pin to that gate needs to know which side changed.Files changed
charlycharly.ymldistro-archdistro-cachyosdistro-fedoradistro-ubuntulayer-cudalayer-nvidialayer-python-mlplugin-deploy-podplugin-doctorplugin-misepod-airflowpod-jupyter-mlpod-marimoscripts/check-verify-branch-audit.mjsE, which proves the relaxationsdkspecAgent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)