Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

appmap-board

Screenshot_2026-09-16_10-02-57

A terminal board over APP_MAP.json — every registered map at once, no HTML regeneration step.

appmap            # the board
appmap stats      # one line of counts per project
appmap drift      # where each map left the skeleton (exit 1 on error)
appmap scan       # rediscover maps and rewrite the registry
appmap export     # self-contained HTML page
appmap normalize  # rewrite maps into canonical shape (dry run)
appmap intake     # capture to-dos ahead of the map

What it is

The map is read far more often than it is written, and build.py answered that with a generated page — which means a regeneration every time the JSON moves. This reads the JSON directly, so the only step is r.

Read-mostly. The JSON stays authoritative. Three things write to a map and nothing else does: normalize --write (mechanical moves), answering a decision or an external item (a), and promoting a captured to-do out of the inbox (p). Each shows a diff and applies only on confirmation, and each refuses to drop an entry.

The lanes

sprint-harness/docs/MAP_GUIDE.md splits the map's sections by DISPATCHABILITY rather than by topic, and that is the one axis every map already agrees on. The columns are that table:

lane source dispatchable
DECIDE plannedWork.decisionsOwed never — needs a human
EXTERNAL externalState.open, .unknown never — truth is outside the repo
DEBT openDebt.high/medium/low yes — has file:line evidence
PLANNED plannedWork.backlog not yet — scope it first
ACCEPTED openDebt.acceptedRisks no — deliberately unfixed
SHIPPED shipped.items, externalState.confirmedDone closed

invariants, evolutionTraps and coverageGaps are not work — they are what you read before picking work — so they get their own view (i), not a lane.

Drift

Every map in the wild has wandered from sprint-harness/templates/MAP.skeleton.json. Each section is read through an alias list so the board works anyway, and every alias that fires becomes a drift line. d shows them grouped; appmap drift prints them for a script and exits non-zero on a structural error.

That list is the normalisation punch-list. When a map's shape is the better one, promote it into the skeleton and the drift clears — the point is that the two converge, not that the skeleton always wins.

Export

appmap export writes one self-contained page — no network, no build step, opens from file://. It replaces the per-project build.py: one renderer over the normalised model, so a map with no build.py of its own gets the same page.

appmap export                                  # every project
appmap export --project learning-demo --no-drift  # a client-facing page
appmap export --project a --project b -o x.html
appmap export --project demo-ops --intake   # include the inbox

--intake adds each project's untriaged inbox as a dotted, dim section that says in words that it is not in the map. Off by default: this page is often the thing a client is sent, and a captured claim is not a statement about their codebase. Items already promoted are omitted — they are in the lanes now.

Server-side rendered: every card is in the HTML before any script runs, so it prints and screenshots. The JavaScript only filters. SHIPPED starts collapsed; the drift table is included unless --no-drift.

The cross-references survive into the page, including into the reference sections — an inv-4 cited by a debt entry is a link, and each card lists what points at it.

Normalize

The inverse of the drift report. Every transform is mechanical — it moves and renames containers and never writes a fact. Entries missing mechanism or fix stay missing, because the bar for those is "something you had to discover" and nothing in the codemod has read the repo.

appmap normalize                          # dry run, safe transforms
appmap normalize --include merge-subgroups
appmap normalize --include all --write
appmap normalize --project learning-demo --full
transform does default
invariants-items invariants.rules → .items on
coverage-gaps-hoist openDebt.coverageGaps → top-level on
accepted-risks-objects bare strings → {id, what} on
merge-subgroups named trap/gap subgroups → items opt-in

Formatting is preserved — indent width and the blank lines between top-level sections — so a no-op run is byte-identical and a real run diffs to only what it changed.

The invariant, checked before every write: a mechanical move may surface entries the loader could not previously reach, but it must never lose one. Titles are compared before and after; anything missing blocks the write. A map with uncommitted changes also blocks, since git is the only undo.

Merged entries keep a group field naming the container they came from. Flatten two groups into one list of strings and you can no longer tell a surface nobody audited from a defect in how the audit was run.

A subgroup that carries its own $comment is skipped and reported, not merged — collapsing it would drop prose, and where that prose belongs is a skeleton decision, not a codemod.

Registry

