Admin Phase 3: bind ADMIN_DB — storage provisioned, migration applied, verified#54
Merged
Merged
Conversation
Operator-authorized ('provision: go'). The wcjbt-admin D1 database now exists
(region ENAM), migration 0001_admin_storage applied remotely, and all four
tables + five indexes verified against the live database. wrangler.jsonc gains
the ADMIN_DB binding with its own migrations-admin dir; a wrangler dry-run
confirms the full binding map resolves. The schema header is trued up from
draft to provisioned, keeping the three recreate steps for downstream AGPL
deployers.
Deliberately separate from the wcjbt-auth store: moderation casework and
content staging carry a different retention and legal posture than sign-in
state. No code path reads these tables yet — the Phase-3+ server slices land
against them next, starting with the insert-only tripwire test for
admin_action_audit (mirroring the 0002 audit contract).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LVPyHAtQ1cdK76RpFasafP
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
wecanjustbuildthings | 9971426 | Jul 11 2026, 06:55 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Lands the config side of the operator-authorized Phase-3 provisioning (single commit
9971426):wcjbt-adminD1 database created on the project account (region ENAM); migration0001_admin_storage.sqlapplied remotely; all 4 tables + 5 indexes verified against the live database (staged_edits,mod_cases,mod_labels,admin_action_audit).wrangler.jsoncgains theADMIN_DBentry with its ownmigrations-admindir;wrangler deploy --dry-runconfirms the full binding map resolves (env.ADMIN_DB (wcjbt-admin)).Deliberately a separate database from
wcjbt-auth: moderation casework and content staging carry a different retention and legal posture than sign-in state. No code path reads these tables yet — the Phase-3+ server slices land next, starting with the insert-only tripwire test foradmin_action_audit(mirroring the 0002 audit contract).Type of change
Required checks
npm run checkpasses (no content/schema changes in this diff)npm run enforcepasses (no dependency changes — zero new deps)npm testpasses (no code paths touched)npm run build— binding validated viawrangler deploy --dry-run; merge triggers the real Workers Build(Correction on record: an earlier revision cited the commit as
1d0b0f8— an unverified hash, same error class as the PR-#53 correction. The verified commit is9971426.)🤖 Generated with Claude Code
https://claude.ai/code/session_01LVPyHAtQ1cdK76RpFasafP