Skip to content

Releases

v0.8.2 - Operator UI replay visibility and chart fix

Choose a tag to compare

@SergeyGer SergeyGer released this 23 Nov 18:23
20b51da

Patch release for the operator UI.

Fixed

  • Overview renders a recent score-history timeline with the frozen cutoff caption.
  • Explicit chart x/y columns fix the Streamlit mixed-type exception; the live Overview no
    longer traps on render.
  • Replay at the latest session explains that no outcome horizon exists and points to earlier
    sessions/presets; sidebar presets jump to 2020-03-16, 2020-03-13, 2008-10-10 and 2008-09-15.
  • Real Streamlit AppTest regression against the showcase profile covers the chart and hint.
  • Frozen topology config hash refreshed for the 0.8.2 canonical package version.
  • Supersedes the v0.8.1 chart-construction regression.

Verification

  • 532 passed, 21 skipped; ruff/format clean; CI, release, security and CodeQL green.
  • AppTest with the showcase profile: all four screens switch and render without exceptions.

v0.8.1 - Operator UI replay visibility

Choose a tag to compare

@SergeyGer SergeyGer released this 23 Nov 18:16
404fa0f

Patch release for the operator UI.

Fixed

  • Overview now renders a recent score-history timeline with the frozen cutoff caption instead of
    only three sparse metrics.
  • Replay at the latest available session now explains that no future outcome horizon exists and
    directs the operator to an earlier session or a replay preset, instead of a silent 0/20.
  • Sidebar replay presets jump to the documented historical alerts: 2020-03-16, 2020-03-13,
    2008-10-10, 2008-09-15.
  • Showcase test covers score_history; WALKTHROUGH documents the replay workflow.

Verification

  • Offline suite: 531 passed, 21 skipped.
  • Streamlit AppTest with the showcase profile: all four screens switch and render without
    exceptions; CI/release/security/codeql green.

Step 8 - Package and rehearse the public release

Choose a tag to compare

@SergeyGer SergeyGer released this 23 Nov 00:59
15f47f1

Step 8 - Package and rehearse the public release

The final release rehearsal: offline release checks, pinned dependency lock, reproducible synthetic
showcase, packaged-resource/installed-wheel fixes, release CI artifacts and a public walkthrough.

