Decision Flow

AAPL · 20260331123803-3ee67131

Full read-only trace of one paper-trading cycle: market data intake, feature engineering, deterministic signal decision, risk control, execution outcome, and linked audit records.

Forced test override environment production source alpaca status completed

Cycle Timeline

Stage Summary

Market Data ok

not available

Features unavailable

not available

Signal Decision unknown

Forced test override

Risk Control pass

sell

Execution executed

simulated

Position & Audit closed

CLOSED

Stage 1

Market Data

Input Summary
Statusok
Provideralpaca
Attemptednot available
Final Sourcenot available
Latest Price246.72
Fetched At2026-03-31T12:38:03.998867+00:00
Recent Candles
2026-03-06T05:00:00Z O 258.63 · H 258.77 · L 254.37 · C 257.46
2026-03-09T04:00:00Z O 255.69 · H 261.15 · L 253.6805 · C 259.88
2026-03-10T04:00:00Z O 257.645 · H 262.48 · L 256.95 · C 260.83
2026-03-11T04:00:00Z O 261.09 · H 262.13 · L 259.55 · C 260.81
2026-03-12T04:00:00Z O 258.66 · H 258.95 · L 254.18 · C 255.76

Stage 2

Feature Engineering

Feature snapshots are not available for this cycle.

Stage 3 · Signal Decision Forced test override
Actionsell
Setupforced_test_action
Confidence92.0
Risklow
Biasshort
Regimeunknown

Forced sell action in test mode for execution-chain validation.

provider=alpaca market_state=bearish market_regime=unknown setup_type=forced_test_action confidence=92.0
Signal Scorecard
long not available
short not available

Audit Trail

Linked Stored Records

Order Logs
#5 · 2026-03-31T12:38:05.392171 sell / simulated
Position Rows
#2 · AAPL CLOSED / qty 40.0
Cycle Log Row
Started2026-03-31T12:38:04.472882
Final Actionsell
Order Resultsimulated
Errornot available

Raw Inspectors

Stored Payload Snapshots

market input
{
  "change": -1.98,
  "change_pct": -0.8,
  "fetched_at": "2026-03-31T12:38:03.998867+00:00",
  "history": [
    {
      "close": 257.46,
      "high": 258.77,
      "low": 254.37,
      "open": 258.63,
      "timestamp": "2026-03-06T05:00:00Z",
      "volume": 41273884
    },
    {
      "close": 259.88,
      "high": 261.15,
      "low": 253.6805,
      "open": 255.69,
      "timestamp": "2026-03-09T04:00:00Z",
      "volume": 38398591
    },
    {
      "close": 260.83,
      "high": 262.48,
      "low": 256.95,
      "open": 257.645,
      "timestamp": "2026-03-10T04:00:00Z",
      "volume": 30750595
    },
    {
      "close": 260.81,
      "high": 262.13,
      "low": 259.55,
      "open": 261.09,
      "timestamp": "2026-03-11T04:00:00Z",
      "volume": 26372593
    },
    {
      "close": 255.76,
      "high": 258.95,
      "low": 254.18,
      "open": 258.66,
      "timestamp": "2026-03-12T04:00:00Z",
      "volume": 40952141
    }
  ],
  "previous_close": 248.7,
  "price": 246.72,
  "provider_duration_ms": 910.12,
  "provider_failure_reason": null,
  "provider_name": "alpaca",
  "provider_response_timestamp": "2026-03-31T12:38:03.998867+00:00",
  "provider_success": true,
  "reason": "Alpaca snapshot loaded.",
  "source_snapshot": {
    "dailyBar": {
      "c": 246.72,
      "h": 250.73,
      "l": 245.55,
      "n": 14855,
      "o": 250.04,
      "t": "2026-03-30T04:00:00Z",
      "v": 897337,
      "vw": 246.82277
    },
    "latestQuote": {
      "ap": 262.62,
      "as": 100,
      "ax": "V",
      "bp": 237.54,
      "bs": 100,
      "bx": "V",
      "c": [
        "R"
      ],
      "t": "2026-03-30T20:00:00.00067149Z",
      "z": "C"
    },
    "latestTrade": {
      "c": [
        "@",
        "F"
      ],
      "i": 14842,
      "p": 246.72,
      "s": 100,
      "t": "2026-03-30T19:59:56.382883943Z",
      "x": "V",
      "z": "C"
    },
    "minuteBar": {
      "c": 246.72,
      "h": 246.96,
      "l": 246.48,
      "n": 423,
      "o": 246.67,
      "t": "2026-03-30T19:59:00Z",
      "v": 27435,
      "vw": 246.650995
    },
    "prevDailyBar": {
      "c": 248.7,
      "h": 255.46,
      "l": 248.1,
      "n": 17575,
      "o": 253.9,
      "t": "2026-03-27T04:00:00Z",
      "v": 1186420,
      "vw": 251.99372
    }
  },
  "status": "ok",
  "symbol": "AAPL"
}
decision payload
{
  "action": "sell",
  "confidence": 92.0,
  "expected_holding_period": "swing",
  "invalidation_condition": "Forced test mode override.",
  "market_state": "bearish",
  "reason": "Forced sell action in test mode for execution-chain validation.",
  "risk_level": "low",
  "setup_type": "forced_test_action",
  "stop_loss_pct": 0.02,
  "suggested_position_pct": 0.0,
  "take_profit_pct": 0.04
}
feature snapshot
{}
signal snapshot
{}
risk snapshot
{}
order payload
{
  "broker_mode": "paper",
  "filled_avg_price": null,
  "order_type": "market",
  "provider_name": "alpaca_paper",
  "provider_order_id": "local-AAPL-sell-1774960685",
  "qty": 40,
  "raw_response": {
    "mode": "local_paper_fallback",
    "submitted_at": "2026-03-31T12:38:05.390275"
  },
  "side": "sell",
  "status": "simulated",
  "submitted_price": null,
  "symbol": "AAPL"
}