Skip to content

Reset Alembic to the v0.1 schema baseline - #317

Merged
abiorh-claw merged 4 commits into
mainfrom
codex/ws-db-001-01-v01-baseline-reset
Aug 11, 2026
Merged

abiorh-claw merged 4 commits into
mainfrom
codex/ws-db-001-01-v01-baseline-reset

Conversation

@Abiorh001

Copy link
Copy Markdown
Collaborator

Intent

Replace the 63 pre-v0.1 development revisions with one exact, forward-only PostgreSQL baseline. Existing old, stamped, or nonempty databases are deliberately not upgradeable and must be recreated.

What changed

  • installs the complete current schema from the single 0001_v01_baseline root revision;
  • commits deterministic schema, reference-data, raw source, installed-baseline, and approved sequence-delta evidence;
  • advances the two singleton seed sequences to prevent generated-key collisions;
  • refuses old stamps and nonempty schemas before product DDL, and refuses downgrade before mutation;
  • removes obsolete migration contracts, service-identity migration tooling, all 63 old revisions, and migration-only tests;
  • replaces historical revision traversal with focused current-schema, ACL, seed, refusal, and manifest tests;
  • accounts for all 133 removed test nodes in MIGRATION_TEST_CUSTODY.md;
  • updates lane custody, reset fingerprinting, plans, and current operational/specification docs.

Impact

This is an intentional pre-v0.1 clean cut. Development databases using the removed graph must be destroyed and recreated. Future schema changes begin at revision 0002. No product API, permission, role, lifecycle, or worker behavior is changed.

Validation

  • 41 passed: isolated test_alembic.py + test_database_reset.py
  • 36 passed: isolated database runner custody suite
  • Alembic reports exactly one root/head: 0001_v01_baseline
  • Ruff, module boundary, authorization boundary, test-structure, behavior-ownership, Markdown link, and stale-wording gates pass
  • architecture, security, QA, test-delta, CI-integrity, reuse, senior-engineering, and docs reviews passed; low-risk notes are documented in review handoff
  • full repository coverage and all semantic Backend lanes are delegated to hosted GitHub Actions

Human review focus

  • confirm the destructive no-compatibility reset is intended;
  • inspect source/baseline manifest evidence and the two explicit sequence repairs;
  • confirm PostgreSQL functions, triggers, constraints, ACLs, catalogues, and seeds are preserved;
  • confirm removed tests concern obsolete transitions or have exact current-invariant ownership.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 110 files, which is 10 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 45573074-2115-45a8-8d4b-6ced19201854

📥 Commits

Reviewing files that changed from the base of the PR and between 1ad50f4 and 466e43c.

