Repository navigation
feat(spec): InstallStep interface (P4-unit-2) - #12
Merged
Merged
Conversation
Moves the InstallStep interface — the polymorphic element of the InstallPlan IR E-envelope — out of charly into sdk/spec (install_step.go). It returns only spec types (Kind()StepKind/Scope()Scope/Venue()Venue/RequiresGate()Gate/Reverse()[]ReverseOp, all spec after P4-unit-1) and belongs with the InstallPlan container that holds a []InstallStep. Homed in spec (not deploykit) because deploykit imports spec → the interface must be the base; the 13 concrete step structs (step vocabulary, deploykit later) implement spec.InstallStep structurally. Second P4 unit. Assisted-by: Claude (fully tested and validated)
…nstallStep interface move) Assisted-by: Claude (fully tested and validated)
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 14, 2026
…very both sweep closes need (#394) Two closes of one ruling need the same discovery and R2 forbids two copies: the `charly-registry` store cutover (#12) sweeps the pre-store per-ref layouts a deleted writer left INSIDE the store's own tree, and `charly-registry#11` sweeps the pre-rename `~/.cache/charly/images` root. Discovering orphaned layouts is a property of the store layout, not of any policy a plugin owns, so it belongs here beside the store it inspects. - The predicate is `NamedStores()`'s marker test INVERTED: one `LayoutFile` constant read two ways — what is a store at a cache root is junk inside a store. - The CALLER names the root, because liveness is policy and this is mechanism. The function cannot answer "no merged writer still writes this" (`NamedStores()` cannot either — it returns exactly the marker-carrying children in question), so the contract is the opposite: the caller passes a root in which a marker-carrying child cannot be live — a store's own tree (orphan by construction) or a root the migration table retired. - Discovery and sizing only, never deletion: the destructive half stays with the surface that also reports it (`--dry-run` first). - `Orphan.Bytes` counts every file in the tree, the marker included — a size that omitted it under-reported a real sweep (measured while writing the first consumer's assertion). Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) Co-authored-by: Andreas Trawoeger <[email protected]>
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.
Summary
Second P4 unit. Moves the
InstallStepinterface — the polymorphic element of the InstallPlan IR E-envelope — verbatim out of charly intosdk/spec/install_step.go. It returns ONLY spec types (Kind()StepKind/Scope()Scope/Venue()Venue/RequiresGate()Gate/Reverse()[]ReverseOp— all spec after P4-unit-1).Placement: homed in
sdk/spec(notdeploykit, despite the plan's rough wording) —deploykitimportsspec, so the interface must be the base; andInstallPlan.Steps []InstallStep(also destined for spec) holds it. The 13 concrete step structs (the step VOCABULARY →sdk/deploykitlater) implementspec.InstallStepstructurally, so they need no change beyond the charly alias.Change class
sdk Go — moved IR interface (no schema surface → no schema-version bump).
How R10-tested
spec.InstallStepstructurally).check-builder-localPASS 4/4 +check-localPASS 4/4, golangci 0 both repos, zero warnings.Attribution tier
fully tested and validated
Compliance
Assisted-by: Claude (fully tested and validated)