REA Alembic.ini notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

Alembic alembic.ini / env.py / versions/ pins SQLAlchemy migration identity. In REA 6.7.x, treat selected script_location / version pins as Evidence beside archive/package routes — complementing cousins without inventing APIs.

Mental model

  1. Authorize the Alembic tree (+ packaged migration artifacts you hold).
  2. Quote selected script_location, version_locations, and non-secret config keys you actually see (never paste DB passwords).
  3. Cousins → liquibase-changelog · flyway-sql · prisma-schema · atlas-hcl.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_alembic_ini API REA never called.

Minimal path

# authorized alembic.ini (+ versions/ + artifact you hold)
# quote selected script_location / version_locations / non-secret keys into case notes
# cousins → peer Liquibase / Flyway / Prisma / Atlas lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_alembic_ini .

Compare

ArtifactHonest posture
Alembic.ini / env.pyMigration identity facts
Liquibase peerrea-liquibase-changelog
Flyway peerrea-flyway-sql
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote script_location and version_locations — enough for most Evidence binders.
  • sqlalchemy.url may embed credentials — record the driver/host label only; redact passwords and tokens.
  • env.py often shows offline/online migration hooks — useful; avoid pasting live connection URLs.
  • Revision IDs under versions/ are identity facts; quote filenames / revision / down_revision pairs you opened.
  • Keep Alembic distinct from Flyway SQL folders and Liquibase changelogs in case notes.
  • Autogenerate settings are still config identity — quote the flags you observed, do not invent REA helpers for them.

Scope we will not cover

  • No inventing inspect_alembic_ini / automatic DB attacks against foreign databases.
  • No credential theft from sqlalchemy.url or env-injected secrets.
  • No pirate redistribution of proprietary migration trees.
  • No crack framing via Alembic pins.
  • No cookbooks that weaken DB auth on foreign deployments.

Honest limits

RepoRead documents config literacy — how authorized Alembic trees relate to Evidence — not a full Alembic course. Prefer upstream Alembic docs for branches, batches, and autogenerate. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-flyway-sql / rea-liquibase-changelog / rea-prisma-schema?

rea-flyway-sql covers Flyway SQL migrations; rea-liquibase-changelog covers Liquibase changelogs; rea-prisma-schema covers Prisma schema. This page zooms on Alembic.ini identity — it does not overwrite those pages.

Is there inspect_alembic_ini in 6.7.0?

Not assumed. Quote script_location / version_locations / sqlalchemy.url labels you actually open, then use documented package/archive lanes. Do not invent inspect_alembic_ini.

Does REA connect to databases or steal SQLAlchemy credentials?

No. Local trees only. Redact sqlalchemy.url passwords and tokens; do not treat REA as a migration runner. No credential theft.

How should I label Evidence vs other migration configs?

Label Evidence by the file present. Keep Alembic separate from rea-flyway-sql, rea-liquibase-changelog, and rea-atlas-hcl.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources