Skip to content
ArcverinDocumentationGet StartedMain site

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

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:

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 IDReadiness PillarClassQualification Ceiling on Fail
assertionLifetimeUndeclaredauthenticationConditional blockerAR2
identityPropagationUndeclaredauthenticationConditional blockerAR1
deniedResponseCoverageMissingauthorizationConditional blockerAR1
personaMixingRiskauthorizationConditional blockerAR1
requestBindingUndeclaredauthorizationConditional blockerAR1
tenantSelectorUnboundtenantAndResourceIsolationConditional blockerAR0
concurrencyLimitUndeclaredrateCostAndBlastRadiusConditional blockerAR1
dataVolumeLimitUndeclaredrateCostAndBlastRadiusConditional blockerAR2
rateLimitResponseMissingrateCostAndBlastRadiusConditional blockerAR2
failClosedAuditFieldsMissingobservabilityAndVerificationConditional blockerAR2
sensitiveActionStepUpMissinghumanApprovalAndEscalationConditional blockerAR1

5 MCP Token Economy rules (Parallel Axis 2 · mcpTokenEconomy)

Rule IDRule NamePosture CapRemediation Recipe
mcpToolsetTokenBudgetExceededMCP Toolset Token Budget Exceededgate-enforcedcurate-capability-workflow
mcpToolCountAccuracyCliffMCP Tool Count Accuracy Cliffadvisory-axis2curate-capability-workflow
mcpDescriptorSchemaBloatMCP Descriptor Schema Bloatadvisory-axis2compact-mcp-input-schema
mcpDescriptionDensityAndClarityMCP Description Density & Clarityadvisory-axis2clarify-operation-description-overlay
mcpRuntimeHeaderInToolSchemaRuntime-Managed Headers Exposed in Tool Schemaadvisory-axis2strip-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:

$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:

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.

GroupCLI --fault FlagAccepted Aliases / Studio IDSimulated Condition
HTTP & Asynccommit-then-drop-responsedrop, commitThenDropResponseCommits mutation in the mock side-effect ledger, then drops the response (504) to prove pre-retry state lookup prevents duplicate side effects.
HTTP & Asyncdelay (or delay:N)delay202, delayCompletionDelays async 202 Accepted job completion across N polling cycles (default 2) to test polling backoff.
HTTP & Asyncnevertimeout, neverCompleteHolds an async 202 operation non-terminal indefinitely to verify bounded polling timeout handling.
HTTP & Async503terminalFailure, malformedInjects a terminal upstream failure (503 or malformed response) to prove fail-closed error handling.
HTTP & AsyncstalestaleVersionSimulates optimistic-concurrency ETag / If-Match version conflicts (409 / 412).
HTTP & Async429rate-limit, rateLimitBurstInjects HTTP 429 Too Many Requests burst throttling with Retry-After headers.
Webhookwebhook-delayedwebhookDelayedDelays asynchronous webhook callback delivery beyond the normal confirmation window.
Webhookwebhook-never-arriveswebhookNeverArrivesDrops webhook callbacks completely to verify fallback status reconciliation or timeout behavior.
Webhookwebhook-duplicatewebhook-duplicate-delivery, webhookDuplicateDeliveryReplays duplicate webhook deliveries to prove idempotent event deduplication.
Webhookwebhook-out-of-orderwebhookOutOfOrderDelivers asynchronous webhook events out of chronological order to test state-machine ordering guards.
Webhookwebhook-bad-signaturewebhook-bad-sig, webhook-invalid-sig, webhookBadSignatureInjects an invalid HMAC webhook signature to prove fail-closed signature rejection.
Webhookwebhook-stale-timestampwebhookStaleTimestampInjects 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).