Skip to content

fix(deps): carry the sdk loader fix that names an uninitialized submodule - #863

Merged
github-actions[bot] merged 3 commits into
mainfrom
fix/pin-sdk-uninitialized-submodule
Oct 8, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
fix/pin-sdk-uninitialized-submodule

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Consumes opencharly/sdk#361 (MERGED; tag v0.2026281.2051, commit 54c82a9). Closes opencharly/charly#847.

charly's loader is loaderkit in the SDK, so the defect fixed there - a namespaced import whose target is a declared submodule directory that exists but holds nothing, reported as a bare ENOENT - is only fixed for charly once the module requirement moves. That requirement is the declaration the build reads. The umbrella gitlink is a second declaration of the same producer and is deliberately not touched here (see Scope).

charly/go.mod:  github.com/opencharly/sdk  v0.2026280.2246  ->  v0.2026281.2051
charly/go.sum:  4 ++--   (the two lines GOWORK=off go mod tidy owns)

How tested

The artefact-level proof - which sdk this binary actually LINKS:

$ rm -f bin/charly && ./scripts/bootstrap-charly.sh
BUILD rc=0
$ GOWORK=off go version -m ./bin/charly | grep opencharly/sdk
    dep  github.com/opencharly/sdk  v0.2026281.2051  h1:P4Ayk61Z4BSy8SuK6YFB5nWHHl5m7XPSqj+05OONxlU=
$ grep -c "=> /home" charly/go.mod
0                       <- no replace back door

The binary was deleted first and rebuilt on purpose: a binary that happens to be lying around is not evidence, and the version stamp did not change between two builds - the embedded module line is what a stale build cannot fake.

The live proof, in the tree that fails on main - a fresh umbrella worktree at 4a2fc64 with 423 uninitialized submodules and charly/ empty (the shape this issue is about), running that rebuilt binary:

$ charly box validate
charly: error: command "validate": validation error: /tmp/wtfix/charly.yml: import charly ("./charly"):
  submodule "charly" is not initialized: /tmp/wtfix/charly is empty, so /tmp/wtfix/charly/charly.yml
  cannot be read; run: git submodule update --init charly (from /tmp/wtfix)

$ charly task list          # the verb the umbrella pre-commit hook calls
charly: error: command "task": load project: /tmp/wtfix/charly.yml: import charly ("./charly"):
  submodule "charly" is not initialized: ...

Both verbs now name the cause, where previously they returned open ...: no such file or directory. The reader is told what is wrong and what to run.

The second declaration, routed to its named row (not parked)

The umbrella sdk gitlink is not advanced by this PR, and that surface is now a named row: opencharly/charly#864.

It is not a "separate step": charly task sync requires all 423 submodules to be initialized checkouts because it walks every gitlink, and in a fresh worktree it fails -

bumped 1 submodule pin(s): charly; 422 FAILED:
  submodule "action-review" is not an initialized checkout

That is measured and pasted, with candidate fixes, in #864. It is also the third surface of the same root condition: the loader (opencharly/sdk#361, consumed here by #863, tracked as opencharly/charly#847), the umbrella pre-commit hook (a single git submodule update --init --depth 1 charly makes it pass), and now task sync.

Why this PR is still the right unit: it is the module-requirement half - the declaration the build reads, and the one that makes charly's binary carry the fixed loader, which is what closes #847. Advancing the gitlink needs an initialized checkout and belongs with #864's fix, not smuggled in here.

Check round - the lockstep pins, aligned by the verb the test named

The verdict PASSed the change, and the go check failed on it - independently, which is the divergence worth recording: the review judges the diff and the prose; the check judges the module graph.

TestContractPinsMatchShared FAIL:
  tools/generate-packages/go.mod: requires sdk v0.2026280.2246, but the shared sdk pin is v0.2026281.2051
  tools/golden-cloudinit/go.mod:  ... same ...
  tools/golden-compile/go.mod:    ... same ...

The cause is this change, correctly propagated: bumping charly's sdk requirement moved the shared pin, and the three lockstep tools/* modules must track it. The test names its own remedy - charly task mods-tidy - so that verb was run rather than reasoned about: its own run and check steps both pass, six files move (each module's go.mod + go.sum), TestContractPinsMatchShared passes locally, and bootstrap-charly.sh returns 0.

