Skip to content
Workbench
Esc
↑↓navigate↵open⌘Jpreview
On this page

Production Executor bootstrap

Provision and recover the persistent production Executor environment used by Finance spaces.

Release behavior

After CI succeeds on a push to main, Production loads Proton Pass inputs, plans the Executor bootstrap, applies it, and then deploys Workbench with the verified runtime bindings. A manually requested production plan performs read-only Railway checks. See the CLI reference for commands.

The bootstrap creates one production Railway service with a persistent volume at /app/data, the pinned stock Executor image, a public domain, and stable authentication and account-encryption keys. It creates the service’s native identity and organization, a management key, the shared Finance Core app (previously named Ledger Goblins), and separate production and sandbox Intuit OAuth client registrations. Workbench receives the native resource IDs and provisioning flags through the deployment job’s environment. No host is created for each client or space.

The separate workbench-executor-domain Alchemy stack owns the executor.wurthy.co Railway custom domain on port 4400 and Cloudflare’s DNS-only routing and ownership records. It references the existing production service and environment by ID; it does not adopt or recreate the Railway service or volume. The Workbench OAuth return remains https://workbench.wurthy.co/executor/callback; Executor and Workbench have separate authentication origins.

Plan and deploy domain changes through the domain infrastructure commands. The operator Alchemy profile needs Railway project access and Cloudflare zone DNS access; the ordinary application deployment token does not need broader DNS permissions. Domain state uses the existing Cloudflare-backed Alchemy state service, independently of the application stack. Railway supplies the required CNAME and ownership TXT through CustomDomain.dnsRecords; only complete records inside the Executor hostname’s namespace are published. Railway owns the edge certificate. See Alchemy’s Railway domain examples and DNS resources.

Authentication cutover prerequisite

Release the origin compatibility code before running the origin migration commands. DNS and HTTPS belong to the separate Alchemy domain stack. The production bootstrap retains the selected authentication origin in its existing Railway receipt; ordinary releases preserve that selection.

Production bootstrap supplies the exact old and new API origins as an allowlist. Workbench reads native issuer discovery without credentials and accepts only those origins. Redirects and foreign issuers fail closed. Saved binding hosts, native organization IDs and authenticated grant envelopes must still match exactly. This lets the preparatory release follow either completed migration state without relaxing tenant or grant checks.

Preparation verifies the existing production SQL role, live binding inventory, encrypted seeds and native read-only policies, then writes a private rollback receipt. Deleted spaces are excluded. Apply prepares independent service sessions before changing the live origin, then changes the existing service’s authentication origin and creates replacement machine connections with identical policies and existing OAuth clients, and verifies each scoped grant. Provider accounts, app IDs and account assignments remain in place. Workbench grant-row IDs and authorization receipt IDs stay stable, preserving authorized Team tool history. The live binding hosts and replacement ciphertext commit in one transaction only if the prepared inventory is unchanged. New seeds use separate Team Durable Object refresh-cache entries; stale rotated tokens are never copied over them.

Allow a short interruption to machine tool access while the service restarts and grants are staged. Keep both hostnames, the stock image, volume and keys. Retain the receipt outside Git and public docs. Unknown external outcomes require reconciliation rather than automatic retries. Rollback checks that no new live client or permission change would be overwritten, restores the original origin and obtains fresh original-origin grants before restoring bindings atomically. After either direction, verify existing Finance connections and scoped tool reads, then reconcile production through its standard workflow so runtime bindings reflect the selected origin.

Only the first installation seeds the shared Finance Core app from the reviewed archive in the release. The manifest records its source revision and checksums. Subsequent runs preserve edits published in Executor and verify the app still supports caller-scoped space identity and QuickBooks accounts. Updating the release archive does not overwrite an existing central app; publish later app changes through Executor.

App preparation reads the QuickBooks TypeScript module, SQL migration, and query skill from the pinned Finance Core revision. It adopts the previous QuickBooks files when their hashes match the reviewed source and preserves Workbench’s provider and space bindings. Publish updates to the existing central app through Executor’s source lifecycle with explicit deployment approval. Both plan and apply require quickbooks.connectionProtocol to return version 1 and verify that the binding table is readable.

Finance Core app updates

Replace the former sanitized Ledger Goblins adapter using the CLI procedure. The replacement carries the complete pinned Finance Core Git archive: 1,593 tracked files with original paths, bytes, modes, link target and per-file hashes. Finance Core already preserves Ledger Goblins, Advisor and Orchestrator under upstream/; those sources remain intact. The app removes its old independent sanitized bundle and discovery routes. Exact owned-file hashes guard removal, while account/provider definitions, scoped grants and unrelated operator files remain.

