mirror of
https://github.com/theodore-song/polymarket-analyst.git
synced 2026-08-24 13:08:10 +00:00
Harden Build 124 release and report secured profit
This commit is contained in:
@@ -11,10 +11,15 @@ const resolutionAudit = JSON.parse(fs.readFileSync(new URL("../research/resoluti
|
||||
const sportsContestAudit = JSON.parse(fs.readFileSync(new URL("../research/sports-contest-no-exploration-audit.json", import.meta.url), "utf8"));
|
||||
const sportsDisjointAudit = JSON.parse(fs.readFileSync(new URL("../research/sports-contest-no-disjoint-10000-audit.json", import.meta.url), "utf8"));
|
||||
const adaptiveAudit = JSON.parse(fs.readFileSync(new URL("../research/adaptive-strategy-64-audit.json", import.meta.url), "utf8"));
|
||||
const settlementCalibrationAudit = JSON.parse(fs.readFileSync(new URL("../research/settlement-calibration-exact-fee-5000-audit.json", import.meta.url), "utf8"));
|
||||
const sportsEvaluator = fs.readFileSync(new URL("./evaluate-sports-favorites.mjs", import.meta.url), "utf8");
|
||||
const build = Number(index.match(/const BUILD_VERSION = (\d+);/)?.[1]);
|
||||
|
||||
assert.equal(build, 124);
|
||||
assert.equal(settlementCalibrationAudit.requested_markets, 5000);
|
||||
assert.equal(settlementCalibrationAudit.train_passed, 0);
|
||||
assert.equal(settlementCalibrationAudit.validation_selected, 0);
|
||||
assert.equal(settlementCalibrationAudit.holdout_passed, 0);
|
||||
assert.match(index, /Adaptive strategy 65 · exact bundle conversion · build 124/);
|
||||
assert.deepEqual([...ALLOWED_RUNTIME_KEYS].sort(), ["pma_agents_v2", "pma_suggestions_v5"]);
|
||||
assert.match(index, /function collectPublicRuntimeItems\(\)/);
|
||||
@@ -72,6 +77,8 @@ assert.match(workflow, /next=\$\(\( \(now \/ 300 \+ 1\) \* 300 \+ 15 \)\)/);
|
||||
assert.match(workflow, /actions\/workflows\/autonomous-cycle\.yml\/dispatches/);
|
||||
assert.match(workflow, /--data '\{"ref":"main"\}'/);
|
||||
assert.match(releaseWorkflow, /name: Release Build 124 after Vercel quota reset/);
|
||||
assert.match(releaseWorkflow, /cron: "15 13-23\/2 23 8 \*"/);
|
||||
assert.match(releaseWorkflow, /cron: "15 1-13\/2 24 8 \*"/);
|
||||
assert.match(releaseWorkflow, /grep -q 'const BUILD_VERSION = 124;'/);
|
||||
assert.match(releaseWorkflow, /EXPECTED_BUILD: "124"/);
|
||||
assert.doesNotMatch(releaseWorkflow, /Build 123|build_123|build-123/);
|
||||
@@ -79,6 +86,9 @@ assert.match(index, /cloudRestartReconstructsOfflineCache:true/);
|
||||
assert.match(index, /saveSuggestions\(sugs,markets\.length,analysisMarkets\.length,bundleAudit\)/);
|
||||
assert.match(index, /const NEG_RISK_EVENT_SCAN_LIMIT=1000;/);
|
||||
assert.match(index, /bundleOpportunityTelemetry:true/);
|
||||
assert.match(index, /function completeBundleSecuredProfit\(p\)/);
|
||||
assert.match(index, /label:"Secured bundle profit"/);
|
||||
assert.match(index, /additional settlement profit is secured by intact verified bundles/);
|
||||
assert.match(index, /const BUNDLE_DEPTH_CANDIDATE_LIMIT=80;/);
|
||||
assert.match(index, /const BINARY_COMPLEMENT_DEPTH_RESERVE=20;/);
|
||||
assert.match(index, /const NEG_RISK_CONVERSION_DEPTH_RESERVE=20;/);
|
||||
|
||||
Reference in New Issue
Block a user