Repository navigation
feat(check)!: relocate charly check / ADE family → compiled-in candy/plugin-check (P12) - #95
Conversation
…led-in candy/plugin-check (P12) ONE atomic hard cutover: the entire `charly check` command family + the AI-iteration harness relocate OUT of `charly/` core INTO the COMPILED-IN plugin candy `candy/plugin-check` (`command:check`), leaving core only the kind-blind host SEAMS + the gathering/engine Mechanisms a separate module cannot perform. Core is a plugin host. Superproject leg (leg 3 of the B2 chain) — bumps the merged producer gitlinks: - sdk → eefb676 (v0.2026194.1605): the check ENGINE (kit.Runner) + the check-family host seams (check-bed / check-config / check-run) + the sdk.ExitCodeError cross-module contract. - plugins → 41b131d (v2026.194.1622): the R5 skill sweep. - charly/go.mod require github.com/opencharly/sdk → v0.2026194.1605 (replace => ../sdk stays). Core relocation (charly/ non-test .go: +1444 / −6327 = net −4883; test .go: +124 / −1348 = net −1224): - NEW candy/plugin-check (command:check, 27 files / ~5205 .go LOC) OWNS the whole check kong tree + output formatting + the AI-harness orchestration; dispatched in-proc via dispatchInProcCommand → Invoke(OpRun) → its kong grammar. plugins_generated.go + go.work regenerated by pluginsgen. - Core KEEPS the transitional host seams — host_build_check_bed.go (356) / _config.go (94) / _run.go (288) = 738 new LOC — plus RunCheckLive (score), ensureScoreImages (preflight), and the checkLive* gather engine (carried by CheckLiveCmd as a pure engine struct; its Run is gone). - DELETED: plugin_command_check.go + attachNestedCheckPlugins; check_loop.go, check_clone.go, check_watchdog.go, check_note.go, check_synccreds_cmd.go, check_runlocal_cmd.go, check_runner_stream.go (+ dead vm_scp.go); the CLI/harness BODIES from check_cmd.go et al. - R5 grep: every deleted identifier (CheckCmd/CheckBoxCmd/CheckFeatureCmd/RunHarness/runCheckBed/ attachNestedCheckPlugins/reportLive/emitImageTestYAML/scpToVm/…) returns ZERO charly/*.go hits; CheckLiveCmd is the sole documented kept-engine exception. R10 acceptance — the relocated bed RUNNER is the cross-cutting shared-state class, so acceptance is the CONCURRENT fan-out (serial-green proves nothing): check-commands-local ∥ check-sidecar-pod ∥ check-group ∥ check-local-vm ∥ check-structkind = 5/5 GREEN. Round 1 caught + fixed a real defect in the relocated runner's group-UPDATE arm (a targetless group mis-resolved as a default pod on fresh-rebuild → restored the per-member rebuild + members-down + re-bring-up + check-live-rebuild sequence). Per-tree bed binary MUST be `task build:binary` (go build -ldflags "-X main.BuildCalVer=<calver>") — a bare `go build` leaves `charly version` "unknown" and fails the guest version-stamp check (round-2 lesson). Assembled-tree sanity: `go build ./charly` 0. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01Bn3YTe8GTaPt9ccPqQ4m4t
pr-validator — CHANGES REQUESTED ❌Change class: code / runtime (full P12 core relocation). Fresh independent re-derivation on the assembled tree at head This is an outstanding cutover — the single blocker below is a narrow R5 sweep gap, trivially fixed. Everything else verified compliant. ✅ What I independently verified (all PASS)
❌ BLOCKING — R5 hard-cutover grep self-test (the only finding)The PR deletes
Both are pre-existing comments in kept-core files you don't otherwise touch — but R5 makes the SAME commit that deletes a file responsible for sweeping every reference/comment naming it (the leg-2 plugins sweep held these exact filenames to CHANGELOG-only; core must match). A full sweep of all 10 deleted file basenames + deleted identifiers (incl. tests) found ONLY these two. Fix: repoint or drop the two stale file names, append the fix commit (the squash-merge folds it, so the FINAL landed commit is R5-clean), push fast-forward — the status resets and I re-validate. No re-run of the roster is needed for a comment-only sweep, but I'll re-confirm the grep self-test and gates. Assisted-by: Claude (analysed on a live system) |
…ted homes (P12) Comment-only. Fixes the sole CHANGES-REQUESTED finding on #95 — two live comment refs to files the P12 relocation deleted, in kept-core files: - charly/check_feature_grader.go — the harness-loop iteration launcher moved to candy/plugin-check/harness_loop.go, and LocalCaptureVersion to candy/plugin-check/agent.go (both relocated out of core); the comment now names those homes. - charly/graph_shim.go — dropped `step_validate.go` from the CycleError-consumer list (its ValidatePlan lives on as the shared core `validatePlanSteps`; step_topo.go/validate.go remain). Full deleted-basename grep re-run: kept-core is R5-clean; the only remaining refs are the legitimate "relocated from charly/…" provenance comments inside the new candy/plugin-check/* files. No behavior change. Assisted-by: Claude (documentation reviewed) Claude-Session: https://claude.ai/code/session_01Bn3YTe8GTaPt9ccPqQ4m4t
…erge Merge-time version stamp applied by the fresh pr-validator (V-P12chain). Renames the placeholder CHANGELOG to the finalized CalVer + rewrites its H1. Gitlinks: sdk eefb676 (v0.2026194.1605), plugins 41b131d (v2026.194.1622). Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01CevG1zEmzDfCpXA3GKt8Wz
pr-validator — APPROVED ✅ (re-validation, supersedes the prior CHANGES-REQUESTED)Merged (squash) as The round-1 blocker (R5 grep self-test — 2 stale comment refs to deleted files) was swept in place at head
Re-validation (round 2): R5 re-grep of all 10 deleted basenames across Foundations (all independently verified across the two rounds): gitlinks exact (sdk Assisted-by: Claude (fully tested and validated) |
… seam — K5-Unit-0 (superproject half) The THIN host FILL for the RESOLVED-project envelope — the superproject half of K5-Unit-0 (the sdk half landed as sdk v0.2026194.1655 / 07dbdbc). A pure DATA PROJECTION over the resolve engines that already exist (ResolveBox + ScanAllCandy + the folded uf.Bundle deploy tree) into the generic spec.ResolvedProject, exposed as the generic action-noun HostBuild seam "resolved-project" (F11). projectResolvedBox drops the 6 host-only json:"-" compute caches (never wire data); projectCandyView projects the candy identity/graph/provides surface. No resolution logic of its own — it copies what the existing engines populate. sdk gitlink → 07dbdbc + go.mod require → v0.2026194.1655 (both EXACT, verified). Based on e38420e (P12 #95 merged); resolvedproject surfaces are disjoint from the check-family, delta re-gate green. Verified independently by the fresh pr-validator on the head (sdk synced to 07dbdbc): gofmt clean, go vet + go build + full go test ./... all exit 0 (the 3 consumer tests: completeness/no-cache-leak, byte-stable golden, seam round-trip; the F11 uniform-API gate; the bijection gates; import-purity) + golangci-lint 0 issues. IMPORT-PURITY holds (resolved_project_host.go imports sdk/spec only); ZERO new aliases; placement CORRECT (generic F11 HostBuild seam serving host-resolved DATA). Pure ENABLER — no live consumer yet (later K5 units by design); the beds are the no-regression gate, hence the honest tier below. Assisted-by: Claude (analysed on a live system)
…cendant-wins main advanced with the #152/#153 plugins-submodule bumps (now at plugins main a58da76 = post-#95); the branch recorded 9caed76 (post-#91). The gitlink conflict resolves descendant-wins to a58da76 (a descendant of 9caed76: #93/#94/#95 are docs-only skill accuracy fixes), so the branch cannot regress main's pointer. Delta gate: charly box validate re-run. Assisted-by: Kimi Code Moonshot Kimi K3 (analysed on a live system)
… plugin-cache command candy (R5) — delete cache_cmd.go + the Cache CLI field + the --no-git-cache flag; the singleton honors the PERSISTED bypass (spec/refs SetBypass, spec #95); plugin-cache wired as a compiled-in command plugin (compiled_plugins + go.mod pin + regenerated plugins_generated.go); KERNEL_MANIFEST.md drops the cache_cmd.go row
…ypass (#539) * chore(vendor): re-vendor spec v0.2026247.2009 + plugin-check update_gate (the R10 change-class switch) * feat(cache): charly cache status|clear|refresh + the --no-git-cache bypass (the git-ref cache operator surface) * ci: re-trigger validator * chore(vendor): spec pin → v0.2026247.2350 (the #93 cache-surface tag — the cache verbs need CacheStatus/ClearCache/BypassCache) * fix(go): drop the committed TEMP-LOCAL-DEV absolute-path replaces (plugin-check/sdk/spec → /home/atrawog/...) — they break the CI go gate on ubuntu-latest; the modules resolve from the proxy at the pinned require versions (go build clean) * docs(manifest): add cache_cmd.go row — the charly cache status|clear|refresh CLI surface over the core git-ref cache (same M class as cli_model_cmd.go/plugin_cmd.go); fixes the KERNEL_MANIFEST.md gate in TestKernelManifestBidirectional * refactor(cache): the git-ref cache command moves OUT of core into the plugin-cache command candy (R5) — delete cache_cmd.go + the Cache CLI field + the --no-git-cache flag; the singleton honors the PERSISTED bypass (spec/refs SetBypass, spec #95); plugin-cache wired as a compiled-in command plugin (compiled_plugins + go.mod pin + regenerated plugins_generated.go); KERNEL_MANIFEST.md drops the cache_cmd.go row * chore: plugin-cache pin → v0.2026248.728 (the ADE-plan + schema-version fix) * chore: plugin-cache pin → v0.2026248.730 (the candy-gate charly pin fix)
Summary
The superproject leg (leg 3, final) of cutover P12 — the ONE atomic hard cutover that relocates
the entire
charly check/ AI-harness command family out ofcharly/core into the COMPILED-IN plugincandy
candy/plugin-check(command:check). Core becomes a plugin host; it keeps only the kind-blindhost SEAMS + the gathering/engine Mechanisms a separate module cannot perform.
This closes the P12 B2 chain — producers already merged:
eefb676(tagv0.2026194.1605): the check ENGINE (kit.Runner) + the check-family hostseams + the
sdk.ExitCodeErrorcontract. (PR feat(deploykit): adopt sdk/deploykit step vocabulary (P4-unit-3 consumer) #33)41b131d(tagv2026.194.1622): the R5 skill sweep. (PR chore(box/cachyos): bump gitlink — charly-cachyos is no longer a check bed #46)charly/go.modrequire →v0.2026194.1605.Change class
Code (runtime). Tier
fully tested and validated.What changed
candy/plugin-check(command:check, 27 files / ~5205.goLOC) OWNS the wholecharly checkkong tree + output formatting + the AI-harness orchestration; dispatched in-proc via
dispatchInProcCommand→Invoke(OpRun)→ its kong grammar.plugins_generated.go+go.workregenerated by pluginsgen (
use ./candy/plugin-check).host_build_check_bed.go(356) /_config.go(94) /_run.go(288) = 738 new LOC — plusRunCheckLive(score),ensureScoreImages(preflight), and thecheckLive*gather engine (carried byCheckLiveCmdas a pure engine struct; itsRunis gone).plugin_command_check.go+attachNestedCheckPlugins;check_loop.go,check_clone.go,check_watchdog.go,check_note.go,check_synccreds_cmd.go,check_runlocal_cmd.go,check_runner_stream.go(+ deadvm_scp.go); the CLI/harness BODIES fromcheck_cmd.goet al.sdkb95165f→eefb676,plugins3ea3805→41b131d(both reference the merged producer HEADs).Core-LOC delta (accurate, seams staged)
charly/*.gonon-test: +1444 / −6327 = net −4883 (+706 modifications to kept files + 738 new host-seamLOC). Test
.go: +124 / −1348 = net −1224.(Correction from the plan's "−5,621": that earlier figure was measured while the three
host_build_check_*.goseam files were still untracked, so the +706 was seam-EXCLUSIVE. With all new files staged, the accurate net
is −4883. RCA + fix are in the CHANGELOG.)
R10 acceptance — CONCURRENT fan-out (the relocated bed RUNNER is the shared-state class)
Round 1 caught + fixed a real defect in the relocated runner's group-UPDATE arm (a targetless group
mis-resolved as a default pod on fresh-rebuild). Per-tree bed binary MUST be
task build:binary(
go build -ldflags "-X main.BuildCalVer=<calver>") — a barego buildleavescharly version"unknown"and fails the guest version-stamp check (round-2 lesson, in the CHANGELOG).
Assembled-tree sanity on this final commit:
go build ./charly(workspace, plugin-check compiled in) = 0.R5 grep self-test
Every deleted identifier (
CheckCmd/CheckBoxCmd/CheckFeatureCmd/RunHarness/runCheckBed/attachNestedCheckPlugins/reportLive/emitImageTestYAML/scpToVm/…) returns ZEROcharly/*.gohits;CheckLiveCmdis the sole documented kept-engine exception.R0–R10 checklist
--helpfall-through flagged as its own cutover (not folded)Assisted-by: Claude (fully tested and validated)