Skip to content

Add pnpm seed:export and refresh the DEV snapshot (#84) - #85

Merged
unsound-mint merged 1 commit into
mainfrom
denis/84-seed-export
Nov 8, 2026
Merged

unsound-mint merged 1 commit into
mainfrom
denis/84-seed-export

Conversation

@unsound-mint

Copy link
Copy Markdown
Owner

Fixes #84

Summary

  • scripts/export-seed.mjs (pnpm seed:export): consistent copy of the live DB (VACUUM INTO, WAL-safe), then everything outside the DEV group is deleted from the copy. Keeps the latest completed evaluation per conversation (plus any evaluation referenced by a review/appeal/crosscheck/tag), people, teams, taxonomy, checklist versions. Drops jobs and import/run journal events. Aborts if any non-DEV conversation survives.
  • Refreshed data/seed/cqa-dev.db: 65 conversations, 65 evaluations, directory included (was 66 evaluations, 5 tables, no directory).
  • RUNBOOK updated.

Evidence

  • integrity_check ok; journal mode delete (no WAL needed); 0 occurrences of the control group id or its conversation ids in the file; all 65 evaluations are the latest completed one for their conversation.
  • API booted on a fresh copy of the seed and served /api/conversations.

File scope: scripts/, package.json, docs/RUNBOOK.md, data/seed/. No API/contract changes. Privacy-relevant (data export): self-review note — the only filter is the group id plus the abort guard above.

@unsound-mint
unsound-mint merged commit cd4770a into main Nov 8, 2026
2 checks passed
@unsound-mint
unsound-mint deleted the denis/84-seed-export branch November 8, 2026 06:52
unsound-mint added a commit that referenced this pull request Nov 9, 2026
Add pnpm seed:export and refresh the DEV snapshot (#84)
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.

[infra] pnpm seed:export: rebuild data/seed from the live DB (DEV only)

1 participant