Repository navigation
feat(effector): params validation, locks and merge - #597
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/06-params-validate
branch
from
December 1, 2026 18:49
2f3a50f to
9f6ad9b
Compare
pkg/effector/params: validate a parameter object against an action's schema, check the operator's locks and locked paths, extract schema defaults, and merge schema defaults, operator defaults and a rule's parameters with locked paths reset (docs/effectors/action-parameters.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccf-lisa
Bot
force-pushed
the
effectors/06-params-validate
branch
from
December 2, 2026 12:07
9f6ad9b to
24d986c
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/effector/params, part 2 (action parameters):Validate/(*Schema).Validate: a parameter object against the schema (unknown parameters, types, enums, lengths, ranges); a nil schema declares no parameters, so every parameter is unknown.CheckLocked: parameters a rule sets that the operator locked (dotted paths, or*).CheckLockedPaths: locked entries that aren't fields of the schema.Defaults: the schema's defaults as a parameter object.Merge: schema defaults, then operator defaults, then the rule's parameters (objects key by key); locked paths reset to the operator's value, else the schema's, else removed;*discards the rule's parameters. Inputs are never modified.Ported from the PoC; the API's rule routes and the agent's delivery use these in later PRs.
Why
The API rejects a rule's parameters with
422using the same checks the agent applies before calling the plugin. Plan: stack 1, PR 6.Test evidence
go test -cover ./pkg/effector/params: 91.7% of statements.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. No integration tests in this package.Size
Counted: 376 lines.
🤖 Generated with Claude Code