Skip to content

feat(deploy,bundle)!: FLOOR-SLIM-proper Unit-8 — arbiter-bracket K4-exit + builder pre-pass + clause-D leak fixes - #177

Merged
atrawog merged 3 commits into
mainfrom
feat/unit8-deploybulk
Jul 22, 2026
Merged

atrawog merged 3 commits into
mainfrom
feat/unit8-deploybulk

Conversation

@atrawog

@atrawog atrawog commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

FLOOR-SLIM-proper Unit-8 of the core-minimization program (depends on sdk#89 — the wire-contract leg — merging first; the gitlink here points at that PR's branch tip pending merge).

  • The Q1 resource-arbiter bracket (charly/arbiter_bracket.go, DELETED, 90 LOC). OWNERSHIP of the acquire-before-Start/release-on-failure/release-after-Stop bracket call moves to candy/plugin-bundle's handleLifecycleSimple (deploy_target.go), via two new HostBuild seams (charly/host_build_arbiter_bracket.go: "arbiter-bracket-acquire"/"arbiter-bracket-release") so the CHARLY_PREEMPT_LEASE env mutation still executes host-side. unified_targets.go's Start/Stop now thread a new HasPlan wire field instead of bracketing inline. The decision logic is a pure runLifecycleBracket function; 9 new unit tests (candy/plugin-bundle/deploy_target_bracket_test.go) port the deleted arbiter_bracket_test.go's exact call-order assertions. Resolves R-FS17's overturned "stays core" permanence claim on arbiter_bracket.go.
  • The deploy-time builder pre-pass (invokeBuilderCollect/invokeBuilderReverse/preresolveBuilderContexts moved out of charly/builder_preresolve.go, 190 LOC net). Moves to candy/plugin-bundle/builder_preresolve.go (new), dispatched via exec.InvokeProvider(ClassBuilder, word, OpCollectContext/OpReverse, …) — spike-proven live against a real out-of-process ClassBuilder plugin before landing. candy/plugin-bundle/compile.go's compileDeployPlans now runs this pre-pass itself before its deploykit.BuildDeployPlan loop, using the existing spec.ResolvedProject.ExternalizedBuilders word set (already on the wire — no duplicated data, R3). charly/builder_preresolve.go keeps ONLY the host-only CONNECT half (loadProjectPlugins/ScanAllCandyWithConfigOpts are core-private). bundle_add_cmd.go's preresolveBuildersInto updated to match.
  • Two clause-D leak fixes (36 LOC touched) — node_bundle.go's bundleTargetForDisc/setBundleCrossRef and node_normalize.go's isStandaloneResourceKind replace hand-kept switch disc {case "pod"/"vm"/…} statements with the EXISTING P9 plugin-declared #DeployTraits fact (deployTraitsFor) — zero new schema, reused infra already present in the same files. isStandaloneResourceKind's own prior comment noted it "reincarnates the R5-deleted buildStandaloneResource switch" — this closes that regrowth.

What did NOT land (registered as FINAL/K5 IOU items with concrete design notes — see CHANGELOG/2026.203.1200.md for the full per-item write-up): oci_step_emit.go (StepContract-introspection gap), arbiter_host.go+preempt.go (~500 LOC, gated-not-refuted — Unit B, starting immediately, same session), vm_lifecycle_preresolve.go+ephemeral_dispatch.go (caller-side restructuring needed; half of vm_lifecycle_preresolve.go is already-adjudicated STAY), service_render.go+install_build_services.go (found DURING implementation: the compile-seam func vars only work because plugin-bundle is compiled-in same-process; moving the bodies would nil-panic BuildDeployPlan — needs a ctx/exec-threading signature cascade, its own cutover). plugin_grpc.go's relayNestedTarget cluster (~155 LOC) is SPIKE-REFUTED (traced to charly-core's own two reentry-only call sites — no plugin could ever host it), not deferred. The k8s-gen subsystem (~290 LOC) is now OWNED with a design note, deliberately not folded in to keep this wave's R10 story coherent.

Also fixes two REAL bugs surfaced by this change's own test suite (R1/R2 — fixed in-tree, never deferred): TestBundleCompileParity_PluginRoundTrip had a silently-vacuous comparison on the exact builder-context path this cutover touches (both OLD and NEW sides constructed an artificially-empty HostContext, so the pixi-builder reverse_ops divergence this cutover introduced went uncaught until a real testPreresolveBuilderContext test helper was added to populate REAL builder-context data on both sides); and the worktree was missing the box/fedora submodule init (confirmed genuinely environmental via direct inspection, not assumed — fixed, re-verified green).

