Skip to content

feat: github-settings effector: apply, clear, reconcile and README - #4

Open
ccf-lisa[bot] wants to merge 4 commits into
effector/03-planfrom
effector/04-plugin
Open

ccf-lisa[bot] wants to merge 4 commits into
effector/03-planfrom
effector/04-plugin

Conversation

@ccf-lisa

@ccf-lisa ccf-lisa Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Stack 4/5 for effector-github-settings: the effector itself (apply, clear, reconcile) and the README.

Part 3 of Plugins → effector-github-settings; LLD (Manifest, Behaviour, Testing). Ported from the PoC, including c52c366 (link only the https settings page) and 546eec6 (guarded target expression in the README).

What

  • internal/plugin.go and main.go (effector.Serve):
    • Describe: one remediate-apply capability, rule_kinds: [state], default_on_clear: none, github-repo target scheme, the params schema.
    • Configure (InvalidArgument on bad config; doesn't call GitHub), ValidateAction (effect, no action config).
    • Apply: activated/updated/repeated/finished/redelivered enforce (dry-run only reports); clearing transitions report "nothing to undo"; occurred fails.
    • Clear: nothing to undo. Reconcile: enforce again on active/finished effects, report only what changed, failed or whose plan differs from the last reported one.
    • Results: links = the https access settings page only; refs = last_plan, plus last_applied on success only.
  • README: what it does, a warning that apply removes real people's access (start in dry-run, keep mode locked), build and release (release-please and the shared release workflow, see feat: scaffold, plugin config and rule parameters #1), manifest, config and token permissions, rule parameters, behaviour and results, an agent config example.
  • Tests: describe, configure, validate-action, dry-run sends no PATCH/DELETE, apply removes all but keep, signoff both ways, already compliant, GitHub 403/404 → failed with partial changes, token never in results, invalid params, action config, no remediations, clear does nothing, unsupported requests, reconcile (drift fixed again), and a go-plugin gRPC round trip as the agent drives it. Plugin tests that only re-checked the client or plan moved to 2/5 and 3/5.

Local gate

Build (make build → dist/plugin), vet, go test -race, golangci-lint (0 issues), go mod tidy -diff clean, with the sibling checkouts. CI fails on module resolution until 5/5 (accepted).

Counted lines: 934.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 10d0a753-e6d2-44a5-a1c8-fb4afdb3e660

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@gusfcarvalho gusfcarvalho left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ccf-review: COMMENT

1 Should-fix.

Stack (gh stack 6): #1 → #2 → #3 → #4 → #5

Comment thread README.md Resolved
ccf-lisa Bot and others added 4 commits December 2, 2026 20:49
The plugin itself: Describe (one remediate-apply capability on github-repo targets with the
params schema), Configure, ValidateAction, Apply (enforce; dry-run only reports), Clear
(nothing to undo), and Reconcile (enforce again, report what changed, failed or drifted),
served with the agent's effector.Serve. The README documents parameters, token permissions,
behaviour and an agent config example, and warns that apply removes real people's access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plugin reads token once at Configure. Document that an installation
token needs external rotation and an agent restart, and prefer a
fine-grained token.

@gusfcarvalho gusfcarvalho left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ccf-review: APPROVE

no findings.

Stack (gh stack 6): #1 → #2 → #3 → #4 → #5

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.

1 participant