Skip to content

feat(clean): declare the per-host clean: section and its store budget - #384

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/clean-store-budget
Nov 18, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/clean-store-budget

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

D-STORE-7 bounds a named store "within a size budget", and today that ceiling is a plugin
constant nobody can tune. It is a property of the machine that holds the store, so it belongs
in the per-host configuration (~/.config/charly/charly.yml) — DESIGN.md:2483 D-STORE-2: the
user configuration holds "each plugin's own section — under its own schema" — and not in a
project's defaults: block, which is shared while a host's disk is not.

This change declares that section in the contract, which is what makes it authorable at all: the
per-host document is a CLOSED schema, so an undeclared top-level key is a load error and an
undeclared key inside a declared section would be accepted and silently ignored. Both halves are
now typed.

  • schema/clean.cue gains #CleanSection (carrying store_budget?: #StoreBudget) and
    #StoreBudget (carrying bytes: int & >0 @go(Bytes, type=int64)). The file already owns the
    word clean — the retention verb's wire types — and now owns the per-host section of the same
    surface too, which its header states.
  • int64, deliberately. A budget is a byte count and the value this exists for — 256 GiB =
    274877906944 — does not fit a 32-bit int, so a bare int would wrap silently on the 386
    and arm cross-compile targets. The schema's own precedent is distro.cue's
    disk_size_bytes: int @go(DiskSizeBytes,type=int64).
  • #NodeDoc recognizes the section as a document directive, so an authored clean: block is
    never mis-read as a node named clean; the generated DocDirectives list gains the word as a
    consequence. It is TYPED there where its older siblings are _: the requirement is that an
    undeclared key inside the section is a load error, and _ would accept a typo and let the
    retention plugin fall back to its default in silence. The siblings are untouched.
  • spec.DeployConfig and spec.UnifiedFile carry Clean *CleanSection — the two hand-created
    per-host structs that already carry cache:, ledger: and system:. DeployConfig is not
    CUE-generated (it is spec/spec/deploy_config.go), so the field is declared there; deploykit's
    DeployConfig is an alias of it, which is why the sdk needs only a pin bump later.
  • NO default anywhere. An absent section stays absent (nil), so the 32 GiB fallback lives
    once, in the plugin that enforces it. A CUE default would put the number in two places.

No wire field: #RetentionRequest is unchanged — no peer runs the store category — so the budget
is resolved where the config is read, which is what schema/clean.cue's own header already says
about the retention engine.

Related, not filed here: opencharly/plugin-clean#28 carries the requirement (whose mechanism this
corrects from a project defaults: field to the per-host section), and #383 tracks
delivering a plugin its own section through the host service — this change declares the section
that reader will read.

Head 5b503527d2e35ab01ccef89d145ec95579bb69a7 (7 files changed, 211 insertions(+)).

How tested

The repo's authoritative gate is .github/workflows/ci.yml (build, test, gofmt,
golangci-lint). Every command ran in
/home/atrawog/Sync/Atrapub/a/dsh/opencharly/.worktrees/store-budget/spec under
GOWORK=off GOTOOLCHAIN=go1.26.8 GOTMPDIR=~/.cache/go-tmp TMPDIR=/tmp/cs.

The regeneration is reproducible — a clean run is a NO-OP. The generated files are hashed, the
generator re-run, and the hashes re-checked:

$ sha1sum spec/cue_types_gen.go spec/vocab_gen.go > /tmp/cs/head3.sha
$ /home/atrawog/Sync/Atrapub/a/dsh/opencharly/charly/bin/charly task cue-gen; echo "cue-gen exit=$?"
task bootstrap-protoc: 1 step(s), 0 failed, 0 skipped
  [pass] run — download and pin protoc + the two Go codegen plugins
      exit=0
task wire-gen: 1 step(s), 0 failed, 0 skipped
  [pass] run — render the proto IDL from CUE and compile the Go stubs
      exit=0
task cue-gen: 2 step(s), 0 failed, 0 skipped
  [pass] run — generate the Go params in-process + schemagen the vocab lists
      exit=0
  [pass] check — regen is reproducible — TestGenReproducible passes on the committed tree
      exit=0
cue-gen exit=0
spec/cue_types_gen.go: OK
spec/vocab_gen.go: OK

The gate steps:

