Skip to content

I-01B: add database foundation and bootstrap CLI - #7

Merged
SayQuan1 merged 4 commits into
mainfrom
wsq/i-01b-database-foundation
Sep 30, 2026
Merged

SayQuan1 merged 4 commits into
mainfrom
wsq/i-01b-database-foundation

Conversation

@SayQuan1

Copy link
Copy Markdown
Owner

Summary

Implements I-01B as a stacked pull request on the unreviewed I-01A skeleton. This PR does not merge or modify main.

  • add immutable Alembic 0001_initial migration and packaged schema snapshots
  • add guarded MySQL connection, full metadata verification, and disposable-instance runner
  • add atomic tenant/six-role/initial administrator bootstrap CLI with Argon2id and sanitized audit event
  • add cross-tenant/current-pointer/owner/crop/task constraint tests and MySQL CI service
  • document operations, downgrade safety, evidence, and I-01C boundary

Validation

  • isolated MySQL 8.0.33: 47 persistence tests passed
  • I-01A regression: business/protocol/AI tests passed
  • design generators/readiness/validators passed
  • Ruff check and format passed
  • AI dependency isolation passed
  • wheel installation includes migration snapshots and Alembic head

Review notes

Rollback

Before release, revert this commit. The initial migration downgrade is destructive and only permitted for explicitly confirmed disposable APP_ENV=test schemas. Do not use downgrade to roll back a production database.

Unify the business and AI interpreter baseline on Python 3.11 while preserving separate dependencies and processes. Replace framework fallbacks, align the authenticated fixture with generated AI contracts, reject production, and document ADR-PY-01 and I-01A acceptance.

Validation: 25 application/protocol tests; clean AI-only environment; Ruff check and format; npm ci and dev build; production rejection; wheel/resource smoke; 228 synthetic readiness/release/D-FINE checks; generated artifacts and staged whitespace checks.

Scope: development skeleton only. MySQL, durable jobs, real spawn computation, D-FINE/OCR/GPU inference, and production deployment remain later milestones. Runtime and auth changes require independent review.

Rollback: revert this commit. No database migration or production data changes. Do not rewrite main history.
Add the frozen initial Alembic schema, tenant and administrator bootstrap, metadata verification, and isolated MySQL integration tests. Document the disposable database workflow, CI service, rollback guard, and I-01B evidence.
Update the I-01B handoff after I-01A merges and record successful remote checks without treating CI as review approval.
@SayQuan1
SayQuan1 changed the base branch from wsq/i-01a-python311-skeleton to main September 30, 2026 02:24
@SayQuan1

Copy link
Copy Markdown
Owner Author

@1605009600 审PR

@SayQuan987 SayQuan987 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass

@SayQuan1
SayQuan1 merged commit d857da4 into main Sep 30, 2026
10 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.

2 participants