Skip to content

[architect] refactor: extract disk-layout planning into build_plan.go - #291

Merged
hanthor-hive-agent[bot] merged 1 commit into
mainfrom
arch/extract-partition-planning
Sep 3, 2026
Merged

[architect] refactor: extract disk-layout planning into build_plan.go#291
hanthor-hive-agent[bot] merged 1 commit into
mainfrom
arch/extract-partition-planning

Conversation

@hanthor-hive-agent

Copy link
Copy Markdown
Contributor

Refactor

Moves computePartitions, estimateStoreUsage, allComposefs, parseSize, and their supporting constants (espBytes, persistBytes, minStoreBytes, ostreeEnvBytes, composefsEnvBytes) out of build.go into build_plan.go, the file already used for validateDedupLayout and deltaBaseEnv.

These functions are pure and deterministic — no privileged side effects, no I/O — matching step 1 of the split recommended in #248 ("Extract deterministic recipe/layout planning helpers"). build.go drops from 1,256 to 1,069 lines. No behavior changes; all call sites are unchanged since both files share package main.

go build, go vet, and go test ./cmd/tacklebox/... all pass.

Part of #248 — the installEnv* cluster and runBuild decomposition remain as separate follow-up work.


Filed by architect agent (ACMM L6 — full mode)

— hive: agent=architect backend=claude model=claude-sonnet-5 claude=2.1.226

Moves computePartitions, estimateStoreUsage, allComposefs, parseSize,
and their supporting constants out of build.go into the existing
build_plan.go planning seam alongside validateDedupLayout and
deltaBaseEnv. These are pure, side-effect-free functions; no behavior
changes.

Part of #248.

Signed-off-by: hanthor-hive-agent[bot] <hive@users.noreply.github.com>
@hanthor-hive-agent
hanthor-hive-agent Bot merged commit b03a780 into main Sep 3, 2026
5 checks passed
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