systemap 1.0.3__tar.gz → 1.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. {systemap-1.0.3 → systemap-1.2.0}/.claude-plugin/plugin.json +1 -1
  2. {systemap-1.0.3 → systemap-1.2.0}/.github/workflows/systemap.yml +7 -3
  3. {systemap-1.0.3 → systemap-1.2.0}/.github/workflows/workflow.yml +3 -0
  4. systemap-1.2.0/.gitignore +18 -0
  5. systemap-1.2.0/.pre-commit-config.yaml +292 -0
  6. systemap-1.2.0/AGENTS.md +55 -0
  7. {systemap-1.0.3 → systemap-1.2.0}/CHANGELOG.md +157 -0
  8. systemap-1.2.0/CLAUDE.md +1 -0
  9. {systemap-1.0.3 → systemap-1.2.0}/PKG-INFO +190 -42
  10. {systemap-1.0.3 → systemap-1.2.0}/README.md +189 -41
  11. systemap-1.2.0/bench/jev/README.md +498 -0
  12. systemap-1.2.0/bench/jev/build.py +275 -0
  13. systemap-1.2.0/bench/jev/build_flows.py +228 -0
  14. systemap-1.2.0/bench/jev/build_meaning.py +367 -0
  15. systemap-1.2.0/bench/jev/by_card.py +150 -0
  16. systemap-1.2.0/bench/jev/common.py +171 -0
  17. systemap-1.2.0/bench/jev/draft.py +200 -0
  18. systemap-1.2.0/bench/jev/drift_head.py +59 -0
  19. systemap-1.2.0/bench/jev/drift_labels.py +124 -0
  20. systemap-1.2.0/bench/jev/drift_steps.py +94 -0
  21. systemap-1.2.0/bench/jev/group_journeys.py +143 -0
  22. systemap-1.2.0/bench/jev/grouping.py +157 -0
  23. systemap-1.2.0/bench/jev/history_eval.py +125 -0
  24. systemap-1.2.0/bench/jev/label-page/index.html +294 -0
  25. systemap-1.2.0/bench/jev/label_set.py +189 -0
  26. systemap-1.2.0/bench/jev/moves.py +280 -0
  27. systemap-1.2.0/bench/jev/near.py +200 -0
  28. systemap-1.2.0/bench/jev/paths.py +100 -0
  29. systemap-1.2.0/bench/jev/plan_eval.py +98 -0
  30. systemap-1.2.0/bench/jev/propose.py +168 -0
  31. systemap-1.2.0/bench/jev/pyproject.toml +8 -0
  32. systemap-1.2.0/bench/jev/results/answerfit.jsonl.gz +0 -0
  33. systemap-1.2.0/bench/jev/results/by-card.json +258 -0
  34. systemap-1.2.0/bench/jev/results/cardkind.jsonl.gz +0 -0
  35. systemap-1.2.0/bench/jev/results/crossing.jsonl.gz +0 -0
  36. systemap-1.2.0/bench/jev/results/draft/cli.json +1 -0
  37. systemap-1.2.0/bench/jev/results/draft/kstrl.json +1 -0
  38. systemap-1.2.0/bench/jev/results/draft/mealie.json +1 -0
  39. systemap-1.2.0/bench/jev/results/draft/paperless-ngx.json +1 -0
  40. systemap-1.2.0/bench/jev/results/draft/poetry.json +1 -0
  41. systemap-1.2.0/bench/jev/results/draft/report.txt +14 -0
  42. systemap-1.2.0/bench/jev/results/draft/rich.json +1 -0
  43. systemap-1.2.0/bench/jev/results/draft/scores.json +86 -0
  44. systemap-1.2.0/bench/jev/results/draft/turns.txt +17 -0
  45. systemap-1.2.0/bench/jev/results/drift-steps.json +77 -0
  46. systemap-1.2.0/bench/jev/results/drift.jsonl.gz +0 -0
  47. systemap-1.2.0/bench/jev/results/drift_head.jsonl.gz +0 -0
  48. systemap-1.2.0/bench/jev/results/drift_kstrl.jsonl.gz +0 -0
  49. systemap-1.2.0/bench/jev/results/flowkind.jsonl.gz +0 -0
  50. systemap-1.2.0/bench/jev/results/flowverify.jsonl.gz +0 -0
  51. systemap-1.2.0/bench/jev/results/governs.jsonl.gz +0 -0
  52. systemap-1.2.0/bench/jev/results/group-journeys-cache.json +1 -0
  53. systemap-1.2.0/bench/jev/results/group-journeys.json +109 -0
  54. systemap-1.2.0/bench/jev/results/grouping-report.txt +15 -0
  55. systemap-1.2.0/bench/jev/results/grouping.jsonl.gz +0 -0
  56. systemap-1.2.0/bench/jev/results/history-mealie.json +762 -0
  57. systemap-1.2.0/bench/jev/results/history-rich.json +300 -0
  58. systemap-1.2.0/bench/jev/results/holdout/flowverify.jsonl.gz +0 -0
  59. systemap-1.2.0/bench/jev/results/holdout/governs.jsonl.gz +0 -0
  60. systemap-1.2.0/bench/jev/results/holdout/issues.jsonl.gz +0 -0
  61. systemap-1.2.0/bench/jev/results/holdout/owner.jsonl.gz +0 -0
  62. systemap-1.2.0/bench/jev/results/holdout/report.txt +48 -0
  63. systemap-1.2.0/bench/jev/results/holdout/sentence.jsonl.gz +0 -0
  64. systemap-1.2.0/bench/jev/results/issues.jsonl.gz +0 -0
  65. systemap-1.2.0/bench/jev/results/labels/agent-drift.json +242 -0
  66. systemap-1.2.0/bench/jev/results/labels/agent-moves.json +130 -0
  67. systemap-1.2.0/bench/jev/results/labels/report.txt +10 -0
  68. systemap-1.2.0/bench/jev/results/moves.jsonl.gz +0 -0
  69. systemap-1.2.0/bench/jev/results/near.json +34 -0
  70. systemap-1.2.0/bench/jev/results/owner.jsonl.gz +0 -0
  71. systemap-1.2.0/bench/jev/results/pairs.jsonl.gz +0 -0
  72. systemap-1.2.0/bench/jev/results/paths.json +432 -0
  73. systemap-1.2.0/bench/jev/results/report.txt +112 -0
  74. systemap-1.2.0/bench/jev/results/ripple.json +10542 -0
  75. systemap-1.2.0/bench/jev/results/sentence.jsonl.gz +0 -0
  76. systemap-1.2.0/bench/jev/results/where.jsonl.gz +0 -0
  77. systemap-1.2.0/bench/jev/ripple.py +253 -0
  78. systemap-1.2.0/bench/jev/run.py +97 -0
  79. systemap-1.2.0/bench/jev/score.py +486 -0
  80. systemap-1.2.0/bench/jev/turns.py +139 -0
  81. systemap-1.2.0/bench/jev/uv.lock +287 -0
  82. {systemap-1.0.3 → systemap-1.2.0}/bench/results.jsonl +2 -0
  83. {systemap-1.0.3 → systemap-1.2.0}/bench/run.sh +13 -4
  84. {systemap-1.0.3 → systemap-1.2.0}/bench/summary.py +1 -1
  85. {systemap-1.0.3 → systemap-1.2.0}/bench/table.py +12 -2
  86. {systemap-1.0.3 → systemap-1.2.0}/docs/benchmarks.md +11 -0
  87. systemap-1.2.0/docs/map/figures/control.svg +1 -0
  88. {systemap-1.0.3 → systemap-1.2.0}/docs/map/figures/structure.svg +1 -1
  89. systemap-1.2.0/docs/map/figures/system.svg +1 -0
  90. {systemap-1.0.3 → systemap-1.2.0}/docs/map/index.html +37 -10
  91. systemap-1.2.0/docs/map/map.json +45 -0
  92. systemap-1.2.0/docs/reference.md +475 -0
  93. systemap-1.2.0/map/journeys.py +257 -0
  94. {systemap-1.0.3 → systemap-1.2.0}/map/model.py +137 -342
  95. {systemap-1.0.3 → systemap-1.2.0}/pyproject.toml +20 -1
  96. systemap-1.2.0/scripts/check_plugin_manifest.py +92 -0
  97. systemap-1.2.0/scripts/precommit/check_agent_docs_sync.py +167 -0
  98. systemap-1.2.0/scripts/precommit/check_no_mocks.py +127 -0
  99. systemap-1.2.0/scripts/precommit/cyclomatic_ratchet.py +249 -0
  100. systemap-1.2.0/scripts/precommit/file_length_ratchet.py +147 -0
  101. {systemap-1.0.3 → systemap-1.2.0}/scripts/publish.sh +4 -1
  102. {systemap-1.0.3 → systemap-1.2.0}/skills/systemap/SKILL.md +79 -80
  103. {systemap-1.0.3/src/systemap/skill → systemap-1.2.0/skills/systemap}/references/journeys-and-invariants.md +28 -5
  104. {systemap-1.0.3/src/systemap/skill → systemap-1.2.0/skills/systemap}/references/maintenance.md +29 -4
  105. {systemap-1.0.3 → systemap-1.2.0}/skills/systemap/references/second-pass.md +20 -0
  106. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/__init__.py +1 -1
  107. systemap-1.2.0/src/systemap/agent.py +158 -0
  108. systemap-1.2.0/src/systemap/audit.py +485 -0
  109. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/check.py +27 -5
  110. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/cli.py +256 -55
  111. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/config.py +100 -10
  112. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/delta.py +166 -66
  113. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/describe.py +73 -3
  114. systemap-1.2.0/src/systemap/explain.py +385 -0
  115. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/extract.py +52 -37
  116. systemap-1.2.0/src/systemap/graph.py +171 -0
  117. systemap-1.2.0/src/systemap/history.py +98 -0
  118. systemap-1.2.0/src/systemap/jev.py +239 -0
  119. systemap-1.2.0/src/systemap/jev_cli.py +679 -0
  120. systemap-1.2.0/src/systemap/journeys.py +282 -0
  121. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/judgement.py +157 -31
  122. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/model.py +11 -0
  123. systemap-1.2.0/src/systemap/moves.py +182 -0
  124. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/page.py +45 -13
  125. systemap-1.2.0/src/systemap/plan.py +170 -0
  126. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/schematic.py +4 -0
  127. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/skill/SKILL.md +79 -80
  128. {systemap-1.0.3/skills/systemap → systemap-1.2.0/src/systemap/skill}/references/journeys-and-invariants.md +28 -5
  129. {systemap-1.0.3/skills/systemap → systemap-1.2.0/src/systemap/skill}/references/maintenance.md +29 -4
  130. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/skill/references/second-pass.md +20 -0
  131. systemap-1.2.0/src/systemap/trend.py +210 -0
  132. systemap-1.2.0/src/systemap/ways_in.py +246 -0
  133. {systemap-1.0.3 → systemap-1.2.0}/systemap.toml +10 -0
  134. {systemap-1.0.3 → systemap-1.2.0}/tests/conftest.py +9 -1
  135. systemap-1.2.0/tests/fixtures/jev_moves.json +54 -0
  136. systemap-1.2.0/tests/fixtures/jev_sample.json +243 -0
  137. systemap-1.2.0/tests/fixtures/jev_two_cards.json +125 -0
  138. systemap-1.2.0/tests/jev_replay.py +99 -0
  139. {systemap-1.0.3 → systemap-1.2.0}/tests/page_driver.js +6 -0
  140. systemap-1.2.0/tests/test_audit.py +420 -0
  141. {systemap-1.0.3 → systemap-1.2.0}/tests/test_bench.py +3 -1
  142. {systemap-1.0.3 → systemap-1.2.0}/tests/test_delta.py +124 -5
  143. {systemap-1.0.3 → systemap-1.2.0}/tests/test_facts.py +17 -9
  144. systemap-1.2.0/tests/test_foundations.py +222 -0
  145. systemap-1.2.0/tests/test_jev_defaults.py +73 -0
  146. systemap-1.2.0/tests/test_jev_moves.py +93 -0
  147. systemap-1.2.0/tests/test_journeys.py +369 -0
  148. {systemap-1.0.3 → systemap-1.2.0}/tests/test_judgement.py +13 -3
  149. {systemap-1.0.3 → systemap-1.2.0}/tests/test_keyboard.py +12 -0
  150. {systemap-1.0.3 → systemap-1.2.0}/tests/test_model.py +41 -0
  151. {systemap-1.0.3 → systemap-1.2.0}/tests/test_nested.py +1 -1
  152. systemap-1.2.0/tests/test_plan.py +203 -0
  153. systemap-1.2.0/tests/test_trend.py +126 -0
  154. systemap-1.2.0/tests/test_ways_in.py +177 -0
  155. {systemap-1.0.3 → systemap-1.2.0}/uv.lock +1 -1
  156. systemap-1.0.3/.gitignore +0 -12
  157. systemap-1.0.3/docs/map/figures/control.svg +0 -1
  158. systemap-1.0.3/docs/map/figures/system.svg +0 -1
  159. systemap-1.0.3/docs/map/map.json +0 -33
  160. systemap-1.0.3/docs/reference.md +0 -194
  161. {systemap-1.0.3 → systemap-1.2.0}/.claude/skills/systemap/SKILL.md +0 -0
  162. {systemap-1.0.3 → systemap-1.2.0}/.claude-plugin/marketplace.json +0 -0
  163. {systemap-1.0.3 → systemap-1.2.0}/.gitattributes +0 -0
  164. {systemap-1.0.3 → systemap-1.2.0}/.python-version +0 -0
  165. {systemap-1.0.3 → systemap-1.2.0}/LICENSE +0 -0
  166. {systemap-1.0.3 → systemap-1.2.0}/assets/hero-light.svg +0 -0
  167. {systemap-1.0.3 → systemap-1.2.0}/assets/hero.svg +0 -0
  168. {systemap-1.0.3 → systemap-1.2.0}/assets/logo-mark.svg +0 -0
  169. {systemap-1.0.3 → systemap-1.2.0}/docs/.nojekyll +0 -0
  170. {systemap-1.0.3 → systemap-1.2.0}/docs/index.html +0 -0
  171. {systemap-1.0.3 → systemap-1.2.0}/docs/map/.gitkeep +0 -0
  172. {systemap-1.0.3 → systemap-1.2.0}/docs/screenshots/graphite.png +0 -0
  173. {systemap-1.0.3 → systemap-1.2.0}/docs/screenshots/paper.png +0 -0
  174. {systemap-1.0.3 → systemap-1.2.0}/docs/screenshots/tour.gif +0 -0
  175. {systemap-1.0.3 → systemap-1.2.0}/docs/screenshots/warm.png +0 -0
  176. {systemap-1.0.3 → systemap-1.2.0}/scripts/screenshots.py +0 -0
  177. {systemap-1.0.3 → systemap-1.2.0}/skills/systemap/references/example.md +0 -0
  178. {systemap-1.0.3 → systemap-1.2.0}/skills/systemap/references/layers.md +0 -0
  179. {systemap-1.0.3 → systemap-1.2.0}/skills/systemap/references/layout.md +0 -0
  180. {systemap-1.0.3 → systemap-1.2.0}/skills/systemap/references/pitfalls.md +0 -0
  181. {systemap-1.0.3 → systemap-1.2.0}/skills/systemap/references/schema.md +0 -0
  182. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/__main__.py +0 -0
  183. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/change.py +0 -0
  184. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/evidence.py +0 -0
  185. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/facts.py +0 -0
  186. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/figure.py +0 -0
  187. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/nest.py +0 -0
  188. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/place.py +0 -0
  189. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/py.typed +0 -0
  190. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/route.py +0 -0
  191. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/scaffold.py +0 -0
  192. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/skill/references/example.md +0 -0
  193. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/skill/references/layers.md +0 -0
  194. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/skill/references/layout.md +0 -0
  195. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/skill/references/pitfalls.md +0 -0
  196. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/skill/references/schema.md +0 -0
  197. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/skill.py +0 -0
  198. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/suggest.py +0 -0
  199. {systemap-1.0.3 → systemap-1.2.0}/src/systemap/theme.py +0 -0
  200. {systemap-1.0.3 → systemap-1.2.0}/tests/fixture_workspace.py +0 -0
  201. {systemap-1.0.3 → systemap-1.2.0}/tests/fixtures/bench-session.jsonl +0 -0
  202. {systemap-1.0.3 → systemap-1.2.0}/tests/test_agentic.py +0 -0
  203. {systemap-1.0.3 → systemap-1.2.0}/tests/test_card_text.py +0 -0
  204. {systemap-1.0.3 → systemap-1.2.0}/tests/test_check_rules.py +0 -0
  205. {systemap-1.0.3 → systemap-1.2.0}/tests/test_cli.py +0 -0
  206. {systemap-1.0.3 → systemap-1.2.0}/tests/test_coverage.py +0 -0
  207. {systemap-1.0.3 → systemap-1.2.0}/tests/test_evidence.py +0 -0
  208. {systemap-1.0.3 → systemap-1.2.0}/tests/test_extract.py +0 -0
  209. {systemap-1.0.3 → systemap-1.2.0}/tests/test_framing.py +0 -0
  210. {systemap-1.0.3 → systemap-1.2.0}/tests/test_interface.py +0 -0
  211. {systemap-1.0.3 → systemap-1.2.0}/tests/test_layer_figure.py +0 -0
  212. {systemap-1.0.3 → systemap-1.2.0}/tests/test_layers.py +0 -0
  213. {systemap-1.0.3 → systemap-1.2.0}/tests/test_layout.py +0 -0
  214. {systemap-1.0.3 → systemap-1.2.0}/tests/test_place.py +0 -0
  215. {systemap-1.0.3 → systemap-1.2.0}/tests/test_platform.py +0 -0
  216. {systemap-1.0.3 → systemap-1.2.0}/tests/test_plugin.py +0 -0
  217. {systemap-1.0.3 → systemap-1.2.0}/tests/test_render.py +0 -0
  218. {systemap-1.0.3 → systemap-1.2.0}/tests/test_screenshots.py +0 -0
  219. {systemap-1.0.3 → systemap-1.2.0}/tests/test_skill.py +0 -0
  220. {systemap-1.0.3 → systemap-1.2.0}/tests/test_suggest.py +0 -0
  221. {systemap-1.0.3 → systemap-1.2.0}/tests/test_symbol_claims.py +0 -0
  222. {systemap-1.0.3 → systemap-1.2.0}/tests/test_theme.py +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systemap",
