{"uid":"cap_OAI4s8zkjoPAX-Z9nJGwh","slug":"api-contracts-record-sequence-diff-3d891d5c","name":"Api Contracts — Record Sequence Diff","description":"Compare pinned HTTP contract projections and shared-record order without treating insertion as reordering. No transport execution, schema resolution or compatibility certificate. Offline typed nonpersonal metadata only. Result retention: 24 hours; minimal receipt metadata: 90 days.","url":"https://www.mahastrategies.com/api/v1/verify/api-contracts/record-sequence-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"array","maxItems":32,"minItems":0},"before":{"type":"array","maxItems":32,"minItems":0},"dataClass":{"enum":["public","synthetic"],"type":"string"},"nonpersonalMetadata":{"type":"boolean","const":true}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.035092","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.035092/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035092","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035092","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_shOROLt_yhOrz_xcE1BCy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.035092","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two ordered lists of pinned HTTP contract projections to identify insertions, deletions, and reorderings of shared records, treating insertions distinctly from reorderings.","exampleAgentPrompt":"Compare these two lists of public API contract projections and tell me which shared records changed order, which were inserted, and which were deleted — make sure insertions aren't counted as reorderings.","exampleUseCases":[{"title":"Detecting contract record reordering in CI","prompt":"I have two snapshots of our HTTP contract projection list from before and after a recent merge — can you diff them as public data and tell me which shared records actually moved versus which ones are brand new insertions?"},{"title":"Auditing API contract stability across releases","prompt":"We cut a new release and I want to know if the ordering of shared records in our contract projections changed at all. Here are the before and after arrays of synthetic contract records — please diff them and distinguish reorders from insertions."},{"title":"Validating sequence stability for downstream consumers","prompt":"Before I sign off on this API contract update, can you compare the before and after record sequences — both are public metadata — and flag any records that shifted position without being new insertions?"}],"resultDescription":"A structured diff of the two input contract projection sequences, indicating which records are shared and whether they changed relative order (reordering), which records appear only in the after list (insertions), and which appear only in the before list (deletions). Results are available for 24 hours; minimal receipt metadata is retained for 90 days.","failureModes":["Input arrays exceeding 32 items will be rejected","dataClass must be 'public' or 'synthetic'; other values cause validation errors","nonpersonalMetadata must be explicitly set to true or the request is rejected","Malformed or non-array inputs for before/after will fail schema validation","Result unavailable after 24-hour retention window"],"whenToPreferThis":"Choose this endpoint when you need to compare two ordered sequences of HTTP contract projections and need the diff to correctly distinguish genuine reorderings of shared records from new insertions — especially important when naive diff tools would misclassify insertions as shifts. It operates offline on typed nonpersonal metadata only (public or synthetic data classes), making it suitable for CI pipelines and governance workflows that do not require live transport execution or schema resolution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:46:28.953Z","isFirstParty":false,"canonicalSlug":"api-contracts-record-sequence-diff-3d891d5c"}