packageInfo identifies the complete package. financeCore.skills mirrors the original CLI: one default entry point, or all seven with includeSpecialists. financeCore.catalog returns all 98 preserved methods; load and loadSkill return original source. financeCore.tools lists 21 default preparation tools, plus four reference adapters with includeReference. source.list/read retains the original repository paths; package.manifest/archive exposes byte-level verification and the full archive. Only the default adapted skill is registered in native Executor discovery; preserved upstream instructions are never auto-activated.

Executor runs TypeScript in workerd and cannot start Python subprocesses. The existing Computer image mounts the same verified package at /opt/finance-core, builds its original Node calculator bundle, and supplies Python, Node, Ruby, Beancount and captured-file dependencies. The Team finance_core tool calls the unmodified scripts/finance_core.py interface. Workbench binds current client, space, conversation item, operation, working root and read-only preparation allowlist; model arguments cannot replace those values. Execution is unavailable during background onboarding. This interface does not create canonical accounting records or authorize posting, approval or delivery. Large results remain exact private working files for selective reading and explicit saving.

The package remains its original preparation release. A successful calculation is distinct from financial acceptance, source completeness, saved work and delivery. Current chat descriptions are historical context; discover the installed identity and source instead. Original repositories and operational client/firm workspaces are unchanged.

Use the production self-hosted instance and the existing shared app ID. Hosted Executor accounts and published listings are separate; they do not sync this app. An authorized update uses a source commit with the exported expected revision, followed by deployment of that exact saved commit. Read the resulting app version, catalog, skills and account requirements before accepting the update. Keep the prior version for rollback. Do not replace live source with the release seed, install a second app or widen space grants as part of this update. A separately requested display-name change must retain the app ID and existing account/grant bindings.

Finance agents whose scoped grants include this shared app discover the same deployed Finance Core skills; there is no per-client skill copy to update. This does not give unrelated agents access or refresh skills already loaded into an in-progress conversation. GitHub changes still require the preparation and deployment procedure above.

Space provisioning remains a separate runtime operation. Creating an eligible client Finance space creates its connection adapter and scoped grants. Members authorize their own accounts through the existing Connections page.

Environment prerequisites

The production Railway project and environment IDs are pinned in the bootstrap settings. Its project token must target that exact environment. Proton’s dedicated production deployment vault contains the Executor production bootstrap item: Railway token, service email/password, host authentication secret, host encryption key, Workbench grant encryption key, and both Intuit client ID/secret pairs. The production recovery vault has a backup. Keep the host and grant encryption keys stable.

Intuit developer approval and redirect registration remain provider-side prerequisites. Register https://workbench.wurthy.co/executor/callback in both Intuit environments before releasing the production hostname change; retain previous callbacks while they are in use. The read-only bootstrap plan accepts the known previous production callback while proposing the new one. Apply still verifies that the running Executor host reports the new callback before enabling its bindings. The bootstrap registers existing developer credentials in Executor. It does not create an Intuit developer app or grant customer consent.

Recovery

Railway stores WORKBENCH_EXECUTOR_BOOTSTRAP_STATE and the generated management token alongside the service’s variables. Those receipts let later releases retain the same native identities without generating replacement keys. The persistent volume contains native users, apps, accounts, and authorizations. Back up and restore the volume and matching encryption keys together.

Bootstrap stops on an unexpected image, missing existing volume, mismatched encryption keys, ambiguous resources, missing management-key receipt, or changed Intuit credentials. It does not automatically retry a mutation whose outcome is unknown. Inspect the named operation and actual resources before rerunning. A failed bootstrap prevents the Workbench deployment from receiving new bindings; native resources already created remain available for reconciliation.

If a management key was created but its one-time plaintext token was not saved, restore the receipt or explicitly revoke and replace that named key after checking its consumers. Restore lost data before restarting bootstrap. Image upgrades and credential rotations require an explicit backed-up change; normal releases do neither.

A local stock beta.59 acceptance on November 23, 2026 verified real Intuit sandbox OAuth and a CompanyInfo read with no caller-supplied company ID. Production-company access and the deployed Workbench browser flow still require acceptance after the central app update and backend release. Accounts connected before company capture need a secure reconnect; see company binding.

Was this page helpful?