Skip to main content

Desk inputs and the prompt blocks

What each AI member of the accumulation desk is given, where it comes from, and what changed on 2026-10-02 after a review of the real prompts in Langfuse. The full input and output of every member turn is kept in Langfuse under the session cycle:<snapshot id>; the decision timeline links each cycle to it.

The three cycles and their members​

CycleCadenceMembers (model as routed on 2026-10-02)Output
Analysis (accum-cycle + accum-brief)hourly at :00Flow, Structure, Venue, Narrative analysts and the Challenger in parallel; then the Thesis Officerthe brief: regime, phase, forecasts (1d / 1w / 1m), target probabilities, scenarios, ladder alert, and since 2026-10-05 optional rule_flags[] against the rules registry
Dream (accum-dream)every 2 h at :20Dream Judgescored briefs, lessons, bias notes, and since 2026-10-05 optional rule_flags[] ({key, verdict, evidence})
Decision (accum-decision)hourly at :07, plus a regime-flip triggerDecision Officerthe executable JSON (AccumDecisionV1) + its digest

Decisions are hourly on purpose: the desk sets goals and does not handle micro moves; the executor's :20/:50 sweeps carry each decision out.

What reaches whom​

The worker builds every block at dispatch (apps/nexus-worker/src/mob_jobs.rs, pure shaping in mob_jobs/prompt_blocks.rs); the templates in nexus-gitops/charts/nexus/files/mobs/accum-desk/mob.definition.json reference them as {{ params.<name> }}. A referenced param that is absent fails the step (the host's template engine raises on a missing segment), so every param is always present and carries an unavailable: <reason> text when its read fails.

Block (params.*)SourceWho gets it
coinsoracle features, ~150 keys per coin out of ~775, with a header naming the timeframes (ind_* = 1 h bars, m15_*, h4_*, daily when present), 168/720-bar highs and lows, pivots, Bollinger / Donchian bounds, a small 4 h and daily set, every Coinglass cg_* keyFlow, Structure, Narrative, Challenger
spotthe cex-manager technical snapshot reduced to ~25 fields per symbol and timeframe with asOf and a bars label (NEXUS_SPOT_SNAPSHOT_FULL=1 restores the raw dump). Note: this snapshot is computed on perp candles today — see belowStructure, Challenger
lendingper reserve: APY and utilization in %, free liquidity in asset units, our position as a multiple of free liquidity (the ratio the recall / repark gates use); LP rows as count + total; fee_rate shown as fee_pct + fee_rate_ppmVenue, Decision Officer (new)
lp, dex, data_quality, ladder, sleeping, portfolio_state, sleeveexec plane and worker ledgers; recent_execution collapses unchanged keep rows to one line per decision; the sleeve's recent_trades is a per-pair lot summaryVenue, Thesis, Dream, Decision as before
scorethe latest NAV snapshot, now with nav_accounting: HWM, drawdown, TWR index, flows, 1d/7d/30d/inception returns, attribution (7 d and inception), every benchmark's excess including the flow-adjusted 75/25 holdVenue, Challenger, Thesis, Dream, Decision
challenger_context (new)≤ 2.5k chars: idle money by wallet, what is earning, LP (count, in-range $, principal, measured APR), lending (balance, APY, utilization, free-liquidity multiple), book mix, the 75/25 lineChallenger
rules (rules_brief for the thesis officer)the rules registry block for the step; for the decision officer each row carries cited / last_cited / since, and flags_awaiting_answer lists the open rule flags the officer must answer this cycle (2026-10-05)Analysts, Thesis, Dream, Decision
portfolio_state.execution_review (2026-10-05)what the code did with the previous plans: LP-open-gate refusals and trims, open rule flags by source, the last 12 non-seed rule events, and a meaning that says a refused row is answered with a rules[] / goals[] change, not re-issuedDecision
briefs, theses, dreams, prior_decisionshistory. Decision: the newest 4 briefs in full (ACCUM_DECISION_FULL_BRIEFS), older ones as one-line rows; theses cut to regime / phase / forecasts / ladder alert; prior decisions as digest + mandate / limits / reserves / ladder proposal / swing state; older dreams drop their scored table. Dream: theses.resolved_outcomes scores every forecast whose horizon has elapsed against the 15-minute NAV marks (price at issue and at horizon, high / low between, HIT / MISS, hit rate per asset)Dream, Decision

Before the change the decision officer's prompt was ≈ 327 k characters, about 60 % of it repeated history, and it ran 410 s against a 600 s timeout; the trims above are worth roughly 40 k tokens per decision. The first prompt input sizes log line after deploy is the measurement.

Why the officer kept saying "unavailable"​

Every hourly decision wrote that the flow-adjusted 75/25 benchmark, the high-water mark, reserve-specific utilization and free liquidity, and inventory-aware net quotes were unavailable, and on that basis cleared a $0 acquisition tranche while ≈ 70 % of NAV sat in Kamino at ≈ 11 % against a measured pool APR above 100 %. The review found the first three existed and were not injected (the NAV snapshot carries hwm_usdt, drawdown_frac, benchmarks[]; params.lending went only to the Venue analyst). They are in the score and lending blocks now. Net quotes still need a pre-quote step against the exec's /v1/swap/quote and /v1/lp/quote (not built: it calls the armed signer).

Realized carry (2026-10-05). The next "unavailable" was the whole-book realized carry APR: the desk's own rule capital.blended_carry_reporting publishes it only with matched income and capital-time for every home, and only the LP book had a measured record (lending carried Kamino's quoted supply APY, staking an assumed constant). candidate_homes.realized_carry now measures all three from the 15-minute NAV snapshots and the journaled movements, for the trailing 7 days and 24 hours: lending income is the value change net of supplies and withdrawals; staking is the JitoSOL exchange-rate drift in SOL-equivalent net of stake/unstake, valued at the window-end mark; LP carry is collected fees over the LP book's dollar-days with inventory repricing shown apart. earning_book.realized_apr_pct is the carry of the capital that was earning, whole_book.realized_apr_pct the same income over the NAV's dollar-days (idle capital included), and coverage names gaps and unvalued legs so the officer quotes the measurement with its limits. The block is cached for ten minutes and reaches the venue analyst, the brief, the dream and the decision alike; each recomputation is also saved as the accum_realized_carry digest, which core serves as GET /v1/desk/carry (with computed_at) for the console and the owner assistant's desk_carry tool. candidate_homes.market_making (2026-10-05) is the market-making controller's last reading: mode, quotes, inventory, realised capture in bps of volume and the 24 h P&L, so the desk weighs it per dollar of inventory cap.

