Skip to content

feat(clean): charly clean --deep — store-wide untagged-image purge (closes the podman-prune R4 gap) - #174

Merged
atrawog merged 6 commits into
mainfrom
feat/clean-deep
Jul 21, 2026
Merged

atrawog merged 6 commits into
mainfrom
feat/clean-deep

Conversation

@atrawog

@atrawog atrawog commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

The superproject/consumer leg of the charly clean --deep cutover: the
untagged-image store-purge verb, closing a CLI-only-mandate gap surfaced by
issue #173's investigation (host store at 3,552 images / 132.6GB / 97%
reclaimable — ~2,700 untagged multi-stage intermediates invisible to the
existing charly-labeled sweep). Producer leg MERGED: sdk#85 → 52e7a09
(v0.2026202.1944, the CUE-sourced clean wire). Docs leg (plugins) lands AFTER
this PR per docs-last ordering; this PR pins plugins at merged main beb2eda.

  • candy/plugin-clean/command.go: --deep flag (explicit-category gate —
    never fires on plain charly clean); pure unit-tested cleanCategories
    selection; report uses kit.HumanBytes with the "up to X (shared layers may
    reduce actual reclaim); pair with --invalidate" labeling (the R1-corrected
    estimate semantics).
  • charly/retention.go: dangling-sweep refactored into ONE shared engine
    (listDanglingImages stubbable var, pure selectDanglingImages,
    pruneDanglingImages(engine, onlyCharly, dryRun)) — the charly-labeled and
    store-wide sweeps are thin wrappers (R3), same InUse/live-build backstops.
  • ADE: plugin-clean description+plan updated; root charly.yml's
    check-commands-local bed gains the clean-deep-dry-run-runs check step.
  • sdk gitlink → 52e7a09 + go.mod require v0.2026202.1944.

Change class

charly-or-sdk Go — cross-repo consumer leg. Order: sdk#85 (MERGED) → this
PR
→ plugins docs PR (after).

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

  • The gate for this change class: the composing disposable bed + the live
    verb exercised BOTH destructively and dry-run on the real store + full Go
    battery.
  • Eval beds run: check-commands-local | local | ok | 6 steps | run-calver
    2026.202.1916 (includes the NEW clean-deep-dry-run-runs step) — binary built
    from this branch.
  • Fresh rebuild: per-worktree task build:binary at every stage (incl.
    post-repoint delta re-gate: build/vet + full go test ./charly/... green
    136.0s + charly box validate exit 0 + a fresh live dry-run on the merged
    sdk pin).
  • Did the CHANGED code path execute live? YES — the DESTRUCTIVE
    charly clean --deep ran on this host's real store (orchestrator-run, under
    the operator's standing outdated-image authorization, backstops verified via
    dry-run first): removed 68 untagged images, 3552→3484, 132.6GB→128GB. The
    dry-run path ran repeatedly incl. after the CUE conversion and after the
    repoint (identical output).
  • Concurrency: N/A — retention is single-process per invocation; no
    shared-state dispatch path changed.