3
- "version": "1.0.3",
3
+ "version": "1.2.0",
4
4
  "description": "The map your coding agent draws of your system: the systemap skill, which extracts the facts, drafts the model, checks it until every module is mapped, renders the page, makes a second pass with the judgement until nothing changes, and hands back the answers.",
5
5
  "author": {
6
6
  "name": "0xfauzi",
@@ -260,13 +260,17 @@ jobs:
260
260
  - name: Install the Claude Code CLI
261
261
  # A global tool has no lockfile to install from; the version is the
262
262
  # one the plugin was validated with locally, bumped on purpose.
263
- run: npm install -g @anthropic-ai/claude-code@2.1.246 # zizmor: ignore[adhoc-packages]
263
+ run: npm install -g @anthropic-ai/claude-code@2.1.278 # zizmor: ignore[adhoc-packages]
264
264
 
265
265
  - name: plugin manifest
266
- run: claude plugin validate .claude-plugin/plugin.json --strict
266
+ # Strict, through a script that allows one warning and no others:
267
+ # the CLI advises against a CLAUDE.md at the plugin root, which is
268
+ # advice for a repository that is only a plugin. scripts/check_plugin_manifest.py
269
+ # says why, and fails on anything else the validator reports.
270
+ run: python3 scripts/check_plugin_manifest.py .claude-plugin/plugin.json
267
271
 
268
272
  - name: marketplace manifest
269
- run: claude plugin validate .claude-plugin/marketplace.json --strict
273
+ run: python3 scripts/check_plugin_manifest.py .claude-plugin/marketplace.json
270
274
 
271
275
  - name: skills
272
276
  run: claude plugin validate skills --strict
@@ -26,6 +26,9 @@ permissions:
26
26
  jobs:
27
27
  release:
28
28
  runs-on: ubuntu-latest
29
+ # Without this the job inherits GitHub's six-hour default, so one hang
30
+ # bills six hours. Build and upload is a two-minute job.
31
+ timeout-minutes: 10
29
32
  # Named in the identity GitHub signs, and registered on PyPI beside the
30
33
  # repository and this file's name.
31
34
  environment: pypi
@@ -0,0 +1,18 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ .mypy_cache/
5
+ .ruff_cache/
6
+ .pytest_cache/
7
+ dist/
8
+ *.egg-info/
9
+ .DS_Store
10
+ **/.DS_Store
11
+
12
+ bench/scratch/
13
+
14
+ # Jev experiment inputs: rebuilt by bench/jev/build.py from bench/scratch and git
15
+ bench/jev/data/
16
+ bench/jev/.venv/
17
+ bench/jev/label-page/items.json
18
+ .systemap/
@@ -0,0 +1,292 @@
1
+ # ONE config, copied verbatim into every Python repo here.
2
+ #
3
+ # It is a copy on purpose. pre-commit has no `extends`: config inheritance was
4
+ # requested in issues 1308, 2337 and 3422 and declined, so a shared config is not
5
+ # a thing that exists. A custom sharing mechanism was built and rejected: it works,
6
+ # but it means every future reader has to learn a scheme that is not pre-commit.
7
+ # Plain duplication uses nothing but stock pre-commit, and `diff` is how you check
8
+ # two repos agree - a standard tool instead of a bespoke hook.
9
+ #
10
+ # The custom checks live in scripts/precommit/ as ordinary `repo: local` hooks.
11
+ # That directory and this file are the unit you copy. Everything else a repo needs
12
+ # to differ about (ruff rules, vulture paths, codespell vocabulary) belongs in that
13
+ # repo's pyproject.toml, which is where those tools read their settings anyway.
14
+ #
15
+ # A few excludes below name paths that only exist in one repo (deckgen's captured
16
+ # model output and reference corpora). They stay in every copy so the file is
17
+ # BYTE-IDENTICAL everywhere; a path that does not exist costs nothing to exclude.
18
+
19
+ repos:
20
+ # --- file hygiene ---------------------------------------------------------
21
+ - repo: https://github.com/pre-commit/pre-commit-hooks
22
+ rev: v6.0.0
23
+ hooks:
24
+ - id: trailing-whitespace
25
+ # Captured model output is evidence: reformatting it destroys the
26
+ # provenance a spike's findings rest on. Linted as evidence, never source.
27
+ #
28
+ # tests/__snapshots__/ is the same rule reached by a different route: those
29
+ # .raw files are SVG frames Rich renders, and pytest-textual-snapshot
30
+ # compares them BYTE FOR BYTE. Measured: stripping one whitespace-only line
31
+ # from each of two of them failed test_overview_snapshot and
32
+ # test_component_detail_snapshot. Regenerating cannot settle it either, since
33
+ # the renderer writes that padding straight back on the next capture.
34
+ exclude: &evidence ^experiments/(taste-spike|walking-skeleton)/out/|^fixtures/sources/|^tests/__snapshots__/
35
+ - id: end-of-file-fixer
36
+ exclude: *evidence
37
+ - id: check-yaml
38
+ - id: check-toml
39
+ - id: check-json
40
+ - id: check-added-large-files
41
+ # uv.lock is a required commit artifact over 500 KB; uv-lock owns its
42
+ # integrity. The rest are irreplaceable measurement inputs: reference decks,
43
+ # source filings, and round-trip evidence that cost manual work to produce.
44
+ exclude: '^(uv\.lock$|experiments/walking-skeleton/out/(screenshots/|inserted-saved\.pptx$)|fixtures/corpus/|fixtures/sources/|experiments/E16/out/(probe\.pdf|probe-bold-powerpoint\.pdf|E17-results\.json)$)'
45
+ - id: check-merge-conflict
46
+ - id: check-case-conflict
47
+ - id: mixed-line-ending
48
+ exclude: *evidence
49
+ - id: debug-statements
50
+ - id: detect-private-key
51
+ # A test that asserts a redactor strips private keys must contain one.
52
+ # The fixture IS the test; deleting the key deletes the subject.
53
+ exclude: '^tests/test_review_regressions\.py$'
54
+
55
+ # --- python ---------------------------------------------------------------
56
+ - repo: https://github.com/astral-sh/ruff-pre-commit
57
+ rev: v0.16.4
58
+ hooks:
59
+ # Lint before format: --fix rewrites code, and formatting the result is the
60
+ # only order that converges in one pass.
61
+ # scripts/precommit/ is excluded because those files must stay BYTE-IDENTICAL
62
+ # across every repo, and each repo's ruff settings differ. Measured: running
63
+ # this hook under systemap's config reformatted two of them, which would make
64
+ # the copies diverge on first commit and defeat the whole point of copying.
65
+ # They are checked against ruff and both complexity gates before being copied.
66
+ - id: ruff-check
67
+ args: [--fix]
68
+ exclude: &vendored ^scripts/precommit/|^experiments/(taste-spike|walking-skeleton)/out/|^fixtures/sources/
69
+ - id: ruff-format
70
+ exclude: *vendored
71
+
72
+ # --- complexity: two gates answering two different questions --------------
73
+ #
74
+ # complexipy measures COGNITIVE complexity: how hard the code is to read,
75
+ # weighted by nesting. --staged diffs the git index against HEAD, so it fails
76
+ # only on a function this commit adds above 15 or worsens past it. A flat gate at
77
+ # 15 would block 38% of deckgen's source files, 71% of systemap's and 42% of
78
+ # ralph's on day one, which is a hook that gets --no-verify'd within a week.
79
+ #
80
+ # cyclomatic-ratchet (below, local) measures CYCLOMATIC complexity: independent
81
+ # paths through a function, roughly the tests branch coverage needs.
82
+ #
83
+ # Both are kept because they disagree where it matters. A flat 14-branch dispatch
84
+ # table measures cognitive 14 and cyclomatic 15: the first forgives it, the second
85
+ # does not, and each is right about its own question.
86
+ - repo: https://github.com/rohaquinlop/complexipy-pre-commit
87
+ rev: v7.0.1
88
+ hooks:
89
+ - id: complexipy
90
+ # --suggest-refactors is what makes a failure actionable rather than a bare
91
+ # exit 1: it names the function, the lines, the estimated reduction and the
92
+ # rule. Measured at 5 ms. An agent shown "exit code 1" silences the hook.
93
+ args: [--staged, --max-complexity-allowed, "15", --suggest-refactors, --color, "no"]
94
+ exclude: *evidence
95
+
96
+ # --- rot ------------------------------------------------------------------
97
+ - repo: https://github.com/codespell-project/codespell
98
+ rev: v2.4.3
99
+ hooks:
100
+ # Vocabulary and skip lists live in [tool.codespell] in pyproject.toml.
101
+ # Every finding across three repos here was a false positive on first run:
102
+ # deliberate misspellings in tests asserting closest-match suggestions,
103
+ # fragments of regexes like propert(y|ies), and project names.
104
+ #
105
+ # The excludes are all evidence: captured model output quotes error strings
106
+ # containing model-authored typos, render-probe results quote raw tesseract
107
+ # OCR misreads (the misread IS the measurement), and E40's manual results
108
+ # quote source documents verbatim, truncated mid-word to fit a table.
109
+ - id: codespell
110
+ exclude: '^scripts/precommit/|^experiments/(taste-spike|walking-skeleton)/out/|^fixtures/sources/|^experiments/(E[0-9]+|render-probes)/results.*\.json$|^experiments/E40/manual-results\.md$|^bench/jev/(results|data)/'
111
+
112
+ - repo: https://github.com/jendrikseipp/vulture
113
+ rev: v2.16
114
+ hooks:
115
+ # Needs [tool.vulture] with `paths` in pyproject.toml. Without it vulture
116
+ # exits 2, which reads as a broken hook rather than a finding.
117
+ - id: vulture
118
+
119
+ # --- secrets --------------------------------------------------------------
120
+ - repo: https://github.com/gitleaks/gitleaks
121
+ rev: v8.30.1
122
+ hooks:
123
+ # Scans the STAGED diff, so it stops a secret before it is committed.
124
+ # Deliberately not a history scan.
125
+ - id: gitleaks
126
+ # The same binary, the same rev, one shared hook environment, pointed at the
127
+ # tree instead of the staged diff, because the staged scan CANNOT work on a
128
+ # server: CI has a clean checkout with nothing staged. The one hook whose whole
129
+ # purpose is to run where --no-verify cannot reach was the one hook CI did not
130
+ # enforce.
131
+ #
132
+ # stages: [manual], so it never runs on a local commit: measured at 6.2s over
133
+ # 60 MB against the staged hook's milliseconds, and a developer already has the
134
+ # staged hook. The copy that counts is
135
+ # `pre-commit run --hook-stage manual gitleaks-tree --all-files` in CI.
136
+ - id: gitleaks
137
+ alias: gitleaks-tree
138
+ name: secrets anywhere in the checked-out tree
139
+ entry: gitleaks dir . --redact
140
+ pass_filenames: false
141
+ always_run: true
142
+ stages: [manual]
143
+ # Print the scan line even on a pass. Without this pre-commit reports
144
+ # "Passed" and nothing else, indistinguishable in a CI log from a silent
145
+ # "0 commits scanned" - the exact failure this hook was added to end.
146
+ verbose: true
147
+
148
+ # --- packaging ------------------------------------------------------------
149
+ - repo: https://github.com/astral-sh/uv-pre-commit
150
+ rev: 0.11.29
151
+ hooks:
152
+ # Skips ONLY where there is no pyproject.toml. Where a pyproject exists but a
153
+ # uv.lock does not, this CREATES one rather than skipping: measured, a 3-line
154
+ # empty lock in a repo whose pyproject holds nothing but tool settings. An
155
+ # earlier version of this comment claimed it always skipped, which was tested
156
+ # in a scratch repo with no pyproject and so only ever exercised half the rule.
157
+ - id: uv-lock
158
+
159
+ # --- shell ----------------------------------------------------------------
160
+ - repo: https://github.com/shellcheck-py/shellcheck-py
161
+ rev: v0.11.0.1
162
+ hooks:
163
+ # shellcheck-py rather than koalaman/shellcheck-precommit: the latter is
164
+ # language: docker_image, which does not skip without docker, it FAILS.
165
+ - id: shellcheck
166
+
167
+ # --- CI workflows ---------------------------------------------------------
168
+ # All four skip cleanly in a repo with no .github/workflows.
169
+ - repo: https://github.com/rhysd/actionlint
170
+ rev: v1.7.12
171
+ hooks:
172
+ # A typo in a job key or a step id is not a YAML error, it is a workflow that
173
+ # silently does less. check-yaml catches none of it.
174
+ - id: actionlint
175
+
176
+ - repo: https://github.com/zizmorcore/zizmor-pre-commit
177
+ rev: v1.29.0
178
+ hooks:
179
+ # actionlint checks the workflow is correct; zizmor checks it is safe. No
180
+ # overlap. --offline is not the default: zizmor goes online whenever GH_TOKEN
181
+ # happens to be exported, which would make the hook behave differently for two
182
+ # people on the same commit.
183
+ - id: zizmor
184
+ args: [--no-progress, --offline]
185
+
186
+ - repo: https://github.com/python-jsonschema/check-jsonschema
187
+ rev: 0.38.0
188
+ hooks:
189
+ # actionlint knows expression types and shell; the schema knows which keys are
190
+ # allowed to exist at all. They disagree about what they catch.
191
+ - id: check-github-workflows
192
+ - id: check-dependabot
193
+ # A job with no timeout-minutes inherits GitHub's 6-hour default, so one hang
194
+ # bills six hours of a private repo's minutes.
195
+ - id: check-github-workflows-require-timeout
196
+
197
+ # --- our own checks -------------------------------------------------------
198
+ # Ordinary local hooks. The scripts sit in scripts/precommit/ and are copied
199
+ # alongside this file.
200
+ - repo: local
201
+ hooks:
202
+ # Cyclomatic complexity, ratcheted against HEAD. Limit 10, and the limit is
203
+ # the whole argument for this hook existing alongside complexipy: measured
204
+ # over 1814 paired functions against a cognitive gate of 15, a cyclomatic gate
205
+ # at 20 catches ZERO functions cognitive misses, at 15 it catches 4, at 10 it
206
+ # catches 64. Those 64 are wide flat branching, which cognitive deliberately
207
+ # forgives. 10 is also McCabe's own 1976 number.
208
+ #
209
+ # A script rather than ruff's C901 because ruff cannot compare a function
210
+ # against its own previous value. A flat C901 at 10 reports 264 existing
211
+ # functions across these repos, and `# noqa: C901` silences each one
212
+ # permanently, including when it later goes from 20 to 40.
213
+ #
214
+ # `diff-quality --violations=ruff.check` is the off-the-shelf version and does
215
+ # not work: it matches violations to changed LINES, and a C901 violation sits
216
+ # on the `def` line, so a function taken from 9 to 15 by editing its body was
217
+ # reported as "100% quality". Measured on a probe repo, not assumed.
218
+ #
219
+ # Needs uv on PATH; calls a pinned uvx ruff so the number is reproducible.
220
+ # Cost: 85 ms for a 3-file commit, 157 ms for 12.
221
+ - id: cyclomatic-ratchet
222
+ name: cyclomatic complexity does not grow
223
+ language: system
224
+ entry: python3 scripts/precommit/cyclomatic_ratchet.py
225
+ types: [python]
226
+ exclude: *evidence
227
+
228
+ # Stops a file GROWING TO more than 800 lines. Two cases fail: a file this
229
+ # commit adds already over the limit, and a file that was at or under it and
230
+ # is now over. Those are the moments a file becomes a problem.
231
+ #
232
+ # A file ALREADY over the limit is reported when it grows, not failed. That
233
+ # differs from the complexity gates on purpose: complexity is a property of
234
+ # one function, so freezing a bad one costs nothing because you can edit its
235
+ # neighbour. Length is a property of the whole file, so failing on growth
236
+ # would block every edit until somebody does a large refactor they did not
237
+ # come here to do. Measured across these repos: 135 Python files are already
238
+ # over 800 lines, 77 of them source. Freezing 135 files is how a hook gets
239
+ # --no-verify'd. FREEZE_OVERSIZE in the script flips this if you want it.
240
+ #
241
+ # Lines, not bytes: check-added-large-files caps bytes and only looks at
242
+ # files being ADDED, so a file growing past a megabyte one commit at a time
243
+ # is invisible to it. Neither hook covers what this one does.
244
+ #
245
+ # Python only. A generic length rule fires on lock files, JSON fixtures and
246
+ # generated output, where length is not a defect.
247
+ - id: file-length-ratchet
248
+ name: no file grows past 800 lines
249
+ language: system
250
+ entry: python3 scripts/precommit/file_length_ratchet.py
251
+ types: [python]
252
+ exclude: *vendored
253
+
254
+ - id: no-em-dash
255
+ name: forbid em dashes
256
+ language: pygrep
257
+ # U+2014's UTF-8 bytes. pygrep compiles a BYTES pattern and Python's re
258
+ # rejects \u escapes there ("bad escape \u"). Still escaped, so the hook does
259
+ # not match its own config.
260
+ entry: '\xe2\x80\x94'
261
+ types: [text]
262
+ # House style is ours to keep in our own prose. A source document's em dashes
263
+ # are part of the text a measurement is graded against.
264
+ exclude: '^(uv\.lock|experiments/(taste-spike|walking-skeleton)/out/|fixtures/sources/)'
265
+
266
+ # Parses with ast rather than grepping. The regex version of this rule claimed
267
+ # that requiring the CALL or the IMPORT meant prose could not trip it; measured
268
+ # across two repos that is false. After excluding tests it still reported six
269
+ # hits, and every one was a docstring or comment EXPLAINING mock behaviour, such
270
+ # as "coerces to 1 via MagicMock.__index__". ast never sees a comment, and a
271
+ # docstring is a string expression rather than a Name or an Import.
272
+ - id: no-mocks-in-production
273
+ name: mocks and stubs stay in tests
274
+ language: system
275
+ entry: python3 scripts/precommit/check_no_mocks.py
276
+ types: [python]
277
+ # Tests are supposed to mock. Without this it reported 493 hits in one repo
278
+ # and 344 in another, all of them tests doing their job.
279
+ exclude: '(^|/)tests?/|(^|/)test_[^/]*\.py$|_test\.py$|(^|/)conftest\.py$'
280
+
281
+ # Two files describing the same project to two different agents drift
282
+ # invisibly: both still read fine alone, but one agent ends up told about a
283
+ # section the other has never heard of. Compares heading structure.
284
+ # A CLAUDE.md containing only `@AGENTS.md` is an import, so there is one source
285
+ # of truth and it passes. Deliberate renames go in .agent-docs-aliases.json.
286
+ # A repo with no AGENTS.md passes silently.
287
+ - id: agent-docs-sync
288
+ name: AGENTS.md and CLAUDE.md have not drifted
289
+ language: system
290
+ entry: python3 scripts/precommit/check_agent_docs_sync.py
291
+ pass_filenames: false
292
+ files: (AGENTS|CLAUDE)\.md$
@@ -0,0 +1,55 @@
1
+ # Working on systemap
2
+
3
+ systemap helps one person keep an accurate view of a system that is larger
4
+ than what they can hold in their head. Everything here serves that: the map
5
+ is the artefact, the commands are how it stays true, and the words are how a
6
+ reader learns what the map is telling them.
7
+
8
+ ## How the words are written
9
+
10
+ systemap talks to someone who is learning the system, not to someone who
11
+ already knows it. That means:
12
+
13
+ - **The line says what was found. The rows under it teach.** Every line a
14
+ command prints is also an identifier: the maintainer quotes it in
15
+ `[judgement] answered`, and some are read back by code. Never change a
16
+ line's text to make it friendlier. Add to it instead, in `explain.py`,
17
+ where each kind of line has three sentences: what it means, why it matters
18
+ to your view of the system, and what to do. `--brief` leaves them out.
19
+ - **The reason comes before the instruction.** "A card is a promise that its
20
+ modules do one job; move the module to the card whose job it serves" reads
21
+ as teaching. "Move the module" reads as a rule.
22
+ - **Define a term the first time it is used.** A journey, a card, a flow, a
23
+ way in: each of these is ordinary English being used precisely, and a
24
+ reader who guesses wrong stays wrong for the rest of the page.
25
+ - **Say the thing, not a picture of it.** "A parameter worth varying", not
26
+ "a dial worth turning". A metaphor carries meanings nobody chose.
27
+ - **No emoji. No em dashes.** A hyphen, a colon or a full stop.
28
+ - **Short sentences.** A line a reader has to re-read has failed.
29
+
30
+ When a new kind of line is added, add its entry to `explain.py`: a test
31
+ refuses a kind with no lesson.
32
+
33
+ ## How a feature is decided
34
+
35
+ - **Measure before building.** State the acceptance number first, in the
36
+ experiment's own docstring, then run it. `bench/jev/README.md` holds every
37
+ run, including the ones that failed.
38
+ - **A feature that fails its gate does not ship.** It is recorded, with its
39
+ numbers and the reason it failed, so nobody builds it twice by accident.
40
+ `systemap ripple` and the import-derived journey paths are both there.
41
+ - **Never invent a number.** If it has not been measured, say so.
42
+ - **No silent substitution.** If a command cannot do what was asked, it says
43
+ so and exits; it does not do something else quietly.
44
+
45
+ ## The gates that run here
46
+
47
+ `uv run pytest`, `uv run pre-commit run --all-files`. Between them they hold:
48
+ ruff, mypy, cognitive complexity at 15 for anything this commit adds or
49
+ worsens, cyclomatic complexity that never grows, no file past 800 lines,
50
+ `SKILL.md` at 240 lines, no em dashes, and the three copies of the skill
51
+ directory identical. No test sends anything to Jev or runs an agent: both are
52
+ injected, and recorded answers are replayed.
53
+
54
+ The map maps itself. After changing the source, run `systemap refresh`,
55
+ `systemap check` and `systemap judgement`, and claim any new module.
@@ -1,5 +1,162 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ ## 1.2.0 - 2026-09-20
6
+
7
+ The commands that read the map rather than draw it: a walk an agent writes, a
8
+ plan checked against the work, a year of the system, and every line teaching
9
+ what it means. Two features were measured and not built, and their runs are in
10
+ `bench/jev/README.md` with the numbers.
11
+
12
+ - `delta` ends with the cards next to the change: the ones a flow joins to the
13
+ card holding most of what changed. It is context, not a claim about what
14
+ else broke. Measured over 359 merged pull requests before it was built: 6
15
+ cards at the median, holding a card the change really touched in 72% of
16
+ them, where following that card's imports gives 20 cards for 77%. Nothing is
17
+ named when the card is joined to more than a third of the map, which quiets
18
+ 18% of pull requests and costs 3 points (`bench/jev/near.py`).
19
+ - `systemap journeys` writes one walk for a whole crowd where a card takes
20
+ more than a few ways in of one kind, rather than one walk each. That walk
21
+ names the card in `starts`, and every way in the card claims counts as
22
+ walked. Covering mealie is two agent runs rather than sixty-five. Measured
23
+ before it was wired in: eight of nine crowds over mealie, paperless-ngx and
24
+ poetry came back as a walk the map can hold, against a bar of seven in ten
25
+ (`bench/jev/group_journeys.py`).
26
+ - `systemap history --by-card` was measured and not built. On four
27
+ repositories, each of the three fastest-growing cards had to trace to a
28
+ commit a person can name as a feature, on at least three of them; two
29
+ passed. Where a system grew the aggregate named the work, and where it did
30
+ not there was nothing to name (`bench/jev/by_card.py`).
31
+ - `systemap --help` lists one sentence per command. What each command does in
32
+ full, and what its options do, moved into that command's own `--help`, and
33
+ `docs/reference.md` now describes each command in short sentences rather
34
+ than in one long table cell.
35
+
36
+ - A model module may import modules beside it: its own directory is on the
37
+ path while it runs, and anything it imported is dropped afterwards, so the
38
+ next run reads what is on disk. A map that outgrew one file can keep its
39
+ journeys, or one region's cards, next to the model. systemap's own map does.
40
+
41
+ - `systemap history --since --every` says how the system got here: one commit
42
+ sampled per window, the facts at each read out of git and cached, and every
43
+ sample read in today's cards. Each window names what moved and the commits
44
+ that wrote the modules which appeared. Measured on a year of mealie before
45
+ it was built: 25 samples in 29 seconds cold and under a second warm against
46
+ a five minute bar, and five of the five largest windows named a change a
47
+ person can find in that window's commits, against a bar of three
48
+ (`bench/jev/history_eval.py`).
49
+
50
+ - `check`, `judgement`, `delta` and `audit` teach while they refuse: under
51
+ the first line of each kind, two rows say why it matters to your view of
52
+ the system and what to do about it. The lines themselves are unchanged, so
53
+ answers written against them keep working, and each kind is taught once per
54
+ report rather than once per line. `--brief` leaves the rows out.
55
+ - `systemap explain "<kind>"` prints one kind in full: what it means, why it
56
+ matters, what to do. With no kind it lists every kind systemap prints.
57
+ - The pull-request comment carries the same teaching once per kind, folded
58
+ into a details block under the lines.
59
+ - `AGENTS.md` says how systemap's own words are written, and how a feature is
60
+ decided: state the number before building, and record what failed.
61
+
62
+ - `systemap plan "<task>"` names the cards a piece of work will most likely
63
+ change, before it is done, and prints what each sits in: the flows, the
64
+ walks and the rules around it. `--check <id> --base <ref>` compares that
65
+ projection with the cards the code actually changed and names every card
66
+ that changed outside the plan. The cut is measured: over 80 real bug
67
+ reports with the cards their fix touched, it covered 86% of them while
68
+ naming 2.1 cards; on a repository no threshold was chosen on, 71% while
69
+ naming 2.1. The bar, set before the run, was 70% with at most 2 extra
70
+ cards (`bench/jev/plan_eval.py`).
71
+ - `systemap ripple` was measured and not built. From the card holding the
72
+ file a pull request changed most, no walk over the map found the other
73
+ cards of that pull request within 10 points of what following the imports
74
+ found, at half the size. Five walks were tried over 366 pull requests
75
+ (`bench/jev/ripple.py`).
76
+
77
+ - `systemap journeys` writes a walk through the system for a way in that no
78
+ journey starts from. The agent named under `[agent] command` reads the code
79
+ from that way in and answers with the cards a run passes through and a
80
+ sentence each; systemap checks every step against the map and refuses one
81
+ that traces a flow the map does not draw or names a card that is not there.
82
+ What holds is written into the model marked `drafted=True`, and `judgement`
83
+ prints a `drafted journey` line until the mark is removed. With no command
84
+ set, nothing runs and the ways in with no walk are listed instead.
85
+ - The walk was first proposed from the imports and measured against the
86
+ journeys people wrote: the cards overlapped by 0.28 where the bar was 0.60,
87
+ because the module behind a command line imports the whole system. That
88
+ proposal is not shipped; `bench/jev/propose.py` and `paths.py` keep it.
89
+ - `systemap extract` finds the ways in a framework registers: routes
90
+ (FastAPI, Flask, Django's `urlpatterns`), commands (click, typer, cleo,
91
+ Django's management commands), tasks (Celery), Poetry scripts and plugin
92
+ hooks. A hand-check of 30 of the new records across the seven maps found 29
93
+ real. `judgement` asks for a journey from each, grouped into one line per
94
+ card once a card takes four or more of a kind.
95
+ - `systemap describe` ends with the journeys: each walk's steps, where it
96
+ starts, the steps no import backs ("on trust"), whether an agent wrote it
97
+ and nobody has read it, and how many ways into the system a journey walks
98
+ from. The page says the same under each step of a walk.
99
+ - Which ways in count as walked is now decided in one place, so `judgement`,
100
+ `describe` and `journeys` cannot disagree: a journey covers a way in by
101
+ naming it in `starts`, or by naming it as a whole word as before.
102
+ - A `Journey` can name the way in it starts from (`starts="GET /recipes"`),
103
+ which `judgement` reads: a journey covers that way in, and a `journey start`
104
+ line says when the facts have no such way in.
105
+ - `delta` asks Jev on its own when `TYPESAFE_API_KEY` is set: modules renamed
106
+ and rewritten at once are paired, and each unclaimed module gets the card it
107
+ reads like. `--no-jev` sends nothing; `--jev` asks and says why it cannot.
108
+ What Jev cost goes to stderr, and only when a question was asked.
109
+ - Without a key, `judgement` says on stderr what `audit` would add, and `delta`
110
+ does when a module was removed and another added, each with its measured
111
+ figure. `[jev] enabled = false` turns off the hints and delta's asking.
112
+ - The skill uses the Jev version of each command first (`suggest --jev`,
113
+ `audit` after `judgement`, `delta`, `triage`) and falls back to the plain
114
+ one when `TYPESAFE_API_KEY` is unset or a Jev call fails, telling the user
115
+ that Jev was not used and why.
116
+ - `check` and `judgement` still never ask, and `suggest` keeps `--jev` as a
117
+ flag: it saved nothing on the first map it was benchmarked on.
118
+
119
+ ## 1.1.0 - not published
120
+
121
+ Prepared, then overtaken before it was tagged. Everything below ships in
122
+ 1.2.0.
123
+
124
+ A second opinion, opt-in. Everything below needs `TYPESAFE_API_KEY`; nothing
125
+ is sent without it, `check` and `judgement` never call it, and no dependency
126
+ was added: the HTTP API is spoken with `urllib`.
127
+
128
+ - `systemap audit` asks TypeSafe's Jev model five kinds of question and
129
+ prints a line where its answer disagrees with the map: `jev mis-fold`,
130
+ `jev owner`, `jev sentence`, `jev flow` and `jev governs`. The thresholds
131
+ were chosen on the five first maps in `bench/scratch` and each is quoted in
132
+ `audit.py` with what it measured; `bench/jev` holds every experiment, its
133
+ labels, the answers and the report, beside the heuristic systemap used.
134
+ Each kind was then checked on three maps no threshold was chosen on
135
+ (`JEV_SET=holdout`): all held within 10 points of the development figures
136
+ but `jev flow` (54% of wrong flows caught against 66%), which is asked only
137
+ with `--kind "jev flow"`. `--kind` repeats, and asks only the kinds named.
138
+ A line is answered in `[judgement] answered`; `audit` reads only the answers
139
+ that name its lines, and `judgement` ignores them. `--dry-run` counts the
140
+ questions and says what would leave the machine.
141
+ - `systemap triage "<issue>"` names the three cards a fix will most likely
142
+ change, with their modules and neighbours on the map.
143
+ - `delta --jev` asks Jev which new module each module that disappeared
144
+ became, where delta's own questions paired none, and reports a pick at
145
+ confidence 0.8 or more as a move: on renames in five repositories it found
146
+ 82 against delta's 66, 16 of its 17 additions right (labelled blind by an
147
+ agent from the commits; `bench/jev`). It then adds the card each
148
+ unclaimed module reads like. `suggest --jev` groups modules from Jev's answers
149
+ about module pairs; on the development maps it beat one card per package on
150
+ three of five and lost on two, and says so when it runs. On httpie, a first
151
+ map told to start from it took 54 turns, $3.61 and 5.5 minutes against 46,
152
+ $3.43 and 4.8 for the plain recipe (one run each, so the spread between
153
+ runs is not measured); it stays opt-in, and the recipe does not use it.
154
+ - Answers are cached in `.systemap/jev-cache.json` by model, release date,
155
+ state and question: an unchanged map costs nothing the second time, and a
156
+ new release of the model asks again. `[jev]` in the configuration names the
157
+ model and the cache.
158
+ - `typesafe_sdk` joined the model SDK list the `model sdk` line reads.
159
+
3
160
  ## 1.0.3
4
161
 
5
162
  - The version badge reads PyPI rather than pypi, and its address changed with
@@ -0,0 +1 @@
1
+ @AGENTS.md