v0.1.7: delete companies for re-evaluation

- DELETE /api/companies/{slug}: wipes the ledger (deck records, scorecard,
  report md), sweeps per-job report and processed-deck copies; optional
  restore_decks moves the graded originals from /data/processed back into
  the inbox for a fresh Grade Decks run; 409 while a job is running;
  config-registered companies reappear as empty rows (aliases + pinned
  targets kept)
- Dashboard: "delete company…" danger button on the company card with a
  two-step confirm (delete, then restore-decks choice)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jonathan Kirkwood
2026-07-30 14:25:44 -05:00
co-authored by Claude Fable 5
parent 32d5d7f373
commit 7ec5222834
5 changed files with 105 additions and 5 deletions
+3 -2
View File
@@ -6,9 +6,10 @@ import { v_0_1_3 } from './v_0_1_3'
import { v_0_1_4 } from './v_0_1_4'
import { v_0_1_5 } from './v_0_1_5'
import { v_0_1_6 } from './v_0_1_6'
import { v_0_1_7 } from './v_0_1_7'
/** The current version MUST be the first argument (`current`). */
export const versions = VersionGraph.of({
current: v_0_1_6,
other: [v_0_1_5, v_0_1_4, v_0_1_3, v_0_1_2, v_0_1_1, v_0_1_0],
current: v_0_1_7,
other: [v_0_1_6, v_0_1_5, v_0_1_4, v_0_1_3, v_0_1_2, v_0_1_1, v_0_1_0],
})
+16
View File
@@ -0,0 +1,16 @@
import { VersionInfo } from '@start9labs/start-sdk'
/** Company deletion for re-evaluation. ExVer form `<upstream>:<downstream>`. */
export const v_0_1_7 = VersionInfo.of({
version: '0.1.7:0',
releaseNotes:
'Companies can now be deleted from the dashboard (delete button on the ' +
'company card) so an evaluation can be re-run from scratch with different ' +
'models or graders. Deletion wipes the graded history — deck records, ' +
'scorecard, and per-job report copies — and optionally moves the ' +
'already-graded deck files from /data/processed back into the inbox, ' +
'ready for a fresh Grade Decks run. Companies registered in Configure ' +
'Companies reappear as empty rows with their aliases and pinned targets ' +
'kept; deletion is blocked while a grading job is running.',
migrations: {},
})