Record ignore_actors refusals so ignored spam is auditable - #21
Open
varunsood189 wants to merge 1 commit into
Open
varunsood189 wants to merge 1 commit into
varunsood189 wants to merge 1 commit into
Conversation
Previously listed actors were dropped quietly with no refusal or decision, so the overnight report could not show why spam was ignored. Co-authored-by: Cursor <cursoragent@cursor.com>
Owner
Session 16 — graded ✅Score: +100.
|
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.
Summary
Subscription
ignore_actorsdropped matching events quietly. No refusal was written and no decision appeared in the overnight report, so deliberate ignores looked like silence.This PR records an
ignore_actorsrefusal + decision (with reason) and returnsignoredin the process outcome, without starting an agent.What was broken
ignore_actorswas filtered out with no ledger entry.self_trigger, budgets, etc.) already recorded refusals —ignore_actorsdid not.Fix
s16code/events/engine.pyignore_actorsmatch:record_refusal(control="ignore_actors", ...),add_decision(...), include indecisions, setignoredcount.Proof
uv run pytest tests/test_autonomous_events.py::test_ignore_actors_are_recorded_and_do_not_start_agents -q→ passedrefusals[0].control == "ignore_actors"Diff is only engine + test. No
.env, tokens, or real channel traffic.Test plan
uv run pytest tests/test_autonomous_events.py::test_ignore_actors_are_recorded_and_do_not_start_agents -qignore_actorsand reason names the actors16code/events/engine.pytests/test_autonomous_events.pyMade with Cursor