Spaces:
Sleeping
Sleeping
Session 25: ROOT CAUSE confirmed - MEXC silent empty-200 under concurrency=20 + cold restart; #3 retracted
Browse files
Log.md
CHANGED
|
@@ -3127,3 +3127,43 @@ NEXT (await user vetting before any edit): fix #1 (preflight) trivially; fix #2
|
|
| 3127 |
safely; for #3 decide whether to (a) loosen §19 streak/permission, or (b) flip SMART_STAGE4_ENABLED
|
| 3128 |
off to confirm promotions resume on v7.5 path (instant A/B test, no redeploy) — that single toggle
|
| 3129 |
will PROVE whether §19 is the freeze.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3127 |
safely; for #3 decide whether to (a) loosen §19 streak/permission, or (b) flip SMART_STAGE4_ENABLED
|
| 3128 |
off to confirm promotions resume on v7.5 path (instant A/B test, no redeploy) — that single toggle
|
| 3129 |
will PROVE whether §19 is the freeze.
|
| 3130 |
+
|
| 3131 |
+
## SESSION 25 (cont. 2) — ROOT CAUSE CONFIRMED + finding #3 RETRACTED (still NO code fix)
|
| 3132 |
+
User actions/intel: (a) flipped SMART_ENGINE_V8 master OFF -> behaviour UNCHANGED; (b) DIAG line
|
| 3133 |
+
`cyc=7 elapsed=3s states=189 s0z=0 stg[1:2 2:3 3:1 4:1 5:0] picks=79 api_ok+=86 api_err+=0
|
| 3134 |
+
thin+=50 zones+=0`; (c) reports a previous agent concluded "MEXC has no rate limit from the logs".
|
| 3135 |
+
|
| 3136 |
+
DECISIVE TESTS (run from this clean server vs live MEXC contract/kline, Min15, limit=500):
|
| 3137 |
+
concurrency=1 -> 60/60 symbols >=80 bars (100% OK, 0 empty, 0 err)
|
| 3138 |
+
concurrency=4 -> 35/60 OK, 25 EMPTY(0-bar) | concurrency=8 -> 23/60 OK, 37 EMPTY
|
| 3139 |
+
concurrency=20-> 34/60 OK, 26 EMPTY | ALL with HTTP api_err=0, success=true, code=0
|
| 3140 |
+
Re-fetch of the EXACT 0-bar symbols (APT/SEI/COTI/GRT/ID/SAFE/PHAROS — all MAJORS) SEQUENTIALLY
|
| 3141 |
+
250ms apart -> every one returns 500 bars.
|
| 3142 |
+
=> MEXC contract/kline SILENTLY rate-limits under concurrency: returns HTTP200 + success:true +
|
| 3143 |
+
EMPTY data.time array (NOT a 429, NOT an exception). App counts empty as thin_skip (len<80),
|
| 3144 |
+
so api_err stays 0. THIS is why the prior agent saw "no rate limit in logs" — the throttle is
|
| 3145 |
+
invisible to error logging. The prior agent was reading api_err=0 correctly but mis-concluded.
|
| 3146 |
+
|
| 3147 |
+
ROOT CAUSE OF THE FREEZE (finding #0): request_concurrency=20 (default) + COLD restart cache.
|
| 3148 |
+
The v8 build = a redeploy = container restart -> in-memory BARS_CACHE wiped. Cold start at
|
| 3149 |
+
conc=20 -> ~40-60% of every shard returns empty -> fresh symbols (one fetch per ~4min shard)
|
| 3150 |
+
get skipped before any zone probe -> zones+=0, s0z=0. Visible stage1-4 items = restored-from-disk
|
| 3151 |
+
saved state ("just recalling saved state"). Pre-restart it "worked" only because the cache was
|
| 3152 |
+
warm and inventory had accumulated over hours. SELF-PERPETUATING: load_bars (L3752-3758) falls
|
| 3153 |
+
back to cache ONLY on a thrown exception; an empty-200 is not an exception, so it returns empty,
|
| 3154 |
+
caches nothing, next cycle = another cold miss.
|
| 3155 |
+
|
| 3156 |
+
PROOF IT IS NOT A v8 REGRESSION: diffed last-working pre-v8 (3ce44188) vs HEAD for the WHOLE zone
|
| 3157 |
+
pipeline — load_bars / scanner_loop / should_scan / detect_candidate_zones / _probe_zone_stage /
|
| 3158 |
+
_run_machine are ALL byte-identical. Only process_symbol changed (Stage-4 brain swap + g_phase_label
|
| 3159 |
+
+ alert_on_exit gate) — none of which touches bars/zones/scan. Combined with the master-OFF test,
|
| 3160 |
+
finding #3 (§19 promotion gate as the freeze) is RETRACTED. #1 (preflight _select_verdict) and #2
|
| 3161 |
+
("Stabilising read" masking weak setups) STAND but are cosmetic, not the freeze.
|
| 3162 |
+
|
| 3163 |
+
PROPOSED FIX (NOT yet applied — awaiting user vet):
|
| 3164 |
+
1. request_concurrency 20 -> 2-3 (hot-reload via Settings, REQUEST_SEM rebuilt @L2043; no redeploy).
|
| 3165 |
+
2. load_bars: treat empty/short 200 (len<80 when fetch "succeeded") as transient -> serve cached
|
| 3166 |
+
window AND/OR one jittered retry, instead of returning empty + skipping the symbol.
|
| 3167 |
+
3. bars_cache_ttl_seconds 75 -> larger so a good fetch survives more cycles.
|
| 3168 |
+
INSTANT A/B (no code): user sets Request Concurrency=3 in Settings, then paste next [DIAG] —
|
| 3169 |
+
expect thin+ -> ~0 and zones+ -> climbing, which confirms #0.
|