UNPKG

kestrel.markets

Version:

A typed, token-efficient language + runtime for agentic trading: agents author bounded plans, the runtime fires them at the tick. CLI + typed library + MCP server.

24 lines (23 loc) 1.41 kB
/** * kestrel.markets/protocol — the CATALOG contract (protocol v0.2). * * A {@link CatalogEntry} is the content-addressed, reproducibility-complete * descriptor of ONE gradeable subject the managed backend (or a self-hosted * Kestrel) publishes: it pins EVERYTHING a client needs to reproduce the exact * numbers a Grade will certify — the input roots, the schema, the corpus tier, * the engine/Judge versions, the single permitted fill model, the View and * Rendering identities the subject was authored under, and the provenance of the * record. Two runs that pin the same entry are replayable to identical results * (ADR-0010 "legible text is truth; binary stores are projections"; ADR-0011 the * Blotter projector is a pure function of the bus). * * HARD CONSTRAINTS (identical to src/protocol/index.ts — see its header): * - ZERO runtime dependencies. This file imports NOTHING. It is pure types + * own constants and must typecheck with the engine/`chdb` uninstalled. * - SHAPES ONLY. Every content-addressed artifact is an opaque HANDLE * ({@link ContentRoot}); never a key, a signing routine, or an inlined blob. * - GENERIC ONLY. No founding-app tickers, strategy names, or private corpus * identities appear in types, doc comments, or examples. Product identities * ride INSIDE these fields at runtime; they are not part of the contract. */ export {};