Skip to content

feat(spec): add WalkSeams + ProjectWalker seam for the loader WALK (#46) + #55 rider - #58

Merged
atrawog merged 3 commits into
mainfrom
feat/46-loader-residue-fold
Jul 16, 2026
Merged

atrawog merged 3 commits into
mainfrom
feat/46-loader-residue-fold

Conversation

@atrawog

@atrawog atrawog commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Two independent, thematically-batched fixes landing together per orchestrator routing (both touch
the sdk submodule; neither warrants its own solo landing ceremony):

1. Cutover #46 (primary): add the WalkSeams + ProjectWalker seam contract that lets a plugin
(candy/plugin-loader, in the superproject) serve the whole-project WALK, mirroring the already-landed
DocParser/Threaded seam for the per-document PARSE (P6).

  • spec/loader_seam.go: added WalkSeams (the six host callbacks) and ProjectWalker
    (WalkProject(rootDir, rootData, rootIdentity, seams) (LoadedProject, error)) — the shared
    contract home BOTH a loader plugin and the host reference without either importing the other.
  • loaderkit/walk.go: deleted the local WalkSeams duplicate; Walk now takes spec.WalkSeams
    directly.

This is purely additive to spec + a signature change on loaderkit.Walk (the only in-module
caller is loaderkit itself; the sole external caller, the superproject's charly/loader_driver.go,
is deleted in the companion superproject leg, which reaches the walk exclusively through this new
typed seam instead).

2. #55 rider (one line, routed here per orchestrator ruling — too small for its own sdk PR leg):
vmshared/vm_snapshot.go DecrementSnapshotRefcount demotes its benign
snapshot-already-absent message from warning: to note:, matching the identical-semantic sibling
convention in candy/plugin-vm/vm_snapshot_libvirt.go (superproject: "note: snapshot %q not found via libvirt (already deleted?)"). A registry entry that's already gone (removed manually, or by a
prior teardown) satisfies the decrement's intent — it isn't an anomaly worth a warning. Message text
only, no logic change. Landed as its own commit so the squash carries both distinctly.

Rebased onto the post-#57 sdk main (3b92a2d, T-53's VM disk-build engine resolve-envelope move) —
zero file-level overlap (#57 touched schema/seam.cue, schema/buildresolve.cue,
spec/cue_types_gen.go, spec/deploy_wire.go; this PR touches spec/loader_seam.go,
loaderkit/walk.go, vmshared/vm_snapshot.go).

Test plan

  • GOWORK=off go build ./... — PASS
  • GOWORK=off go vet ./... — PASS
  • GOWORK=off go test -count=1 ./... — PASS (root, deploykit, enginekit, kit, loaderkit, spec,
    vmshared all green — fresh, non-cached run on the rebased branch)
  • GOWORK=off golangci-lint run — 0 issues
  • gofmt -l . — clean
  • Downstream proof: the superproject's charly check run check-sidecar-pod disposable bed
    (2026.197.0716, PASS, 348 seconds, full fresh-rebuild R10 including update +
    feature-run-rebuild) exercises this exact ProjectWalker/WalkSeams dispatch end-to-end via
    candy/plugin-loader's WalkProject implementation — see the superproject PR/branch for the
    pasted verdict.

https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif

