Repository navigation
feat(effector): status reports and held set - #616
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/19-effector-status
branch
from
December 1, 2026 18:49
4650d02 to
b213462
Compare
ccf-lisa
Bot
force-pushed
the
effectors/19-effector-status
branch
from
December 2, 2026 12:07
b213462 to
13d3bab
Compare
This was referenced Dec 2, 2026
internal/service/effector: - ReportStatus records an agent's status report for one of its effects: status and message replaced, refs merged key by key (null removes), links replaced when present; a lower generation is stale (409), a higher one or an unknown status invalid (422). A link without a rel or an https href is dropped and the rest of the report kept, with "dropped N invalid links" appended to the message (PoC follow-up 8), instead of rejecting the whole report. A final report of the current generation (applied, for finished and inactive effects) drops the effect from the agent's held set. - ListEffects (keyset paged, by plugin and state) and GetEffect build the documents of the effects the agent holds, now. - Heartbeat stores the held digest, re-checks the agent's rule actions (a fresh instance recovers degraded ones), compares the digest with the desired held set, answers an admin's resync once, and enqueues verification while it is pending. HeldDigest matches the agent's format. docs/effectors/wire-interface.md: links are dropped, not rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccf-lisa
Bot
force-pushed
the
effectors/19-effector-status
branch
from
December 2, 2026 14:45
13d3bab to
2246fbb
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
Wire interface, status and what the agent holds:
ReportStatus: status and message replaced,refsmerged key by key (nullremoves),linksreplaced when present; a lower generation is stale (409), a higher one or an unknown status invalid (422), another agent's effect not found. A final report of the current generation (appliedfor finished and inactive effects; final statuses for event effects) drops the effect from the held set.relor anhttpshref (with a host) is dropped, the rest of the report is kept, and the stored message getsdropped N invalid linksappended, instead of rejecting the whole report.docs/effectors/wire-interface.mdis updated to say so.ListEffects(held effects, keyset paged, by plugin and state) andGetEffect, with documents built now; both need the agent to have registered actions.Heartbeat: stores the held digest, re-checks the agent's rule actions (a fresh instance recovers degraded ones), compares with the desired held set (HeldDigest, the agent's format), answers an admin's resync once, enqueues verification while pending.Why
Plan: stack 2, PR 19.
Test evidence
status_test.go: the held digest against the agent's pinned vector, refs merge, report validation (links never fail it), link filtering (http, no rel, javascript, no host, bad URL, nil vs empty), the dropped-links message.status_integration_test.go(Postgres): no actions, held effects only, filters, paging and bad cursors, another agent's effect; refs and links, one bad link and all bad links (status kept, message noted, links replaced), stale / future generations, unknown status, held set on final reports; heartbeat (digest, resync, admin resync once, verification, stored digest, degraded rule action recovers).Gate on this branch:
go build ./...pass;go vet -tags integration ./...pass;make lint(golangci-lint v2.15.0, CI config) 0 new issues;make testpass;make swagno diff;go mod tidyno diff;go test -tags integration -p 1on./internal/service/effector/pass.Size
Counted: 634 lines.
🤖 Generated with Claude Code