{"uid":"cap_7c0cELwWNQ29GH_tuJquU","slug":"reading-plans-scope-boundary-audit-abf92502","name":"Reading Plans Scope Boundary Audit","description":"Enforce exact declared owner, subject, revision and allowed scope labels; a matching label grants no permission or access 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/scope-boundary-audit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","maxItems":32,"minItems":1},"ownerRef":{"type":"string"},"revision":{"type":"string"},"dataClass":{"enum":["public","synthetic"],"type":"string"},"subjectRef":{"type":"string"},"allowedScopes":{"type":"array","maxItems":16,"minItems":1},"nonpersonalMetadata":{"type":"boolean","const":true}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03834","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.03834/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03834","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03834","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_owqdbDsQRol9Wg0l_Bddh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03834","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates that declared owner, subject, revision, and allowed scope labels in reading plan records match exactly, reporting any scope boundary violations without granting permissions.","exampleAgentPrompt":"Audit these 5 reading plan rows for scope boundary compliance — the owner is 'lib-org-42', subject is 'reader-sub-7', revision is 'v2.1', and the allowed scopes are ['public-read', 'catalog-view']; data class is public and nonpersonal metadata is true.","exampleUseCases":[{"title":"Library catalog scope compliance check","prompt":"I have 10 reading plan records for owner 'national-lib-01', subject 'patron-group-A', revision 'rev3', with allowed scopes ['public-read', 'borrow']. Can you audit them for scope boundary violations? Data class is public, nonpersonal metadata true."},{"title":"Edition revision pin mismatch detection","prompt":"Check these 8 reading plan rows where the ownerRef is 'publisher-house-9', subjectRef is 'reading-club-22', revision is 'ed-2024-Q1', and allowed scopes are ['licensed-access', 'preview']. I want to know if any scope labels violate the declared boundary. Data class is synthetic."},{"title":"Digital library plan scope enforcement","prompt":"Validate scope boundaries for 15 reading plan entries under ownerRef 'digital-lib-03', subjectRef 'school-cohort-5', revision 'v1.0', allowed scopes ['classroom-use'], data class public, nonpersonal metadata true — flag any scope mismatches."}],"resultDescription":"Returns an audit report identifying which rows have scope boundary violations, listing mismatched owner, subject, revision, or scope label declarations. Does not grant permissions or certify compliance — it analyzes supplied records only and flags discrepancies between declared pins and allowed scope labels.","failureModes":["Rows array empty or exceeds 32 items — validation error","allowedScopes array exceeds 16 items — request rejected","nonpersonalMetadata not set to true — required field constraint failure","dataClass not one of 'public' or 'synthetic' — enum validation error","Missing required ownerRef, subjectRef, or revision fields — incomplete request error","Malformed row data causing parse failure — processing error"],"whenToPreferThis":"Use this endpoint when you need to audit reading plan metadata records for exact scope boundary compliance — specifically when you have declared owner, subject, revision, and allowed scope labels and need to check for mismatches. Prefer this over generic metadata validators when working within library plan, work, edition, or revision-pinned reading contexts. Not suitable for granting or revoking permissions, independent certification, or raw content access control enforcement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:43:27.323Z","isFirstParty":false,"canonicalSlug":"reading-plans-scope-boundary-audit-abf92502"}