Change class

charly-or-sdk Go (cross-repo: sdk#89 → this PR; sdk lands first)

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: charly check run <bed> — unified_targets.go's Start/Stop threading change touches all-substrate dispatch, and the loader-level clause-D fixes (node_bundle.go/node_normalize.go) are cross-cutting, so the full approved roster ran CONCURRENTLY (not just the minimal composing bed).
  • Eval beds run — all 5 launched concurrently, same binary (charly version = 2026.203.0742), same run-calver .check/<bed>/2026.203.0744/:
    • check-group | vm+group(targetless) | ok | 7 steps | 675s
    • check-sidecar-pod | pod+vm-member | ok | 17 steps | 1178s
    • check-substrate | vm (all 5 substrate kinds byte-equivalence) | ok | 10 steps | 456s
    • check-exampledeploy | pod | ok | 6 steps | 110s
    • check-k3s-vm | vm | ok | 8 steps | 546s
  • Fresh rebuild: binary rebuilt from this source via task build:binary (charly version → 2026.203.0742); content-marker verified (strings bin/charly | grep arbiter-bracket-acquire → 2 hits). Each bed's OWN [update]/[check-live-rebuild] step (part of the bed's standard sequence) IS the fresh-rebuild R10 pass — e.g. check-substrate's [update] PASS after 3m13.302s, check-sidecar-pod's TWO full rebuild cycles (update+redeploy+check-live-rebuild), check-k3s-vm's [update] PASS after 3m46.232s. Zero warnings across all 5 runs.
  • Did the CHANGED code path execute live? Yes — every bed's deploy-add/start/config step dispatches through unified_targets.go's modified Start (threading HasPlan), and check-sidecar-pod's config+start step directly exercises the arbiter-bracket Start path for its pod substrate (the only substrate that registers a Start plan hook today); every bed's deploy-add/update step compiles through candy/plugin-bundle's modified compileDeployPlans (the builder pre-pass runs on every compile, whether or not the specific candy needs a builder — DetectExternalizedBuilders no-ops cleanly when none do); check-substrate's 10-step run directly exercises isStandaloneResourceKind/bundleTargetForDisc/setBundleCrossRef across all 5 substrate kinds (its own byte-equivalence assertions passed).
  • Concurrency: shared-state change (loader-level clause-D fixes touch the deploy-dispatch loader path for every kind) — all 5 beds launched in ONE concurrent batch (see the identical run-calver 2026.203.0744 above), host ceiling not hit, zero store-lock/race findings.
$ go test ./charly/... 
ok  	github.com/opencharly/charly/charly	181.492s

$ go test -run TestBundleCompileParity_PluginRoundTrip -v .
=== RUN   TestBundleCompileParity_PluginRoundTrip
    bundle_compile_parity_test.go:259: PARITY OK: 3 candies, 3 classes (map[builder:true op:true pkg:true])
=== RUN   TestBundleCompileParity_PluginRoundTrip/can_fail
    bundle_compile_parity_test.go:297: can-fail RIDER OK
--- PASS: TestBundleCompileParity_PluginRoundTrip (71.15s)
    --- PASS: TestBundleCompileParity_PluginRoundTrip/can_fail (18.45s)
PASS

$ go test -run 'TestNode|TestBundle|TestStandalone|TestSubstrate|TestCross|TestFold' -v .
--- PASS: TestSubstrateKind_BothShapesByteEquivalent (0.00s)
--- PASS: TestBundleDiscForEntity_PodWorkloadNotGroup (0.00s)   [8 subtests, all PASS]
--- PASS: TestBuildBundleNode_Structure (0.00s)
... (full pass, see full log above)

$ golangci-lint run . (in charly/, candy/plugin-bundle/, sdk/deploykit/)
0 issues.  [×3]

$ cd /home/atrawog/Atrapub/o/charly-wt-u8 && task build:binary && ./bin/charly version
2026.203.0742

$ strings bin/charly | grep -c arbiter-bracket-acquire
2

$ ./bin/charly check run check-group / check-sidecar-pod / check-substrate / check-exampledeploy / check-k3s-vm  (concurrent)
check-group:         PASS (steps=7)   EXIT=0
check-sidecar-pod:   PASS (steps=17)  EXIT=0
check-substrate:     PASS (steps=10)  EXIT=0
check-exampledeploy: PASS (steps=6)   EXIT=0
check-k3s-vm:        PASS (steps=8)   EXIT=0

