{"uid":"cap_VI0cmLcASciKz5RvgJile","slug":"storage-layout-compatibility-analyzer-0e8e17ad","name":"Storage Layout Compatibility Analyzer","description":"Storage Layout Compatibility analyses only the evidence supplied by the caller. It does not claim to query a chain, identify a legal status or replace an independent audit. Missing signals lower confidence and are listed explicitly; every classification includes the exact thresholds used.","url":"https://forensik.halowerk.com/v1/storage-layout-compatibility?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"strict":{"type":"boolean","default":false,"description":"Reject unless all documented metrics are supplied."},"context":{"type":"object","description":"Optional non-secret labels returned unchanged for correlation.","maxProperties":20,"additionalProperties":{"type":["string","number","boolean","null"]}},"subject":{"type":"string","maxLength":256,"minLength":1,"description":"Address, transaction, protocol, asset, proposal or other subject being assessed."},"evidence":{"type":"array","items":{"type":"object","required":["metric","value"],"properties":{"note":{"type":"string","maxLength":500},"value":{"type":["number","boolean"]},"metric":{"enum":["slot_collision_count","type_mismatch_count","unsafe_gap_change"],"type":"string"},"source":{"type":"string","maxLength":300,"minLength":1,"description":"Evidence source or query identifier."},"timestamp":{"type":"string","maxLength":40,"minLength":10,"description":"ISO-8601 observation time."}},"additionalProperties":false},"maxItems":50,"minItems":1,"description":"Caller-supplied observations. Repeated metrics form a time series; the newest timestamp is assessed."}}},"responseSchema":{"type":"json","example":{"scope":"caller_supplied_evidence_only","engine":"verify","service":"Storage Layout Compatibility","subject":"storage-layout-compatibility-sample","confidence":100,"risk_score":13,"generated_at":"2026-10-23T00:07:35.806Z","classification":"low","recommendation":"No supplied metric crossed a warning thr","service_number":98}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GMTWCf_7raYs4jTpTnBZP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes caller-supplied evidence metrics to classify smart contract storage layout compatibility risk, returning a confidence score, risk score, and threshold-based classification.","exampleAgentPrompt":"Can you assess the storage layout compatibility risk for the contract upgrade at address 0xABC123 — I'm seeing 2 slot collisions, 1 type mismatch, and no unsafe gap changes as of 2025-06-01T12:00:00Z?","exampleUseCases":[{"title":"Pre-upgrade proxy contract safety check","prompt":"Before we deploy this upgradeable proxy upgrade for ProtocolX, can you run a storage layout compatibility assessment? We observed 3 slot collisions and 0 type mismatches as of 2025-06-10T08:00:00Z — tell me the risk score and whether it's safe to proceed."},{"title":"DeFi governance proposal storage risk","prompt":"There's a governance proposal to upgrade the lending protocol at 0xDEF456 — I've measured 0 slot collisions, 2 type mismatches, and 1 unsafe gap change recorded at 2025-05-28T15:30:00Z. Can you classify the storage layout compatibility risk for me?"},{"title":"Post-incident storage collision forensics","prompt":"We had a suspected storage collision incident on our contract 0x789GHI. I have evidence of 5 slot collisions and 3 type mismatches from 2025-06-02T09:00:00Z — can you analyze the storage layout compatibility and tell me the confidence level and what thresholds were crossed?"}],"resultDescription":"Returns a JSON object containing: a risk_score (numeric), confidence percentage, low/medium/high classification, a recommendation text explaining which thresholds were or were not crossed, the scope (caller_supplied_evidence_only), the subject echoed back, and a generated_at timestamp. Missing metrics are explicitly listed and lower the confidence score.","failureModes":["Insufficient evidence items (minItems:1 violated) returns a validation error","strict:true with missing documented metrics returns a rejection","Invalid metric enum values return a schema validation error","Evidence timestamps in wrong format return an ISO-8601 parse error","Exceeding 50 evidence items or 20 context properties returns a payload size error","Payment not included or insufficient USDC causes x402 payment required response"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, threshold-based risk classification of smart contract storage layout compatibility from your own pre-collected metrics — specifically when you already have slot_collision_count, type_mismatch_count, or unsafe_gap_change data and want an auditable score with explicit threshold disclosure. Prefer this over a full on-chain audit service when you want to analyze only your own evidence without external chain queries, or when you need a lightweight, low-cost ($0.001) signal for automated upgrade pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T07:18:42.885Z","isFirstParty":false,"canonicalSlug":"storage-layout-compatibility-analyzer-0e8e17ad"}