[Artifacts] Link generated notebook stubs into artifacts registry

← All Specs

Goal

Improve Quest 17 artifact completeness by ensuring notebook stubs generated during coverage CI are persisted as first-class artifacts in SciDEX tables. This task closes the gap where files are written to disk but DB-linked notebook coverage remains unchanged. The result should make notebook coverage metrics reflect newly generated stubs immediately.

Acceptance Criteria

scripts/artifacts_notebook_coverage_ci.py registers newly generated notebook stubs in DB artifact tables.
☑ Post-run coverage output reflects DB-linked notebook registrations for generated stubs.
☑ Verification commands pass for affected paths and services remain healthy.

Approach

  • Inspect notebook coverage CI flow and artifact registration helpers used elsewhere in the codebase.
  • Add registration logic for generated notebook and HTML artifacts (idempotent upsert behavior).
  • Re-run coverage CI and service health checks to verify DB-linked coverage improves and no regressions are introduced.
  • Dependencies

    • None.

    Dependents

    • Demo and artifact showcase CI tasks that rely on notebook coverage metrics.

    Work Log

    2026-04-04 06:28 PT — Slot 2

    • Started task and reviewed AGENTS.md, shared Orchestra standards, and QUESTS.md priority guidance.
    • Claimed no eligible cooldown task for slot 2 and created this one-shot [Artifacts] task to address an observed coverage gap.
    • Corrected spec to required format before implementation.

    2026-04-04 06:34 PT — Slot 2

    • Updated scripts/artifacts_notebook_coverage_ci.py to register generated stubs into notebooks, artifacts, artifact_links, and analyses.notebook_path.
    • Verified syntax: python3 -m py_compile scripts/artifacts_notebook_coverage_ci.py.
    • Verified behavior: python3 scripts/artifacts_notebook_coverage_ci.py --limit 3 improved DB-linked coverage from 46/60 (76.7%) to 49/60 (81.7%) and reported Registered notebook artifacts: 3.
    • Verified runtime health: curl -s http://localhost:8000/api/status | python3 -m json.tool, page checks (/notebooks, /artifacts, analysis route), and scidex status.

    Tasks using this spec (1)
    [Artifacts] Link generated notebook stubs into artifacts reg
    Artifacts done P88
    File: fc23fb55_8d8_spec.md
    Modified: 2026-05-01 20:13
    Size: 2.2 KB