Skip to main content

Decision goals

Since 2026-10-02 the rules the accumulation desk runs on are records the AI populates and the owner overrides, not numbers scattered over a contract clamp, an ACCUM_* env var, a chart value, a prose line in the decision prompt and a signer policy (fifteen of them used to live in two places with two different values). One record per rule lives in accum_goals; the Decision goals page (/trading/goals) is where you run the desk; Telegram /goals, /goal, /challenge, /level, /idea, /futures do the same from the phone.

The owner expanded the mandate on 2026-10-03: the AI may set all economic limits and approval thresholds autonomously; execution-wallet capital is the funding source. The following semantics describe the new implementation and require its release. Transaction integrity, valid policy schemas and explicit manual pins remain enforced.

The record​

FieldMeaning
origin, statuscatalog or custom; active or retired. Older documents default to active catalogue goals
defthe catalogue entry: group, priority (P0 safety, P1 mandate, P2 yield, P3 hygiene — lower wins a conflict and the officer must name the lower one it sacrificed), kind (frac, usd, number, duration, bool, enum), unit, scope (where it bites: contract, worker, exec, prompt), typed domain constraints (finite values, fractions, booleans and supported choices), plus bootstrap values for the five risk-level presets
aithe decision officer's latest proposal: value, rationale, the decision it came from, confidence, and the outcome: applied, challenged (an explicit owner pin holds), ignored (invalid domain, previous authority retained); historical clamped events remain in the audit
owneryour override: a pinned level or a raw value, with a note. Holds until you clear it
challengethe AI's open objection to your pin (value + rationale). Nothing changes until you accept (the pin is lifted, the AI value applies) or keep it
effective + effective_sourcethe value in force and where it came from: default, level, AI or owner
catalogue_holdoptional migration value preserving the effective authority when a catalogue definition changes; a fresh valid AI proposal or explicit owner action resolves it
score0–100 attainment: the worker's formula where one exists, plus the officer's own score and next step
versionrevision used to reject a website definition or lifecycle write based on an older record

Resolution: an explicit owner pin → a valid AI proposal → the selected risk-level preset → the catalogue bootstrap value. All economic catalogue entries are AI-editable. Preset ranges no longer clamp valid proposals. Invalid values retain the prior authority and produce an audit event. A manual pin is an optional exception to autonomy, visible in both operator surfaces.

Catalogue upgrades preserve the value already in force. For example, a legacy pin requesting 90% that was previously clipped to 50% stays at 50% after an upgrade; deployment alone does not authorize 90%. The raw pin, migration hold and catalogue-refresh audit remain available. A fresh accepted change removes the migration hold.

Every change is an accum_goal_events row (including seed, AI/value/pin changes, custom_created, custom_definition, retired and reactivated) and shows in goal history. Custom lifecycle changes also retain their last event on the goal record so an interrupted separate history write can be recovered.

Custom strategy goals​

The AI and operator can create new typed strategy goals and retire ineffective ones. The website exposes Custom strategy goals under /trading/goals/controls#custom-goals, with definition editing, retirement, reactivation and a link to each goal's value, optional pin and history. Creating or editing a definition does not create a manual pin.

Goal typeWhat may changeWhere it acts
Implemented catalogue keyEconomic value, subject to its typed domain and any explicit owner pinIts existing contract, worker, signer or prompt consumers
Custom strategy goalDefinition, value and active/retired lifecyclePrompt scope only: reasoning and editable rules

Custom definitions cannot claim an executor scope, shadow a catalogue key or add a trading adapter, spending permission or deterministic scoring formula. Implemented execution keys cannot be redefined or retired through this API because their consumers require them. Their values remain dynamic; a zero or disabled value is explicit policy where the existing type supports it.

A definition contains title, description, kind, unit, default_value, optional numeric bounds, enum_values and priority P0–P3. Supported kinds are number, frac, usd, duration, bool and enum. Fractions are raw 0–1 values; counts and durations are integral. Bounds express the declared domain, not a hidden financial preset. The supplied default initializes all five risk levels. A definition edit preserves the current effective value and must still accept effective, pinned, accepted AI and open-challenge values; it cannot silently change authority by narrowing a domain or changing the default.

The decision's goals[] rows support op: set|add|edit|retire|reactivate. Omitting op remains a normal value set for compatibility. add and edit carry definition; value changes carry value; every operation includes a rationale. Unknown keys and invalid proposals leave the policy application incomplete instead of being silently counted as successful. AI lifecycle changes to a pinned custom goal are refused: the operator must clear the pin or make the explicit lifecycle change. Ordinary AI value proposals against a pin retain the existing challenge/approval path.

