Repository navigation
feat(effector): params schema subset - #596
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/05-params-schema
branch
from
December 1, 2026 18:49
5e1300f to
1572728
Compare
pkg/effector/params: parse and check the JSON Schema subset a plugin declares for an action's parameters (object, string, boolean, integer, string-enum arrays; nesting, length and range limits, template fields and their variables, x-ccf-order and x-ccf-depends-on form hints). Defaults are checked against their field (docs/effectors/action-parameters.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccf-lisa
Bot
force-pushed
the
effectors/05-params-schema
branch
from
December 2, 2026 12:07
1572728 to
29fa2d4
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
New public package
pkg/effector/params, part 1: the JSON Schema subset a plugin declares for an action's parameters (action parameters).Parse/ValidateSchema: a root object;object,string(enum,maxLength,format: templatewithx-ccf-variables),boolean,integer(range, int64 only) and arrays of string enums; at most 3 levels of nesting; unknown keywords rejected with the property path (SchemaError).x-ccf-order(objects) andx-ccf-depends-on(a sibling boolean).defaultis checked against its own field, through the private value validator;FieldErroris the error it reports.Lookup/HasPathfor dotted parameter paths.Ported from the PoC. Standard library only; nothing calls it yet.
Why
The API and the agent both check parameters with this package, so the API never accepts parameters the agent refuses. The package is split in two to stay under the size limit: this PR is the schema; the next one adds the public
Validate, operator locks, defaults and the merge. Plan: stack 1, PR 5.Test evidence
go test -cover ./pkg/effector/params: 86.3% (the public validation paths are covered by the next PR's tests).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: 771 lines.
🤖 Generated with Claude Code