Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Linear webhook → Cloudflare Worker → Durable Object → exe.dev /exec → is

- Keep control: agents run on your own exe.dev VM, not a shared runner.
- Automate deliberately: match Linear issues by owner, creator, status, label, or assignee.
- Work together: use Herdr to observe, guide, or take over a running agent session.
- Isolate work: every agent run gets a fresh VM that is deleted as soon as the run ends.
- Stay isolated: each Linear workspace has its own Cloudflare Durable Object.
- Avoid duplicate work: a claimed issue stays claimed until its agent job completes.

Expand Down Expand Up @@ -55,8 +55,8 @@ For a headless machine, authenticate first with `npx wrangler login --device --b
- A Cloudflare account with Workers enabled.
- A Linear OAuth application with webhooks enabled.
- Optional: a ClickUp OAuth application for ClickUp task triggers.
- An exe.dev VM with Herdr and your coding agent (such as Codex or Claude) installed.
- An exe.dev HTTPS API token restricted to the exact SSH destination Factorize will use, for example `ssh exedev@my-vm`.
- An exe.dev account. Fresh VMs include supported coding agents such as Codex and Claude.
- An exe.dev HTTPS API token allowed to run `ls`, `new`, `ssh`, and `rm`.

### Develop locally

Expand Down Expand Up @@ -104,10 +104,10 @@ Create a ClickUp OAuth application with the callback URL `https://your-domain.ex
## Create a Job

1. Sign in with Linear.
2. Connect your exe.dev VM using its restricted HTTPS API token. Use the same user-qualified SSH destination you use interactively so Factorize and your terminal join the same Herdr session.
2. Connect exe.dev using an account-level HTTPS API token, repository URL, optional checkout ref, and the VM tags needed to attach integrations.
3. Create a Job, choose its execution target, and add authenticated provider triggers. Every Linear matching rule must match.

Matching provider events queue work up to the Job’s configured concurrency. When a run finishes, Factorize fills its slot from the queue and posts a link to the Herdr session in Linear.
Matching provider events queue work up to the Job’s configured concurrency. Each run creates a tagged VM, clones the configured repository, runs the agent directly, captures its output, and deletes the VM on every terminal outcome.

Cloudflare Worker failures can also start Jobs through the separately deployable Tail relay. See [Cloudflare Tail job trigger](docs/cloudflare-tail.md).

Expand Down Expand Up @@ -193,7 +193,7 @@ Factorize also supports the OAuth 2.0 Device Authorization Grant (RFC 8628) for
- Session cookies are signed, expire after seven days, and are checked against workspace membership.
- OAuth access is tenant-bound, scope-checked, revocable, and revalidates current owner membership at the shared service boundary.
- Public REST and MCP responses omit connection tokens, credential records, and internal execution requests/responses. Authorized run inspection includes the rendered prompt sent to the agent.
- Agent output is not copied into Linear; completion comments point back to the Herdr session on your VM.
- Agent output is retained in Factorize run inspection and is not copied into Linear.
- The dashboard uses a restrictive content-security policy and locally built Tailwind CSS.

## License
Expand Down
12 changes: 5 additions & 7 deletions docs/execution-boundaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,20 @@ requirements. The orchestrator persists the backend kind, its opaque handle,
capabilities, and observation destination URL; it never interprets the handle.

Backends map their native lifecycle into `queued`, `starting`, `running`,
`blocked`, `stopping`, `stopped`, `succeeded`, or `failed`. Historical `done`,
`recovering`, and `cancelled` rows are presented as `succeeded`, `starting`, and
`stopped` respectively, avoiding a risky rewrite of durable history.
`blocked`, `stopping`, `stopped`, `succeeded`, or `failed`.

`ExeVmBackend` and `AmpBackend` implement this boundary. exe.dev supplies account-level
VM creation, command transport, and deletion. The configured Codex, Claude, or Pi
harness runs directly in its isolated VM; output and exit status are durable files.
Every terminal outcome schedules idempotent VM deletion, with bounded retries
persisted by the orchestrator.
Amp cloud runs persist an opaque thread handle and expose the canonical
Amp thread URL. Amp does not declare output retrieval, so Factorize does not
ingest thread contents. Amp credentials are dashboard-only; REST and MCP expose
only non-secret target metadata and capabilities.

Launch and prompt delivery are deliberately separate operations. An existing
harness proves only that launch reconciliation succeeded. It never proves that
the run's prompt was accepted. Prompt delivery therefore has its own persisted
state and request/response receipt.
The prompt is delivered as part of direct process launch. The launch receipt is
persisted before polling begins so restarts can resume observation and cleanup.

## Job invocation boundary

Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build:css": "tailwindcss -i ./src/tailwind.css -o ./public/styles.css --minify",
"check": "tsc --noEmit && vitest run && npm run test:e2e && wrangler deploy --dry-run",
"test": "vitest run",
"test:e2e": "vitest run --config vitest.e2e.config.ts && vitest run --config vitest.agent-e2e.config.ts",
"test:e2e": "vitest run --config vitest.e2e.config.ts",
"deploy": "wrangler deploy"
},
"dependencies": {
Expand Down
35 changes: 0 additions & 35 deletions packages/app/src/exe-herdr-backend.ts

This file was deleted.

Loading
Loading