$ charly clean --deep --dry-run     (this branch's binary, real store)
deep: would remove 46 untagged image(s) store-wide (up to 76.5 GiB reclaimable
— shared layers may reduce actual reclaim; pair with --invalidate for the
fullest reclaim)   EXIT=0

$ charly clean --deep               (destructive)
3552→3484 images, 132.6GB→128GB    EXIT_CODE=0

charly check run check-commands-local: PASS (steps=6)   EXIT_CODE=0
go test ./charly/... → ok 136.0s (full suite, post-repoint)

Attribution tier

fully tested and validated — the new verb executed live (destructive +
dry-run) on fresh rebuilds, plus the composing bed.

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: /charly-core:clean + go/plugin/strict-policy/cutover-policy/
    git-workflow loaded before work.
  • R1 RCA + zero warnings: the estimate-vs-actual discrepancy (92.6GiB
    predicted vs 4.6GB actual) RCA'd to shared-layer accounting and fixed
    in-cutover (labeling + pairing note across CLI/wire-doc/skills/CHANGELOG);
    battery and bed at zero warnings.
  • R2 no out-of-scope: unique-byte refcounting deliberately scoped out with
    a documented reason (no cheap per-layer refcount API); nothing parked
    silently.
  • R3 no duplication: the shared dangling-sweep engine (two thin wrappers).
  • R4 no workaround: this cutover ADDS the sanctioned replacement (podman image prune → charly clean --deep in the strict-policy table, landing in
    the docs leg).
  • R5 hard cutover + grep: additive verb; the sdk leg's deleted
    clean_wire.go swept there; no stale references here (grep clean).
  • R6 git safety: fast-forward pushes only; no destructive tree actions; the
    plugins-gitlink ordering fix landed as a new commit, no amend.
  • R7 runtime gate: the bed + live verb runs (not just go test).
  • R8 artifact invariants: N/A — no generation surface.
  • R9 binary == source + deps: rebuilt per stage; charly version matched;
    no new runtime OS deps.
  • R10 disposable + coverage: bed disposable: true; NEW coverage that
    fails without the change: the bed's clean-deep step + cleanCategories/dry-run
    unit tests.
  • RDD / ADE / SDD: RDD — necessity and estimate semantics proven on the
    LIVE store before landing. ADE — plugin-clean plan/description updated,
    charly box validate exit 0. SDD — the wire is CUE-sourced (sdk#85's
    round-2 conversion; TestGenReproducible green).
  • Hard cutover: ONE squash; no phases; no TODOs.
  • Kernel/plugin boundary law: the verb lives in candy/plugin-clean; core's
    only change is a behavior-preserving refactor of the existing retention file
    (tracked K-wave inventory, no new capability in core).
  • Disposable-only autonomy: the destructive store purge ran under the
    operator's standing authorization for outdated-image removal with
    InUse/live-build backstops.
  • Clean architecture + Go gates: gofmt/vet/full test/golangci-lint green on
    this head (isolated caches).
  • CHANGELOG: CHANGELOG/2026.202.1610.md staged (placeholder; finalize at
    merge; tag v<YYYY.DDD.HHMM>).

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

https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj

atrawog added 5 commits July 21, 2026 21:04
Closes a real CLI-only-interface gap (issue #173): this host's podman store
held 3,552 images / 132.6GB / ~97% reclaimable / ~2,700 untagged
intermediates, confounding build-corruption diagnosis and wasting the host.
The pre-existing default `charly clean` dangling sweep only ever removes
charly-labeled untagged images; a multi-stage build's intermediate stage
images are never labeled (WriteLabels stamps only the final stage), so they
accumulate invisibly to every existing category.

- candy/plugin-clean: new --deep flag (cleanCategories resolves --images/
  --check/--deep — --deep NEVER fires implicitly on a plain `charly clean`,
  R5 zero default-behavior change), reporting via the new kit.HumanBytes
  formatter.
- charly/retention.go: pruneDanglingCharlyImages refactored (no behavior
  change) into a shared selectDanglingImages/pruneDanglingImages engine;
  pruneDeepDanglingImages (--deep) and pruneDanglingCharlyImages (the
  default sweep) are both thin wrappers over it (R3).
- charly/host_build_retention.go: the "retention" HostBuild seam gains the
  Deep request/reply fields (sdk leg).
- ADE: plugin-clean's charly.yml description/plan + charly.yml's
  check-commands-local R10 bed (new clean-deep-dry-run-runs step) updated.

Purely additive (no public surface removed, no default-behavior change) --
not a breaking change.

Live `charly clean --deep --dry-run` on this host's real store: 56
untagged images / 92.6 GiB reclaimable (vs. 30 charly-labeled dangling
images the default sweep reports) -- confirming the gap this closes.
Full battery (build/vet/test/lint across sdk, charly, and plugin-clean
standalone; `charly box validate`; `task build:binary`) green; the
destructive purge + the check-commands-local R10 bed run as the
orchestrator's final gate. See CHANGELOG/2026.202.1610.md.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
Root cause (orchestrator's destructive R10 run, this host's real store):
--deep worked exactly as designed -- removed the untagged set (3,552 ->
3,484 images), exit 0, all InUse/live-build backstops intact -- but the
dry-run's "92.6 GiB reclaimable" wildly overstated the ~4.6 GiB (132.6 GB
-> 128 GB) actually freed. DeepBytes sums each removed image's reported
Size, which counts every layer it references; most of those layers are
SHARED with the ~3,400 remaining (largely stale-tagged) images, and
removal only frees layers held UNIQUELY. The verb's selection/removal
logic was never wrong -- only the presented figure was misleading.

Every place presenting DeepBytes now labels it "up to X (shared layers
may reduce actual reclaim)" and notes pairing --deep with --invalidate
for the fullest reclaim: the CLI report line, the --deep flag help text,
the check-commands-local bed's check description, plugin-clean's ADE
description, and this CHANGELOG (the paired sdk + plugins legs cover the
wire-type doc comment + the skill docs). Presentation-only fix -- no
functional/behavioral or wire-schema change; full battery (build/vet/test/
lint across sdk, charly, plugin-clean standalone; charly box validate;
task build:binary) re-run green, live --deep --dry-run re-verified with
the corrected wording.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; syntax check only)
sdk#85 round-1 pr-validator FAIL: (1) SDD zero-tolerance finding on
spec/clean_wire.go (a hand-written wire struct extended with new fields --
fixed in the sdk leg by converting to sdk/schema/clean.cue, zero consumer
change needed here), (2) an attribution-tier self-contradiction between the
sdk leg's CHANGELOG/commits (syntax check only) and its PR body (fully
tested and validated) -- the actual proof (this repo's destructive --deep
purge + check-commands-local bed, both already executed and independently
cross-checked by the fresh sdk validator) supports the higher tier.