$ GOWORK=off GOTOOLCHAIN=go1.26.8 GOTMPDIR=$HOME/.cache/go-tmp TMPDIR=/tmp/cs go build ./...; echo "exit=$?"
exit=0
$ GOWORK=off GOTOOLCHAIN=go1.26.8 GOTMPDIR=$HOME/.cache/go-tmp TMPDIR=/tmp/cs go test ./... -count=1; echo "exit=$?"
ok  	github.com/opencharly/spec	0.012s
ok  	github.com/opencharly/spec/cache	0.220s
ok  	github.com/opencharly/spec/calver	0.004s
?   	github.com/opencharly/spec/capability	[no test files]
?   	github.com/opencharly/spec/checkhost	[no test files]
ok  	github.com/opencharly/spec/checkstep	0.004s
ok  	github.com/opencharly/spec/climodel	0.119s
?   	github.com/opencharly/spec/clireflect	[no test files]
ok  	github.com/opencharly/spec/container	0.724s
ok  	github.com/opencharly/spec/cuetoolchain	1.352s
ok  	github.com/opencharly/spec/deploy	0.010s
ok  	github.com/opencharly/spec/exec	7.937s
ok  	github.com/opencharly/spec/exitcode	0.004s
ok  	github.com/opencharly/spec/hostenv	0.011s
?   	github.com/opencharly/spec/http	[no test files]
?   	github.com/opencharly/spec/internal/cuesetup	[no test files]
?   	github.com/opencharly/spec/internal/schemagen	[no test files]
ok  	github.com/opencharly/spec/internal/wiregen	0.049s
?   	github.com/opencharly/spec/loader	[no test files]
ok  	github.com/opencharly/spec/lock	1.044s
ok  	github.com/opencharly/spec/matchers	0.007s
ok  	github.com/opencharly/spec/merge	0.004s
ok  	github.com/opencharly/spec/needsolver	0.001s
ok  	github.com/opencharly/spec/ops	0.007s
ok  	github.com/opencharly/spec/phase	0.003s
ok  	github.com/opencharly/spec/poll	0.246s
ok  	github.com/opencharly/spec/proc	0.467s
ok  	github.com/opencharly/spec/proto	0.476s
ok  	github.com/opencharly/spec/refs	16.235s
ok  	github.com/opencharly/spec/report	0.008s
ok  	github.com/opencharly/spec/retired	0.171s
?   	github.com/opencharly/spec/retired/cmd/retired-sweep	[no test files]
ok  	github.com/opencharly/spec/schema	8.674s
ok  	github.com/opencharly/spec/schemacompose	0.234s
ok  	github.com/opencharly/spec/schemaconcat	0.002s
ok  	github.com/opencharly/spec/schemaparams	0.175s
ok  	github.com/opencharly/spec/schemaretag	0.002s
?   	github.com/opencharly/spec/shellquote	[no test files]
ok  	github.com/opencharly/spec/spec	1.033s
?   	github.com/opencharly/spec/sshx	[no test files]
ok  	github.com/opencharly/spec/storeroot	0.002s
?   	github.com/opencharly/spec/testkit	[no test files]
ok  	github.com/opencharly/spec/transport	0.151s
exit=0
$ test -z "$(gofmt -l .)"; echo "exit=$?"
exit=0
$ golangci-lint run ./...; echo "exit=$?"
0 issues.
exit=0
$ go vet ./...; echo "exit=$?"
exit=0
$ git rev-parse HEAD
5b503527d2e35ab01ccef89d145ec95579bb69a7
$ git diff --shortstat $(git merge-base origin/main HEAD)..HEAD
 7 files changed, 211 insertions(+)

The requirement's own failure mode, before and after. DocDirectives is the reserved
top-level list the loader uses to tell a directive from a node — it is generated from #NodeDoc,
so its contents are the proof that the key was unrecognized before this change:

$ git show origin/main:spec/vocab_gen.go | grep -c '"clean"'
0
$ grep -c '"clean"' spec/vocab_gen.go
1

The new gate tests, on this head. They compile the SHIPPED schema through schemaconcat (the
same concatenation the runtime gate runs) and unify a document against #NodeDoc, then decode the
same document into both per-host structs:

$ go test ./spec/ -run 'TestCleanSection' -count=1 -v; echo "exit=$?"
=== RUN   TestCleanSectionPassesTheNodeDocGate
--- PASS: TestCleanSectionPassesTheNodeDocGate (0.02s)
=== RUN   TestCleanSectionIsClosedAndBounded
=== RUN   TestCleanSectionIsClosedAndBounded/undeclared_key_in_the_section
=== RUN   TestCleanSectionIsClosedAndBounded/zero_budget
=== RUN   TestCleanSectionIsClosedAndBounded/negative_budget
--- PASS: TestCleanSectionIsClosedAndBounded (0.02s)
    --- PASS: TestCleanSectionIsClosedAndBounded/undeclared_key_in_the_section (0.00s)
    --- PASS: TestCleanSectionIsClosedAndBounded/zero_budget (0.00s)
    --- PASS: TestCleanSectionIsClosedAndBounded/negative_budget (0.00s)
