Skip to content

refactor(complexity): phase 1 — writ commands and the test harness - #313

Merged
David-Noble-at-work merged 1 commit into
developfrom
refactor/complexity-writ
Aug 3, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
refactor/complexity-writ

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Phase 1 of docs/plans/complexity-refactors.md (#312): six functions decomposed under gocognit 20 / gocyclo 15, behavior-preserving — the suite passes unmodified. The three writ Executes share one narrative shape via per-package helpers (buildScopeGraphs / emitGraphs / runAll); the verbatim-identical emitter is flagged in the plan doc as an available cross-package dedup ruling. classifyEntry splits its encrypted-chain and render arms; deploy's plan closure extracts manifest/chain planning; TestContext.Check becomes uniform per-kind dispatch. Plan doc rides along with phase 1 marked complete.

First phase of the complexity plan (#312): six functions under the
thresholds by behavior-preserving decomposition. The three writ
Executes (upgrade 30, deploy 22, decommission 23) settle onto one
narrative shape — group into scope graphs, emit the dry-run YAML
stream, run and collect per-scope failures — via per-package unexported
helpers; the now verbatim-identical emitter is flagged in the plan doc
as an available dedup ruling, deliberately not taken unilaterally.
upgrade's classifyEntry (21) splits its encrypted-chain and render
arms; deploy's buildScopeGraph closure (29) extracts
splitManifests/planManifests/planChains; devlore-test's
TestContext.Check (32) becomes a uniform per-kind dispatch matching the
existing check-helper family.

Zero complexity findings remain in the touched files; no new findings
anywhere; make vet and full make test pass unmodified; gofmt clean.
Plan: docs/plans/complexity-refactors.md (phase 1 complete).
@David-Noble-at-work David-Noble-at-work self-assigned this Aug 3, 2026
@David-Noble-at-work
David-Noble-at-work merged commit 17b2102 into develop Aug 3, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the refactor/complexity-writ branch August 3, 2026 16:12
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