2. Fix Contract & 3. Prove Safety · Arcverin Studio
Fix contracts, rules, workflows & fault testing
Move from 1. Find Gaps into 2. Fix Contract to apply non-destructive OpenAPI 1.2.0 Overlays, confirm required Owner Decisions, enforce rules from the top-bar Rules pill, compile a compact MCP tool or multi-provider Virtual MCP (vMCP) profile, and prove failure resilience under 3. Prove Safety.
1. Fix Contract (Stage 2): Owner Decisions & OpenAPI 1.2.0 Overlays
A Capability Contract defines the exact business outcome, permissions, retry rules, and limits for an agent action. Any unconfirmed detail stays marked Blocked (Unsafe) (unknown)—blocking high-risk actions automatically instead of letting an AI guess.
Under 2. Fix Contract in Guided Studio (or by toggling the top-bar Guided / Workbench mode switch for direct Arazzo 1.1 Studio access), review findings, confirm owner decisions (tenant isolation, permission boundaries, and authentication), and compile your contract—or run the same steps from the CLI:
.\arcverin.exe capability new --spec .\openapi.json --outcome "Safely inspect and manage inventory items" --out .\output\capability.yaml
.\arcverin.exe decisions list .\output\capability.yaml
.\arcverin.exe decisions answer .\output\capability.yaml --ref DEC-AUTH-001 --value "Confirmed" --attested-by "api-owner"
.\arcverin.exe capability compile .\output\capability.yaml --spec .\openapi.json --out .\output\compiled
./arcverin capability new --spec ./openapi.json --outcome "Safely inspect and manage inventory items" --out ./output/capability.yaml
./arcverin decisions list ./output/capability.yaml
./arcverin decisions answer ./output/capability.yaml --ref DEC-AUTH-001 --value "Confirmed" --attested-by "api-owner"
./arcverin capability compile ./output/capability.yaml --spec ./openapi.json --out ./output/compiled
To fix incomplete API descriptions without changing your backend service code, use Studio's OpenAPI 1.2.0 Overlay diff workbench (or arcverin remediate). You can preview and apply individual fixes, and Arcverin automatically rolls back any patch that would lower your readiness score.
2. Top-Bar Rules Pill: 102 Built-in Rules & Custom Visual JDM Rules
Click the Rules pill in Studio's top bar anytime to inspect all 102 Built-in Readiness & Token Rules (included across Personal, Team, and Enterprise Editions) or author organization policies. Custom rules can only tighten—and never weaken—built-in rule floors:
- Built-in Rules (All Editions): Search by readiness pillar, inspect passing/failing examples, and view generated decision graphs across all 97 readiness rules and 5 token-economy rules.
- Custom Visual JDM Rules (Enterprise Edition): Switch inside the top-bar Rules pill to Custom Visual JDM Rules to design restrict-only decision tables visually, run unit tests, and simulate project impact with one click.
- CLI rule packs: Create, verify, and test JSON rule packs in CI with
arcverin rules pack init|verify|test, or inspect all 102 built-in rules directly against your installed binary witharcverin rules listandarcverin rules show <rule-id>.
Breakdown of all 102 built-in rules (86 core baseline + 11 AuthZ/Isolation/Limits + 5 MCP Token Economy)
Arcverin's built-in rule engine combines 86 core qualification baseline rules across 6 canonical families (Authority, policy & audit: 17; Bounded workflow: 22; Capability semantics: 6; Content safety: 3; Contract authorability: 32; Event trust: 6) with 16 Studio & Token Economy additions (11 AuthZ, Isolation & Limits rules plus 5 Parallel Axis 2 MCP Token Economy rules):
11 Studio AuthZ, Isolation & Limits rules (authzIsolationAndLimits)
Ceilings below are Stage 1 Qualification ceilings (AR0–AR6, capping mutations to observe/recommend when unresolved); see the AR0–AR6 → AR0–AR4 crosswalk for how they map onto Runtime Execution Tiers.
| Rule ID | Readiness Pillar | Class | Qualification Ceiling on Fail |
|---|---|---|---|
assertionLifetimeUndeclared | authentication | Conditional blocker | AR2 |
identityPropagationUndeclared | authentication | Conditional blocker | AR1 |
deniedResponseCoverageMissing | authorization | Conditional blocker | AR1 |
personaMixingRisk | authorization | Conditional blocker | AR1 |
requestBindingUndeclared | authorization | Conditional blocker | AR1 |
tenantSelectorUnbound | tenantAndResourceIsolation | Conditional blocker | AR0 |
concurrencyLimitUndeclared | rateCostAndBlastRadius | Conditional blocker | AR1 |
dataVolumeLimitUndeclared | rateCostAndBlastRadius | Conditional blocker | AR2 |
rateLimitResponseMissing | rateCostAndBlastRadius | Conditional blocker | AR2 |
failClosedAuditFieldsMissing | observabilityAndVerification | Conditional blocker | AR2 |
sensitiveActionStepUpMissing | humanApprovalAndEscalation | Conditional blocker | AR1 |
5 MCP Token Economy rules (Parallel Axis 2 · mcpTokenEconomy)
| Rule ID | Rule Name | Posture Cap | Remediation Recipe |
|---|---|---|---|
mcpToolsetTokenBudgetExceeded | MCP Toolset Token Budget Exceeded | gate-enforced | curate-capability-workflow |
mcpToolCountAccuracyCliff | MCP Tool Count Accuracy Cliff | advisory-axis2 | curate-capability-workflow |
mcpDescriptorSchemaBloat | MCP Descriptor Schema Bloat | advisory-axis2 | compact-mcp-input-schema |
mcpDescriptionDensityAndClarity | MCP Description Density & Clarity | advisory-axis2 | clarify-operation-description-overlay |
mcpRuntimeHeaderInToolSchema | Runtime-Managed Headers Exposed in Tool Schema | advisory-axis2 | strip-runtime-headers-compilation |
Verify the complete 102-rule catalog and filter by pillar or family directly on your installed binary:
.\arcverin.exe rules list
.\arcverin.exe rules list --family authzIsolationAndLimits
.\arcverin.exe rules list --family mcpTokenEconomy
.\arcverin.exe rules show tenantSelectorUnbound
If your team intentionally accepts a specific finding, record a time-limited waiver tied to the exact API file and owner (Studio pre-fills a 30-day default expiration and operator scope for fast authoring; waivers are peer-reviewed in Team & Enterprise Editions):
.\arcverin.exe waivers add .\output\waivers.json --spec .\openapi.json --rule retrySafetyContractMissing --scope op:createItem --expires-at 2027-01-31T00:00:00Z --owner "api-team" --reason "Idempotency enforced by upstream gateway"
.\arcverin.exe waivers verify --spec .\openapi.json .\output\waivers.json
3. Compile Multi-Step Workflows, Virtual MCP (vMCP) & Unified Multi-Provider LLM Support
Use the Inventory sample archive, Studio's top-bar Examples (64) library, or the small Widgets OpenAPI example to compile multi-step Arazzo 1.1 workflows, compact MCP tool definitions, and (in Enterprise Edition) multi-provider Virtual MCP (vMCP) profiles:
- Offline Deterministic by default: Scanning, Overlay patching, contract compilation, Arazzo 1.1 workflow generation, and release gating run 100% deterministically on your machine with zero external LLM calls or API keys.
- Unified Multi-Provider LLM support (optional): Enable optional AI-assisted authoring or review in Studio across 11 cloud and local LLM modes (OpenAI, Anthropic Claude, Google Gemini, Azure OpenAI, AWS Bedrock, OpenRouter, Groq, Mistral, DeepSeek, local Ollama/vLLM, and Custom OpenAI-Compatible BYOK). Contract decisions remain owner-confirmed, and release gates stay deterministic.
$inventory = '.\output\training\inventory'
.\arcverin.exe arazzo validate "$inventory\inspect-item.arazzo.json" --source "inventory=$inventory\openapi.json"
.\arcverin.exe arazzo qualify "$inventory\inspect-item.arazzo.json" --workflow-id inspectInventoryItem --source "inventory=$inventory\openapi.json" --output .\output\local-workflows\workflow-qualification.json
.\arcverin.exe arazzo compile "$inventory\inspect-item.arazzo.json" --workflow-id inspectInventoryItem --source "inventory=$inventory\openapi.json" --output .\output\local-workflows\worker.ir.json
You can also match a plain-language goal deterministically against an OpenAPI spec:
New-Item -ItemType Directory -Path .\output\local-workflows -Force | Out-Null
Invoke-WebRequest -Uri https://www.arcverin.com/docs/local-workflows/minimal-local.openapi.json -OutFile .\output\local-workflows\minimal-local.openapi.json
.\arcverin.exe intent profile .\output\local-workflows\minimal-local.openapi.json "List widgets" --output .\output\local-workflows\intent --service-slug widgets --run-name read
.\arcverin.exe plan create .\output\local-workflows\intent\widgets\intent\read\intent.json --output .\output\local-workflows\plan --base-url http://127.0.0.1:8088 --service-slug widgets --run-name read
.\arcverin.exe plan validate .\output\local-workflows\plan\widgets\plan\read\plan.json
4. Prove Safety (Stage 3): Failure Simulator, Staging Checks & Portable Suites
Under 3. Prove Safety in Guided Studio (or via arcverin validate), verify how your capability handles real-world conditions before handing evidence to a release approver in 4. Ship.
Why the three verification targets stay separate: Offline simulation (--target mock) proves that your compiled workflow and retry logic behave safely against the modeled contract—for example, reconciling status so the mock ledger records one job instead of two. However, if a simulator reports that a retry created one diagnostic job, your own service and job scheduler still have to establish how many jobs they actually created. Arcverin keeps offline simulation, read-only staging checks, and results imported from customer-run tests explicitly distinguished inside every Stage 4 Evidence Pack:
-
Built-in stateful simulator (
--target mock): Exercises 23 stateful lifecycle scenarios—covering multi-principal auth and cross-tenant BOLA/IDOR isolation (Device,HumanUser,ServiceAccount), async 202 polling, webhooks, and retries—across 12 network and webhook fault-injection modes locally on your machine:arcverin validate --capability ./output/capability.yaml --spec ./openapi.json --target mock --fault commit-then-drop-response -
Read-only staging check & automatic drift overlay (
--target staging --read-only --drift-overlay): Tests against an approved non-production server using encrypted Vault credentials while blocking any data-changing requests, and optionally synthesizes a non-destructive OpenAPI 1.2.0 Overlay patch whenever live responses drift from the spec:arcverin validate --capability ./output/capability.yaml --spec ./openapi.json --target staging --staging-url https://staging.example.test --allow-host staging.example.test --read-only --drift-overlay ./output/drift-overlay.yaml -
Portable test suite (
--export/--import): Export a test suite for your own internal test runner and import tamper-checked results back into Arcverin:arcverin validate --capability ./output/capability.yaml --spec ./openapi.json --export ./output/suite arcverin validate --capability ./output/capability.yaml --spec ./openapi.json --suite ./output/suite --import ./output/results.json -
Standalone local mock server: Start a local mock server for interactive testing:
arcverin mock serve --spec ./output/training/inventory/openapi.json --listen 127.0.0.1:8088 --seed 42
All 12 CLI --fault & Studio fault-injection profiles
Pass any of the 12 fault profiles below to arcverin validate --target mock --fault <profile> (or select the matching profile in Studio Stage 3). Omit --fault or pass none for baseline execution without injected faults; raw FaultProfile JSON is also accepted for custom parameters such as poll count or rate-limit burst thresholds.
| Group | CLI --fault Flag | Accepted Aliases / Studio ID | Simulated Condition |
|---|---|---|---|
| HTTP & Async | commit-then-drop-response | drop, commitThenDropResponse | Commits mutation in the mock side-effect ledger, then drops the response (504) to prove pre-retry state lookup prevents duplicate side effects. |
| HTTP & Async | delay (or delay:N) | delay202, delayCompletion | Delays async 202 Accepted job completion across N polling cycles (default 2) to test polling backoff. |
| HTTP & Async | never | timeout, neverComplete | Holds an async 202 operation non-terminal indefinitely to verify bounded polling timeout handling. |
| HTTP & Async | 503 | terminalFailure, malformed | Injects a terminal upstream failure (503 or malformed response) to prove fail-closed error handling. |
| HTTP & Async | stale | staleVersion | Simulates optimistic-concurrency ETag / If-Match version conflicts (409 / 412). |
| HTTP & Async | 429 | rate-limit, rateLimitBurst | Injects HTTP 429 Too Many Requests burst throttling with Retry-After headers. |
| Webhook | webhook-delayed | webhookDelayed | Delays asynchronous webhook callback delivery beyond the normal confirmation window. |
| Webhook | webhook-never-arrives | webhookNeverArrives | Drops webhook callbacks completely to verify fallback status reconciliation or timeout behavior. |
| Webhook | webhook-duplicate | webhook-duplicate-delivery, webhookDuplicateDelivery | Replays duplicate webhook deliveries to prove idempotent event deduplication. |
| Webhook | webhook-out-of-order | webhookOutOfOrder | Delivers asynchronous webhook events out of chronological order to test state-machine ordering guards. |
| Webhook | webhook-bad-signature | webhook-bad-sig, webhook-invalid-sig, webhookBadSignature | Injects an invalid HMAC webhook signature to prove fail-closed signature rejection. |
| Webhook | webhook-stale-timestamp | webhookStaleTimestamp | Injects an expired webhook timestamp to verify anti-replay freshness checks. |
Next: use Quick Ship: Verify Gate, Seal Pack & Promote → under 4. Ship and complete the interactive 3-Step Readiness Checklist in 4. Ship & 5. Operate (Release Gates, Evidence Packs & Runtime).