{"uid":"cap_fTzOhiHIo99epiWd5ZZOa","slug":"source-packs-unit-label-consistency-8bd5da45","name":"Source Packs — Unit-Label Consistency","description":"Compare source span coordinate labels with supplied source-coordinate contracts. UTF-8 bytes, Unicode codepoints and declared tokens remain distinct; no guessed conversion. Offline typed nonpersonal metadata only. Result retention: 24 hours; minimal receipt metadata: 90 days.","url":"https://www.mahastrategies.com/api/v1/context/source-packs/unit-label-consistency?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"spans":{"type":"array","maxItems":32,"minItems":1},"sources":{"type":"array","maxItems":32,"minItems":1},"dataClass":{"enum":["public","synthetic"],"type":"string"},"nonpersonalMetadata":{"type":"boolean","const":true}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012298","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.012298/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012298","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012298","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Y1IiGrhqllfm7YQytfQg_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012298","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates that coordinate unit labels (UTF-8 bytes, Unicode codepoints, declared tokens) used in source spans match the contracts defined in supplied source-coordinate specifications.","exampleAgentPrompt":"Check whether the unit labels on these source spans — bytes, codepoints, and tokens — are consistent with our declared source-coordinate contracts; the data is synthetic and non-personal.","exampleUseCases":[{"title":"NLP pipeline span label audit","prompt":"I have 12 source spans from our annotation pipeline and their coordinate contracts — can you verify that the unit labels (bytes vs codepoints vs tokens) are consistent and flag any mismatches? All data is synthetic."},{"title":"Token vs byte offset mislabeling check","prompt":"We suspect some of our source spans are mislabeled as byte offsets when they should be codepoint coordinates — can you compare them against the source-coordinate contracts and tell me where the unit labels are wrong? Data class is public."},{"title":"Pre-release source pack QA validation","prompt":"Before we ship this source pack, run a unit-label consistency check on these 20 spans against our coordinate contracts — we need to confirm bytes, codepoints, and declared tokens are all labeled correctly with no guessed conversions. Data is synthetic and non-personal."}],"resultDescription":"Returns a consistency report indicating whether the coordinate unit labels on each supplied span match the contracts in the source specifications, distinguishing UTF-8 bytes, Unicode codepoints, and declared tokens without performing any implicit conversion. Results are retained for 24 hours; minimal receipt metadata is kept for 90 days.","failureModes":["Span count exceeds maximum of 32 items — returns validation error","Source array count exceeds maximum of 32 items — returns validation error","dataClass not set to 'public' or 'synthetic' — rejected as invalid enum value","nonpersonalMetadata not set to true — request rejected","Mismatched array lengths between spans and sources may produce partial results or an error","Malformed span coordinate objects may cause parsing failures"],"whenToPreferThis":"Choose this endpoint when you need to verify that coordinate unit labels (bytes, codepoints, tokens) in source spans match declared contracts without any implicit unit conversion or guessing. It is specifically designed for offline, typed, non-personal metadata validation of up to 32 source spans, making it ideal for NLP pipeline QA, annotation auditing, and pre-release source pack validation where label precision is critical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:39:19.323Z","isFirstParty":false,"canonicalSlug":"source-packs-unit-label-consistency-8bd5da45"}