{"uid":"cap_vjwcqnl_SuxIHsVVrANTn","slug":"contract-amendments-schema-directionality-616322f7","name":"Contract Amendments — Schema Directionality","description":"Compare closed amendment projection fields and tenant/contract frames for removed fields, changed types, new requirements and narrowed nullability. No general schema subtyping or legal interpretation. Offline typed nonpersonal metadata only. Result retention: 24 hours; minimal receipt metadata: 90 days.","url":"https://www.mahastrategies.com/api/v1/context/contract-amendments/schema-directionality?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"array","maxItems":32,"minItems":0},"before":{"type":"array","maxItems":32,"minItems":1},"dataClass":{"enum":["public","synthetic"],"type":"string"},"afterFrame":{"type":"object"},"beforeFrame":{"type":"object"},"nonpersonalMetadata":{"type":"boolean","const":true}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.035025","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.035025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RxAcXBSFYYS4AGpQWXI66","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.035025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares before/after contract amendment schema projections to detect removed fields, changed types, new requirements, and narrowed nullability between tenant/contract frames.","exampleAgentPrompt":"Compare these two contract amendment schema snapshots — the 'before' has 5 projection fields and the 'after' has 4 — and tell me which fields were removed, which types changed, and whether any fields became newly required or had their nullability narrowed. Data class is public.","exampleUseCases":[{"title":"Detecting breaking schema changes pre-deployment","prompt":"I'm about to roll out an updated contract amendment schema. Can you diff the before and after projection arrays against their tenant frames and flag any fields that were removed, had their types changed, or became non-nullable so I know what might break downstream?"},{"title":"Compliance audit of amendment field requirements","prompt":"We need to audit whether last quarter's contract amendment update introduced any new required fields or narrowed nullability on existing ones — here are the before and after schema arrays and frames, data class is synthetic."},{"title":"Tenant frame drift review after contract renegotiation","prompt":"After renegotiating our contract terms, I want to check the before and after tenant frames for schema directionality issues — specifically removed fields and type changes — using these public projection snapshots."}],"resultDescription":"A structured report listing schema directionality changes between the before and after amendment projections: fields present in the before set but absent in the after (removals), fields whose types changed, fields that became newly required, and fields where nullability was narrowed. Results are retained for 24 hours; minimal receipt metadata is retained for 90 days.","failureModes":["before array is empty or missing (minItems:1 violated) — validation error","after or before array exceeds 32 items — request rejected","dataClass not set to 'public' or 'synthetic' — enum validation error","nonpersonalMetadata is not exactly true — const constraint violation","beforeFrame or afterFrame objects are malformed or missing required structure — schema error","personal data included in payload — rejected by data class policy"],"whenToPreferThis":"Choose this endpoint when you need a precise, typed comparison of contract amendment schema projections to catch structural breaking changes — specifically removed fields, type mutations, new required fields, and narrowed nullability — between two versioned states. It is scoped exclusively to offline, nonpersonal, public or synthetic metadata and does not perform legal interpretation or general schema subtyping analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:44:43.022Z","isFirstParty":false,"canonicalSlug":"contract-amendments-schema-directionality-616322f7"}