Portfolio console
Nexus is an AI portfolio management platform. Its operating loop observes markets, analyses the regime, decides allocations within the mandate, executes on-chain actions, and reviews outcomes. The console is organized around that loop and the capital it manages.
The AI portfolio autopilot defines the owner's target:
the AI handles routine decisions and actions, while the operator approves or
rejects exceptions. The implementation now includes a shared treasury inbox at
/trading/goals/inbox, a pending-count badge, goal challenges and actual Solana
signer pause/resume controls. Telegram uses the same Core routes and records.
These features require their corresponding release; local implementation does
not establish production acceptance. The
2026-10-03 review remains the baseline.
Main navigation
There are 11 primary destinations and eight supporting screens. / opens
Portfolio; the former /treasury address also forwards there.
| Area | Page | What you manage or inspect |
|---|---|---|
| Portfolio | Overview & performance | NAV, exposure, earning positions, returns, benchmarks, P&L attribution, accounting coverage and external capital flows |
| Portfolio | Wallets | Squads custody and execution-wallet balances, addresses, reconciliation time, gas and working reserves |
| Portfolio | Strategy & guardrails | Standing AI mandate, sleeve targets, exposure limits, reserves and live ladder |
| On-chain tools | Liquidity pools | Your LP positions, ranges, fee income, pool and vault catalogs |
| On-chain tools | Lending | Your supplied positions, owner, venue, APY, and ranked lending markets |
| On-chain tools | Orders & swaps | Resting limit orders, account verification, recorded portfolio movements, conversion evidence and transaction links |
| AI & operations | Analysis & decisions | Analysis briefs, thesis, dream review, standing decisions and proposed order plan |
| AI & operations | AI cycles | Persisted output freshness, cycle health, degraded specialists and flow status |
| AI & operations | Decision timeline | The three desk cycles over NAV with the regime in force, each decision's goals and next steps per sleeve, its horizon, the executor's verdict, capital by home against what it earns, and links to the full LLM traces |
| AI & operations | Market data | Market observations and their history |
| AI & operations | Execution health | Execution readiness, arming state, price guards, reconciliation and ladder state |
| AI & operations | Settings | Models and reasoning settings used by portfolio cycles, plus AI usage |
Supporting pages are contextual links, not another long sidebar:
- AI cycles: schedules, job history and learning.
- Market data: data health, feature inspector and managed market scope.
- Execution health: custody and spending-limit ceremony.
- Settings: platform logs.
Page search includes both the main destinations and the supporting screens.
Decision timeline (/trading/timeline)
Added 2026-10-02 (nexus-ui 7e4130d, nexus-core d2a4d49). The desk runs
three cycles. At the 2026-10-03 live review, the analysis desk ran every
30 minutes (five
specialists, a challenger and a thesis officer), the dream judge scores the
earlier briefs every two hours, and the decision officer turns the
newest brief into one executable JSON every hour (plus a regime-flip
trigger). Read actual due times from persisted schedules. Decisions set goals;
the continuous 15-second action controller and 30-minute recovery sweep carry
accepted, valid plans forward. A dispatched cycle is not necessarily an
accepted decision or a confirmed transaction.
The page reads one route, GET /v1/desk/cycles?hours=24 (12 h to 7 d), and
shows:
- Cycles over NAV. The NAV line (USDT, one axis) with the regime each accepted decision put in force as a band (climb / chop / fall — a refused decision changes nothing and starts no band), and three lanes of marks: analysis brief, dream, decision (filled = accepted, hollow red = refused by the contract). The executor's notice is a tick after the decision; regime flips and applied ladder moves sit on the decision lane. Click a decision to open it; hover for the NAV and the nearest event.
- Where the capital sits, and what it earns. Capital by home across the
window (LP ranges, Kamino lending, JitoSOL, wallet SOL + WSOL, cbBTC,
stables, escrow / CEX) and, at the selected decision, each home's share, the
rate the desk itself quoted that cycle (capital-weighted measured pool APR
from
lp_plan, the lending APY the officer wrote, JitoSOL at 7 %) and the dollars per day it implies. The last line prices the idle homes (wallet coin, cbBTC, stables) at the measured pool APR: that is the owner's "why Kamino and not the pools" figure, per cycle. All gross, before divergence loss, fees, slippage and rent — the same caveat the officer states. - The decision as goals and next steps. One card per sleeve — ladder rungs, Kamino lending, LP positions, SOL / WSOL reserve and exposure, JitoSOL, swing orders — each with the goal the mandate sets, the actual at that decision's NAV point (target marker on a bar when the goal is a fraction of NAV), the next step this cycle (an order, a supply / withdraw, an LP open / close, a rung move) or why there is none, and the officer's own reasoning behind a toggle. "Acts this cycle" marks a sleeve with an executable row.
- Short / mid / long term. From the brief's
forecasts[](1d→ short,1w→ mid,1m→ long; "no forecast issued" when the brief gave none), the mandate regime and the first invalidation line (the review rule for the coming hour), the thesis stance and target probabilities, the scenarios, the 24 h posture per asset and phase, and the standing targets (held-coin fractions, the ladder as the accumulation plan with its unspent budget and rung distances). - Invalidation and working notes, collapsible, and the executor's verdict
line (
book already matches the plan — nothing to do, or the actions). - Full LLM input / output. Each cycle links to its Langfuse session —
cycle:acc-<snapshot>for a brief,cycle:dream-<id>,cycle:decision-<id>— where every member turn's prompt and answer is kept. The link base iscore.langfusePublicUrlin the chart (NEXUS_LANGFUSE_PUBLIC_URL); the project id is resolved through the Langfuse API once an hour. Without the value the page shows "no trace" instead of a dead link. Langfuse truncates inputs at 200 000 characters, so the decision officer's prompt (≈ 327 k before the 2026-10-02 trims) shows only its first part there.
Prompt budget
Added 2026-10-02 (uncommitted at the time of writing: nexus-worker
accum_prompt_sizes, nexus-core ?usage=1 and /v1/desk/cycles/usage,
nexus-ui PromptBudget). The owner runs the desk on two subscriptions (Claude
and ChatGPT) that renew weekly, and the provider-usage job moves routing
between them when a window runs low — so the section shows what every cycle
cost and what it was fed, to trim inputs without losing a feature.
- This week. Tokens (input + output) so far in the current week by
provider (Claude, ChatGPT / Codex, all), last week's total, and the projected
week-end: so far + daily rate × days left, where the rate is week-to-date
tokens over the elapsed days (last week's daily mean while less than one day
of the week has passed). Weeks run Monday 00:00 UTC — the subscriptions'
own windows reset on their own clock and are on
/trading/providers, linked from the strip; this page does not duplicate them. - Input tokens per cycle, by member. One horizontal stacked bar per analysis / dream / decision in the window, newest first, on one shared token axis: each segment is a member's input tokens in that cycle's Langfuse session, in a fixed order and fixed color (Flow, Narrative, Structure and Venue Analyst, Challenger, Thesis Officer, Dream Judge, Decision Officer; anything else is "other"). Hover a segment for model, route, input share, output tokens and duration; click a decision row to open it. The mean input per cycle kind is shown above — the decision, one ~80 k-token turn, is the heaviest single call. A cycle whose session Langfuse cannot serve shows the error in place of its bar.
- What the decision was fed, and its brief. For the selected decision
and the brief it followed, the flow params the worker sent —
briefs,portfolio_state,theses,lending,spot, … — with characters, estimated tokens and share of the prompt, heaviest first. This is the table to read before trimming a block. "Joined by time" marks an audit matched by dispatch time because the cycle had no health record.
Two token figures, on purpose:
- est tokens = characters / 4, the worker's count over the flow params only (the same estimate the host uses). It excludes the flow template and each member's soul, and an analysis param is read by several members, so the Langfuse figure runs higher.
- Langfuse tokens are the provider's own count per generation, read from
Langfuse's metrics API (
mob-turn · <Member> · <route>traces of the sessioncycle:<snapshot_id>). Core caches each settled session for 24 h (at most 2 000), so the page's refresh does not re-query Langfuse.
Langfuse truncates stored inputs at 200 000 characters: the trace of a large decision prompt shows only its first part, but its token count is the provider's for the whole prompt, and the input audit counts every param in full.
The audit is an operator_digests row of kind accum_prompt_sizes written at
every dispatch of the three flows (the prompt input sizes log line stays):
{"cycle": "accum-cycle" | "accum-dream" | "accum-decision",
"snapshot_id": "acc-…" | "dream-…" | "decision-…",
"at": "<RFC 3339 dispatch time>",
"params": {"<param>": {"chars": 0, "est_tokens": 0}},
"total_chars": 0, "est_tokens": 0}
Core joins it to a cycle by snapshot_id (the health record's session),
falling back to the nearest same-flow dispatch up to 45 min before the
cycle's anchor row.
What the page cannot show is also stated on it: a rate the desk did not quote that cycle reads "n/a", and a window with no NAV snapshots draws nothing rather than a flat line.
Daily workflow
- Start with Portfolio: check NAV freshness, incomplete sources, earning positions, returns and any accounting disputes.
- Review Strategy & guardrails and Analysis & decisions to understand the mandate and the rationale for the next allocation.
- Inspect LP positions, lending, and Orders & swaps to see where the capital sits and what movements were recorded.
- Check AI cycles and Execution health if the expected action or output is missing. Use the contextual schedule, job-history, market-data and log views to investigate.
- Use Settings to change cycle models. Use custody controls when the spending authorization needs to change.
The UI continues to use the existing execution and authorization paths. The portfolio refocus does not add a direct swap, supply, LP or limit-order mutation button or broaden the Solana proxy's write allowlist. Strategy and execution status screens describe the existing AI-managed process. Some controls, such as arming and deployment-level limits, remain managed through the established operator/GitOps workflow.
Reading orders and activity correctly
Open orders come from /api/solana/exec/v1/orders/open. Account verification
means the order account was found on-chain; it is not evidence that an order
filled. Amounts are displayed exactly as reported. This endpoint does not supply
a token-precision contract, so the page does not infer a converted limit price
or dollar value from those fields.
Portfolio activity comes from /api/nexus/v1/desk/pnl/flows?limit=200 and
shows the latest 200 recorded movements. This is a bounded portfolio ledger,
not an exhaustive wallet transaction index. Swaps are represented by ladder
and swing movement kinds (ladder_fire, swing_buy, swing_sell), not a
fictional swap kind. A swing movement may record placement rather than a fill;
read its evidence and note. Liquidity and lending filters use their own kinds.
Conversion legs have explicit evidence:
exec_fill: reported fill.exec_quote: quoted output, not a realized fill.derived: amount derived from balances.- Missing provenance: fill detail unavailable.
Transaction links are shown only when a transaction signature is present. Missing quantities and wallet snapshots remain unavailable; a reported zero balance is rendered as zero.
Swing orders and results
Orders & swaps shows buy/sell direction and links between entry and exit orders. The swing table includes the latest 30 ledger orders, including filled and cancelled entries. Sell orders can link to multiple entry lots. Order links open their on-chain accounts.
Realized profit is matched by buy/sell order ID against the portfolio accounting snapshot. It is expressed in USDC and includes the close date. Missing results stay unavailable; unknown fees and disputed accounting are explicitly marked. The same round-trip result can appear on both linked legs: do not sum the rows. Planned exit prices are targets, not realized profit.
What was removed
The console no longer includes the general-purpose software-agent builder, manual skill/memory editors, project boards/Kanban, task goals, software-action approvals, host/mob/registry administration, duplicate run history, or static integration/Telegram reference screens. Their old URLs redirect to Portfolio. The generic fleet dashboard is replaced by the portfolio entry point.
The former combined exchange/futures screen is replaced with the dedicated on-chain wallet and order views. Accounting remains authoritative: if the NAV backend includes exchange holdings in its inclusion map, those components still appear in Portfolio. Hiding an asset from the total would change the accounting scope; this UI change does not do that.
Underlying runtime services, historical records, account credentials and scheduled jobs are preserved. The AI still depends on hosts, versioned skills, knowledge and execution services; removing their generic UI editors does not remove those runtime capabilities. Existing task-type schedules can still be seen for operational continuity, but new UI-created schedules are engine jobs.
Validation
The refocus retains the NAV/P&L tests and adds checks for missing values, the actual movement kinds, quote-versus-fill evidence and unknown asset labels. Browser checks cover primary and supporting routes, legacy redirects, context navigation, and populated wallet/order/lending examples. Test fixtures are synthetic and never trigger production transactions.
The earlier visual audit documents the design foundation and historical 35-route inventory. Its navigation screenshots and inventory precede this portfolio-only refocus.
Ladder votes and dream output health
Repricing requires at least two analysis votes, a dream vote, and a decision proposal with explicit prices within the configured 24-hour window. The voters do not need identical prices: the decision officer supplies the executable numbers. “Dream no” means no qualifying structured vote was recorded; it does not prove the dream's written opinion was against the move.
The September 27 incident produced readable dream reports with a missing final
JSON root brace. Their positive votes were not persisted, while text-only cycle
health appeared successful. The host now validates the complete dream object
before considering its final step healthy. It can append one missing outer
brace only when every nested structure and string is already complete and
the resulting object passes validation. The vote and prices are never invented
or modified. Repairs are recorded as accum_dream_repaired; other invalid
outputs are recorded as accum_dream_rejected and mark the cycle degraded.
Historical reports are not replayed automatically. The optional
rule_flags[] array the dream carries since 2026-10-05 is sanitised, not
validated: rows of the wrong shape are dropped and the dream keeps its vote
(Decision rules → rule flags).
Analysis and dream prompts now state the production ladder constraints: triggers at least 5% below the live oracle index, at most 95% upward repricing per call, no increased total budget, descending rungs, and repriceable state. An unavailable/suspended index cannot be replaced by a portfolio valuation mark to certify execution eligibility. Shallow 1–2% pullback zones do not fit this ladder contract. These are existing execution limits, not relaxed by the fix.
Rung firing (2026-10-07). A rung fires on the signer's own path (the
outbox is off in prod, one attempt per arming). When the float is short of
the rung's budget the signer recalls lending first: since 2026-10-07 only the
shortfall (+1 % and $25) from the home Kamino reserve when it holds that
much, withdraw-all otherwise, and it polls /v1/reconcile until the float
covers the budget before the swap is simulated (the 02:04Z rung simulated
one second after a $54 038 withdraw-all and failed on the un-credited
float; two others failed on the self-hosted Jupiter router). A rung whose
swap fails before anything is sent goes back to idle with a cooldown
(10 min, doubling per consecutive failure, two hours at most; a rung that
arms inside its cooldown is released again without touching the chain), and
at start-up every rung hydrated firing whose journal row already failed
without a signature is released the same way — before that fix three rungs
sat firing ("capital in flight") for five hours with no operator route to
clear them, and the first fix cancelled them for good (cancelled is terminal
and cannot be repriced). POST /v1/ladder/rungs/{id}/revive brings a
cancelled rung back to idle. The Ladder page (/trading/ladder, also
linked from the Portfolio header) shows every rung with its trigger, budget,
coins at the trigger, distance from spot, the next staged move and the
state in its own words (fill, cancel reason, since when), and marks the
next rung to buy.
Wallet coverage and accounting quality
Wallets reports native SOL and wrapped SOL separately. Both are valued at the SOL mark and included once in portfolio NAV and SOL exposure; only native SOL is available for the gas reserve. A wrapped balance does not mean funds were lost or transferred. Restoring visibility does not unwrap or move tokens.
The lending table filters the execution service's combined positions response: LP positions appear on Liquidity, not as blank lending balances.
For partial swing sales, displayed cost is the cost of the filled portion. Execution-reported profit is net proceeds minus that cost; reported fees remain visible separately and are not subtracted a second time. Missing historical fee evidence remains marked unknown.
Snapshots written before wrapped-SOL coverage can understate NAV. The first complete snapshot is a coverage boundary, not proof of a new deposit. Returns whose baseline crosses that boundary are unavailable pending historical reconciliation. Unconfirmed flows and unexplained amounts remain disclosed; they are not automatically accepted as withdrawals or erased.
Portfolio budget checks remain log-only in production: exposure and liquidity figures are advisory, with no new portfolio cap enforcement. Negative headroom after reservations is not a missing-cash balance. Existing transaction and oracle safety checks continue independently.
Oracle and certificate operations
The price plane reads Pyth accounts at confirmed commitment. Finalized reads add chain finalization delay to sponsored-feed updates and can spuriously trip the freshness gate near an update boundary. The 60-second freshness limit, confidence and divergence checks are unchanged; a genuinely stale feed still suspends execution.
HTTP-01 certificate renewal requires ingress-controller access to cert-manager solver pods on TCP 8089. The dedicated solver NetworkPolicy grants that path without changing the namespace default deny or signer access.
Cycle freshness and the host probe
Before dispatching a cycle the worker asks the desk host whether a flow is
still in flight (GET /running). The host answers from an in-flight map it
maintains as flows start and reach their terminal state, in constant time;
it no longer lists every run of the pod's life through the store. The
worker's probe has the watchdog's 20-second budget, and a probe that fails
defers the cycle by 30 seconds instead of failing the job. Until 30
September a probe that had grown past 5 seconds, about 3.5 hours after each
host restart, lost every cycle as "stale" whichever model was selected; a
model switch that coincided with such a window read as a provider fault.
When cycles stall, time /running against /health from inside the
cluster before changing the model routing.
A member turn sends the CLI only the current cycle's prompt: the soul and
the messages from the latest step prompt onward, never the session's
earlier turns. Every input a step needs — the score, the briefs, the prior
digests, the officer's own prior decisions — arrives as fresh parameters in
that prompt, so the history was pure repetition: until 30 September the
last cycles of each 6-hour window re-sent up to 1.5 million tokens of it
per analyst on whichever subscription ran the step. The host logs each
turn's prompt size, approximate tokens and the history it left out
(member turn context), so the drop is visible per member. The 6-hour
session rollover stays as the safety net. The session store is pruned of
sessions older than a day and vacuumed when it grows; it does not need a
cleanup cycle once the history is no longer rendered. The host's
auto-compaction is switched off (mobHost.compactionThreshold out of
reach): it was an extra model call per member per cycle that summarised
the history before each turn, and with the history no longer rendered it
only cost a request.
Signer daily cap and unsent transactions
The signer reserves an action's USDC notional against the daily cap before it signs. A transaction proven never to have been broadcast — a preflight rejection, an outbox branch that drops the signed transaction unsent — gives that reservation back; an ambiguous send keeps it. Without the release, the worker's per-sweep retries of a failing row consumed the whole cap with nothing on the wire (30 September) and every USDC-spending action of the day was refused. A retry of a failed, never-signed intent may carry new parameters (the LP funding bounds are re-derived from the live wallet) and is re-armed rather than refused as a mismatch; once a signature exists the parameters are frozen. An Orca opening whose range lies entirely on one side of spot is sized from the token the position holds, and a deposit that names only the other token is refused with the reason instead of failing in simulation.
Lending interest is the window accrual
A supply balance on Kamino or MarginFi only grows between our own flows:
the venue charges no supply or withdraw fee and its cToken exchange rate is
monotonic. The lending figure the earning table headlines is therefore the
window accrual, the change in the supplied balance minus our own
receipt-verified supplies and withdrawals (accrual_usdt in the lending
block, with apr_accrual beside it). The per-period attribution still runs
and still ties (Δ balance = flows + interest + unattributed), but its split
between interest and unattributed is read noise: a balance read against a
stale exchange rate, a supply landing between two reads, a redemption that
paid a few dollars under the last reported balance. On 30 September the
period sum for Kamino read −$76.72 across 946 periods while the accrual was
+$187.24; the row shows the accrual, names the period sum and the excluded
periods in its note, and the reconciliation card underneath still shows the
raw legs. A lending row reads contaminated only when no accrual can be
stated.
Active review of idle liquidity
The Liquidity page shows the dollar value outside earning ranges. Analysis, dream and decision cycles receive the same position-level productivity review, ranked by idle value, with range distance, token composition and a variable-rate lending comparison for the USDC leg. LP value is no longer included in the lending subtotal. Wrapped SOL is included in idle wallet inventory, separately from native gas. An Orca opening spends it directly: the signer funds the coin leg from the wallet's wrapped-SOL account and wraps only the shortfall from native SOL, and since 30 September the worker's funding gate counts it the same way (native less the gas reserve, plus wrapped SOL). Meteora openings wrap from native SOL only. Orca exits leave the SOL leg and fees wrapped; that inventory is spendable by the next opening rather than stranded.
The LP fee history on the Liquidity page is built per position from the
recorded opening, collection and closing events. An event is attributed to
its position by the position named in its note, and otherwise by its
transaction signature through the signer's request record or the verified
fee receipt, so the LP controller's mandate collects, closes and replacement
opens count toward their position. Events with no identity by either route
are listed as unmatched and left out of the per-position totals; the pool
ledger's lp_fees attribution is period-based and includes the repricing of
uncollected fees, so the two totals are close but not identical.
Every out-of-range position should receive a decision: reposition, close and redeploy, or retain for a concrete entry/exit purpose with a price condition and a review deadline by the next decision. Cheap transactions make active review worthwhile, but the comparison includes swap slippage, inventory conversion, possible divergence loss, and rent tied up or refunded. Pool headline APR is not the current yield of an out-of-range position.
This is an input and policy improvement to the existing decision/execution
cycle, not a blanket close command or a new portfolio cap. Actions use the
existing lp_plan, actual position IDs and confirmed returned balances.
Since 2026-09-29 each reviewed position carries evidence, not a fresh guess:
out_of_range_since and out_of_range_hours from the controller's continuous
observations (kept across decisions, reset only by an observation inside the
range), opened_at, fees_total_usdt and vs_hold_usdt from the
receipt-verified LP ledger, the last mandate observation, the last controller
transition with its blocking reason, and any escalation or operator grant.
The same block carries the lending-hygiene ledger (every recall, repark and
rotation the code made, with its reason) and the code's own repark verdict for
the float above the code floor, so the desk never has to describe a code recall
as unattributed or hold the float waiting for a gate that belongs to the code.
Realised fee APR of executed positions (2026-10-03). The LP ledger
(GET /v1/desk/pnl → lp_accounting) now carries, per position,
deposited_usdt (the deposited legs at the snapshot's marks), hours_open
(first add → close, or → the snapshot while open), dollar_hours, shape
(two_sided / one_sided_usdc / one_sided_coin) and
realized_fee_apr_pct = fees ÷ deposited value, annualised over the hours
held — null with realized_apr_note when the position has less than a day
behind it, no deposit value, incomplete fee legs or no fees (a position that
earned nothing has no rate, not a 0 % one). lp_accounting.realized rolls
these up capital-time weighted (Σ fees ÷ Σ dollar-hours) for all, by_pool
and by_shape; the earning[] LP rows take their apr_realized_inception
from it instead of withholding it. The liquidity page shows the aggregate
with its shape split, one line per pool, and each card's own rate; the desk
reads the same numbers as sleeping.lp_productivity.pool_track_record. realized_fee_apr_pct (per pool, with realized_by_shape) and
realized_all_pools. The doctrine that goes with it: for an established pool
the desk's own realised rate is the base fee estimate; a haircut on the
pool-wide APR needs a stated reason the realised record does not already
reflect. At the time of writing the desk's record read 81.8 % realised across
37 positions on about 871 k dollar-days, against a pool-wide 81–84 %
(one-sided USDC tiles 161 %, two-sided 53 %) — the "halve the measured rate"
sensitivity the officer applied for a week had no basis in the ledger.
Trailing seven days (2026-10-04). The lifetime record is the base for an
established pool, but a seven-day comparison horizon needs the rate over the
last seven days: each position now also carries fees_7d_usdt (collections
dated inside the window plus the unclaimed balance of an open position),
hours_7d (its capital-time inside the window) and
realized_fee_apr_7d_pct; lp_accounting.realized.trailing_7d rolls them
up for all and by_pool (window_hours 168), the earning[] LP rows
carry apr_realized_7d, the liquidity page appends "Last 7 days: x %" to a
position's realised line once it has more than a window behind it, and the
desk reads pool_track_record.realized_fee_apr_7d_pct with
realized_7d_all_pools. Zero fees inside the window are a 0 % rate, not a
missing one. The owner rule evidence.realised_rates (v2) makes this
trailing rate the base for a seven-day horizon and the 24 h or on-chain
window the sensitivity beside it; evidence.recorded_costs makes
recorded_costs_7d the only cost table (rent refundable, unmeasured
allowances at most twice the recorded route family). To back that rule the
signer's LP routes (/v1/lp/{open,close,collect}) now return costs and
effects per batch like every other route, and the worker books them as
route:lp_open / route:lp_close / route:lp_collect rows; before this
every LP send was logged as "sends without a durable cost row" and the
officer charged an illustrative $27 per $6k range where the record showed
$0.52 of refundable rent and sub-cent fees.
The USDC side is a cap, and the executor now enforces it (2026-10-04).
The first expansion under the new evidence (12:20Z, two tranches of about
$5.5k) exposed a sizing defect: the signer sizes a two-sided open from the
coin leg and bounds the USDC leg at its own estimate × (1 + slippage), so an
officer offer below that estimate was never a cap. Near the upper edge of a
range the USDC per coin moves about 8 % per 0.5 % of price; a 13 SOL leg in
[109.93, 126] filled 4 247 USDC against a 4 110 cap and took 94 USDC out of
the operating float. The officer noticed from the journal, wrote the rule
lp.deposit_cap_integrity and set tools.lp.enabled=false itself: entries
and replacements suspended, keeps, collections and protective closes still
running. That is the intended failure mode. The fix: the decision-path open
shrinks the coin leg until estimate × (1 + floor) fits the cap
(lp_core::coin_leg_for_usdc_cap, reported in the journal as "coin leg x →
y so the cap holds") and sends mandate_bounds to the signer
(max_usdc_spend = the cap, max_coin_spend = leg + bound, selling floor
and worst-case conversion from the aligned range), so a quote past the
mandate is refused before signing instead of filled. The LP controller's
replacement path already sent those bounds. Re-enabling is an owner
override on tools.lp.enabled (or the officer's own typed proposal once it
sees the fix in a fill).
Capital at work (owner doctrine 2026-09-29)
A one-sided tile that spot is not in earns nothing. The book keeps at least 70 %
of LP dollars in range: at most two fee tiles bracketing spot, one distribution
range for held coin above its blend, one accumulation range below spot per coin.
Entry bids below spot are conditional opens: an open row whose
execution_mandate.entry names within_bps, after_seconds and
withdraw_usdc. The sweep does not open it; the USDC stays in lending and the
controller pulls it and opens the range once spot has sat within the distance
for the persistence window. Micro positions below ACCUM_LP_SMALL_POSITION_USD
are informational; only identical-range groups whose combined value reaches
ACCUM_LP_CONSOLIDATE_MIN_USD are consolidation candidates.
The repark destination rule is symmetric with the recall rule: a reserve whose
free liquidity is at least ACCUM_UTIL_RECALL_LIQ_EXEMPT_X times the amount is
a valid destination whatever its utilization reads, exactly as the recall never
fires there. Money recalled by the code therefore goes back when the position it
would form is small against the reserve's free liquidity.
The repark never sweeps money the pending decision still owns: before sizing
the idle float it deducts the decided float reserve, the USDC the decision's
unplaced Solana bids will escrow, the LP controller's reservations and, since
2026-10-03, the usdc_side of every open row in lp_plan whose decision has
not yet carried its done marker. That last term closes a real gap: on
2026-10-03 07:31Z a plan's lending_withdraw of $8,536 for an Orca opening
confirmed at 07:31:15 and the sweep sent $8,520 of it back to Kamino one
second later, so the opening failed on "float has 750" while the SOL leg it
had just unstaked sat idle. The worker logs repark reserves USDC for the pending decision's placements when the deduction is in force.
Since 2026-10-03 the executor also sources the legs of an opening itself
(owner: "the LLM gives the goal; the exec path should use Kamino, JitoSOL or
wrapped SOL to fulfil the order"). When an lp_plan open row is short, the
executor pulls the USDC shortfall (over the float floor, plus a 1 % + $5
receipt cushion) from the largest USDC lending position, and the SOL shortfall
from JitoSOL through the signer's unstake route; wrapped SOL already counts on
Orca. Each side is one exec intent (…:lp_fund:<venue>:<pool>:<row>:usdc /
:sol), so the 30 s retry of the same row never sends a leg twice: a request
row already in the journal means "sent, wait for the wallet to show it". The
row waits up to 60 s for finality and otherwise reports deferred — … funding leg sent and retries; the old operator refill required line now appears
only when no reserve can cover the gap (no USDC lending position, or not
enough JitoSOL for the whole shortfall). The officer may still author
lending_withdraw / unstake_sol rows, which land first and leave nothing
for the funder to do. Funding legs are journaled as lp_open funding leg
internal flows.
Orca explains range-dependent fee earning in its liquidity terminal guide.
Restated historical NAV
When confirmed transaction evidence establishes a previously omitted wallet balance over a bounded interval, history can carry a separate restatement. The chart adds that quantity at each snapshot's original SOL and USDT marks; it never uses today's price to rewrite yesterday's value. Original NAV, ledger entries and a full snapshot backup are preserved. The history API exposes raw NAV alongside the restated value and explains the correction on the chart.
This repairs the missing-asset drop and the apparent jump when live coverage was restored. It does not establish a deposit or earned profit. Historical returns, drawdown and flow-based comparisons remain unavailable/provisional until their separate ledger reconciliation is complete. No balances are extrapolated before the interval supported by receipts.
Fee collection after SOL swaps
A SOL swap can close the wallet's wrapped-SOL associated token account during cleanup. Orca fee collection must prepare its receiving token accounts in the same transaction, even when a previous RPC read reported that they existed. Receiving-account creation is idempotent: an existing account is reused, and a missing account is recreated before fees are collected. This also covers Orca withdrawal/close receiving accounts that use the same preparation path.
AccountNotInitialized on CollectFeesV2.token_owner_account_a during simulation
means that collection was not submitted; it does not mean the position or its
accrued fees disappeared. Verify the preceding swap separately and retry only
the failed collection after repairing account preparation. Never repeat a
successful stake or swap to recover an unrelated collection failure.
AI cadence and execution monitoring
Production schedules verified on 2026-09-29:
| Cycle | Interval | Role |
|---|---|---|
| Analysis | 30 minutes | Refresh the market assessment |
| Decision | 60 minutes | Issue portfolio actions and conditions |
| Dream | 120 minutes | Review outcomes and lessons |
The owner selected 30-minute analysis to control token usage: 48 scheduled analysis runs per day instead of 96 at a 15-minute interval. Token savings vary with context size and output length. Event-triggered reviews can add runs.
Execution monitoring is a separate deterministic process and does not need an AI call for each check. The continuous monitor targets a 15-second polling interval. Confirmation, RPC availability and prior wallet work can lengthen an execution pass; polling is not a transaction-finality guarantee. The 30-minute scheduled sweep remains a recovery path and shares the same wallet lease. Check completed decision timestamps and execution outcomes separately from schedule dispatch times. A busy AI host defers dispatch; decisions require a recent completed analysis.
LP controller objective and decision mandate
The controller follows the decision’s estimates of expected net portfolio return within the latest decision's exposure instructions. Fee APR alone is not its objective: inventory conversion, trading fees, transaction costs, slippage and performance versus holding the same tokens all matter.
Each position needs an explicit purpose: earn fees, accumulate the coin, distribute it into USDC, or retain coin exposure. Its decision mandate specifies boundary actions, how long a condition must persist, a validity deadline, and whether fees justify collection. A replacement additionally identifies its new range, maximum funding amounts, coin quantity to retain outside the LP, maximum coin exposure after USDC conversion, and an explicit minimum selling price for coin-funded liquidity. These are decision-specific instructions, not new fixed portfolio allocation caps; portfolio budget enforcement remains in its existing mode.
Expected incremental benefit must exceed estimated total costs plus the mandate's minimum net benefit over its review horizon. These are estimates, not guaranteed yield. Small price moves must not cause repeated close/open transactions. A replacement must close, confirm the receipts and available proceeds, then open; a new decision supersedes old permissions. A missing or expired mandate grants no new trading permission.
An out-of-range coin position is not automatically a failed investment. If its purpose was accumulation, it may have acquired the desired exposure. Reopening around the current price could sell that inventory, so the controller needs explicit selling permission before doing so. Conversely, a USDC-only position below spot can be a deliberate entry range rather than abandoned capital.
Reconciliation and replacement
Analysis, dream and decision receive the complete current LP, open-order and lending inventory with source freshness and errors. Missing data is unknown, not a zero balance. Order discovery follows all venue pages. The execution panel shows the counts actually dispatched to each cycle, rather than merely prepared snapshots.
Small LP positions below ACCUM_LP_SMALL_POSITION_USD (default $250) are
listed as micros, informational only. The snapshot groups duplicate ranges and
marks a group as a consolidation candidate once its combined value reaches
ACCUM_LP_CONSOLIDATE_MIN_USD (default $1,000); anything smaller gains no yield
from a merge and costs rent and gas, and is not re-argued every cycle. Twenty
positions alone is not a reason to sell. Consolidation needs explicit close and
aggregate-open instructions; detection does not grant trading authority or
impose a portfolio allocation cap.
Automatic boundary replacement currently supports Orca SOL/USDC and cbBTC/USDC. It persists the mandate and boundary duration, checks a fresh quote, closes the position, waits for every transaction to finalize, verifies position-specific principal receipts, then rechecks funding, sale price and exposure before opening the replacement. Fees, rent and unrelated wallet inflows cannot fund that replacement. A replacement receives a new position ID and needs a new decision mandate for subsequent replacement. If authority expires after closing, proceeds remain in the wallet for review.
Boundary persistence no longer resets with a new decision: after_seconds is
measured from the first observation outside the range. A mandate may also carry
up to four exit_rules (price_above / price_below a level, held
continuously for confirm_seconds, then close_retain or reposition), which
the controller evaluates itself; prose in unwind_if executes nothing.
A replacement may declare one bounded swap leg (replacement.swap): sell a
stated coin quantity at or above a limit price that is never under the
mandate's sale floor, or buy coin with a stated USDC amount at or under a limit
price that keeps the result inside max_coin_after_conversion. The controller
quotes the swap, refuses a fill outside the limit, executes it between the
confirmed close and the open, and sizes the open from the confirmed result. A
buy is risk-increasing and passes the blackout gate first.
Escalation. A position out of range longer than
NEXUS_LP_OOR_ESCALATE_HOURS (default 24), further than
NEXUS_LP_OOR_ESCALATE_BPS (default 200) and worth at least
NEXUS_LP_OOR_ESCALATE_MIN_USD (default 500), with only a retain in force and
no transition pending, is paged to Telegram once per
NEXUS_LP_OOR_ESCALATE_REPAGE_HOURS. The page states the composition, the
distance, what the pool's 7-day APR would pay in range, and the one-off cost of
a re-centre. Approving writes an operator grant; the controller then closes the
position and retains the proceeds (no sale, no reposition): USDC is reparked by
the code and coin sits in the wallet for the next decision to place. Rejecting
keeps the officer's retain. These thresholds live under worker.lpReview in
Helm.
The action journal retains individual action and transaction progress across
restarts. Confirmed chunks are not resent. Unknown submissions block further
wallet submissions until reconciled; a missing intent response is not evidence
that it is safe to submit again. The reconciliation asks the signer for the
intent under every id it may hold it by: a withdraw-all is stored on the exec
as one sub-intent per reserve ({intent}#{reserve}), so a recall is looked up
under that id as well as the worker's own before a request is released as
never sent. A recall the signer did execute while the worker lost its reply
(a rollout mid-send on 30 September, $42,044 from Kamino) is recovered at the
top of the next execution sweep: the signer's record gives the signature, the
on-chain receipt gives the quantity, the withdrawal is journaled as a
lending_withdraw dated at the transaction's block time, and the hourly
repair pass re-judges the P&L period it fell in, so the withdrawal is never
read as negative lending yield with a matching unexplained amount. Terminal failures, missing funds and unknown order outcomes remain visible
blockers, rather than successful completion. A readable positive wallet surplus
is advisory and does not block new orders: deposits and other additions do not
freeze execution. The difference remains visible for attribution; no synthetic
lot, cost basis or trading profit is created. Actual funding and sell-basis
checks still apply. unresolved describes accounting; execution_blocked
separately describes whether the sleeve prevents execution.
GET /v1/desk/execution powers controller health, action states, LP transition
stages and cycle input counts in Analysis and Liquidity. Existing orders and
positions remain visible independently of proposed actions.
Deployment controls are worker.continuousExecution and worker.lpController
in Helm, mapped to NEXUS_CONTINUOUS_EXECUTION and NEXUS_LP_CONTROLLER.
Disable the LP flag to stop automatic mandate transitions; disabling continuous
execution restores scheduled sweeps. Portfolio budget mode remains log.
Accounting events and the owner's acknowledgement
The P&L attribution carries two buckets beside the four performance ones
and the two residuals. Accounting (accounting:coverage) is the value of
a wallet balance the NAV snapshot started counting: wrapped SOL entered
coverage on 2026-09-27 20:40 UTC and the whole $2,030 sat in unexplained
until this rule existed, although nothing had moved. The NAV job stamps
meta.coverage_started on such a snapshot and the P&L period books that
value as accounting, neither performance nor an external flow; the hourly
repair pass moves the stored row of the 27 September period out of
unexplained the same way. Acknowledged is the residual the owner
verified against the live balances and accepted: a dated
accum_pnl_acknowledgement record (as-of time, note, by whom) turns every
stored unexplained row at or before that time into acknowledged, shown
apart, never hidden. New residual after the acknowledgement accumulates in
unexplained as before. The identity becomes
delta = explained + before-ledger + acknowledged + unexplained.
Resolving detected flows
The NAV job's balance-residual detection writes a detected_unconfirmed
flow whenever the on-chain pool moves by more than the tolerance without a
matching fill; it has no signature and its timing inside the period is
unknown, so it is applied like a manual flow and keeps the return figures
provisional (accounting_quality.unconfirmed_flow_count, the ~ on TWR /
MWR) until the owner rules on it. Since 2026-10-07 a residual over the
tolerance is first held one period (meta.flow_detection.pending): the
wallet, lending and order-book reads behind a snapshot are not atomic, so
a movement caught between two of them read as a $500 withdrawal and then a
$500 deposit on every market-maker cycle (37 false rows in a day). The next
snapshot records the held residual, dated at its own snapshot, only when the
new period does not reverse it — a real deposit therefore shows up one NAV
period (15 min) late. Journaled futures collateral posts and returns are
added back before judging, since the venue's collateral sits outside the
pool the detector watches. The NAV job itself now reads the exec wallet a
second time after the other planes and, when a quantity changed, reads
every plane again: the 2026-10-07 08:59Z snapshot carried 1 010 USDC in
the wallet with lending already reparked (NAV +$473, reversed at 09:14).
The root of that churn — the hygiene reparking the USDC the market maker
had just pulled for a bid — is closed too: the market maker reserves its
funding from the repark until the bid rests (mm state
funding_reserved_usd, 20-minute expiry). The External flows table on the Portfolio
page carries that verdict on every unresolved row
(POST /v1/desk/nav/flows/{id}/resolve, body {"resolution": "confirm"|"void", "note"?}):
- Confirm stamps the row
confirmed(by whom, when). Nothing else moves: the deposit or withdrawal was already applied when it was detected. - Void is for a residual that was not capital moving — a wrap into
wrapped SOL before that balance was in coverage, an LP leg landing in the
wallet between two snapshots, dust. The row is stamped
voidedand anoffsetrow reverses it: the opposite direction for the same quantity and value, dated at the original's time (so the money-weighted series nets it out where it happened) and recorded now (so it is applied by the nexttreasury_navrun and every stored period still holds). In that period the P&L books the reversal as Accounting (accounting:flow_offset, with the voided flow's own sign) rather than letting it surface as unexplained. The gross in / out totals drop both rows from the instant of the void, so the header reads as the owner's real deposits and withdrawals.
Rows are never deleted or edited in place: the original detection, the
verdict and the reversal all stay in accum_external_flows. A resolved row
cannot be resolved again (409); a void retried after a partial failure finds
its offset already written and does not reverse the flow twice. Voiding the
27 September SOL residual, for example, pairs with the wrapped-SOL coverage
row of that evening: the two accounting rows net to the few dollars of price
drift between them, and neither is performance.
The header shows the score directly: NAV, the capital earning right now
(lending, staked SOL and the in-range part of the LP book, with its share of
NAV and a blended APR estimated from the venues' reported rates), and the
time-weighted return since inception with the 24-hour return beside it. A
~ marks returns that are still provisional.
Subscriptions and routing between the two AI accounts
The desk runs on two metered subscriptions: Anthropic (Claude Code, seven of
the eight members) and OpenAI (Codex, the challenger). Each provider meters a
5-hour and a weekly window that reset on its own clock. Subscriptions
(/trading/providers) shows, per account, each window's utilization as the
provider reports it, the time to its reset, the burn per hour, the projected
utilization at the reset and the time it would reach 100 %, with the routing
the policy applied and Langfuse's tokens per provider over 14 days.
Sources: the host's GET /usage reads Claude's OAuth usage endpoint with the
CLI's own token and Codex's rate_limits from its newest session rollout,
spending no tokens and keeping the token inside the pod. The worker's
provider-usage job samples it every PROVIDER_USAGE_INTERVAL_MINS (5),
forecasts from samples of the same reset epoch, and grades each account:
watch from PROVIDER_WATCH_PCT (70), critical from
PROVIDER_SWITCH_PCT (90) or when a window reaches 100 % within
PROVIDER_ETA_HOURS (6) before its reset, exhausted on a quota error the
host recorded in the last PROVIDER_QUOTA_EVENT_MINS (90).
Routing is applied through the host's per-role model overrides, which it
re-reads before every turn. The operator's choices on the Settings page are
the baseline the policy works from, not a wall: it remembers what each role
ran before it moved it and puts exactly that back once the spent account
reads ok again, unless the operator changed the role again in between, in
which case the newer choice stands. Steps, in order: while a Claude window is
projected past 100 % at its reset, claude_lite moves the expensive Claude
role (PROVIDER_CLAUDE_LITE_ROLE, the Fable decision by default) to Opus on
the same account; while Claude is critical or exhausted and Codex has room,
every role runs on Codex; while Codex is spent, the roles on Codex run on
Sonnet. The page lists every role with the model it runs on and who set it. A quota error mid-turn is also retried at once on
the other subscription by the CLI client, so a spent account no longer burns
the step retries into a pod restart. The operator can pin default, codex
or claude from the page or with POST /v1/desk/providers/routing, and hand
control back with auto. Telegram is paged on a verdict change or a switch.
The pace trigger has a band and the routing a dwell, so a projection that
wobbles around 100 % between two five-minute samples does not flip the
routing every run: the trigger enters at 100 % projected and clears only
below PROVIDER_PACE_CLEAR_PCT (90) while claude_lite holds, and a
routing the policy applied is kept for PROVIDER_MIN_DWELL_MINS (60)
before it may move back to the pack. A move to a protective routing is
never delayed.
Quiet accounting reviews
Readable positive wallet surpluses remain visible for attribution and do not create approval requests. They are not booked as profit or synthetic cost basis. Missing funds and uncertain execution outcomes retain their checks. Historical accounting reviews remain visible until their existing lifecycle ends; they do not define current paging policy.
A positive wallet surplus is never paged. The sleeve reconciliation compares the wallet with the swing ledger only, so coin the treasury holds on purpose — LP closes held as core, collected fees, recalled lending, unstaked SOL, and the inventory held since before the ledger — reads as "surplus" against it; on 2 October that figure was 119 SOL and grew with every close. A positive surplus is not a missing-money signal: an unrecorded fill shows as a shortfall on the other leg and blocks execution, and an unrecorded deposit is the NAV job's flow detection. The Execution page shows the readable surplus and how much of it the internal flows moved into the wallet over the last 30 days; reviews raised before 2 October keep their state until they expire.
Limit orders & swing in "What the AI may use" (2026-10-05)
The permissions card on Decided now listed liquidity pools, lending and
futures only. It now also shows Limit orders & swing: whether
tools.swing.enabled is on, the sleeve budget (swing.budget_frac of
holdings) and the minimum rebound edge. The owner's rules
swing.fill_disposition and swing.pairing (pinned the same day) let the
desk decide, per limit buy, whether the fill is resold on the rebound or kept
as accumulation; the row's reason says which.
Rules board, goal tabs and keep-only decisions (2026-10-05)
Rules board. Each rule opens its history (the accum_rule_events rows),
and a Recent rule changes list sits beside the board. A source filter
separates seed, AI and owner rules; every row shows last cited, which now
counts the brief and the dream as well as the decision; a rule the dream, the
brief or the execution gate has objected to carries a Flagged by the desk
badge until the officer answers; retiring a rule asks for a note. Escalated
flags and never-cited rules arrive in the inbox as ordinary rule_change
approvals proposing RETIRE — approve retires, reject keeps
(Decision rules).
Goals tabs. Monitor and Catalogue are tabs in the goals tab strip, with Controls, Ideas, Execution and Changes, instead of side links.
Keep-only decisions. A decision whose plan keeps every position and places nothing is a valid decision. The analysis page now says No orders in the standing plan for it; before, the empty plan rendered as Plan not loaded, which read as a fetch failure.
Decision instructions and execution outcomes
The latest decision table retains the original instruction and shows a separate execution outcome beside it, refreshed every 15 seconds. Outcomes match the exact decision timestamp and order-plan row, so an older successful order cannot mark a new proposal as complete. Placed means order creation was confirmed, not that the order filled. The Orders page shows live orders and fills. Original AI rationale and execution diagnostics are expandable historical details; an earlier retry explanation or advisory budget warning is not a current failure when the corresponding action is confirmed.
Reconciliation alert semantics
NexusSleeveUnresolved fires after 30 minutes only when
nexus_sleeve_execution_blocked is 1. The separate
nexus_sleeve_unresolved gauge remains an accounting diagnostic: a readable
positive surplus can leave it at 1 while orders remain enabled. Positive
surpluses remain a quiet advisory regardless of size. Deficits, unreadable balances and unresolved
execution evidence still require investigation. Older executor responses
without execution_blocked conservatively fall back to unresolved.
Ladder proposals and the exec's bounds
The exec re-checks every ladder bound at execution: the discount to the
index, the raise per call, no added capital, descending rungs, no armed
rung. The officer proposes against the index in its brief, so a rung can
land a few cents over the discount ceiling by the time the move executes
and the whole move is refused. The worker stages the proposal first: each
rung is clamped to the live index less the minimum discount
(ACCUM_LADDER_MIN_DISCOUNT_FRAC, 0.05, the same number as the exec's
ladderReprice.minDiscountFrac) as well as to the per-call raise cap, and
the set is kept descending, so the consensus still lands at the bound
instead of being lost.