{"uid":"cap_WEuPxIrwib9KJLclOGpKD","slug":"reading-plans-record-sequence-diff-e5033ab5","name":"Reading Plans - Record Sequence Diff","description":"Separate record changes from shared-record reordering; inserting or deleting a record does not itself reorder surviving records for library/plan/work/edition/revision-pinned reading Supplied-record analysis, not independent certification. Full contract at the free describe URL.","url":"https://www.mahastrategies.com/api/v1/library/reading-plans/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.035314","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.035314/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035314","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035314","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G1EPuRIdAa1dKDLWzrUnW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.035314","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Separates insertions/deletions from reordering in a before/after reading-plan record list, isolating which surviving records changed position vs. which were added or removed.","exampleAgentPrompt":"Can you compare these two versions of my reading plan record list — before had 12 entries and after has 10 — and tell me which records were actually inserted or deleted versus which surviving records just got reordered? Use public data class.","exampleUseCases":[{"title":"Audit reading plan version changes","prompt":"I have a before list and an after list of reading plan records for a library edition — I need to know which records were genuinely added or removed versus which ones just shifted position after the deletions. Both lists are public data, up to 32 entries each."},{"title":"Detect unintended reordering after record deletion","prompt":"We deleted a record from our reading plan and want to confirm the surviving records kept their original sequence. Can you diff the before and after arrays for me and flag any survivors whose order changed?"},{"title":"Validate plan integrity after bulk edit","prompt":"After a bulk edit to our work-pinned reading plan, I need to separate out which records are new insertions from which existing ones got reordered — can you run a sequence diff on the before and after arrays, treating it as synthetic data?"}],"resultDescription":"Returns a structured diff identifying which records were inserted, which were deleted, and which surviving records experienced a positional reorder — without conflating the three change types. The analysis is based solely on the supplied before/after arrays and does not constitute independent certification.","failureModes":["Array exceeds 32-item limit — request rejected","Invalid dataClass value (must be 'public' or 'synthetic') — validation error","nonpersonalMetadata not set to true — request rejected","Malformed or missing before/after arrays — schema validation failure","Payment of 0.035314 USDC not supplied — 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need to cleanly disentangle record insertions and deletions from positional reordering of survivors in a reading plan list, especially when naive diff tools conflate the two. Best suited for library, publishing, or plan-management workflows where understanding why a record's position changed matters — was it moved, or did surrounding records shift around it?","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:48:29.087Z","isFirstParty":false,"canonicalSlug":"reading-plans-record-sequence-diff-e5033ab5"}