Website · Platform · Research · Get started · Documentation · 中文
A second surface watches public regulatory and research sources and answers one question a day: what arrived that is worth a look?
- Admission, not a river. Every record is judged on separate dimensions (source, domain, relevance, confidence, date precision). On a measured day 1,660 records arrived and 17 were worth reading; the feed says so instead of showing 1,660 rows.
- A daily digest on the front page: what arrived, the top five with one line each, safety and recalls, what waits for a human, and the caveats (future-dated records, near-duplicates, sources blocked by policy). Nothing in it is model-generated; every line points at a record you can open and check.
- Watchlists save the filter you are looking at, with a live count.
- Company pages answer "what happened at Philips recently", not "how many rows exist".
- A review workflow (NEW / REVIEWING / CONFIRMED / DISMISSED + note, with an audit trail).
Human decisions live in their own
human.db; the evidence ledger stays append-only and is opened read-only by every web request, so no button can corrupt it. - Export whatever you are filtered to as CSV or JSON, including your review decisions.
- Delivery by webhook or SMTP (
radar digest --webhook/--smtp-*), dry run by default. - An MCP server (
python -m medradar.mcp_server) exposing five read-only tools so an agent can ask the same questions. Nothing in it can write.
See docs/features/001/CAPABILITIES.md for the API, MCP.md for client configuration, and DELIVERY.md for the scheduler example. The capability scan behind these choices is in docs/research/001/TOOL_CAPABILITY_SCAN.md.
The repository now also ships a working analyst workbench, not only the research programme: search a medical-technology company, read its FDA regulatory record, open the official evidence, compare two companies on one explicit counting rule, and export a sourced report.
- Data: 91,457 FDA device records (510(k), PMA originals and supplements, recalls) for
59 tracked organizations, collected from openFDA on 2026-11-14/15 and committed as a
hash-addressed snapshot (snapshot
2026-11-14T22:09:22Z-openfda). - Evidence: every record keeps its official FDA identifier and URL; the evidence drawer shows the four separate time fields and the verbatim applicant string used for attribution.
- Honesty: unattributed applicant strings, explicitly rejected look-alike names, provisional attributions (1,410 of 1,590 spellings), source coverage differences and out-of-scope sources are all visible in the product, not hidden.
- Stack: FastAPI serving a React 19 + TypeScript + Vite build; one Python process, no database server and no paid infrastructure.
The product now answers a research question, not only a query. Brief (/brief) turns a company,
a comparison set or a PMA/K number into a sourced brief over 3, 5 or 10 complete calendar years:
- Definition first — the question, window, event types, counting rule, snapshot and ownership basis are stated on the brief and encoded in the URL.
- Evidence-backed findings — a small deterministic rule set (pathway concentration, year shift, PMA-family scale, recall dominance, specialty coverage, provisional attribution). Every finding lists its rule, inputs, cited official records, a "what this does not mean" clause and a link that reproduces the records.
- Technology areas that work — official FDA product-code families with the official classification name, alongside the specialty table. The FDA itself states "Unknown" as the specialty for many class III codes (2,520 of Medtronic's 3,426 window records), so the specialty table alone is not a technology view.
- Explain this difference — every comparison measure opens its definition, numerator, denominator, filters and the records behind it.
- Deliverables — company/comparison/device Markdown briefs, an Evidence Appendix CSV with one row per supporting record and its official URL, and a print stylesheet for browser PDF.
- Honest change status — a deployment without the DATA-001 ledger says so; it never presents an old record as "new".
Acceptance for this release (real Chromium, real snapshot, screenshots and downloads) is in docs/product/product_004/ACCEPTANCE.md; the audit that motivated it is in PRODUCT_AUDIT.md.
pip install -e '.[product]' # fastapi + uvicorn
python -m medradar web --port 8787 # serves the API and the committed UI build
# open http://127.0.0.1:8787The committed snapshot and the committed web/dist let the product run offline, without Node and
without re-collecting. To refresh the data or rebuild the UI, see
docs/product/ARCHITECTURE.md `8.
Read more:
- Product vision · Architecture
- Data contract · API contract
- User journeys · Acceptance record
- Known limitations · Next steps
- Legacy reuse assessment
The product is deliberately snapshot-based: it never claims live or real-time data, and it makes no predictive claim. The research programme below is unchanged and still runs.
MedRadar collects free regulatory, clinical-trial and corporate-filing evidence about medical-device and drug makers into one auditable event store, then tests — with frozen experiments, named baselines and published negative results — whether that evidence carries signal before the market notices.
Research infrastructure, not a validated predictive product. No method in this repository has demonstrated out-of-sample predictive ability, and the shipped snapshot cannot support genuine point-in-time claims. The engineering and the negative results are the deliverable. → Limitations · Method contract
375,378 events · 6 free public sources · event dates 1966–2026 · snapshot 2026-10-31 · 1,160 offline tests · package v0.5.0 · MIT
Source: tools/homepage/build_architecture.py — generated from the repository tree, not drawn as a mock-up. Light and dark variants ship together; the research engine and applications rows are paired with the repository path that implements them.
How to read the diagram. Everything solid exists on main and is exercised by the offline suite.
Rows marked limited work but carry a named, measured gap. The dashed lane on the right is labelled
draft: open PRs and branches that are not on main and not wired to the live site.
- Implemented — on
main, exercised by the 1,160-test offline suite. - Limited — works, with a named and measured gap (for example entity resolution at 35.2 % / 52.4 %).
- Draft — an open PR or branch; not shipped, not served, not claimed.
Platform detail, source inventory and coverage: the Platform page ↗
· repository navigation: docs/INDEX.md.
Vocabulary: working = on main and exercised by the offline suite; partial = works with a
measured, named gap; mechanism only = the machinery is correct but its inputs cannot support the
claim it would enable.
| Capability | What it does | Validation status | Entry |
|---|---|---|---|
| Multi-source ingest | openFDA device 510(k)/PMA/recall/classification, openFDA drug approvals, ClinicalTrials.gov v2, SEC EDGAR 8-K → one event schema; counts reproduce from live sources | working | medradar/collect_device.py · collect_drug.py · clinical.py |
| Bitemporal event store | event_date / available_at / timestamp_quality on every row, plus an append-only revision ledger behind events — explicitly not tamper-proofing |
working | medradar/db.py · medradar/evidence_core/ |
| Entity resolution | Company/subsidiary and technology-track keys plus product codes; 35.2 % of events carry a company key and 52.4 % a technology track. Unmatched events are counted and reported, never guessed | partial | config/ · docs/DATA.md |
| Descriptive analytics | Track heat (shrinkage-adjusted rate), mix shift (Jensen–Shannon), novelty (first occurrence) — descriptive, in-sample scores, not validated signals | descriptive only | medradar/analyze.py |
| Event study, replay, simulated book | Direction-aligned abnormal returns, block bootstrap, Holm correction, an in-sample long-only simulated book — no out-of-sample claim | working, simulation | medradar/eventstudy.py · replay.py |
| Reports and zero-dependency dashboard | A Chinese report, an English one-pager, a CSV and a self-contained HTML dashboard generated from one metrics.json — generated artefacts, not a live service |
working | medradar/report.py · docs/dashboard.html |
Also on main, at a lower level of validation: the bitemporal knowledge store
(medradar/tkg/, mechanism only) and the append-only forecast registry
(medradar/forecast_registry.py, mechanism only — 25 registered
forecasts, 0 matured, calibration state insufficient_matured_forecasts).
Not on main, not claimed: MedRadar 2.0 (#12), Live Observatory (#13/#14), S-028 / S-029
(#15/#16), PHOENIX (#23–#26), DATA-EXPANSION / ATLAS / HORIZON / CONVERGENCE (#27–#30). Every one is
a labelled draft; none is served by the live site. See Roadmap.
Direction-aligned abnormal returns over the simulated event study (block bootstrap, Holm-corrected over the full category × horizon family). Only the 60-day horizon survives:
| Horizon | n | Mean abnormal return | t | 95 % CI |
|---|---|---|---|---|
| +1 d | 122 | +0.15 % | 0.57 | [−0.33 %, +0.65 %] |
| +5 d | 109 | −0.37 % | −0.92 | [−1.17 %, +0.42 %] |
| +20 d | 89 | +1.14 % | 1.17 | [−0.65 %, +3.13 %] |
| +60 d | 61 | +5.65 % | 2.45 | [+1.35 %, +10.32 %] |
Source: docs/metrics.json → trading.event_study, generated 2026-10-30 · window 2025-11-21 → 2026-10-30 · figure: tools/site/make_figures.py (parses the committed data; the test fails if the art drifts).
Time-data caveat carried with every return number. The snapshot has no independent public time —
all 375,378 rows have published_at = available_at = event_date — so this result rests on a
same-day-public-time assumption and is not a point-in-time result. It is an in-sample simulation
with 38 simulated trades over ~11 months, long-only, and not investment advice.
- Market-to-R&D (12-month horizon). No added source produces a detectable ranking gain: marginal
PR-AUC financial −0.0013, market −0.0015, publication −0.0001, all-sources −0.0068. The model barely
beats a per-pair base rate — AP 0.7935 vs 0.7913, Δ +0.0022, 95 % CI [−0.032, +0.037]. More data
improves calibration (ECE 0.0811 → 0.0628), not ordering. Frozen artefacts:
experiments/reverse_rd_v1/·experiments/reverse_rd_v2/. - Early-signal study (five firms). Phase 0 returned CONDITIONAL-GO, but the lead-time gate —
was the change detectable earlier? — returned NO-GO.
→
research/studies/early_signal_5firms/PHASE0_REPORT.md - S-028 / S-029 relation studies. Both NO-GO: the evidence-based relation network did not beat its null on held-out data. They live on draft branches (PR #15/#16) and are not presented as a released capability.
| Source | Retrospective public time | Verdict |
|---|---|---|
| SEC EDGAR | yes — acceptanceDateTime, immutable archive, amendments as new accessions |
STRONG |
| ClinicalTrials.gov | partial — first-post date only, date granularity, ACTUAL records only |
MEDIUM |
| openFDA 510(k)/PMA | no — no public-posting field exists; decision_date is the event date |
prospective observation only |
Full report: docs/refoundation/phase2/E1B_SOURCE_RECOVERY.md
(28 requests, 5 records per source — a shape test, not a population estimate).
More: Research page ↗ · docs/RESEARCH.md
· docs/CASES.md · docs/CALIBRATION.md.
Every image below is a screenshot of a page the repository generates from the committed snapshot.
None is a mock-up; none shows a feature that does not exist on main.
Page: docs/dashboard.html (interactive dashboard, zero-dependency single file) · snapshot: 2026-10-31 (docs/metrics.json) · package: v0.5.0 · offline artefact: yes — all data inlined, opens without a server · on main: yes · capture: Chromium, 1440×900, real generated page, no edits to data or UI.
Page: docs/report.html (generated Chinese report, nineteen chapters) · snapshot: 2026-10-31 · package: v0.5.0 · offline artefact: yes — self-contained HTML · on main: yes · note: the report is Chinese-first today; the site and this README are English.
Explore every artefact — dashboard, report, replay, figures and the data audit — on the Explore page ↗.
git clone https://github.com/ChazY11/medradar.git && cd medradar
pip install -e . # standard library only; no API key
python -m pytest -q -o addopts="" # 1,160 offline tests at the verified baseline, no network
medradar demo # offline, committed snapshot, < 60 s → out/demo/index.htmlA live radar run needs network (still no API key), about three minutes:
medradar run --months 24 --with-trade --with-dashboard
# → out/index.html · out/report_zh.md · docs/dashboard.html · docs/report.html · out/summary.csvThe 1.3 GiB SQLite snapshot is intentionally not committed, so a clean clone reproduces the procedure, not the exact numbers. The frozen studies rebuild from the recorded commands:
python -m medradar.intelligence.pipeline collect --source fda --months 120 # needs `.[bulk]`
python experiments/reverse_rd_v2/run_v2.py --db data/medradar.sqlite --holdouts 3- First run:
medradar/onboarding.py·medradar --help - Data contract:
docs/SCHEMA.md· data inventory:docs/DATA.md - Method contract:
docs/METHODS.md· assumption register:docs/ASSUMPTIONS.md - Reproduction guide: Documentation page ↗ ·
docs/INDEX.md
- Event-time only. Every row in the committed snapshot has
published_at = available_at = event_date(375,378 / 375,378) andtimestamp_quality = 'date'. Independent public time = 0 rows. Return studies rest on a same-day-public-time assumption. - Genuine point-in-time claims are not supported until source publication timestamps are re-acquired — recoverable for EDGAR, date-only for ClinicalTrials.gov, and for openFDA obtainable only by observing it from now on.
- Entity resolution is partial. 35.2 % of events carry a company key and 52.4 % a technology track. Unmapped events stay unmapped and are counted; they are never guessed.
- The revision ledger is not tamper-proofing. It records the application write path; a database owner can still mutate the head table or replace the file.
- 510(k)/PMA rows carry no public timestamp, so they enter industry counts but never return studies — a real loss of sample, deliberately not papered over.
- The AdCom collector parses zero rows (FDA renders the calendar client-side) and is marked
experimental; it returns
empty/source_changed, never a silentok. - The simulated book is in-sample, long-only, 38 trades over ~11 months. Shorts are alerted, never traded; fees, squeeze-outs and delisting are unmodelled.
- No causal claims. Difference-in-differences and synthetic control are roadmap items, not results.
- NMPA is deliberately not scraped (WAF). Without a user-supplied CSV every China value is
null, never zero.
The full argument and per-number provenance: docs/METHODS.md ·
docs/CALIBRATION.md · docs/ASSUMPTIONS.md.
Shipped: v0.3.0 research foundation (bitemporal TKG + immutable forecast registry), v0.4.0 harder
target + purged multi-window evaluation, v0.5.0 continuous forecast cycle and the cited research
agent. Full record: ROADMAP.md.
Next, and explicitly not done:
- Re-acquire independent public timestamps — EDGAR first; it can carry a true public instant today. Without this, no point-in-time claim is possible.
- Mature enough forecast windows to make any calibration claim at all.
- Feed graph features into the models, not only into the retrieval agent.
- Patent features once a USPTO Open Data Portal key exists; versioned historical track taxonomy.
- NMPA CSV importer, AdCom parsing, and the draft lanes tracked in PRs #12–#30.
Project status — generated from PROJECT_STATE.yaml at 2026-11-13T04:50:58+08:00 by python tools/governance/gen_views.py; edit the state file, never this block.
| Item | Value |
|---|---|
| Observed main head | b2a14c0 — 2026-11-03 (may lag main; stale-by-design is a warning) |
| Verified baseline | b2a14c0 (1,157 passed, 1,160 collected) |
| Release | 0.5.0 (unreleased) |
| Tests | 1,157 passed, 3 skipped, 0 failed (1,160 collected, offline) |
| Capabilities | 7 working · 6 draft · 1 retired |
| Research studies | 1 (0 with a public claim) |
| Data snapshot | 2026-10-31 — 375,378 events (local build; data/ is gitignored) |
| Open PRs | 28 open (27 draft), 10 merged |
| Branch protection | not applied |
See docs/governance/GOVERNANCE.md for the gates and docs/RESEARCH_INDEX.md for the generated research index.
The highest-value contributions are the curated knowledge files, not code: company and subsidiary
aliases, track dictionaries, product-code mappings. The core package stays standard-library-only, and
every new metric updates docs/METHODS.md and docs/SCHEMA.md
first. Start at CONTRIBUTING.md and
docs/GOOD_FIRST_ISSUES.md.
If you cite this repository, cite it as research infrastructure and cite a specific tagged artefact (a report, a study directory, a frozen experiment), not as a predictive claim.
MIT — see LICENSE. Source data belongs to its publishers: openFDA is public domain; ClinicalTrials.gov and SEC EDGAR have their own terms. Nothing here is investment advice. This is a research and education project.
Data snapshot 2026-10-31 · package v0.5.0 · MIT · 中文版 · documentation index


