Repository navigation
feat(agentconfig): effector block and plugin types - #598
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
|
This was referenced Dec 1, 2026
ccf-lisa
Bot
force-pushed
the
effectors/07-agentconfig-effector
branch
from
December 1, 2026 18:49
52c23f9 to
2714f6d
Compare
pkg/agentconfig: plugins.<p>.type (collector or effector), the effector plugin fields (reconcile_interval, targets_refresh, on_stale, apply_timeout, reconcile_timeout, max_concurrency) and the top-level effector block (listen, public_url, tls, stale_after, defaults). effector is a locked key. Validate checks the block and requires it, with daemon mode, when an effector plugin is enabled; effector-only fields are rejected on collectors. Classification: a type change or a re-enabled effector plugin is forbidden, on_stale unsafe, the timings safe. effector.public_url is redacted by content. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccf-lisa
Bot
force-pushed
the
effectors/07-agentconfig-effector
branch
from
December 2, 2026 12:07
2714f6d to
5c12b6c
Compare
This was referenced Dec 2, 2026
gusfcarvalho
approved these changes
Dec 2, 2026
gusfcarvalho
left a comment
Contributor
There was a problem hiding this comment.
ccf-review: APPROVE
no findings.
Stack (gh stack 604): #592 → #593 → #594 → #595 → #596 → #597 → #598 → #599 → #600 → #601 → #602 → #603 → #605 → #606 → #607 → #608 → #609 → #610 → #611 → #612 → #613 → #614 → #615 → #616 → #617 → #618 → #619 → #620 → #621 → #622 → #623 → #624 → #625 → #626 → #627 → #628 → #629 → #630
This was referenced Dec 2, 2026
This was referenced Dec 2, 2026
This branch has not been deployed
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.
What
pkg/agentconfig(the agent config schema the agent imports), part 1 of effector support (effector interface):plugins.<p>.type:collector(the default, also"") oreffector, plus the effector plugin fieldsreconcile_interval,targets_refresh,on_stale,apply_timeout,reconcile_timeout,max_concurrency.effectorblock:listen,public_url,tls,stale_after,defaults.effectoris a locked key (O3). Overlays get O12 type checks for the new plugin fields.Validaterequires the block anddaemon: truewhen an effector plugin is enabled, checkspublic_urlwithtargets.NormalizeBaseURL, TLS pairs, durations andon_stale. Effector-only fields are rejected on collectors; schedules and policies on effector plugins.plugin-type), re-enabling an effector plugin is forbidden (widens-effector),on_staleis unsafe (effector-behavior), the timings are safe (data-only).effector.public_urlmasked by content, inRedactandRedactDocument).docs/agent-remote-config.md: the new locked key and the effector rows of the classification table.A collector-only config encodes exactly as before (tested), so existing agents and reports are unaffected. Effector actions, targets and params come in the next PR.
Why
The agent validates and classifies its config with this package, and the API validates overlays with it. Plan: stack 1, PR 7.
Test evidence
go test -cover ./pkg/agentconfig: 97.2% of statements; every new function at 100%.Gate on this branch:
go build ./...pass;go vet -tags integration ./...pass;make lint0 new issues (6 pre-existing onmain, untouched files);make testpass;make swagno diff;go mod tidyno diff;go test -tags integration -p 1 ./internal/api/handler/pass (agent config routes use this package).Size
Counted: 711 lines.
🤖 Generated with Claude Code