Skip to main content
Stackra has no HTTP service yet. Encore is the generated runtime target (0091, 0124); services hold no Encore files. The examples use Encore’s api() because that is the chosen shape. The rules hold for any framework.

HTTP

What gen emits for one @Query action (illustrative; never hand-written in a service):
Enforcement: partial. The validator checks the service-unit files. Planned: a 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):
Enforcement: planned. A schema check of the envelope in the contracts package, plus contract tests per topic, when the first event exists.

History

  • 2026-10-20, 0125: operations are actions (0098); validation is @stackra/validation on Zod (0095); integration event names and subscriptions follow 0078 and 0091; the envelope actor is the 0098 actor model; contracts follow 0117.