Repository navigation
feat: plan and execute the remediations - #3
Open
ccf-lisa[bot] wants to merge 1 commit into
Open
ccf-lisa[bot] wants to merge 1 commit into
ccf-lisa[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
ccf-lisa
Bot
force-pushed
the
effector/03-plan
branch
from
December 2, 2026 11:00
e9d5686 to
f3dccbc
Compare
This was referenced Dec 2, 2026
Reads only the state the enabled remediations need, computes the changes (direct collaborators to zero except keep and the owner, pending invitations, web commit signoff either way), makes them in order (collaborators, invitations, signoff) stopping at the first GitHub error, and words the one-line dry-run, applied and failed messages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccf-lisa
Bot
force-pushed
the
effector/03-plan
branch
from
December 2, 2026 23:50
f3dccbc to
1ae9312
Compare
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.
Stack 3/5 for
effector-github-settings: plan and execute the remediations.Part 2 (plan) of Plugins → effector-github-settings, split out to keep each PR under 1000 lines; LLD (Rule parameters, Behaviour → Result). Ported from the PoC.
What
internal/plan.go:read: reads only what the enabled remediations need (the repository always; collaborators and invitations only when enforced).ComputePlan: direct collaborators to zero exceptkeep, never the repository's owner (listed as kept); invitations for kept logins stay (email invitations can't be kept); web commit signoff in either direction.execute: collaborators, then invitations, then signoff; stops at the first GitHub error and returns what it already changed. A PATCH GitHub answers with the old signoff value (an org policy) is an error. Each login is re-checked before it goes into a DELETE path.dry-run: would …,applied: …,compliant: nothing to change, and the failed message with the partial changes; at most 10 names per change.Tests (fake GitHub): reads only what's enforced, the plan (owner kept, case-insensitive keep, sorting, email invitations), signoff both ways, apply order and result, partial changes on a 403, signoff kept by GitHub, a bad login refused before any call, message wording.
Local gate
Build, vet,
go test -race, golangci-lint (0 issues),go mod tidy -diffclean, with the sibling checkouts. CI fails on module resolution until 5/5 (accepted).Counted lines: 458.
🤖 Generated with Claude Code