Skip to content

feat(charly)!: close C6 — deploy-mechanism substrate-word read deleted; gate sdk coverage restored; sdk#301 consumer pins - #704

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/c6-descent
Sep 27, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/c6-descent

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

Closes C6 and lands the charly consumer side of the sdk#301 identity-keyed per-host state cutover.

C6 (the deploy-mechanism substrate-word read):

  • Bumps the sdk pin to v0.2026270.152 — the merged C6 change (fix(deploykit)!: resolve the host-libvirt VM by its stamped descent, not the substrate word (C6) sdk#311) that deletes the last .Target == "<substrate>" read in sdk/deploykit: FindVmDeployNode now reads the loader-stamped descent via deploy.IsVmVenue (the trait, never the word).
  • Drops the now-obsolete deploy_state.go entry from the P9 word-switch gate's allowlist.
  • Restores the gate's sdk coverage. Its ../sdk/deploykit/*.go glob assumed an in-tree sdk submodule and has matched nothing since the sdk de-submodule cutover, so the gate silently lost the deploy-Mechanism half of its contract (the allowlist entry it carried was a no-op). The sdk source is now located through the build's own module resolution (go list -m), and an empty result is a hard failure — a gate that scans nothing must not pass.

sdk#301 consumer side: bumps the compiled-in plugin-vm pin to v0.2026270.402 (opencharly/plugin-vm#52), which keys the per-host VM state by the deploy IDENTITY so the identity-keyed reader finds it. The external plugin-deploy-vm companion (opencharly/plugin-deploy-vm#26) is resolved at runtime from its merged tag.

Not included (reported, not silently dropped): a versioned charly migrate re-key entry for orphaned legacy vm:<dashed> overlay entries. The migration table's version gate requires a spec #SchemaVersion bump, which collides with the in-flight schema-versioning-removal chain (spec#176 → plugin-migrate); that chain removes the gate the entry would need. The sdk's own one-touch prune (saveVmStateInto deletes "vm:"+VmDomainIdentity(identity) on the next write) already self-heals any re-written entry. The migration belongs to the versioning-removal chain, not this PR.

How tested

Head 02b3e5e880e20ce58d933ca38c52a82bf3c733fa (merge of current origin/main); diff go.mod ±2, go.sum ±4, no_substrate_word_switch_gate_test.go +32/−7.

Charly Go gate:

$ gofmt -l .
$ go vet ./...
(clean)
$ go test ./...
ok  	github.com/opencharly/charly/charly	191.133s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	83.895s

R9 fresh build:

$ bash scripts/bootstrap-charly.sh
bootstrap-charly: built ./bin/charly (2026.270.0440)
$ ./bin/charly version
2026.270.0440

R10 — the decisive live disposable bed, from the committed tree:

$ charly check run check-r10-two-vm
charly check run check-r10-two-vm: [cleanup-members] PASS after 1m14.767s
charly check run check-r10-two-vm: PASS (steps=13)

The bed is the decisive experiment for the whole cutover (R1/RDD):

Gate teeth proven (the restored sdk coverage is real): with a .Target == "vm" read re-introduced into sdk/deploykit, the gate FAILS naming the sdk file:

$ go test -run TestNoSubstrateWordSwitchInDeployConsult ./
--- FAIL: TestNoSubstrateWordSwitchInDeployConsult
    P9 word-switch gate violated …
          …/sdk/deploykit/deploy_state.go:219: .Target == "vm"
          …/sdk/deploykit/deploy_state.go:227: .Target == "vm"

Rulebook compliance

  • R1 — the plan's C6 premise ("the loader cannot recover the node's substrate from Descent") was verified against the live code and found stale: loaderkit.StampDeployDescents re-stamps on every load (a live spike proved a per-host vm: entry with no persisted descent: yields Descent{Venue:"ssh", ExclusiveVenue:true}). The word-read was an un-migrated P9 consult site; no spec persistence is needed.
  • R2 — the whole C6 scope plus the surfaced sdk#301 consumer gap are landed across their owning repos (sdk#311, plugin-vm#52, plugin-deploy-vm#26, this PR).
  • R3 — the gate reuses the ONE build-resolution mechanism (go list -m); no second copy of the sdk-path logic.
  • R4 — no workaround: the pin bump is a real dependency move, not a shim; the restored gate fails loud on an empty scan rather than passing silently.
  • R5 — the allowlist entry is removed (no dual path, no kept entry); no stale .Target == "<substrate>" reference remains.
  • R6 — no destructive or history-rewriting operation; origin/main was merged (never force-pushed).
  • R7 — the gate's fails-without proof is pasted (a regrown sdk word-read FAILS the gate); the bed FAILs pre-fix and PASSes post-fix.
  • R8 — the per-host deploy overlay is validated live by the bed (identity-keyed, no vm:-keyed entries).
  • R9 — a fresh scripts/bootstrap-charly.sh produced bin/charly (2026.270.0440); charly version matches; the changed plugins were built/served from their merged tags.
  • R10 — the disposable charly check run check-r10-two-vm gate ran to completion from the final committed tree (PASS (steps=13)).

Change classification

  • Change class: charly Go code + dependency pins (a cross-cutting deploy-Mechanism / loader pin change) → go test/go vet + R9 build + charly check run for the bed whose kind matches the touched path (the VM bed check-r10-two-vm).
  • Verification gate: gofmt/go vet/go test ./..., fresh bootstrap-charly.sh + charly version, and the live check-r10-two-vm bed (fails-before / passes-after).
  • Attribution tier: fully tested and validated.

Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

…read; restore the gate's sdk coverage

Bump the sdk pin to v0.2026270.152 (the merged C6 sdk change), which deletes the
last `.Target == "<substrate>"` read in sdk/deploykit: FindVmDeployNode now reads
the loader-stamped descent via deploy.IsVmVenue.

Drop the now-obsolete `deploy_state.go` entry from the P9 word-switch gate's
allowlist, and restore the gate's sdk/deploykit coverage. Its `../sdk/deploykit`
glob assumed an in-tree sdk submodule and has matched NOTHING since the sdk
de-submodule cutover, so the gate silently lost the deploy-Mechanism half of its
contract (the allowlist entry it carried was a no-op). The sdk source is now
located through the build's own module resolution (`go list -m`), and an empty
result is a hard failure — a gate that scans nothing must not pass.

Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…026270.402)

