as-built-atlas

Open Source / MIT License

What will this
change affect?

Trace a change through an existing codebase. This open-source tool maps calls and data access from screens, API endpoints, and jobs, with source lines you can check.

Tap the 3D view to pause or resume rotation.

Calls across the scheduler, job, data store, and external tiers

Where change investigations get stuck

Investigating a change to order processing

At Kotori Books, a fictional bookstore, a daily job settles the previous day’s orders. Follow it to the orders table and check the update in the source. The sample code and reference data come from the same specification.

Find the settlement job

Of the 34 entry points, start with /daily/sales/settle_orders, a daily batch job launched by the scheduler.

Calls from the scheduler through shell scripts and programs to data stores and external APIs

Follow the calls to the orders table

The flow calls scripts/run_job.sh, which runs jobs/settle_orders.py. This job both reads and updates orders.

The selected orders table is reached through the flow, a shared shell script, and a Python job.

Find who reads and writes orders

The orders column shows that only the settlement job (settle_orders) reads and updates this table (RU). The sales report and product ranking both read it (R). Check those two reports when changing an order status.

Scope: /daily/sales has five entry points that access eight tables in the shop schema. The compact view shows the three entries that access orders. Open the image to see all eight columns.

In the orders column, settlement reads and updates. The sales report and product ranking read.
Read the matrix as text
Operations across five daily sales entries and eight tables in the shop schema. Empty combinations are omitted.
Entry pointTableOperation
coupon_expirycoupon_usagesD (delete)
couponsRU (read, update)
product_rankingorder_itemsR (read)
ordersR (read)
productsR (read)
refund_returnscustomersR (read)
paymentsCR (create, read)
returnsRU (read, update)
sales_reportorder_itemsR (read)
ordersR (read)
productsR (read)
settle_ordersordersRU (read, update)
paymentsCR (create, read)

Check the update in the source

jobs/settle_orders.py

  1. if not args.dry_run:
  2. db.execute_many(
  3. "UPDATE shop.orders SET status = 'settled', settled_at = now() WHERE id = %s",

Line 39 sets the order status and settlement time. Two lines above it, the condition on line 37 shows why a dry run skips this update.

View the source on GitHub
Try this example on GitHub

Start where your system starts.

A web app has pages and routes. A CLI has subcommands. Each profile defines what counts as an entry point and which layers to trace.

From a page to its API and data

In umami, a Next.js application, trace calls from pages through React components and API routes to queries.

The umami view shows page, layout, and part nodes calling components. Explore the umami example
See all 11 profiles

Turn AI analysis into
results you can reuse.

AI reads the code and records relationships. Once the analysis is saved, running the same operations on the same data produces the same summaries.

Code relationships are saved as YAML, then aggregated for people and agents.
AI analysis

Read the code

The agent follows calls, dependencies, reads, and writes from each entry point and records evidence for its claims.

Validate and save

Keep the evidence

Tools check structure and consistency, then save one YAML result per entry point.

Deterministic queries

Explore the results

Build dependency graphs and CRUD matrices from the saved analysis.

When the source is available, checks also verify that cited files and lines exist. Use those references to judge the interpretation and coverage.

Check the evidence. Share it with an agent.

From a claim to a source line

The settlement job reads orders at line 25 and updates them at line 39.

The analysis distinguishes facts, interpretations, and unknowns with reasons. Maintainers can return to the cited file and line to check a claim.

Read the settlement analysis

One table for people and agents

Maintainers use the web app and agents use MCP to query the same data access table, mart_data_access.

The web app and MCP use the same API. Agents can call describe_atlas to read the profile and vocabulary, then query_mart to retrieve the rows they need.

See example queries
HTTP
GET /marts/mart_data_access/rows?limit=200
MCP
query_mart(name="mart_data_access", filters={}, limit=200)
View the query example in the web app

How the map is built

  1. Discover

    Identify candidates and enumerate entry points.

  2. Approve

    A maintainer selects the entries to analyze.

  3. Analyze

    An agent traces calls and records the evidence.

  4. Validate and aggregate

    Check results and build tables across entries.

  5. Webapp / MCP

    People and agents explore the same data.

Open the sample map.

All you need is Docker and Git. The sample includes the bookstore’s code and analysis results.

Browse the Kotori Books entries by category, including daily and hourly jobs.