docs: plan for lit-triggers (reactive Lit Action runner)#371
docs: plan for lit-triggers (reactive Lit Action runner)#371clawdbot-glitch003 wants to merge 2 commits into
Conversation
Adds plans/lit-triggers.md describing a new outside-the-TEE service that fires Lit Actions in response to webhooks, EVM/Tron chain events, and cron schedules. Covers trust model (scoped usage keys, account key never touches the backend), multi-tenant Postgres schema, chain listener strategy, and an inline-action + computed-CID storage model. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
@glitch003 - basically agree with the plan - a couple of points for consideration:
|
i think we don't need to fully link auth, just like, this is a place for you to automate your chipotle stuff. and then my idea here (and i just updated the plan to make it more clear, hopefully) was have them enter their admin api key into the site, but, frontend only. the frontend sets up a usage key for them that can only call the group they need. and then the frontend sends the usage key to the backend for storage. so that's how they bind the trigger to their specific chipotle account. and yeah a form with like group id, ipfs cid, etc, as needed. i imagine most ppl will interface with this over API eventually
yeah def rate limiting per user to start. but let's add charging later, maybe. b/c if a trigger always runs an action thats good for us so this could be a free service.
i think we can come back to this |
Summary
Adds
plans/lit-triggers.md— a design doc for a new outside-the-TEE service that fires Lit Actions in response to webhooks, EVM/Tron chain events, and cron schedules. Trust model is built around scoped usage API keys (account key is provisioned in the browser and never touches our backend). Doc covers the multi-tenant Postgres schema, chain listener strategy (shared EVM listener for eth/base/arbitrum/bsc/polygon plus a separate Tron implementation), inline-action storage with CID computed via the existingipfs-hashercrate, and a six-PR delivery plan.No code changes — planning doc only.
Test plan
🤖 Generated with Claude Code