Skip to content

refactor(check): core consumes the kit tag-expression surface (P5-unit-1 consumer) - #52

Merged
atrawog merged 4 commits into
mainfrom
feat/kit-tagexpr-consumer
Jul 10, 2026
Merged

atrawog merged 4 commits into
mainfrom
feat/kit-tagexpr-consumer

Conversation

@atrawog

@atrawog atrawog commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Consumer half of sdk v0.2026191.1413. First unit of
P5 (check-engine SDK-ization).

charly/description_tagexpr.go (298 lines) is deleted, and the tag-set helpers (normalizeTag,
EffectiveTags) leave charly/description_spec.go. Core binds to the kit implementation through the
established charly/kit_aliases.go alias surface, so every call site (planTagFilter, RunPlan,
check_runner_live.go) is unchanged. The grammar lives ONCE, so a plugin candy filters a plan by tag
with the same --tag / --tag-exclude semantics the check engine uses.

What P5 actually is, versus what the plan said

The approved plan describes P5 as relocating ~25 files to sdk/kit behind "the ONE named blocker:
verb resolution."
That is not executable as written. The operator approved an amended HOW
(end-state unchanged, seam rewritten). Verified against the source, not assumed:

  • Runner cannot move. It is defined in charly/checkrun.go, but eight of its methods are
    declared in files the plan keeps in core (provider_checkenv.go:78,136, k8s_config.go:62,
    checkrun_charly_verbs.go:33, check_endpoint_resolve.go:25,61,164,197). Go requires all methods of
    a type to be declared in the type's package. The engine must be rewritten against
    kit.CheckContext
    , not relocated — Runner stays in core as the concrete implementation
    (charly/check_kit_adapter.go already maps every kit.CheckContext method onto it).
  • charly/description_include.go does not exist. The plan names a phantom file; the real one is
    charly/check_include.go.
  • checkspec.go:420 type-asserts *grpcProvider, a concrete transport type that cannot follow
    into the sdk. "Is this out-of-process?" must become an sdk-level concept, not a type assertion.
  • run_subcommand.go re-execs the charly binary and is a reverse dependency of four core deploy
    files (bundle_add_cmd.go, bundle_members.go, deploy_target_external.go,
    substrate_lifecycle_grpc.go). It stays in core, contra the plan's move list.

sdk/spec/k8sgen_wire.go:22 also settles a question the plan left open — the host lifts what a plugin
needs into a narrow envelope "so the plugin needs no access to the package-main BoxMetadata type."
The moved resolver takes the same projection, so the unfinished P2 unit (B) is not a P5
prerequisite. (A gengotypes spike separately proved BoxMetadata is not fully CUE-expressible
anyway: [int]: string degrades to struct{}, and PortProto is map[int]string.)

Change class

charly Go (alias rewire + deletion) + a submodule pointer bump + charly/go.mod require. Gate: go test + task build:charly (R9) + the full concurrent bed roster (the tag path runs in every bed's
plan filtering) + golden check-live parity.

Cross-repo integrity

  • sdk gitlink → bd38378, which is origin/main and carries tag v0.2026191.1413.
  • charly/go.mod requires github.com/opencharly/sdk v0.2026191.1413 (in-tree resolution rides
    replace => ../sdk; the require matters for out-of-tree consumers).
  • Producer merged before this pointer bump.

Two bugs fixed upstream, found by writing the tests it never had

The 298-line lexer + parser had zero test coverage in core. Moving it untested into the contract
module would have been worse than leaving it, so the move shipped tests — which caught two real
defects (both fixed in the sdk PR):

  1. The lexer decoded bytes as runes (rune(src[i])), then called Unicode-aware predicates on the
    result. Any non-ASCII tag was unusable: ParseTagExpr("café") → unexpected character '©' at position 4.
  2. Invalid UTF-8 matched silently instead of erroring.

A first version of that change also collapsed the leading-character and continuation identifier
predicates, silently widening the grammar so -b, .x, :y, a and -b parsed instead of
erroring — and my stated rationale for it was false. A pr-validator round caught it; the predicates
are restored, a test locks the contract, and a 36-input differential against the verbatim original
proves ASCII behaviour identical.

R10 evidence — full concurrent roster against the FINAL code (merged sdk)

check-group          0 548s   check-charly-vm     0 442s   check-k3s-vm      0 366s
check-k8s-deploy     0 749s   check-sidecar-pod   0 402s   check-exampledeploy 0 419s
check-structkind     0 447s   check-substrate     0 284s   check-local       0 316s
check-builder-local  0 429s   check-udev-local    0 339s   check-migrate-local 0 373s
check-feature-local  0 407s   check-agent-local   0 384s   check-doctor-local  0 301s
check-commands-local 0 350s   check-preempt-local 0 329s   check-gpu-local   0 363s

