Repository navigation
Re-audit the rename plan, and give it the name mapping it promised - #718
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #716. Unblocks #715.
Documentation only — one file,
docs/plans/workflow-rename.md.The plan sat at
status: draftsince 2026-05-30, presenting 2026-05-26 measurements as current and claiming aprerequisite 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:
That is wrong.
pkg/op/provider/flow/helpers.gocalls it as: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 producedGenerateStepIDminting ids forBlocks. 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
pkg/op/root.gofilesprovider/filesop.Xreferences.gen.goEvery line reference had shifted, and
Nodehas moved out ofgraph.gointonode.gosince the last audit.The subpackage list was wrong in both directions —
sops/has left,claimcheck/andserver/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 Mappingwas 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".
GenerateNodeIDis exactly that case.Do not rename — NOT ours.
pkg/op/default_eval.goreads:Those are
text/template/parsetypes, and.Nodesis a field on a stdlib type. A word-level sweep overNoderewrites it and fails to compile.Subpackages dispositioned
Neither existed when the phases were written.
claimcheck/is nearly rename-inert: it hardcodes onlypkg/assertandpkg/fsrootas trust boundaries,and loads the whole module by pattern, which the rename does not change.
server/usesop.ControlPlane,op.RunStatus, and theop.Control*family — none of which thisrename 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
sops/is gone,claimcheck/andserver/arrived, and the starlarkbridge edit ban hasbeen lifted, so all five subpackages are edit-eligible on the same terms.
TEMPLATE.mdgained a Test Plan section on 2026-08-27 and this plan has none. For a purerename the assertion is "every existing test passes unchanged", which §Verification already states. Confirm
rather than duplicate.
3.2,3.6,4.5, and the provider catalog, all of which nowdescribe
pkg/opin prose a pure rename churns. In scope, or a follow-up?Status
draft→ready. Phase sequencing re-verified:NodeSpec(node.go:473) andExecutableUnitSpec(
executable_unit.go:425) both exist, so Phase 1 must still free the name before Phase 2 claims it.