A4 / A47884 — Oracle engine optimisation discussion package
version : a4-oracle-opt.v1.37
utc     : 2026-10-28
host ref: 62423 / 62431 / 62435 / 62437 / 62438 / 62441

INPUT PROVENANCE (fetched from http://149.118.48.126:8080/)
  market-engine-server.js      646,862 B  eed819a9407806e5b884e0df1c1425519c4bad54de4f834f26a2fae1b1f685ee
  market-engine-index.html     434,446 B  f839eea46df1edd5327ad55c83330827ae1e70e75e8c2293556d0d0bb085abfa
  market-engine-futu.py.txt    298,463 B  823a2d52029263f9f1cc9ce5d7046b2543f85a9541ec642ea0734dc32a83c37f
  (all three match the sizes / sha12 prefixes published in host 62423)

CONTENTS
  SUMMARY_zh.md               ONE-PAGE summary: per-topic conclusion + recommended action
  CHANGELOG.md                one row per package bump, with the headline number
  FEED_SPEC_zh.md             feed producer contract: fetch / per-bar / sessionReset / holes / acceptance
  A4-oracle-optimization.md   main write-up (sections 0-7)
  MANIFEST.txt                this file
  bench/                      reproducible harness (node, no npm deps)
                              ind.v2.1.js = v2 + non-finite guard (doc 2.3.7)
                              ind.v2.2.js = v2.1 + prefix-overflow flag (doc 2.3.8)
                              ind.v2.3.js = v2.2 with the shadowed/dead RMQ kernels actually enabled
                                            (fixed: __LOG table, STDP /n, non-finite guard; doc 2.2.1)
  src/                        the three host files, verbatim

REPRODUCE
  sh   bench/verify_all.sh                     # <- acceptance gate: all six suites, exit code 0 (doc 6.2)
  node --expose-gc bench/final_bench.js        # main benchmark -> final_bench.json
  TARGET=./ind.v2.js node bench/equiv.js       # 120-case A/B equivalence
  TARGET=./ind.v2.1.js node bench/equiv_v2.js   # A8 field-wise comparator, finite inputs
  node bench/boundary.js                       # N<30 + NaN/Inf/neg/dup boundary matrix
  node bench/boundary_sem.js                   # semantic classification on non-finite inputs
  node bench/boundary_fuzz.js                  # 200 poisoned series -> boundary_fuzz.json
  node --expose-gc bench/guard_cost.js         # v2 vs candidate cost ratio -> guard_cost*.json
  node bench/finite_overflow.js                # finite-input overflow (1e308) -> finite_overflow.json
  node bench/zerovol_hole.js                   # zero-volume + stale amount vs real surge (doc 4.5)
  node bench/session_shape.js                  # sessionReset / pre-post equivalence + flag effect (doc 4.6)
  python3 bench/feed_shape.py                  # zero-cost feed probe -> feed_shape.json (doc 4.7)
  bash bench/feed_timing.sh                    # quick latency sweep (same data, human-readable)
  node bench/capacity.js --arm-factor=K --util=0.7   # cores needed per symbol/timeframe set (doc 2.7)
  node bench/undefined_holes.js                # missing-field holes, undefined vs 0 (doc 2.3.9)
  node bench/amount_layer.js                   # amount-only perturbation vs event set (doc 4.8)
  python3 bench/feed_sessions.py               # intraday gap structure per market -> feed_sessions.json (doc 4.10)
  python3 bench/fetch_feed_sample.py AAPL      # dump one real session -> bench/feed_AAPL_1d.json (doc 4.11)
  node    bench/feed_to_engine.js bench/feed_AAPL_1d.json   # six ingestion policies -> feed_to_engine_<sym>.json (doc 4.11)
  python3 bench/doc_check.py                    # doc figures vs artifacts, 16 checks, exit 0 (doc 6.3)
  sh   bench/feed_ratelimit.sh 40              # free-endpoint rate-limit probe (doc 4.9)
  sh   bench/arm_probe.sh                      # one-command host calibration -> bench/arm_probe.json (doc 6.1)
  node --expose-gc bench/incremental_cost.js   # P3 incremental upper bound (doc 2.3.10)
  node --expose-gc bench/rmq_micro.js          # HHV/LLV naive vs sparse table, isolated (doc 2.2.1)
  node --expose-gc bench/rmq_bench.js          # end-to-end core / v2.2 / v2.3 (doc 2.2.1)
  node --expose-gc bench/repeatability.js      # run-to-run noise band for every speedup claim (doc 1.5)
  node bench/stable_var.js                     # prefix vs merge variance stability (doc 3.2)
  node bench/worker_cost.js                    # structured-clone cost
  node --cpu-prof --cpu-prof-dir=./prof bench/prof.js   # line-level hotspots

MEASURED ENVIRONMENT (not the Oracle box)
  Node v20.20.2, 2 vCPU, 2 GB RAM. Absolute ms are relative only; ARM run pending.
