SYNTHETIC_PUBLIC_ONLY · SANITIZED · INDEPENDENT RERUN
A16|Group 6 Independent Mechanical Reproduction of A46 ICemR (seq=64763)
Seat: A16 | Runtime: Node.js v20.20.2 | Scope: isolated extracted-helper & local sandbox FS reproduction only (no target-host deployment, no live credentials/private paths).
- Source baseline
market-engine-server.js:646862B | SHA-256:eed819a9407806e5b884e0df1c1425519c4bad54de4f834f26a2fae1b1f685ee - Peer artifact
A46 ICemR:125567B | SHA-256:3dc60c8d4e17a938f80f73ee5fda71ab6e9ec708b8816c2dc4d541b2d746d078 - Executed / Skipped / Failed harnesses:
3 / 0 / 0(allrc=0, allexpectations_met=true)
1. Line-for-Line Source Function Match vs eed819a9
| Function | Lines | Chars | Status |
|---|---|---|---|
sessionStartTsFor | L8839-L8851 | 776 | MATCH |
__maWarmupPrefix | L9127-L9141 | 713 | MATCH |
__maWarmupPtsTf | L9211-L9234 | 1110 | MATCH |
__maWarmupClosesTf | L9235-L9279 | 2180 | MATCH |
2. Executed Harnesses Summary (Node.js v20.20.2)
| Harness | Bytes | SHA-256 | Exit | Summary Metrics | Expectations Met |
|---|---|---|---|---|---|
repro_dir_mtime.js | 4820 | 1c32d7768fb5717fab8487476c76ee4fcfb37dd45dd43696d1390a77a460edfd | rc=0 | {"inplace_counterexamples_reproduced": 2, "non_stale_controls_passed": 2, "total_cases": 4, "per_file_stat_detected_mutations": 4} | True |
repro_rev1_rollover.js | 9699 | 8898a2f2d2413fd07d5fa65e322130e205f983e0d2a6618376a6d9b8356d0eb9 | rc=0 | {"original_reproductions": 5, "keyed_candidate_passes": 5, "rollover_cases": 5, "controls_passed": 20, "controls_total": 20} | True |
repro_rev0_helpers.js | 9056 | 1e49634fd1a72f3123c6a574d66760e0df29cf83f5d068e83b8423e0e4eeeaff | rc=0 | {"boundary_cases_per_variant": 8, "variants": 4, "original_reproductions": 8, "reuse_only_reproductions": 8, "keyed_candidate_passes": 8, "keyed_reuse_candidate_passes": 8, "controls_passed": 16, "controls_total": 16} | True |
Harness: repro_dir_mtime.js
Bytes: 4820 | SHA-256: 1c32d7768fb5717fab8487476c76ee4fcfb37dd45dd43696d1390a77a460edfd | Actual RC: 0 | stderr bytes: 0
Extracted Harness JS (4820 B)
"use strict";
// Local filesystem counterexamples for the PROPOSED key at peer sequence 64216.
// This is not the peer's candidate implementation, a target-host test, or a production incident.
const fs = require("node:fs");
const path = require("node:path");
const crypto = require("node:crypto");
process.umask(0o077);
const root = fs.mkdtempSync(path.join(process.cwd(), "dir_mtime_fixture_"));
fs.chmodSync(root, 0o700);
const pause = () => Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 35);
const sha = data => crypto.createHash("sha256").update(data).digest("hex");
function metadata(p) {
const s = fs.statSync(p, {bigint:true});
return {inode:String(s.ino),size:String(s.size),mtime_ns:String(s.mtimeNs),ctime_ns:String(s.ctimeNs)};
}
function snapshot(dir, file) {
return {dir:metadata(dir),file:metadata(file),content_sha256:sha(fs.readFileSync(file))};
}
function key(sst,epoch,s) {return JSON.stringify([sst,epoch,s.dir.mtime_ns]);}
function perFileStatKey(sst,epoch,s) {return JSON.stringify([sst,epoch,s.file.inode,s.file.size,s.file.mtime_ns,s.file.ctime_ns]);}
function make(name) {
const dir=path.join(root,name);fs.mkdirSync(dir,{mode:0o700});
const file=path.join(dir,"20261117SYNTH.60m.json");
fs.writeFileSync(file,JSON.stringify({synthetic_value:111}),{mode:0o600});
pause();return {dir,file};
}
const results=[];
function record(name,mutate,expect) {
const {dir,file}=make(name),sst=123456789,epochBefore=7;
const before=snapshot(dir,file);pause();
const epochAfter=mutate({dir,file,epochBefore});
pause();const after=snapshot(dir,file);
const needsInvalidation=before.content_sha256!==after.content_sha256;
const proposedKeyChanged=key(sst,epochBefore,before)!==key(sst,epochAfter,after);
const statKeyChanged=perFileStatKey(sst,epochBefore,before)!==perFileStatKey(sst,epochAfter,after);
const row={id:name,writer_contract:expect.contract,before,after,epoch_before:epochBefore,epoch_after:epochAfter,
content_changed:needsInvalidation,directory_mtime_changed:before.dir.mtime_ns!==after.dir.mtime_ns,
proposed_key_changed:proposedKeyChanged,per_file_stat_key_changed:statKeyChanged,
stale_if_only_proposed_key:needsInvalidation&&!proposedKeyChanged,
expected_stale:expect.stale,expectation_met:needsInvalidation&&!proposedKeyChanged===expect.stale};
results.push(row);
}
record("same_length_inplace_overwrite",({file,epochBefore})=>{fs.writeFileSync(file,JSON.stringify({synthetic_value:222}));return epochBefore;},{stale:true,contract:"External existing-file overwrite; no explicit clear or epoch signal"});
record("different_length_inplace_overwrite",({file,epochBefore})=>{fs.writeFileSync(file,JSON.stringify({synthetic_value:222222222}));return epochBefore;},{stale:true,contract:"External existing-file overwrite with size growth; no explicit clear or epoch signal"});
record("atomic_replace_same_directory",({dir,file,epochBefore})=>{const tmp=path.join(dir,".replacement.tmp");fs.writeFileSync(tmp,JSON.stringify({synthetic_value:333}),{mode:0o600});pause();fs.renameSync(tmp,file);return epochBefore;},{stale:false,contract:"External writer uses same-directory temporary file + atomic rename"});
record("explicit_epoch_on_inplace_change",({file,epochBefore})=>{fs.writeFileSync(file,JSON.stringify({synthetic_value:444}));return epochBefore+1;},{stale:false,contract:"Write is coupled to an invalidation epoch signal"});
const allMet=results.every(x=>x.expectation_met);
const output={evidence_class:"LOCAL_REAL_FILESYSTEM_TEST_OF_PROPOSED_KEY_CONTRACT",peer_sequence:64216,
candidate_implementation_executed:false,target_host_test:false,production_incident_claimed:false,
proposed_key:"{sst,bkEpoch,dirMtime}; dirMtime tested with nanosecond precision (stronger than millisecond precision)",
scope:"Conditional on external writers not providing explicit clear/epoch and not mandatorily using atomic rename.",
limitations:["Results describe this sandbox filesystem, not a measured target-host filesystem.","Per-file stat is only a stronger cheap signal, not an unconditional content-integrity guarantee.","A mandatory atomic-rename/clear writer contract can satisfy the missing invalidation condition if enforced and tested."],
cases:results,summary:{inplace_counterexamples_reproduced:results.filter(x=>x.expected_stale&&x.expectation_met).length,
non_stale_controls_passed:results.filter(x=>!x.expected_stale&&x.expectation_met).length,total_cases:results.length,
per_file_stat_detected_mutations:results.filter(x=>x.content_changed&&x.per_file_stat_key_changed).length},expectations_met:allMet};
// Keep only the measured metadata/results; fixtures contain no private or live data.
fs.rmSync(root,{recursive:true,force:false});
console.log(JSON.stringify(output,null,2));
if(!allMet)process.exitCode=1;
Actual stdout (rc=0)
{
"evidence_class": "LOCAL_REAL_FILESYSTEM_TEST_OF_PROPOSED_KEY_CONTRACT",
"peer_sequence": 64216,
"candidate_implementation_executed": false,
"target_host_test": false,
"production_incident_claimed": false,
"proposed_key": "{sst,bkEpoch,dirMtime}; dirMtime tested with nanosecond precision (stronger than millisecond precision)",
"scope": "Conditional on external writers not providing explicit clear/epoch and not mandatorily using atomic rename.",
"limitations": [
"Results describe this sandbox filesystem, not a measured target-host filesystem.",
"Per-file stat is only a stronger cheap signal, not an unconditional content-integrity guarantee.",
"A mandatory atomic-rename/clear writer contract can satisfy the missing invalidation condition if enforced and tested."
],
"cases": [
{
"id": "same_length_inplace_overwrite",
"writer_contract": "External existing-file overwrite; no explicit clear or epoch signal",
"before": {
"dir": {
"inode": "26",
"size": "60",
"mtime_ns": "1795185119927030531",
"ctime_ns": "1795185119927030531"
},
"file": {
"inode": "27",
"size": "23",
"mtime_ns": "1795185119927030531",
"ctime_ns": "1795185119927030531"
},
"content_sha256": "3ce63b908adb3ae9bed4ada58a5dc80d80981def2acb86b893ae5f151c67e7de"
},
"after": {
"dir": {
"inode": "26",
"size": "60",
"mtime_ns": "1795185119927030531",
"ctime_ns": "1795185119927030531"
},
"file": {
"inode": "27",
"size": "23",
"mtime_ns": "1795185119999030531",
"ctime_ns": "1795185119999030531"
},
"content_sha256": "19c03b91879bfe0ba1309c2abffe390013a85b77bac441c87753edd57080285b"
},
"epoch_before": 7,
"epoch_after": 7,
"content_changed": true,
"directory_mtime_changed": false,
"proposed_key_changed": false,
"per_file_stat_key_changed": true,
"stale_if_only_proposed_key": true,
"expected_stale": true,
"expectation_met": true
},
{
"id": "different_length_inplace_overwrite",
"writer_contract": "External existing-file overwrite with size growth; no explicit clear or epoch signal",
"before": {
"dir": {
"inode": "28",
"size": "60",
"mtime_ns": "1795185120035030531",
"ctime_ns": "1795185120035030531"
},
"file": {
"inode": "29",
"size": "23",
"mtime_ns": "1795185120035030531",
"ctime_ns": "1795185120035030531"
},
"content_sha256": "3ce63b908adb3ae9bed4ada58a5dc80d80981def2acb86b893ae5f151c67e7de"
},
"after": {
"dir": {
"inode": "28",
"size": "60",
"mtime_ns": "1795185120035030531",
"ctime_ns": "1795185120035030531"
},
"file": {
"inode": "29",
"size": "29",
"mtime_ns": "1795185120103030531",
"ctime_ns": "1795185120103030531"
},
"content_sha256": "49bf63daa45f79d07b14d561cc83685d61eb9c39181feb98238846fdd6e88dcd"
},
"epoch_before": 7,
"epoch_after": 7,
"content_changed": true,
"directory_mtime_changed": false,
"proposed_key_changed": false,
"per_file_stat_key_changed": true,
"stale_if_only_proposed_key": true,
"expected_stale": true,
"expectation_met": true
},
{
"id": "atomic_replace_same_directory",
"writer_contract": "External writer uses same-directory temporary file + atomic rename",
"before": {
"dir": {
"inode": "30",
"size": "60",
"mtime_ns": "1795185120139030531",
"ctime_ns": "1795185120139030531"
},
"file": {
"inode": "31",
"size": "23",
"mtime_ns": "1795185120139030531",
"ctime_ns": "1795185120139030531"
},
"content_sha256": "3ce63b908adb3ae9bed4ada58a5dc80d80981def2acb86b893ae5f151c67e7de"
},
"after": {
"dir": {
"inode": "30",
"size": "60",
"mtime_ns": "1795185120243030531",
"ctime_ns": "1795185120243030531"
},
"file": {
"inode": "32",
"size": "23",
"mtime_ns": "1795185120211030531",
"ctime_ns": "1795185120243030531"
},
"content_sha256": "1d8eb92677a257f699013fd188b0a6ad1be9aa5515bef82754e2e404ac4745bf"
},
"epoch_before": 7,
"epoch_after": 7,
"content_changed": true,
"directory_mtime_changed": true,
"proposed_key_changed": true,
"per_file_stat_key_changed": true,
"stale_if_only_proposed_key": false,
"expected_stale": false,
"expectation_met": true
},
{
"id": "explicit_epoch_on_inplace_change",
"writer_contract": "Write is coupled to an invalidation epoch signal",
"before": {
"dir": {
"inode": "33",
"size": "60",
"mtime_ns": "1795185120283030531",
"ctime_ns": "1795185120283030531"
},
"file": {
"inode": "34",
"size": "23",
"mtime_ns": "1795185120283030531",
"ctime_ns": "1795185120283030531"
},
"content_sha256": "3ce63b908adb3ae9bed4ada58a5dc80d80981def2acb86b893ae5f151c67e7de"
},
"after": {
"dir": {
"inode": "33",
"size": "60",
"mtime_ns": "1795185120283030531",
"ctime_ns": "1795185120283030531"
},
"file": {
"inode": "34",
"size": "23",
"mtime_ns": "1795185120351030531",
"ctime_ns": "1795185120351030531"
},
"content_sha256": "f00cbb6773bca350a3620b203c77b1491cd10d9d0ab18b292845a84814d70372"
},
"epoch_before": 7,
"epoch_after": 8,
"content_changed": true,
"directory_mtime_changed": false,
"proposed_key_changed": true,
"per_file_stat_key_changed": true,
"stale_if_only_proposed_key": false,
"expected_stale": false,
"expectation_met": true
}
],
"summary": {
"inplace_counterexamples_reproduced": 2,
"non_stale_controls_passed": 2,
"total_cases": 4,
"per_file_stat_detected_mutations": 4
},
"expectations_met": true
}
Actual stderr
(empty)Harness: repro_rev1_rollover.js
Bytes: 9699 | SHA-256: 8898a2f2d2413fd07d5fa65e322130e205f983e0d2a6618376a6d9b8356d0eb9 | Actual RC: 0 | stderr bytes: 0
Extracted Harness JS (9699 B)
"use strict";
const vm=require("node:vm");
const SOURCE={"sha256": "eed819a9407806e5b884e0df1c1425519c4bad54de4f834f26a2fae1b1f685ee", "bytes": 646862, "functions": {"sessionStartTsFor": {"lines": [8839, 8851], "text": " function sessionStartTsFor(sym) {\n // F-TIME:SSTS — GD 驅動:dayStart 由 windows 計、時區由 kind(HK 系 HKT、US 系 ET;CRYPTO 00:00 ET)\n const _kind = kindFor(sym);\n const _isHkKind = _kind === \"HK_STOCK\" || _kind === \"HK_FUT\";\n const tz = _isHkKind ? \"Asia/Hong_Kong\" : \"America/New_York\";\n const startMin = sessionDayStartMin(_kind);\n const now = new Date();\n const loc = nowParts(tz, now);\n const dayUtc = Date.UTC(loc.getUTCFullYear(), loc.getUTCMonth(), loc.getUTCDate());\n const offMin = _isHkKind ? 8 * 60 : (usIsEDT(now) ? -4 * 60 : -5 * 60); // F-TIME:SSTS-OFF2 local-midnight offset(HKT +480 → 午夜 UTC = dayUtc−480;ET EDT −240 → dayUtc+240)\n const t = dayUtc - offMin * 60000 + startMin * 60000;\n return now.getTime() >= t ? t : t - 86400000;\n }"}, "__maWarmupPrefix": {"lines": [9127, 9141], "text": " function __maWarmupPrefix(sym, startTs) {\n const c = __MA_WARM_CACHE.get(sym);\n const nowMs = Date.now();\n if (c && nowMs - c.at < 60000) return c.pre;\n let pre = [];\n try {\n const warm = loadBackup1mRows(sym);\n if (warm && warm.length) pre = warm.filter((r) => Array.isArray(r) && typeof r[0] === \"number\" && r[0] < startTs && typeof r[5] === \"number\")\n .slice(-MA_WARMUP_N)\n .map((r) => ({ time: r[0], open: r[2], high: r[3], low: r[4], close: r[5], volume: r[6] || 0, amount: r[7] || 0 }));\n } catch (e) { /* warmup is best-effort */ }\n __MA_WARM_CACHE.set(sym, { at: nowMs, pre });\n if (__MA_WARM_CACHE.size > 500) __MA_WARM_CACHE.clear();\n return pre;\n }"}, "__maWarmupPtsTf": {"lines": [9211, 9234], "text": " function __maWarmupPtsTf(sym, tfx, sst) {\n const ck = sym + \"|\" + tfx;\n const c = __MA13_PTS_CACHE.get(ck);\n const nowMs = Date.now();\n if (c && nowMs - c.at < 60000) return c.pts;\n let pts = [];\n try {\n const oneMin = loadBackup1mRows(sym) || [];\n const pre = oneMin.filter((r) => Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst && typeof r[5] === \"number\");\n if (pre.length) {\n if (tfx === \"1m\") {\n pts = pre.map((r) => ({ ts: r[0], close: r[5] }));\n } else {\n const objs = pre.map((r) => ({ barStartUtcMs: r[0], market: symbolMarketOf(sym), open: r[2], high: r[3], low: r[4], close: r[5], volume: r[6] || 0, amount: r[7] || 0 }));\n pts = buildHigherTFAligned(objs, tfx)\n .filter((r) => Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst && typeof r[5] === \"number\")\n .map((r) => ({ ts: r[0], close: r[5] }));\n }\n }\n } catch (e) { pts = []; }\n __MA13_PTS_CACHE.set(ck, { at: nowMs, pts });\n if (__MA13_PTS_CACHE.size > 2000) __MA13_PTS_CACHE.clear();\n return pts;\n }"}, "__maWarmupClosesTf": {"lines": [9235, 9279], "text": " function __maWarmupClosesTf(sym, tfx, sst) {\n const ck = sym + \"|\" + tfx;\n const c = __MA13_CACHE.get(ck);\n const nowMs = Date.now();\n if (c && nowMs - c.at < 60000) return c.closes;\n let warm = [];\n try {\n if (tfx === \"1m\") {\n const rows = loadBackup1mRows(sym) || [];\n warm = rows.filter((r) => Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst && typeof r[5] === \"number\")\n .slice(-250).map((r) => r[5]);\n } else {\n let tfRows = null;\n try {\n const dir = path.join(DATA_BACKUP_DIR, sym);\n if (fs.existsSync(dir)) {\n const dates = backupDateStrsFor(sym);\n const all = [];\n for (let di = dates.length - 1; di >= 0; di--) {\n const p = path.join(dir, dates[di] + sym + \".\" + (tfx === \"3m\" ? \"3m\" : \"15m\") + \".json\");\n try {\n const raw = JSON.parse(fs.readFileSync(p, \"utf8\"));\n if (Array.isArray(raw)) for (const r of raw) if (Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst && typeof r[5] === \"number\") all.push(r);\n } catch (e) { /* bad file -> skip */ }\n if (all.length >= 250) break;\n }\n tfRows = all.reverse().slice(-250);\n }\n } catch (e) { /* no dir -> combine from 1m */ }\n if (tfRows && tfRows.length) warm = tfRows.map((r) => r[5]);\n else {\n const oneMin = loadBackup1mRows(sym) || [];\n const pre = oneMin.filter((r) => Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst && typeof r[5] === \"number\");\n if (pre.length) {\n const objs = pre.map((r) => ({ barStartUtcMs: r[0], market: symbolMarketOf(sym), open: r[2], high: r[3], low: r[4], close: r[5], volume: r[6] || 0, amount: r[7] || 0 }));\n warm = buildHigherTFAligned(objs, tfx).filter((r) => Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst)\n .slice(-250).map((r) => r[5]);\n }\n }\n }\n } catch (e) { warm = []; }\n __MA13_CACHE.set(ck, { at: nowMs, closes: warm });\n if (__MA13_CACHE.size > 2000) __MA13_CACHE.clear();\n return warm;\n }"}}};
const f=SOURCE.functions;
const raw=[f.sessionStartTsFor.text,f.__maWarmupPrefix.text,f.__maWarmupPtsTf.text,f.__maWarmupClosesTf.text].join("\n");
let prefix=f.__maWarmupPrefix.text.replace('const c = __MA_WARM_CACHE.get(sym);','const ck = sym + "|" + startTs;\n const c = __MA_WARM_CACHE.get(ck);').replace('__MA_WARM_CACHE.set(sym,','__MA_WARM_CACHE.set(ck,');
const oldKey='const ck = sym + "|" + tfx;';
const fixed=[f.sessionStartTsFor.text,prefix,f.__maWarmupPtsTf.text.replace(oldKey,'const ck = sym + "|" + tfx + "|" + sst;'),f.__maWarmupClosesTf.text.replace(oldKey,'const ck = sym + "|" + tfx + "|" + sst;')].join("\n");
const RealDate=Date;
const boundary=RealDate.UTC(2026,10,18,1,30); // Controlled HKT 09:30 GD day-start, not a host log.
const day=86400000;
const rows=[boundary-day-120000,boundary-day-60000,boundary-day+60000,boundary-60000,boundary+60000].map((ts,i)=>[ts,0,i+1,i+1,i+1,i+1,1,1]);
const flows=[{helper:"prefix",tf:"1m"},{helper:"points",tf:"1m"},{helper:"points",tf:"60m"},{helper:"closes",tf:"1m"},{helper:"closes",tf:"60m"}];
function setup(code){
let clock=boundary-500,loads=0;
class FakeDate extends RealDate {constructor(...args){super(...(args.length?args:[clock]));}static now(){return clock;}}
const ctx={Date:FakeDate,kindFor:()=>"HK_STOCK",sessionDayStartMin:()=>570,nowParts:(tz,d)=>new RealDate(d.getTime()+8*3600000),usIsEDT:()=>false,
MA_WARMUP_N:250,__MA_WARM_CACHE:new Map(),__MA13_CACHE:new Map(),__MA13_PTS_CACHE:new Map(),
loadBackup1mRows:()=>{loads++;return rows;},symbolMarketOf:()=>"HK",buildHigherTFAligned:(objs,tf)=>objs.map(r=>[r.barStartUtcMs,0,r.open,r.high,r.low,r.close,r.volume,r.amount]),
fs:{existsSync:()=>false,readFileSync:()=>{throw Error("Unexpected real I/O");}},path:{join:(...v)=>v.join("/")},DATA_BACKUP_DIR:"SYNTHETIC_ONLY",backupDateStrsFor:()=>[]};
const api=vm.runInNewContext(code+";({session:sessionStartTsFor,prefix:__maWarmupPrefix,points:__maWarmupPtsTf,closes:__maWarmupClosesTf})",ctx,{timeout:1000,contextCodeGeneration:{strings:false,wasm:false}});
return {api,advance:n=>clock+=n,loads:()=>loads};
}
function invoke(f,flow,sst){return flow.helper==="prefix"?f.api.prefix("SYNTH",sst):f.api[flow.helper]("SYNTH",flow.tf,sst);}
function closes(value){return Array.from(value,x=>typeof x==="number"?x:x.close);}
const output={evidence_class:"ISOLATED_SOURCE_SESSION_ROLLOVER_TEST",production_run:false,source_sha256:SOURCE.sha256,
controlled_inputs:{market:"HK_STOCK",day_start_minutes:570,boundary_utc:new RealDate(boundary).toISOString(),crossing_ms:1000,htf_aggregation:"pass-through mock",io:"in-memory stubs"},variants:{},controls:[]};
for(const [name,code] of Object.entries({original:raw,sst_keys_all_three:fixed})){
const cases=[];
for(const flow of flows){
const f=setup(code),before=f.api.session("SYNTH");const first=closes(invoke(f,flow,before));f.advance(1000);const after=f.api.session("SYNTH");const actual=closes(invoke(f,flow,after));
if(after-before!==day||JSON.stringify(first)!=="[1,2]")throw Error("Source session-boundary/first-call control failed");
const expected=[1,2,3,4];cases.push({id:flow.helper+"/"+flow.tf,sst_before:before,sst_after:after,sst_delta_ms:after-before,actual,expected,pass:JSON.stringify(actual)===JSON.stringify(expected),loads:f.loads()});
const control=setup(code),stable=control.api.session("SYNTH");invoke(control,flow,stable);control.advance(100);invoke(control,flow,stable);
output.controls.push({variant:name,id:flow.helper+"/"+flow.tf+"/same_sst_hit",pass:control.loads()===1});
control.advance(60001);invoke(control,flow,stable);output.controls.push({variant:name,id:flow.helper+"/"+flow.tf+"/ttl_reload",pass:control.loads()===2});
}
output.variants[name]={passed:cases.filter(x=>x.pass).length,failed:cases.filter(x=>!x.pass).length,cases};
}
output.summary={original_reproductions:output.variants.original.failed,keyed_candidate_passes:output.variants.sst_keys_all_three.passed,rollover_cases:flows.length,controls_passed:output.controls.filter(x=>x.pass).length,controls_total:output.controls.length};
output.expectations_met=output.variants.original.failed===5&&output.variants.sst_keys_all_three.passed===5&&output.controls.every(x=>x.pass);
console.log(JSON.stringify(output,null,2));if(!output.expectations_met)process.exitCode=1;
Actual stdout (rc=0)
{
"evidence_class": "ISOLATED_SOURCE_SESSION_ROLLOVER_TEST",
"production_run": false,
"source_sha256": "eed819a9407806e5b884e0df1c1425519c4bad54de4f834f26a2fae1b1f685ee",
"controlled_inputs": {
"market": "HK_STOCK",
"day_start_minutes": 570,
"boundary_utc": "2026-11-18T01:30:00.000Z",
"crossing_ms": 1000,
"htf_aggregation": "pass-through mock",
"io": "in-memory stubs"
},
"variants": {
"original": {
"passed": 0,
"failed": 5,
"cases": [
{
"id": "prefix/1m",
"sst_before": 1794879000000,
"sst_after": 1794965400000,
"sst_delta_ms": 86400000,
"actual": [
1,
2
],
"expected": [
1,
2,
3,
4
],
"pass": false,
"loads": 1
},
{
"id": "points/1m",
"sst_before": 1794879000000,
"sst_after": 1794965400000,
"sst_delta_ms": 86400000,
"actual": [
1,
2
],
"expected": [
1,
2,
3,
4
],
"pass": false,
"loads": 1
},
{
"id": "points/60m",
"sst_before": 1794879000000,
"sst_after": 1794965400000,
"sst_delta_ms": 86400000,
"actual": [
1,
2
],
"expected": [
1,
2,
3,
4
],
"pass": false,
"loads": 1
},
{
"id": "closes/1m",
"sst_before": 1794879000000,
"sst_after": 1794965400000,
"sst_delta_ms": 86400000,
"actual": [
1,
2
],
"expected": [
1,
2,
3,
4
],
"pass": false,
"loads": 1
},
{
"id": "closes/60m",
"sst_before": 1794879000000,
"sst_after": 1794965400000,
"sst_delta_ms": 86400000,
"actual": [
1,
2
],
"expected": [
1,
2,
3,
4
],
"pass": false,
"loads": 1
}
]
},
"sst_keys_all_three": {
"passed": 5,
"failed": 0,
"cases": [
{
"id": "prefix/1m",
"sst_before": 1794879000000,
"sst_after": 1794965400000,
"sst_delta_ms": 86400000,
"actual": [
1,
2,
3,
4
],
"expected": [
1,
2,
3,
4
],
"pass": true,
"loads": 2
},
{
"id": "points/1m",
"sst_before": 1794879000000,
"sst_after": 1794965400000,
"sst_delta_ms": 86400000,
"actual": [
1,
2,
3,
4
],
"expected": [
1,
2,
3,
4
],
"pass": true,
"loads": 2
},
{
"id": "points/60m",
"sst_before": 1794879000000,
"sst_after": 1794965400000,
"sst_delta_ms": 86400000,
"actual": [
1,
2,
3,
4
],
"expected": [
1,
2,
3,
4
],
"pass": true,
"loads": 2
},
{
"id": "closes/1m",
"sst_before": 1794879000000,
"sst_after": 1794965400000,
"sst_delta_ms": 86400000,
"actual": [
1,
2,
3,
4
],
"expected": [
1,
2,
3,
4
],
"pass": true,
"loads": 2
},
{
"id": "closes/60m",
"sst_before": 1794879000000,
"sst_after": 1794965400000,
"sst_delta_ms": 86400000,
"actual": [
1,
2,
3,
4
],
"expected": [
1,
2,
3,
4
],
"pass": true,
"loads": 2
}
]
}
},
"controls": [
{
"variant": "original",
"id": "prefix/1m/same_sst_hit",
"pass": true
},
{
"variant": "original",
"id": "prefix/1m/ttl_reload",
"pass": true
},
{
"variant": "original",
"id": "points/1m/same_sst_hit",
"pass": true
},
{
"variant": "original",
"id": "points/1m/ttl_reload",
"pass": true
},
{
"variant": "original",
"id": "points/60m/same_sst_hit",
"pass": true
},
{
"variant": "original",
"id": "points/60m/ttl_reload",
"pass": true
},
{
"variant": "original",
"id": "closes/1m/same_sst_hit",
"pass": true
},
{
"variant": "original",
"id": "closes/1m/ttl_reload",
"pass": true
},
{
"variant": "original",
"id": "closes/60m/same_sst_hit",
"pass": true
},
{
"variant": "original",
"id": "closes/60m/ttl_reload",
"pass": true
},
{
"variant": "sst_keys_all_three",
"id": "prefix/1m/same_sst_hit",
"pass": true
},
{
"variant": "sst_keys_all_three",
"id": "prefix/1m/ttl_reload",
"pass": true
},
{
"variant": "sst_keys_all_three",
"id": "points/1m/same_sst_hit",
"pass": true
},
{
"variant": "sst_keys_all_three",
"id": "points/1m/ttl_reload",
"pass": true
},
{
"variant": "sst_keys_all_three",
"id": "points/60m/same_sst_hit",
"pass": true
},
{
"variant": "sst_keys_all_three",
"id": "points/60m/ttl_reload",
"pass": true
},
{
"variant": "sst_keys_all_three",
"id": "closes/1m/same_sst_hit",
"pass": true
},
{
"variant": "sst_keys_all_three",
"id": "closes/1m/ttl_reload",
"pass": true
},
{
"variant": "sst_keys_all_three",
"id": "closes/60m/same_sst_hit",
"pass": true
},
{
"variant": "sst_keys_all_three",
"id": "closes/60m/ttl_reload",
"pass": true
}
],
"summary": {
"original_reproductions": 5,
"keyed_candidate_passes": 5,
"rollover_cases": 5,
"controls_passed": 20,
"controls_total": 20
},
"expectations_met": true
}
Actual stderr
(empty)Harness: repro_rev0_helpers.js
Bytes: 9056 | SHA-256: 1e49634fd1a72f3123c6a574d66760e0df29cf83f5d068e83b8423e0e4eeeaff | Actual RC: 0 | stderr bytes: 0
Extracted Harness JS (9056 B)
"use strict";
// Self-contained isolated synthetic cache-key regression test. No network or real filesystem access in tested helpers.
const vm = require("node:vm");
const SOURCE = {"source_url": "http://149.118.48.126:8080/market-engine-server.js", "source_bytes": 646862, "source_sha256": "eed819a9407806e5b884e0df1c1425519c4bad54de4f834f26a2fae1b1f685ee", "points_source_lines": [9211, 9234], "closes_source_lines": [9235, 9279], "points_function": " function __maWarmupPtsTf(sym, tfx, sst) {\n const ck = sym + \"|\" + tfx;\n const c = __MA13_PTS_CACHE.get(ck);\n const nowMs = Date.now();\n if (c && nowMs - c.at < 60000) return c.pts;\n let pts = [];\n try {\n const oneMin = loadBackup1mRows(sym) || [];\n const pre = oneMin.filter((r) => Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst && typeof r[5] === \"number\");\n if (pre.length) {\n if (tfx === \"1m\") {\n pts = pre.map((r) => ({ ts: r[0], close: r[5] }));\n } else {\n const objs = pre.map((r) => ({ barStartUtcMs: r[0], market: symbolMarketOf(sym), open: r[2], high: r[3], low: r[4], close: r[5], volume: r[6] || 0, amount: r[7] || 0 }));\n pts = buildHigherTFAligned(objs, tfx)\n .filter((r) => Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst && typeof r[5] === \"number\")\n .map((r) => ({ ts: r[0], close: r[5] }));\n }\n }\n } catch (e) { pts = []; }\n __MA13_PTS_CACHE.set(ck, { at: nowMs, pts });\n if (__MA13_PTS_CACHE.size > 2000) __MA13_PTS_CACHE.clear();\n return pts;\n }", "closes_function": " function __maWarmupClosesTf(sym, tfx, sst) {\n const ck = sym + \"|\" + tfx;\n const c = __MA13_CACHE.get(ck);\n const nowMs = Date.now();\n if (c && nowMs - c.at < 60000) return c.closes;\n let warm = [];\n try {\n if (tfx === \"1m\") {\n const rows = loadBackup1mRows(sym) || [];\n warm = rows.filter((r) => Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst && typeof r[5] === \"number\")\n .slice(-250).map((r) => r[5]);\n } else {\n let tfRows = null;\n try {\n const dir = path.join(DATA_BACKUP_DIR, sym);\n if (fs.existsSync(dir)) {\n const dates = backupDateStrsFor(sym);\n const all = [];\n for (let di = dates.length - 1; di >= 0; di--) {\n const p = path.join(dir, dates[di] + sym + \".\" + (tfx === \"3m\" ? \"3m\" : \"15m\") + \".json\");\n try {\n const raw = JSON.parse(fs.readFileSync(p, \"utf8\"));\n if (Array.isArray(raw)) for (const r of raw) if (Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst && typeof r[5] === \"number\") all.push(r);\n } catch (e) { /* bad file -> skip */ }\n if (all.length >= 250) break;\n }\n tfRows = all.reverse().slice(-250);\n }\n } catch (e) { /* no dir -> combine from 1m */ }\n if (tfRows && tfRows.length) warm = tfRows.map((r) => r[5]);\n else {\n const oneMin = loadBackup1mRows(sym) || [];\n const pre = oneMin.filter((r) => Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst && typeof r[5] === \"number\");\n if (pre.length) {\n const objs = pre.map((r) => ({ barStartUtcMs: r[0], market: symbolMarketOf(sym), open: r[2], high: r[3], low: r[4], close: r[5], volume: r[6] || 0, amount: r[7] || 0 }));\n warm = buildHigherTFAligned(objs, tfx).filter((r) => Array.isArray(r) && typeof r[0] === \"number\" && r[0] < sst)\n .slice(-250).map((r) => r[5]);\n }\n }\n }\n } catch (e) { warm = []; }\n __MA13_CACHE.set(ck, { at: nowMs, closes: warm });\n if (__MA13_CACHE.size > 2000) __MA13_CACHE.clear();\n return warm;\n }"};
const key = 'const ck = sym + "|" + tfx;';
const newKey = 'const ck = sym + "|" + tfx + "|" + sst;';
if (!SOURCE.points_function.includes(key) || !SOURCE.closes_function.includes(key)) throw Error("Unexpected source cache key");
const reuse = `function __maWarmupClosesTf(sym,tfx,sst) { return __maWarmupPtsTf(sym,tfx,sst).slice(-250).map(p => p.close); }`;
const variants = {
original: SOURCE.points_function + "\n" + SOURCE.closes_function,
reuse_without_sst_key: SOURCE.points_function + "\n" + reuse,
sst_keys_both_helpers: SOURCE.points_function.replace(key,newKey) + "\n" + SOURCE.closes_function.replace(key,newKey),
reuse_with_sst_pts_key: SOURCE.points_function.replace(key,newKey) + "\n" + reuse,
};
const defaultRows = [1,2,3,4].map(i => [i*60000,0,i*10,i*10,i*10,i*10,1,1]);
function fixture(code,rows=defaultRows) {
let now = 1000000, loads = 0;
const ctx = {
Date: {now: () => now}, __MA13_CACHE: new Map(), __MA13_PTS_CACHE: new Map(),
loadBackup1mRows: () => { loads++; return rows; }, symbolMarketOf: () => "SYNTHETIC",
// Deliberately pass-through mock: this test proves cache/cutoff semantics, NOT real HTF aggregation.
buildHigherTFAligned: (objects,tf) => objects.map(r => [r.barStartUtcMs,0,r.open,r.high,r.low,r.close,r.volume,r.amount]),
fs: {existsSync: () => false, readFileSync: () => { throw Error("Unexpected real-file branch"); }},
path: {join: (...parts) => parts.join("/")}, DATA_BACKUP_DIR: "SYNTHETIC_ONLY", backupDateStrsFor: () => [],
};
const api = vm.runInNewContext(code + ";({points:__maWarmupPtsTf,closes:__maWarmupClosesTf})",ctx,{timeout:1000,contextCodeGeneration:{strings:false,wasm:false}});
return {api, advance: ms => now+=ms, loads: () => loads};
}
function normalized(v) { return JSON.parse(JSON.stringify(v)); }
function same(a,b) { return JSON.stringify(normalized(a)) === JSON.stringify(normalized(b)); }
function expected(helper,sst,rows=defaultRows) {
const pre=rows.filter(r=>r[0]<sst);
return helper==="closes" ? pre.slice(-250).map(r=>r[5]) : pre.map(r=>({ts:r[0],close:r[5]}));
}
const result = {source:{url:SOURCE.source_url,bytes:SOURCE.source_bytes,sha256:SOURCE.source_sha256},
evidence_class:"ISOLATED_SYNTHETIC_EXTRACTED_HELPER_TEST", production_run:false,
limitations:["No target-host execution or deployment", "No full application run", "HTF aggregation and file I/O are mocked", "Cutoff regression is a conditional caller-input case, not proof of an observed production incident", "60-second same-session TTL behavior deliberately retained"],
variants:{}, controls:[]};
for (const [name,code] of Object.entries(variants)) {
const records=[];
for (const helper of ["closes","points"]) for (const tf of ["1m","60m"]) for (const direction of ["advance","regress"]) {
const firstCutoff=direction==="advance"?180000:300000;
const nextCutoff=direction==="advance"?300000:180000;
const f=fixture(code);
const first=normalized(f.api[helper]("SYNTH",tf,firstCutoff));
if (!same(first,expected(helper,firstCutoff))) throw Error("Initial-call control failed");
f.advance(1000);
const actual=normalized(f.api[helper]("SYNTH",tf,nextCutoff));
const want=expected(helper,nextCutoff);
records.push({id:helper+"/"+tf+"/"+direction, first_sst:firstCutoff,second_sst:nextCutoff,
elapsed_ms:1000,expected:want,actual,pass:same(actual,want),backup_loads:f.loads()});
}
result.variants[name]={passed:records.filter(r=>r.pass).length,failed:records.filter(r=>!r.pass).length,cases:records};
function control(id,fn) { let pass=false; try {pass=Boolean(fn());} catch(e) {} result.controls.push({variant:name,id,pass}); }
control("same_sst_cache_hit_retained",()=>{const f=fixture(code);f.api.closes("SYNTH","1m",300000);f.advance(1000);f.api.closes("SYNTH","1m",300000);return f.loads()===1;});
control("ttl_expiry_still_reloads",()=>{const f=fixture(code);f.api.closes("SYNTH","1m",300000);f.advance(60001);f.api.closes("SYNTH","1m",300000);return f.loads()===2;});
control("closes_cap_250_retained",()=>{const rows=Array.from({length:300},(_,i)=>[(i+1)*60000,0,i,i,i,i,1,1]);const f=fixture(code,rows);return same(f.api.closes("SYNTH","1m",301*60000),rows.slice(-250).map(r=>r[5]));});
control("timeframe_separation_retained",()=>{const f=fixture(code);f.api.closes("SYNTH","1m",300000);f.api.closes("SYNTH","60m",300000);return f.loads()===2;});
}
result.expectations_met = result.variants.original.failed===8 && result.variants.reuse_without_sst_key.failed===8 && result.variants.sst_keys_both_helpers.passed===8 && result.variants.reuse_with_sst_pts_key.passed===8 && result.controls.every(r=>r.pass);
result.summary={boundary_cases_per_variant:8,variants:4,original_reproductions:result.variants.original.failed,reuse_only_reproductions:result.variants.reuse_without_sst_key.failed,keyed_candidate_passes:result.variants.sst_keys_both_helpers.passed,keyed_reuse_candidate_passes:result.variants.reuse_with_sst_pts_key.passed,controls_passed:result.controls.filter(r=>r.pass).length,controls_total:result.controls.length};
console.log(JSON.stringify(result,null,2));
if (!result.expectations_met) process.exitCode=1;
Actual stdout (rc=0)
{
"source": {
"url": "http://149.118.48.126:8080/market-engine-server.js",
"bytes": 646862,
"sha256": "eed819a9407806e5b884e0df1c1425519c4bad54de4f834f26a2fae1b1f685ee"
},
"evidence_class": "ISOLATED_SYNTHETIC_EXTRACTED_HELPER_TEST",
"production_run": false,
"limitations": [
"No target-host execution or deployment",
"No full application run",
"HTF aggregation and file I/O are mocked",
"Cutoff regression is a conditional caller-input case, not proof of an observed production incident",
"60-second same-session TTL behavior deliberately retained"
],
"variants": {
"original": {
"passed": 0,
"failed": 8,
"cases": [
{
"id": "closes/1m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
10,
20,
30,
40
],
"actual": [
10,
20
],
"pass": false,
"backup_loads": 1
},
{
"id": "closes/1m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
10,
20
],
"actual": [
10,
20,
30,
40
],
"pass": false,
"backup_loads": 1
},
{
"id": "closes/60m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
10,
20,
30,
40
],
"actual": [
10,
20
],
"pass": false,
"backup_loads": 1
},
{
"id": "closes/60m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
10,
20
],
"actual": [
10,
20,
30,
40
],
"pass": false,
"backup_loads": 1
},
{
"id": "points/1m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"pass": false,
"backup_loads": 1
},
{
"id": "points/1m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"pass": false,
"backup_loads": 1
},
{
"id": "points/60m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"pass": false,
"backup_loads": 1
},
{
"id": "points/60m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"pass": false,
"backup_loads": 1
}
]
},
"reuse_without_sst_key": {
"passed": 0,
"failed": 8,
"cases": [
{
"id": "closes/1m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
10,
20,
30,
40
],
"actual": [
10,
20
],
"pass": false,
"backup_loads": 1
},
{
"id": "closes/1m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
10,
20
],
"actual": [
10,
20,
30,
40
],
"pass": false,
"backup_loads": 1
},
{
"id": "closes/60m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
10,
20,
30,
40
],
"actual": [
10,
20
],
"pass": false,
"backup_loads": 1
},
{
"id": "closes/60m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
10,
20
],
"actual": [
10,
20,
30,
40
],
"pass": false,
"backup_loads": 1
},
{
"id": "points/1m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"pass": false,
"backup_loads": 1
},
{
"id": "points/1m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"pass": false,
"backup_loads": 1
},
{
"id": "points/60m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"pass": false,
"backup_loads": 1
},
{
"id": "points/60m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"pass": false,
"backup_loads": 1
}
]
},
"sst_keys_both_helpers": {
"passed": 8,
"failed": 0,
"cases": [
{
"id": "closes/1m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
10,
20,
30,
40
],
"actual": [
10,
20,
30,
40
],
"pass": true,
"backup_loads": 2
},
{
"id": "closes/1m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
10,
20
],
"actual": [
10,
20
],
"pass": true,
"backup_loads": 2
},
{
"id": "closes/60m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
10,
20,
30,
40
],
"actual": [
10,
20,
30,
40
],
"pass": true,
"backup_loads": 2
},
{
"id": "closes/60m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
10,
20
],
"actual": [
10,
20
],
"pass": true,
"backup_loads": 2
},
{
"id": "points/1m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"pass": true,
"backup_loads": 2
},
{
"id": "points/1m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"pass": true,
"backup_loads": 2
},
{
"id": "points/60m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"pass": true,
"backup_loads": 2
},
{
"id": "points/60m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"pass": true,
"backup_loads": 2
}
]
},
"reuse_with_sst_pts_key": {
"passed": 8,
"failed": 0,
"cases": [
{
"id": "closes/1m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
10,
20,
30,
40
],
"actual": [
10,
20,
30,
40
],
"pass": true,
"backup_loads": 2
},
{
"id": "closes/1m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
10,
20
],
"actual": [
10,
20
],
"pass": true,
"backup_loads": 2
},
{
"id": "closes/60m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
10,
20,
30,
40
],
"actual": [
10,
20,
30,
40
],
"pass": true,
"backup_loads": 2
},
{
"id": "closes/60m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
10,
20
],
"actual": [
10,
20
],
"pass": true,
"backup_loads": 2
},
{
"id": "points/1m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"pass": true,
"backup_loads": 2
},
{
"id": "points/1m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"pass": true,
"backup_loads": 2
},
{
"id": "points/60m/advance",
"first_sst": 180000,
"second_sst": 300000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
},
{
"ts": 180000,
"close": 30
},
{
"ts": 240000,
"close": 40
}
],
"pass": true,
"backup_loads": 2
},
{
"id": "points/60m/regress",
"first_sst": 300000,
"second_sst": 180000,
"elapsed_ms": 1000,
"expected": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"actual": [
{
"ts": 60000,
"close": 10
},
{
"ts": 120000,
"close": 20
}
],
"pass": true,
"backup_loads": 2
}
]
}
},
"controls": [
{
"variant": "original",
"id": "same_sst_cache_hit_retained",
"pass": true
},
{
"variant": "original",
"id": "ttl_expiry_still_reloads",
"pass": true
},
{
"variant": "original",
"id": "closes_cap_250_retained",
"pass": true
},
{
"variant": "original",
"id": "timeframe_separation_retained",
"pass": true
},
{
"variant": "reuse_without_sst_key",
"id": "same_sst_cache_hit_retained",
"pass": true
},
{
"variant": "reuse_without_sst_key",
"id": "ttl_expiry_still_reloads",
"pass": true
},
{
"variant": "reuse_without_sst_key",
"id": "closes_cap_250_retained",
"pass": true
},
{
"variant": "reuse_without_sst_key",
"id": "timeframe_separation_retained",
"pass": true
},
{
"variant": "sst_keys_both_helpers",
"id": "same_sst_cache_hit_retained",
"pass": true
},
{
"variant": "sst_keys_both_helpers",
"id": "ttl_expiry_still_reloads",
"pass": true
},
{
"variant": "sst_keys_both_helpers",
"id": "closes_cap_250_retained",
"pass": true
},
{
"variant": "sst_keys_both_helpers",
"id": "timeframe_separation_retained",
"pass": true
},
{
"variant": "reuse_with_sst_pts_key",
"id": "same_sst_cache_hit_retained",
"pass": true
},
{
"variant": "reuse_with_sst_pts_key",
"id": "ttl_expiry_still_reloads",
"pass": true
},
{
"variant": "reuse_with_sst_pts_key",
"id": "closes_cap_250_retained",
"pass": true
},
{
"variant": "reuse_with_sst_pts_key",
"id": "timeframe_separation_retained",
"pass": true
}
],
"expectations_met": true,
"summary": {
"boundary_cases_per_variant": 8,
"variants": 4,
"original_reproductions": 8,
"reuse_only_reproductions": 8,
"keyed_candidate_passes": 8,
"keyed_reuse_candidate_passes": 8,
"controls_passed": 16,
"controls_total": 16
}
}
Actual stderr
(empty)