This commit: repoints the sdk gitlink to the CUE-converted head and the
plugins gitlink to its matching go-skill fix (clean.cue now cited as
LANDED in the generation-coverage list, alongside a stale buildctx claim
on the same line corrected in the same sweep); reconciles this repo's own
CHANGELOG trailer to fully tested and validated, since it is the SAME
evidence chain the sdk leg cites.

Re-verified against the new sdk head: go build/vet/test ./charly/...
green (144.3s, full suite), task build:binary clean, charly box validate
exit 0, and a fresh `charly clean --deep --dry-run` against this host's
real store still exits 0 with the corrected wording -- proving the
CUE-generated wire types work end-to-end identically to the hand-written
ones they replace. No .go source in this repo changed.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
sdk#85 merged: main 52e7a09, tag v0.2026202.1944 (fresh validator round-2
PASS, incl. an independent live re-run of the --deep --dry-run proof).
feat/clean-deep is deleted upstream in sdk post-merge, so the branch-head
pin 0ecfe18 this repo previously carried is now unreachable -- repoint to
the merged main SHA.

charly/go.mod's github.com/opencharly/sdk require bumped to
v0.2026202.1944 (version-string edit only -- the in-tree
replace github.com/opencharly/sdk => ../sdk makes this cosmetic for local
resolution; go mod tidy deliberately NOT run, per the wave-1 ledger's
standing guidance that a full charly standalone tidy pollutes go.mod with
candy/plugin-* workspace-only pseudo-requires).

Delta re-gate against the merged head: task build:binary clean (no
go.work.sum drift), go build/vet ./charly/... clean, go test -count=1
./charly/... green (136.0s, full suite), charly box validate exit 0, and a
fresh live charly clean --deep --dry-run against this host's real store
exits 0 with the identical corrected wording -- the merged sdk head behaves
identically to the pre-merge branch head it replaces. No other source
changed.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
… leg lands AFTER this PR (docs-last ordering); its gitlink bump rides the next landing

