Sinatra Docs
Architecture

Data flow

From Linear webhook to GitHub PR — the full hot path.

This page is a stub. Content is being written.

Will cover

The end-to-end happy path:

  1. Linear webhook arrives → API verifies signature.
  2. Tenant lookup by organizationId.
  3. Thought activity emitted to Linear (acknowledgement).
  4. Temporal workflow started, scoped to tenantId.
  5. Worker decrypts model credentials via Cloud KMS.
  6. Sandbox creation (Daytona or local).
  7. Repo clone, .sinatrarc load, env injection.
  8. Agent run.
  9. Test execution (if .sinatrarc.hooks.test_command set).
  10. Branch push + GitHub PR open.
  11. Linear ticket update with PR link.
  12. Workstream transitions to pr_open.

On this page