Skip to main content

Oracle

The oracle is a read-only, publicly accessible projection layer over the event store. It answers one question: does this signal producer have verifiable history?

Endpoint

No authentication required. Designed to be queried by AI agents before acting on a signal. Anti-Goodhart header on every response:

Response

Producer with history:
Unknown producer:

Response fields

Identity semantics (source vs node_id)

  • Canonical producer identity is node_id when a signal is linked to a registered contributor.
  • Oracle lookups accept either the canonical node_id or a historical events.source alias.
  • When an alias resolves unambiguously to a contributor, the response producer_id returns the canonical node_id.
This keeps provenance queries coherent across legacy source labels and contributor-linked submissions.

MCP tool

The b1e55ed_provenance_check MCP tool wraps this endpoint for agent use. Via POST /api/v1/mcp:
See: agent-interfaces.md for full MCP server documentation.

Karma scoring

The oracle draws on karma scores described in docs/internal/internal/KARMA-SPEC.md. Scores are NOT returned by the provenance endpoint — the endpoint returns facts. Karma calibration, update rules, and failure modes are specified in internal/KARMA-SPEC.md.

Query logging

Every oracle query is logged to data/oracle_queries.jsonl in anonymized form:
Raw producer IDs are never logged. This data is demand intelligence — it never feeds back into karma scores.

Reproducibility

docs/internal/SEED_MANIFEST.md documents the initial seed dataset and how to verify scores are reproducible.