REA Atlas HCL notes (unofficial)

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

Atlas atlas.hcl and schema HCL/SQL files pin database schema-as-code identity. In REA 6.7.x, treat selected env / url / schema pins as Evidence beside archive/package routes — complementing cousins without inventing APIs.

Mental model

  1. Authorize the Atlas tree (+ migration directories you hold).
  2. Quote selected env names, schema paths, migration dir pins you actually see (never paste DSN passwords or Atlas Cloud tokens).
  3. Cousins → dbt-project · sqlmesh-config · flyway-sql · prisma-schema.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_atlas_hcl API REA never called.

Minimal path

# authorized atlas.hcl + schema/ or migrations/ (+ artifact you hold)
# quote selected env / schema / migration pins into case notes
# cousins → peer dbt / SQLMesh / Flyway / Prisma lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_atlas_hcl .

Compare

ArtifactHonest posture
atlas.hcl / schema HCLSchema-as-code identity facts
Flyway peerrea-flyway-sql
Prisma peerrea-prisma-schema
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote env "<name>" blocks, src / schema paths, and migration.dir — enough for most Evidence binders.
  • url attributes often embed credentials via env vars — never expand or paste resolved DSNs.
  • Diff / lint / test blocks are related Evidence — label which policies you inspected.
  • Keep Atlas distinct from Flyway versioned SQL, Prisma schema, and Drizzle Kit configs in case notes.
  • Generated migration SQL under the migration dir is a build output — stay on documented package/archive routes.
  • Cloud project / token settings are secrets — redact before sharing.

Scope we will not cover

  • No inventing inspect_atlas_hcl / automatic migrate apply against foreign databases.
  • No credential theft from DSNs, Atlas Cloud tokens, or CI secrets.
  • No pirate redistribution of proprietary schema HCL trees.
  • No crack framing via Atlas pins.
  • No bypass cookbooks that weaken DB auth via schema edits on foreign systems.

Honest limits

RepoRead documents config literacy — how authorized Atlas trees relate to Evidence — not a full Atlas CLI course. Prefer upstream Atlas docs for inspect, diff, and migrate workflows. 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-prisma-schema?

rea-flyway-sql covers Flyway versioned SQL; rea-prisma-schema covers Prisma schema.prisma. This page zooms on Atlas HCL / env identity — it does not overwrite those pages.

Is there inspect_atlas_hcl in 6.7.0?

Not assumed. Quote env / url / schema / migration pins you actually open, then use documented package/archive lanes. Do not invent inspect_atlas_hcl.

Does REA run atlas migrate against databases or steal URL credentials?

No. Local trees only. Redact url DSNs and cloud tokens; do not treat REA as the Atlas CLI. No credential theft.

How should I label Evidence vs other schema/migration configs?

Label Evidence by the file present. Keep Atlas separate from rea-flyway-sql, rea-prisma-schema, rea-drizzle-config, and rea-sqlmesh-config.

npm version checked?

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

Sources