CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 59s
CI & Build / integration (push) Successful in 1m32s
CI & Build / Python tests (push) Successful in 2m33s
CI & Build / Build & push image (push) Successful in 26s
Record, milestone, phase and plan citations go from every migration header; the "end before start" fix (0043) and the suppressed-count column (0095) state the condition they prevent rather than the incident. 0053 and 0055 pointed at design specs under docs/superpowers that are not in the repo; those pointers are removed. Kept: alembic's generated "Create Date:" headers (template metadata, not rationale), 0121's ARM_BORN justification beside the constant, and 0051's illustrative "update task 42" format example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
741 B
Python
27 lines
741 B
Python
"""Exempt/variant reason codes — a small fixed catalogue beside the prose
|
|
|
|
Revision ID: 0083
|
|
Revises: 0082
|
|
Create Date: 2026-08-21
|
|
|
|
The 2026-08 audit wrote the same free-text reason thousands of times
|
|
("scoped rule — styles one element of this view"); a judgment's WHY stays
|
|
prose, but an optional code from a fixed catalogue makes the ledger
|
|
filterable and aggregable ("how many pure helpers, how many test helpers").
|
|
"""
|
|
import sqlalchemy as sa
|
|
from alembic import op
|
|
|
|
revision = "0083"
|
|
down_revision = "0082"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column("code_shapes", sa.Column("reason_code", sa.Text(), nullable=True))
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("code_shapes", "reason_code")
|