Skip to content

fix(workflows): a sub-agent runs only what it can own — defer long beds, refuse host-local - #47

Merged
atrawog merged 5 commits into
mainfrom
feat/verify-beds-ownership
Jul 9, 2026
Merged

atrawog merged 5 commits into
mainfrom
feat/verify-beds-ownership

Conversation

@atrawog

@atrawog atrawog commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

The runtime half of the workflow-ownership cutover. Paired plugins PR #20 is merged (76413b5, CHANGELOG/2026.190.2206.md); this bumps the gitlink.

Change class: workflow scripts (.claude/workflows/*.js) + CLAUDE.md + CHANGELOG + plugins gitlink. Gate: execute the changed control flow live. Tier: fully tested and validated.

What went wrong

An R10 roster over 62 beds returned 26 real passes and 26 beds with no verdict, orphaned 3 libvirt domains and 4 pod containers, recorded a bed that had actually passed (check-debian-debootstrap-vm) as a failure, and ran charly-cachyos — a host: local deploy — installing packages as root on the operator's workstation for 697s (fixed separately: distro-cachyos v2026.190.2109).

Root cause (RCA, not inference): verify-beds.js drove every bed through an agent() sub-agent. A sub-agent returns synchronously, its background children die with it, and its one foreground charly check run is Bash-capped at 600s. It cannot own a bed that outlives its turn. Long beds were force-terminated before writing summary.yml; their virtqemud/conmon-owned resources survived the killed orchestrator.

This was a divergence inside CLAUDE.md. Its concurrency Key Rule already mandates "persistent-session run_in_background ownership of every >600s bed", while R10's matrix said to fan the whole roster through /verify-beds. Both now agree.

The fix

verify-beds partitions three ways, nothing silently dropped:

Class Test Disposition
SHORT everything else run in parallel
LONG vm/android, or newest summary.yml total_seconds >= 600 deferred, returned in deferredLongBeds[]
HOST-LOCAL a local: deploy, or a bed with a nested local: member, whose host: is local refused

Plus gateComplete — a partial roster can no longer read as a green gate.

verify-status had the identical defect (a pr-validator caught it, blocking): it drove check-local, check-k3s-vm and check-android-emulator-pod through ephemeral agents. Every bed it names is disqualified from sub-agent ownership, so a runner form is invalid by construction. It is now a planner: zero beds run. Dead BED_SCHEMA/runBed/parallel() deleted.

R3: the classifier lives in one place (verify-beds); verify-status does not re-implement it.

R10 evidence — the changed control flow executed live

node --check clean on both. Partition predicates unit-tested standalone over 9 synthetic beds (5/5), confirming a remote local: bed still runs while a host-local one is refused.

verify-beds (all three branches):
  total: 1  passed: [check-sidecar-pod]  failed: []  gateComplete: false
    check-sidecar-pod  exit 0, 10/10 steps, total_seconds 178
  deferredLongBeds:      check-k3s-vm — substrate 'vm' always boots a machine
  refusedHostLocalBeds:  check-local  — host-local: applies candies to the workstation

verify-status (planner):
  total: 0  ranHere: []  gateComplete: false  planned: 4
    local -> HOST-LOCAL: run it inside the disposable eval VM, never on this host

Asserted against the machine, not merely reported: the host's pacman transaction count was unchanged by any bed (the only entries are the opencharly-git rebuild task build:charly performs), /etc/check-group-marker never appeared, no libvirt domain was created, no container left running.

An RDD spike (discarded) proved the runtime's workflow() inline delegation exists and that delegating a host-local bed returns a refusal with totalRan: 0. It also caught a bug in this cutover's own code: verify-beds' no-short-beds early return omitted gateComplete. Fixed.

Sibling audit: /triage-check-failure explicitly forbids re-running charly check run; /audit-deploy-configs runs no beds. Both clean.

Disclosures

  1. Commit a69c44e's message is partially mangled — I put backticks inside a double-quoted git commit -m, so the shell ate three fragments (and harmlessly executed a bare charly check run, which errored with no bed argument). The branch is pushed and amending would require a force-push, which is forbidden. Squash-merge discards intermediate messages — please compose the squash message correctly and carry the Assisted-by: trailer.
  2. This branch carries three commits; that is the policy (--squash folds them).
  3. My first attempt at this cutover's own gate launched via Workflow({name}), which resolves a session-start registry snapshot — it ran the OLD script and would have applied check-local to the host. Killed in the discover phase; host verified unmutated. Use Workflow({scriptPath}).

Note for the evaluator

Do NOT run any host-local bed (check-local, check-group, check-structkind, check-substrate, check-*-local, check-cross-local-http, check-cross-vm-http) and do not run /verify-beds with no arguments — it would discover them. The operator has directed that all local: testing move into a dedicated eval VM (the next cutover).

Merge with --squash; tag v<CalVer>.

Assisted-by: Claude (fully tested and validated)

atrawog added 3 commits July 9, 2026 23:45
…efuse host-local beds

An R10 roster over 62 disposable beds returned 26 real passes and 26 beds with NO verdict,
orphaned 3 running libvirt domains + 4 pod containers, recorded a bed that had actually
PASSED as a failure, and ran a `host: local` deploy that installed packages as root on the
operator's workstation (fixed separately: distro-cachyos v2026.190.2109).

Root cause (RCA, not inference): verify-beds.js drove EVERY bed through an agent()
sub-agent. A sub-agent returns synchronously, its background children die with it, and its
one foreground `charly check run` is Bash-capped at 600s -- so it cannot own a bed that
outlives its turn. Long beds were force-terminated before writing summary.yml; their
libvirt domains (owned by virtqemud) and pod containers (owned by conmon) survived the
killed orchestrator and were orphaned.

This was a divergence INSIDE CLAUDE.md, not merely doc-vs-code. Its concurrency Key Rule
already mandates "persistent-session run_in_background ownership of every >600s bed", while
R10's change-class matrix said to fan the whole roster through /verify-beds. Both sentences
now agree (R1 claim-keyed sweep: R10 matrix + the Agents-section workflow bullet + the
workflow's own meta.description; the four plugins doc surfaces ride in plugins PR #20).

The fix -- the workflow runs only what it can own. Beds partition three ways, nothing
silently dropped:
  SHORT       run here, in parallel, exactly as before.
  LONG        vm/android substrate, or newest .check/<bed>/<calver>/summary.yml records
              total_seconds >= 600 -- long by MEASUREMENT, not a hand-maintained list.
              Deferred, returned in deferredLongBeds[] with the exact command, for the
              PERSISTENT session to own as run_in_background tasks.
  HOST-LOCAL  a local: deploy, or a bed with a nested local: member (how check-group
              reaches the host), whose host: is local. Refused: it applies candies to the
              operator workstation; test beds belong in a disposable eval VM.
The result carries deferredLongBeds, refusedHostLocalBeds and gateComplete -- a partial
roster can no longer be mistaken for a green R10 gate.

check-openclaw-full-pod (measured 1414s) is now deferred despite passing inside an agent
last time: it passed above the cap, on luck.

R10 (workflow-script class -- the changed control flow executed live): node --check clean;
the partition predicates unit-tested standalone over 9 synthetic beds (5/5), confirming a
REMOTE local: bed still runs while a HOST-LOCAL one is refused, and that a host-local bed
is refused rather than merely deferred. Then the real workflow ran one bed per branch:

  total: 1  passed: [check-sidecar-pod]  failed: []  gateComplete: false
    check-sidecar-pod  exit 0, 10/10 steps ok, total_seconds 178
  deferredLongBeds:     check-k3s-vm -- substrate 'vm' always boots a machine
  refusedHostLocalBeds: check-local  -- host-local: applies candies to the workstation

The refusal and deferral were asserted against the MACHINE, not merely reported: the host's
pacman transaction count was unchanged by the beds (only the opencharly-git rebuild that
`task build:charly` performs), /etc/check-group-marker never appeared, no libvirt domain was
created, no container left running. Mid-run charly's stale-binary guard correctly refused the
first invocation; the runner cleared it with `task build:charly` and re-ran with no flags.

Trap recorded: Workflow({name}) resolves a registry snapshot taken at session start, so an
edited .claude/workflows/*.js is NOT what runs. The first attempt at this cutover's own gate
launched the OLD script -- which would have applied check-local to the host -- and was killed
in its discover phase before any bed started (host verified unmutated). Use
Workflow({scriptPath}), which takes precedence.

Assisted-by: Claude (fully tested and validated)
…-return carries gateComplete

The pr-validator on the paired plugins PR caught that this cutover fixed /verify-beds while
leaving /verify-status carrying the identical defect: verify-status.js drove its four
hardcoded substrate beds through ephemeral agent() calls to completion, including check-local
(HOST-LOCAL -- it applies candies to the operator workstation), check-k3s-vm (vm) and
check-android-emulator-pod (android).

Every substrate bed it names is disqualified from sub-agent ownership -- check-pod measures
>=600s; the other three are vm/android/host-local -- so a RUNNER form of that workflow is
invalid by construction. It is now a PLANNER: zero beds run; it emits per substrate the exact
 command, the summary.yml path to read, and the status-shows-*
deploy-scope assertion that bed proves, for the PERSISTENT session to own as a
run_in_background task. Dead BED_SCHEMA/runBed/parallel() runner deleted (R5 grep self-test:
BED_SCHEMA, runBed, parallel(, skippedPrereq, statusAssertions all absent).

R3: the bed-safety classifier stays in ONE place, verify-beds.js -- verify-status does not
re-implement it. An RDD spike first proved the runtime's workflow() inline delegation exists
and that delegating a host-local bed returns a refusal with totalRan: 0, running nothing; the
spike was discarded.

That spike also caught a bug in this cutover's own code: verify-beds' no-short-beds early
return omitted gateComplete, so a caller testing  got undefined. Fixed.

Audited the siblings: /triage-check-failure explicitly instructs its agents not to re-run
; /audit-deploy-configs runs no beds. Both clean.

R10 (workflow-script class -- the changed control flow executed live):
  verify-status (planner):  total 0, ranHere [], gateComplete false, 4 planned entries;
    local -> "HOST-LOCAL: applies candies to the operator workstation -- run it inside the
    disposable eval VM, never on this host". Zero beds ran; host untouched.
  verify-beds (partition):  check-sidecar-pod PASS 10/10 (178s), check-k3s-vm deferred,
    check-local refused, gateComplete false.

Assisted-by: Claude (fully tested and validated)
…e sweep (76413b5)

Integrates plugins CHANGELOG/2026.190.2206.md (PR #20, squash 76413b5): the five doc
surfaces that asserted /verify-beds runs every bed, and the /verify-status bullet that
described it running check-pod / check-k3s-vm / check-local / check-android-emulator-pod to
completion.

Both workflows now state -- and this repo's code now implements -- that a sub-agent runs
only what it can own. /verify-beds partitions SHORT (run) / LONG (deferred to the persistent
session) / HOST-LOCAL (refused). /verify-status runs zero beds; it plans.

Assisted-by: Claude (fully tested and validated)
@atrawog

atrawog commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: workflow scripts (.claude/workflows/*.js) + CLAUDE.md + CHANGELOG + plugins gitlink

Fresh evaluation, independent of the author. The engineering is sound and the RCA is genuine — but the cutover's claim-keyed R1/R5 sweep is incomplete: it missed the superproject README.md, which still asserts the exact premise this cutover repudiates. Blocking.

Checklist verdict

  • [PASS] 0. Security & anti-tampering (T1–T4). Change tightens the bed-safety gate — strictly fewer beds run unsafely (host-local refused, long deferred, only short run); no previously-refused bed can now run; isHostLocal is applied before runnable, so no host-local bed can reach the runner. Gitlink 1043577 → 76413b5 diff is all-*.md and 76413b5 is a real ancestor of plugins origin/main (PR fix(check): print the GPU-prereq skip reason once, not 3× (P1.7-cosmetic) #20 merged). No secrets/exfiltration/supply-chain; no attempt to manipulate the evaluator. T4 (self-modifying-security machinery): verified it strengthens, loosens nothing.
  • [PASS] 1-part. RCA is real: /charly-internals:agents internals/skills/agents/SKILL.md:486-488 on main genuinely reads "NEVER the sub-agent /verify-beds workflow for >600s beds" — not invented. CLAUDE.md self-divergence is real (line 250 concurrency Key Rule already mandated persistent-session run_in_background ownership of every >600s bed; line 146 matrix + line 221 bullet contradicted it) and is now reconciled. Incident is real and corroborated: check-pod newest run total_seconds: 842; charly-cachyos host-local run deploy-add ok:false / 697s; /var/log/pacman.log shows ~202 root package actions in the 22:04–22:15 window.
  • [FAIL] 5. R1 — documentation divergence is claim-keyed swept across the sibling-set. The sweep covered CLAUDE.md:146, CLAUDE.md:221, both workflow meta.descriptions, and (in plugins PR fix(check): print the GPU-prereq skip reason once, not 3× (P1.7-cosmetic) #20) five doc surfaces — but left the superproject README.md carrying the repudiated claim. See blocking findings.
  • [PASS] 2/6. R2. No "pre-existing/out-of-scope" split asserted by the author — but the README divergence (below) is a surfaced in-repo issue that R2 makes blocking, not deferrable.
  • [PASS] 7. R3. The partition classifier lives in one place (verify-beds.js); verify-status.js does not re-implement isHostLocal/isLong — it carries a fixed substrate→bed map with static reasons and delegates the classifier by reference.
  • [PASS] 8. R4. No sleep/retry/magic-number. LONG_BED_SECONDS = 600 is named + commented (the Bash foreground cap), not a bare magic number.
  • [FAIL] 9. R5 — hard cutover + claim-keyed grep self-test. Deleted ids in verify-status.js (BED_SCHEMA/runBed/parallel(/skippedPrereq/statusAssertions) are all absent — clean. But the claim-keyed sweep is incomplete: git grep for the "runs every / whole roster via /verify-beds" claim still returns README.md (see blocking findings). The verify-beds.js retained BED_SCHEMA/runBed/skippedPrereq are its legitimate short-bed runner, not stale references.
  • [PASS] 10. R6/R8/R9. N/A for artifact/binary integrity beyond the gitlink (verified above).
  • [PASS] 11. R10 gate by change class. Workflow-script class → parse + execute the changed control flow. node --check clean on both files (re-run here, exit 0). Predicates verified by reading: LONG_BED_SECONDS === 600 with >=; LONG_SUBSTRATES === {vm, android}; isHostLocal tests host === 'local' (a remote local: bed still runs); host-local refused (excluded from runnable), not deferred; the no-short-beds early return does carry gateComplete: false (line 92); final gateComplete === deferredLongBeds.length === 0 && refusedHostLocalBeds.length === 0. verify-status.js has exactly one agent() — the read-only Discover — and runs zero beds. No dry-run/rebuild-alone fraud.
  • [PASS] 12. RDD/ADE/SDD. N/A — no candy/CUE/schema/wire-type/@go surface touched. No *_gen.go, no schema/*.cue, no params struct.
  • [PASS] 13. Concurrency mandate + anti-cheat. This change implements the mandate correctly: it stops fanning long/host-local beds through ephemeral sub-agents and reconciles CLAUDE.md's matrix with its concurrency Key Rule. No "passes on idle / flake / pre-existing" framing used to dismiss the incident — the incident got a full RCA to the root mechanism (sub-agent can't own a bed that outlives its turn) + a structural fix (defer to persistent session, refuse host-local).
  • [PASS] 14. Hard cutover. Three branch commits folded by the repo's squash-merge policy → one commit on main. No "Phase 2/TODO" deferred inside scope (the eval-VM migration is a genuinely separable next cutover, not a narrowing of this contract).
  • [PASS] 15. Kernel/plugin boundary law. N/A — no charly/ core or sdk/ code; workflow JS + docs only.
  • [PASS] 16. Disposable-only autonomy. The change makes autonomy safer (refuses host-local, defers long). No destroy of a non-disposable resource.
  • [PASS] 17. Clean architecture + go gates. N/A (no Go). JS is clean, no dead paths left in verify-status.js.
  • [PASS] 18. CHANGELOG present. CHANGELOG/2026.190.2340.md staged (placeholder CalVer; would be finalized at merge).

Blocking findings (fix in THIS tree — R1/R5 claim-keyed sweep, R2 blocking)

The cutover changes /verify-beds so it no longer runs every bed (SHORT run, LONG deferred, HOST-LOCAL refused). The plugins PR #20 CHANGELOG correctly enumerates its swept surfaces as "each asserted that /verify-beds runs every bed." The superproject README.md asserts exactly that premise in two places and was not swept — so merging this PR lands code that no longer runs every bed next to a README that says it does. This is the same false claim the author swept in CLAUDE.md:146/:221; it belongs in the same claim-keyed sweep (R1/R5) and is blocking (R2: a tree carrying a false claim is not correct — and the falseness is created by this cutover's behavior change).

  1. README.md:879-880 — "(.claude/workflows/) fan the work out — /verify-beds runs every disposable check bed as the R10 gate, /audit-deploy-configs evaluates your deploy configs".

    • Fix: reword to the by-owner framing already used in CLAUDE.md:221, e.g. "/verify-beds fans the SHORT disposable check beds out as part of the R10 gate — it defers long beds (vm/android, or last run ≥600s) to the persistent session as run_in_background tasks and refuses host-local beds, returning both lists plus gateComplete (false ⇒ the roster is partial); /audit-deploy-configs evaluates your deploy configs."
  2. README.md:570-571 — "To run a whole roster, fan the beds out concurrently — one charly check run <bed> per agent — via the /verify-beds workflow."

    • Fix: reword to reflect ownership, e.g. "To run a whole roster, fan the SHORT beds out concurrently — one charly check run <bed> per agent — via /verify-beds, and own each LONG bed (vm/android, or last run ≥600s) as a persistent-session run_in_background task; host-local beds belong in the disposable eval VM, never on this workstation."

Both are one-line prose edits; after them, git grep -nE 'runs every|whole roster' README.md should return only correctly-scoped text, matching the sweep already applied to CLAUDE.md and the five plugins surfaces.

Decision

Not merged. Everything else in the cutover is compliant and well-executed — the RCA is genuine (verified against main), the self-divergence and incident are real, the predicates and partition are correct, security tightens with nothing loosened, and both files pass node --check. The single blocking issue is the incomplete claim-keyed R1/R5 documentation sweep: the superproject README.md still tells readers /verify-beds "runs every disposable check bed" — the exact instruction whose harm this cutover exists to eliminate. Sweep README.md:570-571 and :879-880 into the same tree, re-push, and the gate re-runs.

Assisted-by: Claude (analysed on a live system)

The pr-validator on PR #47 caught that the claim-keyed R1/R5 sweep updated CLAUDE.md, both
workflow meta.descriptions, and five plugins doc surfaces -- but missed this repo's README,
the "Features & command reference" doc owner. Merging would have landed code that no longer
runs every bed beside a README saying it does.

Three sites corrected to the by-owner framing:
  README.md:570-571  "to run a whole roster ... one `charly check run <bed>` per agent"
  README.md:580-583  "dynamic workflows run charly check run/live/box against the beds"
  README.md:879-880  "/verify-beds runs every disposable check bed as the R10 gate"

Each now states: SHORT beds via /verify-beds; every LONG bed (vm/android substrate, or last
run >=600s) owned by the persistent session as a background task, because an ephemeral
sub-agent cannot own a bed that outlives its turn; host-local beds refused; a
gateComplete:false result is a PARTIAL roster, never a green gate.

Claim-keyed grep across the whole tree (excluding CHANGELOG history) now returns nothing.

The lesson is procedural and is recorded in the changelog: a claim-keyed sweep is a grep
across the whole tree, not a walk through the doc set one happens to remember. This is the
SECOND surface a fresh evaluator had to find in this cutover -- the first was /verify-status.

Assisted-by: Claude (fully tested and validated)
@atrawog

atrawog commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅ (re-validation of the fix)

Change class: workflow scripts (.claude/workflows/*.js) + CLAUDE.md + CHANGELOG + plugins gitlink

Independent re-validation of head 22e6470 after the blocking finding from my prior FAIL was fixed in place (append + fast-forward; four commits, squash-folded into one on main).

Re-verified against the fix (not taken on the author's word)

  • README sweep — the three sites are now accurate, not merely reworded. Checked each against verify-beds.js:
    • README.md:570-575 — "fan the beds out concurrently BY OWNER: the SHORT beds via /verify-beds … every LONG bed (vm/android substrate, or one whose last run took ≥600s) as its own persistent-session background task … /verify-beds defers those and refuses host-local beds … a gateComplete: false result is a PARTIAL roster, never a green gate." Matches the code: >=600 (Number(b.lastSeconds||0) >= LONG_BED_SECONDS), {vm, android}, host-local refused (excluded from runnable before the long test), gateComplete === deferredLongBeds.length===0 && refusedHostLocalBeds.length===0.
    • README.md:586-589 — "run charly check run/live/box against the existing beds … A sub-agent runs only what it can own: long beds are handed back to the persistent session, host-local beds are refused." Accurate.
    • README.md:887-889 — "/verify-beds runs the SHORT disposable check beds as part of the R10 gate (deferring long beds to the persistent session, refusing host-local ones)." Accurate.
  • Claim-keyed grep across the WHOLE tree (superproject + plugins, *.md/*.js, excluding CHANGELOG/ history) is now clean. No surface asserts /verify-beds "runs every bed"/"whole roster" un-scoped, and none asserts /verify-status runs beds. Every surviving "whole roster" mention (README.md:570, plugins/check/skills/check/SKILL.md:108/396, CLAUDE.md:146/221) is explicitly scoped BY OWNER (SHORT via /verify-beds; LONG owned by the persistent session; host-local refused). verify-status reads as a PLANNER everywhere. Checked the surfaces you named: plugins/README.md:49 (pointer only), box/arch/CLAUDE.md:18 (thin signpost, restates no rule), no .claude/agents/ dir, no box/*/CLAUDE.md claim.
  • No regression. The delta 2ac264e..22e6470 is exactly README.md + CHANGELOG/2026.190.2340.md; verify-beds.js, verify-status.js, and CLAUDE.md are byte-identical to the head I already validated; plugins gitlink unchanged (76413b5, a real ancestor of plugins origin/main, diff all-*.md). node --check clean on both workflows (exit 0).
  • The CHANGELOG records the procedural lesson honestly — the sweep was incomplete twice (/verify-status, then README.md), each caught by a fresh evaluator; "a claim-keyed sweep is a grep across the whole tree, not a walk through the doc set one happens to remember."

Standing verifications from the first pass (unchanged files, still valid)

RCA genuine (SKILL.md:486-488 on main really reads "NEVER the sub-agent /verify-beds workflow for >600s beds"); CLAUDE.md self-divergence real and reconciled (concurrency Key Rule vs. the R10 matrix + Agents bullet); incident real and corroborated (check-pod newest run 842s; charly-cachyos host-local deploy-add ok:false/697s; ~202 root pacman actions in the incident window). Security screen (T1–T4): the change tightens the bed-safety gate — strictly fewer beds run unsafely, no previously-refused bed can now run, no host-local bed can reach the runner. Partition predicates correct; early-return carries gateComplete: false; verify-status.js has one read-only agent() and runs zero beds; R5 grep self-test clean; R3 single classifier.

Decision

Approved. The sole prior blocker (unswept README.md "Features & command reference" doc owner) is fixed and the claim-keyed R1/R5 sweep is now tree-complete; the README prose is accurate against the code; nothing else regressed. Posting charly/claude-validation = success, finalizing the merge-time CalVer, squash-merging (one commit on main), and tagging.

Assisted-by: Claude (analysed on a live system)

…ds ownership cutover)

