Task ID: experiment-artifact-extras-2026-05-13
Layer: Atlas (artifact_detail)
Date: 2026-05-13
Status: complete — shipped in PR #1413 (merge commit 2a6a76beb)
Parent quest: quest_artifact_page_unification_spec.md (delivers part of PR-6: type-specific scores/market/metrics slot)
v1 carve-out: user-authorized; v1 still serves scidex.ai
https://scidex.ai/experiments/exp-c3c760f8-d421-4033-92d3-46fe89694922
was reported broken. It returned HTTP 200 (not a 404 — the type-prefix
301 alias added 2026-04-28 already folded /experiments/<id> and
/experiment/<id> into /artifact/<id>), but the rendered page was the
generic experiment shell. Experiment-only data was invisible: this
experiment had 2 linked prediction markets and a market_price of
$0.50 that never appeared anywhere on the page.
Two coexisting renderers for the same data:
experiment_detail handler (@app.api_route(artifact_detail elif atype == "experiment" branch readexperiments source table but rendered only protocol / outcomesPlus a single stray link in the entity-page experiments table emitted
the plural /experiments/<id> form (one redirect hop).
api.py:
_render_experiment_extras_html(db, artifact_id)"" when the id has no row in experimentsexperiments row). Each section is independently gated on its ownartifact_detail: a new experiment_extras_htmlatype == "experiment" branch,{type_viewer_html} at both the ?embed=1 view andexperiment_detail handler (~375 LOC). It was/experiment/<id> and /experiments/<id> into the now-richer/artifact/<id>. Net diff: +388 / −376.
/artifact/<id> directly (no redirect hop).Five fixtures, validated on a local test server and on live after
deploy (all /experiments/<id>, /experiment/<id>, /artifact/<id>
forms return identical enriched content):
test_wiki_crosslinks.py::test_experiment_detail_shows_wiki_crosslinksexperiment-wiki-crosslinks-restore-2026-05-18.The deleted handler had four capabilities not ported into the helper.
Captured for follow-up — see:
experiment-wiki-crosslinks-restore-2026-05-18_spec.md — experiment→wikiexperiment-extras-followups-2026-05-18_spec.md — Debate History(Note: a Mol/PDBe 3D structure viewer was never* part of
experiment_detail — it lives on the hypothesis page. It is not a
deferred experiment feature.)