teleo-infrastructure/diagnostics
m3taversal ed4893e837
Some checks are pending
CI / lint-and-test (push) Waiting to run
fix(claims): unwrap ```markdown code fences + 404 for fragments
Two issues Ship hit on the Montreal Protocol claim:

1. 500 on canonical stem lookup. File starts with ```markdown wrapper
   instead of bare --- frontmatter delimiter. _split_frontmatter checked
   startswith("---") and bailed, returning "frontmatter parse failed".
   Same wrapper exists on 6 other claim files (audit grep). Now strip
   the wrapper before frontmatter detection.

2. 404 on long activity-feed slug. Same root cause — _build_indexes
   couldn't read the file's title from frontmatter, so by_title never
   indexed it, so title-fallback resolution had nothing to match against.
   Both bugs collapse once we unwrap.

Also: switched "file exists but has no frontmatter" from 500 to 404 with
reason=file_no_frontmatter. These are stray enrichment fragments living
in domains/ that never got merged into a parent claim. From the API
caller's perspective there's no claim at that slug — 500 implied
"server bug, retry later" which isn't actionable.

Verified: 3/3 wrapped claims (montreal, medicare, dod) now return 200
warm-cache ~13ms. Long-slug repro (montreal) resolves via title fallback
to canonical stem. Negative test (nonsense slug) still 404.
2026-05-11 12:02:54 +01:00
..
activity_endpoint.py feat(activity): Timeline data gaps — type filter + commit_type classifier + source_channel reshape 2026-04-23 19:51:58 +01:00
activity_feed_api.py fix(activity-feed): remove [:120] slug truncation 2026-04-27 15:27:31 +01:00
alerting.py fix: sync all code from VPS — repo is now authoritative source of truth 2026-04-15 13:18:01 +01:00
alerting_routes.py fix: sync all code from VPS — repo is now authoritative source of truth 2026-04-15 13:18:01 +01:00
app.py fix(diagnostics): wire /api/leaderboard into app.py + fix rolling-window SQL 2026-04-27 13:30:26 +01:00
backfill_submitted_by.py Consolidate pipeline code from teleo-codex + VPS into single repo 2026-04-07 16:52:26 +01:00
claims_api.py fix(claims): unwrap ```markdown code fences + 404 for fragments 2026-05-11 12:02:54 +01:00
contributor_profile_api.py feat: filter system accounts from leaderboard, add primary_ci field 2026-04-21 11:33:47 +01:00
daily_digest.py Consolidate pipeline code from teleo-codex + VPS into single repo 2026-04-07 16:52:26 +01:00
daily_digest_routes.py Consolidate pipeline code from teleo-codex + VPS into single repo 2026-04-07 16:52:26 +01:00
dashboard-v2.html Consolidate pipeline code from teleo-codex + VPS into single repo 2026-04-07 16:52:26 +01:00
dashboard_agents.py Consolidate pipeline code from teleo-codex + VPS into single repo 2026-04-07 16:52:26 +01:00
dashboard_epistemic.py fix: sync all code from VPS — repo is now authoritative source of truth 2026-04-15 13:18:01 +01:00
dashboard_health.py Consolidate pipeline code from teleo-codex + VPS into single repo 2026-04-07 16:52:26 +01:00
dashboard_ops.py Consolidate pipeline code from teleo-codex + VPS into single repo 2026-04-07 16:52:26 +01:00
dashboard_portfolio.py fix: apply Ganymede review fixes to portfolio code 2026-04-20 17:00:02 +01:00
dashboard_prs.py fix: sync all code from VPS — repo is now authoritative source of truth 2026-04-15 13:18:01 +01:00
dashboard_routes.py sync: dashboard_routes.py from VPS — digest + contributor-graph endpoints 2026-04-21 11:01:15 +01:00
leaderboard_routes.py fix(diagnostics): wire /api/leaderboard into app.py + fix rolling-window SQL 2026-04-27 13:30:26 +01:00
research_routes.py fix: sync all code from VPS — repo is now authoritative source of truth 2026-04-15 13:18:01 +01:00
research_tracking.py fix: sync all code from VPS — repo is now authoritative source of truth 2026-04-15 13:18:01 +01:00
response_audit_routes.py Consolidate pipeline code from teleo-codex + VPS into single repo 2026-04-07 16:52:26 +01:00
review_queue.py fix: sync all code from VPS — repo is now authoritative source of truth 2026-04-15 13:18:01 +01:00
review_queue_routes.py Consolidate pipeline code from teleo-codex + VPS into single repo 2026-04-07 16:52:26 +01:00
shared_ui.py sync VPS state: portfolio dashboard + fetch_coins.py 2026-04-20 16:55:36 +01:00
teleo-diagnostics.service epimetheus: sync VPS-deployed code to repo — Mar 18-20 reliability + features 2026-03-20 20:17:27 +00:00
tier1_metrics.py Consolidate pipeline code from teleo-codex + VPS into single repo 2026-04-07 16:52:26 +01:00
tier1_routes.py Consolidate pipeline code from teleo-codex + VPS into single repo 2026-04-07 16:52:26 +01:00
vitality.py fix: sync all code from VPS — repo is now authoritative source of truth 2026-04-15 13:18:01 +01:00
vitality_routes.py fix: sync all code from VPS — repo is now authoritative source of truth 2026-04-15 13:18:01 +01:00