atrawog added 2 commits July 16, 2026 09:27
…WALK (#46)

Lets a plugin (candy/plugin-loader, superproject) serve the whole-project WALK,
mirroring the already-landed DocParser/Threaded seam for the per-document PARSE
(P6). WalkSeams relocates from loaderkit into spec (the shared contract home
neither the host nor the plugin needs to import the other for); loaderkit.Walk
now takes spec.WalkSeams directly, one canonical type.

Tested via the downstream superproject's charly check run check-sidecar-pod bed
(2026.197.0716, PASS, 348s, full fresh-rebuild R10 including update +
feature-run-rebuild) which exercises this exact WalkProject dispatch end-to-end,
plus go build/vet/test/lint/gofmt on this module.

Assisted-by: Claude Sonnet 5 (fully tested and validated)
…#55 rider)

DecrementSnapshotRefcount logged "warning:" when a snapshot registry entry was
already absent (manually removed, or by a prior teardown) — but that satisfies
the decrement's intent, it isn't an anomaly. Matches the identical-semantic
sibling convention in candy/plugin-vm/vm_snapshot_libvirt.go ("note: snapshot
%q not found via libvirt (already deleted?)"). Message text only, no logic
change. Routed into this PR per orchestrator batching ruling (too small for
its own sdk PR leg).

Assisted-by: Claude Sonnet 5 (fully tested and validated)
@atrawog

atrawog commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly/sdk Go (contract-type relocation + one-line message demotion)

# Check Verdict
0 Security & anti-tampering (T1-T4) PASS — diff matches description exactly, no secrets/exfiltration, no weakened guardrails, no supply-chain change, no injection attempt
1 Description completeness PASS
2 Change-class gate matches evidence PASS — re-ran standalone: go build/vet/test/golangci-lint/gofmt/mod tidy/mod verify/task cue:gen all green on my own machine
3 Attribution tier justified PASS (see detail below)
4 R0 skills honored PASS — git-workflow (B6 producer-first sequencing), plugin (boundary law), go (SDD exceptions)
5 R1 zero warnings PASS
6 R2 no pre-existing split PASS — the #55 rider is explicitly routed, not dismissed
7 R3 no duplication PASS — this PR is the fix (one canonical spec.WalkSeams)
8 R4 no ad-hoc workaround PASS
9 R5 hard cutover + grep self-test PASS — loaderkit.WalkSeams fully gone, single definition remains
10 R6/R8/R9 N/A — no destructive git action, no OCI surface, no runtime binary in this repo
11 R10 disposable/fresh-rebuild/coverage PASS (see detail below)
12 RDD/ADE/SDD PASS/N/A — task cue:gen no-op, TestGenReproducible PASS, no generated file hand-edited, WalkSeams/ProjectWalker/DocParser are explicitly non-wire (compiled-in-only closures per their own doc comments)
13 Concurrency mandate N/A — no shared-state logic changed, only a contract type's home
14 Hard Cutover — one atomic PR PASS
15 Architecture gate PASS — placement: CORRECT (see detail below)
16 Disposable-Only Autonomy N/A
17 Clean architecture + go gates PASS — 0 lint issues, gofmt clean, vet clean, tests green
18 CHANGELOG present PASS

Item 3 + 11 detail — attribution & coverage

WalkSeams/ProjectWalker/Walk( have zero direct unit-test reference anywhere in this
module
— confirmed by grep. This is a pre-existing pattern, not something this PR introduces:
Walk has never had a direct test since its K1 introduction, and the sibling DocParser
interface it mirrors is likewise never unit-tested in isolation. For this class of pure
seam/contract declaration, the proof lives in the consuming plugin's own bed run, not an in-repo
test — so I did not take the PR's downstream-bed claim on faith. I located
check-sidecar-pod/2026.197.0716/summary.yml on disk (in the paired superproject worktree) and
confirmed: ok: true, all 12 steps ok: true (including a genuine update (108s) +
feature-run-rebuild (21s) — not a dry-run), total_seconds: 348 — byte-matching the PR's
claimed numbers. I additionally verified that worktree's sdk submodule is pinned to
a9d1e0e, this PR's exact head SHA — so the bed proves the new dispatch on the precise
commit being merged, not a stale snapshot. fully tested and validated is justified.

Item 15 detail — architecture

WalkSeams/ProjectWalker are a pure kind-agnostic ENVELOPE/CONTRACT (boundary-law clause E),
correctly placed in spec alongside the already-accepted DocParser/Threaded pair in the SAME
file — moving them one layer further out (into a candy) would break the very property the seam
exists for (host and plugin referencing a shared contract without either importing the other).
Walk correctly stays in loaderkit (an sdk kit — a kind-blind mechanism consumed by plugins,
per the boundary law). This PR is the sdk-side half of #46, whose entire purpose is eliminating
the last direct charly/ → sdk/loaderkit import in the superproject — a clear net-positive
move toward the plugin-host end-state. placement: CORRECT.

Decision: Merging. Finalizing the merge-time CalVer, rewriting the staged CHANGELOG,
squash-merging, and tagging under the sdk Go-module version scheme.

Assisted-by: Claude (analysed on a live system)

Assisted-by: Claude (fully tested and validated)
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