9 · The pipeline
Ten stages from a name to a scored record. Each stage consumes artefacts and produces artefacts; no stage calls the next; the scheduler composes them, so every chain of reasoning in the firm is a chain in the Record.
| # | Stage | Produces | Fails closed on |
|---|---|---|---|
| 1 | Source and triage | candidates with reasons and horizon price paths | investable list unavailable; research budget exhausted |
| 2 | Research | views in schema | citation unresolvable; no calculator cited; missing pillar dates |
| 3 | Challenge | bear twins (cold and warm), debates in both orderings, judge verdicts | judge vendor unavailable and no second vendor configured |
| 4 | Price | Idea Book bids, price and rank | too few bids for a price |
| 5 | Construct | proposal with post-trade landing and marginal risk | risk engine stale; book version unknown |
| 6 | Review | risk memo, compliance line | risk model degraded; licence expired on a source a view used |
| 7 | Enforce | kernel verdict with frozen inputs | any HARD input missing |
| 8 | Decide | signed decision, rejection, or expiry | digest expired; signature invalid; mode does not permit |
| 9 | Execute | intents, orders, fills, TCA | gateway unreachable; reconciliation unconverged |
| 10 | Score | scored views, settlements, attribution, calibration | resolution data missing (the view stays unresolved, never guessed) |
- R-PIPE-001 (MUST) A stage may only read artefacts its manifest names. A stage that needs something it was not given fails the wake with a reason; it does not fetch.
- R-PIPE-002 (MUST) Every stage is idempotent on its inputs: re-running a wake on the same manifest produces the same artefact id and no duplicate side effects.
- R-PIPE-003 (MAY) Conditional views. A view may be
conditionalon a dated event, carrying a pre-armed order that the kernel evaluates when the condition fires. The condition is a code predicate over market or event data; a condition a model must judge is not a condition. - R-PIPE-004 (MUST) Concurrency: one PM proposal per universe close, serialised on the book version. A proposal computed on a stale book version is rejected by the kernel, not reconciled.
- R-PIPE-005 (MUST) Circuit breaker. Every wake class has hourly and per-run caps on cost and on
call count; breaching a cap pauses that class and raises a
budgethalt for research. Risk monitoring, reconciliation and maintenance orders are never paused by a budget. - R-PIPE-006 (MUST) Retries are bounded, backed off, and recorded; a retried wake carries the attempt number; a wake that fails its retries becomes an operations exception.
- R-PIPE-007 (MUST) Event coalescing: a burst of triggers for the same entity within a window produces one wake with all of them in the manifest, not many wakes.
- R-PIPE-008 (MUST) Every stage writes a wake outcome, including "nothing to do".
- R-PIPE-009 (MUST) Ordering guarantees are explicit per stage: research may run out of order; enforcement, decision and execution are strictly ordered per instrument and per book version.
- R-PIPE-010 (MUST) Nothing in the pipeline may reach a broker except through the gateway, and the gateway acts only on a decision that carries a valid kernel verdict.
- R-PIPE-011 (MUST) One clock. Cadences, market calendars, half-days, holidays, expiries and rolls come from the scheduler's calendar service; it is the only component that knows what time it is.
- R-PIPE-012 (MUST) Backpressure is explicit: when a downstream stage is saturated, the upstream stage's wakes are deferred with their reason shown on the Ops view, never dropped.
- R-PIPE-013 (MUST) Every stage's latency, failure rate, cost and queue depth are metrics on the Ops view, per variant.