Repository navigation
feat(agentconfig): effector action params - #600
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
effectors/08b-agentconfig-params
branch
2 times, most recently
from
December 1, 2026 16:45
6e59ba6 to
6f528e6
Compare
This was referenced Dec 1, 2026
ccf-lisa
Bot
force-pushed
the
effectors/08b-agentconfig-params
branch
from
December 1, 2026 18:49
6f528e6 to
1d0b22b
Compare
pkg/agentconfig: plugins.<p>.actions.<a>.params, the operator's defaults for the rule parameters a plugin declares and the parameters rules can't set (locked: dotted paths or "*"). PoC follow-up 6: the agent no longer needs to carry them as config._params. Overlays are checked strictly; locked entries must be "*" or dotted paths without duplicates. Classification: adding a lock is safe (reduces-scope); removing a lock or changing a default is unsafe (action-params). Defaults keep exact numbers and parameter names as written; params are not redacted (they are rule-facing). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccf-lisa
Bot
force-pushed
the
effectors/08b-agentconfig-params
branch
from
December 2, 2026 12:07
1d0b22b to
360a0b8
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:plugins.<p>.actions.<a>.params, the operator's control over an action's rule parameters (action parameters, operator controls). This is PoC follow-up 6 (PoC follow-ups): the PoC'sagentconfig.Actionhad noParams, so the agent smuggled them through the action config asconfig._params. With this field the agent can drop that workaround.Action.Params *ActionParams(defaults,locked); omitted when unset, so existing configs encode as before.Validation (shape only: only the agent knows the plugin's schema and checks defaults and paths against it): overlays get strict checks (object, known members,
defaultsan object,lockedan array);lockedentries are*or dotted paths of non-empty segments, without duplicates;${env:}placeholders aren't allowed in params (O9).Classification in the overlay check:
params.lockedentry addedreduces-scopeparams.lockedentry removed, or aparams.defaultsvalue changedaction-params(new reason)Decode keeps exact numbers in
defaults, mis-caseddefaults/lockedkeys are dropped, parameter names are kept as written, clones are deep. Params are not redacted: they are rule-facing and the agent registers them with the API.docs/agent-remote-config.md: the two params rows.Why
Rule actions carry
paramsvalidated against the plugin's schema and the operator's locks; the operator's side needs a real config field the API and the agent agree on. Plan: stack 1, PR 8 (split as 8a and this PR, 8b).Decision for reviewers
The design doesn't say how a remote overlay changing
paramsis classified. I chose: no params change is forbidden (params never widen the actions, effects or targets the operator allowed), tightening a lock is safe, and loosening a lock or changing a default is unsafe (apply_allonly), likeon_clear. The PoC classified_paramsas an ordinary action config key (unsafe unless listed inoverridable_action_config_flags); a dedicated reason keepsoverridable_action_config_flagsabout config keys only.Test evidence
go test -cover ./pkg/agentconfig: 97.4% of statements; the new params functions 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; integration:./internal/api/handler/and./internal/service/relational/agentcfg/pass.Size
Counted: 234 lines.
🤖 Generated with Claude Code