Delivered

  • topomarket release-check (CLI + module): version consistency (package/pyproject/CHANGELOG),
    repository hygiene (tracked private inputs, .gitignore coverage), packaged JSON resources,
    canonical-vs-packaged profile-template parity, dependency lock, committed synthetic showcase
    hashes, deterministic fixture regeneration and offline public-mode smoke commands.
  • Packaging: installed wheels resolve bundled profile configs and demo data without a source
    checkout and never write into site-packages; data/topology/config JSON resources are
    packaged; MANIFEST.in covers docs, showcase, lock and changelog; version 0.8.0.
  • Release workflow: locked install, compile/lint/format, JUnit test report, offline release
    checks, sdist+wheel build, twine check, wheel content/private-input guard and artifact
    retention (dist/*, test-report.xml, release-check-report.json).
  • Public demo: deterministic synthetic showcase/ (5,673 sessions with engineered drawdowns,
    frozen topology scores and evaluation report, synthetic manifest) plus a 60-90s walkthrough with
    replay and alert inspection requiring no key.
  • Docs: CHANGELOG.md, docs/RELEASING.md, docs/WALKTHROUGH.md, README release section;
    license/data notices reviewed; no release dates in repository content.

Acceptance A8 evidence

Check Result
Public suite 531 passed / 21 skipped
Private A8 import real seed -> refresh -> simulated failed refresh keeps last-good -> recovery
Release checks all PASS (versions, hygiene, package data, config parity, lock, showcase, fixtures, public smoke)
Distributions sdist + wheel built, twine check PASSED
Wheel contents data/topology/config JSONs present, no private inputs
Installed wheel (clean venv) --version, demo --json, synthetic, validate, status, release-check all pass
Showcase walkthrough 5,673 synthetic sessions; replay blind/reveal/blind; validation alert drill-down and CSV export
Release workflow green; artifacts uploaded

Step 7 - Interactive research dashboard

Choose a tag to compare

@SergeyGer SergeyGer released this 23 Nov 00:33
295eda1

Step 7 - Interactive research dashboard

Four screens over one persistent global selection, with blind replay safety, accessible rendering
and measured performance.

Delivered

  • Overview - latest/replay session, score percentile, frozen cutoff status, source dates,
    20-session outcome horizon and pending labels, evidence wording.
  • Topology - 60-session industry cloud/PCA and persistence summary, Mapper graph with linked
    member inspector (birth/death/lifetime, membership), 2D default with optional 3D, replay outcome
    layer only when revealed.
  • Validation - frozen evaluation runs with metrics, bootstrap uncertainty, periods/counts,
    settings/evidence status, matched/missed/false drill-down and CSV-export table.
  • Data - import preview, active snapshot, refresh attempts/failures, revisions,
    schema/units/coverage and per-source first/last observations.
  • Replay: blind by default; Reveal next 20 sessions unlocks only the outcome layer for the
    current selection and Hide outcome returns to blind; scores/cutoffs/features never change.
  • Keyboard equivalents (session/window/member/reveal/blind), labelled inputs, table alternatives,
    shape+text alert marks, reduced-motion support, contrast-checked tokens and optional 3D cloud.
  • Streamlit shell with a plain-text four-screen fallback when Streamlit is absent; [ui] optional
    extra; version 0.7.0.

Acceptance A7 evidence

Check Result
Public suite 519 passed / 20 skipped
Private acceptance 19 passed (A2-A7)
March 2020 replay blind -> reveal -> blind: outcome hidden/revealed/hidden, score+cutoff identical
Keyboard equivalents date and member selection verified on real dates
Data-screen provenance active snapshot + per-source first/last observations
Cached date-change p95 (100 changes, demo) 0.054 ms (limit 500 ms)
Cached demo startup 17.6 ms (limit 5 s)
Environment/build recorded Python 3.12.3 Linux x86_64, NumPy 2.5.5, Ripser 0.6.15, package 0.7.0

Next: Step 8 - package and rehearse the public release (issue #9).

Step 6 - Chronological evaluation and warning evidence

Choose a tag to compare

@SergeyGer SergeyGer released this 22 Nov 22:50
6fe26af

Step 6 - Chronological evaluation and warning evidence

The research pipeline now labels historical drawdowns, calibrates warning methods, evaluates them
out of sample and states exactly what the evidence supports.

Delivered

  • Labels and episodes: 20-session / 10% drawdown target with inclusive boundary, breach dates,
    pending labels, chained breach episodes and early/post-onset/duplicate/false/missed alert
    classification.
  • Alert policy: dated readings for TDA score, VIX close and 20-session annualized realized
    volatility; 20-session cooldown; percentile calibration on 2005-2013 (85/90/92.5/95/97.5/99) with
    max-recall subject to <=2 false alerts/year, then fewer false alerts, then higher cutoff; frozen
    policies with hashes binding method/cutoff/window/period/session sequence/eligible years.
  • Evaluation: 2014+ out-of-sample metrics (episode recall with counts, false alerts/year,
    median lead with range, average precision, event prevalence), explicit undefined values,
    purge/censoring, matched/missed/false examples, paired moving-block bootstrap (60-session blocks,
    1,000 replicates, shared draws), return-shuffled and unscaled-topology ablations, evidence wording
    rules, deterministic report with snapshot-id provenance on every table.
  • Ledger: append-only JSONL forecast ledger outside the checkout with validation and digest.
  • CLI: topomarket evaluate --data-dir ... [--json] [--report-out] [--ledger] [--seed] [--ablations]; docs docs/EVALUATION.md; version 0.6.0.

Acceptance A6 evidence

Check Result
Public offline suite 443 passed / 16 skipped
Private acceptance 15 passed (A2-A6)
Real snapshot run 9,250 rows, 28 episodes, 9 evaluable held-out episodes
TDA result recall 1/9, 1.03 false alerts/year, AP 0.1625, median lead 10 sessions
Comparator VIX recall 0, 0 false alerts/year
Bootstrap 1,000 valid paired replicates; recall-gain 95% interval [0.0, 0.25]
Evidence wording Experimental market anomaly (documented limitation: false-alert rule not satisfied)
Controls shuffled-TDA recall 0 / 0.63 false per year; unscaled-TDA row reported
Ledger 15 alert records with snapshot/config/policy hashes, append-only
Provenance every metrics table carries the source snapshot id

Next: Step 7 - interactive research dashboard (issue #8).

Step 5 - Industry explorer

Choose a tag to compare

@SergeyGer SergeyGer released this 22 Nov 20:28
9831c2d

Step 5 - Industry explorer

Both Step 5 products are available from the same validated 60-session window: the robust 12-industry
cloud and the deterministic correlation-distance Mapper graph.

Delivered

  • Industry cloud: 60 sessions x 12 industries, robust median/MAD scaling per industry, complete
    Vietoris-Rips H0/H1 persistence, deterministic PCA projection 2D with explained variance and axis
    labels, descriptive industry names.
  • Mapper: Pearson correlation distance sqrt(2*(1-rho)), annualized volatility lens, three
    inclusive overlapping intervals (width = lens range / 2.2, stride = 0.6 * width), threshold-1.0
    components with singletons, duplicate member-set merge, shared-member edges, deterministic
    circular layout keyed by sorted member tuples, measurements (node/edge counts, density, largest
    component fraction) and tooltips. Singleton nodes report "Not applicable" for member correlations.
  • CLI: topomarket industries --data-dir ... [--date ...] [--json] [--out ...], active-snapshot
    aware, deterministic JSON output, exit 2 on invalid input.
  • Docs: docs/INDUSTRY_EXPLORER.md and README section; version 0.5.0.

Acceptance A5 evidence

Check Result
Public offline suite 401 passed / 14 skipped
Private acceptance 13 passed (5 A2 + 3 A3 + 2 A4 + 3 A5)
Cloud contract 60 date IDs, 12 canonical industry members, deterministic PCA/H0-H1
Mapper intervals 3 intervals, width = range / 2.2, stride = 0.6 * width
Real snapshot check nodes 3-4, shared-member edges present (1-2 on sampled dates)
Edge contract every edge has a non-empty member intersection
Singleton nodes member correlations reported as "Not applicable"
Repeated runs identical dates, memberships and default positions
Determinism byte-identical JSON payload and --out output

Next: Step 6 - chronological evaluation and warning evidence (issue #7).

Step 4 - Persistent homology and anomaly score

Choose a tag to compare

@SergeyGer SergeyGer released this 22 Nov 18:51
fb863c8

Step 4 - Persistent homology and anomaly score

Causal daily topological signal with frozen analysis configurations.

Delivered

  • Frozen TopologyConfig registry (config/topology.json) with verified hash and exploratory
    custom configurations; strict validation (including prime coefficient fields and signed-zero
    normalisation).
  • Robust median/MAD scaling, causal delay embedding (dimension 3, lag 2 -> 56 points), complete
    Vietoris-Rips H0/H1 persistence via ripser (GF(2), no truncation/subsampling), and
    L(t) = largest finite H1 lifetime.
  • Causal daily score: D(t) = |L(t) - median(previous 252 valid L)|, midrank score against the
    previous 252 valid D values, explicit unavailable/warming_up/scored states, sequence-based
    gap handling (no interpolation, no calendar inference), deterministic cache identity and
    collision-safe CSV+sidecar export.
  • CLI: topomarket topology --data-dir ... [--config ...] [--out ...] [--json], active-snapshot
    aware; existing commands unchanged.
  • Documentation: README topological-signal section and docs/TOPOLOGY.md; version 0.4.0.

Acceptance A4 evidence

Check Result
Public offline suite 344 passed / 11 skipped
Private acceptance 10 passed (5 A2 + 3 A3 + 2 A4)
Real snapshot rows 9,250 tda_daily
Warm-up boundary unavailable 59, warming up 504, first score at index 563
Scored points 8,687 (first 1992-03-25, latest 2026-09-30, score 54.1667)
Score range [0, 100], finite L/D for every scored point
Reproducibility identical cache key and byte-identical CSV across runs
Causality prefix points byte-identical to the full-series prefix
Rips primitives cross-checked directly against ripser (square, no-H1 cloud, min interval)

Next: Step 5 - industry explorer (60x12 cloud and Mapper graph, issue #6).

Step 3 - Update and recovery

Choose a tag to compare

@SergeyGer SergeyGer released this 22 Nov 16:04
2d3c560

Step 3 - Update and recovery

Refresh the fixed HTTPS providers, publish immutable snapshots atomically and keep the last good
snapshot readable on any failure.

Delivered

  • Credential-free fetch layer with conditional GET (If-None-Match / If-Modified-Since), 15 s
    timeout, bounded exponential retries, redirect rejection and strict source registry.
  • Refresh pipeline: staging with 50 MiB per-payload and ZIP-safety limits, adapter validation in a
    throwaway build, deterministic merge (fixed OpenIntro cutover, shorter FRED exports keep older
    history, complete VIX history keeps tda_daily at 9,250 rows), revision records, single-writer
    lock, atomic snapshot directory + pointer, validators committed after publish, last-good recovery.
  • CLI: topomarket refresh --data-dir ... [--sources ...] [--json], topomarket sources;
    status/report/validate resolve the active snapshot; Streamlit overview exposes the active
    snapshot id.
  • Documentation: README refresh section, docs/REFRESH.md runbook and the GitHub Wiki pages.
  • Version 0.3.0.

Acceptance A3 evidence

Check Result
Public offline suite 214 passed / 9 skipped (private suites opt-in)
Private acceptance 8 passed (5 A2 + 3 A3)
Row counts after refresh sp500_daily 19,343; industries_daily 26,338; tda_daily 9,250
Live HTTPS refresh (4 providers) all HTTP 200; snapshot published
Conditional refresh all providers 304; no publication; snapshot id preserved
Failed required source last good snapshot stays active; failure recorded per source
Broken ZIP / oversized payload / concurrent refresh rejected cleanly; previous snapshot readable

Leftover private data, snapshots and credentials are never committed. Next: Step 4 - persistent
homology and the anomaly score (issue #5).

Step 2 - Seed import

Choose a tag to compare

@SergeyGer SergeyGer released this 21 Nov 17:29
b654eeb

Step 2 - Seed import

Local seed-file import with normalized analysis tables and a specification-aligned synthetic demo.

Delivered

  • Five seed adapters: OpenIntro S&P 500, FRED SP500, Cboe VIX, Kenneth French 12 industry
    portfolios (daily value-weighted block) and optional OFR FSI.
  • Raw hash registry, per-source parser reports and deterministic normalized tables:
    sp500_daily, industries_daily, tda_daily.
  • CLI: topomarket import --input-dir/--input-zip, topomarket report, extended
    status/validate; demo/synthetic commands emit the same normalized schema from synthetic
    data (seed 42) with latest_data_date in the manifest.
  • Public tests use synthetic fixtures only; the private seed archive stays outside the repository.

Acceptance A2 evidence

Check Result
sp500_daily rows 19,343
tda_daily rows 9,250
2020-03-16 close 2,386.13, VIX 82.69, NoDur -0.0896
2018-11-29 discrepancy and 96 blank FRED cells confirmed by the private acceptance test
Re-import of identical bytes identical normalized table hashes
Private data tracked in git none

Fixes

  • French weighting-section detection corrected (the archive preamble had been read as a section
    marker, leaving value-weighted returns empty).
  • CLI wired to the spec-aligned demo generator and latest-date reporting.

Public test suite: 181 passed / 6 skipped; private acceptance: 5 passed; CI, security and CodeQL
green; main protected (PR + required checks + linear history). Next: Step 3 - update and recovery
paths (issue #4).

Step 1 - Runnable scaffold

Choose a tag to compare

@SergeyGer SergeyGer released this 21 Nov 16:07

Step 1 - Runnable scaffold

First public milestone of TopoMarket: a credential-free synthetic demo and the shared analysis
package skeleton that later steps build on.

Delivered

  • Python package topomarket (src layout), CLI entry point and Streamlit shell (app.py).
  • Two explicit profiles: demo (synthetic, offline, seed 42) and private (user-controlled local
    data directory, no private data in the repository).
  • Deterministic synthetic fixture generator with provenance manifest (generator version, seed,
    per-file SHA-256, synthetic: true).
  • Local data-directory abstraction with atomic snapshot manifests and validation.
  • ~148 tests covering the scaffold, determinism, profiles and UI shell; Python 3.11/3.12 CI.
  • Security: pip-audit, bandit, detect-secrets, CodeQL; secret scanning/push protection; Dependabot.
  • Protected main: PR-only, required checks, linear history, no force pushes or deletion.
  • Documentation: README (step status, profiles, quickstart), NOTICE (provider attribution),
    SECURITY, CONTRIBUTING, issue/PR templates.

Acceptance

Step 1 acceptance check A1: a clean checkout starts the synthetic demo offline; profiles are
labelled; no private market data or secrets are tracked; CI runs lint/format/tests.

Next

Step 2 imports the supplied local seed files and aligns the normalized tables with the
specification (issue #3).