Post-run host state: zero leftover containers, zero leftover libvirt domains
(all 5 beds' own cleanup/cleanup-members steps confirmed PASS).

Attribution tier

fully tested and validated — all 10 Testing Standards met: every changed code path executed live across 5 concurrent disposable beds, each including its own fresh-rebuild re-verification, zero warnings, host left healthy.

Harness rulebook compliance

  • R0 skills: /charly-internals:go, /charly-internals:plugin, /charly-internals:strict-policy, /charly-internals:git-workflow, /charly-internals:cutover-policy, /charly-internals:install-plan, /charly-core:deploy, /charly-internals:disposable, /charly-check:check — all loaded before any code was touched (Phase 1 re-derivation + Phase 2 cutover).
  • R1 RCA + zero warnings: every failure surfaced was RCA'd, not assumed transient: the parity-test vacuous-comparison gap (root cause traced to the architecture change removing host-side pre-population, fixed with a real test-local pre-resolution helper); the box/fedora submodule-init failure (confirmed genuinely environmental via direct inspection — git submodule status showed - uninitialized — fixed, re-verified green); the R6/B7 staging bug where a multi-path git add silently aborted on one bad pathspec, caught via mandatory post-commit git status/git show --stat verification and fixed via amend (branch never pushed). Zero warnings in the final gate output.
  • R2 no out-of-scope: every issue this cutover surfaced was fixed in-tree (the 3 above) or explicitly registered as its own next-unit/design-phase item with the operator's ruling (Unit B starts immediately in the same session; items 1+2 registered to the FINAL/K5 design phase per an explicit crossroad exchange) — none silently parked.
  • R3 no duplication: the new HostBuild seams follow the EXISTING host_build_deploy_config_save_state.go pattern verbatim; the builder pre-pass reuses the EXISTING spec.ResolvedProject.ExternalizedBuilders wire field instead of adding a duplicate data source; the clause-D fixes reuse the EXISTING deployTraitsFor mechanism already used elsewhere in the same files.
  • R4 no workaround: no sleep/retry/magic-number; no ad-hoc podman/virsh — every bed teardown went through charly bundle del/charly vm destroy via the bed runner.
  • R5 hard cutover + grep: charly/arbiter_bracket.go + its test fully deleted; git grep 'arbiterBracketedStart\|arbiterBracketedStop\|acquireForBracket\|releaseForBracket' returns zero hits outside this PR's own CHANGELOG/commit-message historical context. No transitional/dual-mode path — preresolveBuilderContexts's Invoke half is fully gone from charly/builder_preresolve.go (kept only the connect step, renamed).
  • R6 git safety: git status/git worktree list checked before every destructive action; the R6/B7 staging-verification catch above is itself evidence of this discipline in practice.
  • R7 runtime gate: the full 5-bed concurrent roster ran (not just go test) — see above.
  • R8 artifact invariants: N/A — no Containerfile/OCI-label generation surface touched.
  • R9 binary == source + deps: binary rebuilt fresh, charly version matches, content-marker verified; no new runtime OS deps introduced.
  • R10 disposable + coverage: all 5 targets disposable: true; fresh rebuild proven (each bed's own update/rebuild step); new check/test coverage that would FAIL without this change: 9 new runLifecycleBracket unit tests + the testPreresolveBuilderContext-augmented parity test (which DID fail before the fix, proving it's real signal).
  • RDD / ADE / SDD: RDD — both moves were spike-proven BEFORE the cutover (builder pre-pass: a live throwaway test against a real out-of-process ClassBuilder plugin, PASS, then deleted per RDD discipline; relayNestedTarget: a feasibility trace that REFUTED the floor-shrink hypothesis, saving a future wave from re-attempting it). ADE: no candy authoring surface touched. SDD: the has_plan field + 2 new CUE defs were authored schema-first in sdk#89, task cue:gen regenerated, TestGenReproducible PASS.
  • Hard cutover: ONE atomic commit on this branch (amended once, pre-push, to fix the staging gap — never after push); no "Phase 2" left in this cutover's own scope (Unit B is a separate, already-approved next unit, not deferred scope of THIS one).
  • Kernel/plugin boundary law: unified_targets.go (floor) gained only a generic HasPlan bool passthrough — no kind-word logic added; the two clause-D fixes REMOVE kind-word switches, strictly improving boundary-law compliance; the moved logic (arbiter bracket, builder pre-pass) is now correctly in candy/plugin-bundle, a plugin, not core.
  • Disposable-only autonomy: all 5 bed targets carry disposable: true; autonomous destroy+rebuild was authorized for all of them.
  • Clean architecture + Go gates: gofmt -l . empty; golangci-lint run 0 issues (charly/, candy/plugin-bundle/, sdk/deploykit/); go vet clean; go test ./... green (charly + sdk).
  • CHANGELOG: CHANGELOG/2026.203.1200.md staged (placeholder CalVer) with the full per-item breakdown including the 6 deferred items' design notes.

Assisted-by: Claude Code Anthropic Claude Sonnet 5 (fully tested and validated)

atrawog added 2 commits July 22, 2026 09:42
…xit + builder pre-pass + clause-D leak fixes

Moves the Q1 resource-arbiter bracket (charly/arbiter_bracket.go, deleted)
and the deploy-time builder pre-pass (charly/builder_preresolve.go's
Invoke half) into candy/plugin-bundle, via two new HostBuild seams
(arbiter-bracket-acquire/-release) and exec.InvokeProvider (spike-proven
live against a real out-of-process ClassBuilder plugin) respectively.
Fixes two clause-D leaked kind-word switches in node_bundle.go/
node_normalize.go, replacing them with the existing P9 plugin-declared
#DeployTraits fact (deployTraitsFor) — zero new schema.

Resolves R-FS17's overturned arbiter_bracket.go permanence claim. Four
originally-scoped items (oci_step_emit.go, arbiter_host.go+preempt.go,
vm_lifecycle_preresolve.go+ephemeral_dispatch.go, service_render.go+
install_build_services.go) deferred with concrete new design notes after
implementation surfaced genuine architectural blockers beyond the initial
scoping estimate; one (plugin_grpc.go's relayNestedTarget, ~155 LOC) is a
spike-REFUTED floor-shrink hypothesis, not a deferral. See CHANGELOG for
the full per-item breakdown.

Landed under the pre-authorized sizing carve-out given the confirmed-safe
pool (~1,300 LOC once implementation depth was accounted for).

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
@atrawog

atrawog commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: cross-repo charly-or-sdk Go (consumer leg of the sdk#89 wire-contract cutover, now merged)

Head SHA validated: e06cfb833d223096bc65c99425f38291e60bdb17

sdk#89 ancestry cross-check

  • git ls-tree HEAD sdk = d7c04ed61907b6780d53e80bae069f20b0463aac — confirmed this IS sdk's current real main (not a stale/divergent pin).
  • merge-base --is-ancestor confirms the chain af9beb2 → 901bf2d (my merged sdk#89) → d7c04ed: forward, ancestor-consistent, descendant-wins resolved correctly.
  • d7c04ed carries the tag v0.2026203.824, byte-matching charly/go.mod's github.com/opencharly/sdk v0.2026203.824 require line.

Checklist

# Item Verdict
0 Security & anti-tampering PASS — description matches diff file-for-file; no secrets/exfiltration/weakened-gate/supply-chain finding; no instruction-injection attempt
1 Description complete PASS — Summary/Change-class/How-R10-tested/Attribution/full compliance table, CHANGELOG with per-item IOU write-up
2 Change-class gate matches evidence PASS — charly check run <bed> roster, re-verified below; no dry-run/rebuild-alone fraud
3 Attribution tier justified PASS — fully tested and validated, independently re-run live (below)
4 R0 skills honored PASS — plugin/go/install-plan/strict-policy/cutover-policy/git-workflow all applied consistently with the F10 HostBuild + resolve-to-envelope patterns
5 R1 zero warnings PASS — gofmt/vet/lint/test all clean, re-run by me live
6 R2 no pre-existing/out-of-scope split PASS (see note) — the 4 deferred items ("what did NOT land") are genuinely gated by NEW HOW-findings discovered during implementation (missing peer-capability-introspection call for oci_step_emit.go; a func-var/ctx-threading cascade for service_render.go; a caller-side restructuring for vm_lifecycle_preresolve.go), not difficulty/size excuses — corroborated by independently-observed evidence: charly-wt-u8 (this same author's other worktree) is ALREADY checked out on feat/unit8b-deploybulk (Unit B, exactly as claimed "starts immediately"), and the superproject carries a live stash unit8b-wip-holder-dispatch — real, in-progress work on the arbiter_host/preempt VM-holder-dispatch item, not a silently-parked deferral. relayNestedTarget is spike-REFUTED (traced to its only 2 call sites, both charly-core's own reentry commands), not deferred
7 R3 no duplication PASS — new HostBuild seams mirror host_build_deploy_config_save_state.go verbatim; builder pre-pass reuses the existing spec.ResolvedProject.ExternalizedBuilders wire field (no duplicate data source); clause-D fixes reuse the existing deployTraitsFor mechanism (already used elsewhere in the same files, itself a registry/data lookup, not a hidden switch)
8 R4 no ad-hoc workaround PASS — no sleep/retry/magic-number; teardown via charly bundle del/vm destroy through the bed runner
9 R5 hard cutover + grep self-test PASS — git grep 'arbiterBracketedStart|arbiterBracketedStop|acquireForBracket|releaseForBracket|invokeBuilderCollect|invokeBuilderReverse' in charly/ returns zero hits (all surviving mentions are prose comments describing the relocation, in the moved-to files or historical CHANGELOG); no transitional/dual-mode path
10 R6/R8/R9 R6 PASS (clean git state throughout); R8 N/A (no Containerfile/OCI surface); R9 PASS — binary rebuilt fresh, charly version = 2026.203.0742 matches, strings bin/charly | grep -c arbiter-bracket-acquire = 2 (content-marker verified), no source file newer than the binary
11 R10 disposable/fresh-rebuild/coverage PASS — see the full live re-verification below. New coverage that would FAIL without the change: 9 runLifecycleBracket unit tests + the de-vacuated TestBundleCompileParity_PluginRoundTrip (re-run live: PARITY OK: 3 candies, 3 classes (map[builder:true op:true pkg:true]) — confirms REAL builder-context data compared on both sides, not the prior vacuous empty-vs-empty)
12 RDD/ADE/SDD PASS — SDD: the sdk#89 wire additions this PR consumes were CUE-sourced (verified during that PR's own validation). RDD: the builder pre-pass's exec.InvokeProvider(ClassBuilder,...) mechanism is genuinely exercised against a REAL out-of-process plugin — pixi/npm/cargo/aur are all in externalizedBuilders (confirmed in provider_builder_external.go), and the parity test's pre-commit fixture specifically needs the pixi builder, so this is proven live, not merely asserted. ADE N/A (no candy authoring surface touched)
13 Concurrency mandate + anti-cheat PASS — the shared-state clause-D fixes (loader-level, cross-cutting) were exercised by the full 5-bed CONCURRENT roster (verified during sdk#89's evidence cross-check: same run-calver 2026.203.0744 across all 5) PLUS a post-merge delta re-gate I independently re-ran and watched to completion (see below)
14 Hard cutover — one atomic commit PASS — ONE change commit (fa8f4f89) + a plain merge origin/main (e06cfb83, resolving only the sdk gitlink conflict, verified via git diff fa8f4f89 e06cfb83 — every non-gitlink file in that diff matches exactly bed-robustness-batch #176's known scope, nothing extra)
15 Architecture gate — placement PASS. placement: CORRECT. Axis-A (kit-import file count) measured myself both sides: 125 on main (3f12890) = 125 on PR head (e06cfb83) — UNCHANGED, not increased (byte-identical file list; arbiter_bracket.go's deletion and host_build_arbiter_bracket.go's addition both net to zero since neither imports a kit — only sdk/spec). Alias files: unchanged (vmshared_aliases.go, untouched). Per-item trace (every staged charly/*.go change): arbiter_bracket.go/arbiter_bracket_test.go DELETED (no trace, net core-LOC negative); builder_preresolve.go MODIFIED — no alias, no NEW kit import (pre-existing deploykit/buildkit retained for the CONNECT-only remainder), boundary-law: legitimately core (loadProjectPlugins/ScanAllCandyWithConfigOpts — the M "plugin loading" mechanism); bundle_add_cmd.go MODIFIED — no alias, no new kit import, wiring-only; bundle_compile_parity_test.go MODIFIED (test-only) — no alias, no kit-import change; host_build_arbiter_bracket.go NEW — no alias, imports only sdk/spec, no kit at all, boundary-law: a class-generic HostBuild "action noun" seam (matches the Q2 host_build_deploy_config_save_state.go precedent, F11-uniform-API-gate-compliant — the seam names are generic verbs, never a substrate/provider word) — CORRECT, legitimately core because the os.Setenv/os.Getenv(CHARLY_PREEMPT_LEASE) mutation must execute in the actual host OS process for the nested-subprocess-inheritance property to hold (a genuine mechanism reason, not the forbidden "host-boundary-object" excuse); node_bundle.go MODIFIED — no alias, no kit-import change, REMOVES a leaked kind-word switch (strictly improves boundary-law compliance); node_normalize.go MODIFIED — same, REMOVES a leaked kind-word switch; unified_targets.go MODIFIED — no alias, no new kit import, REMOVES a kernel-side capability-specific decision (replaced with a generic bool passthrough on the wire envelope). No *Legacy*-named identifier anywhere in the diff. Goal-fit: strictly outward (capability ownership moves core→plugin; 2 kind-word switches removed)
16 Disposable-only autonomy PASS — all 5 beds (check-group/check-sidecar-pod/check-substrate/check-exampledeploy/check-k3s-vm) confirmed disposable: true in charly.yml, spot-checked directly
17 Clean architecture + Go gates PASS — re-run live by me: gofmt -l charly/ candy/plugin-bundle/ empty; go vet ./... clean in both charly/ and candy/plugin-bundle/; golangci-lint run ./... (isolated GOLANGCI_LINT_CACHE) → 0 issues in both; full go test ./... in charly/ → green, 168.226s (independently timed, matches the claimed ~171.7s)
18 CHANGELOG present PASS — CHANGELOG/2026.203.1200.md: filename matches the CalVer regex, head -1 byte-equals the H1, no collision with an existing main CHANGELOG entry or v2026.203.1200 tag

Live verification performed (not taken on the author's word)

$ cd charly && go vet ./...                    → clean
$ cd candy/plugin-bundle && go vet ./...       → clean
$ gofmt -l charly/ candy/plugin-bundle/        → (empty)
$ GOLANGCI_LINT_CACHE=<isolated> golangci-lint run ./... (charly/)              → 0 issues
$ GOLANGCI_LINT_CACHE=<isolated> golangci-lint run ./... (candy/plugin-bundle/) → 0 issues
$ cd charly && go test ./...                   → ok  github.com/opencharly/charly/charly  168.226s
                                                   ok  .../charly/internal/pluginsgen        0.011s
$ go test -run TestBundleCompileParity_PluginRoundTrip -v .
    PARITY OK: 3 candies, 3 classes (map[builder:true op:true pkg:true])
    can-fail RIDER OK
$ cd candy/plugin-bundle && go test -run TestRunLifecycleBracket -v .
    all 9 TestRunLifecycleBracket_* subtests PASS
$ ./bin/charly version                          → 2026.203.0742
$ strings bin/charly | grep -c arbiter-bracket-acquire → 2
$ find charly/ candy/plugin-bundle/ -name '*.go' -newer bin/charly → (empty; binary is fresh)

Post-merge delta re-gate — I watched this run to completion myself (it was still in-flight when I first checked, check-live-rebuild step; I polled .check/check-sidecar-pod/2026.203.0915/summary.yml until it appeared rather than accepting a claimed-but-unfinished result):

bed: check-sidecar-pod
calver: 2026.203.0915
17 steps, ALL ok: true, total_seconds: 790
ok: true

This is the SAME binary (2026.203.0742) as the earlier 5-bed concurrent roster (cross-checked during sdk#89's own evidence review against .check/*/2026.203.0744/summary.yml — all 5 beds ok: true, matching the claimed step-counts/durations, same run-calver, same sdk gitlink 20dff76e = sdk#89's exact head).

Comments considered

None — the PR carries no comments.

Cross-PR interactions considered

  • charly#118 (RED kernel-manifest floor gate, "merges LAST") — file sets disjoint (CHANGELOG/2026.195.0000.md + charly/kernel_manifest_floor_test.go vs. this PR's files). This PR's own axis-A measurement (125→125, unchanged) means it does not worsen whatever floor feat(gate): RED kernel-manifest floor gate — the C15 residue tracker (merges LAST) #118 tracks; if anything the net core-LOC delta is negative (2 files deleted, 1 added, both non-kit). verified-non-blocking.
  • No other open PRs on opencharly/charly, opencharly/sdk, or opencharly/plugins at validation time (swept via gh pr list --state open on all three).

Decision

PASS. This is a clean, well-scoped consumer leg: the sdk#89 wire contract it depends on is correctly pinned (ancestry independently verified), the two capability moves (arbiter bracket, builder pre-pass RPC half) faithfully preserve behavior (call-order semantics ported and independently re-tested, the host-side env-mutation property preserved via the same HostBuild idiom as an existing precedent), the two clause-D fixes strictly improve boundary-law compliance (kind-word switches removed, not added), axis-A does not increase, no new alias, and the previously-vacuous parity test now genuinely exercises real builder-context data. Zero warnings across every gate I re-ran myself, including a full go test run I personally timed and a post-merge bed re-gate I personally waited for and read off disk. The 4 deferred items are corroborated as genuine follow-on work (not silent parking) by independently-observed live evidence (a sibling worktree + a stash already mid-flight on the next unit). Proceeding to finalize the merge-time CalVer, merge, and tag.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)

pr-validator: rename the placeholder CHANGELOG to the merge-time CalVer and
rewrite its H1 heading to match (filename<->H1 byte-parity).

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
@atrawog
atrawog merged commit 72d9967 into main Jul 22, 2026
@atrawog
atrawog deleted the feat/unit8-deploybulk branch July 22, 2026 09:32
@atrawog

atrawog commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — outcome: MERGED ✅

  • Status: charly/pr-validator = success on 7780a736 (final head, after the CalVer-finalize commit) — ALLOWED, zero denials.
  • Merge: gh pr merge 177 --squash --delete-branch — ALLOWED, zero denials. Merge commit: 72d9967e16105c4dbb70377440b83329418d69fe on main.
  • Tag: v2026.203.0931 pushed on the merged HEAD — verified via git ls-remote --tags origin v2026.203.0931 (non-empty) and git cat-file -t → tag.
  • CHANGELOG: finalized at CHANGELOG/2026.203.0931.md, H1 byte-verified before push.
  • Branch: feat/unit8-deploybulk deleted (server-side, via --delete-branch).

This closes the Unit-8 chain: sdk#89 (v0.2026203.815) → charly#177 (v2026.203.0931), both independently fresh-validated by me.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)

atrawog added a commit that referenced this pull request Aug 15, 2026
Second and last of the sources this leg carries. Adds the content-scoped
execution rule, the PROVENANCE clause, the symptom table and the rerunnable
merge-tree fixture to git-workflow-skill.

This one was load-bearing beyond its own additions. Before it, regenerating
evidence-and-freshness.md at this tree removed 152 lines: plugins carried those
four sections as a PROJECTION introduced at ab1f93d9, while their candy source
existed in no superproject tree at all — not origin/main, not this branch, not
the merge-base. Landing the projection's pin without this source would have
reverted another leg's work as ordinary generator output.

Verified as a gate rather than an expectation: after applying, all four
previously source-less sections are present, patch 1's additions are intact, and
all six lines #285 contributed are still present. Applied as a patch on top of
patch 1, measured in between, so an unattributable artifact would have been
caught against one source rather than two.

The 7 trailing-whitespace warnings are pre-existing blank lines inside a YAML
block scalar; --whitespace=fix is deliberately NOT used, since stripping that
indentation would change the rendered page.

Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
atrawog added a commit that referenced this pull request Aug 15, 2026
…s cover

Two pins move together, because they are one mirror state: docs@69f97926 is the
whole-site projection at plugins@853e72a9, and pinning either alone re-splits it.

Both DERIVED rather than confirmed. The pin must reach the newest projection any
source in this tree covers, not merely this leg's own producer merge — the tree
now carries three producers' sources. [email protected]/main is exactly
one commit, #177's merge, whose source is in this tree; docs@620839538..
origin/main is two, #59 (patch 1's projection) and #58 (patch 2's), both now
sourced here.

DOCS_REF follows the docs gitlink at BOTH occurrence sites. It had drifted three
merges behind on this branch: five commits moved the gitlink — four docs
projections and the four-pin re-pin — and none carried the pin that names it. A
projection commit must carry the page AND the pin; carrying only the page leaves
check-docs cloning a pre-projection commit and asserting that same commit, so it
passes while proving stale content. task docs:pin is the gate, and it binds on
nothing automatic — not CI, not a hook, not a bed.

Verified: marketplace drift is clean at 400 artifacts with both sources and this
pin, which was the stated target and is measurable only on the clean path.

Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
atrawog added a commit that referenced this pull request Aug 15, 2026
…uilt (#278)

`charly check box <box>` could run against an image that was not the one you had just
built, report every step green, and give no sign. A gate that certifies the wrong
artifact is the highest-severity defect this system has, because a false pass is
indistinguishable from a real one.

Two independent causes compounded, both traced against the real image store. The render
labelled an imported box's image with the namespace-qualified Generator key while tagging
the ref with the leaf name, so a fresh build was invisible to a resolve of its own image
name. And the election's primary key is the content-derived version label, so an image
built from a differently-versioned source tree outranked a newer build regardless of when
either was produced.

The three build-scope verdict verbs — `charly check box`, `charly box feature run` and
`charly box labels` — now resolve through the guarded `kit.ResolveBuiltImageRef`, which
refuses a short name whose election is not the newest local build and names both refs plus
the pinned re-invocation. Build recency keys on the image's CREATION TIME, the only key
total over the tags charly mints (`--tag` REPLACES the CalVer tag, so every bed build reads
as no CalVer at all). All three verbs print their `Image:` provenance FIRST on every path,
including the no-plan path that previously bailed before printing one; for `box labels` it
goes to stderr so `--format`'s single raw stdout value stays byte-unchanged.

`candy/plugin-clean`'s retention sort shared the same blind spot and is folded in rather
than named separately, because it is the one surface here that DESTROYS an artifact instead
of mis-answering: a group of bed-tagged images had no usable ordering key, so `keep_images:
N` kept an arbitrary N and could delete the newest build.

This commit carries FOUR cutovers' candy sources, and the union was forced rather than
chosen. The docs mirror had been regenerated at a projection no reachable superproject state
reproduced, so the first leg through the gate had to carry all of them: the build-scope
verdict resolver, the git-workflow landing-mechanics leg (#176), the merge-tree guard (#177,
source `c144ad11`), and the R4a task-target sweep (#285). Named so a squash does not bury
other authors' provenance.

Advancing the `sdk` gitlink forces a spec-floor sweep across 90 `candy/*/go.mod` files:
under MVS every module depending on `sdk` and requiring `spec` directly must match, and
`go.work` masks the defect in-tree while these plugins ship out-of-workspace. The standing
gate this adds is a `GOWORK=off` per-module build; it reports 91 modules with one failure,
`candy/plugin-dsh`, which fails identically on `main` for an unrelated `go`-directive cause
and joins a named module-hygiene batch with a measured scope.

Gates, re-derived independently at merge: `check-agent-pod` run 2026.227.1451 (13 steps,
365s) against a byte-identical final resolver; `check-docs` run 2026.227.1835 (13 steps,
492s) on the final tree at zero warnings, with the build log showing it cloned the
`DOCS_REF` commit it then asserts. `marketplace drift` clean at 400 artifacts and
`task docs:drift` a no-op over 6 repo roots and 891 pages — the first of those
perturbation-tested to confirm it can actually fail.

Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
github-actions Bot pushed a commit that referenced this pull request Aug 28, 2026
…systemd (#419)

B1's last item, and the half that had to wait for sdk#176.

systemd's candy_file: listed only *.service, and its assembly_template hardcoded
that same extension TWICE:

    cp /systemd/*.service /usr/lib/systemd/user/ && \
    for svc in /systemd/*.service; do systemctl --global enable ...; done

The pair agreed only because both were frozen. A candy could not ship a .socket,
.target or .slice at all - and widening either side alone would have been worse
than leaving it: widening candy_file: would stage units the copy never installs,
widening the copy would install units nothing collected.

Both move together now. candy_file: claims .service/.socket/.target/.timer/.path/
.slice, and the assembly copies EVERY staged unit, then enables only the types
systemd can enable.

.slice is claimed but deliberately NOT enabled: a slice is a resource container
referenced by other units' Slice=, and `systemctl enable` on one is an error, not
a no-op. That distinction is asserted, not just commented.

The enable loop carries an existence guard because an unmatched glob stays literal
in sh - without it, a candy shipping only services would fail the build on
`systemctl enable '/systemd/*.socket'`.

This is inert without sdk#176, which made candy_file: honoured at all (the scan is
init-agnostic, so the patterns are globbed at the point of use). The sdk pin moves
to v0.2026240.1542, which also carries #177's fix for the depends_candy
false positive that #176 introduced.

TestEmbeddedVocab_SystemdClaimsEveryUnitTypeItInstalls guards the pair that has to
stay consistent - what candy_file: claims versus what the assembly copies and
enables - so neither side can drift again. Verified to fail on the pre-change
vocabulary rather than assumed.

Assisted-by: Claude Code Anthropic Opus 5 (analysed on a live system)

Claude-Session: https://claude.ai/code/session_01Gf42A3bau77JigFYLALrnq

Co-authored-by: atrawog <[email protected]>
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