Repository navigation
Expand file tree
/
Copy pathsystem-map.json
More file actions
250 lines (250 loc) · 26.1 KB
/
Copy pathsystem-map.json
File metadata and controls
250 lines (250 loc) · 26.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
{
"version": 2,
"extractors": ["cargo", "rust-modules", "typescript-imports"],
"parts": [
{
"id": "plugins", "name": "Agent plugins", "caption": "Which hooks each agent runs",
"purpose": "Small config folders, one per agent, that decide which of its events reach the hook and name the agent to it.",
"holds": [
{ "name": "Claude Code's plugin", "text": "The hooks Claude Code runs on each event, installed with `claude plugin`.", "paths": ["plugin/"] },
{ "name": "The other agents' configs", "text": "agy's, Copilot's, Qwen Code's, OpenCode's and Cline's plugin or extension, and Codex's and Cursor's user-level hook files.", "paths": ["plugin-agy/", "plugin-copilot/", "plugin-qwen/", "plugin-opencode/", "plugin-cline/", "plugin-codex/", "plugin-cursor/"] },
{ "name": "Rendering", "text": "`plotkeeper install` fills each with the path of the hook binaries in the data folder's `bin/` before it installs it." }
],
"tier": "interface", "paths": ["plugin/", "plugin-agy/", "plugin-codex/", "plugin-cursor/", "plugin-copilot/", "plugin-qwen/", "plugin-opencode/", "plugin-cline/"]
},
{
"id": "hook", "name": "Hook", "caption": "Records every agent event",
"purpose": "Runs on each agent event and appends it to the event log. It also holds a question, a plan or a permission open until you answer.",
"holds": [
{ "name": "The event log", "text": "One append-only JSON Lines file, the only source of session state.", "paths": ["hook/src/lib.rs"] },
{ "name": "The recorder", "text": "Appends each event with the agent its entry names, and drops another harness's event, which that harness records.", "paths": ["hook/src/main.rs"] },
{ "name": "IDE sessions", "text": "Records no process for an agent inside an IDE app such as VS Code, so its session goes idle instead of ending." },
{ "name": "The answer hook", "text": "Waits for your answer to a question, a plan or a permission, given on the page; a command auto mode blocked goes on to your agent at once.", "paths": ["hook/src/answer.rs", "hook/src/bin/plotkeeper-answer.rs"] },
{ "name": "The process check", "text": "The one test of whether a pid is alive, which the answer hook and the server both use.", "paths": ["hook/src/sys.rs"] }
],
"tier": "core", "paths": ["hook/"]
},
{
"id": "core", "name": "Core", "caption": "Turns events into session state",
"purpose": "Plain Rust logic that reads the event log's lines in order and knows every session's turns, checks, subagents and whether it needs you.",
"holds": [
{ "name": "The agent adapters", "text": "Turn each agent's hook line into one neutral event: Claude Code, agy, Codex, Copilot, Cursor, Qwen Code, OpenCode and Cline.", "paths": ["core/src/claude.rs", "core/src/agy.rs", "core/src/codex.rs", "core/src/copilot.rs", "core/src/cursor.rs", "core/src/qwen.rs", "core/src/opencode.rs", "core/src/cline.rs", "core/src/event.rs"] },
{ "name": "Session state", "text": "The sessions, the project each started in, their turns and subagents, and whether one needs you, from the events one at a time.", "paths": ["core/src/studio.rs", "core/src/studio/take.rs", "core/src/studio/roots.rs", "core/src/studio/replay.rs", "core/src/studio/turn_files.rs", "core/src/studio/tasks.rs", "core/src/studio/selection.rs", "core/src/session.rs", "core/src/output.rs", "core/src/saved.rs"] },
{ "name": "The step ledger", "text": "One row for every tool call of a session, its workers' included, and which of them were checks.", "paths": ["core/src/ledger.rs", "core/src/checks.rs"] },
{ "name": "The transcript reader", "text": "A tolerant reader of a session's transcript, for what the session is doing and why.", "paths": ["core/src/transcript.rs"] }
],
"tier": "core", "paths": ["core/"]
},
{
"id": "server", "name": "Server", "caption": "Holds the state, answers the commands",
"purpose": "The `plotkeeper` program: it holds the state, follows the event log and serves the page on 127.0.0.1, with one function for each of the page's commands.",
"holds": [
{ "name": "Serving the page", "text": "The built page, a POST route per command and one event stream, which also carries logged errors, behind a token, a cookie and a Host check.", "paths": ["server/src/web.rs", "server/src/api.rs", "server/src/lock.rs"] },
{ "name": "The commands", "text": "The functions behind the page's learning-layer and session-view commands.", "paths": ["server/src/learning.rs", "server/src/session_view.rs"] },
{ "name": "The read loop", "text": "Follows the event log and sends what changed (the list, the selection, the brief, notices, the text of the settings files) to the page.", "paths": ["server/src/read_loop.rs"] },
{ "name": "Settings and projects", "text": "The writer, its API keys in plotkeeper's own Keychain entries (the Secret Service's on Linux), the settings and the saved project list.", "paths": ["server/src/settings.rs", "server/src/settings/", "server/src/projects.rs", "server/src/projects/"] },
{ "name": "The programs", "text": "`plotkeeper`, which starts the server, adds its folder's repository and opens the page on it, and `plotkeeper-run`, one run's launcher.", "paths": ["server/src/bin/plotkeeper.rs", "server/src/bin/plotkeeper-run.rs"] }
],
"tier": "core", "paths": ["server/"]
},
{
"id": "install", "name": "Install", "caption": "Wires the agents to the hook",
"purpose": "`plotkeeper install` and `uninstall`: copies the hook into the data folder and wires each agent it finds to that copy, through the agent's own command where it has one.",
"holds": [
{ "name": "Agent wiring", "text": "Renders each agent's plugin or hook file with the hook's path and installs it, and takes that back on uninstall.", "paths": ["server/src/install.rs"] },
{ "name": "Hook copies", "text": "The hook binaries copied into the data folder's `bin/`, so an agent runs a copy that a rebuild does not move.", "paths": ["server/src/hook_copies.rs"] }
],
"tier": "core",
"paths": ["server/src/install.rs", "server/src/hook_copies.rs", "server/tests/install.rs", "server/tests/hook_copies.rs"]
},
{
"id": "map-engine", "name": "Map engine", "caption": "Reads code into parts and links",
"purpose": "The `system-map` crate and command: checks a repository's `system-map.json` against its files, says which part owns each path, proves its links with the language extractors and counts how parts follow imports.",
"holds": [
{ "name": "Ownership", "text": "Which part owns each tracked file, by the last pattern that matches, and which parts and held items a list of paths touches.", "paths": ["system-map/src/lib.rs", "system-map/src/pattern.rs", "system-map/src/touched.rs"] },
{ "name": "Part text", "text": "A part's purpose and held items with their caps, and the conversion of a version 1 map.", "paths": ["system-map/src/parts.rs"] },
{ "name": "Extractors and links", "text": "One module per language behind one contract, turning files into edges that prove or fail each import link.", "paths": ["system-map/src/extract/", "system-map/src/edges.rs"] },
{ "name": "Imports", "text": "`system-map imports`: how well the parts follow the code's imports, counted per importing file.", "paths": ["system-map/src/imports.rs", "system-map/src/imports/"] },
{ "name": "Laws", "text": "Finds the `@law:` tags that tie tests to laws.", "paths": ["system-map/src/laws.rs"] },
{ "name": "Command line", "text": "The arguments, report text and exit codes of `system-map` and of `plotkeeper map check` and `plotkeeper map scan`, which run the same code.", "paths": ["system-map/src/cli.rs", "system-map/src/main.rs"] },
{ "name": "Commit mode", "text": "Reads a commit's files and their text without checking it out, for `--commit`.", "paths": ["system-map/src/commit.rs"] },
{ "name": "Free scan", "text": "`plotkeeper map scan`: proposes a repository's first map from its folders and build manifests, with no model.", "paths": ["system-map/src/scan.rs"] }
],
"tier": "core",
"paths": ["system-map/"]
},
{
"id": "map-briefs-runs", "name": "Map, briefs and runs", "caption": "Map data, briefs, agent runs",
"purpose": "What the Map view and the briefs show, and the runs started from them: the map with its fog, history and ratify, PR briefs and catch-ups, and the headless agent runs.",
"holds": [
{ "name": "The map", "text": "Reads the map from the default branch, checkout or pending PR, else scans; its fog, history, staleness, CI laws, ratify, Map diff.", "paths": ["server/src/map.rs", "server/src/map/", "server/src/map_scan.rs", "server/src/fog.rs", "server/src/fog/", "server/src/history.rs", "server/src/history/", "server/src/staleness.rs", "server/src/staleness/", "server/src/ci_laws.rs", "server/src/ci_laws/", "server/src/ratify.rs", "server/src/ratify/", "server/src/map_diff.rs", "server/src/map_diff/"] },
{ "name": "Briefs", "text": "PR lookups, the PR briefs of ready PRs, part catch-ups, the pre-flight and the end-of-story bar.", "paths": ["server/src/prs.rs", "server/src/prs/", "server/src/pr_briefs.rs", "server/src/pr_briefs/write.rs", "server/src/part_catch_ups.rs", "server/src/part_catch_ups/", "server/src/pre_flight.rs", "server/src/story_bar.rs", "server/src/story_bar/"] },
{ "name": "Background runs", "text": "Sandboxed runs you click, one or a batch a project: First map's drafting, whose Accept writes the map or opens a PR, and map text review.", "paths": ["server/src/runner.rs", "server/src/back_a_law.rs", "server/src/micro_worlds.rs", "server/src/micro_world_guard.mjs", "server/src/map_review.rs", "server/src/map_draft.rs", "server/src/records.rs"] },
{ "name": "The quiet log", "text": "One line per thing you use, kept for the stop rules, with nothing shown.", "paths": ["server/src/stop_rules.rs", "server/src/stop_rules/"] }
],
"tier": "core",
"paths": [
"server/src/map.rs", "server/src/map/", "server/src/map_scan.rs", "server/src/fog.rs", "server/src/fog/", "server/src/staleness.rs", "server/src/staleness/", "server/src/history.rs", "server/src/history/", "server/src/ci_laws.rs", "server/src/ci_laws/",
"server/src/ratify.rs", "server/src/ratify/", "server/src/map_diff.rs", "server/src/map_diff/", "server/src/stop_rules.rs", "server/src/stop_rules/", "server/src/pre_flight.rs", "server/src/pr_briefs.rs", "server/src/pr_briefs/",
"server/src/part_catch_ups.rs", "server/src/part_catch_ups/", "server/src/prs.rs", "server/src/prs/", "server/src/story_bar.rs", "server/src/story_bar/", "server/src/runner.rs",
"server/src/back_a_law.rs", "server/src/micro_worlds.rs", "server/src/micro_world_guard.mjs", "server/src/map_review.rs", "server/src/map_draft.rs", "server/src/records.rs", "server/src/records/",
"server/tests/back_a_law.rs", "server/tests/micro_worlds.rs", "server/tests/map_review.rs", "server/tests/map_draft.rs", "server/tests/runner.rs",
"server/tests/fake-dsh-visual/", "server/tests/ci-logs/", "server/tests/map-diff/", "server/tests/map-review/"
]
},
{
"id": "understanding", "name": "Understanding", "caption": "Writes what you read, and keeps it",
"purpose": "Decides what a change is worth telling you, asks the writer for it and stores what comes back.",
"holds": [
{ "name": "The writer contract", "text": "One call shape for every writer, run as a program or, for an API-key writer, over HTTP.", "paths": ["understanding/src/writer.rs", "understanding/src/http_writer.rs"] },
{ "name": "Turn writing", "text": "What a turn's end writes: its summary and its session's brief, held to the facts.", "paths": ["understanding/src/turn_writing.rs", "understanding/src/summary.rs", "understanding/src/brief.rs", "understanding/src/grounding.rs"] },
{ "name": "PR briefs and part catch-ups", "text": "Facts code assembles, the writer's story of them and the code checks on its reply.", "paths": ["understanding/src/pr_brief.rs", "understanding/src/pr_brief/build.rs", "understanding/src/pr_brief/checks.rs", "understanding/src/pr_brief_check.rs", "understanding/src/part_catch_up.rs"] },
{ "name": "Pre-flight", "text": "The parts of the map a piece of work will likely cross, predicted before it starts.", "paths": ["understanding/src/pre_flight.rs"] },
{ "name": "The store", "text": "The briefs, summaries and the decision history's risk notes on disk; cards are retired, and those stored before stay readable.", "paths": ["understanding/src/store.rs", "understanding/src/risk.rs"] }
],
"tier": "core", "paths": ["understanding/"]
},
{
"id": "window", "name": "Window", "caption": "Everything you see and press",
"purpose": "The page: the Map view as its base, beside the session list. It shows state and sends your actions to the server.",
"holds": [
{ "name": "The Map view", "text": "The parts, links and fog, the free scan and the Map draft, a part's sheet with history and ratify, the PR brief, explanations, overlays.", "paths": ["ui/map.ts", "ui/map-scan.ts", "ui/map-draft.ts", "ui/map-keep.ts", "ui/map-model.ts", "ui/map-camera.ts", "ui/map-live.ts", "ui/map-sheet.ts", "ui/map-sheet-folds.ts", "ui/map-brief.ts", "ui/copy-button.ts", "ui/map-brief-player.ts", "ui/map-brief-model.ts", "ui/map-catch-up.ts", "ui/explanations.ts"] },
{ "name": "The session list", "text": "A header for every project with a live session and every saved one whose folder is there and not temporary, whose headers switch the map.", "paths": ["ui/list.ts", "ui/list-model.ts", "ui/projects.ts"] },
{ "name": "The left panel", "text": "A session's story, History, a turn's diff, a worker's log or Settings, open over the map.", "paths": ["ui/panel.ts", "ui/story.ts", "ui/diff.ts"] },
{ "name": "The writer's settings", "text": "Pick the program that writes the summaries, or set up an API-key writer, and test it with one tiny call.", "paths": ["ui/settings.ts", "ui/writers.ts"] },
{ "name": "Patch review", "text": "A back a law run's proven test patch, to open as a draft PR or discard.", "paths": ["ui/patch-review.ts"] },
{ "name": "Wait tips", "text": "While a session runs, one line in its Intention box teaches one feature, chosen with a cooldown; settings can turn them off.", "paths": ["ui/tips.ts"] },
{ "name": "What's new", "text": "After an update to a new version, one toast with a link to that version's GitHub Release.", "paths": ["ui/whats-new.ts"] },
{ "name": "Hints", "text": "`hint()` gives a control or a mark its own hover, the list's at its start; the snap hover rule fails a control without one and any `title`.", "paths": ["ui/dom.ts"] }
],
"tier": "core", "paths": ["ui/"]
},
{
"id": "workbench", "name": "Workbench", "caption": "Worktrees and PRs",
"purpose": "The one runner of `git` and `gh`, git worktrees and fetches, agy's plugin, and the atomic write every store saves a whole file with. A black box: it never fogs.",
"holds": [
{ "name": "The runner", "text": "Builds every `git` and `gh` with prompts off and no input, and runs commands to a deadline that kills their process group.", "paths": ["workbench/src/run.rs"] },
{ "name": "Git", "text": "A folder's main checkout, `origin`'s fetch and what removing a worktree would lose, never with force.", "paths": ["workbench/src/lib.rs"] },
{ "name": "The atomic write", "text": "Saves a whole JSON file by a synced temporary file beside it, renamed over it, for the server's and the understanding layer's stores.", "paths": ["workbench/src/lib.rs"] }
],
"tier": "black-box", "paths": ["workbench/"]
},
{
"id": "npm-package", "name": "npm package", "caption": "npx plotkeeper",
"purpose": "The npm packages that install plotkeeper with no Rust: a launcher package and one package of binaries per platform, and the scripts that build, smoke-test and release them.",
"holds": [
{ "name": "The launcher", "text": "Runs the platform package's `plotkeeper`, passing arguments, streams, exit code and signals through.", "paths": ["npm/launcher.js"] },
{ "name": "The packages", "text": "Packs the launcher and this machine's platform package: universal macOS binaries, or static musl ones on Linux.", "paths": ["npm/package.json", "scripts/npm/pack.sh"] },
{ "name": "The smoke test", "text": "Installs the packed tarballs with no Rust on the PATH and starts, wires and stops plotkeeper as a user would.", "paths": ["scripts/npm/smoke.sh"] },
{ "name": "The release script", "text": "Bumps the versions, writes each platform package's manifest, guards the publish and tags the release.", "paths": ["scripts/npm/release.mjs"] }
],
"tier": "black-box", "paths": ["npm/", "scripts/npm/"]
}
],
"actors": [
{ "id": "agents", "name": "Agents" },
{ "id": "writer", "name": "Writer" },
{ "id": "github", "name": "GitHub" }
],
"links": [
{ "id": "npm-package-server", "from": "npm-package", "to": "server", "kind": "spawn",
"reason": "The launcher starts the platform package's `plotkeeper`, with the launcher's arguments, streams and signals." },
{ "id": "agents-plugins", "from": "agents", "to": "plugins", "kind": "file",
"reason": "Each agent reads its plugin's hook config to learn which events to send to the hook." },
{ "id": "plugins-hook", "from": "plugins", "to": "hook", "kind": "spawn",
"reason": "Each plugin's hooks run the hook binaries on an agent event, with the event on standard input." },
{ "id": "install-plugins", "from": "install", "to": "plugins", "kind": "file",
"reason": "Install embeds the plugins' hook files at build time and writes each agent's copy with the hook's path filled in." },
{ "id": "hook-server", "from": "hook", "to": "server", "kind": "file",
"reason": "The hook appends each event to the event log, which the server follows." },
{ "id": "server-hook", "from": "server", "to": "hook", "kind": "import" },
{ "id": "server-core", "from": "server", "to": "core", "kind": "import" },
{ "id": "server-understanding", "from": "server", "to": "understanding", "kind": "import" },
{ "id": "server-workbench", "from": "server", "to": "workbench", "kind": "import" },
{ "id": "server-install", "from": "server", "to": "install", "kind": "import" },
{ "id": "server-map-briefs-runs", "from": "server", "to": "map-briefs-runs", "kind": "import" },
{ "id": "map-briefs-runs-server", "from": "map-briefs-runs", "to": "server", "kind": "import" },
{ "id": "map-briefs-runs-core", "from": "map-briefs-runs", "to": "core", "kind": "import" },
{ "id": "map-briefs-runs-hook", "from": "map-briefs-runs", "to": "hook", "kind": "import" },
{ "id": "map-briefs-runs-understanding", "from": "map-briefs-runs", "to": "understanding", "kind": "import" },
{ "id": "map-briefs-runs-workbench", "from": "map-briefs-runs", "to": "workbench", "kind": "import" },
{ "id": "server-map-engine", "from": "server", "to": "map-engine", "kind": "import" },
{ "id": "map-briefs-runs-map-engine", "from": "map-briefs-runs", "to": "map-engine", "kind": "import" },
{ "id": "understanding-map-engine", "from": "understanding", "to": "map-engine", "kind": "import" },
{ "id": "map-engine-workbench", "from": "map-engine", "to": "workbench", "kind": "import" },
{ "id": "install-hook", "from": "install", "to": "hook", "kind": "import" },
{ "id": "install-workbench", "from": "install", "to": "workbench", "kind": "import" },
{ "id": "understanding-core", "from": "understanding", "to": "core", "kind": "import" },
{ "id": "understanding-hook", "from": "understanding", "to": "hook", "kind": "import" },
{ "id": "understanding-workbench", "from": "understanding", "to": "workbench", "kind": "import" },
{ "id": "hook-workbench", "from": "hook", "to": "workbench", "kind": "import" },
{ "id": "understanding-writer", "from": "understanding", "to": "writer", "kind": "spawn",
"reason": "Understanding runs the writer's program for each summary or brief; an API-key writer is asked over HTTP instead." },
{ "id": "server-window", "from": "server", "to": "window", "kind": "http",
"reason": "The server serves the page, a route per command and one event stream over HTTP on 127.0.0.1." },
{ "id": "workbench-github", "from": "workbench", "to": "github", "kind": "spawn",
"reason": "Workbench runs git to fetch from origin and `gh` to look up PRs." },
{ "id": "workbench-plugins", "from": "workbench", "to": "plugins", "kind": "file",
"reason": "Workbench embeds agy's plugin files at build time and installs them." },
{ "id": "map-briefs-runs-agents", "from": "map-briefs-runs", "to": "agents", "kind": "spawn",
"reason": "The runner starts headless agent runs, such as back a law and micro-worlds, in a sandbox." },
{ "id": "install-agents", "from": "install", "to": "agents", "kind": "spawn",
"reason": "Install runs each agent's own install command, such as `claude plugin` or `qwen extensions`." },
{ "id": "workbench-agents", "from": "workbench", "to": "agents", "kind": "spawn",
"reason": "Workbench runs the `agy` command to install and remove agy's plugin." }
],
"ignored": [
".agents/", ".claude/", ".github/", ".gitignore", "AGENTS.md", "CHANGELOG.md", "CLAUDE.md", "Cargo.lock", "Cargo.toml", "LICENSE",
"README.md", "package-lock.json", "package.json", "rust-toolchain.toml", "tsconfig.json", "biome.json", "knip.jsonc",
"skills-lock.json", ".gitattributes",
"docs/", "scripts/agents/", "scripts/check/", "scripts/review/", "scripts/snap/", "scripts/system-map/", "scripts/wire/", "archive/",
"wayfinder/", "test-support/"
],
"laws": [
{ "id": "launcher-passes-everything-through", "on": "npm-package", "backing": "check",
"text": "The launcher passes plotkeeper its arguments, standard streams and stop signals, and exits as plotkeeper did." },
{ "id": "git-and-gh-go-through-the-runner", "on": "workbench", "backing": "check",
"text": "Every `git` and `gh` the workspace starts is built by the runner, so none can wait on a prompt." },
{ "id": "install-never-opens-claude-settings", "on": "install", "backing": "check",
"text": "Install and uninstall reach Claude Code only through `claude plugin` and never open its settings file." },
{ "id": "install-never-opens-qwen-settings", "on": "install", "backing": "check",
"text": "Install and uninstall reach Qwen Code only through `qwen extensions` and never open its settings file, which can hold API keys." },
{ "id": "install-never-opens-opencode-config", "on": "install", "backing": "check",
"text": "Install and uninstall touch only plotkeeper's own plugin file in OpenCode's plugins folder, and never open OpenCode's config or login, which can hold API keys." },
{ "id": "install-never-opens-cline-config", "on": "install", "backing": "check",
"text": "Install and uninstall reach Cline only through `cline plugin` and never open a file in Cline's config folder, which holds its API keys." },
{ "id": "hook-never-makes-agent-wait", "on": "hook", "backing": "trust",
"text": "The hook never makes the agent wait, except for your answer." },
{ "id": "log-writers-hold-the-log-lock", "on": "hook", "backing": "check",
"text": "Every line written to the event log is written whole, under `events.lock`; a prune replaces the log only while holding it, and no reader takes it." },
{ "id": "projects-leave-only-by-remove", "on": "server", "backing": "check",
"text": "A saved project stays after its sessions end or are deleted, and leaves only through Remove project." },
{ "id": "core-reads-only-transcripts", "on": "core", "backing": "trust",
"text": "The core does no I/O except reading transcripts." },
{ "id": "check-result-is-last-run", "on": "core", "backing": "trust",
"text": "A check's result is its last run's." },
{ "id": "wire-types-agree", "on": "server-window", "backing": "check",
"text": "The window's types and the Rust types of the server's replies agree, and each command's argument names are its handler's; a reply built as bare JSON has none." },
{ "id": "session-pieces-in-order", "on": "understanding", "backing": "check",
"text": "A session's pieces are written one at a time, in order." },
{ "id": "old-stored-files-load", "on": "understanding", "backing": "check",
"text": "A stored file of an older format still loads." },
{ "id": "replay-never-rewrites", "on": "understanding", "backing": "check",
"text": "Replaying the log never rewrites, replaces or deletes a stored card, summary or answer." },
{ "id": "writer-has-no-tools", "on": "understanding", "backing": "check",
"text": "A change is untrusted text: the writer has no tools where it can turn them off (Claude; Copilot's allow-list naming no tool, with its built-in MCP servers off, checked in wave 1's trial), else it runs read-only (Codex's read-only sandbox, Cursor's ask mode) or as locked as its flags allow (agy's sandboxed terminal, with no slash commands or skills), always in an empty folder." },
{ "id": "colour-only-for-needs-you", "on": "window", "backing": "trust",
"text": "Loud colour is only for what needs you and for a broken law." }
],
"flows": [
{ "id": "turn-writing", "name": "Turn writing",
"hops": [
{ "link": "server-core", "text": "Core sees the turn end and the server asks for its summary; this hop runs from core to the server, against the import link." },
{ "link": "server-understanding", "text": "The server passes the request on; understanding queues it for the session." },
{ "link": "understanding-writer", "text": "Understanding asks the writer for the summary, and for the session's Goal and Design so far." },
{ "link": "understanding-writer", "text": "The writer's reply comes back and understanding stores it." },
{ "link": "server-understanding", "text": "Understanding tells the server the brief changed; this hop runs back against the import link." },
{ "link": "server-window", "text": "The server updates the list." }
] }
]
}