AchiralAchiral

Docs · LLMs and developers

Version3.12.1

Send developer and system events into Achiral memory.

Event Ingestion

Use event ingestion when a system action should become future memory.

Examples:

  • deployments
  • incidents
  • CI runs
  • pull requests
  • code review findings
  • support tickets
  • user preferences
  • operational decisions

Route

HTTP
POST /v1/memory/events

Requires memory:write.

Payload

JSON
{
  "type": "deployment.completed",
  "source": "github-actions",
  "subject": "api-service",
  "text": "api-service commit abc123 deployed to production.",
  "metadata": {
    "repo": "acme/api-service",
    "sha": "abc123",
    "environment": "production"
  }
}

Required fields:

FieldPurpose
typeStable event type such as deployment.completed or incident.resolved.
textHuman-readable event summary that can be triaged into memory.

Recommended fields:

FieldPurpose
sourceSystem that emitted the event.
subjectService, customer, repo, workflow, or entity the event is about.
metadataStructured source details such as repo, SHA, environment, ticket id, or URL.

Send Idempotency-Key when retrying event submissions. If no explicit key is provided, Achiral derives a deterministic key from the developer event source, event type, and normalized payload hash.

SDK

TypeScript
await chiro.events.ingest({
  type: "incident.resolved",
  source: "pagerduty",
  subject: "auth-service",
  text: "Resolved elevated 401s after rotating the stale JWKS cache.",
  metadata: {
    incidentId: "INC-123",
    severity: "sev2",
  },
});

Events flow through Achiral's generic ingestion pipeline as developer_event sources and can create BusinessEvent records, workflow state, and memory candidates.