{"ok":true,"message":"AgentStack MCP. Use POST /mcp for agentstack.execute or GET /mcp/discovery, /mcp/actions (full catalog), or /mcp/actions/summary (count only).","discovery":"/mcp/discovery","actions":"/mcp/actions","actions_summary":"/mcp/actions/summary","health":"/mcp/health","ai_prompt":"/mcp/ai_prompt","catalog_actions_public":953,"discovery_meta":{"transport":"streamable-http","execute_tool":"agentstack.execute","connect_help_uri":"https://agentstack.tech/mcp/connect","catalog_actions_public":953,"catalog_domains_public":71,"registry_tools_count":1026,"counter_ladder_note":"Three counts — do not conflate: registry_tools_count (full MCP registry); mcp_executable_total (callable MCP actions in agentstack.execute); catalog_actions_public (marketing floor MCP_CATALOG_ACTIONS); catalog_total_actions (GET /mcp/actions total incl. commerce_rest when present). mcp_surface_tools=2 (agentstack.execute + agentstack.read).","actions_summary_url":"/mcp/actions/summary","ai_prompt_url":"/mcp/ai_prompt","manifest_url":"/mcp/manifest","organs_url":"/mcp/organs","discovery_url":"/mcp/discovery","actions_url":"/mcp/actions","health_url":"/mcp/health","prompts_url":"/mcp/prompts/get","intent_url":"/mcp/discover/by_intent","recipes_url":"/mcp/recipes","mcp_docs_hub_url":"/mcp-docs","onboarding_docs_mirror_path":"/docs/mcp-first-call","oauth_connect_help_url":"/mcp/connect","oauth_authorize_well_known_url":"/.well-known/oauth-authorization-server/mcp","oauth_protected_resource_well_known_url":"/.well-known/oauth-protected-resource/mcp","oauth_authorize_path":"/mcp/.well-known/oauth-authorize","oauth_token_path":"/mcp/.well-known/oauth-token","oauth_browser_bridge_path":"/api/auth/mcp-oauth-bridge","device_code_authorize_path":"/api/oauth2/device/authorize","device_code_token_path":"/api/oauth2/token","session_probe_action":"auth.get_profile","auth_method_ids":["oauth_browser","device_code","api_key","mcp_auth_login"],"cursor_mcp_surfaces":{"plugin_namespace":"plugin-agentstack-*","plugin_auth":"oauth_connect_g_a174","user_namespace":"user-agentstack","user_auth":["device_code","api_key","mcp_execute_bridge"],"note":"Device Code in ~/.cursor/mcp.json does not sign plugin-agentstack-*; use Connect on plugin MCP or user-agentstack for hooks."},"oauth_bridge_cookie_only":true,"handoff_note":"ChatGPT Connect: POST /api/auth/mcp-oauth-bridge {\"cookie_only\": true} with the session Bearer (readable 200 + Set-Cookie), then a user-gesture top-level GET /mcp/.well-known/oauth-authorize (browser 302 to redirect_uri). Do not follow a 303 inside fetch. Do not GET /mcp/connect as the return. Device Code (/api/oauth2/device/authorize) is IDE-only, not this Connect. /api/auth/me/bootstrap may 401 until mint lands.","oauth_bridge_busy_recovery_hint":"bridge_busy","oauth_connect_failed_recovery_hint":"oauth_connect_failed","oauth_return_to_client_recovery_hint":"return_to_client_short","prompts_available":true,"auth_modes":["api_key","bearer","oauth_well_known","oauth_ecosystem","device_code","mcp_auth_login"],"onboarding":{"session_setup_ladder":[{"phase":1,"id":"authenticate","title":"Authenticate","summary":"Establish MCP identity before any tenant mutation.","paths":[{"id":"oauth","label":"GPT / Cursor MCP Connector OAuth","note":"Connect in client — user logs in at agentstack.tech; Bearer carries user_id + RBAC."},{"id":"device_code","label":"Cursor / Claude IDE (Device Code)","note":"POST /api/oauth2/device/authorize — user approves at /activate; not browser MCP Connect."},{"id":"credentials","label":"In-band MCP login","actions":["auth.login","auth.register"],"note":"auth.login returns access_token — configure client Bearer before next batch."},{"id":"anonymous","label":"Greenfield sandbox","actions":["projects.create_project_anonymous"],"note":"Returns user_api_key + project_id once; configure client headers."}]},{"phase":2,"id":"project","title":"Select or create project","summary":"Every tenant resource lives under a project_id.","paths":[{"id":"list","label":"Existing account","actions":["projects.get_projects","projects.get_project"],"note":"Pick one workspace; remember project_id for later steps."},{"id":"create","label":"New workspace (signed in)","actions":["projects.create_project"]}],"recipe_id":"mcp_session_setup"},{"phase":3,"id":"bind_context","title":"Bind context.project_id","summary":"OAuth/Device Code often defaults to ecosystem project_id=1.","example":{"context":{"project_id":2048}},"prompt":"/mcp/prompts/get?name=agentstack_session_setup"},{"phase":4,"id":"domain_work","title":"Work Graph loop","summary":"After VPS backend restart, first agents.work_next may fail while MCP tools import — wait ~15s and retry once (not a plan graph bug). Bound project: agents.work_next (recipe mcp_work_loop_v1) before catalog search. discovery.search is fallback only.","recipe_id":"mcp_work_loop_v1","note":"mcp_read_bootstrap is an optional read-only health check, not the first step."}],"session_setup_recipe":"mcp_session_setup","session_setup_prompt":"agentstack_session_setup","auth_methods":[{"id":"session_probe","label":"Session health check (after auth)","flow":"agentstack.execute","action":"auth.get_profile","aliases":["auth.me","auth.profile","auth.status","auth.whoami","auth.authenticate"],"note":"Confirm user_id and project context. REST GET /api/auth/me maps to the same MCP action; aliases auth.me, auth.profile, auth.status, auth.whoami resolve at runtime. discovery.health → system.ping; discovery.list_actions / discovery.actions → discovery.list; discovery.list_recipes → integrations.list_recipes; knowledge.list → knowledge.health."},{"id":"oauth_browser","label":"GPT / Cursor MCP Connector (recommended)","flow":"OAuth PKCE","authorize_url":"/mcp/.well-known/oauth-authorize","token_url":"/mcp/.well-known/oauth-token","connect_help_url":"/mcp/connect","note":"User signs in at agentstack.tech during Connect — token carries their user_id and RBAC. ChatGPT production OAuth requires login. Mobile/native return: GET /mcp/connect (connect_help_uri on OAuth metadata)."},{"id":"device_code","label":"IDE plugins (Device Code RFC 8628)","flow":"device_code","authorize_url":"/api/oauth2/device/authorize","token_url":"/api/oauth2/token","note":"Cursor/Claude Code: Connect in plugin UI or /agentstack-authorize — not MCP password grant."},{"id":"mcp_auth_login","label":"In-band MCP login","flow":"agentstack.execute","action":"auth.login","params":["email","password"],"note":"auth.login returns access_token — configure client Bearer before tenant work."},{"id":"api_key","label":"Personal API key","flow":"header","header":"X-API-Key","note":"When the client cannot complete OAuth (no browser, no connector), send the user's API key from the profile as X-API-Key or Authorization: Bearer. Scoped service_caps apply. When both headers are sent, a valid X-API-Key wins over Bearer; placeholder/expired X-API-Key is skipped so Connect OAuth Bearer can apply."}],"mandatory_order":["authenticate","project","bind_context","domain_work"],"anonymous_project":"POST /mcp with tool agentstack.execute — first step projects.create_project_anonymous","read_bootstrap_recipe":"mcp_read_bootstrap","read_bootstrap_options":{"continueOnError":true},"instruction_copy":{"avatar":"User avatar is POST /api/profile/avatar, field avatar. Check storage.list_files with project_id=1, scope=user, folder=ecosystem, and the URL on the profile. storage.upload does not become the avatar. auth.update_profile does not change the avatar. Profile JSON has a URL, never data: bytes.","scheduler":"scheduler.create_task recurrence is cron (minute hour day month weekday). timezone defaults to UTC and is stored for the next run. execute_at is one run and that task is removed after it fires. A cron without execute_at stays recurring.","stop_on_error":"Default stopOnError is true: steps after a failure are skipped. Recipe mcp_read_bootstrap sets continueOnError unless the request passes stopOnError.","session_workspace":"One identity session (one jti) covers every project membership allows. After auth.get_profile, if mutation_allowed or session_ready is true, set context.project_id only — do not call auth.switch_project and do not reconnect OAuth. There is no MCP tool context.set; pass params.project_id on each step instead. Switch + apply_bearer only when required_client_action is apply_bearer (project-scoped API key). Call auth.switch_project only when required_client_action is not none or mutation_allowed is false. Workspace membership summary: projects.get_projects(include_membership=true); projects.get_users lists members of one selected project (not workspace pick). jwt_project_mismatch is not logout. SPA and MCP OAuth Connect use session_type bearer_token (user-scoped). REST uses the same model: Bearer + X-Project-ID with server-side membership rebind.","hosting_file":"Site text edits: recipe mcp_hosting_edit_text_file_v1 or one hosting.bucket.file.patch (write_mode search_replace). The server refreshes the .gz sibling for nginx gzip_static and may cache_bust index.html — never bulk_delete .gz, never manual gzip. Omit bucket_id when hosting.project.status set primary_public_url. Not generation.fork. Omit generation_env_uuid on hosting.* byte writes — site edits do not fork. A stale uuid in batch context fails auto-fork; let the server keep the sandbox head. generation_fork_required on hosting.deploy_files is a status-projection defect: another generation.fork does not repair the bytes.","error_codes":"Trust step error_code: rag_embed_quota is embedding (not LLM provider_quota_exceeded). billing_service_unavailable / wallet_service_unavailable mean host dependency, not bad params. hosting.bucket.file.get 404 without a prior write in the batch is not_found, not not_ready. idempotency_conflict needs a new key or matching params. Integrations: duplicate_request, hook_verify_failed, hook_no_rule_match, connection_not_found, scenario_not_found, provider_not_found — not execution_error. Plan limits (rag_tier_limit, rag_embed_quota, sandbox_limit_exceeded, insufficient_permissions, buff_denied) include upgrade_url https://agentstack.tech/pricing and Compass playbook choose-billing-plane (task billing.choose_plan). list_unavailable means generation.list failed, not an empty project. parallel_canonical_drift means the sandbox would delete canonical money.expenses — realign, do not promote again. recipe_not_executable means run the phase recipe, not the template. auth.switch_project 401 project_session_required: authenticate (auth.login / auth.get_profile) — not global logout. 403 not_a_member / project_not_accessible: session stays valid; use projects.get_users; do not logout.","integrations":"Connect any API: integrations.list_recipes → integrations.connector_schema → install_recipe or create_connection → test_hook → connection_health. OAuth: oauth_begin. Recipe mcp_integrations_universal_connect_v1. Secrets in secrets= only.","outcome":"Preview is success with committed false. mcp_universal_safe_change is a non-executable template. mutation_allowed follows session_ready, not an infinite switch. Unknown scheduler commands save with runnable false. context.get source_status names rag_embed_quota for embeddings. agents.run_get uses the resource run_id; discovery.job_status polls MCP jobs. generation.list anchor_missing_from_list is stale: use generation.diff_vs_prod by UUID, not a new fork. Omit generation_env_uuid; the server keeps the sandbox head. That head is this user's latest open fork. Pass env_uuid only to read another person's fork. Stale generation_env_uuid (not found / not open): one generation.env_snapshot with env_uuid from the last fork receipt — omit stale uuid from context. bots.order_manager_bootstrap apply (dry_run=false) does not auto-fork; needs apply_ready. finance.expense writes canonical money.expenses, not the sandbox."},"domain_instruction_atoms":{"hosting":{"HOSTED_MCP_COOKIE":"Hosted /s/{pid}/mcp: session cookie aud=hosted_app with credentials:include — not operator MCP Bearer. POST /api/hosted-apps/{pid}/session mints the cookie. Keep nginx session affinity on this path when StackScript hosted defer is on (process-local neural pending); `script.run` coop may expose timings.neural_defer and dna_persisted=false until PG flush — see stackscript instruction plane_chooser.","MCP_OPERATOR_SESSION":"Operator MCP plane: X-API-Key or Bearer (Device Code OAuth). Bind context.project_id after auth.get_profile — not the hosted /s/ cookie.","HOSTING_GIT_HTTP_AUTH":"Smart HTTP /api/git/{project_id}/{bucket}.git: membership is on URL project_id. Owner session JWT works on any member project. Deploy operator secrets (OAUTH_ECOSYSTEM_API_KEY / AGENTSTACK_INTERNAL_API_KEY / ecosystem env aliases) authenticate like POST /mcp and map to synthetic user_id=1 for project membership checks only — not a user PAT. User PAT or project-scoped API key still requires that key's user_id on the URL project. 401 git_auth_failed: same Bearer or X-API-Key as MCP, confirm membership, or use owner JWT — not cross-project PATs alone.","HOSTING_BASE64_PADDING":"content_base64 validation_error: strip whitespace, add = until length % 4 — invalid padding fails before decode.","HOSTING_BASE64_DECODE":"Strip data: URL prefix; never pass PLACEHOLDER / YOUR_TOKEN literals as base64. Prefer UTF-8 content or hosting.bucket.file.patch search_replace over base64.","HOSTING_TEXT_EDITOR":"Text edits: hosting.bucket.file.patch write_mode=search_replace + replacements — same ladder as projects.patch_data and KB; prompt agentstack_text_editor.","HOSTING_ESM_MIME_EDGE":"ES module games ship vendor/*.mjs and import maps — browsers require JavaScript MIME at the edge. artifact-manifest.json mime fields are not HTTP headers; nginx types{} must map .mjs (and .wasm). If DevTools says application/octet-stream blocked the module, fix platform nginx (docs/hosting/headers.md, check_nginx_hosting_static.py) then redeploy edge — not a bucket republish. hosting.site.edge_health edge_ready does not probe Content-Type; curl -sI the .mjs URL after deploy.","HOSTING_REPLACE_SITE_CONFIRM":"replace_site=true wipes live pages — pass confirm_site_replace=true after dry_run. Default overlay: replace_site=false (merge upload).","HOSTING_GENERATION_ENV_OMIT":"Omit generation_env_uuid on hosting.* byte writes — site edits do not fork. A stale uuid in batch context fails auto-fork; let the server keep the sandbox head. generation_fork_required on hosting.deploy_files is a status-projection defect: another generation.fork does not repair the bytes.","HOSTED_MCP_BATCH_PROJECT_ID":"Hosted /s/{pid}/mcp execute: every step params must include integer project_id matching the storefront (SDK mcpBatchStep). Exempt discovery.list, discovery.status, auth.get_profile. Missing → hosted_step_project_id_required.","HOSTED_MATCH_FABRIC_BUDGET":"Hosted match sessions (cookie session_type=hosted_app) debit fabric on lane hosted_match_relay — up to ~480 script.run / cloud-save / rooms calls per minute (cost 1 each). Operator MCP keeps per-action buckets (cost 5). budget_exceeded on /s/{pid}/mcp: honor retry_after_ms; batch fewer discovery steps between ticks.","HOSTING_STRICT_DIFF_HTML":".html/.htm unified_diff is strict (no fuzzy) by default — use search_replace for small edits or strict_diff=false only when hunks are exact.","HOSTING_BATCH_POLL_SAFE":"While orchestration lock is active, these reads may poll in the same batch without blocking mutations: hosting.project.status, hosting.bucket.file.get, hosting.bucket.files.list, hosting.site.edge_health, hosting.release.list, hosting.site.resolve, hosting.site.build_status. hosting.site.build is not poll-safe (async enqueue needs options.goal). hosting.bucket.file.patch and hosting.deploy_files still require the lock to clear.","HOSTING_PATCH_PLANE_INTEGRITY":"Fail-closed patch integrity (INC-HOST-01): workspace and live planes reject patch when read window is incomplete (patch_base_incomplete) or output shrinks vs on-disk bytes (patch_truncation_risk) without allow_shrink. Large text: paginate hosting.workspace.file.get or hosting.bucket.file.get, then hosting.workspace.file.put — not search_replace on truncated base.","HOSTING_STATIC_INGRESS_ASYNC_QUEUE":"Large static ZIP ingress: hosting.site.import_archive with async_ingest=true (or over inline cap) enqueues hosting_ingress_ingest_queue job — poll job status via hosting.project.status or worker receipt; package.json / compile trees still route to site.build job_id. Grant path: hosting.site.upload_grant (single-use, TTL); multi-replica needs REDIS_URL (HOST-02).","HOSTING_INGRESS_GRANT_MULTIREPLICA":"Ingress upload grants use Redis TTL store when REDIS_URL or AGENTSTACK_REDIS_URL is set; otherwise durable disk under hosting_ingress_grants with prod warning ingress_grant_disk_only. Do not share grant tokens across replicas on disk-only — mint per upload.","HOSTING_GIT_HEAD_SHA_HONESTY":"Git journal honesty: hosting.git.status / changelog tip is the workspace HEAD at enqueue. hosting.site.build_status surfaces built_from_sha (alias of job.sources_sha) while running or completed — compare to hosting.git.log and changelog.json sources_sha before promote_branch target=prod. Mismatch means stale poll or superseded job — enqueue a new build.","HOSTING_THREE_ASYNC_INGRESS":"Three async ingress semantics — all terminal state is hosting.site.build_status (job_id only): (1) Git journal push → post-receive enqueues build (no separate hosting.site.ingest_status). (2) hosting.site.build default async=true → returns job_id; poll in a later execute. (3) hosting.site.import_archive or upload_grant on package.json / ZIP sources → job_id when compile is required; static-only archives may complete without node_vite. Never poll hosting.project.status for compile progress; aliases ingest_status/build.status → build_status.","HOSTING_PLATFORM_PROOF_BYTES":"Platform gallery proofs (catalog PIDs 1438–1443) use the same workspace/ + hosting.site.build pipeline as tenant sites. L0 edge probes read build-id.txt + sources-sha.txt (plain text, no-store) on live/preview roots — not HTML error pages. Operator bootstrap: showcase.workspace.hydrate then hosting.workspace.* — not generation.promote on tenant flagship DNA.","HOSTING_BUILD_PROOF_SIDECARS":"After hosting.site.build publish, live/preview trees expose build-id.txt and sources-sha.txt for edge probes, plus changelog.json (JSON Feed) and changelog.html when git projection succeeds. hosting.workspace.meta sources_sha is the workspace hash before build — sidecars update after publish. Do not hand-PUT sidecars; rebuild or ensure_proof_tree_provenance on ops paths.","HOSTING_COMPILE_TREE_JOURNAL":"Compile uses the git journal workspace_for_build selects — not an ad-hoc sibling *-main worktree path. When refs/heads/main equals refs/heads/dev, prod must compile the same journal tree agents verified on --dev/. Prod-only module_not_resolved for imports that exist under hosting.workspace.files.list prefix=src — fix journal/enqueue, poll dev green, then hosting.git.promote_branch ref=dev target=prod. Recipe mcp_hosting_build_fail_triage_v1.","HOSTING_WORKSPACE_LIST_PREFIX":"hosting.workspace.files.list and hosting.bucket.files.list take prefix= (directory filter), not path=. Coercion maps path→prefix for agents — prefer prefix in new calls. Example: prefix=src/adapters limit=200.","HOSTING_GIT_COMMIT_ON_PUT":"hosting.workspace.file.put defaults git_commit=true — journal commit after write. Use git_commit=false only for dry staging. git_auto_commit is an alias for git_commit. Patch plane: hosting.bucket.file.patch patch_plane=workspace accepts git_commit/git_push.","HOSTING_GIT_PLANE_CHOOSER":"Three planes — do not mix. (1) Hosting git: remote name agentstack, URL https://agentstack.tech/api/git/{project_id}/{bucket}.git. Default push is branch dev (preview /s/{pid}/{bucket}--dev/). Live site is branch main, or hosting.git.promote_branch with bucket_id (not bucket), ref=dev, target=prod. Do not delete branches dev or main. (2) generation.promote moves 8DNA only (config, fleet, knowledge) — not site bytes. Pass env_uuid on the write params. Skip a sandbox whose diff rewinds showcase.health. One of fork, diff_vs_prod, gates, promote per sync execute. (3) Platform checkouts agentstack-core and shared often have no git remote — they ship by VPS deploy. Empty origin means do not git push origin. agentstack-frontend tracks agentstack/dev. 'push to dev' is plane 1, not generation.promote and not target=prod.","HOSTING_GIT_JOURNAL_FLOW":"Per-bucket journal: hosting.site.quick_start(slug=…) or hosting.workspace.init (profile node_vite) — quick_start accepts slug/site_id, not bucket_name (validation_error if bucket_name is passed). Then hosting.git.init (bucket_name) → hosting.git.status (bucket_name or site_id from quick_start) → local git push agentstack HEAD:dev (preview) → poll hosting.site.build_status until completed (git post-receive enqueues; do not skip poll). Open /s/{project_id}/{bucket}--dev/. Promote: git push HEAD:main or hosting.git.promote_branch ref=dev target=prod. Vite: tenant journals use `node scripts/site-vite-build.mjs` (or legacy `npx vite build --base ./` for relative subpaths). Platform shell worker sets HOSTING_BUILD_TARGET=dev|prod plus HOSTING_PROJECT_ID/HOSTING_BUCKET_NAME so the script emits `/s/{pid}/{bucket}--dev/` for preview and `/` for prod apex — one algorithm, no raw `vite build --base ./` in deploy/vps/scripts/platform_shell.site.build.yaml. SDK and shared-ui: pin .gitmodules to https://agentstack.tech/api/git/1/sdk.git and .../shared-ui.git — the build symlinks vendor/ onto that one journal and does not clone or import_tree a second copy. Platform shells that already sit beside the monorepo checkout may keep sibling paths. npm: each build runs npm ci in the journal; shared download cache is AGENTSTACK_NPM_CACHE (not App Studio root node_modules — see docs/ai_builder/ROOT_NODE_MODULES_CACHE.md). ACL: git clone=project read; git push=project write. Work Graph: end the commit body with trailer `AgentStack-Task: <node_id>` (repeat the line for several nodes). hosting.git.log and changelog.json return task_ids. Do not store commits on the plan graph; optional agents.plan_patch evidence.git_shas only when the operator wants the reverse index.","HOSTING_MCP_AUTH_FOR_MUTATIONS":"hosting.* writes need session_ready + can_execute_mutation + service caps (user_full / Connect OAuth). service_cap_denied on hosting.workspace.init: widen API key (apikeys.create preset user_full) or Device Code --scope-preset=full — same recovery as other MCP mutations. VPS SSH scripts are ops fallback only; agents should use MCP with context.project_id on every execute. CLI bridge: node provided_plugins/cursor-plugin/scripts/mcp-execute.mjs --project-id <pid> --execution-intent direct <action> --params '{...}' (avoids batch_semantic_anchor_required).","HOSTING_BATCH_SEMANTIC_ANCHOR":"Sync hosting mutations need a batch anchor: options.execution_intent=direct, options.goal, or preflight.check in the same execute. CLI: mcp-execute.mjs --execution-intent direct. async=false does not skip the anchor. Poll hosting.site.build_status in a separate execute — one job_id per poll loop; honor poll_backoff_ms; stop when status is completed|failed|cancelled or on job_not_found (re-list via hosting.project.status then hosting.site.build).","HOSTING_SUBMODULE_LINK_MISSING":"App .gitmodules URL https://agentstack.tech/api/git/1/sdk.git (or shared-ui) must resolve to projects/1/_sources/{bucket} on the worker. One-time: hosting.git.init project_id=1 bucket_name=sdk and shared-ui (or ops setup_platform_git_library.py). The build symlinks vendor/ — no import_tree or git submodule update on the worker. Fix .gitmodules paths, push HEAD:dev, poll build_status.","HOSTING_COPYTREE_ANTIPATTERN":"Do not hosting.deploy_files an entire compiled SPA into preview/dev. Use hosting.site.build target=dev, hosting.workspace.import_tree, or ops seed_dev_preview_minimal — never bulk-copy live current/ as deploy_files. Symlink fallback on disk copies public live root only (not releases/).","HOSTING_ENSURE_PLATFORM_PREVIEW":"VPS post-deploy only: scripts/ensure_platform_frontend_dev_preview.py seeds dev preview + proof backfill for /s/1/frontend--dev/ — not MCP hosting.site.build and not full live copytree. See docs/operations/PLATFORM_SHELL_HOSTING_RUNBOOK.md.","HOSTING_POST_DEPLOY_VERIFY":"After hosting.deploy_files publish on flagship tenants: run agentstack-core/scripts/unity/unity_post_deploy_verify_1444.py (--prod-only or --quick). Published HTML/JSON report includes priemka_coverage (68 checklist items) — do not treat report.ok as full priemka sign-off when manual/partial counts remain."},"hosting_when_blocked":{"parametric_mutate_dry_run":"hosting.bucket.file.patch / hosting.deploy_files: readOnlyHint alone is misleading when effect_depends_on_params is set — read discovery.describe effect.mutates_when (dry_run=true stays read-class; publish=true mutates).","site_not_found":"hosting.project.status — confirm primary site before file ops","validation_error":"content_base64: strip whitespace, pad to length % 4 — or use UTF-8 content / hosting.bucket.file.patch. hosting.site.quick_start: slug only — not bucket_name. hosting.git.status: pass bucket_name or site_id from quick_start / project.status. hosting.site.build.status: pass job_id from enqueue receipt — not bucket_name alone.","replacement_not_found":"search_replace needs find and replace — hosting.bucket.file.get and confirm the substring","ambiguous_anchor":"Multiple find matches — use a longer unique find or set count on the replacement pair","revision_conflict":"expected_sha256 mismatch — hosting.bucket.file.get then retry with fresh content_sha256","patch_apply_failed":"hosting.bucket.file.get, then search_replace or strict_diff=true","patch_base_incomplete":"File exceeds one MCP read window (64k chars). Chain hosting.workspace.file.get with offset until truncated=false, then hosting.workspace.file.put with full body + git_commit=true.","hosting_file_paged_io_required":"Use hosting.workspace.file.get with offset and max_chars until truncated=false, then hosting.workspace.file.put — not hosting.bucket.file.patch on large sources.","patch_truncation_risk":"search_replace shortened the file vs on-disk bytes — paginate read first (hosting_file_paged_io_required) or pass allow_shrink when intentional.","release_pointer_orphan":"head_release_uuid or live_release_uuid missing in backup — hosting.release.list, hosting.release.promote with a listed UUID, or hosting.release.snapshot after generation.fork when generation_fork_required.","extension_not_patchable":"Text patch on live allows html, css, js, ts, json, md, txt, svg only — not tsx/jsx/yaml. React/Vite sources: hosting.workspace.file.put or patch_plane=workspace. Missing package.json on live tree means edit workspace/, not served /s/ bytes.","content_shrink_blocked":"allow_shrink=true when intentional, else search_replace for a partial edit","secret_pattern_blocked":"Remove API keys / bearer literals from site bytes — use hosted session cookie flow","preview_too_large":"Output >2MB — search_replace a section or hosting.deploy_files for large assets","hosting_inline_file_too_large":"Inline MCP cap 2MiB/file — hosting.site.upload_grant (alias storage.upload_grant) + HTTP POST for ZIP; or hosting.deploy_files with finalize=false and reuse upload_session_id from response; not one giant app.js in JSON","mcp_archive_inline_too_large":"ZIP >384KiB on hosting.site.import_archive — chunk content_base64 with finalize=false (reuse archive_upload_session_id), ≤384KiB decoded per step; last call finalize=true. Unpacked trees: hosting.deploy_files + upload_session_id. Or hosting.site.upload_grant + HTTP POST with X-Ingress-Grant.","unsafe_archive_url":"Blocked URL (SSRF) — use a public HTTPS git or ZIP URL","source_url_required":"Pass source_url or content_base64 on hosting.site.import_archive — or upload_grant for local bytes","archive_fetch_failed":"source_url fetch failed (HTTP, timeout, or size cap) — verify URL, retry, or use upload_grant","archive_index_missing":"ZIP has no index.html at root after strip=auto — list sample_paths, fix dist/ layout, or strip=off","archive_index_empty":"index.html is present but empty or too small — rebuild the dist bundle before import","ingress_grant_in_use":"Another upload is using this grant — wait for it to finish or mint a new upload_grant","ingress_grant_invalid":"Mint a new hosting.site.upload_grant — tokens are single-use and short-lived","ingress_grant_consumed":"Grant already consumed after a successful upload — mint a new upload_grant for another deploy","ingress_grant_expired":"Mint a new hosting.site.upload_grant — TTL is 15 minutes","invalid_zip_magic":"Body is not a ZIP archive — check Content-Type and rebuild dist as .zip","zip_slip":"Archive path escapes staging — rebuild dist without parent-directory entries","nested_zip_not_supported":"Nested ZIP members are rejected — export a flat dist.zip","hosting_upload_headers_required":"Resumable hosting finalize needs X-Upload-Target: hosting plus X-Upload-Bucket-Id and X-Upload-Project-Id (and replace confirm headers when mode=replace)","zip_too_many_entries":"Archive has too many files — split deploy, use hosting.git journal, or REST resumable ZIP","zip_too_large":"Compressed archive exceeds import cap — split the dist, use hosting.git, or resumable PATCH with X-Upload-Target: hosting","zip_member_too_large":"A single ZIP member exceeds uncompressed cap — re-export a normal Vite/build dist (no packed huge assets inside one entry)","zip_uncompressed_limit":"Total uncompressed bytes exceed site import cap — prune assets, split deploy, or use git journal","zip_compression_ratio_exceeded":"ZIP looks like a compression bomb — export a real build dist; nested zips are rejected","hosting_concurrent_deploy":"Deploy/import burst cap for this bucket — wait a minute, reuse idempotency_key after the prior run finishes, or hosting.deploy_files with the same session","hosting_ingress_grant_rate_limited":"Wait and retry upload_grant — max 30 mints per hour per operator","invalid_path":"hosting.bucket.files.list — confirm path exists and suffix is patchable","hosting_grep_truncated":"truncated_reason max_files|max_matches — add glob or prefix, then hosting.bucket.file.patch. Do not raise max_files to 500 on the first retry.","hosting_archive_quota_exceeded":"Project release-archive bytes over buff cap — hosting.release.list, delete stale releases (hosting.release.delete), or upgrade limits. Live publish can succeed; auto_snapshot is soft-fail only.","hosting_quota_exceeded":"Project hosting byte quota full (live tree + workspace) — hosting.release.list, delete stale releases (hosting.release.delete), or raise hosting buff. Same recovery as hosting_archive_quota_exceeded; snapshot may soft-fail while publish succeeds.","prune_exhausted":"Snapshot auto-prune dropped unpinned archives (or had none) but a full-tree hosting.release.snapshot still does not fit the owner pool. hosting.quota.breakdown → hosting.release.list → hosting.release.delete — not hosting.gc.orphans unless breakdown shows _gen drift. Do not generation.fork for byte-only hosting.","hosting_snapshot_rate_limited":"Upload/publish succeeded; hourly snapshot cap hit — skip manual snapshot. Poll hosting.site.edge_health if the public URL is not ready.","hosting_prune_requires_confirmation":"Publish would drop live paths absent from files[] — run dry_run, review manifest_diff.removed, then confirm_prune=true.","hosting_replace_requires_confirmation":"replace_site=true requires confirm_site_replace=true — run dry_run first to preview paths","not_ready":"Batch write still projecting — poll hosting.bucket.file.get or hosting.bucket.files.list","not_found":"Path absent on bucket — hosting.bucket.files.list before patch","insufficient_permissions":"Project read or hosting operator required — auth.get_profile then rbac.check_permission","invalid_parameters":"project_id and bucket_id or bucket_name required for bucket file ops","bucket_id_or_bucket_name_required":"hosting.project.status — use primary_site_bucket_id or bucket_name; in a batch, pass bucket_id from the prior step result (refs) or primary_site_bucket_id; omit bucket_id only when primary or exactly one site exists; hosting.site.quick_start only when zero sites","bucket_not_found":"hosting.project.status — verify bucket_id/bucket_name; DNA/index drift — not quick_start if sites exist","release_not_found":"hosting.release.list — confirm release_uuid before delete or promote","release_pinned":"Unpin in UI or pick another release — pinned rows cannot be deleted","paths_or_prefix_required":"Pass paths[] or prefix — hosting.bucket.files.list to build the path set first","forbidden":"Ecosystem admin required — auth.get_profile for owner role","workspace_sources_sha_truncated":"Source hash walks the whole tree. Bulk copy is hosting.workspace.import_tree, then hosting.site.build. hosting.deploy_files writes live bytes, not workspace sources.","build_not_enqueued":"Worker-only role cannot enqueue — use AGENTSTACK_PROCESS_ROLE=all|api or async=false sync build","job_id_required":"Pass job_id from hosting.site.build enqueue response","job_not_found":"Unknown or expired job_id — do not poll the same id for minutes. hosting.project.status → hosting.site.build (new enqueue) → poll the new job_id only.","async_required_for_vite":"node_vite builds must use async=true (default). Poll hosting.site.build_status — do not await vite inside a sync MCP execute (neural_bus / batch wall-clock).","not_cancellable":"Job already terminal — poll hosting.site.build_status; enqueue a new hosting.site.build with force after a successful cancel of pending|running only.","job_lost_after_restart":"Job file is gone after restart — do not poll the same id. hosting.project.status → hosting.site.build (new enqueue) → poll the new job_id only.","enqueue_lock_busy":"Retry hosting.site.build with the same project_id and bucket — the lock has no job_id yet. Do not poll hosting.site.build_status until enqueue returns job_id.","build_already_queued":"Poll hosting.site.build_status; a new dev push refreshes pending/running sources_sha","site_build_in_progress":"Another site.build holds the bucket lock — poll hosting.site.build_status with job_id from enqueue or build_already_queued","content_required":"Pass UTF-8 content or content_base64 for workspace writes — hosting.workspace.file.get before full replace","git_repo_missing":"Existing bucket: hosting.git.init with bucket_name or bucket_id. hosting.site.quick_start only when hosting.project.status shows no site.","git_dirty":"Commit or reset the journal before pull_upstream or git_commit on a dirty tree","git_binary_missing":"Rebuild backend image (apt git); optional GIT_BINARY env","git_symlink_failed":"Smart HTTP git requires Linux VPS _sources symlink layout","git_push_body_too_large":"Push pack exceeded API body cap or nginx limit — never commit node_modules/dist; sources only; VPS runs site.build.yaml npm ci + vite","git_worktree_update_failed":"quick_start left untracked index.html — hosting.git.init scrubs stubs and sets receive.denyCurrentBranch=ignore; push dev again","git_argv_rejected":"Server git allowlist blocked a prod worktree step (often reset --hard HEAD after ensure_prod_worktree). Check system.version build_id/git_sha — stale image if fix missing. Until RebuildBackend ships hosting_git_sync reset allowlist: (1) hosting.site.build target=dev publish=true async=true, poll build_status; (2) hosting.release.list; (3) hosting.release.promote with release_uuid only (omit bucket_id on nano site ids); (4) hosting.site.edge_health. Do not loop promote_branch target=prod on the same error.","git_failed:status":"Journal git broken — hosting.git.init or platform_shell_seed then re-init","git_failed:log":"Could not read journal log — hosting.git.status then hosting.git.init","git_ref_not_allowed":"Use ref main or dev only — public changelog uses the same refs","git_cursor_invalid":"cursor must be a hex commit SHA from prior next_cursor","git_failed:init":"hosting.git.init failed — check API image has git; then platform_shell_seed","git_failed:fetch":"Upstream fetch failed — hosting.git.status; fix remote URL or credentials","git_failed:merge":"Merge onto dev failed — hosting.git.status. Dirty tree is git_dirty. hosting.git.promote_branch retries ff then a merge commit; pull_upstream stays ff-only.","git_ref_missing":"Ref is not on this journal — git push the branch first, then hosting.git.promote_branch","journal_requires_push":"Catalog git_journal bucket — workspace SHA builds are disabled. Run hosting.git.init, push refs/heads/dev (preview), then main or promote_branch for prod.","journal_not_initialized":"Git journal missing under the bucket workspace — hosting.git.init before git push or site.build.","journal_main_missing":"Production republish expects refs/heads/main on the journal — push main or hosting.git.promote_branch ref=dev.","git_ref_not_on_dev":"target=prod requires the ref already on dev. hosting.git.promote_branch target=dev first, open /s/{project_id}/{bucket}--dev/, then target=prod ref=dev. That fast-forwards main. A direct git push to main also builds production.","dev_not_verified":"Production build requires the prod tree at the current dev branch tip. Push dev, poll hosting.site.build_status until preview succeeds, then target=prod or promote_branch ref=dev.","git_not_ff":"main is not a fast-forward of this ref. Push the prod commit onto main, or merge main into dev first. promote_branch does not rewind main.","first_prod":"When refs/heads/main is still the lone init commit, use hosting.git.promote_branch ref=dev target=prod — not git push dev:main (unrelated histories).","unrelated_main_init":"Git client rejected dev:main — server main placeholder is not an ancestor of dev. Use hosting.git.promote_branch ref=dev target=prod, then poll hosting.site.build_status.","git_failed:checkout":"Could not checkout dev or main — hosting.git.init refreshes the journal hooks","inline_worker":"Worker role cannot enqueue — run hosting.site.build from the API container (or Storage Hub) and ensure backend-worker profile drains the queue","import_root_not_allowed":"import_archive source_root is a server checkout path for platform seed only. Tenant git repos: pass HTTPS git URL as source_url on hosting.site.import_archive (not a ZIP). For platform shell: set PLATFORM_BUILD_CONTEXT_ROOTS or platform_shell_seed.","framework_not_static":"Archive or journal needs a static export (dist/, build/, out/) or a buildable Vite/Astro tree. Next.js without out/ is not static — export with next export/out or upload a Vite dist ZIP. Hugo: ZIP the generated public/ folder.","package_manager_unsupported":"Worker install uses npm only. Add package-lock.json and retry import_archive, or regenerate lock with npm install locally and re-upload.","git_unrelated_histories":"Fast-forward from upstream failed and adopt_init could not align dev. Use hosting.git.status, resolve conflicts locally, or hosting.git.init on a fresh bucket.","build_job_stale_running":"Worker died mid-build — job failed automatically. Re-run hosting.site.build with force=true or push dev again after fixing workspace.","platform_shell_layout_missing":"site.build.yaml is the platform monorepo file but this bucket has no agentstack-unified-sdk tree. Delete that yaml and run hosting.workspace.init with profile static or node_vite. Do not import_tree the SDK into this bucket. Platform shell seed is ops-only; app SDK pins are .gitmodules.","hosting_gate_failed":"Publish gates failed on staged build — read issues[] / error_tail. Common node_vite: absolute href/src like /messenger/assets/... while preview is /s/{pid}/{bucket}--dev/ — rebuild with vite --base ./ in site.build.yaml. Then push dev and poll hosting.site.build_status.","hosting_missing_reference":"Static href/src/url() points at a path not in the deploy batch or live bucket — hosting.deploy_files dry_run lists missing_references; upload assets or fix links","slug_exists":"Pick another slug — hosting.project.status lists taken vanity slugs","sites_max_reached":"buffs.get_effective_limits — upgrade plan or archive an old site bucket","execution_error":"Retry once; agentstack_diagnose if enqueue or quick_start persists","batch_semantic_anchor_required":"Default async=true still needs a batch anchor: options.execution_intent=direct, options.goal, or preflight.check. CLI: mcp-execute.mjs --execution-intent direct. async=false does not skip the anchor.","service_cap_denied":"Widen the key with apikeys.create preset user_full, or Device Code --scope-preset=full. Same denial on hosting.git.init, hosting.workspace.init, and hosting.site.build.","bytes_exceeded":"Staged build output exceeds the byte cap. Shrink the dist, push dev, poll hosting.site.build_status.","changelog_degraded":"Release published but public changelog.json was not refreshed (git read error, output size cap, or preserve-stale path). completed jobs expose changelog_degraded; when site.build.yaml sets changelog_strict=true the job fails with this code. hosting.git.log for the operator slice; fix journal or lower changelog_limit; rebuild with force=true.","journal_context_missing":"Platform shell worker layout: monorepo siblings beside the journal (assert-journal-build-context.mjs). Set PLATFORM_BUILD_CONTEXT_ROOTS to the host checkout on api+worker, or run platform_shell_seed once. Tenant apps: prefer project 1 sdk/shared-ui git journals + .gitmodules symlink bind — not import_tree per app.","submodule_link_missing":"App .gitmodules points at agentstack.tech git but projects/1/_sources/{sdk|shared-ui} is missing, empty, or vendor/ could not symlink. hosting.git.init bucket_name=sdk (and shared-ui if pinned), then seed once (ops setup_platform_git_library.py --library sdk, or git push to /api/git/1/sdk.git). Fix .gitmodules to https://agentstack.tech/api/git/1/sdk.git; package.json file:vendor/...; poll build_status. No worker git clone and no import_tree SDK into tenant buckets.","module_not_resolved":"error_tail names the missing import. Confirm the file exists via hosting.workspace.files.list prefix=src (journal — not live /s/). If dev build succeeded but prod failed on the same SHA, stale *-main compile tree — green --dev/ then hosting.git.promote_branch ref=dev target=prod (recipe mcp_hosting_build_fail_triage_v1). Else fix dependency/.gitmodules, push dev, poll, then prod.","sources_sha_mismatch":"Worker compile tree does not match job sources_sha — usually stale *-main worktree vs journal. hosting.workspace.meta sources_sha vs job field. Dev-first: target=dev poll completed, then promote_branch ref=dev target=prod (not a blind target=prod rebuild). Recipe mcp_hosting_build_fail_triage_v1.","npm_install_failed":"error_tail is the npm error. Fix the lockfile or sibling package, push dev, poll hosting.site.build_status. Promote with target=prod only after the preview completes.","build_cwd_missing":"site.build.yaml cwd is not in the journal. Fix the recipe, push dev, poll build_status.","build_cmd_failed":"Read error_tail and failed_cmd. Fix package.json/site.build.yaml in workspace (patch_plane=workspace). Land on dev: git push agentstack HEAD:dev or hosting.git.promote_branch ref=HEAD target=dev with git_push on patch. Poll hosting.site.build_status. Green dev preview → hosting.git.promote_branch ref=dev target=prod (not hosting.site.build target=prod as first go-live).","workspace_path_denied":"Path is blocked for workspace ingress (e.g. node_modules, dist) — edit sources under src/, not build output trees.","file_on_workspace_only":"File exists only in workspace sources — retry hosting.bucket.file.patch with patch_plane=workspace, then hosting.site.build target=dev.","subpath_absolute":"index.html references root-absolute /assets/ — use Vite base ./ (scripts/site-vite-build.mjs or npx vite build --base ./) and relative script src.","build_timeout":"Raise build_timeout_seconds or shrink the step, push dev, poll hosting.site.build_status.","competence_blocked":"read_only competence_tier blocks mutations — set dev_operator on the session or use Storage Hub Sources UI (PTC hosting.workspace_build) for human publish","path_required":"Pass path relative to workspace/ — hosting.workspace.files.list to discover paths","workspace_file_missing":"File absent in workspace/ — hosting.workspace.init or seed_from_live","workspace_path_invalid":"Path must be relative under workspace/ without .. segments","workspace_path_escape":"Path escapes workspace root — use a relative path under workspace/","workspace_file_too_large":"Split file or use hosting.deploy_files for large assets","permission_denied":"L2 admin RBAC — preflight.check or permissions.effective action=hosting.deploy_files (action_params.publish=true, slim files:[{path,bytes}] for probes); rbac.check_permission(admin). If admin granted but deploy/preflight denies: stale permissions_bitmap — reconnect OAuth; ops scripts use execution_intent=direct; core bitmap_session_reconcile + hydrate_mcp_execute_principal."},"generation":{"GENERATION_ENV_OMIT":"Omit generation_env_uuid; the server keeps the sandbox head. That head is this user's latest open fork. Pass env_uuid only to read another person's fork.","GENERATION_STALE_ENV_UUID":"Stale generation_env_uuid (not found / not open): one generation.env_snapshot with env_uuid from the last fork receipt — omit stale uuid from context. bots.order_manager_bootstrap apply (dry_run=false) does not auto-fork; needs apply_ready.","GENERATION_ANCHOR_MISSING":"generation.list anchor_missing_from_list is stale: use generation.diff_vs_prod by UUID, not a new fork.","GENERATION_DIFF_NOT_GATE_A":"generation.diff_vs_prod success does not imply sandbox_gate.apply_ready. When catalog_bypass=true or catalog_coherence.committed_without_list_hit=true, run generation.env_snapshot with the same env_uuid before script.* mutates.","GENERATION_LIST_STALE":"generation.list list_stale: retry projection.verification_action once (prefer generation.env_snapshot), then generation.diff_vs_prod. Do not fork to repair projection lag.","GENERATION_LIST_UNAVAILABLE":"list_unavailable means catalog read failed, not an empty project — retry generation.env_snapshot once (env_uuid from fork if known), else generation.list once, then diagnose; do not fork to fill the list.","GENERATION_NOT_BUYER_CHECKOUT":"generation.list / gates / promote answer sandbox readiness — not hosted shop IAP checkout. Buyer digital purchase uses shop.* (shop.enablement.status → shop.checkout.create). When session_ready, do not route checkout to projects.create_project_anonymous.","GENERATION_ENV_SNAPSHOT_BATCH_SAFE":"generation.env_snapshot is a batch-safe read (B1): one catalog load + Gate A — safe to call once per sync batch for recovery; not a write and not a fork substitute.","GENERATION_NEXT_ACTIONS_HINTS_ONLY":"next_actions and recovery_hint on gate reads are navigation hints, not operator consent to mutate prod. When sandbox_gate.apply_ready=false, STOP — do not auto-run generation.fork or dry_run=false bootstrap from agent loops. Exception: bots.order_manager_bootstrap dry_run=true is planning only — it does not require apply_ready; pass env_uuid from generation.fork before dry_run=false apply (Gate B).","GENERATION_GATE_AFTER_FORK":"After generation.fork, reuse data.env_uuid for mutations and Gate A probes — generation.env_snapshot (lightest) then bootstrap dry_run=true; generation.supply_status only when tier/quota needed. Batch context honors params.env_uuid when list lags (hydrate + memo bust).","GENERATION_PROBE_PREFERRED":"Anti-pattern: three separate executes (generation.list + generation.status + generation.supply_status) without env_uuid. Prefer one batch: generation.env_snapshot with env_uuid from fork, then bots.order_manager_bootstrap dry_run=true.","GENERATION_SANDBOX_QUOTA_ZERO":"Sandbox unavailable or quota zero — do not invent env_uuid; check generation.supply_status (supply_scope=gate) or generation.env_snapshot, then fork only when quota allows.","GENERATION_PARALLEL_DRIFT":"parallel_canonical_drift blocks promote when the sandbox would delete canonical money.expenses — generation.realign_to_prod, do not promote again.","GENERATION_REALIGN_DRY_RUN":"Discard sandbox edits — generation.realign_to_prod dry_run first; path_prefixes for partial revert; not a substitute for promote.","GENERATION_NOT_GIT":"generation.promote moves 8DNA (config, fleet, knowledge), not git and not site bytes. Hosting git remote is named agentstack; default push is branch dev (preview). Live site is branch main or hosting.git.promote_branch with bucket_id, ref=dev, target=prod. Pass env_uuid on the write params or the server may bind a different open fork. Do not promote a sandbox whose diff rewinds showcase.health. One of fork, diff_vs_prod, gates, promote per sync execute. Platform agentstack-core and shared often have no remote — those ship by VPS deploy.","GENERATION_PROMOTE_VERIFY":"AFTER generation.promote: (1) settled success = committed=true or SDK isPromoteSettled(receipt).success — accepted≠settled, (2) prod_head changed OR effect=noop expected, (3) script.list without env shows script_id+code_hash, (4) diff_vs_prod empty for promoted script paths, (5) on failure STOP — no re-promote, no realign_to_prod discard. See docs/operations/MP_PROMOTE_RECEIPT_LITERACY.md.","GENERATION_SAFE_CYCLE_LADDER":"auto_generation_mode on: most MCP mutates auto-fork sandbox → generation.diff_vs_prod → generation.gates → generation.promote (auto_promote_strategy) — each in its own sync execute (GENERATION_SYNC_BATCH_BUDGET). Exception: bots.order_manager_bootstrap apply never auto-forks — generation.env_snapshot then dry_run=false with env_uuid when sandbox_gate.apply_ready. Knowledge config: knowledge.config.patch / knowledge.prompt.patch (not projects.patch_data on config.knowledge.*). Pre-mutate: preflight.check + knowledge.health. No prod dna_set_* / leaf writes without sandbox anchor — not deploy scripts.","GENERATION_DIRECT_PROD":"direct_prod_roles (default owner) write production and skip auto-fork. Everyone else accumulates on their own open sandbox branch. Pass env_uuid or X-AgentStack-Env only to stay in a chosen sandbox.","GENERATION_APPROVAL_MODES":"auto_generation_approval_mode: off | at_least_one | min_count | min_percent | manual_only. manual_only blocks auto-promote. generation.approve records one approver; promote waits until quorum. Legacy require_approval true means at_least_one.","GENERATION_CANARY_LADDER":"Canary traffic is generation.canary.advance / generation.canary.abort on a rolling_out anchor. Strategy comes from auto_promote_strategy — do not invent weights.","GENERATION_CHECKPOINT_LADDER":"generation.checkpoint snapshots merged DNA. generation.rollback opens that checkpoint as a new draft sandbox. Restore prod only via generation.promote.","GENERATION_DISCARD":"generation.discard is generation.realign_to_prod with dry_run default true. Pass source_revision from the last diff. dry_run=false applies the revert.","GENERATION_HOSTING_RELEASE":"generation.hosting.release moves a site release pointer on DNA only. Live HTML/assets ship via hosting.publish (hosting.deploy_files), not this tool. Does not fork 8DNA or replace generation.promote.","GENERATION_NOTIFY":"generation.notify pings operators about a sandbox anchor. It does not promote, approve, or change DNA.","GENERATION_RECIPE_NO_SHARED_BATCH":"No shared/mcp/recipes/ tree — generation diff+gates live only in agentstack-core/mcp/recipes as separate sync executes (GENERATION_SYNC_BATCH_BUDGET).","GENERATION_SYNC_BATCH_BUDGET":"generation.diff_vs_prod, generation.gates, and generation.diff are sync CPU-heavy — at most one per agentstack.execute (60s mcp_batch). Split UF_DIAGNOSE / mcp_generation_diff across separate executes; reuse fork env_uuid / generation.env_snapshot in the same batch via spine memo. UF_F1: diff_vs_prod stashes generation_promote_heads on _batch_preflight_spine; gates and promote peek it (one resolve+diff per batch context).","GENERATION_PROMOTE_HEADS_SPINE":"UF_F1: generation.diff_vs_prod resolves prod/sandbox heads once and stashes generation_promote_heads on _batch_preflight_spine. generation.gates and generation.promote peek that bundle in the same MCP batch context.","GENERATION_DIFF_SOURCE_REVISION":"CAS source_revision is prod_head_uuid:sandbox_head_uuid from the last generation.diff_vs_prod (also top-level source_revision). Use with generation.realign_to_prod / generation.discard before dry_run=false.","GENERATION_GATES_MANUAL_APPROVED":"generation.gates optional manual_approved=true marks the manual approval gate passed (REST POST gates/run parity). Quorum still needs generation.approve when approval_mode requires it."},"generation_plane_chooser":"Sandbox: omit generation_env_uuid; the server keeps the sandbox head. That head is this user's latest open fork. Pass env_uuid only to read another person's fork. Gate A probe: generation.env_snapshot first (env_uuid from fork receipt); defer generation.list until historical_all catalog or quota proof. A CRM or scheduler read stays on that category's fork for this user. Empty generation.list is not zero anchors. list_unavailable is a failed read. A pointer that is not an anchor row leaves the catalog empty. diff_vs_prod still reads it. Do not call generation.fork to fill the list. diff_vs_prod, gates, promote — each its own sync execute (GENERATION_SYNC_BATCH_BUDGET). Strategy is auto_promote_strategy. Site bytes do not fork. parallel_canonical_drift: realign, do not promote. generation.promote is not hosting git: remote name agentstack, default branch dev.","generation_env_parity":"Omit generation_env_uuid — server keeps sandbox head; stale uuid is cleared automatically.","ai_builder":{"AI_BUILDER_LIST_ALIAS":"ai_builder.project.list aliases to ai_builder.source.list — list App Studio src/** paths, not hosting bucket bytes.","AI_BUILDER_SOURCE_VS_HOSTING":"App Studio source tree is ai_builder.source.* under src/** — static /s/ bytes are hosting.bucket.file.patch, not ai_builder.source.patch on the live bucket.","AI_BUILDER_PUBLISH_BOUNDARY":"ai_builder.publish omits bucket_id when hosting.project.status shows primary_public_url. Do not hand-edit assets/index-*.js build output. If bucket_id_or_bucket_name_required — run hosting.site.quick_start first (or pass bucket_id from hosting.project.status).","AI_BUILDER_VS_GENERATION":"generation.* forks 8DNA config (bots, knowledge, project data) on paid tiers — not the hosting workspace. A browser game ships with hosting.git + hosting.site.build, not ai_builder.source.patch. sandbox_not_available on Free means upgrade for 8DNA sandbox — not a blocker for hosting workspace writes.","AI_BUILDER_VS_STACKSCRIPT":"script.put / StackScript = server-side TypeScript (@stack/runtime) on DNA slice. Browser game UI/WebGL = hosting workspace + hosting.site.build, then promote_branch to prod. Do not script.put defineRoom for a Vite SPA.","AI_BUILDER_SOURCE_NOT_FOUND":"not_found: ai_builder.source.list first — response may include suggested_paths. New file under src/: source.patch with content= (no prior GET). Patch ladder: source.get → copy exact find substring → expected_sha256 → replacements.","AI_BUILDER_MAIN_REWIRE":"Rewiring src/main.tsx imports: allow_shrink=true when removing blocks; fix syntax_rejected with smaller find/replace (one import line). Route shell lives in src/routes/Route0.tsx — not ./routes/Route0 from wrong folder.","AI_BUILDER_PUBLISH_URL_SHAPE":"After ai_builder.publish (or quick_start with publish=true): public_path is /s/{project_id}/{bucket_slug}/; public_url_absolute is https://agentstack.tech + that path (same as hosting.project.status sites.primary_public_url). WebGL/Vite games use publish after build.status completed — not quick_start HTML stub.","AI_BUILDER_HOSTED_SESSION":"Published pages call /s/{project_id}/mcp with credentials on load — not MCP auth.login for visitors; clearSession only on HTTP 401.","AI_BUILDER_BUILD_FAILED_RECOVERY":"Vite parse error in errors[0].file:line. source.get view=symbol, source.patch once, build.enqueue again. Browserslist/caniuse warnings are not failures.","AI_BUILDER_PROTECTED_PATHS":"Do not patch vite.config.ts, package.json, index.html, src/main.tsx, or src/styles/app.css. Edit @slot: regions in src/routes/Route0.tsx. Browserslist noise is not a build failure.","AI_BUILDER_LITERAL_ESCAPE":"literal_escape: use symbols:[{name, replace}] with real newlines in replace bodies — not \\\\n in JSON strings. Prefer symbol edits over full-file content rewrites.","AI_BUILDER_RECIPE_NOT_TOOL":"mcp_app_studio_* are recipes (executable=false) — run via recipe runner or ai_builder.compose.apply / build.enqueue, not agentstack.execute with recipe id as action."},"work_graph":{"WG_OPTIMIZE_EXEC_STABLE":"optimize_plan must not change executable_now unless patches touch required_role, skill_ids, or completion criteria — check validation.execution.execution_summary.","WG_ALLOW_GENERIC_ACCEPTANCE":"allow_generic_acceptance defaults false; repair_plan / sandbox repair only — never default on complexity ≥3 decompose.","WG_EXECUTION_SUMMARY_ONLY":"Read execution_summary.missing_requirements — missing_roles is legacy; do not infer fleet gaps from validation.missing_roles when execution_summary is present.","WG_CLAIM_PREVIEW_SINGLE":"plan_get include_claimable=true — each claim preview row.execution from one canonical execution-resolver pass (execution_resolver SoT).","WG_ENV_UUID_PARITY":"Thread the same env_uuid across plan_get, plan_propose, plan_apply_proposal, plan_process_backlog, plan_recovery_scan, and work_next on sandbox forks.","WG_RECOVERY_VERIFICATION_FAILED":"Recovery reason SoT is verification_failed (aliases verify_failed, plan_verify_failed) — call agents.plan_recovery_scan first, then plan_propose mode=repair_plan via recovery.next_actions (not missing_roles).","WG_BLOCKED_REASON":"blocked_work[].blocked_reason is canonical (block_reason.REASON_PRIORITY); use recovery.next_actions — not validation.missing_roles.","WG_PROVISION_PARITY":"When execution.fully_provisionable and one top template, recovery routes agents.ensure_agent create=false (H5 preview) — SDK followWorkGraphAction runs ensureAgentSaga for create=true; ambiguous ties → create_from_template choose_template.","WG_ENSURE_H5":"agents.ensure_agent preview template_id must match agents.work_next top compatible_templates[0] for the same node (harness H5 / resolver_parity_v1).","WG_FACET_REPAIR":"plan_propose runs ensure_proposal_facet_coverage (facet_repair, max 2 passes) after enrich for create_plan and decompose_node (including from_draft_tree meta under create_plan) — do not hand-patch semantic facet children; for facet gaps after other modes use mode=repair_plan.","WG_REPAIR_METRICS_SCAN_COUNTS":"plan_recovery_scan meta.repair_metrics is scan summary only (candidate_count, stale_claim_count). Facet repair_metrics (nodes_created, repair_graph_edit_distance) and repair_diagnostics come from plan_propose mode=repair_plan — not from scan counts.","WG_HARNESS_GATES":"Dev gates: doctor --full (repo.ops.closed_loop.harness.gen1); key suites: ensure_agent_provision_e2e_v2, ensure_agent_idempotent_retry_v1, bind_vs_claim_semantics_v1, persist_unexecutable_v1, mcp_structured_domain_error_v1, resolver_parity_v1, instruction_plane_dry_v2, planner_runtime_parity_v3.","WG_BIND_VS_CLAIM":"node.agent_id binding ≠ active claim lease — already_claimed requires status=in_progress with non-expired lease meta; bound agent on ready/pending is not already_claimed; retry ensure_agent idempotent_replay or plan_claim with if_match_revision.","WG_HARNESS_STATE":"Blocked agents.work_next packets include diagnostics.harness_state — read-only projection (dependency_ready, execution_ready, blocked_reason); not a second orchestrator.","WG_ROLE_TAXONOMY":"no_compatible_agent for role=data|data_engineer is a taxonomy alias — prefer agents.ensure_agent create=false (H5) then create=true before repair_plan; create_from_template only when ensure_agent is ambiguous; role_matches_template in role_taxonomy.py is SoT.","WG_TEAM_OVER_INTEGRATION":"Team-create goals (agents.team.create): discovery rank demotes integrations.* — prefer agents.team.create / agents.orchestrate / agents.plan_* over integrations.oauth_begin.","WG_CLAIM_BEFORE_EXECUTE":"agents.plan_execute requires an active claim lease from agents.plan_claim unless operator policy allows execute-without-claim; pass if_match_revision from plan_get.","WG_AUTONOMOUS_CLAIM_REQUIRED":"When context.autonomous_mode is true, agents.plan_execute is denied unless the focus node status is in_progress (plan_claim_required). Claim via agents.plan_claim before execute in the mcp_work_loop_v1 spine.","WG_PERSIST_UNEXECUTABLE":"validation_mode=persist_unexecutable on plan_propose / plan_apply_proposal / plan_process_backlog when plan_valid but fleet cannot execute — use the same mode on propose and apply.","WG_PLAN_VALID_NOT_EXECUTABLE":"plan_valid / validation_ok means structural+semantic OK — not fleet-executable; use validation_mode=persist_unexecutable or ensure_agent when plan_valid but not execution_ready; executable_now=false under semantic alias is intentional.","WG_CAPABILITY_HARD_GATE":"required_capabilities are mandatory — capability_mismatch blocks claim; route agents.ensure_agent create=false (H5) then create=true, or plan_propose mode=repair_plan; not handoff (capability_hard_gate_v1).","WG_PLANNING_ARTIFACT":"meta.planning_artifact nodes are evidence-only (resolution=non_executable_artifact) — attach evidence on parent; plan_process_backlog and claim skip them for execution.","WG_ENSURE_CREATE_SAGA":"Commit-last provision: work_next blocked → ensure_agent create=false (H5 template_id) → create=true provisions with bind_node=False → eligibility gate → rollback on created_agent_not_eligible → next_action agents.plan_claim (bind+lease, if_match_revision); idempotent_replay when bound eligible agent exists.","WG_HANDOFF_RECOVERY":"role_mismatch / specialization_mismatch after claim → work_next handoff=true node_id=… — follow recovery.next_actions, do not retry same agent. capability_mismatch is missing required_capabilities: repair_plan or ensure_agent, not handoff.","WG_CAS_RETRY":"plan_revision_conflict → plan_get reload if_match_revision — never apply stale proposal after concurrent plan_patch or backlog apply.","MCP_DOMAIN_ERROR":"Domain denial: tools/call isError=false with structuredContent (ok=false, error_code, failure_kind=domain, recovery). Transport/internal uses isError=true (failure_kind=transport). plan_revision_conflict → agents.plan_get then retry with fresh if_match_revision.","WG_CLOSED_LOOP_EXECUTABLE":"state=actionable (alias executable) and execution_ready — next_action agents.plan_claim with if_match_revision from plan_get.","WG_CLOSED_LOOP_PROVISION":"resolution=provision_required — next_action agents.ensure_agent create=false (H5) then create=true before plan_claim.","WG_CLOSED_LOOP_STALE_CLAIM":"blocked_reason=expired_claim — next_action agents.plan_reclaim_stale; beats downstream dependency_blocked when no executable leaf.","WG_CLOSED_LOOP_PLANNING":"planning_required — next_action agents.plan_propose mode=create_plan or decompose_node.","WG_CLOSED_LOOP_VERIFY_FAIL":"verification_failed — next_action agents.plan_recovery_scan then repair_plan.","WG_CLOSED_LOOP_DEPENDENCY":"dependency_blocked — no claim; reason names upstream node_id until deps complete.","AGENTSTACK_NATIVE_FIRST":"Before custom servers: discovery.search → domain workflow → MCP/SDK configure → verify via canonical read. Frontend consumes @agentstack/sdk — not operator Bearer.","WG_STORAGE_NOT_KNOWLEDGE":"File upload / document persistence → storage.* (MCP operator or REST binary upload). Do not ingest to knowledge unless the goal requests RAG/Q&A/semantic search.","WG_MCP_SDK_REST_PLANE":"MCP: operator/agent configure + work graph. SDK: app runtime integration. REST: binary transfer or capability not in SDK. Never duplicate platform CRM/Auth/Storage.","WG_VERIFY_AFTER_WRITE":"After each platform mutation, verify via canonical read on meta.verify_after_write_action (storage.list_files, crm.list_contacts, logic.dry_run, rag.search) — attach evidence, do not mark complete from agent prose alone.","WG_PLAN_GRAPH_CHILDREN_CAP":"Max 32 direct children per parent_id (not total graph size). Large flat graphs are valid; split siblings across intermediate feature nodes when one parent exceeds the cap.","WG_PLAN_FIRST":"Lightweight progress: agents.work_status (summary_only). Full autonomous loop: agents.work_next — follow next_action, not next_actions[0] parsing.","WG_GRAPH_FOR_DURABLE_WORK":"Durable work (more than one read) enters the Work Graph: agents.plan_propose (create_plan or decompose_node), agents.plan_apply_proposal when validation.safe_to_auto_apply, then agents.work_next following next_action until state=idle, blocked, or recoverable. A single domain call (one CRM write, one file upload, discovery.search, auth.get_profile) stays a direct MCP action. Do not mark a node complete from prose — attach meta.verify_after_write_action evidence. Idle with an empty graph is valid.","WG_WORK_NEXT_LOOP":"Closed loop: plan_get → work_next → next_action → execute/claim → work_next until state=idle. Blocked: read recovery.next_actions or singular next_action.","WG_LOOP_ERROR_BUDGET":"Loop error budget (WG-SLO-03/04): follow packet.next_action from agents.work_next — discovery.search while next_action is present burns compliance (target ≥90% followed). Heavy batches: options.async=true; full budget GET /mcp/actions execute_budget.","WG_PLAN_EXECUTE_HANDOFF":"After agents.plan_execute success (wait=true completed), follow data.next_action (usually agents.work_next) — do not invent a parallel loop from prose.","WG_PLANNER_PLANE":"Backlog scan uses planner eligibility (decomposition_status=needed) — not execution_ready; validation_ok reflects plan_valid (structural+semantic), not fleet gaps.","WG_GUIDANCE_LIST":"Before work-graph execution: guidance.list to confirm work-graph-agent-loop in catalog; guidance.match_playbook with closed-loop goal_text; guidance.start_path with catalog_entry.id from match.","WG_DISCOVERY_ROUTE":"Discovery naming: intent_id (taxonomy) ≠ primary_action (router verb) ≠ agents.work_next (fleet pick) — do not treat a route phrase as an MCP action name. discovery.describe requires param action=<catalog action id> (not optional).","WG_DEPENDENCY_VS_EXECUTION_READY":"dependency_ready is structural (deps/status/decomposition); execution_ready is fleet (live agent or provision path) — never collapse the two gates.","WG_COLD_START_VS_ROUTE":"Cold start: no project_id → agentstack_session_setup only. Do not discovery.search until context.project_id is set. Bound project: agents.work_next first; discovery.search only when packet.next_action is absent. Status-only poll → agents.work_status (no claim params)."},"work_graph_plane_chooser":"Plan graph: agents.plan_get with project_id. Next leaf: agents.work_next — read dependency_ready vs execution_ready separately. dependency_ready=false means wait on deps; execution_ready=false with dependency_ready=true means fleet/provision. Draft changes: agents.plan_propose then agents.plan_apply_proposal (same env_uuid). Claim: agents.plan_claim with if_match_revision from plan_get. Blocked with templates: agents.ensure_agent (preferred) then agents.create_from_template — not a second custom resolver.","support":{"SUPPORT_USER_VS_STAFF":"End users: social.support.history / social.support.send on psup_p{pid}_u{uid}. Staff desk: social.support.inbox / transition / assign — not social.chat.*.","SUPPORT_ELIGIBILITY_FIRST":"social.support.eligibility before history/send — end_user_support_enabled false returns eligibility_denied on user-plane reads.","SUPPORT_AI_BINDING":"social.support.config.patch binds one project agent — confirm with social.support.ai_binding_health; channel_not_bound when ai_agent_uuid missing.","SUPPORT_NOT_CHAT":"Support threads are social.support.* — social.chat.history is messenger DMs, not psup tickets."},"support_plane_chooser":"User plane: social.support.eligibility → social.support.history / social.support.send. Staff plane: social.support.inbox — requires support desk access on the project. Messenger DMs use social.chat.*; support tickets use social.support.*, not social.chat.history.","commerce":{"DISCOVERY_COMMERCE_TRACKS":"Discovery rank: buyer IAP checkout queries pin shop.* (shop.buyer.checkout, mcp_tenant_iap_checkout_v1) — not generation.list or generation.promote (readiness≠checkout). Signed-in operators use session context — not projects.create_project_anonymous on checkout NL. Marketplace buyer checkout pins marketplace.buyer.checkout; seller go-live pins commerce.sell.* — not shop.checkout.create.","IAP_PAYMENT_RAILS":"Track A tenant IAP: shop.checkout.create (server price). Track B marketplace: commerce.sell.activate. Track C AgentPay subscriptions: payments.create + webhook. Track D stackscript fuel: payments.create intent stackscript_fuel_pack. See docs/operations/COMMERCE_PAYMENT_RAILS.md.","SHOP_AGENT_CHECKLIST":"15-step shop/IAP agent checklist — enablement, server price, idempotency, effective_project_id on reads, simulate-only QA. Full text in shop_instruction_atoms.","TENANT_TRADE_ENABLEMENT_CHECKLIST":"Tenant trade rails (default deny): (1) shop.enablement.status — Track A IAP gate; (2) commerce.sell.activate — Track B marketplace seller; (3) buffs.get_effective_limits before checkout; (4) never enable sell on project_id=1 showcase without operator intent. Hybrid tenants run both status checks — see COMMERCE_PAYMENT_RAILS.md.","CHECKOUT_TIER_GATE":"payments.create blocked by feature gate — buffs.get_effective_limits; payments.get_balance and payments.list_methods before retry.","ASSETS_SANDBOX_HEAD":"Empty assets.list after assets.create is the sandbox head — server keeps the row; do not patch data.assets.items[] manually.","ASSETS_LIST_PROJECTION":"assets.list defaults to projection=summary (ECS index). Use projection=full or assets.get for components/price_usdt; scope.drift → assets.reindex then re-list. Index-light filters: type, rarity, tradeable, lifecycle, category, q, cross_project — no items[] read on summary path.","ASSETS_LIST_PAGINATION":"Page with limit (default 100, max 1000) and offset; has_more or offset + len(items) < count for next page. total is canonical catalog size.","PAYMENTS_LIST_PAGINATION":"payments.list_transactions: use limit/offset until ledger_scan_capped; then pass next_offset from the prior response. total_is_lower_bound when scan cap applies — do not assume exact total on large ledgers.","ASSETS_IMPORT_PARTIAL":"success=true with non-empty failed[] is partial import — fix failed rows or overwrite=true; do not re-import the whole blob via projects.patch_data.","ASSETS_EXPORT_HEAVY":"assets.export always reads assets.items[] once, then filters by asset_ids when set (>100 ids still one full read). Use assets.list + limit/offset for catalog UI.","PAYMENTS_NO_LIST":"payments.list does not exist — use payments.get_balance, payments.get, or wallets.list.","WALLET_VS_CHECKOUT":"Wallet moves: wallets.deposit / wallets.transfer. Hosted IAP checkout: shop.checkout.create. AgentPay card/treasury: payments.create.","COMMERCE_BUFFS_LINK":"Tenant subscription checkout auto-grants via webhook/C24 — not buffs.apply_buff after payments.create.","COMMERCE_SOFT_CURRENCY":"Hosted /s/{pid}/ game IAP: shop.products.list → shop.checkout.create (server price). Operator/direct: payments.create intent=currency_pack with metadata.order_id when bound. Not wallets.deposit or commerce.participant.grant_holding for buyers."},"commerce_plane_chooser":"Money: payments.get_balance and wallets.list. Hosted tenant IAP: shop.checkout.create (server SKU price) — not bare payments.create currency_pack. AgentPay treasury/card: payments.create → payments.get. Catalog: assets.list → assets.create — do not replace data.assets.items[]. Tier gates: buffs.get_effective_limits before retrying checkout.","commerce_when_blocked":{"commerce.checkout.session":{"listing_not_found":"assets.list or storefront index — listing_uuid must be live marketplace row","listing_not_active":"Seller delisted SKU — pick another listing_uuid from storefront browse","invalid_parameters":"listing_uuid required; buyer_project_id defaults to context.project_id","idempotency_mismatch":"Same idempotency_key with different listing — use a new key per listing","marketplace_unavailable":"Marketplace index offline — retry; agentstack_diagnose if persistent","invalid_price":"Listing price ≤ 0 — seller must fix asset/listing price before checkout","showcase_guest_checkout_disabled":"auth.login — showcase seller blocks anonymous marketplace checkout","unauthorized":"auth.get_profile — marketplace checkout requires signed-in buyer","execution_error":"Retry once; finance.pay.execute confirms wallet rail after session create","service_cap_denied":"Buyer checkout — not commerce.sell.activate; widen payments cap on API key"},"shop.checkout.create":{"client_amount_forbidden":"Omit amount/amount_minor — server prices from shop.products.list SKU; preflight.check mirrors runtime iap_client_amount_guard","sell_disabled":"shop.enablement.status — configure IAP SKUs and sell gate before live checkout","catalog_not_configured":"shop.products.list empty — upsert SKU via owner API or TenantIapSellPanel"},"payments.create":{"service_cap_denied":"apikeys.create with payments in service_caps — operator key lacks payments cap","feature_gate_denied":"buffs.get_effective_limits — plan tier blocks checkout; upgrade_url or buffs grant","invalid_parameters":"payments.get_balance first — amount, currency, method_id required for AgentPay","insufficient_permissions":"project membership read + payments cap for scope=user buyer checkout; project write only for scope=project treasury charges","invalid_amount":"payments.get_balance — amount must be positive major units","invalid_currency":"payments.list_methods — currency code from supported methods","preferred_method_required":"payments.list_methods — pass preferred_method from catalog","unsupported_payment_method":"payments.list_methods — pick a method enabled for this PID","execution_error":"payments.get_balance then retry same idempotency_key; diagnose if repeats","forbidden_for_visitor":"Hosted visitor — provision auth or use shop.checkout.create for IAP; not wallets.deposit from anon cookie","client_amount_forbidden":"Omit amount/amount_minor — server prices from SKU; shop.checkout.create or payments metadata from catalog","catalog_auth_required":"IAP catalog is owner-only — auth.get_profile then shop.products.list; or enable iap_public_catalog in commerce DNA for hosted buyers","order_amount_mismatch":"currency_pack with metadata.order_id — amount must match shop.checkout.create server price (shared.commerce.iap_payment_bind)","payment_order_mismatch":"payments.create metadata.order_id must match checkout order_id before shop.fulfill","order_not_found":"shop.checkout.create first — metadata.order_id must be a live IAP order","order_project_mismatch":"recipient_project_id must match order project_id — context.project_id for tenant IAP","order_user_mismatch":"Payer user_id must match order.user_id — auth.get_profile","order_already_fulfilled":"shop.orders.get — do not replay payments.create for fulfilled orders","order_not_payable":"shop.orders.get — order status must be pending_payment or created","order_currency_mismatch":"currency must match IAP order snapshot from shop.checkout.create","order_sku_mismatch":"metadata.sku_id must match order sku_id from checkout","invalid_order":"IAP order row missing price — shop.checkout.create again","iap_order_required":"shop.checkout.create — order_id only on currency_pack from that checkout; intent sale with metadata.order_id is rejected (iap_order_required)","idempotency_conflict":"Same idempotency_key with different amount, currency, or intent — use a new key","payment_create_in_progress":"Another create is in flight for this idempotency_key — poll payments.get or wait","treasury_lane_required":"Tenant treasury sale needs metadata.funding_lane=treasury — personal L0 uses AgentPay recipient","project_scope_mismatch":"Financial reads honor execute context.project_id over JWT home project when both differ (membership required). Compare effective_project_id, scope_source, jwt_project_aligned on payments.get_balance / list_transactions — bind context.project_id before retry."},"payments.admin.put_keys":{"ecosystem_owner_required":"Platform ecosystem owner only — auth.get_profile on hub project 1","invalid_parameters":"Pass stripe.secret_key and/or tochka.terminal_id+password objects","insufficient_permissions":"Ecosystem admin — not tenant BYOK project keys"},"payments.admin.keys_preflight":{"ecosystem_owner_required":"Platform ecosystem owner only — auth.get_profile on hub project 1","insufficient_permissions":"Ecosystem admin — probes AgentPay slice only"},"payments.get":{"not_found":"payment_id from payments.create receipt — payments.list_transactions audit","payment_not_found":"payments.list_transactions — payment_id from payments.create receipt","invalid_parameters":"payment_id UUID required — not order slug or asset id","insufficient_permissions":"project membership with payments:read","project_scope_mismatch":"Financial reads honor execute context.project_id over JWT home project when both differ (membership required). Compare effective_project_id, scope_source, jwt_project_aligned on payments.get_balance / list_transactions — bind context.project_id before retry."},"payments.get_balance":{"service_cap_denied":"payments cap on API key — widen service_caps or use session auth","insufficient_permissions":"project membership with payments:read","project_not_found":"context.project_id bound — projects.list for a valid PID","project_scope_mismatch":"Financial reads honor execute context.project_id over JWT home project when both differ (membership required). Compare effective_project_id, scope_source, jwt_project_aligned on payments.get_balance / list_transactions — bind context.project_id before retry.","wallet_not_found":"wallets.list — create wallet via wallets.create before reading balance"},"payments.list_transactions":{"insufficient_permissions":"project membership with payments:read","project_not_found":"context.project_id bound — projects.list for a valid PID","project_scope_mismatch":"Financial reads honor execute context.project_id over JWT home project when both differ (membership required). Compare effective_project_id, scope_source, jwt_project_aligned on payments.get_balance / list_transactions — bind context.project_id before retry."},"payments.refund":{"not_found":"payments.get with payment_id — reverse only after wallet_credit=ok","payment_not_found":"payments.get with payment_id from checkout receipt","invalid_parameters":"payment_id + amount from payments.get status","insufficient_permissions":"payments write cap + project admin","refund_exceeds_capture":"payments.get — partial amount must be ≤ captured major units","refund_in_progress":"Retry with same idempotency_key or poll payments.get","refund_not_allowed":"payments.get status — refund only after capture succeeded","refund_seller_debit_required":"commerce.refund.status — seller debit plane before refund","project_scope_mismatch":"Financial reads honor execute context.project_id over JWT home project when both differ (membership required). Compare effective_project_id, scope_source, jwt_project_aligned on payments.get_balance / list_transactions — bind context.project_id before retry."},"assets.create":{"batch_semantic_anchor_required":"Multi-step batches with assets.create need options.execution_intent=direct, options.goal, or preflight.check simulate_batch_actions — not bare execute chains","project_id_required":"context.project_id bound — pass project_id on create","service_cap_denied":"apikeys.create with assets_write in service_caps; member role does not auto-widen — use owner/admin session or explicit assets_write on the key","insufficient_permissions":"project write + assets_write cap","unknown_preset":"assets.list_presets — preset slug from catalog row","creation_failed":"generation sandbox head may apply — assets.list before second create","name_required":"name is required — assets.list_presets for a starter row","invalid_type":"type must be a known asset type — assets.list_presets","invalid_structure":"components must match preset schema — assets.list_presets","asset_exists":"assets.list — id collision; pick a new name or delete stale row","write_failed":"generation sandbox head — assets.list then retry; agentstack_diagnose if persists","read_back_miss":"DNA write succeeded but items[] read-back missed id — retry assets.list; if empty, generation.realign_to_prod or assets.reindex on stale memo/index","internal_error":"scoped env_uuid invalid or DNA fault — agentstack_diagnose"},"assets.get":{"asset_not_found":"assets.list — opaque asset_id as returned by create/list","invalid_parameters":"asset_id required — opaque id from assets.create or assets.list","project_id_required":"context.project_id bound — pass project_id on get","index_card_only":"shape.mode=index_card — items[] missing row; assets.reindex or retry after create commit"},"assets.update":{"asset_not_found":"assets.list or assets.get — confirm asset id on active sandbox head","insufficient_permissions":"assets_write cap + project membership","invalid_parameters":"patch leaf paths only — not full data.assets.items[] blob","invalid_structure":"assets.get then patch leaf paths valid for the asset type","update_failed":"CAS or mutate refused — assets.get then retry leaf patch","not_tradeable":"Set components.properties.tradeable (or transferable) true via assets.update before REST POST /projects/{id}/assets/{asset_id}/transfer — not wallets.transfer"},"assets.delete":{"asset_not_found":"assets.list — check storefront refs before delete","insufficient_permissions":"assets_write cap required","project_id_required":"context.project_id bound — pass project_id on delete"},"assets.bulk_delete":{"asset_not_found":"assets.list — missing ids appear in failed[]","insufficient_permissions":"assets_write cap required","project_id_required":"context.project_id bound — pass project_id on bulk_delete","invalid_parameters":"asset_ids must be a non-empty array of opaque ids"},"assets.bulk_update":{"asset_not_found":"assets.list — per-row missing id in failed[]","insufficient_permissions":"assets_write cap + project membership","project_id_required":"context.project_id bound — pass project_id on bulk_update","invalid_parameters":"updates must be a non-empty array of rows with asset_id (or id)","invalid_structure":"each row patch must match assets.update leaf paths","not_tradeable":"Set tradeable via assets.update before transfer — bulk patch cannot bypass transfer gate"},"assets.list":{"project_id_required":"context.project_id bound — tenant: empty list may be sandbox head; platform pid≤1: check scope.drift and counts.assets","scope_drift":"response.scope.drift true — assets.reindex then assets.list again; summary uses ECS index only (no items[] read); projection=full loads items[]"},"assets.reindex":{"project_id_required":"context.project_id bound — assets.list scope.drift before reindex","insufficient_permissions":"assets_write cap + project membership","service_cap_denied":"apikeys.create with assets_write in service_caps","index_rebuild_failed":"CAS refused — assets.list scope; generation.realign_to_prod if sandbox stuck"},"assets.activity":{"asset_not_found":"assets.get — confirm opaque asset_id on active head","invalid_parameters":"asset_id required","project_id_required":"context.project_id bound"},"assets.export":{"project_id_required":"context.project_id bound","service_cap_denied":"mcp_read on API key or session"},"assets.import":{"import_all_failed":"every row failed validation — fix failed[]; components defaults to {}","invalid_parameters":"params.assets must be a non-empty array — same shape as catalog export rows","import_failed":"CAS or mutate refused — assets.list; generation.realign_to_prod if sandbox stuck","insufficient_permissions":"assets_write cap + project write","service_cap_denied":"apikeys.create with assets_write in service_caps","project_id_required":"context.project_id or params.project_id","post_import":"assets.list — if scope.drift remains after import, assets.reindex once"},"assets.list_presets":{"project_id_required":"context.project_id bound — presets are project-scoped"},"assets.transfer":{"asset_not_found":"assets.get — opaque asset_id on active sandbox head","invalid_parameters":"asset_id plus to_user_id and to_project_id (>0); quantity defaults to 1","service_cap_denied":"apikeys.create with assets_write in service_caps","insufficient_permissions":"assets_write cap + project membership on source project_id","not_tradeable":"assets.update — set components.properties.tradeable or transferable true (catalog transfer is not wallets.transfer)","insufficient_holdings":"source user lacks quantity — inventory revoke failed","inventory_failed":"grant to recipient failed after debit — retry; check inventory service","operation_failed":"unexpected failure — agentstack_diagnose with trace id","project_id_required":"context.project_id bound — pass project_id"},"wallets.create":{"invalid_parameters":"wallets.list — project_id, currency, and wallet_id params required","wallet_service_unavailable":"Backoff then retry; agentstack_diagnose if it persists"},"wallets.list":{"invalid_parameters":"wallets.list — project_id, currency, and wallet_id params required","wallet_service_unavailable":"Backoff then retry; agentstack_diagnose if it persists"},"wallets.transfer":{"invalid_parameters":"wallets.list — project_id, currency, and wallet_id params required","wallet_service_unavailable":"Backoff then retry; agentstack_diagnose if it persists"},"wallets.deposit":{"invalid_parameters":"wallets.list — project_id, currency, and wallet_id params required","wallet_service_unavailable":"Backoff then retry; agentstack_diagnose if it persists","invalid_amount":"amount must be positive — wallets.list for balance first","wallet_not_found":"wallets.list — wallet_id before deposit; wallets.create if none","idempotency_key_required":"Pass idempotency_key on every wallets.deposit (replay-safe)","forbidden_for_visitor":"Hosted visitor cookie — use shop.checkout.create, not wallets.deposit"},"commerce.participant.grant_holding":{"invalid_project":"Bind context.project_id or pass project_id (>1 tenant PID)","forbidden":"auth.get_profile — operator session required","grant_failed":"assets.list — confirm asset_id; buffs path for subscription SKUs","insufficient_permissions":"require_tenant_project_write — project admin on tenant PID"},"commerce.refund.status":{"not_found":"commerce.refund.status with buyer_project_id, buyer_user_id, order_id","forbidden":"ecosystem_owner_required for manual refund plane","invalid_parameters":"buyer_project_id, buyer_user_id, order_id required"},"commerce.refund.manual_list":{"ecosystem_owner_required":"Finances / ecosystem owner session — not tenant buyer","forbidden":"auth.get_profile then ecosystem admin role"},"commerce.refund.psp_refund":{"ecosystem_owner_required":"Finances / ecosystem owner — seller claw + PSP","order_not_found":"commerce.refund.status — verify buyer_project_id, buyer_user_id, order_id","rail_not_fiat":"Wallet rail auto-compensates — no PSP step","no_payment_id":"Order metadata.payment_id missing — payments.get from checkout receipt","refund_in_progress":"Retry with same idempotency_key or poll payments.get","refund_exceeds_capture":"Partial amount must be ≤ captured major units"},"commerce.refund.manual_complete":{"ecosystem_owner_required":"Same as manual_list — operator refund completion","not_found":"commerce.refund.manual_list row id"},"commerce.storefront.list":{"invalid_parameters":"project_id required — catalog before seed_apply","insufficient_permissions":"project read + commerce caps"},"commerce.storefront.hosted_publish":{"invalid_parameters":"user_id + project_id — build dist before publish","publish_failed":"commerce.storefront.health — bucket + hosted manifest"},"commerce.ai.generate_products":{"rate_limited":"Backoff — tier limits via buffs.get_effective_limits","invalid_parameters":"project_id + prompt constraints from assets.list"},"commerce.ai.magic_fill":{"invalid_parameters":"asset id or draft row from assets.create","feature_not_available":"Plan tier — buffs.get_effective_limits"},"commerce.sell.activate":{"forbidden":"Tenant operator — commerce.sell.activate vs buffs.grant; buyers use commerce.checkout.session","invalid_parameters":"SKU / activation payload from storefront list","idempotency_mismatch":"Same idempotency_key with a different product set or publish flag — mint a new key","service_cap_denied":"Project write + commerce cap — not buyer marketplace checkout session"},"finance.pay.quote":{"invalid_parameters":"project_id + amount/currency from finance.portfolio or payments.get_balance","session_required":"Operator OAuth — auth.get_profile then re-quote","quote_limit_exceeded":"Tier limits — buffs.get_effective_limits before another quote"},"finance.pay.execute":{"idempotency_mismatch":"Same idempotency_key with a different quote_id or quote_hash — mint a new key","quote_hash_mismatch":"quote_hash does not match the stored quote body — re-quote","quote_not_found":"finance.pay.quote first — quote_id expired or unknown","quote_expired":"finance.pay.quote again — the quote window closed","quote_user_mismatch":"auth.get_profile — quote belongs to another user"},"commerce.reconcile":{"forbidden":"Ecosystem owner — finances PID plane","invalid_parameters":"date range + project scope"}},"crm_plane_chooser":"Contacts: crm.list_contacts / crm.search → crm.upsert_contact (dedupe by email). Deals: crm.create_deal after contact exists → crm.list_board before crm.move_deal_stage. Bulk: crm.import_contacts for CSV ingest — crm.merge_contacts for duplicate rows. Timeline: crm.get_contact_360 / crm.get_deal_timeline after writes. Sandbox reads: pass effective_scope.env_uuid after tenant promote — empty list is the head.","crm_when_blocked":{"crm.upsert_contact":{"duplicate_contact":"crm.list_contacts by email — merge via crm.merge_contacts or set external_id on update"},"crm.import_contacts":{"import_blocked":"crm.list_contacts to preview dupes — shrink batch or crm.merge_contacts before retry"},"crm.update_deal":{"pipeline_stage_locked":"crm.list_board + crm.get_crm_config — use crm.move_deal_stage for stage changes"},"crm.move_deal_stage":{"pipeline_stage_locked":"crm.list_board + crm.get_crm_config — verify stage_id before move"}},"platform":{"BATCH_DEPENDS_ON_DEFAULTS":"agentstack.execute steps: omit dependsOn for independent lanes; set dependsOn to prior step ids for DAG order. continueOnError defaults false — failed step skips dependents (plain reads may continue per mixed-batch policy). See agentstack-work-graph skill.","DOCS_NAV_NOT_MCP_TOOLS":"Runtime: discovery.search, discovery.list, POST /mcp/discover/by_intent. docs_nav.search = markdown/genetic docs routing only — not MCP tools.","PREFLIGHT_BEFORE_MUTATE":"Effect medium+ or financial/destructive: run preflight.check with context.project_id bound before mutate. session_ready and service_caps surface in preflight — not retry loops.","DEPLOY_SUBSTRATE_SKEW":"After VPS ship, MCP batches may return preflight_batch_internal_error when hot-sync manifest omits import mates (e.g. shared/mcp/session_readiness.py). Recovery: npm run audit:deploy-hot-sync-manifests, mcp.prod_matrix_hot_sync, or -RebuildBackend (default DeployComponent=backend). Not OAuth Connect until auth.get_profile fails."},"manager":{"MANAGER_THREE_PLANES":"Three manager planes (do not merge): (1) Telegram order manager — recipe mcp_bot_order_manager_bootstrap_v1, bots.order_manager_bootstrap; (2) Project orchestrator — mcp_project_manager_bootstrap_v1, projects.orchestrator.get; (3) Work graph assignee — agents.plan_claim / plan_apply_affinities on task_list.","MANAGER_PROJECT_BOOTSTRAP_RECIPE":"Project orchestrator manager: recipe mcp_project_manager_bootstrap_v1 (alias agentstack_project_manager_bootstrap). Not bots.order_manager_bootstrap.","MANAGER_ORDER_BOOTSTRAP_RECIPE":"Channel order manager: mcp_bot_order_manager_bootstrap_v1 → bots.order_manager_bootstrap. dry_run=true is planning; apply needs generation.env_uuid when sandbox_gate.apply_ready.","MANAGER_WORK_GRAPH_ASSIGNEE":"In-app assignee: agents.plan_claim with if_match_revision from agents.plan_get — not order_manager bootstrap."},"manager_plane_chooser":{"en-US":"Three manager planes (do not merge): (1) Telegram order manager — recipe mcp_bot_order_manager_bootstrap_v1, bots.order_manager_bootstrap; (2) Project orchestrator — mcp_project_manager_bootstrap_v1, projects.orchestrator.get; (3) Work graph assignee — agents.plan_claim / plan_apply_affinities on task_list.","ru-RU":"Три плоскости «менеджера» (не смешивать): (1) Telegram order manager — mcp_bot_order_manager_bootstrap_v1, bots.order_manager_bootstrap; (2) Оркестратор проекта — mcp_project_manager_bootstrap_v1, projects.orchestrator.get; (3) Исполнитель work graph — agents.plan_claim / plan_apply_affinities в task_list.","pt-BR":"Três planos de manager (não misturar): (1) Order manager Telegram — mcp_bot_order_manager_bootstrap_v1, bots.order_manager_bootstrap; (2) Orquestrador do projeto — mcp_project_manager_bootstrap_v1, projects.orchestrator.get; (3) Responsável work graph — agents.plan_claim / plan_apply_affinities em task_list."},"diagnostics":{"DIAG_CAPABILITIES_SPLIT":"Operator REST: GET /api/diagnostics/capabilities/flags (lightweight) vs /capabilities/observability?since= (heatmap). Full GET /capabilities composes both — prefer split routes on admin hub tabs.","DIAG_HUB_ETAG":"Admin hub GET /api/admin/hub-snapshot returns weak ETag — send If-None-Match for 304. Default source=shell is counts-only; source=full for legacy DNA totals.","DIAG_PROBLEMS_CACHE":"Problems cache TTL 30s aligned with hub. Prefer hub problems_summary for counts; full GET /api/diagnostics/problems only on expand.","DIAG_HUB_PHASES":"Admin hub fetch uses sequenced phases — shellBeacons admin_hub_phase_start/done with duration_ms for triage.","DIAG_SHOWCASE_WARM":"Showcase-excl count projector warms at startup (300s TTL); commerce T0 KPI warm pairs with hub cold path.","context_source_routing_drift":"context.get requested sources do not match source_status rows — check tools_context._parse_sources and ContextFabric gather (no silent RAG substitution for crm).","specialization_strategy_conflict":"Work graph nodes carry custom_backend_engineer on agentstack_native facets — recompile per-facet implementation_mode in node_semantic_compiler.","sync_async_latency_divergence":"Sync agentstack.execute exceeded 30s or diverged from durable/async baseline — use options.async=true or reduce expensive steps per batch (execute_budget)."},"admin_platform_perf":{"DIAG_CAPABILITIES_SPLIT":"Operator REST: GET /api/diagnostics/capabilities/flags (lightweight) vs /capabilities/observability?since= (heatmap). Full GET /capabilities composes both — prefer split routes on admin hub tabs.","DIAG_HUB_ETAG":"Admin hub GET /api/admin/hub-snapshot returns weak ETag — send If-None-Match for 304. Default source=shell is counts-only; source=full for legacy DNA totals.","DIAG_PROBLEMS_CACHE":"Problems cache TTL 30s aligned with hub. Prefer hub problems_summary for counts; full GET /api/diagnostics/problems only on expand.","DIAG_HUB_PHASES":"Admin hub fetch uses sequenced phases — shellBeacons admin_hub_phase_start/done with duration_ms for triage.","DIAG_SHOWCASE_WARM":"Showcase-excl count projector warms at startup (300s TTL); commerce T0 KPI warm pairs with hub cold path.","context_source_routing_drift":"context.get requested sources do not match source_status rows — check tools_context._parse_sources and ContextFabric gather (no silent RAG substitution for crm).","specialization_strategy_conflict":"Work graph nodes carry custom_backend_engineer on agentstack_native facets — recompile per-facet implementation_mode in node_semantic_compiler.","sync_async_latency_divergence":"Sync agentstack.execute exceeded 30s or diverged from durable/async baseline — use options.async=true or reduce expensive steps per batch (execute_budget)."},"session":{"HOSTED_MCP_COOKIE":"Hosted /s/{pid}/mcp: session cookie aud=hosted_app with credentials:include — not operator MCP Bearer. POST /api/hosted-apps/{pid}/session mints the cookie. Keep nginx session affinity on this path when StackScript hosted defer is on (process-local neural pending); `script.run` coop may expose timings.neural_defer and dna_persisted=false until PG flush — see stackscript instruction plane_chooser.","HOSTED_MCP_BATCH_PROJECT_ID":"Hosted /s/{pid}/mcp execute: every step params must include integer project_id matching the storefront (SDK mcpBatchStep). Exempt discovery.list, discovery.status, auth.get_profile. Missing → hosted_step_project_id_required.","MCP_OPERATOR_SESSION":"Operator MCP plane: X-API-Key or Bearer (Device Code OAuth). Bind context.project_id after auth.get_profile — not the hosted /s/ cookie."},"genetic_plane_chooser":"Monorepo docs-nav (TAG_CATALOG, docs_nav.*) is platform navigation — not the tenant map. Tenant genetic graph lives in git (philosophy/, **/AI_INDEX.md, AGENTS.md) and caches in 8DNA ecosystem.genetic after hosting git push. Read: genetic.snapshot.get. After push verify meta.sha. Manual rebuild: genetic.reindex with journal_root from hosting.git.status — not projects.patch_data on ecosystem.genetic.","genetic_when_blocked":{"missing_journal":{"kind":"missing_journal","message":"genetic.reindex needs journal_root (hosting git work tree on server).","next_actions":["hosting.git.status","hosting.project.status","genetic.snapshot.get"]},"empty_graph":{"kind":"empty_graph","message":"Snapshot has no genetic nodes — commit philosophy/ or AI_INDEX and push the journal.","next_actions":["hosting.git.status","hosting.git.log","genetic.reindex"]}},"logic":{"LOGIC_DRY_RUN_FIRST":"logic.create / logic.attach_template mutations: logic.dry_run with logic_id before enable or production traffic. Disabled rules still dry-run. A space graph with processors must execute; blocks_executed=0 is no_blocks_executed, not success.","LOGIC_ID_FROM_RECEIPT":"logic.dry_run needs logic_id from logic.create or logic.attach_template receipt — not a rule spec or template_id alone.","LOGIC_NO_SECOND_CREATE":"Do not logic.create a second rule — logic.get the id from the first create receipt.","LOGIC_ATTACH_TEMPLATE_CATALOG":"logic.attach_template: template_id from the built-in catalog — wrong id returns not_found; prefer attach_template over hand-copying blocks.","LOGIC_VERSION_CONFLICT":"logic.restore_version / logic.diff_versions: logic.list_versions first — stale version_id returns not_found; diff before restore.","LOGIC_COLLECTION_EMPTY_BLOCKED":"logic.update with empty triggers/space/schedulers is blocked (logic_collection_empty_blocked) — use write_mode intentionally."},"logic_plane_chooser":"logic.create or logic.attach_template from catalog, then logic.dry_run before enabling on production traffic. Heavy deterministic game/economy math → script.put + script.run (StackScript), not logic.create processors. logic.dry_run needs logic_id from the create/attach receipt — not a rule spec or template_id alone. Empty logic.list is this user's logic fork, else the live head. Do not logic.create a second rule — logic.get the id from the first receipt. Version history: logic.list_versions → logic.diff_versions → logic.restore_version. Integration Hub recipes may attach rules — do not duplicate inbound intake with a second logic.create.","logic_when_blocked":{"logic.create":{"invalid_parameters":"logic.get_commands + logic.signals_catalog before triggers/space","invalid_structure":"logic.get_processors for processor ids — fix graph before retry","processor_not_found":"logic.get_processors — specified processor not available","insufficient_permissions":"logic_write cap + project membership on tenant PID"},"logic.attach_template":{"not_found":"template_id from built-in catalog — verify id before attach_template","invalid_parameters":"context.project_id bound — template_id required","internal_error":"logic.list — reuse logic_id or logic.create with template blocks"},"logic.dry_run":{"not_found":"logic.list or logic.get — logic_id from create/attach receipt","invalid_parameters":"logic_id required — not template_id or inline rule spec","logic_execution_failed":"logic.get graph — fix processor ids via logic.get_processors","no_blocks_executed":"space has processors but none ran — logic.get the graph; dry_run is not a no-op"},"logic.update":{"logic_not_found":"logic.list or logic.get with same project_id before update","logic_collection_empty_blocked":"pass write_mode or non-empty collection — not wipe","write_mode_invalid":"logic.get_commands — supported write_mode for triggers/space","write_mode_unsupported":"append/prepend are not valid for logic collections","replacement_not_found":"replacements.find is not in text_field (description|name)","patch_apply_failed":"unified_diff did not apply on text_field — logic.get and retry","content_shrink_blocked":"full replace on text_field is much shorter — allow_shrink or search_replace","insufficient_permissions":"logic_write cap + project membership"},"logic.list_versions":{"not_found":"logic.list or logic.get — logic_id from create/attach receipt","invalid_parameters":"logic_id required — not template_id"},"logic.diff_versions":{"not_found":"logic.list_versions — pick two version ids from history","invalid_parameters":"logic_id and from_version/to_version required"},"logic.restore_version":{"not_found":"logic.list_versions — version_id must exist on logic_id","version_conflict":"logic.diff_versions first — CAS revision mismatch on restore","invalid_parameters":"logic_id + version_id required"},"logic.export_json":{"not_found":"logic.list or logic.get — export needs logic_id","invalid_parameters":"logic_id required"},"logic.import_json":{"invalid_parameters":"rule JSON body + logic_id or create path — logic.dry_run after import","invalid_structure":"logic.get_commands — processor ids must exist in project"},"logic.install_blueprint":{"not_found":"catalog blueprint id — prefer logic.attach_template when id known","invalid_parameters":"blueprint_id + project_id required"},"logic.get":{"not_found":"logic.list — logic_id from create/attach receipt","logic_not_found":"logic.list — logic_id from create/attach receipt","project_not_found":"bind context.project_id before logic.get","invalid_parameters":"logic_id + context.project_id required","internal_error":"retry once; logic.list if logic_id may be stale"},"logic.list":{"invalid_parameters":"context.project_id bound — optional filters only","unauthorized":"logic_read cap + project membership"},"logic.execute":{"not_found":"logic.get — rule must exist; logic.dry_run before production execute","logic_not_found":"logic.list — logic_id from create/attach receipt","logic_execution_failed":"logic.get_processors — fix graph before execute","execution_failed":"Rule execution failed — logic.get graph before retry","invalid_parameters":"logic_id + command_data required"},"logic.get_processors":{"invalid_parameters":"context.project_id bound","unauthorized":"logic_read cap before planning processors"},"logic.get_commands":{"invalid_parameters":"context.project_id bound","unauthorized":"logic_read cap — catalog of block commands"},"logic.flush_batch":{"invalid_parameters":"batch scope + project_id required","not_found":"no pending batch — logic.list or prior flush receipt","project_not_found":"bind context.project_id before logic.flush_batch","internal_error":"retry once; logic.list if batch state unknown"},"logic.signals_catalog":{"invalid_parameters":"context.project_id bound","unauthorized":"logic_read cap before wiring triggers"},"logic.mcp_actions_catalog":{"invalid_parameters":"context.project_id bound","unauthorized":"logic_read cap — processor action catalog"},"logic.delete":{"not_found":"logic.list — logic_id must exist before delete","logic_not_found":"logic.list — logic_id must exist before delete","insufficient_permissions":"logic_write cap + project membership","invalid_parameters":"logic_id + context.project_id required"}}},"prompts":{"system":"agentstack_system_instructions","session_setup":"agentstack_session_setup","safe_project_cycle":"agentstack_safe_project_cycle","closed_loop_autonomy":"agentstack_closed_loop_autonomy","work_graph":"agentstack_work_graph","inverse_orchestrator_playbook":"agentstack_inverse_orchestrator_playbook","tenant_8dna_supply":"agentstack_tenant_8dna_supply","read_bootstrap":"agentstack_read_bootstrap","hosting_static_landing":"agentstack_hosting_static_landing","hosting_react_dist":"agentstack_hosting_react_dist","hosting_file_edit":"agentstack_hosting_file_edit","execute_budget":"agentstack_execute_budget","write_modes":"agentstack_write_modes","text_editor":"agentstack_text_editor","kb_chunk_edit":"agentstack_text_editor","api_key_safety":"agentstack_api_key_safety"},"recipes":[{"id":"mcp_session_setup","label":"Auth + list projects (mandatory before tenant work)"},{"id":"mcp_platform_intake_v1","label":"Platform intake (reports + bus + plan_get + work_next)"},{"id":"mcp_work_loop_v1","label":"Work Graph agent loop (work_next → claim → execute)"},{"id":"mcp_read_bootstrap","label":"Read-only bootstrap (profile, limits, quota)"},{"id":"mcp_hosting_quickstart","label":"Publish a hosted site (/s/ URL)"},{"id":"mcp_integrations_checkout_crm","label":"Integration recipe + CRM contact"},{"id":"mcp_agents_run_approve","label":"List fleet and pending approvals"},{"id":"mcp_ai_providers_connect","label":"Connect Free.ai / partner LLM (platform supply)"},{"id":"mcp_agents_fleet_orient","label":"Read agent templates, fleet, and automation map"},{"id":"mcp_agents_create_from_template","label":"Create an agent from a catalog template"},{"id":"mcp_knowledge_ingest","label":"Knowledge config + KB ingest + health"},{"id":"mcp_knowledge_answer_tune","label":"Knowledge prompt tune → playground → promote"},{"id":"mcp_knowledge_acceptance_promote","label":"Knowledge acceptance suite → promote"},{"id":"mcp_crm_contact_deal","label":"CRM contact upsert + deal pipeline"},{"id":"mcp_hosted_vertical_bootstrap","label":"Hosted vertical workspace bootstrap"},{"id":"mcp_support_inbox","label":"Support staff inbox queue"},{"id":"mcp_support_respond_v1","label":"Support staff respond (inbox → reply)"},{"id":"mcp_analyst_readonly_v1","label":"Analyst read-only (RAG + CRM)"},{"id":"mcp_integration_ops_v1","label":"Integration ops (recipes + scheduler probe)"},{"id":"mcp_integrations_universal_connect_v1","label":"Universal connect (schema + install + test_hook)"},{"id":"mcp_content_writer_v1","label":"Content writer (hosting + RAG read)"},{"id":"mcp_business_composite_v1","label":"Business composite (snapshot + Compass setup)"},{"id":"mcp_tenant_business_assistant_v1","label":"Tenant business assistant (head + operator + Telegram)"},{"id":"mcp_bots_simulate","label":"Bots list + simulate (heavy LLM)"},{"id":"mcp_bot_reply_mailbox_v1","label":"Agent mailbox: handle → inbox → reply, ask, or deliver → ack"},{"id":"mcp_bot_message_bus_webhook_v1","label":"Agent bus webhook push wake + inbox pull"},{"id":"mcp_bot_order_manager_bootstrap_v1","label":"Group order + manager bootstrap (ACL + bus + verify routing_gates)"},{"id":"mcp_generation_diff","label":"Generation diff vs prod + gates"},{"id":"mcp_universal_safe_change","label":"Universal safe tenant change (preflight → promote)"},{"id":"mcp_bot_ai_release","label":"Bot AI release (logic only, no channel)"},{"id":"mcp_hosting_edit_site_safe","label":"Edit hosted site safely"},{"id":"mcp_hosting_edit_text_file_v1","label":"Edit one hosted text file (one patch, gzip refreshed)"},{"id":"mcp_hosting_static_landing_v1","label":"Publish static HTML landing (/s/)"},{"id":"mcp_site_growth_v1","label":"Site growth ladder (profile, site, quota, config)"},{"id":"mcp_notify_channels_v1","label":"Notification channels (bots, prefs, inbox)"},{"id":"mcp_platform_flows_v1","label":"Platform flows (preflight, sandbox, recipe atlas)"},{"id":"mcp_hosting_react_dist_v1","label":"Deploy pre-built React/Vite dist"},{"id":"mcp_project_data_safe_patch","label":"Safe 8DNA leaf patch"},{"id":"mcp_user_access_safe","label":"Safe user access + FAP"},{"id":"mcp_project_operator_session","label":"Project orchestrator operator session"},{"id":"mcp_orchestrator_memory_bootstrap","label":"Orchestrator RAG + memory bootstrap"},{"id":"mcp_agent_knowledge_memory_setup","label":"Agent knowledge + episodic memory setup"},{"id":"mcp_project_faq_bootstrap","label":"FAQ persona orchestrator bootstrap"},{"id":"mcp_readonly_audit_v1","label":"Read-only MCP certification audit"},{"id":"mcp_agent_certification_v1","label":"Agent mutation certification with verify"},{"id":"mcp_ecosystem_cert_wave_a_v1","label":"Ecosystem cert Wave A (inventory & contract)"},{"id":"mcp_ecosystem_cert_wave_b_v1","label":"Ecosystem cert Wave B (sandbox CRUD)"},{"id":"mcp_ecosystem_cert_wave_c_v1","label":"Ecosystem cert Wave C (deep lifecycles)"},{"id":"mcp_ecosystem_cert_wave_d_v1","label":"Ecosystem cert Wave D (golden E2E paths)"},{"id":"mcp_ecosystem_cert_wave_e_v1","label":"Ecosystem cert Wave E (security probes)"},{"id":"mcp_ecosystem_cert_wave_g_v1","label":"Ecosystem cert Wave G (certificate rollup)"},{"id":"mcp_stackscript_qa_ladder_v1","label":"StackScript QA ladder (docs, put, test, dry_run; no publish)"}],"recipes_extended":[{"name":"Compass playbook match","description":"Canonical PlaybookIds: guidance.list. NL goal → playbook via goal_text (aliases goal/query/intent coerced); match returns catalog_entry + verifyKinds from enriched compass_playbooks_intents_v1.json (51/51). Then guidance.start_path. PTC catalog: guidance.list_capability_tasks.","tools":["guidance.list","guidance.match_playbook","guidance.list_capability_tasks","guidance.start_path"],"recipe_id":"mcp_guidance_match"},{"name":"Build a React app on the platform","description":"mcp_app_studio_v1 does not run. One phase per batch: edit is source.patch, build is enqueue then status, publish only when asked. A replacements string is literal, including JSX braces. Editing /s/ bytes is hosting.bucket.file.patch.","tools":["ai_builder.source.patch"],"recipe_id":"mcp_app_studio_v1"},{"name":"Create an App Studio tree","description":"Template phase. compose.apply with blueprint_id and branch. Skip when the tree already exists.","tools":["ai_builder.compose.apply"],"recipe_id":"mcp_app_studio_create_v1"},{"name":"Edit an App Studio slot","description":"Known string: one source.patch replacements. Whole function: symbols [{name, replace}]. view=skeleton only to learn the name. Pass expected_sha256; a mismatch writes nothing. agent_completion.done starts the build batch.","tools":["ai_builder.source.get","ai_builder.source.patch"],"recipe_id":"mcp_app_studio_edit_v1"},{"name":"Build an App Studio tree","description":"enqueue then status. Omit build_uuid. On failed: read errors[0].file and line, patch that src file (not package.json), enqueue again. Does not publish.","tools":["ai_builder.build.enqueue","ai_builder.build.status"],"recipe_id":"mcp_app_studio_build_v1"},{"name":"Publish an App Studio build","description":"Only when the user asks to publish. Omit bucket_id when a primary site exists.","tools":["ai_builder.publish"],"recipe_id":"mcp_app_studio_publish_v1"},{"name":"Knowledge mentor playground","description":"One heavy playground turn (mentor simulate with RAG trace)","tools":["knowledge.playground"],"recipe_id":"mcp_knowledge_playground"},{"name":"Key2Unity auth portal supply","description":"Bucket resolve, persona leaves, bot identity, generation promote — not vertical_workspace.bootstrap","tools":["generation.settings.get","hosting.site.resolve","projects.patch_data","generation.diff_vs_prod","generation.gates","generation.promote","bots.update"],"recipe_id":"mcp_key2unity_auth_portal"},{"name":"Tenant bots heal verify","description":"UF_BOTS_HEAL — generation.settings.get → bots.list → bots.ensure_mentor_commands per bot_id; then diff, gates, promote as separate sync executes (GENERATION_SYNC_BATCH_BUDGET). Prompt agentstack_tenant_ops_mcp_first.","tools":["generation.settings.get","bots.list","bots.ensure_mentor_commands","generation.diff_vs_prod","generation.gates","generation.promote"],"recipe_id":"mcp_tenant_bots_heal_verify"},{"name":"Grant OS pipeline ops","description":"Hub snapshot, opportunity upsert, packet sync, compose, bundle","tools":["grants.crm.hub_snapshot","grants.opportunity.upsert","grants.crm.sync","grants.compose.checklist","grants.bundle.download"],"recipe_id":"mcp_grants_os_crm_ops"},{"name":"Studio diagnostic SoW","description":"After POST /api/public/services/inquiry (202, notify_pending): services.diagnostic_sow_draft + optional CRM persist on pid=1","tools":["services.diagnostic_sow_draft"],"recipe_id":"mcp_studio_diagnostic_sow"},{"name":"Studio phase-1 knowledge mentor","description":"Delivery slot, hosting, RAG, bot, promote","tools":["services.apply_delivery_slot","hosting.site.quick_start","rag.collection_create","bots.create","generation.promote"],"recipe_id":"mcp_studio_phase1_knowledge_mentor"},{"name":"Webhook + scheduler iPaaS","description":"Inbound webhook recipe + scheduled task","tools":["integrations.list_recipes","integrations.install_recipe","scheduler.create_task"],"recipe_id":"mcp_integrations_webhook_scheduler"},{"name":"CRM lead + notify","description":"Lead capture recipe + staff notification","tools":["integrations.install_recipe","integrations.connection_health","notifications.send_push"],"recipe_id":"mcp_integrations_crm_lead_notify"},{"name":"Studio phase-1 data migration","description":"Migrator cutover: discovery, tenant, DNA leaf, gates, promote","tools":["services.apply_delivery_slot","discovery.list","auth.get_profile","projects.create_project","projects.patch_data","storage.get_quota","logic.create","scheduler.create_task","generation.diff_vs_prod","generation.gates","generation.promote"],"recipe_id":"mcp_studio_phase1_data_migration"},{"name":"Agents fleet orientation (binding + diagnostics)","description":"Fleet diagnostics, binding reconcile when stale, then template catalog.","tools":["agents.fleet_diagnostics","agents.reconcile_binding","agents.templates_list","agents.list"],"recipe_id":"mcp_agents_fleet_orientation_v1"},{"name":"Inspect one agent","description":"Spec, policy preview, and automation map for one agent.","tools":["agents.get","agents.policy_preview","agents.automation_map"],"recipe_id":"mcp_agents_inspect"},{"name":"Merge one agent section","description":"Deep-merge one AgentSpec section via update_agent_spec. Lists replace; objects merge.","tools":["agents.update"],"recipe_id":"mcp_agents_patch_section"},{"name":"Mark agent ready","description":"Set lifecycle state to ready so triggers can fire. Does not set live.","tools":["agents.update"],"recipe_id":"mcp_agents_set_ready"},{"name":"Bind RAG collections to an agent","description":"Confirm a collection, then merge rag_settings.collection_ids. Does not create the collection.","tools":["rag.collection_get","agents.update"],"recipe_id":"mcp_agents_bind_rag"},{"name":"Schedule an agent","description":"Merge scheduler.tick plus a preset. Do not add chat triggers if support or a bot already owns the agent.","tools":["agents.update"],"recipe_id":"mcp_agents_schedule"},{"name":"Import agent from asset","description":"Load an asset, then fulfill it. The asset object is passed as recipe_params.asset from assets.get.","tools":["assets.get"],"recipe_id":"mcp_agents_import_asset"},{"name":"Fulfill agent asset","description":"Create an agent from a commerce asset object returned by assets.get.","tools":["agents.import_from_asset"],"recipe_id":"mcp_agents_import_apply"},{"name":"Fork an agent generation","description":"DNA child generation of one agent. This is not generation.fork.","tools":["agents.fork"],"recipe_id":"mcp_agents_fork"},{"name":"Enqueue an agent run","description":"Queue one run with wait false. Poll is a separate recipe.","tools":["agents.run"],"recipe_id":"mcp_agents_run_enqueue"},{"name":"Poll an agent run","description":"Read run status. run_id is the previous run_uuid.","tools":["agents.run_get"],"recipe_id":"mcp_agents_run_poll"},{"name":"Debug an agent run","description":"Status, traces, and recent timeline for one agent.","tools":["agents.run_get","agents.traces","agents.timeline"],"recipe_id":"mcp_agents_debug"},{"name":"Approve a waiting run","description":"List pending approvals, then approve one run. Not part of create.","tools":["agents.list_pending_approvals","agents.approve_run"],"recipe_id":"mcp_agents_approve_run"},{"name":"Stop an agent run","description":"Cancel one queued or running run.","tools":["agents.stop"],"recipe_id":"mcp_agents_stop"},{"name":"Kill an agent","description":"Set lifecycle to killed so new runs stop. Not for a single stuck run — use mcp_agents_stop.","tools":["agents.kill"],"recipe_id":"mcp_agents_kill"},{"name":"Configure project orchestrator","description":"Read and patch project orchestrator config. Does not call agents.orchestrate.","tools":["projects.orchestrator.get","projects.orchestrator.patch"],"recipe_id":"mcp_agents_orchestrator_configure"},{"name":"Run project orchestrator once","description":"One agents.orchestrate call with wait false. Poll the returned run_uuid as run_id.","tools":["agents.orchestrate"],"recipe_id":"mcp_agents_orchestrate_once"},{"name":"Enqueue a handoff run","description":"Parent run carries handoff_to_agent_id. The child starts only after the parent completes.","tools":["agents.run"],"recipe_id":"mcp_agents_handoff_enqueue"},{"name":"Review agent sandbox diff","description":"Diff and gates for an existing sandbox anchor. Not in the same batch as agents.update.","tools":["generation.diff_vs_prod","generation.gates"],"recipe_id":"mcp_agents_generation_review"},{"name":"Promote an agent version","description":"Agent version gates and agents.promote. Not generation.promote.","tools":["agents.metrics","agents.gates","agents.promote"],"recipe_id":"mcp_agents_version_promote"},{"name":"Bind agent as bot brain","description":"Set bot brain.mode=agent and brain.agent_uuid. Merge keeps other brain fields. No simulate in this batch.","tools":["bots.get","bots.update"],"recipe_id":"mcp_agents_bind_bot_brain"},{"name":"Bind agent to support config","description":"Set support config ai_agent_uuid and ai_mode, then read binding health. Does not add chat triggers or a bot brain.","tools":["social.support.config.patch","social.support.ai_binding_health"],"recipe_id":"mcp_agents_bind_support"},{"name":"Implementer then browser verifier","description":"Enqueue orchestrator implementer run, poll status, then enqueue verifier template with writes_allowed=false (browser_verification evidence on parent).","tools":["agents.orchestrate","agents.run_get","agents.create","agents.run_get"],"recipe_id":"mcp_agents_implementer_verifier_v1"},{"name":"Corporate mailbox read","description":"List @agentstack.tech mailbox threads then open one thread.","tools":["messaging.inbox.list","messaging.inbox.get"],"recipe_id":"mcp_messaging_mailbox_v1"},{"name":"Upload to project storage","description":"Check quota then load the REST upload contract.","tools":["storage.get_quota","storage.upload"],"recipe_id":"mcp_storage_upload"},{"name":"Manage stored files","description":"List project files and re-check quota.","tools":["storage.list_files","storage.get_quota"],"recipe_id":"mcp_storage_manage"},{"name":"Knowledge base search","description":"Health check then semantic search across project knowledge.","tools":["knowledge.health","rag.search"],"recipe_id":"mcp_knowledge_search"},{"name":"Promote sandbox generation","description":"Diff, gates, then promote. Ordered recipe phases — automate as separate sync agentstack.execute calls (GENERATION_SYNC_BATCH_BUDGET): diff alone, then gates, then promote with require_gates_passed.","tools":["generation.diff_vs_prod","generation.gates","generation.promote"],"recipe_id":"mcp_generation_promote"},{"name":"Commerce orientation","description":"Read balance, wallets, and assets before any charge or deposit.","tools":["payments.get_balance","wallets.list","assets.list"],"recipe_id":"mcp_commerce_orient"},{"name":"Open a wallet","description":"Create one wallet. Deposit is the next recipe after you copy wallet_id.","tools":["wallets.create"],"recipe_id":"mcp_commerce_wallet_open"},{"name":"Deposit to a wallet","description":"Credit a wallet you already listed. Do not invent wallet_id from the same batch.","tools":["wallets.deposit"],"recipe_id":"mcp_commerce_wallet_deposit"},{"name":"Treasury and wallets","description":"Project treasury portfolio beside personal or commerce wallets.","tools":["finance.project.portfolio","wallets.list"],"recipe_id":"mcp_treasury_read"},{"name":"Logic rules orientation","description":"List rules and processors before creating another rule.","tools":["logic.list","logic.get_processors"],"recipe_id":"mcp_logic_orient"},{"name":"Create a logic rule","description":"Create one rule from recipe_params. Dry-run that id in the next recipe.","tools":["logic.create"],"recipe_id":"mcp_logic_create"},{"name":"Dry-run a logic rule","description":"Simulate an existing rule. logic.dry_run needs logic_id, not a spec.","tools":["logic.dry_run"],"recipe_id":"mcp_logic_dry_run"},{"name":"Scheduled tasks","description":"List cron tasks. Create is a separate recipe.","tools":["scheduler.list_tasks"],"recipe_id":"mcp_scheduler_orient"},{"name":"Create a scheduled task","description":"One scheduler.create_task. Required shape is name, cron, and command. timezone defaults to UTC. execute_at is a single run; cron without it stays recurring.","tools":["scheduler.create_task"],"recipe_id":"mcp_scheduler_task"},{"name":"Storage quota and files","description":"Quota and the root folder. Upload bytes stay on REST.","tools":["storage.get_quota","storage.list_files"],"recipe_id":"mcp_storage_orient"},{"name":"Match a Compass playbook","description":"Map a goal sentence to a playbook id. Start that path in the next recipe.","tools":["guidance.list","guidance.match_playbook"],"recipe_id":"mcp_guidance_match"},{"name":"Start a Compass path","description":"Start a known playbook and read path status.","tools":["guidance.start_path","guidance.path_status"],"recipe_id":"mcp_guidance_start"},{"name":"Search a knowledge collection","description":"One rag.search. Ingest and playground stay in the knowledge recipes.","tools":["rag.search"],"recipe_id":"mcp_rag_search"},{"name":"List messenger channels","description":"Discover channels. History is the next recipe once you have channel_id.","tools":["social.channels.list"],"recipe_id":"mcp_messenger_channels"},{"name":"Read a messenger channel","description":"Read one channel. Posting is social.chat.post in a later batch.","tools":["social.chat.history"],"recipe_id":"mcp_messenger_history"},{"name":"Business organism read","description":"Org summary and command snapshot for a head project.","tools":["business.get_org","business.command_snapshot"],"recipe_id":"mcp_business_read"},{"name":"Create a business composite","description":"One business.create_composite. Organs are a list you pass in.","tools":["business.create_composite"],"recipe_id":"mcp_business_composite"},{"name":"Create a scoped API key","description":"Mint one agent PAT. The secret is returned once.","tools":["apikeys.create"],"recipe_id":"mcp_apikey_scoped"},{"name":"Effective buff limits","description":"Read effective limits before creating or applying a buff template.","tools":["buffs.get_effective_limits"],"recipe_id":"mcp_buffs_orient"},{"name":"Create a buff template","description":"Create a PENDING buff template. For subscription/SKU entitlements use grant rails (grant_tenant_subscription / grant_subscription / mcp_tenant_subscription_monetization) — not mcp_buffs_apply. mcp_buffs_apply is for non-subscription templates (promo, event, limits).","tools":["buffs.create_buff"],"recipe_id":"mcp_buffs_create"},{"name":"Apply a buff","description":"Activate a PENDING buff on a user or project. buff_id comes from create, not from this batch. Platform tiers: buffs.grant_subscription (PID=1). Tenant manual: buffs.grant_tenant_subscription. Tenant paid checkout: webhook/C24 auto-grant — not this recipe after payments.create.","tools":["buffs.apply_buff"],"recipe_id":"mcp_buffs_apply"},{"name":"Apply field-access defaults","description":"Copy missing FAP resources onto a user project. Does not target ecosystem project 1.","tools":["data_access.apply_defaults_template"],"recipe_id":"mcp_fap_defaults"},{"name":"Send one notice","description":"Deliver one notice after mcp_notify_channels_v1. The recipient must already be enrolled on a bot channel.","tools":["preflight.check","notifications.deliver"],"recipe_id":"mcp_notify_deliver"},{"name":"Plan a storefront seed","description":"Dry-run a catalog pack. Apply is the next recipe and needs the plan object.","tools":["commerce.storefront.seed_plan"],"recipe_id":"mcp_storefront_plan"},{"name":"Apply a storefront seed","description":"Write the plan returned by commerce.storefront.seed_plan.","tools":["commerce.storefront.seed_apply"],"recipe_id":"mcp_storefront_apply"},{"name":"Safety text probe","description":"Evaluate one text. Config patch and promote stay in later batches.","tools":["safety.evaluate"],"recipe_id":"mcp_safety_probe"},{"name":"List hosted bucket files","description":"List files on the primary site or a named bucket. This is the /s/ tree, not storage.","tools":["hosting.bucket.files.list"],"recipe_id":"mcp_site_file_list"},{"name":"Read one hosted text file","description":"Read one UTF-8 bucket file when the bytes are unknown. A known string is mcp_hosting_edit_text_file_v1 and does not need this digest.","tools":["hosting.bucket.file.get"],"recipe_id":"mcp_site_file_read"},{"name":"Snapshot a hosted bucket","description":"Immutable copy before a text write. The orchestrator allows this on mcp or workspace when competence_tier is dev_operator.","tools":["hosting.release.snapshot"],"recipe_id":"mcp_site_file_snapshot"},{"name":"Search-replace a hosted text file","description":"Prefer mcp_hosting_edit_text_file_v1: one search_replace, no GET and no dry_run. This recipe previews then applies only when expected_sha256 is already in hand.","tools":["hosting.bucket.file.patch","hosting.bucket.file.patch"],"recipe_id":"mcp_site_file_replace"},{"name":"Replace a hosted text file","description":"Whole-file replace when the new body is already known. A substring edit is mcp_hosting_edit_text_file_v1. agent_completion.done means skip edge_health.","tools":["hosting.bucket.file.patch","hosting.bucket.file.patch"],"recipe_id":"mcp_site_file_write"},{"name":"Check hosted edge","description":"After hosting.deploy_files, until edge_ready. A file.patch result with agent_completion.done does not need this read.","tools":["hosting.site.edge_health"],"recipe_id":"mcp_site_edge"},{"name":"List user or project files","description":"List attachment files for the signed-in user or the project folder. Not the hosted /s/ tree.","tools":["storage.list_files"],"recipe_id":"mcp_storage_scope"},{"name":"Storage upload contract","description":"Return the REST multipart contract. MCP does not carry file bytes. A user avatar is POST /api/profile/avatar, not this recipe.","tools":["storage.upload"],"recipe_id":"mcp_storage_upload_gate"},{"name":"Delete one stored file","description":"Delete one registry file. file_id comes from a previous list.","tools":["storage.delete_file"],"recipe_id":"mcp_storage_delete"},{"name":"FAQ reply desk","description":"Bot and messenger answer from docs. Rebinds every bot brain. Does not bind support.","tools":["projects.orchestrator.patch"],"recipe_id":"mcp_orch_faq_desk"},{"name":"Support reply desk","description":"Messenger support replies. Does not rebind bot brains.","tools":["projects.orchestrator.patch"],"recipe_id":"mcp_orch_support_desk"},{"name":"API reply desk","description":"External system calls the orchestrator run REST path with channel api. Key is mcp_apikey_scoped.","tools":["projects.orchestrator.patch"],"recipe_id":"mcp_orch_api_desk"},{"name":"Dev operator desk","description":"mcp and workspace may snapshot and patch site text. Reply sync flags stay as they are.","tools":["projects.orchestrator.patch"],"recipe_id":"mcp_orch_dev_desk"},{"name":"Business operator desk","description":"Tenant business assistant: dev_operator on bot/mcp, no mass bot_brain_sync.","tools":["projects.orchestrator.patch"],"recipe_id":"mcp_orch_business_operator_desk"},{"name":"Docs memory desk","description":"Point orchestrator memory at collection ids copied from a prior search or ingest.","tools":["projects.orchestrator.patch"],"recipe_id":"mcp_orch_docs_desk"},{"name":"Elevate operator capabilities","description":"Replace policy.capabilities with the elevated list, including file delete and role change.","tools":["agents.update"],"recipe_id":"mcp_orch_operator_caps"},{"name":"List project users","description":"Read project members. Role change is the next recipe.","tools":["projects.get_users"],"recipe_id":"mcp_users_list"},{"name":"Change a project role","description":"Set a member role. user_id comes from mcp_users_list. Owner cannot be assigned here.","tools":["projects.update_user_role"],"recipe_id":"mcp_users_role"}],"discovery_ladder":[{"step":0,"label":"Session probe","url":"/mcp/prompts/get?name=agentstack_session_setup","method":"GET","action":"auth.get_profile"},{"step":1,"label":"Work Graph default (bound project)","url":"agents.work_next","method":"MCP","action":"agents.work_next","skill":"/mcp/prompts/get?name=agentstack_work_graph"},{"step":2,"label":"Registry status","url":"discovery.status","method":"MCP"},{"step":3,"label":"Schema lookup — max one discovery.search per execute; use q=","url":"discovery.search","method":"MCP"},{"step":4,"label":"Describe chosen action","url":"discovery.describe","method":"MCP"},{"step":5,"label":"Preflight then execute","url":"preflight.check","method":"MCP"}],"machine_discovery_ladder":[{"step":0,"label":"Session probe","url":"/mcp/prompts/get?name=agentstack_session_setup","method":"GET","action":"auth.get_profile"},{"step":1,"label":"Work Graph default (bound project)","url":"agents.work_next","method":"MCP","action":"agents.work_next","skill":"/mcp/prompts/get?name=agentstack_work_graph"},{"step":2,"label":"Registry status","url":"discovery.status","method":"MCP"},{"step":3,"label":"Schema lookup — max one discovery.search per execute; use q=","url":"discovery.search","method":"MCP"},{"step":4,"label":"Describe chosen action","url":"discovery.describe","method":"MCP"},{"step":5,"label":"Preflight then execute","url":"preflight.check","method":"MCP"}],"http_bootstrap_ladder":[{"step":0,"label":"Contract (slim)","url":"/mcp/ai_prompt?mode=contract","method":"GET"},{"step":1,"label":"Server manifest","url":"/mcp/manifest","method":"GET"},{"step":2,"label":"Organs map","url":"/mcp/organs","method":"GET"},{"step":3,"label":"Public catalog schemas","url":"/mcp/actions?schemas=public","method":"GET"}],"closed_loop_ladder":[{"step":0,"step_id":"session","label":"Session + project","detail":"/mcp/prompts/get?name=agentstack_session_setup — bind context.project_id"},{"step":1,"step_id":"route","label":"Route goal","detail":"Cold start: no project_id → agentstack_session_setup only. Do not discovery.search until context.project_id is set. Bound project: agents.work_next first; discovery.search only when packet.next_action is absent. Status-only poll → agents.work_status (no claim params)."},{"step":2,"step_id":"plan_read","label":"Plan read + sandbox","detail":"agents.plan_get — include_execution_eligibility=true; optional env_uuid for sandbox slice"},{"step":3,"step_id":"work_pick","label":"Pick next work","detail":"agents.work_next — read dependency_ready (structural) vs execution_ready (fleet) separately; blocked_work.execution_summary + instruction_packet.execution_summary; dependency_ready=false → wait deps; execution_ready=false with deps ok → provision before claim"},{"step":4,"step_id":"plan_draft","label":"Draft / decompose (optional)","detail":"agents.plan_propose → validation.plan_valid + execution.execution_summary → agents.plan_apply_proposal (same env_uuid and validation_mode); persist_unexecutable for intake-only (H8); plan_process_backlog auto_apply=off; facet_repair bounded max 2 (H9); planning_artifact evidence-only (H10)"},{"step":5,"step_id":"claim_execute","label":"Claim + execute","detail":"agents.plan_claim — CAS revision; role_mismatch → handoff not retry loop → agents.plan_execute — only after claim; attach evidence for completion_predicates; ensure_agent create=false then create=true when provision_required (H5/H7)"},{"step":6,"step_id":"verify_recover","label":"Verify + recover","detail":"completion not_evaluable ≠ passed; verification_failed → agents.plan_compaction_preview → agents.plan_heal_leaf (dry_run then apply) — spill_incomplete or plan_graph_too_large; agents.plan_recovery_scan — verification_failed candidates + stale claims; optional env_uuid; agents.plan_propose mode=repair_plan — target node_id; allow_generic_acceptance repair-only; agents.plan_apply_proposal — same env_uuid as propose on sandbox forks; agents.work_next handoff=true node_id=… — re-resolve after repair or provision; diagnostics reconcile"},{"step":7,"step_id":"business_team","label":"Business / team (optional)","detail":"/mcp/prompts/get?name=agentstack_business_organism for head+organs; agents.team.create + templates for specialist fleet"}],"inverse_orchestration_ladder":[{"step":0,"label":"Resume workflow_run_id","detail":"Pass the same workflow_run_id from the prior execute response when continuing a playbook."},{"step":1,"label":"Read instruction_packet","detail":"Use only allowed_actions from the last packet; respect writes_allowed and forbidden_actions."},{"step":2,"label":"Execute one allowed action","detail":"agentstack.execute with a single tool from allowed_actions; do not batch unrelated writes."},{"step":3,"label":"On violation","detail":"orchestration_step_violation means the tool was outside the current step — re-read discovery.describe, do not retry blindly."},{"step":4,"label":"Async handoff","detail":"options.async=true returns job_id — poll discovery.job_status or MCP tasks/get (same receipt; tasks/result when completed). One semantic, two client APIs."}],"execute_pipeline":[{"id":"gpt_body","phase":"ingress","fn":"_normalize_gpt_actions_body"},{"id":"recipe","phase":"ingress","fn":"_expand_recipe_steps"},{"id":"validate_steps","phase":"ingress","fn":"_validate_steps"},{"id":"sync_budget","phase":"ingress","fn":"prepare_sync_execute"},{"id":"resolve_context","phase":"auth","fn":"resolve_mcp_context"},{"id":"body_context","phase":"auth","fn":"coalesce_execute_body_context"},{"id":"context_override_gate","phase":"auth","fn":"_validate_execute_context_overrides"},{"id":"resolve_tool","phase":"step","fn":"_resolve_tool_name"},{"id":"normalize_params","phase":"step","fn":"normalize_params"},{"id":"coerce","phase":"step","fn":"apply_tool_coercions"},{"id":"validate_params","phase":"step","fn":"validate_tool_params"},{"id":"service_caps","phase":"step","fn":"L1_service_caps"},{"id":"fabric_guard","phase":"step","fn":"run_fabric_guard"},{"id":"generation_fork","phase":"step","fn":"try_auto_fork_before_mcp_tool"},{"id":"handler","phase":"step","fn":"MCP_TOOLS_REGISTRY"},{"id":"post_process","phase":"step","fn":"post_process_mcp_tool_result"}],"flow_receipt_schema":{"flow_id":"str","project_id":"int","env_uuid":"str|null","catalog_etag":"str","trace_ids":["str"],"tests":{"passed":"int","failed":"int"},"gates":["object"],"recovery":{"checkpoint_id":"str|null"},"final_state":"completed|blocked|aborted|rolled_back"},"flow_catalog":{"recipe_to_flow":{"mcp_generation_diff":"UF_DIAGNOSE","mcp_generation_promote":"UF_F1_ROUTINE","mcp_knowledge_ingest":"UF_KNOWLEDGE_READ","mcp_knowledge_answer_tune":"UF_KNOWLEDGE_PROMPT_TUNE","mcp_knowledge_acceptance_promote":"UF_KNOWLEDGE_VALIDATE","mcp_universal_safe_change":"UF_F1_ROUTINE","mcp_tenant_iap_checkout_v1":"UF_TENANT_IAP_CHECKOUT","mcp_shop_order_lookup_v1":"UF_TENANT_IAP_CHECKOUT","mcp_marketplace_checkout_v1":"UF_TENANT_IAP_CHECKOUT","mcp_commerce_seller_activate_v1":"UF_TENANT_IAP_CHECKOUT","mcp_bot_ai_release":"UF_F1_ROUTINE","mcp_project_data_safe_patch":"UF_F1_ROUTINE","mcp_user_access_safe":"UF_F1_ROUTINE","mcp_tenant_bots_heal_verify":"UF_BOTS_HEAL","mcp_tenant_business_assistant_v1":"UF_TENANT_BUSINESS_ASSISTANT","mcp_hosted_vertical_bootstrap":"UF_HOSTED_BOOTSTRAP","mcp_key2unity_auth_portal":"UF_KEY2UNITY_PORTAL","mcp_site_growth_v1":"UF_SITE_GROWTH","mcp_read_bootstrap":"UF_SITE_GROWTH","mcp_hosting_quickstart":"UF_SITE_GROWTH","mcp_hosting_static_landing_v1":"UF_SITE_GROWTH","mcp_hosting_edit_site_safe":"UF_SITE_GROWTH","mcp_hosting_edit_text_file_v1":"UF_SITE_GROWTH","mcp_hosting_react_dist_v1":"UF_SITE_GROWTH","mcp_hosting_workspace_build_v1":"UF_SITE_GROWTH","mcp_hosting_git_journal":"UF_GENETIC_VERIFY","mcp_universal_safe_change_genetic_reindex":"UF_GENETIC_REINDEX_SAFE","mcp_deploy_surface_route_v1":"UF_DEPLOY_SURFACE","mcp_site_with_backend_v1":"UF_DEPLOY_SURFACE","mcp_deploy_full_stack_v1":"UF_DEPLOY_SURFACE","mcp_app_studio_create_v1":"UF_APP_STUDIO_GROWTH","mcp_app_studio_build_v1":"UF_APP_STUDIO_GROWTH","mcp_app_studio_publish_v1":"UF_APP_STUDIO_GROWTH","mcp_showcase_catalog_safe":"UF_SHOWCASE_CATALOG","mcp_agents_fleet_orient":"UF_AGENTS_CONFIGURE","mcp_agents_create_from_template":"UF_AGENTS_CONFIGURE","mcp_agents_patch_section":"UF_AGENTS_CONFIGURE","mcp_agents_set_ready":"UF_AGENTS_CONFIGURE","mcp_agents_bind_rag":"UF_AGENTS_CONFIGURE","mcp_agents_bind_support":"UF_AGENTS_CONFIGURE","mcp_agents_bind_bot_brain":"UF_AGENTS_CONFIGURE","mcp_agents_schedule":"UF_AGENTS_CONFIGURE","mcp_agents_run_enqueue":"UF_AGENTS_RUN","mcp_agents_handoff_enqueue":"UF_AGENTS_RUN","mcp_agents_orchestrate_once":"UF_AGENTS_RUN","mcp_work_loop_v1":"UF_WORK_GRAPH_LOOP","mcp_integrations_checkout_crm":"UF_F1_ROUTINE","mcp_integrations_universal_connect_v1":"UF_F1_ROUTINE","mcp_integration_ops_v1":"UF_DIAGNOSE","mcp_crm_contact_deal":"UF_F1_ROUTINE","mcp_stackscript_promote_v1":"UF_STACKSCRIPT_PROMOTE","mcp_stackscript_sandbox_v1":"UF_STACKSCRIPT_SANDBOX","mcp_stackscript_qa_ladder_v1":"UF_STACKSCRIPT_QA","mcp_agents_run_approve":"UF_AGENTS_RUN","mcp_support_inbox":"UF_DIAGNOSE","mcp_support_respond_v1":"UF_AGENTS_RUN","mcp_analyst_readonly_v1":"UF_KNOWLEDGE_READ","mcp_content_writer_v1":"UF_SITE_GROWTH","mcp_business_composite_v1":"UF_SUPPLY_READ","mcp_bots_simulate":"UF_BOTS_HEAL","mcp_bot_reply_mailbox_v1":"UF_BOT_MESSAGE_BUS","mcp_bot_message_bus_webhook_v1":"UF_BOT_MESSAGE_BUS","mcp_notify_channels_v1":"UF_SUPPLY_READ","mcp_platform_flows_v1":"UF_SUPPLY_READ","mcp_agent_knowledge_memory_setup":"UF_KNOWLEDGE_READ"},"flows":{"UF_SUPPLY_READ":{"flow_id":"UF_SUPPLY_READ","title":"Supply plane snapshot","intent":"Confirm buff, quota, auto_generation settings before any mutation.","matrix_ref":"F9","prod_safe":true,"steps":[{"step_id":"supply","action":"generation.supply_status","mutates":false,"env_pin":"none"},{"step_id":"settings","action":"generation.settings.get","mutates":false,"env_pin":"none"},{"step_id":"list","action":"generation.list","mutates":false,"env_pin":"none"},{"step_id":"status","action":"generation.status","mutates":false,"env_pin":"none"}]},"UF_F1_ROUTINE":{"flow_id":"UF_F1_ROUTINE","title":"Routine tenant edit → promote","intent":"Fork or auto-fork → patch → diff → gates → promote. Run diff, gates, and promote as separate sync executes (GENERATION_SYNC_BATCH_BUDGET) — not one multi-mutation batch unless options.async=true.","matrix_ref":"F1","prod_safe":false,"steps":[{"step_id":"fork","action":"generation.fork","mutates":true,"env_pin":"none"},{"step_id":"patch","action":"knowledge.config.patch","mutates":true,"env_pin":"required"},{"step_id":"diff","action":"generation.diff_vs_prod","mutates":false,"env_pin":"required"},{"step_id":"gates","action":"generation.gates","mutates":false,"env_pin":"required"},{"step_id":"promote","action":"generation.promote","mutates":true,"env_pin":"required"}]},"UF_DIAGNOSE":{"flow_id":"UF_DIAGNOSE","title":"Diagnose pending sandbox","intent":"List open envs, diff vs prod, optional gates, timeline — never promote. Agents run list / diff / gates in separate sync executes (GENERATION_SYNC_BATCH_BUDGET). Recipe mcp_generation_diff is phase order only — not one 3-step batch.","matrix_ref":"F2","prod_safe":true,"steps":[{"step_id":"list","action":"generation.list","mutates":false,"env_pin":"none"},{"step_id":"diff","action":"generation.diff_vs_prod","mutates":false,"env_pin":"required"},{"step_id":"gates","action":"generation.gates","mutates":false,"env_pin":"required"},{"step_id":"timeline","action":"generation.timeline","mutates":false,"env_pin":"none"}]},"UF_KNOWLEDGE_READ":{"flow_id":"UF_KNOWLEDGE_READ","title":"Knowledge plane read","intent":"Config + health before ingest or playground.","matrix_ref":"F2","prod_safe":true,"steps":[{"step_id":"cfg","action":"knowledge.config.get","mutates":false,"env_pin":"none"},{"step_id":"health","action":"knowledge.health","mutates":false,"env_pin":"none"}]},"UF_KNOWLEDGE_VALIDATE":{"flow_id":"UF_KNOWLEDGE_VALIDATE","title":"Patch + playground validate","intent":"Sandbox patch → diff → playground (heavy) with generation_env_uuid context.","matrix_ref":"F1","prod_safe":false,"steps":[{"step_id":"patch","action":"knowledge.config.patch","mutates":true,"env_pin":"required"},{"step_id":"diff","action":"generation.diff_vs_prod","mutates":false,"env_pin":"required"},{"step_id":"playground","action":"knowledge.playground","mutates":false,"env_pin":"optional"}]},"UF_BOTS_HEAL":{"flow_id":"UF_BOTS_HEAL","title":"Mentor bots heal → promote","intent":"ensure_mentor_commands per bot → diff → gates → promote (repeat heal per bot_id). Diff, gates, promote = separate sync executes (GENERATION_SYNC_BATCH_BUDGET).","matrix_ref":"F1","prod_safe":false,"steps":[{"step_id":"heal","action":"bots.ensure_mentor_commands","mutates":true,"env_pin":"none"},{"step_id":"diff","action":"generation.diff_vs_prod","mutates":false,"env_pin":"required"},{"step_id":"gates","action":"generation.gates","mutates":false,"env_pin":"required"},{"step_id":"promote","action":"generation.promote","mutates":true,"env_pin":"required"}]}}},"discovery":{"catalog_actions_public":953,"catalog_domains_public":71,"registry_tools_count":1026,"counter_ladder_note":"Three counts — do not conflate: registry_tools_count (full MCP registry); mcp_executable_total (callable MCP actions in agentstack.execute); catalog_actions_public (marketing floor MCP_CATALOG_ACTIONS); catalog_total_actions (GET /mcp/actions total incl. commerce_rest when present). mcp_surface_tools=2 (agentstack.execute + agentstack.read).","actions_summary_url":"/mcp/actions/summary","ai_prompt_url":"/mcp/ai_prompt","manifest_url":"/mcp/manifest","organs_url":"/mcp/organs","discovery_url":"/mcp/discovery","actions_url":"/mcp/actions","health_url":"/mcp/health","prompts_url":"/mcp/prompts/get","intent_url":"/mcp/discover/by_intent","recipes_url":"/mcp/recipes","mcp_docs_hub_url":"/mcp-docs","onboarding_docs_mirror_path":"/docs/mcp-first-call","oauth_connect_help_url":"/mcp/connect","oauth_authorize_well_known_url":"/.well-known/oauth-authorization-server/mcp","oauth_protected_resource_well_known_url":"/.well-known/oauth-protected-resource/mcp","oauth_authorize_path":"/mcp/.well-known/oauth-authorize","oauth_token_path":"/mcp/.well-known/oauth-token","oauth_browser_bridge_path":"/api/auth/mcp-oauth-bridge","device_code_authorize_path":"/api/oauth2/device/authorize","device_code_token_path":"/api/oauth2/token","session_probe_action":"auth.get_profile","auth_method_ids":["oauth_browser","device_code","api_key","mcp_auth_login"],"cursor_mcp_surfaces":{"plugin_namespace":"plugin-agentstack-*","plugin_auth":"oauth_connect_g_a174","user_namespace":"user-agentstack","user_auth":["device_code","api_key","mcp_execute_bridge"],"note":"Device Code in ~/.cursor/mcp.json does not sign plugin-agentstack-*; use Connect on plugin MCP or user-agentstack for hooks."},"oauth_bridge_cookie_only":true,"handoff_note":"ChatGPT Connect: POST /api/auth/mcp-oauth-bridge {\"cookie_only\": true} with the session Bearer (readable 200 + Set-Cookie), then a user-gesture top-level GET /mcp/.well-known/oauth-authorize (browser 302 to redirect_uri). Do not follow a 303 inside fetch. Do not GET /mcp/connect as the return. Device Code (/api/oauth2/device/authorize) is IDE-only, not this Connect. /api/auth/me/bootstrap may 401 until mint lands.","oauth_bridge_busy_recovery_hint":"bridge_busy","oauth_connect_failed_recovery_hint":"oauth_connect_failed","oauth_return_to_client_recovery_hint":"return_to_client_short"},"catalog":{"total_actions":null,"domains":null},"context_hint":"OAuth / Device Code keys often bind to ecosystem project_id=1. Set context.project_id to the tenant project before logic.* and session-scoped reads.","stale_action_policy":"Prefer GET /mcp/actions over docs; auth.login not auth.quick_auth; apikeys.* not legacy projects API-key aliases; logic.* not rules.*; scheduler.create_task not schedule_task; notifications.send_push for OS push; notifications.deliver for email and bot channels; not notifications.send.","clients":[],"product_archetypes":[{"id":"game","name":"Game Development","signals":["player_management","game_mechanics","monetization","engagement"],"prompt":"agentstack_use_case_game","recipe_ids":["card_game_basic","rpg_character_system","casual_game_monetization"],"mcp_recipe_id":"card_game_basic","flow_id":null,"sdk_hint":null,"showcase_key":null,"deep_link":"prompt `agentstack_use_case_game` · recipe `card_game_basic`","minimum_domains":["projects"],"optional_domains":[],"do_not_add_unless_asked":["crm.upsert_contact","hosting.site.quick_start"]},{"id":"saas","name":"SaaS Platform","signals":["trials","subscriptions","usage_limits","feature_flags"],"prompt":"agentstack_use_case_saas","recipe_ids":["saas_trial_system","mcp_platform_subscription_grant","mcp_tenant_subscription_monetization","mcp_tenant_manual_entitlement_grant"],"mcp_recipe_id":"saas_trial_system","flow_id":"create_project_value","sdk_hint":"sdk.platform.auth","showcase_key":"course-academy","deep_link":"`/agentstack-scaffold-auth` → `/agentstack-scaffold-backend`","minimum_domains":["projects","auth","ai_builder"],"optional_domains":["crm","logic","payments","hosting"],"do_not_add_unless_asked":["business.create_composite","rag.document_add","agents.create"],"recommended_playbook":"saas_build_v1","success_criteria":["build_ok","primary_public_url","edge_ready"]},{"id":"ecommerce","name":"E-Commerce","signals":["product_catalog","cart_checkout","inventory","promotions"],"prompt":"agentstack_use_case_ecommerce","recipe_ids":["online_store_basic","marketplace_platform"],"mcp_recipe_id":"mcp_hosting_quickstart","flow_id":"host_then_sell","sdk_hint":"sdk.commerce","showcase_key":"collectibles-bazaar","deep_link":"`/agentstack-host-site` + `agentstack-commerce` skill","minimum_domains":["hosting","payments"],"optional_domains":[],"do_not_add_unless_asked":["business.create_composite"]},{"id":"social","name":"Social Platform","signals":["messenger_polling","friend_requests","channels","public_index"],"prompt":"agentstack_use_case_social","recipe_ids":["user_profiles_system","content_feed_basic","messaging_system"],"mcp_recipe_id":"mcp_bots_simulate","flow_id":"messenger_dm","sdk_hint":null,"showcase_key":"helpdesk-bot","deep_link":"`agentstack-messenger` skill · `social.chat.*`","minimum_domains":["social"],"optional_domains":[],"do_not_add_unless_asked":["business.create_composite"]},{"id":"backend_api","name":"Backend API","signals":["rest_crud","webhooks","automation","background_jobs"],"prompt":"agentstack_use_case_backend_api","recipe_ids":["rest_api_crud","webhook_system","background_jobs"],"mcp_recipe_id":"mcp_session_setup","flow_id":"connect_api_key_60s","sdk_hint":"sdk.protocol","showcase_key":null,"deep_link":"recipe `mcp_session_setup` · `sdk.protocol`","minimum_domains":["projects","auth"],"optional_domains":[],"do_not_add_unless_asked":["hosting.site.quick_start","crm.upsert_contact"]},{"id":"project_setup","name":"Project Setup & Mass Configuration","signals":["project_bootstrap","economy_setup","buff_templates_library","logic_rules_battery","scheduler_configuration","api_keys_provisioning","fap_configuration","mass_buff_application","bulk_user_updates"],"prompt":"agentstack_use_case_project_setup","recipe_ids":["project_economy","saas_trial_system"],"mcp_recipe_id":"mcp_read_bootstrap","flow_id":null,"sdk_hint":"getCapabilityMatrix","showcase_key":null,"deep_link":"`/agentstack-capability-matrix` · recipe `mcp_read_bootstrap`","minimum_domains":[],"optional_domains":[],"do_not_add_unless_asked":[]},{"id":"static_site","name":"Static Site / Landing","signals":["landing","portfolio","html","zip","publish"],"prompt":"agentstack_hosting_storefront","recipe_ids":["mcp_hosting_quickstart"],"mcp_recipe_id":"mcp_hosting_quickstart","flow_id":"hosting_deploy_publish","sdk_hint":"sdk.hosting.quickStart","showcase_key":"creator_portfolio","deep_link":"`/agentstack-host-site`","minimum_domains":["hosting"],"optional_domains":[],"do_not_add_unless_asked":["business.create_composite","crm.upsert_contact"]},{"id":"hosted_site_edit","name":"Edit published hosted site","signals":["edit site","change site","existing site","rollback","откат","изменить сайт","alterar site"],"prompt":"agentstack_hosting_edit_site","recipe_ids":["mcp_hosting_edit_site_safe"],"mcp_recipe_id":"mcp_hosting_edit_site_safe","flow_id":"hosting_edit_site_safe","sdk_hint":"sdk.hosting.quickStart","showcase_key":"creator_portfolio","deep_link":"prompt `agentstack_hosting_edit_site` · recipe `mcp_hosting_edit_site_safe`","minimum_domains":["hosting"],"optional_domains":[],"do_not_add_unless_asked":["hosting.site.quick_start"]},{"id":"bot_channel","name":"Bot Channel","signals":["telegram","whatsapp","bot studio","inbound message"],"prompt":"agentstack_bots_studio","recipe_ids":["mcp_bots_simulate","mcp_bot_reply_mailbox_v1","mcp_bot_message_bus_webhook_v1","mcp_bot_order_manager_bootstrap_v1"],"mcp_recipe_id":"mcp_bots_simulate","flow_id":"bot_go_live","sdk_hint":null,"showcase_key":"helpdesk-bot","deep_link":"recipe `mcp_bots_simulate` · Bot Studio · agent bus: `agentstack_bot_message_bus`","minimum_domains":[],"optional_domains":[],"do_not_add_unless_asked":[]},{"id":"showcase_portfolio_storefront","name":"Portfolio storefront (hosted /s/)","signals":["yacht","brokerage","lash","mebel","pulseid","doors","dveri","anatoly","portfolio tenant","independent_tenant","/s/1611","/s/1589","/s/1928","/s/1873"],"prompt":"agentstack_safe_project_cycle","recipe_ids":["mcp_universal_safe_change"],"mcp_recipe_id":"mcp_universal_safe_change","flow_id":"UF_F1_ROUTINE","sdk_hint":"sdk.protocol","showcase_key":"morandi-yachts","deep_link":null,"minimum_domains":[],"optional_domains":[],"do_not_add_unless_asked":[]},{"id":"migrate_legacy","name":"Migrate Legacy Stack","signals":["supabase","firebase","auth0","stripe migration"],"prompt":null,"recipe_ids":[],"mcp_recipe_id":"mcp_session_setup","flow_id":null,"sdk_hint":"sdk.protocol","showcase_key":null,"deep_link":"`agentstack-migrator` agent","minimum_domains":[],"optional_domains":[],"do_not_add_unless_asked":[]},{"id":"hosted_vertical_saas","name":"Hosted Vertical SaaS","signals":["editflow","hosted workspace","vertical tenant","/s/","kanban","crm board","freelancer workspace"],"prompt":"agentstack_hosted_vertical","recipe_ids":["mcp_hosted_vertical_bootstrap","mcp_crm_contact_deal"],"mcp_recipe_id":"mcp_hosted_vertical_bootstrap","flow_id":null,"sdk_hint":"@agentstack/hosted-wire","showcase_key":null,"deep_link":"`agentstack-hosted-vertical` skill · `hosted-vertical/AGENTS.md` · `vertical_workspace.bootstrap` · `publish_editflow_hosted.py`","minimum_domains":[],"optional_domains":[],"do_not_add_unless_asked":[]},{"id":"service_business","name":"Service business","signals":["cleaning business","booking","клининг","cleaning","clinic","salon","услуг","serviço"],"prompt":"agentstack_crm_workspace","recipe_ids":["mcp_read_bootstrap"],"mcp_recipe_id":"mcp_read_bootstrap","flow_id":"crm","sdk_hint":null,"showcase_key":null,"deep_link":null,"minimum_domains":["crm"],"do_not_add_unless_asked":["hosting.site.quick_start"],"optional_domains":["logic","payments"],"recommended_playbook":"service_business_v1","success_criteria":["primary_public_url","crm_ready"]},{"id":"ai_product","name":"AI product","signals":["ai app","knowledge base product","ai product","ии продукт","produto de ia"],"prompt":"agentstack_knowledge_mentor","recipe_ids":["mcp_knowledge_ingest"],"mcp_recipe_id":"mcp_knowledge_ingest","flow_id":"knowledge","sdk_hint":null,"showcase_key":null,"deep_link":null,"minimum_domains":["knowledge"],"do_not_add_unless_asked":["business.create_composite"],"optional_domains":[],"recommended_playbook":"saas_build_v1"},{"id":"marketplace","name":"Marketplace","signals":["marketplace","listings","bazaar","маркетплейс","mercado"],"prompt":"agentstack_commerce_flows","recipe_ids":[],"mcp_recipe_id":"mcp_session_setup","flow_id":"payments","sdk_hint":null,"showcase_key":null,"deep_link":null,"minimum_domains":["payments"],"do_not_add_unless_asked":["business.create_composite"],"optional_domains":[]},{"id":"internal_tool","name":"Internal tool","signals":["internal tool","back office","внутренняя","ferramenta interna"],"prompt":"agentstack_session_setup","recipe_ids":["mcp_session_setup"],"mcp_recipe_id":"mcp_session_setup","flow_id":"session","sdk_hint":null,"showcase_key":null,"deep_link":null,"minimum_domains":["projects"],"do_not_add_unless_asked":["hosting.site.quick_start"],"optional_domains":[]},{"id":"community","name":"Community","signals":["community","forum","сообщество","comunidade"],"prompt":"agentstack_social_messenger","recipe_ids":[],"mcp_recipe_id":"mcp_session_setup","flow_id":null,"sdk_hint":null,"showcase_key":null,"deep_link":null,"minimum_domains":["bots"],"do_not_add_unless_asked":["payments.create_payment"],"optional_domains":[]},{"id":"key2unity_auth_portal","name":"Key2Unity auth portal","signals":["key2unity","ключ к единству","auth portal","shell_mode auth_portal","/s/1444/key2unity","activate_site_url"],"prompt":"agentstack_key2unity_site","recipe_ids":["mcp_key2unity_auth_portal","mcp_tenant_bots_heal_verify"],"mcp_recipe_id":"mcp_key2unity_auth_portal","flow_id":null,"sdk_hint":"@agentstack/hosted-wire/activateSession","showcase_key":"key2unity","deep_link":null,"minimum_domains":[],"optional_domains":[],"do_not_add_unless_asked":[]},{"id":"support_bot","name":"Support bot","signals":["support bot","helpdesk","бот поддержки","bot de suporte"],"prompt":"agentstack_bots_studio","mcp_recipe_id":"mcp_bots_simulate","minimum_domains":["bots"],"do_not_add_unless_asked":["crm.create_deal"],"deep_link":null,"optional_domains":[]},{"id":"knowledge_assistant","name":"Knowledge assistant","signals":["knowledge assistant","база знаний","assistente de conhecimento"],"prompt":"agentstack_knowledge_mentor","mcp_recipe_id":"mcp_knowledge_ingest","minimum_domains":["knowledge"],"do_not_add_unless_asked":["hosting.site.quick_start"],"deep_link":null,"optional_domains":[]},{"id":"agency","name":"Agency","signals":["agency","агентство","agência"],"prompt":"agentstack_crm_workspace","mcp_recipe_id":"mcp_crm_contact_deal","minimum_domains":["crm"],"do_not_add_unless_asked":["business.create_composite"],"deep_link":null,"optional_domains":[]},{"id":"freelancer","name":"Freelancer","signals":["freelancer","фриланс","autônomo","autonomo"],"prompt":"agentstack_hosted_vertical","mcp_recipe_id":"mcp_hosted_vertical_bootstrap","minimum_domains":["projects"],"do_not_add_unless_asked":["payments.create_payment"],"deep_link":null,"optional_domains":[]},{"id":"content_site","name":"Content site","signals":["blog","content site","блог","conteúdo","conteudo"],"prompt":"agentstack_hosting_static_landing","mcp_recipe_id":"mcp_hosting_quickstart","minimum_domains":["hosting"],"do_not_add_unless_asked":["business.create_composite","crm.upsert_contact"],"deep_link":null,"optional_domains":[]}]},"client_hints":{"gpt_actions_body":"{ \"tool\": \"<action>\", \"params\": {} }","single_action_body":"{ \"action\": \"<action>\", \"params\": {} }","jsonrpc_steps_body":"{ \"steps\": [{ \"action\": \"<action>\", \"params\": {} }] }"}}}