Repository navigation
feat(kit): the check-engine plan walk lands in sdk/kit (P5) - #20
Conversation
The check engine's plan walk — RunOne (per-op: skip/exclude/context handling, variable expansion, venue swap, do-mode routing, the eventually: retry) and RunPlan/runUnit (flatten by layer, mode-gated step selection, agent-step grading) — dissolves out of charly core into sdk/kit (planrun.go + planspec.go), so ANY plugin candy that runs a plan drives the SAME walk the check engine uses. The walk reaches the host through three kind-blind seams: - kit.PlanContext — the driver surface (mode, distros, env, venue swap, the per-verb do-mode + context-skip the core VerbCatalog grammar computes). No concrete kind, no provider word, no ExecContext crosses it (ExecContext lives in deploykit, which imports kit — so the grammar that consults it stays core behind ContextSkipReason / EffectiveDo). - kit.VerbResolver — the verb-dispatch seam (the plan's ONE named blocker), satisfied by the core provider registry: RunVerb resolves + runs a verb (in-proc fast path or out-of-process Invoke), RunProvisionAct runs a do:act state verb. - kit.StepGrader — the agent-step grader (the host spawns the kind:agent CLI). Also moved with the walk (the plain data + pure helpers it consumes): LabeledDescription / LabelDescriptionSet (+ IsEmpty), the DoMode enum, GraderRequest, and the pure step helpers KeywordOf / StepDoMode / StepID / EffectiveStepID / FilterHostVars. The host-serving atoms (endpoint/venue/container resolution, HTTP-do, the provider registry, the CUE loader) STAY in core behind these seams — only the vocabulary-independent walk moves. checkspec.go's VerbCatalog grammar + opActsInBuildDeploy (registry-coupled) and the loader/harness-coupled check files (readiness_config, check_score_kind, check_members resolution, check_substitute) stay core — they move with the loader (P6) / harness (P12). Check-coverage: planrun_test.go drives RunOne + RunPlan through a fake PlanContext / VerbResolver / StepGrader — skip:/exclude_distros:/context skip, unknown-verb skip, verb + provision-act dispatch (result stamped with Op+Verb), verify-only skips mutating, agent-step grading (read-only agent-check, strict vs lax no-grader) — each would FAIL without the moved walk. Assisted-by: Claude (fully tested and validated)
pr-validator — APPROVED ✅Change class: charly/sdk Go — pure additive library move (cross-repo, sdk lands first; consumer is opencharly/charly#55). Fresh, independent re-derivation (trusted nothing in the body). Every gate re-run by me.
Independent evidence I re-ran:
Decision: The move is behaviour-neutral and faithful, the three seams ( Assisted-by: Claude (analysed on a live system) |
pr-validator finalized the merge-time CalVer for PR #20 (P5 check-engine plan walk lands in sdk/kit). Renames the placeholder CHANGELOG entry to the generated-at-merge version and matches its H1. Assisted-by: Claude (fully tested and validated)
Summary of changes
P5 (check-engine SDK-ization) — the plan walk lands in
sdk/kit. The producer half of onecross-repo cutover (sdk lands first; the superproject consumer is opencharly/charly#55).
The check engine's plan walk —
RunOne(per-op: skip/exclude/context handling,${VAR}expansion, venue swap, do-mode routing, the
eventually:retry) andRunPlan/runUnit(flatten by layer, mode-gated step selection, agent-step grading) — moves from charly core into
sdk/kit(planrun.go+planspec.go), so ANY plugin candy that runs a plan drives the SAMEwalk the check engine uses.
Three kind-blind host seams (no concrete kind / provider word /
ExecContextcrosses them):kit.PlanContext— the driver surface (mode, distros, env, venue swap, the per-verbEffectiveDo+ContextSkipReasonthe coreVerbCataloggrammar computes).ExecContextlives in
deploykit, which imports kit — so the grammar that consults it stays core behindthese two methods;
ExecContextnever crosses the interface.kit.VerbResolver— the verb-dispatch seam (the plan's ONE named blocker), satisfied bythe core provider registry:
RunVerb(resolve + run, in-proc or out-of-process) +RunProvisionAct(a do:act state verb).kit.StepGrader— the agent-step grader.Also moved (the plain data + pure helpers the walk consumes):
LabeledDescription/LabelDescriptionSet(+IsEmpty), theDoModeenum,GraderRequest, andKeywordOf/StepDoMode/StepID/EffectiveStepID/FilterHostVars.Change class
charly/sdk Go (pure sdk library, additive) — cross-repo, sdk lands first. Order: this sdk PR
→ opencharly/charly#55 (the superproject consumer, which bumps the gitlink to this PR's tag).
How R10-tested — exact gate, commands, and pasted output
cross-cutting check-engine change — the gate is the full 18-bed disposable roster fanned out
CONCURRENTLY against the integrated tree (this sdk walk via
replace => ../sdk+ thesuperproject consumer feat(deploykit)!: K5-Unit-1 Option A — clean kit of R-item, shrink seam to 1-op (#67) #55), PLUS the kit-standalone
planrun_test.go.go test ./...is green in BOTH repos and every bed passes.Attribution tier
fully tested and validated— the walk executed live across the full concurrent 18-bed roster ona fresh rebuild (every bed runs it);
go testgreen in both repos; the kit-standalone tests provethe walk in isolation. The commit carries
Assisted-by: Claude (fully tested and validated).CLAUDE.md rule compliance — HOW each is satisfied (or
N/A)/charly-internals:go+/charly-internals:plugin(kit surface) +/charly-check:checkloaded.freshness-guard wash (editing
.gocomment files mid-roster bumped their mtime) was RCA'd —rebuilt so the binary post-dates all sources, orphan vm domains destroyed via
charly vm destroy, roster re-run clean. No flake framing.(the plan's own ordering) — not a deferral, a different cutover. Nothing parked from THIS scope.
runOne/runUnit/keywordOfdeleted from core (the consumer PR);no transitional/dual-mode path. This sdk PR is additive.
go test.N/A— no Containerfile/OCI-label generation change.task build:charlyrebuilt (2026.191.2134); no new OS dep.disposable: truebeds only, fresh rebuild, zerowarnings;
planrun_test.gowould FAIL without the moved walk.(
go list -deps ./deploykitshows it imports kit) BEFORE designing the seam — which is why thegrammar stays core behind
PlanContextandExecContextnever crosses the interface.N/A— no.cue/schema/wire/params/generated/proto file touched (sdk gen-repro green).N/A— not a candy.into shared kit; the
VerbCataloggrammar + registry dispatch stay core behind the E-seams.disposable: truebeds only.CHANGELOG/2026.191.2100.mdstaged (placeholder CalVer; the pr-validator finalizes).Assisted-by: Claude (fully tested and validated)