candidate_homes.futures_live (2026-10-07) is the venue's live futures book: every filled leg with its origin (hedge = a leg of the LP delta hedge, desk = a directional decision), the shared venue position (average entry, pending on-chain triggers, liquidation price) and the NAV's futures line (collateral + unrealised − accrued borrow, read from the position account at each snapshot). It replaces the paper ledger as the desk's equity and liability reading in live mode — the paper view reports zero positions once futures run live, which had the officer flagging objective.score with "derivatives equity unavailable" while five hedge legs were open.

The first measurement exposed a journal gap: a /v1/stake/withdraw that timed out at the signer settled failed_partial and journaled nothing although the chain showed it finalized (2026-10-03 12:44Z, 19.4175 JitoSOL → 25.3 SOL for an LP funding leg), so the staking carry read −25 SOL for a week. The worker's hygiene sweep now recovers ambiguous stake sends the way it recovers lending sends (action_journal::recover_ambiguous_stake_sends): legs from the signer's own balance deltas in the finalized transaction, valued at the snapshot mark of the block time, the request settled confirmed. Both recoveries ask every NAV_RECEIPT_RPC_URLS entry in turn — the local node keeps no deep history. The signature of such a gap is one 15-minute NAV interval where a home's value drops by more than its journaled flows; the carry block reports it as income, which is the point: it cannot be hidden.

