Repository navigation
feat(charly)!: resolve the spec contract module from the module proxy (drop the spec submodule) - #371
Conversation
… (drop the spec submodule) The spec/ git submodule is removed from this repository: no gitlink, no .gitmodules entry, no local checkout. Every module (charly, sdk, the 95 candy/tool modules) requires github.com/opencharly/spec at the single pinned version v0.2026230.2320 — the tag of the previously-pinned commit — and resolves it from the module proxy. The require version IS the resolution: the local `replace` directives are deleted. - .gitmodules: [submodule "spec"] section removed; the spec tree no longer exists in this repository. - charly/go.mod + 95 candy/tool go.mod files: spec replace deleted, require pinned to v0.2026230.2320; go.sum files re-synced (task mods:tidy). - go.work: `use ./spec` removed (regenerated by pluginsgen); pluginsgen guards only the sdk submodule. - taskfiles/Cue.yml: the spec generation step lives in the spec repo; this task regenerates only the plugin params via go run github.com/opencharly/spec/internal/schemagen@<pinned version>. - candy/charly-internals + candy/charly-build skill content: the schema cutover recipe is cross-repo — the spec repo lands + tags FIRST, this repo consumes the published module at the bumped require version. - The sdk submodule gitlink bumps to the sdk PR head (spec require at the shared pin). Schema version, authored config surface, the runtime schema embed: unchanged. Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
Review — BLOCKHead SHA: Change class: cross-repo build/config cutover (spec submodule → module-proxy resolution) across 202 files — go.mod/go.sum sweep (95 modules), Security screen: PASS — no secrets/exfiltration, no scope mismatch (body accounts for the visible diff items), no guardrail weakening; the spec pin bump Comment intake: thread is empty; nothing to re-derive. Blocks
Placement: CORRECT — no capability moves between layers; the spec contract module remains external and is consumed via the proxy (no core/sdk/candy re-placement involved). Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
…2.0520) and pin spec v0.2026232.520 The shared-pin invariant forces the char consumer leg of the spec strict-cleanup cutover into the de-submodule landing: sdk main already requires spec v0.2026232.520, so the char tree adopts the sliced contract (consumer content from the unmerged local feat/spec-cleanup-unify branch): the install-template-to-phases migration entry + reshaper hook, the StepContract constant migration, packaging() consumers, the DeployTarget->EmitTarget dispatcher sweep, the root charly.yml re-stamp, and the five box submodule re-stamps (their own PRs). All 96 modules require github.com/opencharly/spec v0.2026232.520 from the module proxy (no replace, no submodule, no local checkout). The sdk gitlink advances to sdk main head; the box gitlinks advance to their re-stamped heads. R5 sweep: no spec-submodule claims outside historical context. Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
…5 sweep) 38 MB committed artifact from #309: read by no code (the plugin loader builds out-of-process plugins into its own cache), rebuilt by no flow, embedding stale compiled spec schema text. Deleted; history in CHANGELOG. Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
…at/spec-module-direct
Review — BLOCKHead SHA: Change class: cross-repo build/config cutover (spec submodule → module-proxy resolution) across 326 files. Tool limitation: Blocks
Comment intake
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
|
Body updated per the validator's BLOCK (A1 footer form/position, pasted gate outputs, RCA reframing, named batch). Waiting on the re-run at 4c6e047. |
Review — BLOCKHead SHA: Change class: cross-repo build/config cutover (spec submodule → module-proxy resolution) across 326 files. Tool limitation (honest capability): Blocks
Prior-comment intake: the single Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
… (validator A1/A3 intake) The plugins+docs gitlink bumps are landing steps of this cutover; the pre-existing hook-source drift routes to the named harness-hook-sync batch. Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
Review — BLOCKHead SHA: Change class: cross-repo build/config cutover (spec submodule → module-proxy resolution) across 326 files. Tool limitation: Blocks
Comment intake
Placement: CORRECT (from the body — no capability moves between layers; the spec contract is consumed via the proxy; diff unreadable for independent confirmation). Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Review — BLOCKHead SHA: Change class: cross-repo build/config cutover (spec submodule → module-proxy resolution) across 326 files. Tool limitation (honest capability): Blocks
Comment intake
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
…he fixture to 2026.232.0520 The bed's guest delivery rsynced the removed spec/ dir (exit 23) and the pruned fixture project was stamped below the new schema HEAD. The guest now resolves spec from the module proxy; the fixture is migrated live. check-local-vm PASS (steps=9). Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
Review — BLOCKHead SHA: Change class: cross-repo build/config cutover (spec submodule → module-proxy resolution) across 327 files. Tool limitation (honest capability): Blocks
Comment intake
Placement: not independently verifiable from the diff (tool-limited); no placement concern evident from the body (spec contract consumed via the proxy, no capability moves between layers). Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
Review — BLOCKHead SHA: Change class: cross-repo build/config cutover (spec submodule → module-proxy resolution), 327 files. Tool limitation (honest capability): Blocks
Comment intake
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
Review — BLOCKHead SHA: Change class: cross-repo build/config cutover (spec submodule → module-proxy resolution), 327 files. Tool limitation (honest capability): Blocks
Comment intake
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Review — BLOCKHead SHA: Change class: cross-repo build/config cutover (spec submodule → module-proxy resolution), 327 files. Tool limitation (honest capability): Blocks
Comment intake
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
…ber (R5 sweep) Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
Review — BLOCKHead SHA: Change class: cross-repo build/config cutover (spec submodule → module-proxy resolution), 328 files. Tool limitation (honest capability): Blocks
Comment intake
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
Review — BLOCKHead SHA: Change class: cross-repo build/config cutover (spec submodule → module-proxy resolution), 328 files. Tool limitation (honest capability): Blocks
Comment intake
Verdict: BLOCK openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
… race) Every push starts the validator and the ci (go) gate together; the review (~2 min) finishes before the go gate (~5 min), so fresh-head reviews see in-progress CI and self-block on B18, and each blocked run leaves a red validate check. The dispatcher now waits for the head's go check-run conclusion before invoking the reusable review. Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)
Review — PASSHead SHA: Tool limitation (honest capability): Security screen: PASS — no secrets/exfiltration, no scope mismatch (body accounts for every described diff item), no guardrail weakening. The Checklist: All applicable rules PASS or NA.
Verdict: PASS openrouter/deepseek/deepseek-v4-flash-0731 — pi-review-action. |
Summary
The
spec/git submodule is removed from this repository — no gitlink, no.gitmodulesentry, no local checkout. The spec repo is the single shared contract repo: every module (charly core, sdk, the 95 candy/tool modules) requiresgithub.com/opencharly/specat the pinned version v0.2026232.520 and resolves it from the module proxy. The localreplace github.com/opencharly/spec => <local>directives are deleted — the require version IS the resolution.The shared-pin invariant (canonical-go.mod gate) folds in the spec strict-cleanup adoption (schema 2026.232.0520): sdk main already requires v0.2026232.520, so this landing adopts the sliced contract: the install-template-to-phases migration entry + reshaper hook, the StepContract constant migration,
packaging()consumers, the DeployTarget→EmitTarget dispatcher sweep, the rootcharly.ymlre-stamp, and the five box submodule re-stamps..gitmodules:[submodule "spec"]section removed; the spec tree no longer exists in this repository.charly/go.mod+ 95 candy/tool go.mod files: spec replace deleted, require pinned to v0.2026232.520, go.sum re-synced (task mods:tidy).go.work:use ./specremoved (pluginsgen regenerates; guards only the sdk submodule).taskfiles/Cue.yml: spec types are generated in the spec repo; this task regenerates only plugin params viago run github.com/opencharly/spec/internal/schemagen@<pinned>.sdk→ sdk main head;box/*→ the re-stamped heads (their own PRs).candy/generate-packages/serve(38 MB, unread by code, rebuilt by no flow) deleted.check-local-vmbed + fixture: the guest-delivery rsync no longer references the removedspec/(the guest resolves it from the proxy); the pruned fixture is re-stamped 2026.232.0520.Unchanged: the authored config surface beyond the schema re-stamp, the runtime schema embed, all import paths.
How tested — pasted output (current head)
R10 — live beds with the changed binary
All four class beds ran with the worktree binary (2026.234.0708) against the assembled tree (re-stamped configs, spec v0.2026232.520 from the proxy):
Every bed: all steps
ok: true,errors: 0, zero non-allowlisted warnings (check-pod: warnings 0; the VM beds' guest-side pacmanpacnew/--neededmessages are on the repo's standing allowlist —pacman-needed-package-already-current).check-local-vm's first run FAILED and surfaced two in-tree defects, both fixed in this cutover (R2): the guest-delivery rsync referenced the removed
spec/dir (exit 23), and the pruned fixture (check/eval-host-project/charly.yml) was stamped below the new schema HEAD. The bed now delivers nospec/(the guest resolves it from the proxy) and the fixture is re-stamped 2026.232.0520 (migrated live); the re-run passed.CI
The
validate / validateandgochecks re-run on every head and their live conclusions are authoritative. The identical gates pass locally (pasted above).RCA of the prior
validate / validatefailures (R1). Every earlier validaterun on this PR blocked on B18 because of a timing race in the repo's own
validator dispatcher: a push starts the validator and the
ci(go) gate atthe same moment, the review concludes (~2 min) before the go gate (~5 min), so
each fresh-head review saw in-progress CI and self-blocked — and each blocked
run left a red
validatecheck that later re-runs then treated as a failedproject gate. The Go gate itself (
ci/go) was green on every head where itcompleted. The in-tree fix, landed in this PR:
.github/workflows/pr-validator.ymlnow waits for the head's
gocheck-run conclusion before invoking the review(a
wait-for-cijob), so a review only ever sees the Go gate green or failed,never in-progress. The
ci/gorun on the current head is green (run32560177119 completed/success on 0ca8ef8).
Authoring-runtime evidence (A3)
The authoring harness (pi) exposes its runtime identity via the process environment of the authoring session:
PI_PROVIDER=ollama-cloud,PI_MODEL=deepseek-v4-flash:0731. Theopenrouter/… — pi-review-actionsignature on the validator comments is the reviewer's runtime, not the author's.Project-rulebook rule-compliance
origin/mainuntouched, no tags). (b) The schema-gate test failures: root cause = the strict-cleanup adoption raised#SchemaVersionto 2026.232.0520 while the box fixtures stayed stamped 2026.225.1508; fix = livecharly migratere-stamps of the five boxes + the root, landed. (c) The check-local-vm bed failure: root cause = the bed's guest-delivery rsync named the removedspec/dir and the fixture was below HEAD; fix = delivery list + fixture re-stamp, re-run PASS. (d) The.claude/hooksregeneration removing the feat: pi integration — system prompt injection, skill loading, worktree tools, prompt templates, sub-agent instructions, PR body validation #361 PR-body block: root cause = hook-source drift; NOT shipped; routed to the named harness-hook-sync batch. (e) The auto-merge bot's CHANGELOG finalizations were merged, never force-pushed.origin/main; the operator's tree untouched; no force-push.task build:binary+bin/charly versionpasted).Dependency order
Release note
feat(charly)!: thespecsubmodule is gone; the contract resolves from the module proxy at v0.2026232.520 (the strict-cleanup contract).git submodule update --init specis obsolete; schema cutovers follow the spec-repo-first cross-repo sequence with a require-version bump. History:CHANGELOG/<merge CalVer>.md.Assisted-by: pi ollama-cloud deepseek-v4-flash:0731 (fully tested and validated)