Assisted-by: Claude Code (Anthropic Claude Fable 5; analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
@atrawog

atrawog commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly-or-sdk Go — cross-repo consumer leg (sdk producer merged first, plugins docs leg deliberately follows).

Head verified: 0455624ad8a83946440fc246576f75166861d6c6 (via git ls-remote, not the cached gh pr view value).

Checklist

# Item Verdict
0 Security & anti-tampering (T1–T4) PASS — no exfiltration, no scope mismatch (diff matches description exactly), no weakened guardrail, no supply-chain surprise, no attempt to manipulate the validator.
1 Description complete PASS — template fully filled: Summary, Change class, How R10-tested (exact gate + pasted output), Attribution tier, and every R0–R10 + RDD/ADE/SDD/hard-cutover/boundary-law/disposable/clean-arch/CHANGELOG rule answered with a HOW, not a bare tick.
2 Change-class gate matches evidence PASS — re-ran myself: go build/vet/test ./... (workspace mode, 149.6s green), task build:binary clean, charly box validate exit 0 (zero warnings), golangci-lint run 0 issues on both charly and candy/plugin-clean (isolated GOLANGCI_LINT_CACHE), gofmt -l empty everywhere. No dry-run-only fraud, no rebuild-without-invocation fraud — the live verb executed.
3 Attribution tier justified PASS — fully tested and validated earned: the changed code path (pruneDeepDanglingImages) executed live destructively on the real host (68 images removed, 3552→3484, matches the CURRENT store count I independently measured: 3484), plus the disposable check-commands-local bed's new clean-deep-dry-run-runs step passed on disk, plus my own fresh live re-run on the rebuilt HEAD binary reproduced the pattern (deep: would remove 46 untagged image(s) ... up to 76.5 GiB reclaimable, exit 0).
4 R0 skills honored PASS — /charly-core:clean, /charly-internals:git-workflow, /charly-internals:go, /charly-internals:strict-policy, /charly-internals:plugin all loaded and spot-checked; the shared-retention-engine-stays-core-because-multi-caller reasoning matches the clean skill's own documented architecture verbatim.
5 R1 RCA + zero warnings PASS — the estimate-vs-actual discrepancy (92.6 GiB predicted vs 4.6 GB actual freed) got a real RCA (shared-layer accounting) and a real fix (the "up to X" wording swept across CLI/wire-doc/plugin.yml/CHANGELOG in the same tree — I confirmed the wording is consistent everywhere in the diff). Zero warnings in every command I ran.
6 R2 no pre-existing/out-of-scope split PASS — the byte-estimate bug found mid-cutover was fixed in the same tree, not deferred.
7 R3 no duplication PASS — pruneDanglingCharlyImages and the new pruneDeepDanglingImages are both thin wrappers over one shared pruneDanglingImages(engine, onlyCharly, dryRun) engine; verified the refactor is behavior-preserving for the existing caller via TestPruneDanglingImages_CharlyOnly_DryRun and the full existing retention_test.go suite staying green.
8 R4 no ad-hoc workaround PASS — this is the charly clean implementation (the sanctioned interface), not a bypass of it; same live-build guard + unforced-rmi backstop as every pre-existing sweep, unchanged.
9 R5 hard cutover + grep PASS — additive verb, no deprecated path. sdk leg's clean_wire.go deletion is that repo's own already-merged R5 sweep (verified: sdk commit 52e7a09 deletes it, git grep in this repo shows no stale reference).
10 R6/R8/R9 PASS — R6 N/A (no destructive git ops beyond the normal commit history); R8 N/A (no OCI-label/Containerfile surface touched); R9 verified — rebuilt binary's CalVer (2026.202.1953) matches HEAD commit time, and strings confirms the new --deep help text is actually compiled in. No new runtime OS deps.
11 R10 disposable/fresh-rebuild/coverage PASS — bed evidence on disk (.check/check-commands-local/2026.202.1916/summary.yml, check-live.log) confirms 6/6 bed steps ok, 9/9 sub-checks PASS including clean-deep-dry-run-runs exit=0. New coverage that would fail without the change: TestCleanCategories, TestSelectDanglingImages, TestPruneDanglingImages_Deep_DryRun, TestPruneDanglingImages_CharlyOnly_DryRun, TestPruneDeepDanglingImages_LiveBuildGuard — all present and green. Bed-coverage note: the disposable bed run on disk predates this branch's final commit (it ran against an unmerged sdk pin, before the d3531c1/0455624 repoint to the merged sdk 52e7a09). This is transparently disclosed in the PR's own CHANGELOG. I independently closed this gap myself rather than taking the claim on faith: rebuilt the binary fresh from the true HEAD, confirmed TestGenReproducible passes with zero drift in the sdk submodule at the pinned commit (proving the CUE-generated wire types are byte-identical to what the bed exercised), reran the full go test ./.../vet/lint/box validate on HEAD, and reran the live --deep --dry-run myself against the freshly rebuilt HEAD binary — it reproduced cleanly (exit 0, correct deep: line shape). This composite is sufficient delta-regate evidence per the git-workflow skill's B1 procedure (mechanical gitlink repoint, proven-identical wire shape, no cutover logic changed by the repoint).
12 RDD/ADE/SDD PASS — RDD: the necessity (3552 images/132.6GB) and the byte-estimate correction were both proven live before landing. ADE: plan:/description: updated, charly box validate exit 0. SDD (zero-tolerance, re-verified myself, not taken on faith): the wire types are CUE-sourced (sdk/schema/clean.cue → #RetentionRequest/#RetentionReply, plain structs, no disjunction escape needed) — I read the sdk commit (52e7a09) diff directly: the hand-written spec/clean_wire.go was deleted and spec/cue_types_gen.go gained the byte-equivalent generated struct. I ran task cue:gen myself inside the pinned sdk submodule commit: zero drift (git status clean), and TestGenReproducible passed. No new @go(-)/hand-written schema type introduced in either repo.
13 Concurrency mandate N/A — reasoned, not rubber-stamped: this change reuses the EXACT same guard (liveBuildFloor() check + unforced rmi backstop) already proven by the pre-existing charly-labeled sweep; it only widens the selection predicate (selectDanglingImages(imgs, onlyCharly)), not the concurrency-safety mechanism itself. No new shared-state dispatch path, no new build-engine interaction. charly clean --deep is also a manually-invoked CLI verb, never auto-triggered concurrently with a build.
14 Hard cutover — one atomic commit PASS (post-squash) — 5 review-round commits on feat/clean-deep will fold into ONE main commit at squash-merge, per policy. No Phase-2/TODO left; the byte-estimate fix landed in-tree, not deferred.
15 Architecture gate — placement PASS. placement: CORRECT. Per-item trace for the two staged charly/*.go files:
• charly/retention.go — MODIFIED (not new/moved). No new/grown alias file. No new kit import (pre-existing sdk/kit import unchanged). Boundary-law: R-item, already-tracked K3 migration-inventory residue — the shared multi-caller retention engine (consumed by charly box build, charly check run, charly box list tags) gains one same-shape sibling function (pruneDeepDanglingImages) via a refactor that reduces duplication (R3), not a new capability class. No *Legacy*-named identifier introduced.
• charly/host_build_retention.go — MODIFIED (not new/moved). No new alias, no new kit import. Boundary-law: M — the pre-existing generic "retention" HostBuild seam (a class-generic action noun, F11-compliant, not a provider word) gains one more request field routed identically to the existing Images/Check fields; no new seam, no new provider-word leak.
16 Disposable-only autonomy PASS (reasoned) — the destructive action is charly clean's own designed, backstop-protected operational purpose (never removes an in-use/referenced image; unforced rmi refuses anything still needed) — not a "destroy a deploy target" in the Disposable-Only Autonomy sense (VM/pod/container). It is host build-artifact housekeeping, the exact feature class this command already safely performs today.
17 Clean architecture + Go gates PASS — re-ran myself, all clean: gofmt -l (charly + plugin-clean), go vet ./... (workspace mode), golangci-lint run 0 issues (isolated cache per worktree), go test ./... green (149.6s + plugin-clean standalone).
18 CHANGELOG present PASS — CHANGELOG/2026.202.1610.md filename matches ^\d{4}\.\d{3}\.\d{4}\.md$, H1 heading byte-equal (# 2026.202.1610 — charly clean --deep: ...), placeholder CalVer collides with neither an existing CHANGELOG/*.md nor a v* tag on main (verified).

Comments considered

none (PR carried zero comments).

Cross-PR interactions considered

One other open PR in opencharly/charly: #118 (feat/p16-kernel-manifest-gate, the RED kernel-manifest floor-gate tracker, "merges LAST"). Checked its file list (CHANGELOG/2026.195.0000.md, charly/kernel_manifest_floor_test.go) against this PR's touched files (charly/retention.go, charly/host_build_retention.go, candy/plugin-clean/*, charly.yml, charly/go.mod, sdk) — zero overlap. #118's floor gate is a file-set allowlist; this PR adds no new charly/*.go file and moves nothing, so it cannot perturb #118's tracked residue/fabric tables. Disposition: none-found. No other open PRs in opencharly/sdk or opencharly/plugins.

Decision

PASS. Every rule verified independently — not from the author's word: rebuilt the binary from the true HEAD, re-ran the full Go battery (build/vet/test/lint/gofmt) clean at zero warnings, cross-checked the disposable bed evidence on disk against the actual summary.yml/check-live.log, closed the one real gap I found myself (the bed run predated the final sdk-gitlink repoint) by independently proving byte-identical wire-type regeneration (TestGenReproducible) plus my own fresh live reproduction of the --deep --dry-run evidence on the rebuilt HEAD binary, and traced every core-file placement against the kernel/plugin boundary law. No security or scope-mismatch concerns. No forbidden-framing dodges anywhere in the PR body or CHANGELOG — the byte-estimate bug it surfaced mid-cutover was root-caused and fixed in-tree, not waved away.

Proceeding to Phase 3: finalize the merge-time CalVer, merge, and tag.

Assisted-by: Claude Code (Anthropic Claude Opus 4.5; fully tested and validated)

pr-validator: rename the CHANGELOG placeholder to the merge-time CalVer
(generated at merge, per policy — author-time stamps collide/mis-order
across concurrent PRs).

Assisted-by: Claude Code (Anthropic Claude Opus 4.5; fully tested and validated)
@atrawog
atrawog merged commit ed487ff into main Jul 21, 2026
@atrawog
atrawog deleted the feat/clean-deep branch July 21, 2026 20:08
atrawog added a commit that referenced this pull request Aug 15, 2026
Both were true-sounding facts about shared mutable state, asserted without the
identifiers that would have made them falsifiable.

1. "main is drift-red" — FALSE, and it was never true. main pins plugins at
   396e4bfe, and aa80ca9f (#174) is NOT an ancestor of it, so the gitlink
   predates #174: main's candy sources are pre-sweep AND its pinned plugins
   tree is pre-#174, two halves of one older state, which is what a clean drift
   check reports. The eight-artifact red only appears in a checkout with
   plugins/ ahead of the gitlink and candy sources not yet swept — an ordinary
   working tree, never a committed state of main.

   Recorded as a rule, because the mechanism generalises: `charly marketplace
   drift` and `charly docs drift` answer a question about the CHECKOUT they ran
   in — candy sources on disk versus the submodule tree on disk — not about any
   commit. A submodule checkout floats independently of its gitlink, so "the
   gate is red on main" means nothing until main's exact tree is reconstructed
   (superproject commit plus each submodule at its PINNED sha).

   The urgency framing this produced is removed from the entry and the PR body:
   the generated half was pending at the plugins tip, which is a queue, not a
   breakage.

2. "both gitlinks are their submodule's current tip" — half false, and already
   false when written. docs ee3d162e was the tip; plugins aa80ca9f was not —
   4458a400 (#176) had merged minutes earlier, and ab1f93d3 has landed since.
   The pin is a strict ancestor of the tip, so the FORWARD MOVE claim (the one
   that matters for correctness) stands unchanged; only the word "tip" was
   wrong. Restated as "descendant of what main carries", which does not decay.

Both corrections applied to the CHANGELOG and the PR body, and the whole entry
re-swept for sentences leaning on the removed premise rather than only the two
quoted in review. That re-sweep caught a third, smaller instance: this
correction's own cross-reference said "see below" for a section that sits above
it. Now cited by heading, per the same rule.

CHANGELOG-only; no code, config, gitlink or DOCS_REF change, so the bed run and
every gate figure in the entry stand unchanged.

Assisted-by: Claude Code Anthropic Claude Opus 5 (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
atrawog added a commit that referenced this pull request Aug 15, 2026
An earlier revision of this entry — written at my own request for a disclosure —
stated that landing the projections leaves main drift-red until this PR carries
their source. That is FALSE and it stated it about main, in an artifact of
record.

Verified mechanism: marketplace drift compares candy sources against the plugins
tree AT THE SUBMODULE CHECKOUT, and main pins plugins at 396e4bfe, which is not
a descendant of either #174 (aa80ca9f) or #176 (4458a40). Main's source and its
pinned tree are both pre-projection, so the gate is green on it, and landing a
projection does not move a superproject gitlink.

The true statement: the gap is PENDING AT THE PLUGINS TIP and materializes only
when a superproject leg bumps the gitlink past those commits — the leg that
advances the pointer owns carrying the matching source. The red state is
reproducible only in a working tree whose plugins/ is fetched past the gitlink,
which is not main.

Both traps are kept because both are correct and independently useful: a drift
result is a fact about a CHECKOUT (measuring main means reconstructing main's
tree with submodules at their gitlink, not their own origin/main), and the
'clean (N artifacts)' line prints only on the clean path so its absence is not
evidence.

Assisted-by: Claude Code Anthropic Claude Opus 5 (documentation reviewed)
Claude-Session: https://claude.ai/code/session_01Rt9KMZF6v3x1iL24M74dN2
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