Retirement preserves the record, value, pin and history, but excludes the goal from active prompts, effective-value maps, policy hashes and scoring. Reactivation uses that same retained key and value. Reseeding never resurrects a retired custom goal. Active custom definitions participate in the policy version, so a changed definition is visible in the same authority lineage as other policy changes.

Website definition edits and lifecycle actions require the reviewed expected_version plus a reason. Core derives the actor from the authenticated principal; a browser-supplied actor is not authority. A conflict requires a refresh and review, with no automatic retry of the write.

How the AI uses it​

The worker injects the goals in force as params.goals into the analysis, dream and decision prompts (one line per goal with its domain, any owner pin and open challenge, and its score). The decision JSON carries four new sections: goals[] (proposals: key, value, rationale, confidence), goal_scores[] (the officer's 0–100 and next step), idea_responses[] and futures_plan[]. Before funding or hygiene, the worker applies a current accepted decision's proposals, invalidates cached authority, and reloads policy and the decision. Scores, idea answers and explicit-pin challenges are recorded in the same pass. Each execute sweep the worker computes the formula scores (exposure band, coin mix, drawdown, Kamino cap, earning share, idle coin, LP in range, ladder backing, futures conviction and hit rate) and the priority-weighted desk score. The accum_goal_scores digest the monitor reads is written only when a score, the desk score or the decision changed, or every 15 minutes (since 2026-10-05; before, every 15-second sweep wrote one, about 235 rows an hour).

The worker, contract and signer consume current policy. A missing, partial, malformed or expired registry holds new risk additions; the process retains last verified values rather than silently replacing them with chart limits. A fresh valid registry restores authority. The prompt and gate audit carry policy_version, age and hold reason. Host validation uses the dispatcher's frozen reserve policy; execution checks current policy again.

Core's budget response also supplies risk_hold: policy authority, trustworthy NAV and critical drawdown eligibility. It is independent of budget log mode. The signer requires it for new exposure, including ladder fires and later LP batches. Recovery exemptions do not clear a separate operator pause or kill switch. Deploy this Core response before the corresponding signer release.

Tools switches​

The tools group is AI-editable per-tool permission, enforced by the worker and visible to the officer: tools.ladder.enabled (off: consensus reprices recorded, never applied), tools.lp.enabled and tools.lp.venues (orca | orca,meteora; off-list opens refused, keeps / collects / closes still run), tools.lending.enabled (strategy supply / withdraw rows refused; cash hygiene keeps running), tools.staking.enabled, tools.swing.enabled (place / amend refused, cancels run), tools.cex.enabled (always off, informational). The futures sleeve keeps its own futures.enabled / futures.mode. A refused row is recorded as blocked with the switch named and one accum_tool_gate digest per decision. The Settings page shows each tool with its readiness and the switch.

Pages​

  • /trading/goals — current accepted decisions, actual capital allocation and permissions. /trading/goals/catalogue also leads with this summary, with definitions and export collapsed below.
  • /trading/goals/execution — five-second polling of controller health, wallet finality waits, inventory reconciliation, action receipts and program logs, LP protection and worker hygiene reports. Accepted plans, submitted requests and confirmed transactions remain distinct.
  • /trading/goals/ideas — human proposals and their review outcomes.
  • /trading/goals/controls — the full board, custom strategy-goal lifecycle, owner overrides, futures and ladder controls. /trading/goals/monitor retains detailed score diagnostics and /trading/goals/catalogue the definitions; since 2026-10-05 Monitor and Catalogue are tabs in the goals tab strip rather than side links. /trading/goals/changes is the event history; /trading/goals/<key> is a bookmarkable goal. Retired custom goals remain available in the manager and their history pages, without appearing as active authority.
  • /trading/futures — overview (status, hedge coverage, P&L, equity curve, gates, positions), opportunities (candidates with qualifies / blocked-by and "Suggest as idea"), positions, scorecard (forecast hit rates against the floor), roadmap (what live on-chain futures still needs).
  • Settings — "Portfolio AI optimizer — tools".

Ideas​

You propose; the cycle answers. An idea is free text, optionally tied to a goal and a proposed value. Every open idea is injected into the decision prompt and the officer must answer it in idea_responses[]: adopt (a goal value is filed as the AI's own proposal, so domain validation and explicit pins still apply), decline or defer, each with a rationale naming the evidence. Adopted and declined ideas stay visible until archived. Deferred ideas remain open, carrying the previous response into the next review. A deferred response must name the missing evidence or condition. Adoption is not transaction confirmation; follow the accepted plan and execution journal for implementation. Archived ideas are ignored by later responses.

Futures​

Standalone directional legs always carry a stop and a take-profit: the decision's futures_plan open gives stop (required by the contract) and take_profit; when it gives no take-profit the worker places one at futures.take_profit_frac from the entry, beside the stop, as on-chain triggers (futures.live.onchain_triggers) with the worker watcher as backup.

A sleeve governed by its goals, hedge-first: futures.enabled (off | hedge_only | on), futures.mode (paper | live), futures.venue (on-chain through the signer: jupiter_perps, drift as the alternative; the CEX perp executor retired on 2026-08-28 is not the path), conviction and resolved-forecast hit-rate floors, notional and leverage caps, horizons and a hard stop. In hedge_only the officer may short only to protect held coin in a FALL, when two consecutive briefs agree on direction at or above the conviction floor and the dream's resolved hit rate clears its floor. paper positions are simulated against the oracle index, marked every sweep, closed at stop or take-profit, and scored; nothing is signed. The AI can propose live through typed policy; a working on-chain adapter, signer arming, valid evidence and current limits are still required.

The AI-editable futures.paper.exploration switch lets paper simulations collect evidence even when conviction, two-brief agreement or hit-rate history is insufficient. Those checks are recorded as diagnostics; direction permissions, fresh prices, total notional, leverage, horizons and stops still apply. It never relaxes live execution gates. Paper P&L is gross oracle-price movement, excluding fees, carry, slippage and liquidation effects, and is excluded from real NAV.

Established LP pools are reviewed using recorded fees and position outcomes, including closed positions. The minimum APR measurement window still applies to new pools whose case rests on APR alone; lack of a newly precise estimate does not veto an established pool. The desk compares conservative net outcomes on the same capital and horizon against lending and permitted futures.

Execution accounting: repark reserves one submit-sized tranche per sweep, so a partial supply cannot consume a reservation for the entire idle balance. EXEC-owned JitoSOL explains SOL custody at its on-chain exchange rate without adding native spendable SOL or inventing cost basis. Historical NAV coverage and attribution gaps remain separate from current execution eligibility.

Live futures (Jupiter Perps through the signer)​

When futures.mode is live, a gated futures_plan open goes to the signer's /v1/futures/open as an on-chain Jupiter Perps request, with dry_run = futures.live.dry_run (true at every level: the real transaction is built and run through simulateTransaction, never sent; an accepted policy change may set it false to send), an idempotent intent id {decision_ts}#{index}, slippage from the registry and a stop price. Rows live in accum_futures_live: queued → simulated, or submitted → filled (keeper fill) → closing → closed; expired / failed; close reasons include stop, take_profit, decision, not_on_chain. Each sweep polls requests, marks filled positions from the signer's /v1/futures/positions, holds queued opens during an execution blackout, and the stop watcher (futures.live.stop_watcher) closes through the signer because Jupiter Perps fills are keeper-executed. futures.live.max_notional_usd is the per-open ceiling under the registry fraction. Every event is an accum_futures_live digest relayed to Telegram. The signer itself refuses everything unless EXEC_FUTURES_ENABLED=1, and refuses dry_run:false while EXEC_FUTURES_DRY_RUN_ONLY=1 — two switches outside the registry, on the armed signer's deployment, that the owner flips by deploy.

Wired on 2026-10-03 15:0xZ (owner go). The signer serves the futures routes (EXEC_FUTURES_ENABLED=1), the perps program is allow-listed, and the operational interlock EXEC_FUTURES_DRY_RUN_ONLY=1 is on: a dry_run:false request answers 403 whatever the registry says. futures.mode is owner-pinned to live with futures.live.dry_run pinned true, so every gated open is built against the real program (request and position PDAs, counter, oracle price, slippage bound) and run through simulateTransaction, never sent. Verified by hand: 1.5x quotes for long and short on SOL-PERP and BTC-PERP, and dry-run opens of $600 at 1.5x that simulated cleanly (SOL 89k CU, BTC 95k CU). The venue refuses leverage at or below 1.0, so the worker floors the request at 1.1x (notional unchanged). Collateral is funded by the executor (15:4xZ): before an open, first send or queued retry, the worker withdraws the collateral (notional over the signer leverage plus a 0.2 % fee buffer, plus the funding cushion) from lending over the float floor, waits for the wallet to settle and then posts the request; a leg that cannot be funded fails the row with the reason, and the plan is kept in the row's quote.funding. This runs for dry runs too, so the simulation runs against a funded wallet (the $1,000 smoke run before it failed on "insufficient funds"); the repark returns the money once the simulated row is done.

Funding source rule (owner, 2026-10-03: "funding always picks the lower APR"): every executor-side USDC funding leg, LP openings and futures collateral alike, draws from the lowest-APY lending position that covers the whole ask, falling back to the largest position when none covers it alone; the journal line names the source and its APY. Money leaves the home that earns least.

The wire on the page: the worker writes accum_futures_wire (signer switches read from /v1/status, registry switches, collateral source and float) at most once a minute when something changes; /v1/desk/futures returns it as live.wire, and the Futures overview's live card shows it as badges in the order money travels. Going live is two owner switches: chart solanaExec.futures.dryRunOnly: "0" and the futures.live.dry_run pin to false.

Live mode (2026-10-05)​

The owner armed live futures on 2026-10-05: solanaExec.futures.dryRunOnly: "0" in gitops (the signer's interlock, rolled first), then the pins futures.mode = live, futures.live.dry_run = false, hedge.lp.enabled = true and mm.enabled = true. Under live mode:

  • the paper ledger is retired: every open paper row is closed at the index with reason mode_live on the next execute sweep, and the officer's accepted opens become live rows; the paper history stays readable on the Positions page's Paper tab;
  • NAV counts the collateral: treasury/nav.rs reads /v1/futures/positions and writes one futures component per open position (collateral + unrealised P&L − accrued borrow fee, venue jupiter_perps:<market>:<side>); a 503 from the signer is an empty known plane, a failed read an unknown component. Before this line a live open read as NAV leaving the book (the collateral had left lending and the wallet). The first open on 2026-10-05 13:18Z therefore shows as a −$5.6k unexplained P&L period followed by a +$5.6k one when the line appeared; the ledger nets to zero over the window. Core's homes gains futures;
  • the Futures pages lead with the live book: the tiles read the live_pnl field of GET /v1/desk/futures, the Live card stands alone, hedge coverage counts filled live rows, the Positions page opens on Live.

Delta-neutral LP hedge (2026-10-05)​

The LP book holds SOL inside every SOL/USDC range. With hedge.lp.enabled the worker keeps a SOL-PERP short sized to that SOL (hedge.lp.target_frac of it; hedge.lp.include_held_coin adds the wallet SOL and JitoSOL) through the live futures path, so it is simulated while futures.live.dry_run is true, collateral is funded from lending like any open, the signer's limits apply and the stop watcher watches the legs. The controller (mob_jobs/lp_hedge.rs, once a minute inside the execute sweep):

  • reads the LP positions' coin_ui and the oracle index, the open hedge legs (live rows whose id starts with hedge:lp:), the LP book's measured fee carry (accum_realized_carry, trailing 7 d) and the signer's quote fees;
  • holds the hedge only while lp fee APR − hedge cost APR ≥ hedge.lp.min_net_apr_pct, where the LP fee APR is the pool-ledger trailing-7d rate (collected fees over position dollar-time, lp_accounting.realized.trailing_7d) since 2026-10-15; the realized-carry collection windows are reported beside it as timing evidence, never as the base (rule hedge.lp.economics), where the cost is the venue's borrow fee (borrow_hourly_bps × 24 × 365, about 5.9 % on 2026-10-05) plus open and close fees (6 + 6 bps) amortised over 30 days. Jupiter Perps never pays a short funding, so this is a cost-aware hedge, not a funding arbitrage;
  • resizes on drift beyond max(hedge.lp.rebalance_min_usd, hedge.lp.rebalance_min_frac × target) after hedge.lp.cooldown_mins, opening one leg at a time (≤ futures.live.max_notional_usd) or closing whole legs largest-first without overshooting; the total stays under hedge.lp.max_notional_usd and futures.max_notional_frac × NAV;
  • writes accum_lp_hedge on every action and every 10 minutes, pages the hygiene channel on actions (🛡 LP HEDGE), and the comparator carries the reading as candidate_homes.lp_hedge (delta, target, legs, net carry).

P&L for the live book (2026-10-06): a fill journals the collateral it posted (futures_collateral_post) and a close the collateral it returned (futures_collateral_return); each period books futures:<venue> = Δ(the futures NAV line) − posted + returned under the market group, so the hedge's mark-to-market sits next to market:SOL instead of reading as ±collateral unexplained at every open and close. A period ending on an incomplete snapshot (unknown components) is skipped, and the one after it starts from the last complete snapshot. hedge.lp.leg_usd caps each hedge leg (Balanced $4 000) so the hedge can shrink leg by leg through partial closes.

On-chain SL/TP (2026-10-06, futures.live.onchain_triggers, on by default): every filled live position gets its stop as a Jupiter trigger request (POST /v1/futures/trigger, kind sl) that the venue's keepers execute when the oracle crosses it, and a lone leg gets its take-profit (tp) too — the position is protected while the worker is down; the worker's watcher (futures.live.stop_watcher) stays as backup. A trigger closes the entire venue position, so legs sharing one carry the stop that fires first (lowest for a short, highest for a long), owned by that leg; placements and refusals are recorded under the row's quote.triggers and shown in the Live table ("On-chain SL/TP") and the row drawer; a request the venue does not list is retried after ten minutes. The signer refuses a stop on the wrong side of the mark (an SL on a short must sit above it). A trigger no leg wants any more — the stop a closed leg left behind, or a TP on a position that has since gained a second leg — is cancelled by the leg owning the stop (POST /v1/futures/trigger/cancel {request_pda}: close_position_request2 with the keeper slot empty and the owner signing — a trader in the keeper slot is refused InvalidKeeper), one per position per sweep and never while the wanted stop itself is missing from the venue; attempts live under quote.triggers.cancelled and retry after ten minutes. Every leg also carries the venue's pending triggers (quote.venue_triggers) and the venue's average entry (quote.venue_entry_price): a leg's own entry_price is the signer's estimate at request time, so the Live table shows the venue average with the estimate beneath it. A directional desk leg that shares the hedge's account (a same-market, same-side open — the owner allowed it on 2026-10-07) never sets the account's on-chain stop: the candidates are the hedge legs' stops only, so a desk short's 5 % stop cannot close the hedge on a bounce; the desk leg's stop is the worker's watcher, closing that leg alone (size_usd), and its row says so under quote.triggers.watcher_only. An account with desk legs only keeps the tightest desk stop on-chain. The open Live table folds rows by venue position (a "position" row with total notional, venue entry, summed unrealised, tightest stop and the pending on-chain triggers, legs beneath) and an Origin column says whether the LP hedge or the desk's decision opened each row, so a directional desk position reads apart from hedge legs.

Jupiter keeps one position per market and side, so every hedge leg shares one venue position: the venue's unrealised is the whole position's, so a leg takes its notional share of it, and a leg that shares the position closes with size_usd = its notional (a partial close; an entire close would take every other leg off-chain, which happened twice on 2026-10-06 before the fix). Two more live-path rules learned on 2026-10-05: the slippage bound a live open sends is futures.live.max_slippage_bps (the goal the signer enforces), and a queued open whose collateral funding leg the wallet never shows for ten minutes is abandoned (quote.funding.first_waiting_at) so a fresh leg funds anew — a refused open leaves its collateral in the wallet for the float hygiene to repark, and the journal holds the funding intent as sent.

Surfaces: the Futures overview's "Delta-neutral LP hedge" card, the "LP hedge" tile in What the AI may use, the hedge field of GET /v1/desk/futures, the assistant's desk_futures. The desk enables or sizes it through hedge.* goals in goals[], never through futures_plan rows (seed rule hedge.lp.delta). cbBTC ranges are reported as unhedged until BTC-PERP sizing is added.

GoalKindBalancedMeaning
hedge.lp.enabledboolfalsethe switch (every level starts off)
hedge.lp.target_fracfrac1.0share of the LP SOL delta to hedge
hedge.lp.include_held_coinboolfalsealso hedge wallet SOL + JitoSOL
hedge.lp.leverage×2.0hedge leverage (collateral = notional / leverage)
hedge.lp.rebalance_min_fracfrac0.10drift band as a share of the target
hedge.lp.rebalance_min_usdusd250smallest leg opened or closed
hedge.lp.cooldown_minsmin30minimum minutes between resizes
hedge.lp.min_net_apr_pctpct3hold the hedge only above this net carry
hedge.lp.leg_usdusd4 000largest single hedge leg
hedge.lp.max_notional_usdusd20 000ceiling on the total hedge

Market making (2026-10-05)​

A two-sided quote around the oracle mid on mm.pair (SOL/USDC by default): a bid mm.half_spread_bps under the mid and an ask the same above, each worth mm.quote_usd, leaning toward flat as inventory builds (mm.inventory_skew_bps at mm.max_inventory_usd). The controller (mob_jobs/market_maker.rs, once a minute inside the execute sweep):

  • paper (mm.mode = paper, the default): a quote fills when the oracle mid crosses it, at the quote's own price, charged mm.fee_bps; the ledger (inventory, average cost, cash, realised and unrealised P&L, fees, volume, fills) lives in the accum_mm digest. Nothing is sent;
  • live (mm.mode = live): the same quotes rest as Jupiter Trigger orders through the signer (POST /v1/orders/create, meta.kind mm_bid / mm_ask, cancelled with /v1/orders/cancel); a live order that leaves the signer's open list without our cancel is booked as a fill at its price. Live needs tools.swing.enabled (the order route) and asks also need mm.live.asks_auto, the market-making counterpart of every sell paging the operator; until then live rests bids only. Fills and drops are read from the signer's trade ledger (/v1/sleeve.recent_trades: filled / cancelled / expired), the open-orders list only backing it up for a row the ledger no longer lists and never for a quote younger than two minutes; a live bid is funded from lending above safety.float_floor_usd like an LP entry; a decision's order_plan never cancels an mm_* quote;
  • the ask sells only inventory the engine bought, never under its average cost plus two fees (the exec's no-loss sale gate, mirrored for paper), so the accumulation inventory is never touched; once the remainder would be dust the ask works the whole inventory down;
  • one signer action per sweep (the worker's send path defers a second transaction until the first is final), in priority: pull a quote that no longer belongs, move a side whose own price drifted mm.requote_bps from its target after mm.requote_cooldown_secs, rest the missing ask, rest the missing bid. Each side is judged on its own price, so an ask pinned above its cost is never cancelled because the bid moved;
  • after a buy fill the bid stays off for mm.refill_cooldown_secs while the ask keeps working (the first live hour bought three times in forty minutes of a falling tape); the inventory skew presets are 50–120 bps at the cap for the same reason (Balanced 80);
  • quotes are pulled under a blackout, when mm.enabled goes false, or when half spread − fee < mm.min_net_edge_bps; the ledger's transient states (reconciliation_required, placing) count as resting, only cancelled/expired/failed/discarded as gone, and a resting mm_* order no slot holds is adopted or cancelled so quotes never stack;
  • the ledger belongs to one mode: switching paper ↔ live starts it fresh;
  • the digest is written on every fill, re-quote or pull and every 10 minutes; fills and pulls page the hygiene channel (📐 MARKET MAKER).

capture_bps (realised P&L over all volume) is the honest number: Solana limit orders earn no maker rebate, so the engine keeps the spread it captures minus the trigger fee. The comparator carries the reading as candidate_homes.market_making (seed rule mm.scope) so the desk weighs it per dollar of inventory cap against lending and LP.

Surfaces: the Orders page's "Market making" card (quotes, inventory bar, P&L, capture, last fills), the "Market making" tile in What the AI may use, GET /v1/desk/mm (reading + the mm.* goals in force), the assistant's desk_mm.

GoalKindBalancedMeaning
mm.enabledboolfalsethe switch (every level starts off)
mm.modeenumpaperpaper (simulated fills) or live (trigger orders)
mm.pairenumSOL/USDCthe pair quoted (or CBBTC/USDC)
mm.half_spread_bpsbps25each quote's distance from the mid
mm.quote_usdusd200size of each side
mm.max_inventory_usdusd2 000bidding stops at this much inventory
mm.inventory_skew_bpsbps80lean toward selling at full inventory (presets 120/100/80/60/50 by risk level)
mm.requote_bpsbps10drift that triggers a re-quote
mm.requote_cooldown_secss90minimum gap between re-quotes
mm.fee_bpsbps10fee charged per fill (paper) and the ask floor
mm.min_net_edge_bpsbps5pull quotes under this half spread − fee
mm.live.asks_autoboolfalselive asks without approval
mm.refill_cooldown_secss900bid off for this long after a buy fill
mm.bid.policy_readybooltruebids rest (since 2026-10-12: the receipt migration is verified; the desk may set false to hold bids)
mm.inventory.max_hold_hoursh72inventory still under its average cost this long after the last fill is released to the treasury at mark — realised takes the mark-to-market result, the coin stays in the wallet for the desk to place, transferred_out_usd keeps total P&L whole (presets 24/48/72/96/120; 0 = never)

Prediction markets (2026-10-05)​

Jupiter Prediction markets as a trading primitive: the signer's /v1/prediction/* routes, the worker's prediction.* controller (the desk's own lognormal probability against the contract price, fractional Kelly stakes, paper first), the Predictions page, GET /v1/desk/prediction, desk_prediction and candidate_homes.prediction. The full description, goals table and the turn-on steps (a JUPITER_API_KEY first) are in Prediction markets.

Ladder execution authority (2026-10-12)​

A price trigger is not spending authority: the signer fills an armed rung only when the risk authority it reads from GET /v1/desk/budget carries ladder_execution.approval.rungs[] naming the rung with a budget at least the rung's, inside the approving decision's validity (ladder.execution.max_validity_secs, at most ladder.execution.max_tranches_per_cycle new rungs per decision).

Until 2026-10-12 only the latest decision's block was served, so a rung kept its authority for one hour at a time and lost it the first hour the officer did not re-list it; SOL fell through all five SOL rungs while every hourly decision renewed only two idle BTC rungs, and nothing filled.

ladder.execution.standing_hours (owner-only; 0 / 12 / 24 / 24 / 24 h by level) makes an approval stand: a rung approved by any accepted decision inside that window keeps its authority until a later decision reprices it (ladder_proposal.changes[] naming the rung) or approves a different budget for it. Core merges the standing rungs into the latest decision's block (apps/nexus-core/src/ladder_authority.rs) and raises the served max_tranches by the carried count, so the per-decision bound still limits new approvals only; the signer is unchanged. The served block lists the carried rungs under standing.carried. The desk's rule ladder.standing_authority (owner-pinned) tells the officer that to stop a rung it must reprice or cancel it, not omit it.

A held rung is a limit at its trigger, not a market order. The signer arms a rung when the index sits at or under its trigger for the confirm window and, by design, an armed rung "fires regardless of subsequent bounce" — written for a fill that follows arming within seconds. With a budget hold that can last hours, that read as: B2 armed at 81,687 during the night of 2026-10-12, waited 18 h for budget, and filled at 83,060 (+1.7 %) the minute standing authority covered it. Since 2026-10-13 the signer fires a rung whose budget just cleared only while the index is at most ladder.execution.fill_tolerance_frac above its trigger (owner-only; 0.25 / 0.5 / 0.5 / 0.75 / 1 % by level, served as ladder_execution.fill_tolerance_frac); above it the rung stays armed with the hold reason index … above trigger … on /v1/ladder and fires on the next return to the trigger. The index suspended never fills.

The cycle defines the legs (2026-10-15)​

Until 2026-10-15 rung triggers came from a static configuration and could only be moved by the cross-cycle consensus vote (ladder_proposal.changes[] plus analysis and dream agreement), and only idle rungs could move: the SOL rungs laid at $118–112 when SOL was $120 stayed there, armed, as SOL fell to $102 — above the market, where a buy rung is a market order.

Now each decision lays the ladder it wants: ladder_proposal.layout names, per asset, every rung that should exist with depth_pct under the index (or an absolute trigger) and budget_usdc. The worker turns it into POST /v1/ladder/relayout on the signer: rungs not named are cancelled (through the outbox-aware cancel, so a claimed row keeps its rung), named live rungs are re-laid (an armed rung loses its arm and must cross again), new ids are added; fired and cancelled ids are consumed. The signer refuses the whole layout when any row breaks the envelope: ladder.min_discount_frac under the index, strictly descending, at most ladder.layout.max_rungs, at most ladder.layout.max_total_usd in budget (both owner-only, served to the signer). A layout that already matches the live ladder within ladder.reprice.min_move_frac is a no-op; ladder.reprice.cooldown_secs applies per asset; ladder.auto_apply false holds it. A layout ends the standing authority of every rung on that asset (they are re-laid or cancelled). The consensus vote remains for raises through changes[]. The rule ladder.layout tells the officer how to lay it.

Reporting baseline​

POST /v1/desk/nav/baseline records an immutable starting snapshot for the owner's new reporting period. It requires no in-flight wallet requests and a snapshot less than 15 minutes old with all strategy components priced. Repeating the request returns the existing baseline. GET /v1/desk/nav includes reporting_baseline: starting/current NAV, capital-flow-adjusted change and rebased time-weighted return. New unknown components, unverified flows, backdated historical adjustments or a new coverage boundary withhold the period's performance figures.

The portfolio opens on this baseline when present. Inception metrics remain in a separate historical audit. Original transactions, lots, snapshots and risk high-water marks are preserved; starting a reporting period does not resolve an execution mismatch or relabel historical accounting gaps as profit.

API​

RouteWhat
GET /v1/desk/goalssettings, desk score, open challenges and ideas, every goal
GET /v1/desk/goals/{key}one goal with its events
POST /v1/desk/goals {key, definition, note}create an active, unpinned custom strategy goal
PUT /v1/desk/goals/{key}/definition {definition, note, expected_version}edit a custom definition, preserving accepted value authority
POST /v1/desk/goals/{key}/lifecycle {op, note, expected_version}op is retire or reactivate; custom goals only
PUT /v1/desk/goals/{key}/override {level? | value?, note} · DELETE …/overridepin / clear (operator)
POST /v1/desk/goals/{key}/challenge {accept}answer the AI's challenge (operator)
PUT /v1/desk/goals/settings {global_level}the global level; every goal is re-resolved (operator)
GET /v1/desk/goals/events?key=&limit=history
GET /v1/desk/goals/effectivethe flat map the worker and the signer read
GET /v1/desk/ideas · POST /v1/desk/ideas · POST /v1/desk/ideas/{id}/closethe ideas channel
GET /v1/desk/futuresmode, gates, paper positions, P&L
GET /v1/desk/futures/opportunitiesevery asset × horizon candidate from the two newest briefs and the worker's directional record (scored over horizon × (futures.min_independent_windows + 1), at most 30 days, with issue times; each candidate carries independent_windows — issues at least one horizon apart — and is blocked by futures.min_independent_windows below the goal, plus book (held coin, hedged shorts, net delta before and after the maximum open, the largest short that keeps net delta non-negative) and take_profit_est from futures.take_profit_frac; since 2026-10-15, after a four-day fall produced no directional leg because twelve hourly 1-day calls counted as ~1.2 independent windows) (accum_forecast_scores, since 2026-10-15: a short is judged on resolved down calls, a long on resolved up calls, a hit is a move beyond forecast.directional_deadband_frac in the called direction, flat calls are excluded; hit_rates_scoring names the version; the dream's pooled tally is the fallback): qualifies / blocked_by, sizing, evidence
GET /v1/desk/futures/history?days=mark history, realized closes, equity curve

The catalogue​

Use GET /v1/desk/goals or /trading/goals/catalogue for current definitions, effective values, domains and histories. A static table of preset envelopes would misrepresent the dynamic authority.

Policy familyExamples
Execution limitssafety.exec.max_action_usd, safety.exec.max_daily_usd, depeg and slippage controls
Approval and loss policysafety.sells_page_operator, safety.no_loss_sale
AllocationSOL/BTC exposure, protocol concentration, LP tranche and liquid reserve
Staking prioritystaking.require_lp_refusals; true requires machine-recorded LP refusals, false lets the desk choose staking directly
Lending churnRecall confirmation and observation gap, minimum move, liquidity multiples, rotation and repark cooldowns
Ladder churnReprice minimum move, cooldown, consensus window and required desk votes
Tools and futuresEnabled venues, paper/live mode, notional, leverage, qualification and stop policy
Rules registry hygienerules.flag_escalate_after, rules.flag_ttl_hours, rules.stale_after_hours, rules.stale_page_per_decision — the clocks of the rules feedback loop (since 2026-10-05)

The rules group (2026-10-05, P3, worker scope, AI-editable) is read by the worker's rule-flags job only; the prompt sees the resulting rows, not the numbers. Balanced bootstrap values and declared domains, as seeded — the live effective values are on the catalogue page:

GoalKindBalanced bootstrap · domainMeaning
rules.flag_escalate_aftercount2 · 0–48a rule flag (dream, brief or execution objection) unanswered by the officer for this many decisions is paged to the owner as a retire proposal; 0 disables escalation
rules.flag_ttl_hoursh72 · 6–720an open rule flag older than this expires unanswered (it stays in the history)
rules.stale_after_hoursh168 · 0–8760an active, unpinned rule that no cycle has cited for this long after it was written is put to the owner as a retire proposal; 0 disables the sweep
rules.stale_page_per_decisioncount2 · 0–20at most this many never-cited rules are put to the owner per decision, oldest first

Counts and durations must be representable nonnegative integers; fractions stay within their mathematical domain. Zero-valued financial limits remain explicit policy, including a zero spending cap that holds new spending. Unsupported instruments or venues do not become executable merely because a narrative rule mentions them.