A third shape surfaced on 2026-10-07: a ladder rung the signer fires on its own recalls Kamino before its swap, and that request never passes through the worker, so no lending_withdraw flow existed for it (a $4 500 rung pulled the whole $54 038 reserve; the swap then failed and the hygiene reparked the money ten minutes later — journaled, unlike the recall; 7-day yield read −$53.7k against +$60.4k unexplained). action_journal::recover_exec_rung_recalls now reads recall_sigs off the signer's /v1/ladder outbox rows and journals each confirmed redemption from its receipt at block time; the NAV repair pass rewrites the period. The signer side recalls only the shortfall since the same day (Portfolio console → ladder).

Oracle keys: units and windows (2026-10-02)​

The oracle's indicator frames (ind_*, m15_*, h4_*), order book, funding and open interest come from the KuCoin perpetual market; the book is spot only and the owner's reference is the multi-venue spot SOL/USDT, with Coinglass cg_* as the futures view. Old keys are kept (Mongo history, prompts); new keys say what they are. The legend is apps/nexus-oracle/FEATURES.md.

Was read asIsNow also
open_interest in USDKuCoin contracts (HYPE: 4.86 M contracts ≈ $42 M, not $4.86 M)open_interest_contracts, open_interest_base, open_interest_usd, contract_multiplier
ob_*_depth{0p5,1,2}_pct three bandsone number three times (the 20-level book sat inside 0.5 %)bands recomputed from KuCoin's full book, _usd variants, ob_depth_truncated
cg_liq_long_4h_usd vs cg_liq_long_last_4h_usdrolling 4 h across exchanges vs the still-forming 4 h bar on three exchanges…_4h_rolling_usd, …_4h_lastbar_usd, …_4h_lastclosed_usd, a partial flag
cg_oi_chg_24h_hist_pct20–24 h between bars, up to 30 min stalecg_oi_chg_24h_closed_pct
cg_basis_pct "annualised"plain percent (a perp has no expiry)label fixed; cg_basis_change_rel_pct, cg_basis_chg_pp
funding_rate fraction vs cg_fr_* percentbothfunding_rate_pct, funding_interval_h, funding_rate_apr_pct
no as-of per frame—meta_* (base timeframe, as-of and candle count per frame, forming bar), dq_warmup_*

Spot entities SOL-USDT and BTC-USDT (median of Binance, KuCoin, Gate, MEXC; RSI / EMA / ATR on 1 h and 4 h; spot_perp_basis_pct) are written beside the perp ones. Moving the indicator frames themselves to spot needs a spot analysis mode in the CEX manager (today spot history is 175 × 1 h bars since 2026-09-25, no 15 m / 1 d spot candles, no HYPE spot series); ORACLE_INDICATOR_MARKET=spot switches as soon as the manager answers market: "spot" and flags dq_indicator_market_mismatch until then. ETHUSDTM is no longer in the accum universe (worker.accumSymbols).

Prompt doctrine fixed the same day​

Removed or rewritten in the templates and souls: "buy weakness into a cycle-bottom thesis", "$60 / $50 / $40 rungs you may propose", "the daily synthesis", "analysis every 30 minutes", "the JLP-market reserve", a 2026-09-07 note about a position no longer held. Stated: the 0.40–0.85 SOL band is the owner's held-coin target band (a fall pauses new acquisition and never licenses selling held coin; being below the floor is a standing repair task closed through ladder fills or a cleared tranche); the basis floor binds the coin leg's selling side only, a USDC-side below-spot range is a bid; the Thesis Officer no longer carries decision-only blocks; the Challenger has one output spec; the Narrative analyst is told it has fear/greed, active addresses and ETF flows and no news or whale feed. Reasoning effort: Thesis Officer and Dream Judge at medium through codex_options (the Decision Officer's high waits for the first measured prompt size after the trims).

A definition change takes effect at the next session_rollover (the host loads the file at boot); the rollover is idle-safe and refuses a pod younger than 25 min.