mirror of
https://github.com/theodore-song/polymarket-analyst.git
synced 2026-08-23 20:48:08 +00:00
Keep cloud outage visible after cycles
This commit is contained in:
@@ -15,12 +15,12 @@ https://polymarket-site-eta.vercel.app/personal.html
|
||||
|
||||
The site fetches live Polymarket markets, generates agent suggestions, lets you
|
||||
run frequent paper cycles, and syncs the shared arena state through Neon or
|
||||
Vercel Blob. Build 60 also installs an offline app shell and caches timestamped
|
||||
Vercel Blob. Build 61 also installs an offline app shell and caches timestamped
|
||||
market snapshots. During an outage, cycles continue locally; cached entries are
|
||||
allowed for 90 minutes, older snapshots become mark-only, and all cached data
|
||||
expires after 24 hours.
|
||||
|
||||
Build 60 ranks the competition by each agent's return since Strategy 50 began.
|
||||
Build 61 ranks the competition by each agent's return since Strategy 50 began.
|
||||
Historical replay equity remains visible for context, but it no longer makes an
|
||||
agent look like the current leader when the live adaptive strategy is losing.
|
||||
|
||||
@@ -114,7 +114,7 @@ feature views before repeatable positive evidence can increase size or repeatabl
|
||||
negative evidence can block a new entry. Mixed evidence stays close to neutral
|
||||
instead of being mistaken for an edge.
|
||||
|
||||
Build 60 enforces the documented offline boundary end to end. Cached snapshots
|
||||
Build 61 enforces the documented offline boundary end to end. Cached snapshots
|
||||
under 90 minutes old may continue paper execution. Older snapshots remain usable
|
||||
for valuation and chart snapshots for up to 24 hours, but cannot trigger entries,
|
||||
stop-losses, gain-stops, risk rebalances, settlements, or policy exits. Network
|
||||
@@ -127,22 +127,23 @@ adaptive baselines, pending signal grades, and trade evidence remain in one stra
|
||||
lineage until the actual entry, sizing, or exit logic changes. Legacy build 40 and 41
|
||||
records are migrated into the same strategy lineage without losing evidence.
|
||||
|
||||
Build 60 independently refreshes markets for matured pending signals that have
|
||||
Build 61 independently refreshes markets for matured pending signals that have
|
||||
left the current top-500 activity scan. Unavailable markets remain queued for a
|
||||
bounded retry window. This prevents activity-rank survivorship from deciding
|
||||
which wins and losses reach the adaptive calibration ledger.
|
||||
|
||||
Build 60 also allocates the 300 pending observation slots by evidence coverage.
|
||||
Build 61 also allocates the 300 pending observation slots by evidence coverage.
|
||||
Under-sampled signal/side/category cohorts are observed first, followed by
|
||||
under-sampled independent events and market sides, with conviction used only as
|
||||
a later tie-breaker. This prevents the same popular contracts from monopolizing
|
||||
the ledger and gives the learner a realistic path to promote or reject more
|
||||
diverse cohorts.
|
||||
|
||||
Build 60 retains safe shared-state provider diagnostics from both reads and
|
||||
Build 61 retains safe shared-state provider diagnostics from both reads and
|
||||
writes. A device now says `local only` when Neon is paused or a Blob credential
|
||||
is rejected, instead of presenting a local browser save as a successful
|
||||
cross-device sync. Database URLs still fail over across the configured Neon
|
||||
cross-device sync. Completed cycle statuses retain that `local only` warning
|
||||
until a cloud provider succeeds. Database URLs still fail over across configured Neon
|
||||
aliases without exposing credentials in the API response.
|
||||
|
||||
Strategy 50 coordinates high-risk exploration globally. Near-term, extreme-price,
|
||||
|
||||
+12
-5
@@ -363,7 +363,7 @@ footer{margin-top:34px;padding-top:22px;border-top:1px solid var(--border);color
|
||||
<div class="personal-banner" id="personalBanner">
|
||||
<b>Personal research mode.</b> This copy is for your own analysis, paper tracking, and manual trade research only. It does not pool money, onboard investors, custody funds, bypass eligibility rules, or place orders without your manual approval.
|
||||
</div>
|
||||
<div class="live-build-banner"><b>Build 60 active:</b> unproven directional signals train the event-clustered learner without risking cash. New observations prioritize under-sampled strategy cohorts and independent events before repeats, while shared state normalizes and fails over across configured Neon URLs. Cloud provider failures now remain visible instead of being mistaken for a successful cross-device save. Cohorts can trade only after positive promotion. Live-priced complete YES or NO negative-risk bundles may trade when their worst-case payout remains positive after estimated costs; cached bundle prices never open positions. This remains paper trading; profits are not guaranteed.</div>
|
||||
<div class="live-build-banner"><b>Build 61 active:</b> unproven directional signals train the event-clustered learner without risking cash. New observations prioritize under-sampled strategy cohorts and independent events before repeats, while shared state normalizes and fails over across configured Neon URLs. Cloud provider failures remain visible after every completed cycle instead of being mistaken for a successful cross-device save. Cohorts can trade only after positive promotion. Live-priced complete YES or NO negative-risk bundles may trade when their worst-case payout remains positive after estimated costs; cached bundle prices never open positions. This remains paper trading; profits are not guaranteed.</div>
|
||||
|
||||
<!-- ============ OVERVIEW ============ -->
|
||||
<section class="tabpanel" data-tab="overview">
|
||||
@@ -745,7 +745,7 @@ footer{margin-top:34px;padding-top:22px;border-top:1px solid var(--border);color
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
Build 60 · Adaptive strategy 50 · Paper trading only · Live prices from Polymarket's public Gamma API · Not financial advice ·
|
||||
Build 61 · Adaptive strategy 50 · Paper trading only · Live prices from Polymarket's public Gamma API · Not financial advice ·
|
||||
<a class="market-link" href="https://github.com/theodore-song/polymarket-analyst" target="_blank" rel="noopener">Source on GitHub</a>
|
||||
</footer>
|
||||
</div>
|
||||
@@ -774,7 +774,7 @@ const POLITICS_TREND_MIN_HOLD_HOURS = 72;
|
||||
const EXIT_CONFIRM_HOURS = 6;
|
||||
const AGENTS_KEY = "pma_agents_v2";
|
||||
const SUG_KEY = "pma_suggestions_v5";
|
||||
const BUILD_VERSION = 60;
|
||||
const BUILD_VERSION = 61;
|
||||
const SUGGESTION_ENGINE_VERSION = 50;
|
||||
const PREVIOUS_STRATEGY_VERSION = 49;
|
||||
const LEGACY_BUILD_STRATEGY_LINEAGE = Object.freeze({40:40,41:40});
|
||||
@@ -946,7 +946,14 @@ function toast(msg){
|
||||
t.textContent=msg;t.classList.add("show");
|
||||
clearTimeout(t._h);t._h=setTimeout(()=>t.classList.remove("show"),3600);
|
||||
}
|
||||
function setStatus(text,live){$("statusText").textContent=text;$("statusDot").classList.toggle("live",!!live);}
|
||||
function setStatus(text,live){
|
||||
const health=window.PMA_CLOUD_STATE_HEALTH;
|
||||
if(!live&&health&&health.degraded&&!String(text).includes("local only")&&!String(text).includes("cloud sync")){
|
||||
const label=window.PMA_CLOUD_STATUS_LABEL;
|
||||
text=typeof label==="function"?label(text,health.providers):`${text} · local only`;
|
||||
}
|
||||
$("statusText").textContent=text;$("statusDot").classList.toggle("live",!!live);
|
||||
}
|
||||
|
||||
async function fetchWithTimeout(url,options={},timeoutMs=NETWORK_REQUEST_TIMEOUT_MS){
|
||||
const controller=new AbortController(),timer=setTimeout(()=>controller.abort(),timeoutMs);
|
||||
@@ -1558,7 +1565,7 @@ function localOnlyStatus(base,providerOverride=null){
|
||||
const blobStatus=providers.blob&&providers.blob.status;
|
||||
if(dbStatus==="provider_payment_required")return `${base} · local only (Neon paused)`;
|
||||
if(blobStatus==="authorization_failed")return `${base} · local only (cloud token invalid)`;
|
||||
return `${base} · saved locally`;
|
||||
return `${base} · local only`;
|
||||
}
|
||||
window.PMA_CLOUD_STATUS_LABEL=localOnlyStatus;
|
||||
async function pushCloudState(force=false){
|
||||
|
||||
Reference in New Issue
Block a user