pr-validator stamps the merge-time CalVer at merge, not author time. Renames the
placeholder CHANGELOG/2026.190.2340.md to CHANGELOG/2026.190.2227.md and updates its
heading. Version generated UTC at merge; monotonic above v2026.190.2122.

Assisted-by: Claude (fully tested and validated)
@atrawog
atrawog merged commit 21b4b11 into main Jul 9, 2026
@atrawog
atrawog deleted the feat/verify-beds-ownership branch July 9, 2026 22:30
atrawog added a commit that referenced this pull request Jul 13, 2026
… (candy/plugin-box) (#89)

P15 — the build-mode charly box verb HANDLERS (generate/validate/new/pkg) move out of charly core into a new COMPILED-IN command plugin candy/plugin-box, nested under the shared box grammar group via the generic NestedCommandProvider mechanism. Core BoxCmd stays the dispatch spine (build/merge/labels/feature/inspect/list + the authoring verbs). Plus a validate.go dead-stub sweep (validateBaseReferences/validateDNS deleted, validateLibvirt cleaned).

Seams (no new capability, no duplication): generate → InvokeProvider(build:generate); new → sdk/kit scaffold engine directly; validate/pkg → HostBuild("cli") to hidden K1-doomed core __box-validate/__box-pkg. inspect/list retained (K1). Retained core surfaces each carry a tracked K-wave exit (K1/#46/#47). Advances the v2 plugin-host core direction.

Validated by fresh pr-validator V-P15b: R10 check-commands-local PASS (box-new-validate-generate + box-pkg-dispatches exit=0, corroborated on disk); go build/test/vet/gofmt/golangci-lint(0)/cue:gen-repro all green (re-run); boundary-law clean; plugins gitlink reconciled to merged #43 main.

Assisted-by: Claude (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 17, 2026
Renamed placeholder CHANGELOG/2026.198.0311.md to the actual merge-time
CalVer (evaluator step, computed via `date -u` per the #47 lesson — never
`git show --date=format` in the commit's local TZ).

Assisted-by: Claude Sonnet 5 (analysed on a live system)
atrawog added a commit that referenced this pull request Jul 17, 2026
)

* feat(core): K3 wire-to-spec Path 1 — pure import repoint (5 files)

Five charly/*.go files used ONLY deploykit/kit types that a prior wave
(SDK envelope relocation, task #13) already moved to sdk/spec as Go type
aliases (deploykit.InstallPlan/EmitOpts/DeployExecutor = spec.X in
sdk/deploykit/steps.go; kit.LabelDescriptionSet/LabeledDescription = spec.X
in sdk/kit/planrun.go). Repoint each to import spec directly instead of
deploykit/kit — a same-type swap with byte-identical runtime behavior
(these were literal Go type aliases, not distinct types), so no bed
re-run is needed for this change class.

- deploy_preresolve.go: deploykit.InstallPlan -> spec.InstallPlan
- deploy_substrate_lifecycle.go: InstallPlan/EmitOpts/DeployExecutor -> spec.*
- layer_artifacts.go: DeployExecutor/EmitOpts -> spec.*
- plugin_grpc.go: DeployExecutor -> spec.DeployExecutor
- description_collect.go: kit.LabelDescriptionSet/LabeledDescription -> spec.*

Identified via a K1/wire-to-spec classification spike of the remaining 25
type-only files off charly/*.go's kit-import list: these 5 retire for free
(Path 1); ~11-12 need real coordinated type migrations (Path 2, next);
~7-8 hold Go interfaces/function-value hooks structurally excluded from
CUE generation, tracked separately (Path 3, task #21).

Metric: charly/*.go kit-importing files 150 -> 145.

R10 gate for this change class (orchestrator-ruled, per R10's own "run only
the gate that exercises the change" principle): deploykit.X/kit.X here were
literal Go type ALIASES of spec.X, so no runtime path can differ — a bed
gate cannot fail on this change. go build/go vet/go test ./... (88s, full
pass) + golangci-lint (0 issues) is the exhaustive, non-wasteful gate.

Assisted-by: Claude Sonnet 5 (analysed on a live system)

* chore(changelog): finalize merge-time CalVer 2026.198.0326

Renamed placeholder CHANGELOG/2026.198.0311.md to the actual merge-time
CalVer (evaluator step, computed via `date -u` per the #47 lesson — never
`git show --date=format` in the commit's local TZ).

Assisted-by: Claude Sonnet 5 (analysed on a live system)
github-actions Bot pushed a commit that referenced this pull request Sep 12, 2026
… rule removal (#596)

* chore(deps): pin plugin-build v0.2026255.1833 — the podman store-size rule removal

charly/go.mod required plugin-build v0.2026250.552, whose box-build drive ran
`podman system df` and printed "warning: podman store is bloated (…)" before
every image build. That is a statement about the local build HOST emitted into
a bed's output, and the org's R10 gate counts un-allowlisted warning lines — so
a bloated store on whatever host ran a bed gated unrelated PRs (pod-immich-ml#5,
distro-cachyos#82/#83, plugin-check#45/#46/#47).

The maintainer's directive removed the rule at source (opencharly/plugin-build#12,
squash 847f6998, tag v2026.255.1833). This bump is the propagation step that puts
the removal into every binary built from this tree: charly compiles plugin-build
in, so charly/go.mod is what a user runs.

Verified: the module tag resolves to 847f6998; the pinned revision ships no
store_bloat.go and no production mention of the probe (it ships
store_size_rule_test.go, which fails on the pre-removal tree); the built binary
has zero occurrences of the format string; and a live box build emits zero
warning lines where the pre-change binary emits the bloat line.

Assisted-by: pi ollama-cloud/deepseek-v4-flash (analysed on a live system)

* docs: address the validator BLOCK — pre-change bed control + named routing

Append-only evidentiary/accounting update to the PR body (no tree change):

- BLOCK 2 (R10 bed coverage): the R10 bed now RAN on the final tree —
  `charly check run check-alpine-repo` (pod, disposable: true), whose
  image-build step is the touched code path, including its `charly update`
  fresh rebuild and both post-rebuild live passes: ok: true, warnings: 0,
  errors: 0. The isolating pre-change control is pasted too: the same bed
  built and run from the unmodified base commit (5018afb) yields
  warnings: 1 — the bloat line, counted exactly as it gated pod-immich-ml#5.

- BLOCK 1 (gate environment / deferred finding): the prescribed
  TMPDIR=/tmp/charly-ci red is root-caused and NAMED, not parked. Bisected to
  a single entry in that path: a foreign .git directory above the fixture root
  changes how loaderkit mounts a namespaced import (flat imports unaffected) —
  proven by a seven-entry single-variable sweep plus two negative probes, and
  identical at both pins / green in CI at the base SHA. Routed to batch
  `loaderkit-namespace-import-ancestor-gitdir` (owner opencharly/sdk,
  loaderkit) with its acceptance criterion, and the consumer pins to batch
  `charly-pin-propagation-consumers`; no in-tree test shim is added, because
  the resolution code lives in the SDK and masking it here would be an R4
  workaround.

Assisted-by: pi ollama-cloud/deepseek-v4-flash (fully tested and validated)

* docs: paste the tracked-surface sweeps the R2/R5 answers rest on

Addresses the second validator BLOCK (B14(d)/B10/B7 — compliance asserted with
described-but-unpasted sweeps). Body-only change; no tree change.

- The version-carrying sweep is pasted: `git grep -nE
  'plugin-build[^[:space:]]*[[:space:]]+v[0-9]'` over the tracked surfaces
  returns exactly ONE plugin-build require site (charly/go.mod:16) plus its
  go.sum lines; the `compiled_plugins:` entry in charly/charly.yml is a NAME
  (no version) and charly/plugins_generated.go is a generated import.
- The old-pin sweep is pasted and READ, and it corrects an over-broad claim:
  `v0.2026250.552` still pins plugin-preempt and plugin-status (different
  modules at the same CalVer minute) and appears in CHANGELOG history — no
  plugin-build line points at it.
- The claim-keyed sweep for the removed behaviour is pasted: `store is
  bloated`, `store_bloat` and `podman system df` are all zero-hit (rc=1) in
  the tracked tree.

Assisted-by: pi ollama-cloud/deepseek-v4-flash (fully tested and validated)

---------

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