=== RUN   TestCleanSectionReachesBothPerHostModels
--- PASS: TestCleanSectionReachesBothPerHostModels (0.00s)
PASS
ok  	github.com/opencharly/spec/spec	0.053s

The three arms that matter: the authored block passes the closed gate; an undeclared key
inside the section, a zero budget and a negative budget are all rejected (the closedness
the requirement is stated in terms of, and the int & >0 bound); and an absent section decodes
to nil rather than to a default.

No default survives anywhere (R5): the field carries no CUE default marker, and the
predicate's calibration is shown beside its no-hit half:

$ grep -n "bytes:" schema/clean.cue
49:	bytes: int & >0 @go(Bytes, type=int64)
$ grep -nE "\*[0-9]" schema/clean.cue; echo "cue-default-marker exit=$?"
cue-default-marker exit=1
$ git grep -n --untracked -c "StoreBudget" -- 'schema/clean.cue'; echo "calibration exit=$?"
schema/clean.cue:3
calibration exit=0

Rulebook compliance

  • R0 — the skills the dispatcher selects were loaded before the first tool call (go, plugin, git-workflow, strict-policy, cutover-policy, check), and this repo's AGENTS.md (including its "DESIGN.md is the contract this module projects" section) was read before the schema was touched.
  • R1 — every anomaly had an RCA and was fixed: the test's first draft called a schemaconcat.Concat that does not exist, diagnosed from the tree (ConcatSchema(schema.FS, ".", nil) is the ONE concatenation) and corrected; a doc comment I had drafted cited an issue number I had not verified and was DELETED before the commit rather than shipped. No finding is unfixed and none is parked.
  • R2 — one shape per concept: the store ceiling is #StoreBudget, referenced by #CleanSection, which is the single section def; bytes is the single byte field. Neither the section nor the budget is re-declared in Go — both types are generated.
  • R3 — nothing hand-rolled: the schema is CUE, the Go is generated by the repo's own cue-gen task, and the regen is proven a no-op rather than assumed. No default was introduced to make a path work.
  • R4 — the product is the schema, and the prose followed it: the clean.cue header states what the file now owns, and the two per-host structs' comments point at schema/clean.cue #CleanSection the way cache:/ledger:/system: do.
  • R5 — no legacy and no second source of the number: the 32 GiB fallback is NOT in the contract (the no-default fence above), and nothing was left behind — the change adds a section that did not exist rather than replacing one.
  • R6 — git status --short was empty before the commit and after the gates; the only paths touched are this worktree's own; no history was rewritten and nothing is force-pushed.
  • R7 — coverage fails without the change: TestCleanSectionIsClosedAndBounded rejects the three shapes the gate would silently accept under _, and DocDirectives' 0→1 shows the recognition is the change's own effect. The emitted artifact is checked at its boundary — the generated cue_types_gen.go is what the structs use, and the decode arms read the values back.
  • R8 — no live service is involved: this is a schema and its generated types, with no boundary crossing.
  • R9 — no binary is built or deployed by this change and no runtime OS dependency is added.
  • R10 — the gate that owns this change class is this repo's ci.yml, and every step of it ran on the committed head with exit 0 (build, test, gofmt, golangci-lint v2.13.2 under GOTOOLCHAIN=go1.26.8), as pasted above; the cue-gen reproducibility check (TestGenReproducible) is part of that run.
  • HC — one coherent scope: the section, its closed gate entry, both per-host structs and the regenerated types in ONE change, with no shim and no follow-up inside this repo. The reader leg (plugin-clean) is another repository and consumes a tag, which is the producer-first order.

