|
Some checks are pending
CI / lint-and-test (push) Waiting to run
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.
|
||
|---|---|---|
| .. | ||
| activity_endpoint.py | ||
| activity_feed_api.py | ||
| alerting.py | ||
| alerting_routes.py | ||
| app.py | ||
| backfill_submitted_by.py | ||
| claims_api.py | ||
| contributor_profile_api.py | ||
| daily_digest.py | ||
| daily_digest_routes.py | ||
| dashboard-v2.html | ||
| dashboard_agents.py | ||
| dashboard_epistemic.py | ||
| dashboard_health.py | ||
| dashboard_ops.py | ||
| dashboard_portfolio.py | ||
| dashboard_prs.py | ||
| dashboard_routes.py | ||
| leaderboard_routes.py | ||
| research_routes.py | ||
| research_tracking.py | ||
| response_audit_routes.py | ||
| review_queue.py | ||
| review_queue_routes.py | ||
| shared_ui.py | ||
| teleo-diagnostics.service | ||
| tier1_metrics.py | ||
| tier1_routes.py | ||
| vitality.py | ||
| vitality_routes.py | ||