The compiled-in plugin-vm now keys the per-host VM state by the deploy identity
(opencharly/plugin-vm#52), so the sdk#301 identity-keyed reader finds it. The
external plugin-deploy-vm companion (opencharly/plugin-deploy-vm#26) is resolved
at runtime from its merged tag. Proven live: check-r10-two-vm PASS (steps=13).

Assisted-by: OpenCode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 02b3e5e880e20ce58d933ca38c52a82bf3c733fa (branch: feat/c6-descent)

Security screen: PASS — the PR touches the no_substrate_word_switch_gate_test.go gate but strictly strengthens it (drops the deploy_state.go allowlist exemption, replaces the dead ../sdk/deploykit/*.go glob with build-resolved go list -m source lookup, and hard-fails on an empty scan); dependency bumps are org-internal (opencharly/sdk, opencharly/plugin-vm) with matching go.sum h1/go.mod hashes. No secrets, egress, or scope creep.

Checklist: All applicable rules PASS or NA — 3 files fully accounted for by the body; gate/bed evidence pasted and internally consistent (main-pin PASS → bumped-pin FAIL → consumer-leg PASS; gate teeth re-proven on a regrown sdk word-read); fully tested and validated is justified by the fails-before/passes-after bed on the changed deploy path; SDD/ADE N/A (no schema/cue/candy change); placement CORRECT (pin bump + repo gate in charly/). The reported-but-not-included orphaned-entry migration names its owning chain and is a harmless, self-healing cleanup outside this cutover — not a forbidden R2 split.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 27, 2026 05:06
@github-actions
github-actions Bot merged commit e86d8df into main Sep 27, 2026
1 of 2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 27, 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