Skip to content

Phase 8: Baseline exchange — export and import baselines as JSON or CSV - #66

Merged
LikelyCause merged 24 commits into
mainfrom
phase-8
Nov 15, 2026
Merged

LikelyCause merged 24 commits into
mainfrom
phase-8

Conversation

@LikelyCause

Copy link
Copy Markdown
Owner

What it does

  • Export a finalized baseline version as lossless `rainforest-baseline/1` JSON or a one-row-per-field CSV (`GET /api/datasets/{id}/baselines/{family}/v/{n}/export`), audited in the baseline's home project.
  • Import either format into another dataset (`POST /api/datasets/{id}/baselines/import`): dry run by default returns a report of what carries over and what doesn't (and why); applying opens the next version (or fills a first baseline in place) for review. It never finalizes.
  • UI: Export baseline and Import baseline dialogs; Python client support; docs in `docs/baseline-format.md` and `docs/api.md`.

Integration

Merged phase-8-api and phase-8-ui onto main (phase 6). `api/openapi.json` regenerated (added the two routes, kept main's predict paths and schemas); UI types regenerated; route-matrix rows added for the two new routes.

Tests (all in Docker on a Mac)

  • API full suite: 2468 passed; client: 66 passed; ruff check and format clean.
  • UI: typecheck, eslint (0 errors), prettier clean; vitest 568 passed in 74 files.
  • End to end on a real Compose stack: exported a finalized baseline as JSON and CSV, dry-ran the CSV into a second dataset, applied it; the report's counts, rows and targets equal the dry run, and the second dataset's field decisions match the first's.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS

LikelyCause and others added 24 commits November 15, 2026 12:13
…sessor and opening helpers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
…ops its unused dataset

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
…rt report

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
…aded working copy, access check before the body, audit after jobs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
…t name needs it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
…types, route matrix rows for export and import

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LqNnEU86Q4fmrJnN2rXovS
@LikelyCause
LikelyCause merged commit 60d3c93 into main Nov 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant