REA Alembic.ini notes (unofficial)
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
- Authorize the Alembic tree (+ packaged migration artifacts you hold).
- Quote selected
script_location,version_locations, and non-secret config keys you actually see (never paste DB passwords). - Cousins → liquibase-changelog · flyway-sql · prisma-schema · atlas-hcl.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_alembic_iniAPI 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
| Artifact | Honest posture |
|---|---|
| Alembic.ini / env.py | Migration identity facts |
| Liquibase peer | rea-liquibase-changelog |
| Flyway peer | rea-flyway-sql |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote
script_locationandversion_locations— enough for most Evidence binders. sqlalchemy.urlmay embed credentials — record the driver/host label only; redact passwords and tokens.env.pyoften shows offline/online migration hooks — useful; avoid pasting live connection URLs.- Revision IDs under
versions/are identity facts; quote filenames /revision/down_revisionpairs 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.urlor 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).