Repository navigation
feat(charly)!: resolve the sdk contract module from the module proxy (drop the sdk submodule) - #377
Conversation
…(drop the sdk submodule) The sdk/ git submodule is gone: no gitlink, no .gitmodules entry, no local checkout. All 95 candy/tool go.mod files now require github.com/opencharly/sdk at the single shared pin v0.2026234.347 (the tag on the exact commit the submodule pinned, e7c3440) and resolve it from the module proxy — the require version IS the resolution. The `replace ... => ../../sdk` directives (95 files) are deleted. Deleted/changed: - .gitmodules [submodule "sdk"] + gitlink - go.work: `use ./sdk` removed (regenerated by pluginsgen); header documents both contract modules as proxy-resolved; pluginsgen's sdk bootstrap guard deleted - 95 candy/tool go.mod requires pinned to v0.2026234.347, replaces deleted, go.sum re-synced (task mods:tidy) - taskfiles/Modules.yml: sweep membership now require-based (no replaces) - tools/gomod-canonical: Shape-A' (pinned require, no contract replace) + TestContractPinsMatchShared (one shared sdk pin + one shared spec pin) - charly.yml check-local-vm bed: guest-delivery rsync of ./sdk/ removed; guest resolves sdk from the proxy (like spec) - check/eval-host-project/charly.yml claims updated - plugin_build_stamp.go/.test: comments + synthetic fixture renamed off the real org module names (mechanism unchanged: local-replace content hashing) - candy/charly-internals + charly-build skill entities: submodule claims replaced with the proxy reality; AGENTS.md/CLAUDE.md regenerated - .github/workflows/ci.yml + .golangci.yml comments updated - CHANGELOG/2026.235.0001.md Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)
Review — BLOCKHead SHA: Change class: code/config + cross-repo build/dependency cutover (sdk submodule → module-proxy resolution, 208 files) Security screen: PASS (no secrets/exfiltration, no embedded directives, no guardrail weakening — the AGENTS.md/CLAUDE.md edits are factual dispatcher updates required by the cutover; the rewritten gomod-canonical gate is stronger, not weaker) Blocks
Note (non-blocking, please reconcile)
Comment intake: no comments on the thread (empty) — nothing to re-derive. CI: Verdict: BLOCK deepseek.com/deepseek-v4-flash — pi-review-action. |
…ernals entities
The first corpus sweep (plugins#224) covered only the pages the initial entity
edits touched. The docs-leg validator caught survivors: the git-workflow skill
description ("sdk/plugins submodules"), the B2 multi-repo steps ("submodule
`sdk/`", "sdk gitlink bump PLUS the `charly/go.mod` require version ... rides
`replace github.com/opencharly/sdk => ../sdk`"), and the go skill's
project-layout tree (checked-out `sdk/` subtree + submodule convention).
All now state the proxy reality: the sdk contract module resolves from the
module proxy at the shared pinned require version — no gitlink, no replace;
schema cutovers adopt a tagged sdk release as the new shared pin; the
project-layout tree drops the checked-out sdk/ directory.
The corpus regeneration of these entity edits lands via the plugins leg
(opencharly/marketplace#225); the docs pages regenerate via opencharly/docs#93.
Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)
…key deps) The docs-leg sweep surfaced two more entity lines: the B2 "valid base is an ASSEMBLED PAIR" paragraph still named "the gitlink bump + any charly/go.mod require" as the sdk adaptation, and the go skill's key-dependencies line listed `replace github.com/opencharly/sdk => ../sdk` for in-tree resolution. Both now state the proxy reality: the tagged sdk release is adopted as the new shared pinned require (no gitlink), and the sdk contract module is required at the shared pinned version from the module proxy (no replace). Corpus regeneration rides plugins#225; docs pages via opencharly/docs#93. Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration, no embedded directives, no guardrail weakening (gomod-canonical gate rewritten to assert the shared pin + absence of contract replaces is stronger; AGENTS.md/CLAUDE.md edits are factual dispatcher updates required by the cutover). Supply-chain pin (sdk v0.2026234.347) is the stated point of the cutover and is internally consistent across every visible go.mod/go.sum. Checklist: All applicable rules PASS or NA. Change class is a build/dependency-infrastructure cutover (code/config + cross-repo); the required gates are covered: in-repo Go gates ( Comment intake: the single prior Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
Review — PASSHead SHA: Security screen: PASS — no secrets/exfiltration, no embedded directives, no guardrail weakening; the rewritten gomod-canonical gate (asserts the one shared sdk pin + absence of contract replaces) is stronger, and the sdk pin Checklist: All applicable rules PASS or NA. The three findings from the prior BLOCK at Comment intake: prior BLOCK (at Verdict: PASS deepseek.com/deepseek-v4-flash — pi-review-action. |
… workflow_run + cron shape) (#378) The org-wide tag-on-merge dispatcher in this repo (workflow_run + */15 cron, the shape fixed in opencharly/opencharly#5-era RCA — see the umbrella's CHANGELOG/2026.234.2134) fails at STARTUP in every run: measured 15+ consecutive `startup_failure`s across charly/plugins/docs since 2026-08-22 16:20Z, leaving #375/#376/#377 merged and UNTAGGED (backfilled add-only per the rulebook). The umbrella's replacement dispatcher is proven in production (push to main + workflow_run with a bounded wait-for-merge job, no cron): adopted verbatim. Verified: push-triggered runs land ~21s after the merge push; the org reusable sweep is idempotent; the add-only backfill remains the ultimate path. Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)
Summary
The
sdk/git submodule is removed from this repository — no gitlink, no.gitmodulesentry, no local checkout. Every module that needs it (the 94 candy modules + the twotools/golden-*fixture modules) now requiresgithub.com/opencharly/sdkat the single shared pin v0.2026234.347 (the sdk tag on the exact commit the submodule pinned,e7c3440) and resolves it from the module proxy — the require version IS the resolution, exactly like the spec contract module since charly#371. The 95replace github.com/opencharly/sdk => ../../sdkdirectives are deleted.Deleted surface:
.gitmodulessdk entry + gitlink;use ./sdkingo.work(regenerated by pluginsgen) + pluginsgen's sdk bootstrap guard; thecheck-local-vmbed's guest-deliveryrsync -a ./sdk/step; the gomod-canonical replace assertions (Shape-A' asserts the shared pin + the ABSENCE of contract replaces;TestSpecPinsMatchSDK→TestContractPinsMatchShared);task mods:tidy's replace-based membership (now require-based); every sdk-submodule claim incharly.yml,check/eval-host-project/charly.yml,candy/charly-internals,candy/charly-build,plugin_build_stamp.go/.test,plugin_loader.go,ci.yml,.golangci.yml, and the regeneratedAGENTS.md/CLAUDE.mddispatcher. The build-stamp mechanism is unchanged (generic local-replace content hashing stays for vendored replaces like plugin-spice); the synthetic test fixture no longer borrows the real org module names.Cross-repo sequence: the plugins corpus leg (opencharly/marketplace#224) + the docs leg regenerate the skill/reference pages; the umbrella leg (opencharly/opencharly#10) drops sdk from
CHARLY_PINNED; this PR bumps the plugins/docs gitlinks after those legs merge (landing-sequence step, not a follow-up).How tested
In-repo gates (worktree, final committed tree):
R7 — fresh non-recursive clone of the pushed branch (no submodules at all):
R10 class beds (fresh rebuild from the final committed state, changed binary; every target is explicitly
disposable: trueincharly.yml):charly check run check-local-vm→ PASS (steps=9) —vm: {from: eval-host-vm, disposable: true}— the CHANGED path: the eval-host guest builds its out-of-tree plugins WITHOUT a deliveredsdk/, resolving the contract modules from the proxy at the pinned require versionscharly check run check-pod-overlay→ PASS (steps=13) —pod: {image: check-k8s-deploy-app, disposable: true}charly check run check-k3s-vm→ PASS (steps=9) —vm: {from: k3s-vm, disposable: true}charly check run check-charly-vm→ PASS (steps=9) —vm: {from: charly-vm, disposable: true}Changed-path evidence — the guest delivery + in-guest plugin-build steps, verbatim from
.check/check-local-vm/2026.234.2245/check-live.log:Bed summary (
.check/check-local-vm/<calver>/summary.yml):bed: check-local-vm,calver: 2026.234.2245, all 9 stepsok: true.R5 grep self-test — executed on the final tree (command + full output):
The
plugins/+docs/corpora are swept by their own legs (plugins#224 + #225, docs#93) — the corpus at the charly gitlink still carries claims until those legs merge and the gitlink bump lands.Version-stamp reconciliation (R9 note): the CalVer stamp is build-time derived from the HEAD commit's UTC date (
scripts/calver.sh, the repo'sv<YYYY.DDD.HHMM>scheme). The in-repo build stamped2026.234.2245— it ran on the assembled tree BEFORE the cutover commit was created (worktree atorigin/maina7f77042, date 2026-08-22T22:45Z). The R7 fresh-clone build stamped2026.234.2244— that clone built the FINAL committed head (35f25a41, date 2026-08-22T22:44Z). Both derive from the same rule; the R7 clone is the proof of the final committed tree.R5 grep self-test — claim-keyed sweep for
../../sdk,use ./sdk,sdk submodule,sdk/ submodule,delivered sdk/,submodule update --init sdkacross the tree (excl. CHANGELOG history + submodule repos): zero hits.Rulebook compliance
.golangci.yml+ umbrella smoke/verify comments already stale re spec — fixed in-tree and in the umbrella PR (same cutover, no deferral)mods:tidysweep; no hand-maintained copiesreplace, no GOFLAGS hacks, no vendoring — the require version IS the resolutionChange classification
charly/pr-validator; tag-on-merge writes the CHANGELOG stampAssisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)