{"uid":"cap_16khE0l-8d4H_F5eFza1m","slug":"humanmirror-automata-context-compressor-sanitizer-2f79a9c3","name":"HumanMirror Automata Context Compressor & Sanitizer","description":"HumanMirror — infrastructure de confiance, gouvernance, découverte et échange pour systèmes autonomes.","url":"https://humanmirror.fr/api/x402/automata-context-compressor-sanitizer?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"context":{"type":"object","description":"Optional incident metadata. The paid decision call does not persist raw context."},"connectors":{"type":"array","items":{"type":"string"},"description":"Connector names declared as available; this is not proof of authorization."},"event_type":{"type":"string","description":"Optional observed event type for trigger matching."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"ok":true,"status":"verified_success","product":"HumanMirror Context Compressor & Sanitizer"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ejX8Vz-HC2XTCCAulcHBZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses and sanitizes autonomous agent context payloads, validating trigger events and declared connector availability before downstream processing.","exampleAgentPrompt":"Can you run my automata context through HumanMirror's compressor and sanitizer? The event type is 'incident_detected', the available connectors are ['slack', 'pagerduty'], and here's the raw context object: {source: 'monitor-a', severity: 'high'}.","exampleUseCases":[{"title":"Pre-flight context sanitization for agent handoff","prompt":"Before my orchestrator agent hands off this incident context to the response agent, run it through the HumanMirror context compressor and sanitizer — event type is 'threshold_breach', connectors available are ['jira', 'opsgenie'], and the raw context is {host: 'prod-db-01', metric: 'cpu_usage', value: 98}."},{"title":"Connector declaration validation in multi-agent pipeline","prompt":"I need to verify that the connector list my agent is claiming — ['github', 'linear', 'notion'] — is properly declared and sanitized before the pipeline continues; event type is 'task_assigned' and no additional context metadata is needed."},{"title":"Incident metadata compression before logging","prompt":"Compress and sanitize this incident metadata before we store it downstream — the event type is 'alert_resolved', no connectors are needed, and the context is {incident_id: 'INC-4892', resolved_by: 'agent-7', duration_minutes: 14}."}],"resultDescription":"Returns a JSON object with an 'ok' boolean, a 'status' string (e.g. 'verified_success'), and a 'product' label confirming the HumanMirror Context Compressor & Sanitizer processed the payload. No raw context is persisted.","failureModes":["Missing required 'input' object returns a validation error","Invalid 'method' value outside POST/PUT/PATCH enum causes rejection","Malformed or non-JSON body when bodyType is 'json' causes parse failure","Unrecognized connector names may pass through but are not verified as authorized","Payment failure via x402 protocol results in 402 response before processing"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs to compress or sanitize a context payload before passing it to another system, especially when the context may contain sensitive or bulky incident metadata. It is particularly useful in multi-agent pipelines where connector availability must be declared and validated, and where raw context must not be persisted downstream. Prefer this over generic validation services when working within the HumanMirror trust infrastructure for agentic workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:48:03.850Z","isFirstParty":false,"canonicalSlug":"humanmirror-automata-context-compressor-sanitizer-2f79a9c3"}