Repository navigation
feat(agentconfig): effector actions and targets - #599
Open
ccf-lisa[bot] wants to merge 3 commits into
Open
ccf-lisa[bot] wants to merge 3 commits into
ccf-lisa[bot] wants to merge 3 commits 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/08-agentconfig-actions
branch
from
December 1, 2026 18:49
09951a8 to
ef9a694
Compare
pkg/agentconfig: plugins.<p>.actions.<name> (description, effect,
targets include/exclude in the pkg/effector/targets grammar, rule_kinds,
on_clear, on_stale, targets_refresh, publish_targets, config) and
remote_config.overridable_action_config_flags.
Action names are unique across the agent and an effector plugin needs at
least one action. Overlays that widen an effector (a new action, an
added include, a removed exclude, a changed effect, publish_targets on,
an added rule kind) are forbidden in every mode; narrowing is safe;
on_clear and on_stale are unsafe; action config keys are safe only
when listed in overridable_action_config_flags (<plugin>:<action>:<key>,
matched segment by segment). ${env:NAME} placeholders resolve in action
config strings at any depth, and action config is redacted like plugin
config.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI's shared golangci-lint config enables unconvert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccf-lisa
Bot
force-pushed
the
effectors/08-agentconfig-actions
branch
from
December 2, 2026 12:07
ef9a694 to
986026d
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, part 2 of effector support: effector actions (effector interface, effector actions).plugins.<p>.actions.<name>:description,effect(a lowercase slug),targets.include/exclude(patterns in thepkg/effector/targetsgrammar),rule_kinds,on_clear,on_stale,targets_refresh,publish_targets,config.^[a-z0-9][a-z0-9-]{0,62}$and are unique across the agent; an effector plugin needs at least one action;includeis required (targets are an allowlist); every pattern parses; vocabularies forrule_kinds,on_clear,on_stale; overlays are checked strictly (unknown fields, types).publish_targetson, an added rule kind or clearedrule_kinds); narrowing is safe;on_clear/on_staleare unsafe; action config keys are safe only when listed in the newremote_config.overridable_action_config_flags(<plugin>:<action>:<key>, matched segment by segment, so an existing"*"inoverridable_config_flagsnever opens action config).${env:NAME}placeholders resolve in action config strings at any depth (and are allowed only there and in plugin config); action config is redacted with the plugin config rules, inRedactandRedactDocument; free-form numbers stay exact.docs/agent-remote-config.md: the action rows of the classification table and the newremote_configsetting.docs/swagger.*regenerated: the reportedremote_configgainsoverridable_action_config_flags.Ported from the PoC. Action
params(PoC follow-up 6) come in the next PR, to keep this one under the size limit.Why
The operator's action definitions are what the agent registers with the API and what limits what rules can do; the API validates overlays with the same code. Plan: stack 1, PR 8. Split as 8a (this) and 8b (
params).Test evidence
go test -cover ./pkg/agentconfig: 97.1% of statements (new action code 95–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; integration:./internal/api/handler/and./internal/service/relational/agentcfg/pass.CI's shared golangci-lint config (with
unconvert) flagged one needless conversion inAction.clone; fixed in 09951a8 and the branches above rebased. The whole stack passes that config locally (0 new issues).Size
Counted: 995 lines (the lint fix is a one-line change in place).
🤖 Generated with Claude Code