CogOS provides the bridge. The cogent decides what to build.
cogos_web_response — lightweight request_id → response mapping. Rows TTL'd after 5 min.Every cogent gets these. A cogent that doesn't use web pays nothing.
| Concept | Discord | Web |
|---|---|---|
| IO Bridge | Discord Bridge (Fargate) | Web Gateway Lambda |
| Inbound Channel | io:discord:dm | io:web:request |
| Capability | discord.send_message() | web.respond() / web.publish() |
| Response mechanism | Fire-and-forget (post to Discord) | cogos_web_response table (sync) |
| Dispatch | append → delivery → ingress → executor | append → delivery → ingress → executor |
| Handler | discord cog handler coglet | web cog handler coglet |
Serial handler. One daemon process, requests queue behind each other.
If handler is WAITING → first request dispatches it immediately.
If handler is RUNNING → new deliveries queue until it loops back.
Mitigations: