Repository navigation
Run agent work from signed Composio app events - #3
Merged
Brendan O'Leary (olearycrew) merged 4 commits intoNov 24, 2026
Merged
Brendan O'Leary (olearycrew) merged 4 commits into
Brendan O'Leary (olearycrew) merged 4 commits into
Conversation
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio. |
Brendan O'Leary (olearycrew)
changed the base branch from
main
to
feat/searchable-memory
November 24, 2026 22:23
Brendan O'Leary (olearycrew)
merged commit Nov 24, 2026
0ab3e92
into
feat/searchable-memory
13 checks passed
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.
Pidge could run scheduled work, but a connected app event could not start work. This adds approved event subscriptions that run the person's saved instruction as that user and reply in the original iMessage conversation.
Stack dependency: based on
feat/searchable-memory, PR #2. Merge #2 first, then this PR. The combined branch includes the reviewed memory fixes and preserves both feature histories with ordinary merges.Behavior
app_eventsdiscovers event types/config schemas and the user's active accounts, creates an approved subscription, lists configuration/recent runs, and disables or removes subscriptions. It refuses to take over an existing Composio instance./api/triggers/composioverifies raw-body signatures with the pinned SDK, requires V3 routing fields matching local ownership/account/type, and commits the inbox before acknowledgement. A subscription/log unique index deduplicates retries with different delivery IDs.Example setup input after discovery and approval:
{"action":"create","connected_account_id":"ca_test","trigger_slug":"GITHUB_COMMIT_EVENT","config":{"owner":"example","repo":"demo"},"instruction":"Summarize each new commit in one sentence and send its link here."}Evidence
All verification used synthetic data and an isolated disposable PostgreSQL 17 instance. No paid model, real subscription, iMessage, Slack, or email calls were made.
The synthetic commit tests exercise the real SDK signature verifier, database inbox, dispatcher, ownership/completion hooks, Eve recall lifecycle, and durable memory callback execution. They verify owner-scoped retrieval, signed replay once, refused memory changes, and that only preexisting notes reach the stubbed dreamer. Model output and channel delivery remain mocked; this does not establish live response quality or universal prompt-injection resistance.
Additional tests cover malformed/stale/future signatures, metadata mismatches, simultaneous deliveries, storage/setup races, bounded hand-off retries, expiry, unlink/disconnect, uncertain creation without SDK write retries, app-write approval after a restart, disable while approval is parked, and accepted-turn replay. Inherited memory regressions cover provenance closure, atomic correction/capacity, duplicate confirmation, concurrent save limits, one model-stub call for eight simultaneous dreams, expired leases, changed dependencies, management pagination, secret patterns, and both turn-start/compaction replay restored from JSON state.
The migration regression compares a fresh database with one containing original memory-0005 data, upgrades the latter through the complete current memory PR in a separate committed migration call, and then applies triggers. It verifies repeated migration, retained data, and equal final columns/indexes. Memory's 0005 and 0006 migration files/snapshots are unchanged on this branch.
Setup and limits
Run
pnpm db:migratebefore the combined app starts, in this order:0005_memory0006_memory_safety0007_app_event_triggersThe additional memory safety migration was required by the independent review; the trigger migration was regenerated after it. Configure a dedicated Composio project outbound webhook with V3 +
composio.trigger.messageand setCOMPOSIO_WEBHOOK_SECRET. Installation creates no external subscription. The setup guide records later live verification and uncertain-setup recovery.One account/event-type rule is supported; editing and resume are deferred. Hand-offs retry at most three times; events expire after 24 hours. Started model work never automatically starts a new turn after failure. Distinct provider logs may represent the same action, so neither app writes nor channel replies have universal exactly-once delivery.
Still unverified: real provider delivery/setup, model behavior and prompt-injection resistance, live dreaming, /memory browser interaction, and channel replies. Search remains keyword-based, secret detection heuristic, and tombstones exact-text only. Forgetting does not erase Eve history, provider logs, or backups. Neither PR was merged or deployed.
ELI5
Pidge can watch an app event and follow an instruction you saved. It can look up your notebook to help, but an event cannot rewrite the notebook, choose another person, or approve an action for you.