Repository navigation
feat(api): agent-facing effector routes - #619
Open
ccf-lisa[bot] wants to merge 2 commits into
Open
ccf-lisa[bot] wants to merge 2 commits into
ccf-lisa[bot] wants to merge 2 commits into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
ccf-lisa
Bot
force-pushed
the
effectors/21-agent-routes
branch
from
December 2, 2026 12:07
9305d9b to
ff1781b
Compare
This was referenced Dec 2, 2026
PUT /api/agent/instances/{id}/effector, GET /api/agent/effects,
GET /api/agent/effects/{id} and PUT /api/agent/effects/{id}/status on
the effector service, agent JWT only and agent:sync. An agent heartbeat
with an effector block answers {"effector": {resync, delivery_keys}}.
The worker service hands the API its effector jobs (EffectorJobs), and
agent reports bound the effector action config flags like the other
remote-config lists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccf-lisa
Bot
force-pushed
the
effectors/21-agent-routes
branch
from
December 2, 2026 14:45
ff1781b to
31993cc
Compare
This was referenced Dec 2, 2026
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 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
Agent-facing effector routes (wire interface; API LLD, agent-facing routes) on the effector service of #613 and #616. Agent JWT only (
AgentJWTMiddleware) andagent:sync, like config sync; every response carries the effector protocol header.PUT /api/agent/instances/{instanceId}/effectoractions[0].params.defaults.layout)GET /api/agent/effectsmeta.next-cursor), by plugin and state; 403 until the agent registered actionsGET /api/agent/effects/{id}PUT /api/agent/effects/{id}/statuseffectorblock answers 201 with{"effector": {"resync", "delivery_keys"}}(snake_case, like the heartbeat); others still get no body. A failure is logged and answered without a body (the agent retries next heartbeat).APIServices.EffectorSigner(loaded fromCCF_EFFECTOR_SIGNING_KEYwhen nil and effectors are on) andAPIServices.EffectorJobs, whichcmd/run.gotakes from the new worker accessorEffectorJobs()(nil, not a typed nil, without the rule engine).remote_config.overridable_action_config_flags(added in feat(agentconfig): effector actions and targets #599) is scrubbed, length-capped and bounded (40 entries) like the other remote-config lists, so the stored block stays within 64 KiB.Why
Plan: stack 3, PR 21. First PR of stack 3.
Test evidence
effector_agent_integration_test.go(through the SDK against the real routes): registration 409/200/idempotent/revision bump/422, a params field error's path in the body, effects 403 before registering, only held effects listed, 404 for another agent's effect, refs merged, 409/422 on reports, a non-https link dropped with the status kept, the held set shrinking, heartbeats with and without the effector block (resync on digest mismatch and once after an admin request, verification enqueued while pending), user tokens refused (401) on all four routes. The service tests of feat(effector): registration #613/feat(effector): status reports and held set #616 cover each check.TestEffectorJobsAccessor;TestNormalizeReportBoundsActionConfigFlagsand the remote-config/summary budget tests with the third list.Gate on this branch:
go build ./...pass;go vet -tags integration ./...pass; golangci-lint v2.15.0 (shared CI config, incl.unconvert) 0 new issues;make testpass;make swagno diff (regenerateddocs/committed here);go mod tidyno diff;go test -tags integration -p 1on./internal/api/handler/...,./internal/service/effector/...,./internal/service/worker/...pass.Size
Counted: 749 lines (added + removed, tests included;
docs/docs.goanddocs/swagger.*excluded).🤖 Generated with Claude Code