Repository navigation
feat(sdk): effector types and client - #601
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/09-sdk
branch
from
December 1, 2026 16:45
b009546 to
5c3c646
Compare
ccf-lisa
Bot
force-pushed
the
effectors/09-sdk
branch
from
December 1, 2026 16:45
5c3c646 to
98ad160
Compare
This was referenced Dec 1, 2026
ccf-lisa
Bot
force-pushed
the
effectors/09-sdk
branch
from
December 1, 2026 18:49
98ad160 to
22ed1d2
Compare
sdk/types: the effector wire types (registration, delivery keys, the effect document, status reports, the heartbeat's effector block and response). sdk: Client.Effector (register, list and get held effects, report status) with the ccf-effector-protocol header and typed errors for 404 and 409, and Heartbeat.Send, which returns the heartbeat response (docs/effectors/wire-interface.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccf-lisa
Bot
force-pushed
the
effectors/09-sdk
branch
from
December 2, 2026 12:09
22ed1d2 to
c4f826f
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
The Go SDK side of the effector wire protocol (wire interface):
sdk/types/effector.go: registration (EffectorRegistration, actions with target schemes, observations andparamsschema/defaults/locks),DeliveryKey, the webhook body, the effect document (Effectwith rule, action incl.params, target, trigger, exceptions, applied status, links),EffectStatusReport(linksnil keeps / empty clears;refsmerged key by key), list options and pages, and the heartbeat'seffectorblock and response. Kebab-case on the effector routes; the heartbeat keeps its snake_case.sdk.Client.Effector:Register(PUT /api/agent/instances/{id}/effector),ListEffects/ListAllEffects(cursor paging, fails on a repeated cursor),GetEffect,ReportStatus. Every request carriesccf-effector-protocol: 1, requires agent credentials (ErrEffectorAuthRequiredwithout a request otherwise) and bounds response bodies; 404 and 409 map toErrEffectNotFound/ErrEffectGenerationConflict.Heartbeat.Send: likeCreatebut returns the response ({"effector": {"resync", "delivery_keys"}}); an empty body from an older API is a response with no effector block.Createis unchanged.Ported unchanged from the PoC.
Why
The agent uses this client for registration, effect fetches, status reports and the heartbeat. The API routes behind it come in stack 3; until then nothing calls these methods (an older API ignores the heartbeat's new optional
effectorfield, so the change is backwards compatible). Plan: stack 1, PR 9.Test evidence
sdk/effector_test.goruns every method against anhttptestserver (headers, paths, envelopes, paging, error mapping, heartbeat bodies, JSON round trips); new code is 75–100% covered.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;go test -tags integration -p 1 ./sdk/...pass.Size
Counted: 933 lines.
🤖 Generated with Claude Code