Rulebook compliance

  • R0 - git-workflow loaded before the git/PR actions; /charly-internals:skills loaded earlier tonight when these insights were codified.
  • R1 - the issue's anomaly was root-caused (module-cache grep -> loaderkit/walk.go:192, fixed and merged as sdk#361); the sibling missing go.sum failures were root-caused separately as charly#857 (GOWORK=off plus two missing spec sums).
  • R2 - the cutover is this one requirement plus the sums its graph owns; the second declaration (the gitlink) is routed to its named row opencharly/charly#864, with the failure and candidate fixes pasted there - not parked as a vague "separate step".
  • R3 - the producer is declared twice; the declaration read first is the module requirement, because it is the one the build uses.
  • R4 - no workaround: the pin is the merged tag, and go mod tidy owns go.sum rather than a hand edit.
  • R6 - one commit on a fix/ branch, no force-push, no hook bypass, no direct push to main.
  • R7 - the changed path executed live in the failing tree; the artefact's embedded module version is asserted from the binary, not inferred.
  • R8 - the derived file (go.sum) is validated at its boundary by the tool that writes it (go mod tidy, a second -diff empty - the same standard used in #861).
  • R9 - worktree-local CalVer-stamped build; the binary under test is the one this tree produces.
  • R10 - class: module pin; the gate is a fresh rebuild plus the changed path executed live on the failing shape, both pasted above.
  • N/A - R4a (no documented command changes), N/A - R5 (nothing renamed), N/A - R7a (no external service crossed).

Change classification

fully tested and validated - a module requirement bump with its derived sums, proven by a fresh rebuild whose embedded dependency is asserted from the binary, no replace in the module, and the changed path executed live in the worktree that reproduces the issue.

Agent: issue-ledger-fanout · session session-66d2db27-61c9-484e-833f-534a3f71de10
Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)

…dule

Consumes opencharly/sdk#361 (merged; tag v0.2026281.2051, commit 54c82a9).

charly's loader is loaderkit in the SDK, so the defect fixed there - a namespaced
import whose target is a declared submodule directory that exists but holds nothing
reported as a bare ENOENT - is only fixed FOR CHARLY once the module requirement moves.
That requirement is the declaration the build reads; the umbrella gitlink is a second
declaration of the same producer and is not touched here.

sdk v0.2026280.2246 -> v0.2026281.2051 in charly/go.mod; go mod tidy moved the two
go.sum lines it owns. Verified at the artefact level rather than by inference: the
rebuilt binary reports dep github.com/opencharly/sdk v0.2026281.2051, with no replace
in go.mod.

Closes #847.

Agent: charly (fan-out prerequisite)
Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: c6b695595d90bbfb7a10224c5790357226b29162 (branch: fix/pin-sdk-uninitialized-submodule)
Change class: dependency/module pin (charly/go.mod + charly/go.sum version bump only)

Security screen: PASS — diff is a single version-pin bump on an org-owned module; no secrets, no egress, no guardrail weakening, no scope mismatch (the diff matches the stated change exactly).