~/.config/appmap/projects.json, seeded on first run by globbing ~/git_projects/*/docs/app-maps/APP_MAP.json and the client_projects equivalents. Edit it freely.

Worktrees of one repo are grouped: three checkouts of demo-ops are one project, not three. Identical maps collapse; genuinely divergent ones stay, named repo@branch.

A collapsed entry says which trees it stands for. The header names the branch of the project in context — the filter when one is on, else whichever project owns the selected card — and marks an entry that covers more than one checkout:

appmap · 3 projects · 182 open · 458 cards   branch verify/batch-11  ⑂ 2 trees   ▸ DEBT …
  all   demo-ops ⑂2   content-site   learning-demo

The branch is asked of git on every rebuild, not read from the registry — scan writes that, and a checkout moves far more often than the registry is rewritten, so a stale one would name the wrong tree. The full list, with the checkout actually being read marked, is in the ? pane and in appmap stats. The tree list itself comes from the registry, so R refreshes it after you add or remove a worktree.

A registry entry whose map has since been deleted stays in the file — scan is the only thing that rewrites it — but it no longer passes for a live project: the board reports it as a drift error rather than showing a project with nothing in it. R in the board runs the scan.

Answering from the board

a on an owed decision or an open external item writes the answer back into the map. The only other thing the board writes is a promotion out of the inbox (p, below), through these same guards.

plannedWork.decisionsOwed  →  plannedWork.decisionsSettled
externalState.open         →  externalState.confirmedDone

A settled decision keeps its id — prose elsewhere cites it — and the question it answers is kept alongside the answer. An external entry whose prose already opens with RESOLVED is moved verbatim, because that is exactly what the drift line about it asks for and nothing more.

Neither lane is walked by extract-queue.mjs, so settling a decision queues no work. The board therefore asks what work follows, and appends it to plannedWork.backlog with ref pointing at the decision — that is the lane the extractor walks into pw:N, into QUEUE.json, and into a sprint plan. Before it does, it shows every path your text cites, because those become the item's file set and a path mentioned in passing manufactures a false collision.

The write is shown as a diff and applied only on y. It is refused if it would drop an entry or an id, if it would produce a duplicate id, or if the map has uncommitted changes the board did not make. Afterwards the map is left uncommitted, with the commit command on screen and a footer warning until you run it — preflight.sh will not start a sprint on an uncommitted map.

Intake

The steady flow off client calls, mail and shared notes does not belong in a map yet. An item somebody said on a Zoom call is a claim, not a fact about the codebase — nothing in it has read the repo — so it is staged in a per-project inbox and reaches a map only when you promote it.

<repo>/docs/app-maps/INTAKE.md      next to the map

Override it with intake.path in the project's own .claude/harness.config.json, the same file the board reads map.requireCommitted and extract.fileExtensions from. Gitignore it if you would rather client notes never reach the client's history.

Capturing

appmap intake demoops "SSO before the Nov launch" --source zoom
appmap intake demoops --from ~/notes/demoops.md     # your running .md
pbpaste | appmap intake demoops - --source email    # one item per line
appmap intake demoops --edit                        # $EDITOR on the file
appmap intake                                       # every open item
appmap intake --json                                # for an agent

--from is the one that matters if you already keep a running .md per client: it scrapes every unticked bullet and skips what is already in the inbox, so you can re-run it after every call. Ticked bullets in your notes are left alone — you ticked them because they are handled.

N captures from the board itself, for the thing you notice while looking at it.

The file is Markdown so capture survives a phone call. One item per checkbox bullet at column 0; indented lines below it are detail:

- [ ] 2026-09-02 (zoom) SSO before the Nov launch
      they named Okta specifically
- [x] 2026-08-28 (email) send the staging URL  → open:4

Promoting

n opens the inbox pane, p promotes the selected item. Every prompt that writes treats esc, a bare enter and a line of spaces the same way: nothing happens. The promotion prompts are prefilled and editable — the target with decide, the text with the captured item — so p followed by two enters is a real answer, not an empty one. There are exactly three targets, and they are the sections a human owns:

target section dispatchable
decide plannedWork.decisionsOwed never
external externalState.open never
backlog plannedWork.backlog walked by the extractor

openDebt is not a target. A debt entry carries file:line evidence and a mechanism; a meeting note has read neither, and inventing them is the exact failure the codemod exists to avoid. Promote something into debt from a session that has read the repo.

Only backlog is walked into QUEUE.json, so it is the only target whose prose becomes a file set — and the only one where the board shows every path you cite before writing. The text is prefilled into an editable prompt for that reason: raw call prose is what manufactures a false collision edge.

A promoted entry carries a captured stamp naming the day and the channel, so a later reader — you or an agent — can tell a claim from a call apart from a finding that read the code. New ids follow the map's own naming (L#3 → L#4) and are checked against every id in the map, because the extractor exits 1 on a duplicate wherever the twin lives.

The inbox line is ticked with the id it became, so nothing gets promoted twice. That is two files and one cannot be made atomic: the map is written first, and a failed tick says so loudly rather than being retried.

For the agents reading the maps

appmap intake --json prints every open item with the promotion rules and the contract attached, so a session in the project repo can triage against APP_MAP.json without the board in the loop. The inbox itself is plain Markdown next to the map — an agent can just read it.

Keys

h l lane · j k card · g G ends · J K scroll detail · enter expand · tab project · / filter · s severity · d drift · i reference sections · n intake · N capture · p promote · a answer · y write pending · x follow cross-reference · r reload · R rescan · ? keys · q quit.

The board reloads on its own. It stats the registry, every map and every inbox every 800 ms, so an edit, a git checkout or a scan from another shell lands without a keypress; r is for when you want it now. New maps still need R — discovery globs the home directory, which is too expensive to do on a timer.

Python 3 standard library only — no install, no dependencies.

Shared contract

This repository is one part of the Sprint Harness Toolchain. The shared cross-repo contract lives in ../sprint-harness/docs/TOOLCHAIN.md. Use the glossary in ../sprint-harness/CONTEXT.md when naming shared concepts. Read both files before changing map sections, harness config keys, board writeback, or shared vocabulary.

Use this checklist for cross-repo changes:

  • If a map section changes, update sprint-harness docs and skeleton, this repo's loader and codemod, and ../skills/manifest.json if a skill reads or writes that section.
  • If a harness config key changes, update sprint-harness config docs and this repo code if the board reads that key.
  • If board writeback changes, verify that the write still cannot make a sprint start except through the next queue extraction.
  • If shared vocabulary changes, update ../sprint-harness/CONTEXT.md first.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages