Ops Workflows
Ops commands are root-owned read/check workflows for humans and agents. They prefer live app manifests and avoid mutation unless they are running explicit smoke scripts.
Agent Bootstrap
Pre-invite waitlist handoff:
mere business waitlist join --email you@example.comThat opens the Turnstile and magic-link protected waitlist page. It does not create a workspace or write an onboarding pack.
Invite-code bootstrap for a normal first run:
mere business onboard start INVITE_CODE --json
mere onboard --workspace ws_123 --target codex --jsonOperator/agent bootstrap for an already-provisioned workspace:
mere onboard --workspace ws_123 --target codex --json
mere agent bootstrap --workspace ws_123 --target codex --jsonbusiness onboard start redeems an invite and bootstraps the workspace. onboard then runs the discovery/readiness path, writes an agent context pack with docs, manifests, auth status, doctor output, MCP config, and a workspace snapshot, then adds onboarding-report.json and ONBOARDING.md with readiness, remediation, and selector hints. agent bootstrap writes only the lower-level context pack.
Doctor
mere ops doctor --jsonChecks Node, pnpm, resolved CLI source/location, version command, completion, commands --json, and auth status.
Use this before cross-stack work. authStatus is a signal, not a hard failure for every app: Finance is token/profile based, and an unauthenticated Finance profile may be intentional until financial automation is needed.
Auth Status
mere auth status --all --json
mere auth status --app finance --json
mere finance profiles list --json
mere finance profiles login default --base-url https://<tenant>.mere.finance --jsonBrowser-auth apps keep app-local sessions. Finance stores scoped token profiles in ~/.config/merefi/config.json.
Media Local Processing
mere media process ~/Audio/interview.m4a --transcribe --embed --workspace ws_123 --jsonmere media is resolved through the normal app adapter chain. Local transcription and embedding then delegate to the public mere.run runtime. Run mere setup mere-run --json before processing; it can use an existing binary, build from ~/mere/run-public, or install a verified DMG. Then run mere setup mere-run models --app media --json to pull the models Media asks for.
Smoke
mere ops smoke --all --json
mere setup smoke --app projectsRuns each app's smoke:cli script from its repo.
Audit
mere ops audit --workspace ws_123 --jsonLoads app manifests and runs only commands marked auditDefault with read risk. This is intentionally read-only and safe for agent use.
Workspace Snapshot
mere ops workspace-snapshot --workspace ws_123 --json
mere context set-workspace --workspace ws_123
mere ops workspace-snapshot --jsonBuilds a grouped cross-stack snapshot from the same read-only manifest commands as audit. It requires an explicit workspace or a default set with mere context set-workspace --workspace ws_123.
The snapshot adds selector help for route-backed read-only audits:
- Today: uses
auth whoamiand route-backedtenant resolve --workspace WORKSPACE_ID; D1-backed booking/time commands are not default audit commands. - Zone: infers
--storeforstripe status. - Gives: passes the workspace id as
--tenant; Gives resolves it to the internal tenant.
Reading A Snapshot
Each app entry has:
appnamespaceokmanifestOkcoveragecommands[]
coverage reports how many read commands exist in the manifest, how many are marked as safe audit defaults, how many were executed, and which read commands were skipped because the app did not mark them auditDefault.
selectorHints reports the active workspace, inferred tenant/store selectors, and discovery commands for selectors that could not be inferred.
Each command entry has:
commandokcodestdoutstderr- optional
error
Agents should summarize failures first, then inspect the failed delegated command directly.
Reading Onboarding
After invite bootstrap or for an already-provisioned workspace, mere onboard --workspace ws_123 --json produces:
readinessScoresummaryapps[]selectorsremediation[]artifacts
Treat remediation[].nextCommand as the copy-paste path for setup work. Browser auth, Finance auth, destructive actions, and skill installs are recommended but not run automatically.
Common Remediation Patterns
Finance unauthenticated:
mere auth status --app finance --json
mere finance profiles list --json
mere finance profiles login default --base-url https://<tenant>.mere.finance --jsonWorkspace-specific product state:
mere ops workspace-snapshot --workspace ws_123 --app network --json
mere apps manifest --app network --json
mere network diagnostics metrics --workspace ws_123 --jsonApp route/selector uncertainty:
mere apps manifest --app APP --json
mere <app> <safe-list-command> --workspace ws_123 --jsonDo not use destructive commands from an ops workflow unless a user explicitly asks for that operation and provides or approves the exact guardrails.