{
  "status": "optimized_and_validated",
  "published": false,
  "recorded_at_utc": "2026-11-02T09:10:51.818787+00:00",
  "changes": [
    "Use uuid fast-rng on native targets: OS-seeded, periodically reseeded ChaCha thread-local randomness; retain v4 identities and browser Web Crypto.",
    "Build indicator output columns directly in Arrow buffers; reuse invariant smoothing coefficients.",
    "Borrow take-profit levels in reward/risk validation; cache the immutable TTL result message without changing its contents."
  ],
  "source": {
    "baseline_sha256": "2f1c38274b7dafed51668e99f03f28a4a667e28777e01d3d4f9331a931e56ad5",
    "candidate_sha256": "87d276a79eb331783e4e3926c77c6cb2d6ed4da0ffa353ffeab242f1b692995d",
    "baseline_rebuild_matches_all_three_previously_frozen_binaries": true,
    "changed_engine_files": [
      "Cargo.toml",
      "src/core/indicators/kernels.rs",
      "src/core/pipeline/minimum_risk_to_reward.rs",
      "src/core/pipeline/insight_ttl_config.rs",
      "src/core/indicators/engine.rs",
      "src/core/indicators/tests.rs"
    ],
    "isolated_patch": "../aqe-optimization-20261102.patch",
    "benchmark_source_unchanged": true,
    "example_sha256": "0ad1a82a41198485d60df143116e5822c9fee2dd01c2c00ced845d472a20ffc3",
    "dependency_versions_and_checksums_unchanged": true,
    "lock_change": "UUID dependency edge to existing rand 0.10.2; no dependency version updates.",
    "working_tree_dirty": true
  },
  "binaries": {
    "baseline": {
      "engine_performance": "118646d053da492ed7ff27b25ba2a2c8c3f29ce72d8eca2f5981f2f017f5a292",
      "execution_performance": "81d507bc1b755102abfe5a77cfd97c62c4dd8e7636e2f1468c1439f7b8567425",
      "offline_lifecycle_performance": "2e010d9405ffa13d5b72d169a3927d0b7c24ecc3a7cc67de6d27f45093e87d56"
    },
    "candidate": {
      "engine_performance": "8d8273c03c9dc059d7e0ba8327e1cc78d1d21b3f4b58613bda98adc51067a176",
      "execution_performance": "44e9323f110d58d124dd313693d57de5e53d1666188220ae6955c9adcc0a9a54",
      "offline_lifecycle_performance": "155a7b1489bc8ca4d4b0bac841a58f772bbe94c8723e509d1182a7ec57558903"
    }
  },
  "build": {
    "command": "cargo build --release -p aq-engine --features runtime --example engine_performance --example execution_performance --example offline_lifecycle_performance --locked --offline",
    "profile": "Cargo release; AQ Engine opt-level=3; workspace LTO; codegen-units=1",
    "native_fast_rng_enabled": true,
    "wasm_fast_rng_enabled": false
  },
  "validation": {
    "command": "cargo test --release -p aq-engine --features runtime --lib --locked --offline",
    "passed": 1081,
    "failed": 0,
    "ignored": 27,
    "log": "tests-release.log",
    "sandbox_run": "1055 passed; 26 localhost mock-server bindings denied by sandbox. Full rerun with localhost access passed all 1081 tests.",
    "format_and_whitespace_checks": "passed",
    "execution_smoke": "passed",
    "lifecycle_smoke": "passed",
    "full_lifecycle": {
      "warmups": 1,
      "samples": 7,
      "trades_per_case": 1000,
      "bars": 10000,
      "all_outcome_fingerprints_equal": true,
      "results": [
        {
          "id": "backtest_close",
          "outcome_fingerprint_equal": true,
          "baseline_median_ms": 1441.989459,
          "candidate_median_ms": 1364.9265420000002,
          "baseline_p95_ms": 1506.942083,
          "candidate_p95_ms": 1449.2486250000002,
          "throughput_change_percent": 5.645938783422078
        },
        {
          "id": "live_close",
          "outcome_fingerprint_equal": true,
          "baseline_median_ms": 5461.068375,
          "candidate_median_ms": 5466.728,
          "baseline_p95_ms": 5658.367292,
          "candidate_p95_ms": 5513.981000000001,
          "throughput_change_percent": -0.10352856406976585
        },
        {
          "id": "backtest_bars",
          "outcome_fingerprint_equal": true,
          "baseline_median_ms": 1356.869541,
          "candidate_median_ms": 1100.910917,
          "baseline_p95_ms": 1770.0208750000002,
          "candidate_p95_ms": 1115.923166,
          "throughput_change_percent": 23.249712583238935
        }
      ]
    }
  },
  "controlled_comparison": {
    "baseline": "Identical rebuilt pre-optimization 0.2.2 candidate",
    "pairs": 5,
    "samples_per_workload_per_variant": 75,
    "warmups_per_run": 3,
    "method": "For each workload, select the run with the slowest median and retain its paired p95 and throughput.",
    "results": [
      {
        "id": "indicator_batch",
        "baseline_median_ms": 9.267875,
        "candidate_median_ms": 8.853709,
        "baseline_p95_ms": 11.222249999999999,
        "candidate_p95_ms": 9.627082999999999,
        "baseline_throughput": 26974899.855684284,
        "candidate_throughput": 28236753.65883383,
        "throughput_change_percent": 4.677881326345834,
        "elapsed_change_percent": -4.468834549451728
      },
      {
        "id": "insight_pipeline",
        "baseline_median_ms": 7.203167,
        "candidate_median_ms": 6.105,
        "baseline_p95_ms": 8.857917,
        "candidate_p95_ms": 6.329708,
        "baseline_throughput": 8329669.435680167,
        "candidate_throughput": 9828009.828009827,
        "throughput_change_percent": 17.987993447993446,
        "elapsed_change_percent": -15.245613491954291
      },
      {
        "id": "paper_broker",
        "baseline_median_ms": 29.604292,
        "candidate_median_ms": 7.1305,
        "baseline_p95_ms": 30.892166,
        "candidate_p95_ms": 10.048542000000001,
        "baseline_throughput": 168894.42922668104,
        "candidate_throughput": 701213.098660683,
        "throughput_change_percent": 315.1783465395134,
        "elapsed_change_percent": -75.91396544798302
      }
    ],
    "compiler_checks": "No compilers detected before/after each micro run; lifecycle runner monitored throughout each run.",
    "baseline_peak_rss_bytes": 122437632,
    "candidate_peak_rss_bytes": 126681088,
    "memory_conclusion": "No peak RSS reduction demonstrated: candidate maximum is 3.5% higher than paired baseline; individual runs vary.",
    "process_cpu_seconds_median": {
      "baseline": {
        "real": 1.49,
        "user": 0.68,
        "system": 0.79
      },
      "candidate": {
        "real": 0.61,
        "user": 0.56,
        "system": 0.02
      }
    },
    "process_cpu_scope": "Whole microbenchmark process including fixture setup; distinct from timed workload regions."
  },
  "profiling": {
    "file": "profile-before.txt",
    "method": "Native sample, 1 ms interval over one second, frozen baseline binary",
    "main_thread_samples": 652,
    "getentropy_leaf_samples": 378,
    "scope": "Whole suite including fixture creation; not a per-workload time attribution."
  },
  "historical_comparison": {
    "baseline": "September 26, 2026, AQE 0.2.0",
    "controlled": false,
    "same_reported_workload_and_profile": true,
    "exact_dirty_source_and_build_not_reconstructed": true,
    "qualification": "Historical reference only. September was a dirty checkout and its stored example hash differs from that revision. OS and engine behavior also changed. Do not publish the percentages as a controlled like-for-like speedup.",
    "results": [
      {
        "id": "indicator_batch",
        "historical_median_ms": 9.532166,
        "candidate_median_ms": 8.853709,
        "historical_p95_ms": 9.618625,
        "candidate_p95_ms": 9.627082999999999,
        "historical_throughput": 26226987.654222555,
        "candidate_throughput": 28236753.65883383,
        "throughput_change_percent": 7.662969270844577
      },
      {
        "id": "insight_pipeline",
        "historical_median_ms": 7.076458,
        "candidate_median_ms": 6.105,
        "historical_p95_ms": 7.512916,
        "candidate_p95_ms": 6.329708,
        "historical_throughput": 8478818.075370476,
        "candidate_throughput": 9828009.828009827,
        "throughput_change_percent": 15.91249795249794
      },
      {
        "id": "paper_broker",
        "historical_median_ms": 12.469417,
        "candidate_median_ms": 7.1305,
        "historical_p95_ms": 12.815708,
        "candidate_p95_ms": 10.048542000000001,
        "historical_throughput": 400981.0562915652,
        "candidate_throughput": 701213.098660683,
        "throughput_change_percent": 74.87437066124396
      }
    ],
    "historical_peak_rss_bytes": 91914240,
    "candidate_peak_rss_bytes": 126681088
  },
  "publication": {
    "absolute_benchmark_data": "report.json",
    "controlled_before_after_data": "comparison.json",
    "claim_scope": "Synthetic local AQE CPU workloads on this Apple M5 Max. Direct PaperBroker orders/s does not represent complete journaled trades, live broker/network, database or UI latency.",
    "limitations": [
      "September comparison is historical, not a controlled causal speedup.",
      "Peak memory remains above the September measurement.",
      "Offline live lifecycle median is effectively unchanged because the existing five-second sweep dominates.",
      "Results identify a dirty candidate by source and binary hashes; rerun if release source changes."
    ],
    "production_services_touched": false,
    "website_written": false
  }
}
