Repository navigation
fix(deploykit): drop the dead group-root self-skip guard — spec #105 deleted Deploy.IsGroup() - #224
Merged
Merged
Conversation
…deleted Deploy.IsGroup()
Review — PASSHead SHA: Security screen: PASS — no instruction injection, no scope mismatch (removal + pin bump both accounted for), no secrets/exfiltration, no weakened guardrails, no supply-chain anomaly (spec pin moves to a merged tagged release). Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
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
spec #105 (v0.2026249.2106) deleted
Deploy.IsGroup()as part of the hard group-kind cutover (group:removed from#ResourceKind; group deploys now migrate onto a primary substrate with deploy-level sibling members). sdk'sdeploykit/bed_session.go:71still called it — the group-root self-skip guard inPersistBedDeployOverrides— so every consumer compiled against spec 2106 failed: plugin-check and plugin-preempt (both with in-flight IsGroup migration PRs) and charly's next consumer bump. This PR re-pins the sdk to spec v0.2026249.2106 and removes the guard.RCA — delete, not re-derive
The one nuance checked before deletion: could a PRE-cutover persisted state file still deliver a group-shaped deploy root to this code path? No — two independent proofs:
nodeargument never originates from persisted state. It is the bed's folded node from the caller's CURRENT project config (a LoadUnified'd project under the spec feat(sdk)!: #118 core-min producer leg — deploykit/loaderkit/spec kits + wire types for the plugin-host end-state #105 schema): agroup:root cannot be authored or parsed post-cutover, andcharly migraterewrites pre-cutover group deploys onto the primary substrate + deploy-level siblings before anything reaches this function.SaveDeployState(the only writer) takesSaveDeployStateInput= spec's type, which carries ZERO member fields (verified at spec 2106spec/cue_types_gen.go:4868— Ports/Env/Volume/Tunnel/... only). This is exactly why the deleted guard's own comment documented that persisting a group root would write a memberless bed: pre-cutover persisted state is substrate-shaped only.The targetless member-bearing deploy shape the guard defended against is unauthorable post-migrate — the guard is dead code. Deleted outright per R5 (no positional re-derivation, no stale-state tolerance comment needed). The local/host-rooted (
fleet.HostRooted(&node)) and in-place-external (externalInPlace) self-skips at the same site REMAIN — they are live, load-bearing guards.IsGroup sweep
spec #105's merge note said bed_session.go:71 was the only known sdk call site — verified:
git grep -n IsGroupon the committed HEAD returns ZERO matches. TheIsGroupoccurrences remaining in spec 2106 itself are the seam.cue/arbiter.cue wire FIELDS (is_group?: bool @go(IsGroup)) deliberately kept for plugin-check/plugin-preempt consumers — a different type, untouched here. deploy_state.go's remaining member handling (InSubstrateMembers,n.Member) is the member-tree IR that SURVIVED the cutover — not group-kind code.How tested
Rulebook compliance
HostRooted/externalInPlaceguards are live behavior, not legacy.-count=1on the final committed tree (R7 paste above); the IsGroup sweep executed viagit grep HEADon the COMMITTED tree (not the working tree).Note for the wave: this tag unblocks the two waiting consumer workers (plugin-check, plugin-preempt IsGroup migrations) and charly's CC-1 consumer PR re-pin.
Change classification
PersistBedDeployOverrides; its signature is unchanged).git grepsweep (zero IsGroup matches on HEAD).fully tested and validated— full local gate passed on the final committed tree, changed path (deploykit) executed live by the test run.Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (fully tested and validated)