HTTP
What gen emits for one
@Query action (illustrative; never hand-written in a service):
stackra gen check that every endpoint is one action, a rule file .agents/rules/http-conventions.md scoped to services/**, and a generated-client drift check (gen:client:check) in pnpm verify.
Events
Events are facts, not commands. A service publishes one when it needs another to react and does not need an answer now.
Envelope, defined once as
EventEnvelope in @stackra/contracts. The actor is the action pipeline’s Actor with its full onBehalfOf chain (0098):
History
- 2026-10-20, 0125: operations are actions (0098); validation is
@stackra/validationon Zod (0095); integration event names and subscriptions follow 0078 and 0091; the envelope actor is the 0098 actor model; contracts follow 0117. - 2026-10-20, 0229: event names carry the module-key prefix (0141); the auth flag comes from the action’s API area (0082); errors follow 0140.