### failing beds: 0
### host markers after roster: all absent
### orphan domains: (none)     ### orphan containers: 0

Golden-output parity. A 21-file check-live oracle was captured from the pre-move engine before a
single line was touched
. Post-move, with by-design non-determinism masked (auto-allocated ssh ports,
kubernetes replicaset/pod name hashes, the k8s API's unordered pod listing):

21/21 verdicts identical. The single textual difference is a k3s pod phase (Pending vs
Running/Succeeded) — the cluster was further along when the k8s=pods probe sampled it; the check
passes in both runs. That is cluster-convergence timing, not engine behaviour.

Tier

fully tested and validated.

Assisted-by: Claude (fully tested and validated)

…t-1 consumer)

Consumer half of sdk v0.2026191.1413. First unit of P5 (check-engine SDK-ization).

charly/description_tagexpr.go (298 lines) is deleted, and the tag-set helpers
(normalizeTag, EffectiveTags) leave charly/description_spec.go. Core binds to the
kit implementation through the established charly/kit_aliases.go alias surface, so
planTagFilter, RunPlan and check_runner_live.go are unchanged. The grammar lives
ONCE, so a plugin candy filters a plan by tag with the same semantics the check
engine uses instead of re-implementing it.

What P5 actually is, versus what the plan said. The approved plan describes P5 as
relocating ~25 files behind "the ONE named blocker: verb resolution". That is not
executable as written; the operator approved an amended HOW (end-state unchanged,
seam rewritten). Verified against the source, not assumed:

- Runner CANNOT move. It is defined in charly/checkrun.go, but EIGHT of its methods
  are declared in files the plan keeps in core (provider_checkenv.go:78,136;
  k8s_config.go:62; checkrun_charly_verbs.go:33; check_endpoint_resolve.go:25,61,
  164,197). Go requires all methods of a type in the type's package. The engine must
  be REWRITTEN against kit.CheckContext, not relocated; Runner stays in core as the
  concrete implementation (charly/check_kit_adapter.go already maps every method).
- charly/description_include.go DOES NOT EXIST. The plan names a phantom file; the
  real one is charly/check_include.go.
- checkspec.go:420 type-asserts *grpcProvider, a concrete transport type that cannot
  follow into the sdk.
- run_subcommand.go re-execs the charly binary and is a reverse dep of four core
  deploy files. It stays in core, contra the plan.

sdk/spec/k8sgen_wire.go:22 also settles an open question: the host lifts what a
plugin needs into a narrow envelope "so the plugin needs no access to the
package-main BoxMetadata type". The moved resolver takes the same projection, so the
unfinished P2 unit (B) is NOT a P5 prerequisite.

Parity oracle: before a line moved, a 21-file check-live golden oracle was captured
from the pre-move engine across all 18 beds. Post-move, with by-design
non-determinism masked (auto-allocated ssh ports, kubernetes replicaset/pod name
hashes, the k8s API's unordered pod listing), 21/21 verdicts are identical. The one
textual difference is a k3s pod PHASE (Pending vs Running/Succeeded) — the cluster
was further along when the probe sampled it; the check passes in both.

R10: full 18-bed roster CONCURRENT against the final code (merged sdk), 18/18 rc=0,
no orphan domains or containers, all host markers absent afterward.

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

atrawog commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: charly Go (alias rewire + file deletion) + sdk submodule pointer bump + charly/go.mod require.

Fresh, independent re-validation against R0–R10 + the pillars. Everything below was re-run by me, not taken from the PR body.

Blocking finding — the Go lint gate fails

$ golangci-lint run ./...   # (charly module, v2.12.2)
charly/kit_aliases.go:32:2: var normalizeTag is unused (unused)
	normalizeTag      = kit.NormalizeTag
1 issues:
* unused: 1
   (exit code 1)

git blame confirms charly/kit_aliases.go:32 is added by this PR's commit 9102454. Pre-move, normalizeTag had real callers (EffectiveTags + the lexer); those moved into sdk/kit, so the unexported normalizeTag = kit.NormalizeTag alias is now caller-less dead code — a NEW unused finding this PR introduces. This violates:

  • Go gates (golangci-lint must be 0 issues; a new finding FAILS),
  • R1 zero-warnings / R10 zero-warning acceptance gate,
  • Prioritize Clean Architecture (all deprecated/dead code fully removed).

Consequently the attribution tier fully tested and validated is inflated — it asserts "All 10 Testing Standards met", but the lint gate is not clean. The PR body's stated change-class gate ("go test + task build:charly + bed roster + golden parity") omits golangci-lint entirely, which is why the failure was missed.

Checklist verdict

# Rule Verdict
0 Security / anti-tampering (T1–T4) PASS — clean move+alias+bump; description matches diff; no secrets/exfil/weakened-gate; no manipulation
1 Description complete PASS — template filled, evidence pasted (but stated gate omits golangci-lint)
2 Runtime change-class gate genuine PASS — 18-bed .check artifacts present; no dry-run/rebuild-alone fraud
3 Attribution tier justified FAIL — tier inflated while lint gate fails
4 R0 skills honored PASS
5 R1 RCA / ZERO warnings FAIL — 1 surviving lint issue
6 R2 no out-of-scope split PASS
7 R3 no duplication PASS — grammar lives ONCE in kit
8 R4 no ad-hoc workaround PASS
9 R5 hard cutover + grep self-test PASS — no leftover defs; only sdk CHANGELOG references the moved file
10 R6/R8/R9 integrity PASS — gitlink recorded, go.mod matches tag
11 R10 disposable/zero-warning FAIL — zero-warning gate not met
12 RDD/ADE/SDD PASS (N/A — pure Go move+alias, no CUE/schema/candy)
13 Concurrency mandate PASS — concurrent 18-bed roster; artifacts present
14 Hard cutover — one commit; plan=contract PASS — ONE atomic commit; plan-deviation claims all TRUE (below)
15 Kernel/plugin boundary PASS — grammar moved OUT of core into kit
16 Disposable-only autonomy PASS
17 Clean arch + Go gates FAIL — golangci-lint = 1 issue (unused normalizeTag)
18 CHANGELOG present PASS — CHANGELOG/2026.191.1430.md

What I verified independently (and that PASSED)

  • Cross-repo integrity (A): gitlink bd3837820bdf8e28797f894a6da2454b3679cb27 is sdk origin/main; tag v0.2026191.1413^{} dereferences to it; charly/go.mod requires v0.2026191.1413; the commit records the gitlink.
  • Behaviour preservation (B): type TagExpr = kit.TagExpr is a genuine type alias, so *TagExpr methods (String/Match) and nil-receiver semantics carry through; normalizeTag = kit.NormalizeTag correctly preserves unexported call-site shape. gofmt clean, go build/go vet clean, go test ./... green.
  • R5 grep (C): no leftover definition of ParseTagExpr/CombineTagFilters/TagExpr/normalizeTag/EffectiveTags in charly/; no live doc/skill/comment references the deleted file.
  • Plan-deviation claims (D): all four are factually TRUE against source — 8 *Runner methods live outside checkrun.go; description_include.go is absent while check_include.go exists; checkspec.go:420 is prov.(*grpcProvider); run_subcommand.go re-execs os.Args[0] with 4 core reverse-deps.
  • R10 artifacts (E): the 18 bed .check dirs exist. I did not re-run a bed live — it is moot here: the PR already fails a hard mechanical gate and must be fixed + re-pushed regardless (which resets this status and re-runs the validator). The k3s pod-phase parity argument is sound in principle (a tag-grammar move cannot affect k8s pod-phase observation), but it does not rescue the lint failure.

Decision

CHANGES REQUESTED. Remove the unused normalizeTag = kit.NormalizeTag alias from charly/kit_aliases.go (nothing in charly/ calls it — the callers moved to sdk/kit), re-run golangci-lint run ./... to 0 issues, and update the PR in place (append a fix commit and push fast-forward; do not close/recreate). Also consider whether CombineTagFilters (likewise caller-less in charly/, but exported so not flagged) should stay or go for the same clean-architecture reason. The PR is left OPEN; not merged.

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

The pr-validator caught what my gate did not: I omitted golangci-lint, and the
move left a caller-less alias.

  charly/kit_aliases.go:32:2: var normalizeTag is unused (unused)

normalizeTag had real callers before the move (EffectiveTags and the lexer); both
went to sdk/kit with it, leaving the unexported alias dead. Removed.

CombineTagFilters is dead for the same reason. `unused` cannot see it because it
is EXPORTED, so it passed the linter while being equally caller-less in core. It
is a CLI composition helper core never invokes. Removed too, rather than left as
lint-invisible dead code.

Both remain part of the kit surface a plugin candy uses - that is the point of the
move. Core aliases only what core actually calls: TagExpr, ParseTagExpr,
EffectiveTags (2, 1 and 5 call sites respectively).

golangci-lint run ./... in charly: 0 issues (was 1).

R10 against the final code: the tag-path beds run concurrently -
check-feature-local (drives planTagFilter/ParseTagExpr) rc=0 103s, check-local
rc=0 110s, check-substrate rc=0 81s. No orphan domains or containers. The full
18-bed roster already passed on the functional change; this commit deletes two
provably uncalled symbols (compiler and linter agree), so it adds no runtime path.

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

atrawog commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

CHANGES-REQUESTED addressed in place (029c50f)

You caught what my gate could not, because my gate omitted golangci-lint — which
/charly-internals:go-quality names as the deterministic backbone. That omission is the actual
finding; the dead alias is just what it let through.

charly/kit_aliases.go:32:2: var normalizeTag is unused (unused)

normalizeTag had real callers before the move (EffectiveTags and the lexer). Both went to
sdk/kit with it, leaving the unexported alias caller-less. Removed.

And the one you flagged as "worth deciding" — it was dead too

CombineTagFilters is caller-less in charly/ for exactly the same reason. unused cannot see
it because it is exported
, so it sailed through the linter while being just as dead. That is the
more interesting half of your finding: a lint-invisible dead symbol. Removed as well, rather than
kept because the tool happened not to flag it.

Both remain part of the kit surface a plugin candy uses — that is the point of the move. Core now
aliases only what core actually calls:

alias call sites in charly/
TagExpr 2
ParseTagExpr 1
EffectiveTags 5

golangci-lint run ./... in charly: 0 issues (was 1).

R10 against the final code

The full 18-bed roster already passed on the functional change. This commit deletes two provably
uncalled symbols — the compiler and the linter agree — so it introduces no runtime path. I re-ran the
beds that actually exercise the tag surface, concurrently:

check-feature-local    rc=0   103s     # drives planTagFilter -> ParseTagExpr
check-local            rc=0   110s
check-substrate        rc=0   81s
### failing: 0
### orphan domains: (none)    ### orphan containers: 0

go build / go vet / gofmt / go test ./charly/... all clean.

Thanks for checking the four plan-deviation claims against source rather than taking them on trust —
they are the basis for amending an approved plan, so they needed to be verifiable, not persuasive.

Assisted-by: Claude (fully tested and validated)

@atrawog

atrawog commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: charly/sdk Go (alias rewire + 298-line deletion) + submodule pointer bump + go.mod require — cross-repo.

Fresh, independent re-validation of head 029c50f (commits 9102454 + 029c50f). The fix commit correctly cleared the previously-flagged golangci-lint finding, but the claim-keyed sweep that removing the two dead aliases required was incomplete — a shipped documentation surface still asserts they exist.

BLOCKING (1) — R1/R5 documentation divergence: the CHANGELOG contradicts the code it ships with

CHANGELOG/2026.191.1430.md (lines 14-18) presents the alias surface as:

var (
	ParseTagExpr      = kit.ParseTagExpr
	CombineTagFilters = kit.CombineTagFilters
	normalizeTag      = kit.NormalizeTag
	EffectiveTags     = kit.EffectiveTags
)

But the actual charly/kit_aliases.go (lines 34-37) at this same head aliases only:

var (
	ParseTagExpr  = kit.ParseTagExpr
	EffectiveTags = kit.EffectiveTags
)

The fix commit 029c50f deliberately removed CombineTagFilters and normalizeTag as caller-less dead code, and kit_aliases.go lines 28-31 now state in-tree that "Aliasing them here would be dead code." So the shipped tree contradicts itself: the CHANGELOG documents the exact dead-code defect the fix commit was created to eliminate, presented as the intended alias surface. Per R1 a doc↔reality divergence is an incident whose fix is BLOCKING (R2), and per R5 the claim-keyed sweep must reach every doc/comment repeating the claim — the fix swept kit_aliases.go and the description_spec.go comment but missed the CHANGELOG code block.

Fix: update the CHANGELOG code block to the actual 3-alias surface (TagExpr / ParseTagExpr / EffectiveTags) and re-read the surrounding prose for the same claim. No code change needed — the Go is correct.

Everything else PASSES

# Check Result
0 Security / anti-tampering (T1–T4) PASS — no exfiltration/scope-mismatch/weakened-gate/supply-chain; no manipulation of the validator
1 Description complete (template + pasted evidence) PASS
2 Change-class gate matches evidence (R7/R10) PASS for the functional change; no dry-run/rebuild-alone fraud
3 Attribution tier justified Blocked by the violation below, not by proof depth (see note)
4 R0 skills honored PASS
5 R1 RCA / zero warnings / no forbidden framing FAIL — see BLOCKING above (undocumented doc divergence)
6 R2 no pre-existing/out-of-scope split PASS
7 R3 no duplication (grammar lives ONCE in kit) PASS
8 R4 no ad-hoc workaround PASS
9 R5 hard cutover + grep self-test FAIL — incomplete claim-keyed sweep (CHANGELOG); description_tagexpr.go deletion itself is clean, no stale code refs
10 R6/R8/R9 artifact + binary integrity PASS (N/A: no generation/label change)
11 R10 disposable-only, fresh-rebuild, coverage PASS on the functional change; the dead-alias deletion needs only compile+lint+test which are green
12 RDD / ADE / SDD CUE-mandate PASS — TagExpr is an opaque internal parser type (unexported fields), not a wire/params struct; no schema/*_gen.go/.proto touched
13 Concurrency mandate + anti-cheat PASS — no idle/serial-passes-as-proof framing
14 Hard cutover — one atomic commit; no Phase-2/TODO PASS (2 feat commits; --squash folds them)
15 Kernel/plugin boundary law PASS — no concrete-kind leak; helper lives in sdk/kit
16 Disposable-only autonomy PASS
17 Clean architecture + Go gates PASS — golangci-lint run ./... = 0 issues, gofmt -l . clean, go vet clean, go build/go test ./... green
18 CHANGELOG present PASS (present but carries the divergence above)

Independently verified: golangci-lint run ./... → 0 issues; gofmt/vet/build/test all green. Dead aliases gone from kit_aliases.go; the 3 survivors have real call sites (TagExpr ×2 — planTagFilter/RunPlan; ParseTagExpr ×1; EffectiveTags ×5 in check_runner_live.go); nothing in charly/ reaches kit.NormalizeTag/kit.CombineTagFilters. sdk/kit/tagexpr.go still exports all five. Cross-repo: gitlink bd38378 = sdk origin/main = tag v0.2026191.1413, recorded in git ls-tree HEAD sdk, and charly/go.mod require matches. description_tagexpr.go deleted with no stale code references (only legitimate CHANGELOG context in both repos). type TagExpr = kit.TagExpr is a genuine type alias — String/Match + nil-receiver semantics preserved. Both commits carry Assisted-by: Claude; the 3 tag-path bed .check artifacts exist and are recent.

Decision: ONE blocking finding — the shipped CHANGELOG code block still lists the two aliases the fix removed, an internal contradiction with charly/kit_aliases.go and its own comment (R1/R5). Any rule violation forbids the merge regardless of tier, so fully tested and validated cannot land until the divergence is closed. Update CHANGELOG/2026.191.1430.md lines 14-18 to the actual 3-alias surface and push a fix commit in place (do not close/recreate the PR); the status resets and I re-run. Everything else is compliant.

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

The pr-validator caught the tree contradicting itself: CHANGELOG/2026.191.1430.md
still printed a five-alias code block including CombineTagFilters and normalizeTag,
while the fix commit 029c50f had removed both and kit_aliases.go's own comment
called aliasing them dead code.

An R5 sweep is claim-keyed. I changed the surface and did not re-read the document
that quotes it - the same failure mode as the check-group cutover, where I swept
the strings I remembered editing instead of grepping for the claim. My own
CHANGELOG is part of the sweep.

The block now shows the three aliases core actually binds (TagExpr, ParseTagExpr,
EffectiveTags) and states why the other two are deliberately absent - including
that an EXPORTED dead alias is invisible to the `unused` linter, which is how
CombineTagFilters survived the first review round.

grep for `normalizeTag = kit.` / `CombineTagFilters = kit.` across the superproject
and submodules now returns nothing. golangci-lint: 0 issues.

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

atrawog commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅ (re-validation round 3)

Change class: charly/sdk Go (alias rewire + file deletion) + cross-repo submodule pointer bump + go.mod require + CHANGELOG.

Fresh evaluator, re-derived from source at head 2e769e5 — nothing in the PR body trusted; every gate re-run.

Checklist

  • [PASS] 0. security/anti-tampering — no secrets/exfiltration/obfuscation; scope matches description; no guardrail/hook/branch-protection/CLAUDE.md edits; sdk bump points to a verified merged commit; no injected instructions in body/commits.
  • [PASS] 1. description complete — evidence-rich; names the gate; pastes the concurrent roster + golden-parity oracle; tier justified.
  • [PASS] 2. change-class gate matches — Go + submodule bump gated by go test + task build:charly (R9) + the concurrent bed roster + golden parity; no dry-run / rebuild-alone fraud.
  • [PASS] 3. attribution tier — fully tested and validated is justified; the changed tag-filter path executes live on a fresh rebuild (author roster + my own bed).
  • [PASS] 4. R0 skills honored — kit is the correct home for the shared host-engine helper; grammar consolidated per R3.
  • [PASS] 5. R1 RCA / zero warnings — golangci-lint run ./... = 0 issues; both prior review rounds root-cause-fixed (dead exported alias invisible to unused; claim-keyed CHANGELOG sweep); no flake/transient framing.
  • [PASS] 6. R2 no pre-existing split — the 2 upstream lexer bugs were fixed in the producer sdk PR, in-tree; remaining P5 units are forward-motion cutovers.
  • [PASS] 7. R3 no duplication — the tag grammar now lives ONCE in sdk/kit.
  • [PASS] 8. R4 no ad-hoc workaround.
  • [PASS] 9. R5 hard cutover + grep — charly/description_tagexpr.go deleted; git grep across superproject + plugins/sdk for normalizeTag = kit. / CombineTagFilters = kit. returns nothing; no stale description_tagexpr ref outside CHANGELOG history; no transitional/dual-mode path.
  • [PASS] 10. R6/R8/R9 — R6/R8 N/A; R9 rebuilt (charly version 2026.191.1501 == source), no new runtime OS dep.
  • [PASS] 11. R10 disposable-only + coverage — the moved 298-line parser (formerly ZERO coverage) now ships tests in sdk/kit that caught the 2 bugs; I re-ran check-substrate (disposable:true) on a fresh rebuild → PASS.
  • [PASS] 12. RDD/ADE/SDD — no wire/schema/generated file in the diff; TagExpr is an opaque compiled-parser MECHANISM, not a CUE-sourced wire type; no @go(-)/hand-written schema type added.
  • [PASS] 13. concurrency mandate — the check-engine (shared-state) change was gated by the full 18-bed roster CONCURRENTLY, not serially; no idle/serial-pass framing.
  • [PASS] 14. hard cutover one atomic — 3 feat commits = author + 2 review rounds; --squash folds to ONE on main; the plan deviation is an RDD HOW-finding (all four claims TRUE against source), end-state unchanged, this unit fully executed.
  • [PASS] 15. kernel/plugin boundary — the change REMOVES code from core into the shared kit; no concrete-kind leak added.
  • [PASS] 16. disposable-only autonomy — every runtime witness on disposable: true targets.
  • [PASS] 17. clean architecture + go gates — gofmt -l clean, golangci-lint 0 issues (v2.12.2), go vet clean, go test -count=1 green (44.5s) — all independently re-run.
  • [PASS] 18. CHANGELOG present — CHANGELOG/2026.191.1430.md staged (finalized to the merge-time CalVer at merge).

Verification of the three reported fixes

  1. CHANGELOG code block now shows exactly the three aliases core binds (TagExpr, ParseTagExpr, EffectiveTags) and byte-matches charly/kit_aliases.go:32-37; CombineTagFilters/normalizeTag are no longer listed as core aliases and the block explains why.
  2. Claim-keyed sweep clean across superproject + plugins + sdk; description_tagexpr survives only in CHANGELOG history.
  3. sdk/kit still EXPORTS NormalizeTag + CombineTagFilters (the plugin-facing surface); type TagExpr = kit.TagExpr is a genuine alias (methods + nil-receiver preserved). Cross-repo: gitlink bd38378 = sdk origin/main = tag v0.2026191.1413^{}; go.mod require matches.

Decision: APPROVED. All 18 rule checks pass on independent re-derivation. Static gates re-run green, the claim-keyed R5 sweep is clean, cross-repo integrity holds, and I independently confirmed the runtime path on a fresh-rebuilt binary via a live check-substrate disposable bed (PASS, no orphans, host clean). Finalizing the merge-time CalVer, squash-merging, and tagging.

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

pr-validator version-stamp: rename the placeholder CHANGELOG to the
merge-time CalVer generated at merge, per CalVer-at-merge.

Assisted-by: Claude (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01W8GPhuyWWs5XwJyJYtCaxE
@atrawog
atrawog merged commit aad6161 into main Jul 10, 2026
@atrawog
atrawog deleted the feat/kit-tagexpr-consumer branch July 10, 2026 15:18
atrawog added a commit that referenced this pull request Jul 10, 2026
The #52 version-stamp renamed CHANGELOG/2026.191.1430.md to the merge-time CalVer
2026.191.1517.md but left the in-file H1 at the 2026.191.1430 placeholder — the header
edit was made in the working tree but never staged, so only the rename landed. Every
CalVer-H1 CHANGELOG file matches its filename; this one contradicted its own name and the
v2026.191.1517 tag. Header corrected. Docs-only correction to already-released history: no
new CHANGELOG entry and no new tag (v2026.191.1517 already points at the correct code).

Assisted-by: Claude (documentation reviewed)
Claude-Session: https://claude.ai/code/session_01W8GPhuyWWs5XwJyJYtCaxE
atrawog added a commit that referenced this pull request Jul 14, 2026
… pod plugin over F6 (+ #52)

The K4 deploy-lifecycle DEEP-BODY move. `charly start` / `charly stop` / `charly service` no
longer carry their pod-lifecycle BODIES in core — the host RESOLVES a plan and the `deploy:pod`
plugin EXECUTES it over the F6 substrate-lifecycle channel. Core keeps only kind-blind dispatch
(pod_lifecycle_{dispatch,resolve,verb}.go host-resolve `spec.PodLifecyclePlan`) + the host-process
arbiter BRACKET (acquire before OpStart / release after OpStop / release on failure). Inline
runDirect / runQuadlet / stopUnmountIfRequested bodies DELETED (R5 grep clean). Folds in the shared
command-plugin `--help` fix (#52) at the sdk clidispatch root, wired across
alias/box/bundle/check/migrate/status/vm; the parseLeaf (done,err) integration also extends the
#52 discipline to `charly box inspect` (R2, an interaction with #102 already on main).

shell / logs-follow / cmd stay M-core rows (F12/#62 — can't ride Invoke-and-reply); restart is
thin-core (K5) — named exits, not incomplete seams.

Depends on sdk v0.2026195.204 (opencharly/sdk#43, merged 529df36) — the clidispatch primitive +
#PodLifecyclePlan/#PodExecReply carriers; the sdk gitlink + charly/go.mod require are finalized to
that merged commit here (B2). go.sum completed for the kong v1.15.0 bump (validator fix round).

Validated (fresh worktree, merged sdk gitlink): workspace go build/vet/test + golangci-lint 0 +
gofmt clean; charly module GOWORK=off go mod verify = all modules verified; `charly box validate`
clean; pluginsgen + cue:gen reproducible. Runtime: the concurrent 6-bed disposable roster all
green through a fresh `charly update` (check-sidecar-pod ok:true with the new K4 check steps
service-status-output-present + sidecar-pod-restarted PASS; check-commands-local; the VM lanes
check-substrate/check-charly-vm/check-local-vm/check-k3s-vm all EXIT 0).

Assisted-by: Claude (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 15, 2026
… redesign marshal (#67)

feat(deploy)!: K5-Unit-1 Option A — clean kit of R-item, shrink seam, redesign marshal (#67)

The K5-Unit-1 cutover moves the deploy state-model body from `charly/` core into
`sdk/deploykit` (a kind-blind mechanism kit). The original move contaminated the
kind-blind kit with a deploy-kind-specific transform (`MarshalBundleNodeLegacy`)
and threaded FOUR core-coupled ops through the `DeployStateHost` seam. Option A
fixes that incomplete-seam violation.

SDK leg (sdk PR #55, merged 9ec6940, tag v0.2026196.1147):
- Removes `MarshalBundleNodeLegacy` from `sdk/deploykit` — the R-item that
  contaminated the kind-blind kit.
- Removes `MigrateDeployEntity` + `LatestSchemaVersion` +
  `AcquireDeployConfigLock` from the `StateHostMechanisms` seam.
- Collapses `LatestSchemaVersion` → `kit.LatestSchemaVersion()` directly;
  `AcquireDeployConfigLock` → `kit.AcquireFileLock(path+".lock", true)` directly.
- Redesigns `SaveBundleConfig` as a kind-blind shell taking a `marshalNode`
  callback (version-stamp + provides-marshal + write-temp-rename + fail-safe
  re-check).
- Shrinks the seam from 4 ops to 1 op (`LoadUnifiedBundleConfig` — K1-gated,
  dies when K1 relocates LoadUnified to loaderkit, task #31).

Super leg (this PR):
- Fuses `MarshalBundleNodeLegacy` + `migrateDeployEntity` into ONE clean
  canonical `marshalBundleNode` in `charly/deploy_nodeform.go`.
- Adds `saveBundleConfigNodeForm(dc)` — the ONE `charly/` helper (R3) supplying
  `marshalDeployNode` as the callback.
- Updates ~12 `charly/` `SaveBundleConfig` call sites →
  `saveBundleConfigNodeForm`.
- Registers ONLY `LoadUnifiedBundleConfig` in `deploy_state_host.go` init (1-op seam).
- Deletes `migrateDeployEntity` (dead after fusion — R5).
- Bumps the `sdk` gitlink to the merged Option A sdk commit `9ec6940` +
  `charly/go.mod` require `v0.2026196.1147`.

Net core-LOC NEGATIVE (494 insertions, 1027 deletions). IMPORT-PURITY preserved
(`deploy_nodeform.go` imports spec+yaml.v3 only; `deploy_state_host.go` uses the
pre-existing `deploykit` import directly — body-move exception). ZERO-ALIASES
preserved (the alias file shrank; no new `charly/*_aliases.go`). The marshal +
helper + ~12 deploy-lifecycle consumers live in `charly/` core until K4 moves
them to their plugin homes (plugin-bundle / plugin-deploy-pod / plugin-check) —
tracked K4-exit inventory (task #52), not permanent residue.

R10: 5 disposable beds CONCURRENTLY (check-sidecar-pod, check-charly-vm,
check-structkind, check-substrate, check-group) — all exit 0, zero warnings,
fresh-rebuild (`update` step) on each. The changed deploy state-model paths
executed live on every bed's deploy-add → config → update route. Delta re-gate
after merging main (#123): go build/vet/gofmt/test/lint all clean, file overlap
EMPTY.

Assisted-by: Claude GLM 5.2 Cloud (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 16, 2026
T-46's content: candy/plugin-loader gains WalkProject; charly/loader_threaded.go
+ plugin_inproc.go rewired to the new plugin-served seam; charly/materialize.go
added; charly/loader_driver.go deleted (folded into the plugin). This is the
final wave-1 member per the queue.

Conflicts resolved per instruction, both resolved toward T-46's side (the
newest merged content in both cases):
- charly/go.mod: sdk require bumped v0.2026197.720 -> v0.2026197.738
  (T-46's version supersedes P8b's).
- sdk gitlink: resolved to 496e9a2 (sdk main tip, tag v0.2026197.738) --
  verified a strict descendant of this branch's prior pin (3b92a2d) via
  `git merge-base --is-ancestor`, and confirmed on sdk's own main via
  `git branch -r --contains`.

No other file overlap occurred (the loader files are T-46's alone; P8b
touched vm files; #52 touched aliases) -- matches the prediction exactly.

Verified before committing: `task build:binary` clean; `go test ./charly/...`
(103s) + `go test ./candy/plugin-loader/...` + `go test ./candy/plugin-vm/...`
all pass; `golangci-lint run` 0 issues on charly, plugin-loader, plugin-vm;
`./bin/charly box validate` exit 0; sdk standalone
(`GOWORK=off go mod verify && go build ./... && go test ./...`) all green;
R5 grep self-test for the deleted `loader_driver` identifier returns zero
live hits.

Assisted-by: Claude (analysed on a live system)
atrawog added a commit that referenced this pull request Jul 16, 2026
Consolidated landing record for the wave-1 super PR (#52 alias dissolution,
#55 teardown robustness, #46 loader-residue fold, P8b Tier-1 VM disk-build
engine move, gitlink bumps) — the fresh pr-validator's independent
verification, the 7/7 R10 roster (including the 3 structural-kind beds
closing a cross-cutting-loader bed-coverage gap), and the tracked-inventory
disposition for the 2 new charly/-core sdk-mechanism-kit imports.

Assisted-by: Claude (fully tested and validated)
atrawog added a commit that referenced this pull request Jul 16, 2026
…bustness, VM disk-build engine → plugin-vm, loader-residue fold

Consolidated wave-1 landing: alias dissolution + teardown robustness + VM
disk-build engine relocation + loader-residue fold + gitlink bumps.

Members: #52 (alias dissolution), #55 (bed teardown robustness), P8b Tier-1
(VM disk-build engine → candy/plugin-vm), #46 (loader-residue fold), plugins/
pkg-fedora gitlink bumps, and a roster-surfaced R9 fix (rsync in
eval-host-vm's cloud_init packages).

Deleted (fully superseded, public-surface removal):
- charly/loader_driver.go (whole file — the sole charly-core sdk/loaderkit
  importer; the WALK now reaches sdk/loaderkit exclusively through
  candy/plugin-loader's typed spec.ProjectWalker seam)
- charly/vm_build.go, vm_bootstrap.go, vm_cloud_image.go, vm_disk_builder.go,
  vm_bootc_install.go (the VM disk-build ENGINE, relocated to
  candy/plugin-vm as vm_build.go/vm_bootc_engine.go/vm_bootstrap_engine.go/
  vm_cloud_image.go/vm_disk_layout.go/vm_privileged_runner.go)
- charly/filelock.go's acquireVmBuildLock (sole caller moved plugin-side)
- charly/debootstrap_test.go's TestBaseBootstrapPackages_{DebootstrapDispatch,
  PacstrapStillWorks,NilDistro} + baseBootstrapPackages (moved to
  candy/plugin-vm/vm_bootstrap_engine_test.go with the function they test)
- 51 dead + 55 test-only-rewired alias bindings across 14
  charly/*_aliases.go files (full 106-symbol list: CHANGELOG/2026.197.0615.md)

R10: 7/7 disposable-bed roster PASS (check-commands-local, check-sidecar-pod,
check-charly-vm, check-local-vm, check-group, check-structkind,
check-substrate — the last 3 run by the fresh pr-validator to close a
cross-cutting-loader bed-coverage gap the original 4-bed roster missed).
Architecture gate: placement CORRECT: charly/*.go non-test net -1000 LOC,
candy/plugin-vm net +1059 LOC; the 2 new charly-core sdk-kit imports both
qualify as tracked residual-call-site inventory (task #13's wave).

Full narrative + evidence: CHANGELOG/2026.196.1800.md, 2026.197.0601.md,
2026.197.0615.md, 2026.197.0700.md, 2026.197.1051.md.

Assisted-by: Claude (fully tested and validated)
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