Skip to content

Re-audit the rename plan, and give it the name mapping it promised - #718

Merged
David-Noble-at-work merged 1 commit into
developfrom
rename-plan-audit
Aug 27, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
rename-plan-audit

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Closes #716. Unblocks #715.

Documentation only — one file, docs/plans/workflow-rename.md.

The plan sat at status: draft since 2026-05-30, presenting 2026-05-26 measurements as current and claiming a
prerequisite satisfied months ago. Every quantity in it was wrong, and it lacked the one artifact its own
goal 4 promises: "each phase is a pure rename so reviewers can verify by inspection."

Writing the appendix found an error already in the plan

Phase 1's target list said:

GenerateNodeID → GenerateStepID, NodeID → StepID

That is wrong. pkg/op/provider/flow/helpers.go calls it as:

GenerateNodeID(string(Subgraph))

It mints ids for composites as well as leaves, so it names the abstract vertex — which under the new
taxonomy is Node, the name it already has. Following the plan as written would have produced
GenerateStepID minting ids for Blocks. Phase 1 and the appendix are both corrected.

This is the argument for the appendix in one example. The plan looked complete, its phases named their
targets, and one of those targets was wrong in a way only enumeration exposes.

Current State re-audited

Element 2026-05-26 2026-08-27
pkg/op/ root .go files 62 108 +74%
provider/ files 76 238 +213%
Qualified op.X references ~2,499 3,880 +55%
Generated .gen.go 29 48 +66%

Every line reference had shifted, and Node has moved out of graph.go into node.go since the last audit.
The subpackage list was wrong in both directions — sops/ has left, claimcheck/ and server/ arrived.

The deltas are kept rather than discarded: the scale of drift is the argument for not letting a plan sit at
draft.

The appendix

Rename Mapping was five rows of top-level types. The appendix covers the exported non-test surface — types,
constructors, functions, methods whose own name changes, hooks — plus two sections that exist because a rename
is not mechanical:

Keeps its name — verify by ABSENCE from the diff. A table of only the changes cannot distinguish
"correctly unchanged" from "missed". GenerateNodeID is exactly that case.

Do not rename — NOT ours. pkg/op/default_eval.go reads:

action, ok := tree.Root.Nodes[0].(*parse.ActionNode)

Those are text/template/parse types, and .Nodes is a field on a stdlib type. A word-level sweep over
Node rewrites it and fails to compile.

Subpackages dispositioned

Neither existed when the phases were written.

claimcheck/ is nearly rename-inert: it hardcodes only pkg/assert and pkg/fsroot as trust boundaries,
and loads the whole module by pattern, which the rename does not change.

server/ uses op.ControlPlane, op.RunStatus, and the op.Control* family — none of which this
rename touches
.

Both are Phase 5 concerns only.

Additions since the audit, checked for impact

Method claims, the run-state machine, the control plane, sealed resources, and the conversion rules name
claims, control, and conversion — no graph-structure vocabulary, and none collides with a target name.

Open questions settled where they could be

Status

draft → ready. Phase sequencing re-verified: NodeSpec (node.go:473) and ExecutableUnitSpec
(executable_unit.go:425) both exist, so Phase 1 must still free the name before Phase 2 claims it.

…ndix

Closes #716.

The plan sat at status draft since 2026-05-30, presenting 2026-05-26 measurements as
current and claiming a prerequisite satisfied months ago. Every quantity in it was wrong,
and it lacked the one artifact its own goal 4 promises.

Current State re-audited against the tree
  Root .go files 62 -> 108, provider files 76 -> 238, qualified op.X references
  ~2,499 -> 3,880, generated files 29 -> 48. Every line reference had shifted, and Node
  has moved out of graph.go into node.go since the last audit. The subpackage list was
  wrong in both directions: sops/ has left, claimcheck/ and server/ arrived.

  The deltas are kept in "What moved between audits" rather than discarded -- the scale
  of drift is the argument for not letting a plan sit at draft.

Subpackages dispositioned
  claimcheck/ is nearly rename-inert: it hardcodes only pkg/assert and pkg/fsroot as
  trust boundaries and loads the whole module by pattern, which the rename does not
  change. server/ uses op.ControlPlane, op.RunStatus, and the op.Control* family, NONE of
  which this rename touches. Both are Phase 5 concerns only.

Additions since the audit checked for impact
  Method claims, the run-state machine, the control plane, sealed resources, and the
  conversion rules name claims, control, and conversion -- no graph-structure vocabulary,
  and none collides with a target name.

The appendix, which the plan did not have
  Rename Mapping was five rows of top-level types. Goal 4 promises reviewers can verify
  by inspection; without a full mapping there was nothing to inspect against. The
  appendix covers the exported non-test surface: types, constructors, functions, methods
  whose own name changes, and hooks.

  It also carries two sections that only exist because a rename is not mechanical:

  KEEPS ITS NAME, verified by ABSENCE from the diff. A table of only the changes cannot
  distinguish "correctly unchanged" from "missed".

  DO NOT RENAME -- NOT OURS. pkg/op/default_eval.go reads
  tree.Root.Nodes[0].(*parse.ActionNode). Those are text/template/parse types, and .Nodes
  is a field on a STDLIB type. A word-level sweep over Node rewrites it and fails to
  compile.

Writing it caught an error already in the plan
  Phase 1's target list said `GenerateNodeID -> GenerateStepID, NodeID -> StepID`. That is
  wrong. flow/helpers.go calls GenerateNodeID(string(Subgraph)), so it mints ids for
  composites as well as leaves -- it names the ABSTRACT VERTEX, which under the new
  taxonomy is Node, the name it already has. Following the plan as written would have
  produced GenerateStepID minting ids for Blocks. Phase 1 and the appendix both corrected.

Open questions settled where they could be
  Q2 restated: sops/ is gone, claimcheck/ and server/ arrived, and the starlarkbridge
  edit ban has been lifted, so all five subpackages are edit-eligible on the same terms.
  Q3 answered: epic #451, with #716 and #715 beneath it.
  Q4 left open: TEMPLATE.md gained a Test Plan section on 2026-08-27 and this plan has
  none -- for a pure rename the assertion is "every existing test passes unchanged",
  which Verification already states. Confirm rather than duplicate.
  Q5 added: the Documentation Audit predates 3.2, 3.6, 4.5, and the provider catalog, all
  of which now describe pkg/op in prose a pure rename churns. In scope, or a follow-up?

Status draft -> ready. Phase sequencing re-verified: NodeSpec (node.go:473) and
ExecutableUnitSpec (executable_unit.go:425) both exist, so Phase 1 must still free the
name before Phase 2 claims it.
@David-Noble-at-work David-Noble-at-work self-assigned this Aug 27, 2026
@David-Noble-at-work
David-Noble-at-work merged commit 607eec1 into develop Aug 27, 2026
12 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the rename-plan-audit branch August 28, 2026 01:13
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.

Re-audit the op → workflow rename plan: every number in it is three months stale

1 participant