Repository navigation
feat(spec): add WalkSeams + ProjectWalker seam for the loader WALK (#46) + #55 rider - #58
Conversation
…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)
pr-validator — APPROVED ✅Change class: charly/sdk Go (contract-type relocation + one-line message demotion)
Item 3 + 11 detail — attribution & coverage
Item 15 detail — architecture
Decision: Merging. Finalizing the merge-time CalVer, rewriting the staged CHANGELOG, Assisted-by: Claude (analysed on a live system) |
Assisted-by: Claude (fully tested and validated)
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+ProjectWalkerseam contract that lets a plugin(candy/plugin-loader, in the superproject) serve the whole-project WALK, mirroring the already-landed
DocParser/Threadedseam for the per-document PARSE (P6).spec/loader_seam.go: addedWalkSeams(the six host callbacks) andProjectWalker(
WalkProject(rootDir, rootData, rootIdentity, seams) (LoadedProject, error)) — the sharedcontract home BOTH a loader plugin and the host reference without either importing the other.
loaderkit/walk.go: deleted the localWalkSeamsduplicate;Walknow takesspec.WalkSeamsdirectly.
This is purely additive to
spec+ a signature change onloaderkit.Walk(the only in-modulecaller is
loaderkititself; the sole external caller, the superproject'scharly/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.goDecrementSnapshotRefcountdemotes its benignsnapshot-already-absent message from
warning:tonote:, matching the identical-semantic siblingconvention 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 aprior 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 (
#57touchedschema/seam.cue,schema/buildresolve.cue,spec/cue_types_gen.go,spec/deploy_wire.go; this PR touchesspec/loader_seam.go,loaderkit/walk.go,vmshared/vm_snapshot.go).Test plan
GOWORK=off go build ./...— PASSGOWORK=off go vet ./...— PASSGOWORK=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 issuesgofmt -l .— cleancharly check run check-sidecar-poddisposable bed(2026.197.0716, PASS, 348 seconds, full fresh-rebuild R10 including
update+feature-run-rebuild) exercises this exactProjectWalker/WalkSeamsdispatch end-to-end viacandy/plugin-loader's
WalkProjectimplementation — see the superproject PR/branch for thepasted verdict.
https://claude.ai/code/session_01R8UGGr3ui1959oTb5JuSif