In brief
- The model never chooses its own reach. A deterministic resolver builds a per-turn plan with at most 2 added capabilities and 6 delegated tools, and one policy function decides both which schemas the model is shown and which calls actually execute.
- Only READ tools can be delegated: 34 tools across 10 capabilities, enforced at import time and in tests. Offline tests (2026-11-07) show that invented tool names, write tools, out-of-plan tools and forged user_id arguments never reach a domain service.
- No tool search and no planner call. The resolver ran in a median 0.26-0.29 ms on a development machine, and bounded exposure added about 1.4-1.5 KB of schemas per turn, against 41 KB if every delegable tool were global (offline, 2026-11-07).
- On 20 cases written alongside the resolver, capability selection scored 1.0. On 40 held-out English and Polish cases written without reading its rules, precision was 0.96 and recall 0.77. Every miss gave the chat less reach than it needed, never more.
- Web search costs $2.50 per 1,000 queries at the provider's published price. Live TEST calls ran 1-5 searches each and cost $0.004-$0.045 per call, and search fees are not yet charged to user wallets.
Until October, every chat in LiquidMind belonged to its page. The Technical Hub chat had order-flow tools, the Macro chat had the calendar and regime tools, and the Transactions chat had your closed trades. If you asked a question that crossed that line, the answer was a redirect: this belongs to the Transactions tab.
That was correct inside each page and frustrating at the edges. "BTC shows bearish CVD divergence. Do macro events and social sentiment confirm the downside?" needs three domains. The user is on one page.
There was also a worse version of the problem. On Technical Hub, any question containing "PnL" or "win rate" was treated as a question about your own closed trades. So "Which whale has the highest PnL?" sent you to your own Transactions tab. The keyword check couldn't tell a third-party Hyperliquid account from your trading book.
We call the fix the AI Copilot. One chat turn can now read evidence from other LiquidMind domains and, when needed, the public web. This post covers how we kept that from turning into "the model can call anything", and what we measured. It continues two earlier posts: why our vertical agent doesn't need tool search and where agent authority should stop.
The numbers, first
Every figure has a source and a type. Offline means our own harness or tests with mocked providers. Internal eval means cases written by the same team that wrote the code. Live TEST means real provider calls on a test environment. Nothing below comes from production telemetry. That is the first gap, covered later in the post.
| Figure | Value | Source, date | Type |
|---|---|---|---|
| Capabilities / delegable tools | 10 / 34, all READ | capability registry, 2026-11-07 | code + tests |
| Max added per turn | 2 capabilities, 6 tools, 4 cross-domain calls, 1 web search | runtime defaults | config |
| Resolver latency (median of medians) | 0.24 ms (Oct 19); 0.26 ms / 0.29 ms re-run | offline harness, dev machine | offline |
| Planner LLM calls | 0 | offline harness | offline |
| Extra schema bytes per turn | +1,444 B (Oct 19); +1,516 B / +1,412 B re-run | offline harness | offline |
| All delegable schemas, if global | 30,868 B (Oct 19, 26 tools); 41,097 B (Nov 7, 34 tools) | offline harness | offline |
| Capability selection, 20 co-written cases | precision 1.0, recall 1.0 | Oct 19, re-run Nov 7 | internal eval |
| Capability selection, 40 held-out cases | precision 0.96, recall 0.77, exact match 0.80 | Nov 7 | held-out eval (see limits) |
| Unauthorized, non-READ or look-ahead exposures | 0 in both case sets | offline harness | offline |
| Web search price | $2.50 per 1,000 queries | provider pricing page, Oct 19 | published price |
| Cost per research call | $0.004-$0.006 (Contributor), $0.014-$0.045 (Standard) | live TEST calls, Oct 19 | live TEST, small sample |
The two "re-run" figures are the original 20-case set and the new 40-case set, in that order. The all-tools figure grew because Smart Money added eight delegable tools after October 19.
Capabilities, not routes
The first decision was to stop thinking in pages. A capability is something the chat can investigate, such as macro conditions, technical analysis, social sentiment, your portfolio, your performance, Smart Money participants, product documentation or external research. A page is only the default starting point.
Each delegable tool is described exactly once, in a typed registry. Each entry records the tool's capability, data classification (public market data, public research, tenant-private, confidential), temporal support (current-only, point-in-time, clamped, static), the executor family that runs it, and how its output is compacted. JSON schemas are not copied into the registry. They are resolved from the domain module that already owns them, so a schema change in Macro cannot drift away from what the chat shows.
The registry fails loudly. At import time the process refuses to start if a tool is registered twice, if a delegable tool is not READ, or if a capability has no tool. Tests also check that every delegable tool is READ in the separate per-tool policy table, and that none of the mutation, approval, journal-write, account, credential or routing tools appear in the delegable set.
Two kinds of tool are never delegated:
- Screen tools. Tools that read the browser state of a page ("what is visible on my chart") only make sense on that page. From elsewhere, the technical capability uses the canonical market-data service instead. Missing context is returned as
missing_context, never reconstructed. - Private page tools. The Smart Money watchlist belongs to the user who follows those wallets. It is native to the Smart Money page and absent from the delegable registry.
Continuing from tool search: a resolver, not an index
In the tool-search post we noted that the in-app assistant was the one part of LiquidMind that looked like a horizontal agent. It had 53 tools, scoped by a static table to the UI surface. Cross-domain chat removes that scoping, which is exactly when tool search becomes tempting: index every tool and let the model find what it needs.
We went the other way, for the same reason as before. Which tools a model can see should be a pure function of system state, not of index contents and query phrasing.
The CapabilityResolver scores each question against capability signals in English and Polish. A single weak signal is not enough to widen the turn. The question has to actually ask for that evidence. Scores in a middle band are recorded as ambiguous and, by default, not acted on. Definitional questions ("what does CPI mean?") stay local. Explicit exclusions ("without social", "bez makro") remove a capability. The output is a frozen plan with a deterministic plan_id, so the same inputs and settings produce the same plan.
There is an optional, enum-constrained LLM planner for the ambiguous band. It is off by default. When enabled, it can only return a subset of the candidates the server already authorized, and an error adds nothing. All numbers in this post were measured without it.
Selection is then bounded:
added capabilities ≤ 2 (highest score first)
delegated tools ≤ 6 (core tools before extended ones)
cross-domain calls ≤ 4 per turn
web searches ≤ 1 per turn, $0.05 research spend, 60 s deadline
observations 24,000 chars cross-domain, 6,000 per toolExtended tools are only added when their own signal appears. A question about yields adds the rates tool; a question about win rate does not.
What this costs in context: across the original evaluation set, bounded exposure added on average 1,444 bytes of schemas per turn on October 19. Exposing every delegable tool globally would have cost 30,868 bytes per request. With Smart Money's eight tools now registered, the global figure is 41,097 bytes, while our re-run averaged 1,412-1,516 bytes per turn. The resolver itself is not the expensive part: a median of 0.24 ms on October 19 and 0.26-0.29 ms in today's re-run, with zero LLM calls. These are offline measurements on a development machine, not production latency.
One policy decides what the model sees and what runs
This is the core of the design. In the code it looks like this:
question + page context
│
▼
CapabilityResolver deterministic plan: capabilities, tools,
│ market scope, temporal scope
▼
CopilotTurn.expose() ──► capability_exposure_denial() ← same function
│ only allowed READ schemas are shown
▼
ChatAgent ReAct loop model proposes calls from what it was shown
│
▼
AuthorizedToolDispatcher.execute()
├─ page tool → existing page executor + its own policy gate
└─ delegated tool → evaluate_capability_tool_call()
└─ capability_exposure_denial() ← same function
→ budget → schema-only arguments → domain service
→ EvidenceEnvelope
▼
final answer + capabilities used, sources, evidence, partial flagsExposure and execution call the same function, capability_exposure_denial. If the two checks were separate, the list of what the model was shown and the list of what the server would execute could drift apart over time. With one function, they can't.
Concretely, a delegated call has to pass every check below, in order. The first failure stops it:
| Check | Denial reason | What it stops |
|---|---|---|
| Tool is registered and READ in both the registry and the policy table | unregistered_tool, not_read_only |
write tools, unknown names |
| Tool belongs to the capability recorded for it | capability_mismatch |
widening access by naming another capability |
| Tool and capability are both in the server-built plan | not_in_capability_plan |
calls outside this turn's plan |
| One authenticated tenant | authenticated_tenant_required |
anonymous, "all users" admin and admin-inspection chats |
| Temporal eligibility | temporal_ineligible |
current data leaking into a historical analysis |
| Capability entitlement, failing closed | entitlement_required |
paid web research when billing can't confirm access |
| Existing per-tool policy | blocked list, required params, rate limit | everything the page chats already enforce |
Every decision is written to the audit log with a copilot:<page>-><capability> context.
What happens when the model makes up a tool
There are two layers.
- The model can only call what it was shown. The ReAct loop checks every proposed call against the list of schemas sent in this turn. A name outside that list is rejected before it reaches the dispatcher, and the loop moves to a final answer. The name doesn't matter. An invented
get_all_user_wallets, a realclose_positionthat isn't exposed on this page, and a real READ tool outside the plan are all handled the same way. We checked all three on 2026-11-07 through the fullroute_streampath with a scripted model. None was exposed, none was dispatched, and notool_startevent was emitted. - A shown tool still can't be stretched. The dispatcher rejects any argument that isn't in the delegated schema. A model can't pass
user_id,watchlist_id, a provider or a model name. The user always comes from the authenticated request. Adapters receive a scope the server built, never another page's browser state. Delegated Transactions statistics run with a throwaway side-effects dict, so they cannot change your table filters.
A short, real exchange from the tests:
page: technical_hub, user authenticated, plan = {macro_intelligence, social_intelligence}
model: calls get_terminal_overview {} # your portfolio: real READ tool, not in this plan
server: not in the tools sent this turn → rejected, executor never called
model: answers with the macro and social evidence it was allowed to readApproval flows are untouched. A risk-configuration change still goes through the page's existing propose-and-approve path, and mutation tools stay hidden from cross-domain turns.
Admin views never delegate
There are two admin chat paths, and neither delegates. The admin inspection endpoint calls the router with allow_cross_context=False. The admin "all users" Transactions view clears the user scope. Both fail the tenant check, so the resolver adds nothing and the exposure check would deny anything it did. An admin looking at another user's chat gets page tools only, with no private Smart Money reads.
The "all users" case is covered by a route test. The allow_cross_context=False route behavior is covered by a Smart Money test and by our scratch check above. The one-line wiring in the HTTP handler was verified by reading the code. No test calls that endpoint directly yet.
The answer comes with its evidence
Every delegated call produces an EvidenceEnvelope. It records the capability and tool, internal or external source, data classification, status, asset, venue and timeframe, observed and retrieved times, live, historical or static, freshness, omitted records, and references. The original observation stays in the model context. The envelope is the provenance trail.
The final answer carries capabilities_used, sources, evidence and a partial flag. The widget renders them as an Evidence block: capability chips, a Live or Historical badge, numbered sources with their domain, primary versus secondary source, and a partial-evidence note. Only public http(s) links are rendered.
Two choices follow from the risk-controls post's distinction between interpretation and authority:
- Absence stays absent. The web search provider returns no publication date, so every web source shows "Publication date unknown" rather than a guess. A source the model retrieved but never cited is labelled "Retrieved, not cited (unverified)".
- History stays point-in-time. On the Macro page with a past cutoff, current-only tools (social, web, portfolio, live market) are not exposed and are denied if called. Technical history is clamped to the cutoff. Macro reads use the server-validated cutoff and ignore any
as_ofthe model supplies.
Web research is its own boundary
External research runs through the provider's Responses API with native web search. Unlike the page tools, it sends data out of LiquidMind, so it gets its own rules.
The user's prompt is never sent to search. The model fills in a structured request: a topic from an enum, public tickers, public entity names, keywords and recency. The query is rebuilt from those validated fields. Words such as "my", "position" or "balance" are rejected. Anything that looks like an identifier (emails, long numbers, UUIDs, key-like strings) refuses the request before any provider call.
Routing follows the provider's data policy.
| Provider tier | May receive |
|---|---|
| Standard model | public research, and tenant-private free-form questions |
| Contributor model (provider may train on inputs) | structured public queries only, and only with explicit governance approval and a passing compatibility probe |
| Other search providers | public classes only |
| Any provider | never confidential or historical-restricted data |
A free-form question makes the request tenant-private: Standard only, never shared-cached, and logged as [withheld_private] in traces. Requests go out with store=False, because the Responses API stores requests by default. Retrieved titles, snippets and findings pass through instruction quarantine, so lines that look like instructions are replaced with a marker before the model reads them. URLs must be absolute public http(s) hostnames: no credentials, IP literals, localhost or internal suffixes. Public results are cached for 300 seconds. Private ones are not shared-cached.
What we measured, and where it came from. On October 19 a compatibility probe made real calls on the TEST environment with a development key. Both model tiers performed native search. With 300 or 900 output tokens, every response was cut off before the cited answer (incomplete, max_output_tokens). With 2,000 tokens and low reasoning effort, both completed with a primary-source citation. Those became the defaults, and truncated answers are now marked partial. Two end-to-end service calls followed: a structured public query on Contributor (2 searches, 8 sources, no inline citations, so partial, about $0.006) and a free-form question on Standard (5 searches, 3 cited sources, $0.045).
That is a small sample from one day, and the raw probe output is not stored in the repository. Treat it as a sanity check, not a cost model. The $2.50 per 1,000 searches is the provider's published price, not something we measured.
Two gaps we have not closed:
- The provider doesn't document a per-call search limit. One research call ran five searches. We count and cost every search but can't cap the count at the provider. A $0.05 research budget per turn blocks a second call after an expensive one.
- Search fees are recorded per user in cost events but not deducted from the prepaid wallet, which only charges tokens today. Until a non-token ledger charge exists, search is a platform cost bounded by the per-turn budgets.
One bug from the same day is worth recording. Source snippets have a 600-character limit, and our sanitizer appended a ... [truncated] marker after cutting to that length. A 601-character snippet became 615 characters and failed validation. That failure made a successful search look like a provider rejection. The fix applies the bound after sanitization, without loosening the validator, and attempt accounting now separates local failures from dispatched searches. Local validation no longer uses up the single search allowance.
Smart Money: the first domain built after the Copilot
Smart Money AI V3 (October 22) was the first new domain designed after the Copilot already existed. It is a capability from day one, not a separate agent. It adds nine research tools over existing service reads: pulse, rankings, wallet intelligence, largest positions, net position changes, market analysis, evidence, data quality, and the private watchlist. Eight of them are delegable. The watchlist is not.
It also fixed the whale question. A shared helper now decides whether "PnL", "ROI" or "win rate" refers to observed participants or to your own trades. That helper drives the Transactions redirect, and the resolver uses it too. If a question names a third-party subject without referring to your own book, portfolio and performance capabilities are removed from the plan, with the reason recorded. "Which whale has the highest PnL?" now stays on Smart Money data, and our tests assert it. "…and how does that compare with my own PnL this month?" adds your performance capability, because you asked for it. That case is in the held-out set below, and it passed.
V3's own evaluation (12 scenarios through the real router, scripted model) scored 1.0 on tool selection, attribution and failure handling. Because the model was scripted, it measures routing and provenance, not answer quality. The same day, a reliability fix found two real problems. Conversation history was being cut to 1,200 characters per message, so the chat denied a sentence it had written earlier. And a short-covering trade was grouped as long accumulation. Neither was a routing bug, which is a good reminder that routing is only one part of answer quality.
A held-out evaluation, and why it scored lower
The October 19 report gave capability selection a precision and recall of 1.0 on 20 cases. It also said plainly that those cases were written together with the resolver, so they were not an independent benchmark. A resolver tuned on its own test set will pass it.
So on November 7 we wrote 40 new cases (27 English, 13 Polish) across eight page contexts, before reading the resolver's signal tables or scoring code. We wrote down a labeling policy first. The label is what an analyst would need from another domain to answer with evidence, including implicit needs, and over-cap needs count as misses. The labels were frozen and the fixture hashed before the first run. Then we ran the same offline harness.
| Metric | 20 co-written cases | 40 held-out cases |
|---|---|---|
| Precision | 1.0 | 0.96 |
| Recall | 1.0 | 0.77 |
| Exact match | 1.0 | 0.80 |
| Cross-domain evidence reachable, page-only → Copilot | 0.231 → 1.0 | 0.107 → 0.81 |
| Unauthorized / non-READ / forbidden / look-ahead exposures | 0 | 0 |
| Privacy-tier routing, symbol ambiguity | correct | correct |
| Planner LLM calls | 0 | 0 |
The misses have a clear pattern:
| Cause | Cases | What happened |
|---|---|---|
| Ambiguous band, planner off | 5 | Score landed in the middle band and was recorded as ambiguous_not_planned. Examples: a macro question phrased through a weekday, a Polish regulation-news question, a macro question appended to an injection attempt. |
| Per-turn cap | 1 | A question that needed three capabilities got two. This is by design. |
| No signal at all | 1 | "What are analysts expecting from the next ECB decision?" on the Macro page. |
| False addition | 1 | "Set my risk per trade to 3% and check whether macro supports it" also added the READ portfolio capability. |
Every failure gave the chat less reach than it needed, never more. A missed capability means the chat answers with page-only evidence, which is the old behavior. The one false addition was a READ capability for the same user. Across all 40 cases, including two adversarial ones asking the chat to close positions or change risk settings, no write, approval or forbidden tool was exposed, and nothing current-only was exposed under a historical cutoff.
Limits of this evaluation:
- Held-out, not independent. The cases were written by someone who had read the architecture docs (including a summary of how the scoring works), though not the rule tables. They are synthetic, not real user questions. We had no read-only access to chat logs for this.
- Routing only. The harness measures which capabilities and schemas are selected. It does not run a model. Answer correctness, hallucination rate, end-to-end latency and LLM cost per turn are still unmeasured.
- Small. 40 cases, one labeler. A 0.77 recall on 31 expected additions comes with wide uncertainty.
The ambiguous-band cluster points at a concrete decision: enable the constrained planner for that band only, and measure whether it recovers these cases without adding false ones. We have not done that yet. It costs a paid call per ambiguous turn, and we want production traces first.
What we have not measured
The cross-domain Copilot and web research are now enabled in production. We have not yet pulled production telemetry, so we can't yet report:
- the share of turns that delegate, and which capabilities they use;
- how many delegated calls run per turn, and how often the policy denies one;
- the extra latency and cost of a delegated turn, and real search counts per research call.
Every Copilot trace already records the plan (decisions, exclusions, temporal and market scope) and the execution (capabilities used, per-tool latency, statuses, cache, budget exhaustion, web-research metadata). The next post in this thread should be built on those traces, not on fixtures.
When we would change our mind
- If production traces show the ambiguous band is common, we enable the constrained planner for that band only. We measure it as a paired comparison against the deterministic resolver, with the same rule that the planner can only choose among server-authorized candidates.
- If the delegable set grows by an order of magnitude, bounded exposure stops being cheap and some form of deferred tool loading becomes worth a paired replay. Native tool search would also require moving the chat runtime to the Responses API, which it does not use today.
- If a domain needs to write, it gets its own page-native flow with explicit approval, as risk configuration already has. It does not get a delegable tool.
What we are deliberately not doing
- No write, approval or credential tools in delegation. Not behind a flag and not behind a prompt instruction. The registry refuses them at import time.
- No free LLM planner by default. A paid call on every message, to decide something a 0.3 ms function decides deterministically, is the wrong trade for simple questions.
- No tool search. Same reasoning as the earlier post: tool visibility should be a function of system state, recorded in a plan you can read back from the trace.
- No agent per page and no orchestrator of agents. That would duplicate prompts, billing and tracing, add a hop of latency and cost, and split provenance. There is one ReAct loop and one authorized dispatcher.
- No raw user prompt sent to web search, and no model-chosen provider or model. The legacy terminal web search tool no longer accepts either, and it is hidden in any turn where governed research is exposed.
The Copilot is a research assistant. It reads evidence across modules, says where each piece came from, and marks what is missing. It does not give investment advice, and nothing in it can place, change or approve an order. As in the risk-controls post, the useful question isn't whether the model is smart enough to be trusted with more tools. It's which decisions should never have been the model's to make. Here, what the chat can see and run is decided by the server.

Public pen name of LiquidMind's founder and builder. Writing first-hand engineering notes and transparent performance reviews from the system's internal ledger.
Related Posts
Stay Liquid
New posts on transparency, engineering, and the LiquidMind thesis — no noise.
Loading discussion…