{"uid":"cap_DrL0qx2Th1o7o7qYA4zjR","slug":"policy-excerpts-record-sequence-diff-0244b3e6","name":"Policy Excerpts — Record Sequence Diff","description":"Compare declared policy clause order and content digests across two extracts. Only relative order of shared clauses counts as reordering; no interpretation of policy priority. Offline typed nonpersonal metadata only. Result retention: 24 hours; minimal receipt metadata: 90 days.","url":"https://www.mahastrategies.com/api/v1/context/policy-excerpts/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.035032","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.035032/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035032","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035032","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0Xp_1Yh2c6FPV-p8yXcDp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.035032","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares the order and content digests of policy clauses between two extracts, identifying reorderings and differences in shared clause sequences.","exampleAgentPrompt":"Can you compare the clause order and content digests between these two policy excerpts — the 'before' list has 5 clauses and the 'after' list has 6 clauses, using public data class — and tell me which shared clauses were reordered or changed?","exampleUseCases":[{"title":"Policy update clause reordering audit","prompt":"I have two versions of our terms-of-service policy — the old version with 10 clauses and the new version with 12 clauses. Can you diff their clause sequences using public data class to see which shared clauses were reordered between the two?"},{"title":"Compliance policy version comparison","prompt":"Our compliance team updated the policy extract and I need to know if any shared clauses changed position or content digest — here are the before array with 8 entries and the after array with 8 entries, both public synthetic data."},{"title":"Regulatory clause sequence tracking","prompt":"Can you record the sequence diff between these two regulatory policy extracts — before has 15 clauses, after has 14 — marking it as public data, and tell me which shared clauses appear in a different order?"}],"resultDescription":"Returns a structured diff record showing which shared policy clauses were reordered between the 'before' and 'after' arrays, along with content digest comparisons for each shared clause. Results are retained for 24 hours; minimal receipt metadata is retained for 90 days. No interpretation of policy priority is included.","failureModes":["Array exceeds 32-item limit — request rejected with validation error","dataClass not set to 'public' or 'synthetic' — enum validation failure","nonpersonalMetadata not set to true (const constraint) — request rejected","Empty or malformed clause arrays — may return empty diff with no detected changes","Service unavailability — 5xx error with no diff result returned"],"whenToPreferThis":"Use this endpoint when you need a lightweight, offline structural comparison of policy clause sequences across two extracts — specifically when you only care about relative ordering and content digest changes of shared clauses, not semantic interpretation of policy priority. Ideal for compliance automation, audit trails, and version-tracking workflows that require non-personal, public or synthetic data only.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:06.432Z","isFirstParty":false,"canonicalSlug":"policy-excerpts-record-sequence-diff-0244b3e6"}