Blocks

  1. R2 / B14(b) — a surfaced failure is parked as "a separate step" with no named batch/task. The Scope section reports a live failure — charly task sync → bumped 1 submodule pin(s): charly; 422 FAILED: submodule "action-review" is not an initialized checkout — and dismisses it with "it is a separate step with its own evidence; this PR is the module-requirement half". That is the forbidden out-of-scope split: an issue surfaced while the cutover is open must be fixed in-tree (blocking) or routed to its named thematic batch/task (not a vague "separate step"). The body elsewhere demonstrates it knows the correct form (it routes the sibling go.sum failures to the named charly#857), so the omission here is a real gap, not a formatting quirk. The body's own characterization ("the third surface of the same root condition as the issue itself") makes it worse: it asserts the same root cause is not fully cured by this cutover, yet leaves that surface unaddressed and unnamed.

    Fix: either resolve the umbrella gitlink/sync surface in this tree, or name the exact thematic batch/task/issue (as was done for #857) that this PR advances it to. "A separate step with its own evidence" is not a named exit.


Non-blocking dispositions: the go.sum h1 (P4Ayk61Z4BSy8SuK6YFB5nWHHl5m7XPSqj+05OONxlU=) is internally consistent with the body's go version -m output and the +2/-2 diff; the Assisted-by: footer is present in the correct form and the tier is defensible (the changed SDK path is the one exercised). The pre-fix no such file or directory behavior is asserted in prose rather than pasted, but the post-fix execution is pasted and coherent, so that alone would not block.

Verdict: BLOCK


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

View action run

…named row

R2/B14(b): the body parked a surfaced failure as a separate step. It now names the row
that carries it - #864 - with the measured failure and candidate fixes
pasted there, and the R2 bullet says so. No code change; the tree is identical.

Agent: charly (fan-out prerequisite)
Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 76362af1143231e2bf888af25065fd08361b5e4e (branch: fix/pin-sdk-uninitialized-submodule)

Security screen: PASS — single version-pin bump on an org-owned module; no secrets, egress, guardrail weakening, or scope mismatch (diff matches the stated change exactly). No embedded directives.
Checklist: All applicable rules PASS or NA.

Comment disposition — Comment 6069066910 by @github-actions[bot]: stale-superseded. Its sole block (R2/B14(b): gitlink/task sync surface parked as "a separate step" with no named batch) was raised against SHA c6b69559, the pre-body-update head. The CURRENT body at head 76362af (commit "re-trigger on the body that routes the gitlink surface to its named row") explicitly routes that surface to the named row opencharly/charly#864, with the 422 FAILED: submodule "action-review" is not an initialized checkout failure and candidate fixes pasted there — satisfying R2's named-batch requirement. Re-derived against the current state, the finding no longer holds. Its non-blocking notes (h1 consistency, footer form, tier) remain valid and do not block.

Verdict: PASS


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

View action run

The go check failed on TestContractPinsMatchShared: bumping charly's sdk requirement
moved the SHARED pin to v0.2026281.2051, and the three lockstep tools modules still
required v0.2026280.2246. The test names its own remedy, so it was run rather than
reasoned about: charly task mods-tidy, whose own run and check steps both pass.

Six files move: the go.mod and go.sum of tools/generate-packages, tools/golden-cloudinit
and tools/golden-compile. TestContractPinsMatchShared now passes locally and
bootstrap-charly.sh returns 0.

Agent: charly (fan-out prerequisite)
Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 5eed4ef760ebef7f96da1b3496f8b2ea44ecce2c (branch: fix/pin-sdk-uninitialized-submodule)

Change class: dependency/module pin — charly/go.{mod,sum} sdk bump v0.2026280.2246 → v0.2026281.2051, plus the three lockstep tools/*/go.{mod,sum} aligned to the shared pin (8 files, all pin/sum lines; no code, no new deps, no @github refs).

Security screen: PASS — no secrets, egress, network calls, guardrail weakening, or scope mismatch; the diff is exactly the stated pin propagation. No embedded directives; the body is data.

Checklist: All applicable rules PASS or NA. Module-pin class: fresh rebuild + embedded-module assertion (go version -m) pasted, changed SDK path executed live in the reproducing worktree with pasted output; h1/go.mod-h1 sums internally consistent across all four modules and with the body's go version -m; no replace back door; go.sum owned by go mod tidy (R8); R4a/R5/R7a N/A; ADE/SDD/architecture N/A (no candy, CUE, proto, or code placement). B15 flag (non-blocking): three commits (fix, body re-trigger, fix(tools)) will collapse on squash — all advance the same cutover, no partial/split pattern.

Comment dispositions:

  • Comment 6069066910 (BLOCK @ c6b69559) — stale-superseded: its sole block (gitlink/task sync surface parked as "a separate step") was raised against the pre-body-update head; the CURRENT body names opencharly/charly#864 with the 422 FAILED … failure and candidate fixes pasted there, satisfying R2's named-batch requirement. Re-derived against current state, the finding no longer holds.
  • Comment 6069178705 (PASS @ 76362af) — stale-superseded as to head (predates the fix(tools) commit and the current 8-file diff); its reasoning (R2 routing resolved) is re-derived independently and holds against the current state.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 8, 2026 21:26
@github-actions
github-actions Bot merged commit 438ed4f into main Oct 8, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 8, 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