{"uid":"cap_MfiEZ1ME0fZxALr6F3_Sh","slug":"grant-records-record-sequence-diff-bdf369cd","name":"Grant Records - Record Sequence Diff","description":"Separate record changes from shared-record reordering; inserting or deleting a record does not itself reorder surviving records for agency/opportunity/program/jurisdiction/revision-pinned grant Supplied-record analysis, not independent certification. Full contract at the free describe URL.","url":"https://www.mahastrategies.com/api/v1/intel/grant-records/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.035278","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.035278/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035278","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035278","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_F4gG0XkD-vVXYgzyeAteC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.035278","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 grant records to identify insertions, deletions, content changes, and reorderings, while keeping these change types analytically separate.","exampleAgentPrompt":"Compare these two lists of grant records — the before list has 12 entries and the after list has 14 entries, both marked as public data — and tell me which records were actually added or deleted versus which surviving records just got reordered.","exampleUseCases":[{"title":"Agency grant record audit trail","prompt":"I have two snapshots of grant records for a federal agency — one from last month and one from today, both public data. Can you diff them and show me separately what was added, what was deleted, and whether any of the surviving records just shifted position?"},{"title":"Opportunity list reorder detection","prompt":"Our grant opportunity list changed between two program reviews. I need to know if the order of existing records was shuffled around, or if new records were actually inserted — can you run a sequence diff on these two public record arrays to separate those two things?"},{"title":"Jurisdiction revision pinned record comparison","prompt":"We have before and after record lists for a jurisdiction-pinned grant revision — 20 records before, 18 after, public data class — please tell me which records disappeared, which are new, which had content changes, and which just moved position without changing."}],"resultDescription":"Returns a structured diff separating the before and after record arrays into distinct categories: records added, records removed, records with content changes, and records that were reordered (position changed without content change). Critically, insertions and deletions do not themselves count as reorderings of surviving records.","failureModes":["Array exceeds 32-item maximum — request rejected","nonpersonalMetadata must be exactly true — omitting or setting false causes validation failure","Invalid dataClass value outside 'public' or 'synthetic' enum — rejected","Malformed record objects in before/after arrays — unparseable diff","Empty or null arrays on one or both sides — may return trivial all-added or all-removed result","Payment failure via x402 protocol — endpoint not reached"],"whenToPreferThis":"Use this endpoint when you need to precisely distinguish between grant record insertions/deletions and positional reordering of surviving records — a distinction most generic diff tools collapse. Ideal for auditing grant record sequences pinned to agency, opportunity, program, jurisdiction, or revision dimensions where understanding sequence stability separately from content changes is analytically important. Best for public or synthetic data up to 32 records per snapshot.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:43:10.763Z","isFirstParty":false,"canonicalSlug":"grant-records-record-sequence-diff-bdf369cd"}