Hosted join

    Keep local receipt integrity connected to your workspace.

    The hosted control plane stores verification verdicts for runs you already govern locally. Workspace and tenant boundaries are enforced server-side. Token setup, receipt trust, and CLI sync are self-serve; no signing secret needs to be copied into a browser or support channel.

    STEP 1

    Create your workspace

    Sign in with email or Google. A workspace is provisioned for you on first sign-in, and you become its owner. No invite, no sales call, no token minted on your behalf.

    STEP 2

    Mint a hosted token

    Create a workspace token with runs:write, telemetry:write, receipt_keys:write, and runs:read. The token is shown once and stored server-side only as a hash.

    STEP 3

    Run and sync

    Point the CLI at the hosted endpoint. For a signed run, Core re-reads its local per-run key, validates the key ID, registers that key to the token-derived workspace over the authenticated endpoint, and then uploads the unchanged signed receipt.

    Receipt trust is established automatically by the CLI immediately before signed-run upload. The signing secret never enters the sync queue or receipt payload and should never be pasted into chat, GitHub, support tickets, or browser storage.

    Point the CLI at the hosted lane

    export MARTIN_API_TOKEN=mlp_...        # minted in /dashboard/api-tokens
    martin run "fix the flaky CI gate" --budget-usd 3 --verify "pnpm test"
    martin sync status
    martin sync flush

    Confirm the hosted result

    martin sync flush uploads queued governed runs. A successful flush exits 0; missing configuration or upload failure exits nonzero while preserving the queued run for recovery. Open Runs in the dashboard to confirm the same run ID and its stored verification verdict.

    martin sync status
    martin sync flush
    
    # Then confirm the same run ID in Dashboard → Runs.
    Receipts are signed before they leave your machine. The hosted lane verifies the signature and hash chain, then stores the verdict — it never re-signs your run, and a tampered payload fails closed.

    Advanced operator diagnostics and the tamper/readback runbook remain available in the hosted diagnostics page.