Agentic AI System Design / Practice / P09

Financial Research and Trade-Proposal Agent

freshnessevidencemarket-data licensingaction separation

Advanced · 45 minutes · scenario 9 of 12

INTERVIEW MODE

Run this as a 45-minute design interview

Start the clock, design against the prompt, and take the constraint reveals as they land. The model answer stays hidden until you finish, because reading it first turns practice into recognition.

45:00

Not started

Cover in this order

  1. Outcome and risk
  2. Authority boundaries
  3. Topology
  4. Tools and context
  5. State and durable execution
  6. Security and human review
  7. Evals and SLOs
  8. Scale, cost, and rollout

Timeline

  1. 5m Clarification complete
  2. 8m Requirements and non-goals
  3. 13m First architecture
  4. 25m Core flow and state
  5. 34m Deep dive
  6. 40m Evals and operations
  7. 45m Failures, tradeoffs, close

Scratch architecture

Draw the boxes in words. Saved in this browser only, never uploaded.

Required checks0 / 9
Self-score0 / 40

Score each dimension 0 to 4 against what you actually said out loud, not what you intended to say. A 2 is a competent answer; a 4 is one you could defend to the team that operates it.

Candidate prompt

Design an agent for an investment firm that researches companies, synthesizes filings, market data, news, and internal notes, and prepares trade proposals for portfolio managers.

Starting assumptions

Fictional assumptions:

  • Users need both interactive questions and multi-hour deep research.
  • Sources have different licenses, freshness, and authority.
  • Internal research is confidential and team-scoped.
  • The system may prepare an order ticket but cannot execute a trade autonomously.
  • Market conditions can change between research and approval.

What to clarify

  • Which asset class and decision horizon?
  • What is the difference between research, recommendation, and order preparation?
  • Which data is real time versus delayed?
  • Which sources may be quoted, cached, or shown to which users?
  • What compliance checks and approvals exist?
  • What is the acceptable stale-data window?
  • Are personal trading and material nonpublic information controls in scope?
  • How are corrections and model errors handled?

Staged constraint reveals

Reveal 1: Freshness mismatch

A filing is authoritative but months old. A social-media post is seconds old but unreliable. The agent merges them into one confident claim.

Expected update:

  • source type, authority, publication/effective/retrieval time;
  • distinguish fact, report, allegation, and model inference;
  • temporal claim graph or evidence ledger;
  • conflict/uncertainty preserved;
  • task-specific freshness policy;
  • no averaging into false certainty;
  • cite exact source and timestamp.

Reveal 2: Licensed data

Market-data contracts prohibit sending raw feed data to an external model provider or storing it beyond a short window.

Expected update:

  • data inventory and license/purpose policy;
  • local deterministic aggregation or approved model boundary;
  • minimize and transform data before model access only if permitted;
  • provider and region routing by data class;
  • retention/deletion and cache restrictions;
  • telemetry redaction;
  • audit source usage.

Reveal 3: Trade ticket

The portfolio manager approves a proposal, but price and position limits change before the order is submitted.

Expected update:

  • proposal and order are distinct artifacts/states;
  • approval binds to proposal version, assumptions, and expiry;
  • recheck real-time price, exposure, liquidity, compliance, and account state immediately before creating order;
  • material change requires re-approval;
  • order creation idempotent/reconciled;
  • no autonomous execution.

Reveal 4: Evaluation

A model produces persuasive reports that portfolio managers like, but factual error rate increases slightly.

Expected update:

  • user preference cannot override factual/safety gates;
  • claim support/citation correctness;
  • source coverage and conflict recall;
  • factual error severity weighting;
  • human correction and downstream decision tracking with caution about causality;
  • holdout and incident sets;
  • release block for high-severity errors.

Strong answer signals

Product boundary

The agent researches and prepares evidence-backed proposals. Authorized humans and existing trading/compliance systems own order approval and execution.

Architecture

Text definition of this diagram
flowchart LR
    PM[Analyst / Portfolio Manager] --> API[Research Workspace]
    API --> RT[Interactive / Deep-Research Router]
    RT --> WF[Durable Research Workflow]
    WF --> AG[Bounded Research Agent]
    AG --> CX[Licensed Evidence Context]
    CX --> SRC[Filings / News / Market / Internal]
    AG --> POL[Data + Compliance Policy]
    WF --> ART[(Versioned Research Artifacts)]
    WF --> AP[Proposal Approval]
    AP --> OG[Order-Ticket Gateway]
    OG --> OMS[Order Management / Compliance]
    WF --> OBS[Trace / Eval / Audit]

Data/evidence model

Each fact records source, license class, authority, security scope, publication/effective/retrieval time, locator, and permitted use. Generated claims reference evidence IDs and label inference separately.

Interactive versus deep research

Interactive questions have short bounded retrieval and latency budgets. Deep research is an asynchronous durable workflow with plans, parallel source tasks, checkpoints, progress, cancellation, and human clarification.

Evals

  • fact/citation correctness;
  • temporal and source authority reasoning;
  • conflict and uncertainty;
  • data-license policy;
  • internal ACLs;
  • recommendation support;
  • proposal freshness and approval integrity;
  • persuasive-but-wrong adversarial cases;
  • latency, cost, and analyst correction.

Failure follow-ups

  1. A news article is corrected after the report is published.
  2. Internal notes contain material nonpublic information.
  3. A user shares a report with a team lacking source-data entitlement.
  4. The market closes while a deep-research workflow is running.
  5. The order-management API times out after ticket creation.
  6. Two sources refer to companies with the same ticker in different markets.

Scoring emphasis

DimensionWeight
Evidence/freshness/source authority25%
Data license and access governance20%
Proposal/order authority separation20%
Durable interactive/deep paths15%
Evals15%
Scale/operations5%

Model outline

Use an evidence service that preserves source authority, temporal metadata, license, and user entitlement. Route interactive and deep-research paths separately. The model may synthesize and infer, but claims must cite source evidence and label uncertainty. Research artifacts are immutable and versioned. Proposal approval expires or reopens when market/account/compliance state changes. Order-ticket creation passes through deterministic compliance and an idempotent gateway; trade execution remains outside the agent.

Fill the design canvas for this scenario Open

DESIGN CANVAS

Financial Research and Trade-Proposal Agent

Twelve sections, 72 fields. Everything you type is saved in this browser as you go. Nothing is uploaded, and nobody else can read it.

0 / 72 filled

01 Outcome

Start with the job, not the model. If you cannot name the metric, you cannot design the system.

02 Why agentic?

Agentic is a cost, not a default. Justify the judgment you are buying.

03 Risk and authority

Name what the model may never decide. The risk tier shapes the architecture; it is not a paragraph added at the end.

04 Journey and topology

The simplest topology that satisfies the requirements, plus the conditions that stop it.

05 Tools

Every tool is a contract: typed, scoped, rated for side effect, and idempotent where it touches the world.

06 Context and data

Rank sources by authority and freshness, and keep untrusted content on the far side of a boundary.

07 State, memory, and durability

Say what survives a crash and what must never happen twice.

08 Security and governance

Identity has to reach the data and the tools. Injection controls are architecture, not prompt text.

09 Evals

Measure the trajectory, not only the final text, and name the number that blocks a release.

10 Operations

One quantitative objective per axis, and the person who is paged when it breaks.

11 Rollout

How the change reaches production, and what pulls it back.

12 Open tradeoffs

Three decisions you made knowing what they cost. A design with no tradeoffs is a design nobody stress-tested.