DESIGN.md, cited by line:

  • DESIGN.md:2483 D-STORE-2 — the user configuration holds "each plugin's own section — under its own schema"; clean: is that section for the retention surface, and it is CLOSED and typed here, not an open map. (#UserConfig as a Go type does not exist yet — host service: §4.6 promises a plugin its OWN user-config section; the only reader is the whole per-host file #383 — so the section is declared on the per-host document and on the two structs that model it.)
  • DESIGN.md:2488 D-STORE-7 — "charly clean keeps what state references and evicts the rest within a size budget"; this change makes that budget authorable, with no default in the contract so the fallback stays one number in one place.
  • DESIGN.md:38 D-LAW-4 — schema first: the shape is CUE written before any Go, and the Go is generated from it.

Change classification

Schema + generated Go (schema/*.cue, spec/cue_types_gen.go, spec/vocab_gen.go) and two
hand-written per-host structs — not documentation, so documentation reviewed is not claimed. The
tier claimed is fully tested and validated, earned on this head by the CI steps, the reproducible
regen and the gate tests above.

Breaking change + rollback: none — the change only ADDS a closed section that previously failed
the load as an unknown key, so every existing per-host file (which cannot carry clean: at all
today) keeps loading unchanged; no existing field's type or wire key moves, and #RetentionRequest
is untouched. Rollback is to drop the branch.

Agent: sdk-store
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

D-STORE-7 bounds a named store "within a size budget", and the ceiling is a property
of the MACHINE that holds the store — so it is authored in the per-host configuration
(~/.config/charly/charly.yml), not in a project's `defaults:` block: a project file is
shared, a host's disk is not.

- `schema/clean.cue` gains `#CleanSection` and `#StoreBudget`. `bytes` is `int & >0`
  tagged `type=int64`: a budget is a byte count and the value this exists for
  (256 GiB = 274877906944) does not fit a 32-bit int, so a bare `int` would wrap
  silently on the `386`/`arm` cross-compile targets. `distro.cue`'s
  `disk_size_bytes` sets the precedent.
- `#NodeDoc` recognizes the section, so an authored `clean:` block is a document
  DIRECTIVE rather than a node named "clean" — and it is TYPED there, unlike the
  older `_` siblings, because the requirement is that an undeclared key INSIDE the
  section is a load error: `_` would accept a typo and the retention plugin would
  fall back to its 32 GiB default silently. The generated `DocDirectives` list gains
  `clean` as a consequence.
- `spec.DeployConfig` and `spec.UnifiedFile` carry `Clean *CleanSection` — the two
  per-host structs that already carry `cache:`, `ledger:` and `system:`.
- NO default anywhere: absent stays absent (`nil`), so the one fallback lives in the
  plugin that enforces it.

No wire field: `#RetentionRequest` is unchanged (no peer runs the store category), so
the budget is resolved where the config is read.

Refs: opencharly/plugin-clean#28, #383
Agent: sdk-store
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 5b503527d2e35ab01ccef89d145ec95579bb69a7 (branch: feat/clean-store-budget)

Security screen: PASS — no secrets, no network egress, no guardrail weakening, no scope/description mismatch; PR content treated as data.
Checklist: A1–A3, R0–R10, PIL/ADE/SDD, CONC, HC, ARCH, DISP, QUAL all PASS or NA. No comments to disposition (thread empty).

Placement: CORRECT — a wire/config SHAPE (#CleanSection/#StoreBudget) belongs in spec, CUE-first, with the generated Go and the two hand-written per-host structs following the existing cache:/ledger:/system: pattern; no core/sdk/candy misplacement.

Non-blocking notes (not rulebook gaps, do not affect verdict):

  • Body cites spec/spec/deploy_config.go; the actual changed path is spec/deploy_config.go. Cosmetic body typo only — the file and field are accounted for.
  • The body documents the producer-first relationship to opencharly/plugin-clean#28 and opencharly/spec#383 by name; these are requirement/tracking items, not actively-contended PRs, so no WAITING/HOLDING comment is required by COORD.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 18, 2026 18:14
@github-actions
github-actions Bot merged commit 9faef88 into main Nov 18, 2026
4 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 18, 2026
github-actions Bot pushed a commit to opencharly/sdk that referenced this pull request Nov 18, 2026
…one (#563)

opencharly/spec#379 deleted `acme_email` from the schema on purpose, so every sdk tag at
or after that merge fails to compile against the released contract
(`meta.AcmeEmail undefined`). The field is retired, not deprecated: nothing sources it any
more, so every sdk reference goes in the same change (R5).

- kit/checkvars.go — the `ACME_EMAIL` entry in the build-time variable map is DELETED: a
  box's metadata can no longer carry an ACME address. Nothing in charly's own plans used
  the variable; the one live consumer is Traefik's OWN `${ACME_EMAIL:-…}` expansion inside
  a container, which reads the container's process environment, so an operator who needs
  it passes it as a deploy `env:` entry (a first-class surface, untouched by this change).
- deploykit/deploy_file.go — the overlay→metadata copy of `overlay.AcmeEmail` is DELETED,
  and the schema-v4 note no longer names the field.
- deploykit/capabilities.go — `"AcmeEmail"` is removed from DeployOnlyCapabilityFields (it
  cannot be a spec.BoxMetadata field any more), and the two comments listing it reworded.
- buildkit/config_resolve.go — the resolve note reworded.
- kit/checkvars_test.go — the fixture and the expected-map entry removed; the whole-map
  DeepEqual remains as the regression guard against a field-derived var coming back.
- go.mod/go.sum — `require github.com/opencharly/spec v0.2026322.1814`, and no replace.

Refs: opencharly/spec#379, opencharly/spec#384
Agent: sdk-store
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
github-actions Bot pushed a commit to opencharly/sdk that referenced this pull request Nov 18, 2026
…y projection (#566)

spec#384 declared `clean:` as a typed per-host section, and no plugin-reachable loader returned
it (#565): `LoadDeployConfigViaExecutor` ends with
`deploykit.ProjectDeployConfig`, which builds `DeployConfig{Provides, Deploy, Sidecar}` and drops
every unnamed per-host section; `LoadHostDeployConfigViaExecutor` delegates to it and inherits the
drop; and the materialize's per-document merge (`spec/merge.MergeUnified`) does not carry the
sections forward either, so even the unified document yields nil. The end-to-end measurement — a
document authoring a 256 GiB ceiling reporting the plugin's 32 GiB fallback in three shapes — is in
the issue.

`LoadHostCleanSectionViaExecutor` answers the section question directly: one per-host document,
one decode, the section (or nil). It is deliberately NOT a widened deploy view — `ProjectDeployConfig`
is named for the PROJECT deploy view, and teaching it to carry per-host state would make that name
a lie (opencharly/spec#383 records the per-section permission gap one layer up; this is its data
half).

The contract is the consumer's refusal rule: an absent document, or a document with no `clean:`,
answers (nil, nil) so the consumer applies its own fallback (the 32 GiB ceiling lives in the
plugin, never in the contract); an unreadable document, a failed bootstrap leg or an unresolvable
config path answers (nil, error), because a config that cannot be READ must never be mistaken for
one that says NOTHING — that is the failure mode a missing machine-scoped knob hides behind.

The decoding path is the loader's, not a second one (R2): `readConfigStack` is the very reader
`LoadUnified` uses, the bootstrap phase runs in the same order it runs there, and the decode target
is the same `*spec.UnifiedFile` the materialize decodes each document's reserved directives into.
What is NOT reused is the walk + merge + projection chain — precisely the chain that loses the
section.

The tests are the contract's four arms plus the resolved-standard-path and the nil-executor arms;
the PR body runs the red arm that replaces the reader's last step with the delegating projection,
which is what proves they are not testing a getter.

Refs: #565, opencharly/spec#384, opencharly/spec#383
Agent: sdk-store
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
github-actions Bot pushed a commit to opencharly/plugin-clean that referenced this pull request Nov 18, 2026
… configuration (#28) (#34)

* feat(clean): the store ceiling is the machine's, authored in the user 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)

* docs(clean): the skill's --store placement and ceiling statements follow 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)

* docs(clean): the candy description states the ceiling's home, and the 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)

* fix(clean): read the machine's ceiling through the section reader sdk#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)

* refactor(clean): the decision's own name, in the comment, the test and the ADE step

budgetFromCleanSection replaced budgetFromDeployConfig when the source stopped being a DeployConfig, and three references kept the old name: the doc comment above the function, a t.Fatalf message, and the clean-store-category-present ADE grep — which matched ONLY the stale comment, so the check guarded nothing and fixing the comment would have broken it. All three now name the real symbol.

Agent: clean-retention

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

* chore: re-fire the org validator after an unreported push

No content change: the push of 4df6109 did not create a validate / validate run (no check-run exists for that sha), so the branch head had no gate. This empty commit re-fires the pull_request synchronize event on the same tree — the tree at 4df6109 is what the reviewer will read.

Agent: clean-retention

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

* docs(clean): the file header names the reader the code calls

store_budget.go's header still said the section 'arrives here through deploykit.DeployConfig (a type ALIAS of spec.DeployConfig)' while the same comment, forty lines down, explains that ProjectDeployConfig drops exactly that section — the pre-sdk#566 claim outliving the code by one commit. It now names spec.CleanSection and LoadHostCleanSectionViaExecutor and says why the DeployConfig route is not the one taken.

Agent: clean-retention

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)
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