📒 Files selected for processing (110)
  • .agent-loop/initiatives/WS-AUTH-003-module-boundary-recovery/TEST_STRUCTURE_DEBT.json
  • .agent-loop/initiatives/WS-DB-001-v01-schema-baseline/DECISIONS.md
  • .agent-loop/initiatives/WS-DB-001-v01-schema-baseline/PLAN.md
  • .agent-loop/initiatives/WS-DB-001-v01-schema-baseline/STATUS.md
  • .agent-loop/initiatives/WS-DB-001-v01-schema-baseline/chunks/WS-DB-001-01-v01-baseline-reset.md
  • .agent-loop/initiatives/WS-DB-001-v01-schema-baseline/reviews/WS-DB-001-01-external-review-response.md
  • .agent-loop/initiatives/WS-DB-001-v01-schema-baseline/reviews/WS-DB-001-01-pr-trust-bundle.md
  • .ci/behavior-ownership/partition.v1.json
  • CONTRIBUTING.md
  • README.md
  • backend/alembic/MIGRATION_TEST_CUSTODY.md
  • backend/alembic/README
  • backend/alembic/baseline/v01_approved_manifest_delta.json
  • backend/alembic/baseline/v01_baseline_manifest.json
  • backend/alembic/baseline/v01_pre_reset_source_manifest.json
  • backend/alembic/baseline/v01_reference_data.sql
  • backend/alembic/baseline/v01_schema.sql
  • backend/alembic/env.py
  • backend/alembic/versions/0001_initial_baseline.py
  • backend/alembic/versions/0001_v01_baseline.py
  • backend/alembic/versions/0002_project_guide_foundation.py
  • backend/alembic/versions/0003_task_queue_assignment.py
  • backend/alembic/versions/0004_submission_packet_foundation.py
  • backend/alembic/versions/0005_checker_runs.py
  • backend/alembic/versions/0006_submission_artifact_policy_foundation.py
  • backend/alembic/versions/0007_task_locked_submission_context.py
  • backend/alembic/versions/0008_post_submit_checker_policy_provenance.py
  • backend/alembic/versions/0009_evaluation_pending_status.py
  • backend/alembic/versions/0010_project_guide_contract_marker.py
  • backend/alembic/versions/0011_task_artifact_contract_marker.py
  • backend/alembic/versions/0012_actor_identity_profile_registry.py
  • backend/alembic/versions/0013_project_setup_runs.py
  • backend/alembic/versions/0014_post_submit_setup_continuation.py
  • backend/alembic/versions/0015_post_submit_policy_correction_audit.py
  • backend/alembic/versions/0016_artifact_domain_local_adapter.py
  • backend/alembic/versions/0017_api_controls.py
  • backend/alembic/versions/0018_authority_audit_evidence.py
  • backend/alembic/versions/0019_authority_idempotency.py
  • backend/alembic/versions/0020_canonical_actor_profile.py
  • backend/alembic/versions/0021_authorization_action_evidence.py
  • backend/alembic/versions/0022_bootstrap_admin_grants.py
  • backend/alembic/versions/0023_service_actor_identity.py
  • backend/alembic/versions/0024_service_link_verification.py
  • backend/alembic/versions/0025_artifact_store_v2_clean_cut.py
  • backend/alembic/versions/0026_actor_profile_lifecycle.py
  • backend/alembic/versions/0027_contributor_foundation.py
  • backend/alembic/versions/0028_artifact_admission.py
  • backend/alembic/versions/0029_shared_transactional_outbox.py
  • backend/alembic/versions/0030_artifact_verification_fencing.py
  • backend/alembic/versions/0031_project_role_grants.py
  • backend/alembic/versions/0032_artifact_recovery_attempts.py
  • backend/alembic/versions/0033_authorization_read_rate_control.py
  • backend/alembic/versions/0034_project_role_issue_evidence.py
  • backend/alembic/versions/0035_project_read_action_evidence.py
  • backend/alembic/versions/0036_art_auth_catalogue_reconciliation.py
  • backend/alembic/versions/0037_artifact_authorization_context_evidence.py
  • backend/alembic/versions/0038_guide_source_artifact_ingests.py
  • backend/alembic/versions/0039_guide_source_bindings.py
  • backend/alembic/versions/0040_guide_materialization.py
  • backend/alembic/versions/0041_project_mutation_action_evidence.py
  • backend/alembic/versions/0042_guide_extraction.py
  • backend/alembic/versions/0043_project_setup_service.py
  • backend/alembic/versions/0044_project_create_authority.py
  • backend/alembic/versions/0045_guide_source_metadata_authority.py
  • backend/alembic/versions/0046_guide_sufficiency_provenance.py
  • backend/alembic/versions/0047_immutable_review_revision_policy_lineage.py
  • backend/alembic/versions/0048_review_revision_policy_authority.py
  • backend/alembic/versions/0049_rev_auth_readiness.py
  • backend/alembic/versions/0050_guide_source_v2_cutover.py
  • backend/alembic/versions/0051_review_queue_foundation.py
  • backend/alembic/versions/0052_legacy_intake_removal.py
  • backend/alembic/versions/0053_project_compensation_adapter_bindings.py
  • backend/alembic/versions/0054_guide_sufficiency_authority.py
  • backend/alembic/versions/0055_contribution_policy.py
  • backend/alembic/versions/0056_review_lease_preference.py
  • backend/alembic/versions/0057_submission_policy_authority.py
  • backend/alembic/versions/0058_pre_submit_evidence.py
  • backend/alembic/versions/0059_submission_policy_execution_claim.py
  • backend/alembic/versions/0060_submission_bundle_durable_intent.py
  • backend/alembic/versions/0061_submission_bundle_admission.py
  • backend/alembic/versions/0062_project_guide_compilation_foundation.py
  • backend/alembic/versions/0063_guide_compilation_authority.py
  • backend/app/modules/actors/service_identity_migration.py
  • backend/migration_contracts/__init__.py
  • backend/migration_contracts/service_identity_0023.py
  • backend/pyproject.toml
  • backend/scripts/behavior_ownership.py
  • backend/scripts/run_test_lanes.py
  • backend/scripts/schema_baseline_manifest.py
  • backend/scripts/schema_baseline_sql.py
  • backend/scripts/service_actor_identity_mapping.py
  • backend/tests/authorization/guide_compilation/test_migration_contract.py
  • backend/tests/conftest.py
  • backend/tests/projects/guide_compilation/test_migration_contract.py
  • backend/tests/test_actor_migration_tools.py
  • backend/tests/test_alembic.py
  • backend/tests/test_artifact_admission.py
  • backend/tests/test_authorization.py
  • backend/tests/test_behavior_ownership.py
  • backend/tests/test_compensation.py
  • backend/tests/test_guide_bindings.py
  • backend/tests/test_review_lease_persistence.py
  • backend/tests/test_review_queue_persistence.py
  • backend/tests/test_tasks.py
  • docs/architecture_data_model.md
  • docs/operations_artifact_storage.md
  • docs/operations_authorization_service.md
  • docs/operations_backend_testing.md
  • docs/spec_artifact_storage_service.md
  • docs/spec_authorization_service.md

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Abiorh001

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review skipped: 105 files exceed the limit of 100.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@abiorh-claw
abiorh-claw self-requested a review August 11, 2026 13:37
@abiorh-claw
abiorh-claw merged commit 64f28bc into main Aug 11, 2026
11 checks passed
@abiorh-claw
abiorh-claw deleted the codex/ws-db-001-01-v01-baseline-reset branch August 11, 2026 14:22
@Abiorh001 Abiorh001 mentioned this pull request Aug 11, 2026
11 of 12 tasks
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