Spaces:
Sleeping
Sleeping
Session 25: UNIFIED root cause - conc=20 empty-200 throttle starves universe coverage (Stage-1 1 vs 16-46); detection byte-identical to last-good; user conc=4 never persisted
Browse files
Log.md
CHANGED
|
@@ -3213,3 +3213,46 @@ PROPOSED DURABLE FIX (NOT applied — awaiting user vet):
|
|
| 3213 |
E. (Optional) let inventory rebuild ~1-2h at conc=3-4; expect locked zones to climb toward ~20.
|
| 3214 |
Tools written for repeatability: output/zonetest.py (replay), output/baserate.py (base-rate),
|
| 3215 |
output/zonetest_s21.py (last-good replay). Re-run any time to compare a build vs a git revision.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3213 |
E. (Optional) let inventory rebuild ~1-2h at conc=3-4; expect locked zones to climb toward ~20.
|
| 3214 |
Tools written for repeatability: output/zonetest.py (replay), output/baserate.py (base-rate),
|
| 3215 |
output/zonetest_s21.py (last-good replay). Re-run any time to compare a build vs a git revision.
|
| 3216 |
+
|
| 3217 |
+
## SESSION 25 (cont. 4) — UNIFIED ROOT CAUSE: throttle starves coverage; detection NOT changed; user's conc fix never applied
|
| 3218 |
+
NEW USER INTEL: "good day = 16-46 pairs in Stage 1; now = 1. Turned OFF all v8 AND 7.5 filter
|
| 3219 |
+
switches, still 1." + ran "concurrency=4 for 7h, no change."
|
| 3220 |
+
LIVE STATS after ~7h / 805 cycles (NO restart): request_concurrency=20 (NOT 4!), thin_skips=41010
|
| 3221 |
+
(~61% of ~67k symbol-scans), zones_found=10 (cumulative), stage dist {4:2,2:3,1:1,0:200}. The 200
|
| 3222 |
+
stage-0 states have zone="-" (NO real zone — my earlier 'all have zones' was a bug: '-' is truthy).
|
| 3223 |
+
Saved settings.json REQUEST_CONCURRENCY=20.
|
| 3224 |
+
|
| 3225 |
+
PROOFS THIS SESSION:
|
| 3226 |
+
1. DETECTION UNCHANGED vs last-good S21 (3ce44188): full CFG diff of ALL detection+universe
|
| 3227 |
+
thresholds = 0 differences; detect_candidate_zones / find_swings / atr / _lock_first_liquidity /
|
| 3228 |
+
_fvg_first_touch = BYTE-IDENTICAL; universe cap (universe_top_n=0, max_symbols=0) identical.
|
| 3229 |
+
=> the detector that yields 16-46 on a good day == the detector running now.
|
| 3230 |
+
2. FILTERS ARE DOWNSTREAM of Stage 1 (they gate Stage 4->5 only). So toggling v8/7.5 filters CANNOT
|
| 3231 |
+
change Stage-1 count. User's "filters off, still 1" CONFIRMS the fault is upstream = coverage.
|
| 3232 |
+
3. CONC FIX NEVER APPLIED: user set 4, but saved + live value = 20, and the 61% thin rate is the
|
| 3233 |
+
exact conc=20 empty-200 signature. So "7h at 4" was really 7h at 20 -> invalid test.
|
| 3234 |
+
4. save_settings() code path is correct (writes file + _reload_runtime rebuilds REQUEST_SEM). So the
|
| 3235 |
+
most likely reason the 4 didn't stick: it wasn't actually saved from the page (or was overwritten
|
| 3236 |
+
back to 20). Earlier conc=3 DID apply live (thin dropped) -> the hot-reload mechanism works.
|
| 3237 |
+
|
| 3238 |
+
MECHANISM (why the v8 BUILD triggered it): the build = a redeploy = container restart -> warm
|
| 3239 |
+
BARS_CACHE wiped + accumulated Stage-1 inventory lost. Cold start at conc=20 -> MEXC silently returns
|
| 3240 |
+
empty 200s for ~61% of fetches -> those symbols thin-skip BEFORE evaluate_stages/zone-acquisition
|
| 3241 |
+
ever runs -> universe coverage collapses -> Stage-1 inventory cannot re-accumulate -> 1 instead of
|
| 3242 |
+
16-46. SELF-REINFORCING: load_bars only falls back to cache on a thrown EXCEPTION; an empty-200 is
|
| 3243 |
+
not an exception, so it returns [] and caches nothing. Pre-build it "worked" only because the cache
|
| 3244 |
+
was warm and inventory had built up over hours (which MASKED the latent conc=20 fragility — same
|
| 3245 |
+
default in S21). Base-rate replay with CLEAN fetches = ~3% lock = ~18-24 over the universe = exactly
|
| 3246 |
+
the "16-46 good day" range -> the detector is fine; it's being STARVED of bars.
|
| 3247 |
+
|
| 3248 |
+
FIX (surgical, NO detection-math change) — proposed, AWAITING GO:
|
| 3249 |
+
FIX-1 (the cure): load_bars — when a 200 returns empty/short (<80 bars) treat as TRANSIENT THROTTLE:
|
| 3250 |
+
retry once with jitter, and if still short serve the last cached window; only thin-skip when
|
| 3251 |
+
there is genuinely no data AND no cache. Makes coverage robust to the throttle at any conc.
|
| 3252 |
+
FIX-2: REQUEST_CONCURRENCY default 20 -> 3 (and ensure it persists). On HF the box is one IP behind
|
| 3253 |
+
MEXC's per-IP cap; 3 gave ~0 thin live earlier. Keep jitter.
|
| 3254 |
+
FIX-3 (cosmetic, from v8): preflight drop stale _select_verdict assertion; Stage-4 reason ladder
|
| 3255 |
+
order grade/confluence-shortfall above "Stabilising read".
|
| 3256 |
+
VERIFY: after FIX-1+2, expect thin_skips/cycle -> ~0, zones_found to climb, Stage-1 to rebuild
|
| 3257 |
+
toward ~16-40 within ~1-2 full universe sweeps (~10-20 min).
|
| 3258 |
+
Repeatable tools: output/zonetest.py, output/zonetest_s21.py, output/baserate.py.
|