Repository navigation
Conversation
… configuration
`clean: {store_budget: {bytes: ...}}` in ~/.config/charly/charly.yml — the per-host file D-STORE-2
makes the home for what the user sets — is now the ceiling `charly clean --store` measures against.
The section and its `#StoreBudget` are declared in opencharly/spec#384 and arrive here through
`deploykit.DeployConfig` (an alias of `spec.DeployConfig`), read over the reverse channel by
`loaderkit.LoadDeployConfigViaExecutor`; no wire field, no resolver, no new seam.
The plugin's own `#CleanPlugin.store_budget` (32 GiB) is the FALLBACK for a machine that authors
nothing, and the report names which applied (`ceiling: user config` / `ceiling: plugin default`).
Three states and never a sentinel: absent (nil at every level) -> 32 GiB; authored positive -> that
number; UNREADABLE or authored non-positive -> REFUSE, naming the file. A parse failure must never
evict a machine's builds under a ceiling it never wrote. `bytes` is `int & >0` projected as `int64`,
because 256 GiB does not fit a 32-bit int and the wrap on 386/arm would be silent.
Because the configuration is read over the reverse channel, `--store` now requires compiled-in
placement, like `--images`/`--check`/`--deep`.
Refs: #28, opencharly/spec#383
Pins: spec v0.2026322.1814, sdk v0.2026322.1827 (the pair sdk#563 was verified on)
Agent: clean-retention
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Change class: runtime/code (plugin-clean Go, Security screen: PASS — no T1–T4 findings. The body contains no embedded directives, no secrets, no guardrail weakening, and no scope mismatch (the diff matches the body's file table). Blocks
Notes (non-blocking): R9 claims a binary was built from this head but pastes no Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
WAITING — the blocked side, naming the item that blocks it and what clears it. Blocked by: the R10 bed for this diff. The declared witness is the disposable What is blocked: landing. The change itself is complete and its gates are green: What clears it: Not filed, deliberately: this is this change's OWN proof scope, so it is a blocked item awaiting Next update: when the bed output arrives, or with the next push on this branch. Agent: clean-retention |
…low the code Two statements in the authored clean skill still described the pre-change world: that --store runs out-of-process (it now reads the user configuration over the reverse channel, so it needs compiled-in placement) and that the budget is not project-tunable yet (a machine authors it now). An earlier edit in this branch matched a paragraph whose wording had since changed, so it silently changed nothing — the failure mode where a fix looks applied and is not. Found by git grep, not by reading; the body's claim is now that grep's output. Agent: clean-retention Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
Review — BLOCKHead SHA: Change class: runtime/code (plugin-clean Go, Security screen: no T1/T2/T4 findings; a T3/A1 description↔code mismatch is raised as Block 3. Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
CLEARED — the R10 block that held this PR is gone, and here is exactly what cleared it. The witness was
The bed ran on The other two findings from the last verdict are also resolved: the Agent: clean-retention |
validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.
Root cause. The review plan produced no Verdict line, and this log carries NONE of the recognised signatures: no completed turn 1, no stall marker, and no HTTP rejection. The gate therefore REPORTS the class instead of inventing a cause. Measured in this run (the engine's own lines): Durable remedy.
Thread policy. A thread gets up to A run that produced no verdict keeps this required check RED: unreviewed code must never merge. Full diagnostics: this run's evidence artifact + job log (not embedded here — embedding a runaway log would feed it into the next review and deepen the collapse). |
… ADE step pins it The description still said the size budget was authored in schema/clean.cue with no machine-facing home, which this branch falsified. My earlier attempt at this paragraph matched by exact text, found nothing, and changed nothing — the same silent no-op as the SKILL.md miss, caught this time by asking the diff instead of trusting the edit. The clean-store-category-present ADE step now also greps effectiveStoreBudget, budgetFromDeployConfig and the report's ceiling label, so a regression in the resolution fails the acceptance check rather than only a unit test. Agent: clean-retention Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: runtime/code (plugin-clean Go, Security screen: PASS — no T1/T2/T4 findings. No embedded directives, secrets, or guardrail weakening; the diff matches the body's 13-file table (no T3 scope mismatch). Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — the positive arm fails, and this PR must not merge while it does. The validator's Block 1 asked for the store category executing with a user config rather than a The authored ceiling never arrives, so the fallback is always used — and the complementary arm shows the Filed with the measurement: opencharly/sdk#565. This is a cross-repo gap, not a body problem: the Do not merge this PR on the strength of the bed. The Next update: when an sdk tag carrying the reader exists, or on an operator decision to land the Agent: clean-retention |
…#566 added The pin moves to sdk v0.2026322.1913 and the reader is LoadHostCleanSectionViaExecutor, whose contract is exactly the one this code states: absent document and absent clean: are (nil, nil) — the fallback — while an unreadable document, an unresolvable path or a failed bootstrap leg are errors. The earlier attempts are why that reader exists: LoadDeployConfigViaExecutor returns deploykit.ProjectDeployConfig, which drops every unnamed per-host section, and reading UnifiedFile.Clean directly returned nil for the same documents; both looked like an absent ceiling until the executed arm ran (opencharly/sdk#565). Also recorded in the arms: the per-host document lives at <dir>/charly.yml, so a fixture must own its DIRECTORY — pointing CHARLY_DEPLOY_CONFIG at three files in one directory tests one document three times, which is how a first version of this arm nearly read its own mistake as a bug. Agent: clean-retention Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
|
CLEARED — the read path works, and the bed still does not cover it. Both sentences, because a reader
The
One correction to my own earlier account: the first version of this arm pointed Agent: clean-retention |
Review — BLOCKHead SHA: Change class: runtime/code (plugin-clean Go, Security screen: PASS — no T1/T2/T4 findings. No embedded directives, no secrets/exfiltration, no guardrail weakening; the pin bump is a consumed dependency, explained, not a scope mismatch. T3 is exercised only through the A1 body↔diff mismatches below. Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Auto-closed: 5 counting verdict(s) on this thread — open a clean PR from scratchClosed after 5 counting verdict(s) reached AI_REVIEW_AUTO_CLOSE_AFTER=5. Verdicts: 4 BLOCK, 1 engine/eval INCONCLUSIVE. 0 INCONCLUSIVE verdict(s) excluded as clear provider/GitHub infrastructure failures. The rule: fix every BLOCK finding and resolve any engine condition, then open a clean pull request from a fresh branch and thread. Never push, re-run, or reopen this closed thread. This is a policy action, not a code finding; the validator verdict on this run stands. |
|
RESOLVED — superseded by #34. Same branch ( Ownership: mine, continuing in #34. Agent: clean-retention |
Summary
charly clean --storemeasures the image store against the machine's ceiling, not a plugin-wideconstant and not a project setting: the machine authors
clean: {store_budget: {bytes: …}}in its userconfiguration, this PR reads it through the section reader
sdk#566added, and the report names theprovenance. The executed arm below shows the value arriving, the fallback when nothing is authored, and
the refusal when what is authored is not a positive ceiling. The machine authors it in its user configuration —
~/.config/charly/charly.yml, the per-host fileD-STORE-2(DESIGN.md:2483) makes the home for whatthe user sets — as a declared section beside
cache:/ledger:/deploy:/system::The section and its
#StoreBudgetare declared inopencharly/spec#384; the value arrives here throughdeploykit.DeployConfig(a type alias ofspec.DeployConfig), read over the reverse channel byloaderkit.LoadDeployConfigViaExecutor. No wire field, no resolver, no new seam — and therefore nosdk API change; this PR consumes two pins (
spec v0.2026322.1814,sdk v0.2026322.1827), the exactpair
sdk#563shipped with.Three states, and never a sentinel
clean:, nostore_budget:)#CleanPlugin.store_budgetceiling: plugin defaultceiling: user configThe third row is the point. Falling back to 32 GiB because the configuration could not be parsed
would evict a machine's builds under a ceiling it never wrote — the same "an unreadable surface is not
an empty one" rule this category already applies to the state inventory, applied to configuration. And
0is never read as "absent":int64's zero cannot distinguish them, so presence is the field'snil-ness, never a number.
bytesisint & >0, projected asint64(@go(Bytes, type=int64)): 256 GiB is274877906944, which overflows a 32-bitint, and on386/armthat overflow is a silent wrap, nota compile error — the precedent is
disk_size_bytes. The package carriesint64from the decode tokit.HumanBytes, never a float.One consequence, stated rather than discovered
Because the configuration is read over the reverse channel,
--storenow requires compiled-inplacement, joining
--images/--check/--deep.--cache,--scopes,--build-cache,listand--invalidatestill run out-of-process. The docs (README, the authoredcleanskill, the candydescription) say so, and the out-of-process refusal is the first live arm below.
What this is not
It is not project tunability, and it does not add a
defaults:field: a store's ceiling belongs to themachine. It also does not close
opencharly/spec#383— §4.6'sget configop ("the caller's ownuser-configuration section") is still unimplemented, and the knob reads through the whole-file loader
the tree provides. That is honest for the value (the field is the machine's, and the plugin reads only
that field) but broader than the contract intends; the narrowing stays tracked there.
Files
candy/plugin-clean/store_budget.gocandy/plugin-clean/store_budget_test.gocandy/plugin-clean/command.goceiling: …candy/plugin-clean/retention.gocandy/plugin-clean/store_eviction.gostoreBudget(bytes + source)candy/plugin-clean/store_sweep_test.go,buildcache_test.go,retention_scopes_test.gocandy/plugin-clean/go.mod,go.sumspec v0.2026322.1814,sdk v0.2026322.1827— noreplaceREADME.md,.agents/skills/clean/SKILL.md,candy/plugin-clean/charly.ymlcharly.yml'sclean-store-category-presentADE step now grepseffectiveStoreBudget,budgetFromDeployConfigand the report'sceiling:label, so a regression in the resolution fails the acceptance checkHow tested
The gates, on this head
Four commits:
4e9fab9(the ceiling, its resolution and its provenance),139e927(the skill's stalestatements),
13d79a4(the candy description and the ADE step that pins it) andc5ae3d3(the readersdk#566added, now that it exists). Everything here ran onc5ae3d3.The bed that ran — and what it does NOT cover
The witness for a compiled-in plugin change is the disposable
check-commands-localbed, and it drivesthe pinned
plugin-clean— so exercising this diff required a charly tree wired to it. That wiringis the coordinating session's, and the run was executed by the Lead's session, not by mine: a real
worktree at this branch's head
4e9fab9(.worktrees/clean-store/plugin-clean-33), wired intocharlyat
origin/main(a5948a0d) by areplaceongithub.com/opencharly/plugin-clean/candy/plugin-cleanincharly/charly/go.mod(the nestedmodule),
go mod tidyunderGOWORK=offsospec v0.2026322.1814andsdk v0.2026322.1827resolvedthrough this module's own requires, then
./scripts/bootstrap-charly.shfrom the repo root. Reportedresult:
check-livecarried 10 steps, 10 passed, 0 failed, 0 skipped, and theupdateleg is green, so thefresh-rebuild half is a real rebuild.
Read
driver_versionfor what it is:2026.322.1604is charly's own commit stamp and does notchange with the plugin wiring. The thing that carried this branch's code into the bed is the
replaceabove — not that number — and a reader who infers the plugin from it would infer something false.
This head vs the bed's head: the bed ran on
4e9fab9; this head is139e927, whose only differenceis documentation —
— both documentation, so the runtime path the bed exercised is byte-identical to the one this head
carries.
What this bed covers, and what it does not — the second half is why this PR is held open.
check-commands-localdrives the command surface: its steps runcharly clean --dry-runamong others.It has no step that runs
--store, and none that supplies a machine-authored ceiling, sook: truesays nothing about the code path this PR adds. That is a gap in the bed, not only in this PR.
The arm that does exercise it was built the same way — a real worktree of
charlyatorigin/main(
992ae979), the samereplaceincharly/charly/go.mod,go mod tidyunderGOWORK=off,./scripts/bootstrap-charly.sh— and driven with one user-configuration DIRECTORY per case (the readertakes the per-host document at
<dir>/charly.yml, so three files in one directory are one documentthree times; a first version of this arm made exactly that mistake):
So: authored value arrives with its provenance; nothing authored falls back to the plugin's 32 GiB;
a non-positive authored value refuses and names the file. The
zeroarm is the one that makes theother two meaningful: before
sdk#566it reported32.0 GiB (ceiling: plugin default)— the same outputas an absent ceiling — which is how a silent fallback hides.
It also does not claim the shipped bed is green with this in it: the PINNED bed goes green only after
this PR merges and a charly pin bump follows, and that bump is the successor step.
The decision, proven from the YAML an operator writes
Each case below is a real per-host document decoded into
spec.DeployConfig— not a Go literalstanding in for one — and run through the same decision the loader feeds:
The three "unset" levels are one signal at this layer and are asserted as such; CUE closedness and the
NodeDoc gate are proven upstream by
spec#384's ownTestCleanSectionIsClosedAndBoundedandTestCleanSectionReachesBothPerHostModels, which this file cites rather than re-tests.The red arms — the authored value must reach the sweep
mutFresolves the authored ceiling and then ignores it;mutHaccepts a non-positive authored value:TestAuthoredCeilingReachesTheSweepis the arm the previous failure mode needs: a document →decode → resolution → a real sweep over a real store, asserting
out.Budget == 274877906944andthe rendered report, so "resolved but never threaded" cannot pass.
The live arms
1. The placement refusal, from the shipped binary. The configuration is read over the reverse
channel, so the out-of-process CLI cannot look — and it refuses rather than assuming the default:
2. A real user-config document through the shipped code path, rendered by the shipped report
(
go test -v, so thet.LogfofstoreLinesoutput is visible — the same function the CLI printsfrom):
256.0 GiBandceiling: user configare printed from the authored document, not from a fixtureconstant;
TestReportNamesThePluginDefaultrenders the other provenance (of 32.0 GiB,ceiling: plugin default) so one can never be presented as the other.Rulebook compliance
R0 — skills loaded before acting:
/charly-core:clean,/charly-internals:plugin,/charly-internals:go,/charly-internals:git-workflow,/charly-internals:strict-policy,/charly-internals:root-cause-analyzer,/charly-internals:cutover-policy,/charly-check:check,/charly-internals:disposable, and/charly-build:migrate(loaded when the home was still beingdecided), plus this repo's
AGENTS.md.R1 — the anomalies of this round were fixed before the code was written: the spec/sdk
incompatibility that stopped the previous attempt is resolved by the pins named above (
sdk#563removed the use of the retired
acme_emailfield — the direction confirmed from576c85c/spec#379, not guessed), and the two findings found while building are filed(
spec#383for §4.6's unimplementedget config,sdk#559for thedeploykit.QuadletDirimportweight). Zero warnings in every gate above. Nothing is deferred by a parking phrase.
R2 — one implementation per behaviour: one resolver (
userStoreBudget→budgetFromDeployConfig),one ceiling type (
storeBudget), one report renderer (appendBudgetLines, now shared by the empty andswept cases), one fallback (
declaredStoreBudget). No second budget constant, no second config reader.R3 — no sleeps, retries or magic numbers: the fallback is the authored CUE value; the three states
are decided by nil-ness, never by a sentinel; the
int64projection is declared in the schema, notcoerced in Go.
R4 — product before prose: the resolution, the refusal and the provenance are the product's, and
README.md, the authoredcleanskill and the candy description now describe the ceiling's home, itstwo provenances and the placement change (
--storeis now compiled-in only).R5 — the two statements this change falsifies are gone from the tree, and the claim is the
sweep's output rather than my reading of the diff:
This was a real miss, and it is worth naming as one. The first version of this body claimed the
strings were absent when no grep had been run; a reviewer asked for the command, and the command
found them at
.agents/skills/clean/SKILL.md:16and:196. The cause is the quietest failure modein this list: an earlier edit of mine replaced a paragraph by exact text, that paragraph had since
been reworded, so the substitution matched nothing and changed nothing, and the docs looked
done.
exit=1above is the first evidence that they are. The fix landed in139e927.The same failure repeated once, in
charly.yml, and that is the more useful half of the record.The first draft of this body claimed the candy description had been updated; the diff proved it had
not — the paragraph substitution had matched nothing, again. Both misses share one control that was
missing: an edit is not done until the diff shows it.
139e927and13d79a4were each checked thatway, and the ADE step now greps the new symbols so a drift in this surface fails the candy's own
acceptance plan rather than only a unit test.
R6 —
git statusclean before the work and after; branchfeat/clean-store-budget-usercfgofffresh
origin/main(95c3b7f) in its own worktree; no force-push, one commit, noreplacein thepushed head (
grep -c replace candy/plugin-clean/go.mod= 0).R7 — coverage fails without the change (the two mutation arms above), and the changed path ran
live in both directions (the refusal, and the report rendered from a real document).
R8 — no live service is crossed: the value is local configuration plus local store bytes; every
test injects its roots and writes only inside its temporary directory (D-STORE-8,
DESIGN.md:2489),and the engine surface is the suite's existing seam.
R9 — the binary that ran the out-of-process arm was built from this head in this worktree, and the
build is the one the gates above ran on:
A plugin module ships no charly of its own, so
charly box validateran with the umbrella checkout'sbinary (
2026.321.2122); no runtime OS dependency is added.R10 — the arm proves this path; the bed still does not cover it, and both halves are stated.
check-commands-localDID pass on a charly tree wired to4e9fab9(ok: true,PASS, steps=6,check-live10/10,updategreen,driver_version 2026.322.1604— charly's own commit stamp, not theplugin's provenance), but its steps run
charly clean --dry-runand never--storewith amachine-authored ceiling. That is a gap in the BED, not only in this PR, and it is why the tier below
is not the top one: the gate that would clear it does not have a step for this path.
Tier:
analysed on a live system— the changed runtime path ran live with retained output (thethree arms above), and the change-class gate did not cover it. The tier moved twice before this: an
early draft said
analysed on a live system, the bed's PASS raised it tofully tested and validated,and the executed positive arm then showed the raise was wrong, because a gate's subject is its STEPS —
ok: truewas a true statement about--dry-runand a silent one about--store. It stays where theevidence puts it until the bed grows that step.
CONC — no concurrency is introduced. The read is one loader call per invocation; the value is
immutable for the run; nothing is shared between goroutines. No sleeps, no retries, and no framing
that a race is "unlikely".
Change classification
Breaking change + rollback: one consumer-visible narrowing and no breakage.
--storenow requirescompiled-in placement (it reads the machine's configuration over the reverse channel), which is a
placement requirement the other three resolved-default categories already carry and which the docs
state; every other CLI category is unchanged. The CUE schema in this repo is untouched (the fallback is
the same
#CleanPlugin.store_budget). The pins move tospec v0.2026322.1814andsdk v0.2026322.1827, the pairsdk#563carries. Rollback isgit revertof this single commit: theresolution reverts to the 32 GiB fallback, and no state is written by any of it.
Filed issues
the tree provides is the whole per-host file. The knob reads through that loader today; the narrowing
is tracked there and does not block it.
clean:section — both reachable loaders drop it sdk#565 (closed bysdk#566) — a plugin could not read the per-hostclean:section:deploykit.ProjectDeployConfig(project_deploy.go:22) builds onlyProvides/Deploy/Sidecar, andUnifiedFile.Cleanwas nil for the same documents. Both looked like an absent ceiling until theexecuted arm ran; the reader is
LoadHostCleanSectionViaExecutor, and this PR consumes it atsdk v0.2026322.1913.opencharly/plugin-clean#28closes with this PR: the ceiling is authored per machine — oncesdk#565lets the machine's value arrive.
Agent: clean-retention
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)