Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

ci(ui): test-ui lane gates CodeAtlasWeb; docs describe the new Atlas

Martin Vogelf49023812061
diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml
index 3b9562975..497773163 100644
--- a/.github/workflows/_test.yml
+++ b/.github/workflows/_test.yml
@@ -205,6 +205,49 @@ jobs:
shell: bash
run: scripts/ci/test-package-wrappers.sh
+ # CodeAtlasWeb (graph-ui) gates. The frontend's own vitest suite (2000+
+ # tests; the render tests run under jsdom), its hardcoded-string and
+ # promise scans, its frozen acceptance checks, and a production build with
+ # the same npm ci the product build runs. No browser is downloaded: the
+ # browser proofs (graph-ui/tools/smoke-*.mjs) need a running server and
+ # Playwright browsers, and they stay a local, manually dispatched venue
+ # documented in graph-ui/README.md rather than a hosted gate.
+ test-ui:
+ runs-on: ubuntu-latest
+ timeout-minutes: 20
+ defaults:
+ run:
+ working-directory: graph-ui
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
+ with:
+ node-version: "22"
+
+ - name: Install (no browser download)
+ env:
+ PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
+ run: npm ci
+
+ - name: Unit tests (vitest)
+ run: npm run test:unit
+
+ - name: Style and promise gates
+ run: |
+ npm run check:style
+ npm run check:promises
+
+ # The two release-binding files (release-current, release-proof-binding)
+ # tie the recorded release report to the commits of the frontend's
+ # original repository and cannot pass anywhere else; test:acceptance is
+ # every other frozen check.
+ - name: Frozen acceptance checks
+ run: npm run test:acceptance
+
+ - name: Build
+ run: npm run build
+
# ThreadSanitizer data-race gate. The threaded production surfaces (watcher,
# subprocess, httpd, pipeline, mcp, worker pool, diagnostics, the runnable
# daemon-coordination paths) plus allocator concurrency all run under TSan
diff --git a/README.md b/README.md
index 01c4d8c44..2e3f4a913 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@ High-quality parsing through [tree-sitter](https://tree-sitter.github.io/tree-si
- **158 languages** — vendored tree-sitter grammars compiled into the binary. Nothing to install, nothing that breaks.
- **120x fewer tokens** — 5 structural queries: ~3,400 tokens vs ~412,000 via file-by-file search. One graph query replaces dozens of grep/read cycles.
- **43 supported automatic/conditional client surfaces** — `install` configures detected clients and safely activates conditional clients only when their documented platform, marker, or explicit existing config path is present. See [Multi-Agent Support](#multi-agent-support) for the complete matrix and manual/UI-only boundaries.
-- **CBM Atlas** — the built-in human interface at `localhost:9749`: overview, modules treemap, region-level 3D galaxy, call flows, change impact, symbol pages and a prompt composer, served from the binary itself.
+- **CBM Atlas** — the built-in human interface at `localhost:9749`: a reading IDE over the index (explorer and read-only Monaco reader, a semantic twin that follows the caret, flow, bug-hunt and change-scope reading modes, the 3D galaxy, source-cited answers, project management), served from the binary itself.
- **Infrastructure-as-code indexing** — Dockerfiles, Kubernetes manifests, and Kustomize overlays indexed as graph nodes with cross-references. `Resource` nodes for K8s kinds, `Module` nodes for Kustomize overlays with `IMPORTS` edges to referenced resources.
- **15 MCP tools** — search, trace, architecture, impact analysis, targeted index-coverage checks, Cypher queries, dead code detection, cross-service HTTP linking, ADR management, and more.
@@ -141,17 +141,18 @@ codebase-memory-mcp --ui=true --port=9749
Open `http://localhost:9749` in your browser. The UI is owned by the shared coordination daemon, so concurrent agent sessions do not start duplicate HTTP servers.
-Atlas is a code-discovery instrument, not a chart: every insight is deterministic, carries the reason it is shown, and links onward.
+Atlas is **CodeAtlasWeb**, a reading IDE built by [Bernhard Jackiewicz](https://github.com/BernhardJackiewicz) on the CBM read surface (design and tracking in #1964). It runs air-gapped on loopback, reaches no cloud, and every panel names where its facts come from; what the index did not record is shown as a gap, never filled in with a guess.
-- **Overview** — the first read of a project: regions (Leiden call communities voted per file, named with provenance and cohesion), hubs by fan-in, entry points, surprising cross-region couplings with reasons, suggested questions, cross-package boundaries.
-- **Modules** — a treemap of any folder, sized by symbols, colored by region, hatched where indexing was incomplete; drill to files and symbols.
-- **Galaxy** — the 3D view, opening at region level of detail (one body per region, weighted arcs) so any project size renders; open a region for full detail, or load the whole galaxy explicitly.
-- **Flows** — named entry→terminal call journeys as clickable call trees, with truncation stated, exportable as mermaid.
-- **Changes** — `detect_changes` on the working tree: affected symbols grouped by risk before you ask an agent to finish the job.
-- **Symbol pages** — docstring, region, callers/callees with true totals and per-edge confidence (resolved / reference / unproven), tests, co-change partners, near-clones, editor and GitHub links.
-- **⌘K** search across symbol names and code text; a **prompt composer** turns anything you cite into a precise, identifier-exact prompt for your coding agent.
+- **Explorer and reader** — the indexed file tree and a read-only Monaco reader whose source comes from the index.
+- **Semantic twin** — follows the caret: what the symbol under it holds, calls, raises and touches, as facts or as pseudocode, pitched at who is reading.
+- **Reading modes** — `[w]hy am I here` picks a way in (hunt a bug, scope a change, understand the project, pick an entry point); **flow** walks the calls in the order they run; **bug hunt** compares the expected path into a symbol with what `ingest_traces` observed; **change scope** shows what a change reaches and what covers it.
+- **Galaxy** — the persistent 3D graph with focus following in both directions, and a hierarchy view of the entry subgraph.
+- **Command line** — search by meaning while you type; a line ending in `?` builds a source-cited answer from indexed fact cards, with an optional local-model wording pass (a llama-server sidecar you start yourself; off by default, and no model or binary ships).
+- **Live agents** — an opt-in overlay of AI agents working in the same repository, fed by a loopback bridge over tool-hook events (`graph-ui/agents/`).
+- **`[p]rojects`** — index a repository, check or remove an index, edit the project's decision record, and see the server's processes and log.
+- **`[?]help`** — what it reads, what it cannot do, and every key it listens to, derived from the wiring itself.
-Every screen deep-links (`?tab=…&project=…&sym=…&region=…&flow=…`), so a place in the codebase is a URL you can share.
+Open a project with `?project=<name>` in the address, or pick it in the projects panel. The frontend's own README, plan, honesty rules and recorded proof runs live under `graph-ui/`.
### Auto-Index
diff --git a/graph-ui/README.md b/graph-ui/README.md
index 0ee1f28be..20cea913e 100644
--- a/graph-ui/README.md
+++ b/graph-ui/README.md
@@ -1,5 +1,35 @@
# CodeAtlasWeb
+## In this repository
+
+This directory is the frontend that `codebase-memory-mcp --ui=true` serves.
+It came in as CodeAtlasWeb by Bernhard Jackiewicz (design and tracking in
+issue #1964); the text below this section is his README, kept as written.
+What the maintainers added on top:
+
+- **Build and embed.** `make -f Makefile.cbm cbm-with-ui` runs `npm ci`
+ (with `PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1`) and `npm run build` here, then
+ embeds `dist/` into the binary. The dev server (`npm run dev`) listens on
+ 5173 and proxies `/rpc` and `/api` to a server on 9749, which is the
+ contract `tests/test_ui_dev_proxy_security.sh` pins.
+- **CSP.** The served page may reach the server itself plus two loopback
+ services the reader can start: the local-model sidecar on 127.0.0.1:4141
+ and the agent bridge on 127.0.0.1:4142 (`src/ui/http_server.h`,
+ `CBM_UI_CSP_VALUE`). Nothing else, and a test holds that.
+- **The `[p]rojects` panel** (alt+p, `src/projects/`): index a repository,
+ check or remove an index, edit the decision record, read the server's
+ processes and log. It is the one surface that asks the server to write,
+ and it names every route it uses.
+- **Gates in CI** (`.github/workflows/_test.yml`, job `test-ui`):
+ `npm run test:unit`, `npm run check:style`, `npm run check:promises`,
+ `npm run test:acceptance` and `npm run build`. `test:acceptance` is
+ every frozen check except the two release-binding files
+ (`release-current`, `release-proof-binding`), which tie the recorded
+ release report to the commits of the original repository and cannot
+ pass here. The browser proofs (`npm run smoke:*`) need a running server
+ and Playwright browsers and stay a local venue; run them by hand with
+ `npx playwright install chromium` first.
+
Eine lokale Lese-IDE fuer ein indiziertes Repository: Baum, Editor,
Galaxie, Erklaerungen. Sie laeuft im Browser, sie hat kein eigenes Backend, und
sie ist per Vorgabe abgeschottet. Der genehmigte Plan steht in `PLAN.md`, die
diff --git a/graph-ui/package.json b/graph-ui/package.json
index 6bedb1020..c24531eb9 100644
--- a/graph-ui/package.json
+++ b/graph-ui/package.json
@@ -8,6 +8,7 @@
"dev": "vite",
"build": "tsc -b tsconfig.json tsconfig.node.json && vite build",
"test": "node --test tests/scaffold/*.test.mjs",
+ "test:acceptance": "node --test tests/scaffold/w*.test.mjs tests/scaffold/release-blockers.test.mjs",
"test:unit": "vitest run",
"verify": "node --test tests/scaffold/*.test.mjs",
"smoke:spike": "node tools/smoke-spike.mjs",