Skip to content

feat(check)!: relocate charly check / ADE family → compiled-in candy/plugin-check (P12) - #95

Merged
atrawog merged 3 commits into
mainfrom
feat/p12-check-plugin
Jul 13, 2026
Merged

atrawog merged 3 commits into
mainfrom
feat/p12-check-plugin

Conversation

@atrawog

@atrawog atrawog commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

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 of charly/ core into the COMPILED-IN plugin
candy candy/plugin-check (command:check). Core becomes a plugin host; it keeps only the kind-blind
host SEAMS + the gathering/engine Mechanisms a separate module cannot perform.

This closes the P12 B2 chain — producers already merged:

Change class

Code (runtime). Tier fully tested and validated.

What changed

  • NEW candy/plugin-check (command:check, 27 files / ~5205 .go LOC) OWNS the whole charly 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 (use ./candy/plugin-check).
  • 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.
  • Gitlink bumps: sdk b95165f→eefb676, plugins 3ea3805→41b131d (both reference the merged producer HEADs).

Core-LOC delta (accurate, seams staged)

charly/*.go non-test: +1444 / −6327 = net −4883 (+706 modifications to kept files + 738 new host-seam
LOC). Test .go: +124 / −1348 = net −1224.
(Correction from the plan's "−5,621": that earlier figure was measured while the three host_build_check_*.go
seam 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)

check-commands-local  ∥  check-sidecar-pod  ∥  check-group  ∥  check-local-vm  ∥  check-structkind
        PASS                 PASS               PASS             PASS               PASS

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 bare go build leaves charly 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 ZERO charly/*.go hits;
CheckLiveCmd is the sole documented kept-engine exception.

R0–R10 checklist

  • R1 RCA on every failure/anomaly (the round-1 group-update defect; the untracked-seams / −5621 miscount)
  • R2 no deferral — the non-P12 shared --help fall-through flagged as its own cutover (not folded)
  • R5 hard cutover — transitional-free before the R10 acceptance; deleted-identifier grep clean
  • R7/R8 generated artifacts verified (go.work + plugins_generated.go wire plugin-check; assembled build 0)
  • R9 gitlinks reference merged producer HEADs; go.mod require bumped
  • R10 fresh-rebuild acceptance — the 5-bed concurrent roster GREEN

Assisted-by: Claude (fully tested and validated)

…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
@atrawog

atrawog commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: code / runtime (full P12 core relocation). Fresh independent re-derivation on the assembled tree at head 46082a7.

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)

  • Foundations: base up-to-date; gitlinks EXACT (sdk b95165f→eefb676, plugins 3ea3805→41b131d — the real merged producer HEADs); go.mod require v0.2026194.1605 + replace => ../sdk retained; candy/plugin-check complete in the committed tree (27 files — untracked-gap fixed); compiled_plugins + go.work + plugins_generated.go all wire it in.
  • Gates (re-run by me): task build:charly = 0 (plugin-check compiled in); pluginsgen reproducible; gofmt clean · go vet 0 · golangci-lint run ./... 0 issues · go test ./charly/... GREEN · candy/plugin-check test 0.
  • Delta: charly/ non-test net −4883 (+1444/−6327) — matches your corrected number exactly.
  • Placement CORRECT (bodies-not-shells): engine → sdk/kit; CLI+harness+bed-orch → candy/plugin-check; core keeps 3 K-mortal host seams + the kind-blind gather engine. Alias files SHRANK (kit_aliases −4, deploykit_tree −1; no new decls); the new kit imports are residual body-moved-out sites (net core negative — sanctioned).
  • ADE present on candy/plugin-check; R10 roster corroborated on disk (round-1 group-update defect real+fixed under concurrent load; local-vm round-2 = the unstamped-binary artifact your CHANGELOG RCAs correctly). Tier fully tested and validated justified. Security screen clean.

❌ BLOCKING — R5 hard-cutover grep self-test (the only finding)

The PR deletes charly/check_loop.go and charly/step_validate.go, but two live (non-CHANGELOG) comments still name those deleted files, so git grep on a deleted file returns live .go hits — R5 requires ZERO live hits, and the PR's "R5 grep clean" claim is therefore inaccurate:

  1. charly/check_feature_grader.go:142 — // …the harness loop's iteration launcher (check_loop.go) and of → check_loop.go is deleted (relocated to candy/plugin-check/harness_loop.go).
  2. charly/graph_shim.go:10 — // …step_topo.go / validate.go / step_validate.go keep working after charly/graph.go is deleted. → step_validate.go is deleted.

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)

atrawog added 2 commits July 13, 2026 18:55
…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
@atrawog
atrawog merged commit e38420e into main Jul 13, 2026
@atrawog
atrawog deleted the feat/p12-check-plugin branch July 13, 2026 17:01
@atrawog

atrawog commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅ (re-validation, supersedes the prior CHANGES-REQUESTED)

Merged (squash) as e38420e, tagged v2026.194.1659. This closes the P12 chain (sdk#33 → plugins#46 → charly#95) and wave 2.

The round-1 blocker (R5 grep self-test — 2 stale comment refs to deleted files) was swept in place at head e656589 (comment-only + a CHANGELOG note):

  • check_feature_grader.go: (check_loop.go) → (candy/plugin-check/harness_loop.go), and LocalCaptureVersion (agent_config.go) → (candy/plugin-check/agent.go) — verified accurate: LocalCaptureVersion genuinely lives at candy/plugin-check/agent.go:115 (gone from core).
  • graph_shim.go: dropped the deleted step_validate.go from the CycleError-consumer list (step_topo.go/validate.go remain).

Re-validation (round 2): R5 re-grep of all 10 deleted basenames across charly/*.go = CLEAN (the only surviving refs are the "relocated from charly/" provenance comments in the moved plugin files — R5-acceptable migration documentation). Delta 46082a7..e656589 provably comment-only. Gates re-run on e656589: gofmt clean · go build ./charly/... 0 · vet 0 · golangci-lint 0 issues (go test unchanged by a comment-only delta over the roster-validated tree).

Foundations (all independently verified across the two rounds): gitlinks exact (sdk eefb676, plugins 41b131d — the real merged HEADs); go.mod require v0.2026194.1605 + replace retained; task build:charly=0 with plugin-check compiled in; pluginsgen reproducible; standalone build from a fresh contamination-free checkout = 0 (the untracked-files catch confirmed); core delta −4883 reconciled exactly (738 seam LOC); ADE present; placement CORRECT (bodies-not-shells; alias files shrank; kit imports = sanctioned residual); R10 5-bed concurrent roster GREEN (round-1 group-update defect caught+fixed; local-vm round-2 unstamped-binary RCA'd); tier fully tested and validated justified; security screen clean.

Assisted-by: Claude (fully tested and validated)

atrawog added a commit that referenced this pull request Jul 13, 2026
… 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)
atrawog added a commit that referenced this pull request Jul 19, 2026
…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)
atrawog added a commit that referenced this pull request Sep 5, 2026
… 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
github-actions Bot pushed a commit that referenced this pull request Sep 5, 2026
…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)
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