{"uid":"cap_1HRrJ40n_RDqPfqkaPV_X","slug":"nomos-execution-environment-preflight-api-c4027a05","name":"Nomos Execution Environment Preflight API","description":"Machine-payable service intelligence for discovering, verifying, and monitoring identity, risk, authorization, execution-preflight, and evidence APIs before autonomous agents spend.","url":"https://base-agent-preflight.bytoken2023.workers.dev/x402/v1/execution/environment-preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"action":{"type":"object","properties":{"type":{"type":"string"},"intent":{"type":"string"},"decision_id":{"type":"string"},"policy_version":{"type":"string"},"structured_action_proposal":{"type":"boolean"}},"additionalProperties":true},"environment":{"type":"object","properties":{"worker":{"type":"object","properties":{"decision_id":{"type":"string"},"policy_version":{"type":"string"},"control_plane_exposed":{"type":"boolean"},"accepts_unstructured_natural_language":{"type":"boolean"}},"additionalProperties":true},"packages":{"type":"object","properties":{"install_requested":{"type":"boolean"},"external_binary_download":{"type":"boolean"},"lifecycle_scripts_present":{"type":"boolean"}},"additionalProperties":true},"resources":{"type":"object","properties":{"cpu_limit":{"type":"integer"},"memory_mb":{"type":"integer"},"process_limit":{"type":"integer"},"child_processes":{"type":"string"},"timeout_seconds":{"type":"integer"}},"additionalProperties":true},"dns_access":{"type":"boolean"},"filesystem":{"type":"object","properties":{"read_scope":{"type":"array","items":{"type":"string"}},"host_mounts":{"type":"array","items":{"type":"string"}},"write_scope":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"credentials":{"type":"object","properties":{"keychain":{"type":"boolean"},"ssh_agent":{"type":"boolean"},"browser_session":{"type":"boolean"},"host_credentials":{"type":"boolean"},"requested_scopes":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"network_mode":{"type":"string"},"runtime_image":{"type":"object","properties":{"known":{"type":"boolean"},"trusted":{"type":"boolean"}},"additionalProperties":true},"sandbox_profile":{"type":"string"},"output_sanitization":{"type":"object","properties":{"binary_quarantine":{"type":"boolean"},"output_size_limit":{"type":"boolean"},"classify_untrusted":{"type":"boolean"},"provenance_tagging":{"type":"boolean"},"mime_type_validation":{"type":"boolean"},"prompt_injection_scan":{"type":"boolean"},"structured_extraction":{"type":"boolean"},"external_link_handling":{"type":"boolean"},"no_automatic_execution":{"type":"boolean"},"instruction_data_separation":{"type":"boolean"}},"additionalProperties":true},"outbound_destinations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"idempotency_key":{"type":"string","maxLength":128},"replay_detected":{"type":"boolean"}}},"responseSchema":{"type":"json","example":{"network":"eip155:8453","product":"nomos-execution-environment-preflight","assessment":{"flags":[],"risk_level":"low","risk_score":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"2.000001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$2.000001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"2.000001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"2.000001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_u0KmdFQv0io83MIrv9Xrg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"2.000001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Assesses the risk level and flags of a code execution action within a specified environment before an autonomous agent proceeds with execution.","exampleAgentPrompt":"Before you run that code, do an execution environment preflight check using Nomos to assess the risk level and any flags for a CODE_EXECUTION action in my current environment — I want to make sure it's safe to proceed.","exampleUseCases":[{"title":"Pre-execution safety gate for agent","prompt":"Before my agent runs any code in this cloud sandbox environment, can you do a preflight risk check using Nomos to confirm the risk score is low and there are no flags before it proceeds?"},{"title":"Automated CI/CD agent risk screening","prompt":"My deployment agent is about to execute a build script — run a Nomos execution environment preflight for a CODE_EXECUTION action in the staging environment and tell me if the risk level comes back as anything other than low."},{"title":"Agentic workflow safety checkpoint","prompt":"I'm building an autonomous workflow where agents can run code — can you add a Nomos preflight check before each CODE_EXECUTION step so we catch any high-risk flags before anything actually runs?"}],"resultDescription":"Returns a JSON object containing the network identifier (e.g. eip155:8453), product name, and an assessment object with a risk_level (e.g. 'low'), a numeric risk_score, and a flags array listing any detected risks or concerns about the execution environment.","failureModes":["Invalid or missing action type returns a validation error","Unknown or unsupported environment identifier may return an error or elevated risk score","Payment failure (insufficient USDC) blocks the request with a 402 response","Malformed request body causes a 400 error","Service unavailability on Cloudflare Workers returns a 503"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs to gate code execution behind a risk assessment step — especially in agentic pipelines where safety and compliance are required before proceeding. Prefer this over generic health checks when you specifically need a structured risk_score, risk_level enum, and flags array scoped to code execution actions on a target environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T18:47:41.458Z","isFirstParty":false,"canonicalSlug":"nomos-execution-environment-preflight-api-c4027a05"}