Goal
Root cause: Notebook pages and artifact pages are not accessible, though some static artifacts exist. This suggests issues with the computational notebook serving system.
Acceptance Criteria
☐ /notebook/artifact-top5-nb-SDA-2026-04-01-gap-2
☐ Changes tested and verified
Approach
Read existing code and understand current state
Implement required changes
Test changes
Commit and pushDependencies
(none listed)
Dependents
(none listed)
Work Log
2026-04-17 11:55 PT — Slot 0
- Investigated: /notebook/artifact-top5-nb-SDA-2026-04-01-gap-2 and similar IDs return 302 redirect to /notebooks
- Root cause: These IDs exist as artifacts (artifact_type='notebook') but not in the
notebooks table. The /notebook/{id} route only looked in notebooks table and redirected to /notebooks when not found.
- Fix: Added check in
notebook_detail() to query artifacts table when notebook not found in notebooks table, and redirect to /artifact/{id} if an artifact exists with that ID.
- Changes: api.py line 49683-49686 - Added artifact lookup before falling back to /notebooks redirect
- Committed and pushed:
[Atlas] Fix /notebook/ redirect to /artifact/ when notebook ID is an artifact ID [task:efd97ee8-3110-49f8-8c01-5fd34cf855c4]
- Verified: /artifact/figure-41c672490c90 and /artifact/kg_edge-72c8c1e24fc7 return 200, /notebook/{existing-id} returns 200
2026-04-17 12:10 PT — Slot 0 (rebase)
- Task was marked done but work didn't land on main (orphan branch issue)
- Rebased worktree onto current origin/main (main had moved forward since worktree creation)
- Squashed commits into one with commit message explicitly mentioning api.py (pre-push hook requirement)
- Final commit:
[Atlas] Fix /notebook/ redirect to /artifact/ when notebook ID is an artifact ID — api.py notebook_detail() [task:efd97ee8-3110-49f8-8c01-5fd34cf855c4]
- Verified all affected routes work: /artifact/figure-41c672490c90 → 200, /artifact/kg_edge-72c8c1e24fc7 → 200, /artifact/figure-5eaba5fa4ebe → 200, /notebook/artifact-top5-nb-SDA-2026-04-01-gap-2 → 302 (redirect to artifact), /notebook/artifact-top5-nb-SDA-2026-04-01-gap-v → 302