systemap 1.0.0__tar.gz → 1.0.2__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 (114) hide show
  1. {systemap-1.0.0 → systemap-1.0.2}/.claude-plugin/plugin.json +1 -1
  2. systemap-1.0.2/.github/workflows/workflow.yml +54 -0
  3. {systemap-1.0.0 → systemap-1.0.2}/CHANGELOG.md +19 -0
  4. {systemap-1.0.0 → systemap-1.0.2}/PKG-INFO +20 -17
  5. {systemap-1.0.0 → systemap-1.0.2}/README.md +18 -15
  6. {systemap-1.0.0 → systemap-1.0.2}/docs/map/index.html +2 -2
  7. {systemap-1.0.0 → systemap-1.0.2}/docs/map/map.json +6 -6
  8. {systemap-1.0.0 → systemap-1.0.2}/pyproject.toml +2 -2
  9. systemap-1.0.2/scripts/publish.sh +57 -0
  10. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/__init__.py +1 -1
  11. {systemap-1.0.0 → systemap-1.0.2}/tests/test_screenshots.py +17 -0
  12. {systemap-1.0.0 → systemap-1.0.2}/uv.lock +1 -1
  13. systemap-1.0.0/scripts/publish.sh +0 -43
  14. {systemap-1.0.0 → systemap-1.0.2}/.claude/skills/systemap/SKILL.md +0 -0
  15. {systemap-1.0.0 → systemap-1.0.2}/.claude-plugin/marketplace.json +0 -0
  16. {systemap-1.0.0 → systemap-1.0.2}/.gitattributes +0 -0
  17. {systemap-1.0.0 → systemap-1.0.2}/.github/workflows/systemap.yml +0 -0
  18. {systemap-1.0.0 → systemap-1.0.2}/.gitignore +0 -0
  19. {systemap-1.0.0 → systemap-1.0.2}/.python-version +0 -0
  20. {systemap-1.0.0 → systemap-1.0.2}/LICENSE +0 -0
  21. {systemap-1.0.0 → systemap-1.0.2}/assets/hero-light.svg +0 -0
  22. {systemap-1.0.0 → systemap-1.0.2}/assets/hero.svg +0 -0
  23. {systemap-1.0.0 → systemap-1.0.2}/assets/logo-mark.svg +0 -0
  24. {systemap-1.0.0 → systemap-1.0.2}/bench/results.jsonl +0 -0
  25. {systemap-1.0.0 → systemap-1.0.2}/bench/run.sh +0 -0
  26. {systemap-1.0.0 → systemap-1.0.2}/bench/summary.py +0 -0
  27. {systemap-1.0.0 → systemap-1.0.2}/bench/table.py +0 -0
  28. {systemap-1.0.0 → systemap-1.0.2}/docs/.nojekyll +0 -0
  29. {systemap-1.0.0 → systemap-1.0.2}/docs/benchmarks.md +0 -0
  30. {systemap-1.0.0 → systemap-1.0.2}/docs/index.html +0 -0
  31. {systemap-1.0.0 → systemap-1.0.2}/docs/map/.gitkeep +0 -0
  32. {systemap-1.0.0 → systemap-1.0.2}/docs/map/figures/control.svg +0 -0
  33. {systemap-1.0.0 → systemap-1.0.2}/docs/map/figures/structure.svg +0 -0
  34. {systemap-1.0.0 → systemap-1.0.2}/docs/map/figures/system.svg +0 -0
  35. {systemap-1.0.0 → systemap-1.0.2}/docs/reference.md +0 -0
  36. {systemap-1.0.0 → systemap-1.0.2}/docs/screenshots/graphite.png +0 -0
  37. {systemap-1.0.0 → systemap-1.0.2}/docs/screenshots/paper.png +0 -0
  38. {systemap-1.0.0 → systemap-1.0.2}/docs/screenshots/tour.gif +0 -0
  39. {systemap-1.0.0 → systemap-1.0.2}/docs/screenshots/warm.png +0 -0
  40. {systemap-1.0.0 → systemap-1.0.2}/map/model.py +0 -0
  41. {systemap-1.0.0 → systemap-1.0.2}/scripts/screenshots.py +0 -0
  42. {systemap-1.0.0 → systemap-1.0.2}/skills/systemap/SKILL.md +0 -0
  43. {systemap-1.0.0 → systemap-1.0.2}/skills/systemap/references/example.md +0 -0
  44. {systemap-1.0.0 → systemap-1.0.2}/skills/systemap/references/journeys-and-invariants.md +0 -0
  45. {systemap-1.0.0 → systemap-1.0.2}/skills/systemap/references/layers.md +0 -0
  46. {systemap-1.0.0 → systemap-1.0.2}/skills/systemap/references/layout.md +0 -0
  47. {systemap-1.0.0 → systemap-1.0.2}/skills/systemap/references/maintenance.md +0 -0
  48. {systemap-1.0.0 → systemap-1.0.2}/skills/systemap/references/pitfalls.md +0 -0
  49. {systemap-1.0.0 → systemap-1.0.2}/skills/systemap/references/schema.md +0 -0
  50. {systemap-1.0.0 → systemap-1.0.2}/skills/systemap/references/second-pass.md +0 -0
  51. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/__main__.py +0 -0
  52. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/change.py +0 -0
  53. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/check.py +0 -0
  54. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/cli.py +0 -0
  55. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/config.py +0 -0
  56. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/delta.py +0 -0
  57. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/describe.py +0 -0
  58. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/evidence.py +0 -0
  59. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/extract.py +0 -0
  60. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/facts.py +0 -0
  61. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/figure.py +0 -0
  62. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/judgement.py +0 -0
  63. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/model.py +0 -0
  64. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/nest.py +0 -0
  65. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/page.py +0 -0
  66. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/place.py +0 -0
  67. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/py.typed +0 -0
  68. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/route.py +0 -0
  69. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/scaffold.py +0 -0
  70. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/schematic.py +0 -0
  71. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/skill/SKILL.md +0 -0
  72. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/skill/references/example.md +0 -0
  73. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/skill/references/journeys-and-invariants.md +0 -0
  74. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/skill/references/layers.md +0 -0
  75. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/skill/references/layout.md +0 -0
  76. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/skill/references/maintenance.md +0 -0
  77. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/skill/references/pitfalls.md +0 -0
  78. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/skill/references/schema.md +0 -0
  79. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/skill/references/second-pass.md +0 -0
  80. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/skill.py +0 -0
  81. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/suggest.py +0 -0
  82. {systemap-1.0.0 → systemap-1.0.2}/src/systemap/theme.py +0 -0
  83. {systemap-1.0.0 → systemap-1.0.2}/systemap.toml +0 -0
  84. {systemap-1.0.0 → systemap-1.0.2}/tests/conftest.py +0 -0
  85. {systemap-1.0.0 → systemap-1.0.2}/tests/fixture_workspace.py +0 -0
  86. {systemap-1.0.0 → systemap-1.0.2}/tests/fixtures/bench-session.jsonl +0 -0
  87. {systemap-1.0.0 → systemap-1.0.2}/tests/page_driver.js +0 -0
  88. {systemap-1.0.0 → systemap-1.0.2}/tests/test_agentic.py +0 -0
  89. {systemap-1.0.0 → systemap-1.0.2}/tests/test_bench.py +0 -0
  90. {systemap-1.0.0 → systemap-1.0.2}/tests/test_card_text.py +0 -0
  91. {systemap-1.0.0 → systemap-1.0.2}/tests/test_check_rules.py +0 -0
  92. {systemap-1.0.0 → systemap-1.0.2}/tests/test_cli.py +0 -0
  93. {systemap-1.0.0 → systemap-1.0.2}/tests/test_coverage.py +0 -0
  94. {systemap-1.0.0 → systemap-1.0.2}/tests/test_delta.py +0 -0
  95. {systemap-1.0.0 → systemap-1.0.2}/tests/test_evidence.py +0 -0
  96. {systemap-1.0.0 → systemap-1.0.2}/tests/test_extract.py +0 -0
  97. {systemap-1.0.0 → systemap-1.0.2}/tests/test_facts.py +0 -0
  98. {systemap-1.0.0 → systemap-1.0.2}/tests/test_framing.py +0 -0
  99. {systemap-1.0.0 → systemap-1.0.2}/tests/test_interface.py +0 -0
  100. {systemap-1.0.0 → systemap-1.0.2}/tests/test_judgement.py +0 -0
  101. {systemap-1.0.0 → systemap-1.0.2}/tests/test_keyboard.py +0 -0
  102. {systemap-1.0.0 → systemap-1.0.2}/tests/test_layer_figure.py +0 -0
  103. {systemap-1.0.0 → systemap-1.0.2}/tests/test_layers.py +0 -0
  104. {systemap-1.0.0 → systemap-1.0.2}/tests/test_layout.py +0 -0
  105. {systemap-1.0.0 → systemap-1.0.2}/tests/test_model.py +0 -0
  106. {systemap-1.0.0 → systemap-1.0.2}/tests/test_nested.py +0 -0
  107. {systemap-1.0.0 → systemap-1.0.2}/tests/test_place.py +0 -0
  108. {systemap-1.0.0 → systemap-1.0.2}/tests/test_platform.py +0 -0
  109. {systemap-1.0.0 → systemap-1.0.2}/tests/test_plugin.py +0 -0
  110. {systemap-1.0.0 → systemap-1.0.2}/tests/test_render.py +0 -0
  111. {systemap-1.0.0 → systemap-1.0.2}/tests/test_skill.py +0 -0
  112. {systemap-1.0.0 → systemap-1.0.2}/tests/test_suggest.py +0 -0
  113. {systemap-1.0.0 → systemap-1.0.2}/tests/test_symbol_claims.py +0 -0
  114. {systemap-1.0.0 → systemap-1.0.2}/tests/test_theme.py +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systemap",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
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",
@@ -0,0 +1,54 @@
1
+ # Publishing a release, with no token anywhere.
2
+ #
3
+ # Pushing a tag that names a version builds the package and uploads it to
4
+ # PyPI through trusted publishing: GitHub signs a short-lived identity for
5
+ # this workflow in this repository, and PyPI accepts the upload because it
6
+ # was told to trust that identity. Nothing long-lived is stored here, in a
7
+ # secret, or on anybody's laptop.
8
+ #
9
+ # The trusted publisher registered on PyPI names this repository, this file
10
+ # (workflow.yml) and the environment pypi. All three are part of the identity
11
+ # GitHub signs, so renaming this file or changing the environment breaks the
12
+ # upload until the publisher on PyPI is changed to match.
13
+ name: release
14
+
15
+ on:
16
+ push:
17
+ # Every tag that starts with v. The job checks the tag against the
18
+ # package's own version, which is the rule that matters, and a filter
19
+ # pattern is the wrong place to enforce it.
20
+ tags:
21
+ - "v*"
22
+
23
+ permissions:
24
+ contents: read
25
+
26
+ jobs:
27
+ release:
28
+ runs-on: ubuntu-latest
29
+ # Named in the identity GitHub signs, and registered on PyPI beside the
30
+ # repository and this file's name.
31
+ environment: pypi
32
+ permissions:
33
+ contents: read
34
+ # What signs the identity PyPI checks. It is the whole mechanism.
35
+ id-token: write
36
+ steps:
37
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38
+ with:
39
+ persist-credentials: false
40
+ - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
41
+ with:
42
+ # A release must not restore a cache anything else can write.
43
+ enable-cache: false
44
+ - name: the tag and the package agree
45
+ run: |
46
+ tagged="${GITHUB_REF_NAME#v}"
47
+ built="$(uv run python -c 'import systemap; print(systemap.__version__)')"
48
+ if [ "$tagged" != "$built" ]; then
49
+ echo "::error title=Version mismatch::the tag says $tagged and the package says $built"
50
+ exit 1
51
+ fi
52
+ - name: build
53
+ run: uv build
54
+ - uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.2
4
+
5
+ - The package said `Development Status :: 3 - Alpha` while being published as
6
+ 1.0. It says Production/Stable, which is what shipping a 1.0 meant.
7
+ - The badges read the package's own metadata rather than repeating it. The
8
+ Python versions and the licence come from what was published, so they cannot
9
+ say one thing while `pyproject.toml` says another.
10
+ - The release workflow is `workflow.yml` and runs in the `pypi` environment,
11
+ which is the identity the trusted publisher on PyPI is registered against.
12
+ This is the first release published by that workflow rather than by hand.
13
+
14
+ ## 1.0.1
15
+
16
+ - The images show on PyPI. The README named them by a path relative to the
17
+ repository, which resolves on GitHub and cannot on a project page that has
18
+ no repository behind it, so every image is now named by its full URL. A test
19
+ refuses a relative one, since the same file is both the front page and the
20
+ package's description.
21
+
3
22
  ## 1.0.0
4
23
 
5
24
  Everything the roadmap named as a gap is built and has been run on
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: systemap
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: The map your coding agent draws of your system: facts read out of the code, meaning authored by the agent, a checker that refuses an incomplete or stale map.
5
5
  Project-URL: Homepage, https://github.com/0xfauzi/systemap
6
6
  Project-URL: Changelog, https://github.com/0xfauzi/systemap/blob/main/CHANGELOG.md
@@ -8,7 +8,7 @@ Author: Fauzi
8
8
  License-Expression: MIT
9
9
  License-File: LICENSE
10
10
  Keywords: architecture,coding agents,diagram,documentation,svg,system map
11
- Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Environment :: Console
13
13
  Classifier: Intended Audience :: Developers
14
14
  Classifier: License :: OSI Approved :: MIT License
@@ -24,17 +24,17 @@ Description-Content-Type: text/markdown
24
24
 
25
25
  <p align="center">
26
26
  <picture>
27
- <source media="(prefers-color-scheme: dark)" srcset="assets/hero.svg">
28
- <source media="(prefers-color-scheme: light)" srcset="assets/hero-light.svg">
29
- <img src="assets/hero.svg" alt="systemap: the map your coding agent draws of your system" width="100%">
27
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/0xfauzi/systemap/main/assets/hero.svg">
28
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/0xfauzi/systemap/main/assets/hero-light.svg">
29
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/assets/hero.svg" alt="systemap: the map your coding agent draws of your system" width="100%">
30
30
  </picture>
31
31
  </p>
32
32
 
33
33
  <p align="center">
34
- <a href="https://pypi.org/project/systemap/"><img alt="PyPI" src="https://img.shields.io/pypi/v/systemap?color=e0a458&labelColor=121417"></a>
35
- <a href="LICENSE"><img alt="MIT" src="https://img.shields.io/badge/licence-MIT-8fbfa6?labelColor=121417"></a>
36
- <img alt="Python 3.11+" src="https://img.shields.io/badge/python-3.11%2B-b3b1aa?labelColor=121417">
37
- <img alt="no dependencies" src="https://img.shields.io/badge/dependencies-none-b3b1aa?labelColor=121417">
34
+ <a href="https://pypi.org/project/systemap/"><img alt="the version on PyPI" src="https://img.shields.io/pypi/v/systemap?color=e0a458&labelColor=121417"></a>
35
+ <a href="https://pypi.org/project/systemap/"><img alt="the Python versions it runs on" src="https://img.shields.io/pypi/pyversions/systemap?color=b3b1aa&labelColor=121417"></a>
36
+ <a href="LICENSE"><img alt="the licence" src="https://img.shields.io/pypi/l/systemap?color=8fbfa6&labelColor=121417"></a>
37
+ <img alt="how many dependencies it has" src="https://img.shields.io/badge/dependencies-none-b3b1aa?labelColor=121417">
38
38
  </p>
39
39
 
40
40
  If you have a coding agent working in your repository, you have probably
@@ -49,7 +49,7 @@ map lives beside the code, so seeing what your agents have built is one page
49
49
  rather than an afternoon of reading. It reads Python and only Python.
50
50
 
51
51
  <p align="center">
52
- <img src="docs/screenshots/tour.gif" alt="the map: switching readings, clicking a component to light what it reaches, stepping a journey" width="100%">
52
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/docs/screenshots/tour.gif" alt="the map: switching readings, clicking a component to light what it reaches, stepping a journey" width="100%">
53
53
  </p>
54
54
 
55
55
  <p align="center">
@@ -112,7 +112,7 @@ vendor-specific in it.
112
112
  ## What you get
113
113
 
114
114
  <p align="center">
115
- <img src="docs/map/figures/structure.svg" alt="systemap's map of itself: the Structure reading, every part in its region, no edges" width="100%">
115
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/docs/map/figures/structure.svg" alt="systemap's map of itself: the Structure reading, every part in its region, no edges" width="100%">
116
116
  </p>
117
117
 
118
118
  One page, several readings of the same map, which is how you look at a system
@@ -137,9 +137,9 @@ Three colour schemes ship, and the picker in the header remembers the one you
137
137
  chose.
138
138
 
139
139
  <p align="center">
140
- <img src="docs/screenshots/warm.png" alt="the warm scheme" width="32%">
141
- <img src="docs/screenshots/graphite.png" alt="the graphite scheme" width="32%">
142
- <img src="docs/screenshots/paper.png" alt="the paper scheme" width="32%">
140
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/docs/screenshots/warm.png" alt="the warm scheme" width="32%">
141
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/docs/screenshots/graphite.png" alt="the graphite scheme" width="32%">
142
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/docs/screenshots/paper.png" alt="the paper scheme" width="32%">
143
143
  </p>
144
144
 
145
145
  ## What this pull request did to the system
@@ -242,9 +242,12 @@ repository's map, and installs the plugin from the checkout with the Claude
242
242
  Code CLI. [docs/reference.md](docs/reference.md) has the rest, including how
243
243
  the skill's two copies are kept identical.
244
244
 
245
- Releases: tag `v<version>` on the release commit, then run
246
- `scripts/publish.sh`, which builds `dist/` and uploads with the PyPI token in
247
- the maintainer's macOS Keychain (`--dry-run` builds and stops).
245
+ Releases: push a tag that names the version. `.github/workflows/workflow.yml`
246
+ builds the package and uploads it through PyPI's trusted publishing, where
247
+ GitHub proves the build came from this repository and no long-lived token
248
+ exists to be stolen. `scripts/publish.sh` is the manual path for a release
249
+ made from a laptop, taking the token from `UV_PUBLISH_TOKEN` or, on macOS,
250
+ from the login keychain.
248
251
 
249
252
  MIT licensed.
250
253
 
@@ -1,16 +1,16 @@
1
1
  <p align="center">
2
2
  <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="assets/hero.svg">
4
- <source media="(prefers-color-scheme: light)" srcset="assets/hero-light.svg">
5
- <img src="assets/hero.svg" alt="systemap: the map your coding agent draws of your system" width="100%">
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/0xfauzi/systemap/main/assets/hero.svg">
4
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/0xfauzi/systemap/main/assets/hero-light.svg">
5
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/assets/hero.svg" alt="systemap: the map your coding agent draws of your system" width="100%">
6
6
  </picture>
7
7
  </p>
8
8
 
9
9
  <p align="center">
10
- <a href="https://pypi.org/project/systemap/"><img alt="PyPI" src="https://img.shields.io/pypi/v/systemap?color=e0a458&labelColor=121417"></a>
11
- <a href="LICENSE"><img alt="MIT" src="https://img.shields.io/badge/licence-MIT-8fbfa6?labelColor=121417"></a>
12
- <img alt="Python 3.11+" src="https://img.shields.io/badge/python-3.11%2B-b3b1aa?labelColor=121417">
13
- <img alt="no dependencies" src="https://img.shields.io/badge/dependencies-none-b3b1aa?labelColor=121417">
10
+ <a href="https://pypi.org/project/systemap/"><img alt="the version on PyPI" src="https://img.shields.io/pypi/v/systemap?color=e0a458&labelColor=121417"></a>
11
+ <a href="https://pypi.org/project/systemap/"><img alt="the Python versions it runs on" src="https://img.shields.io/pypi/pyversions/systemap?color=b3b1aa&labelColor=121417"></a>
12
+ <a href="LICENSE"><img alt="the licence" src="https://img.shields.io/pypi/l/systemap?color=8fbfa6&labelColor=121417"></a>
13
+ <img alt="how many dependencies it has" src="https://img.shields.io/badge/dependencies-none-b3b1aa?labelColor=121417">
14
14
  </p>
15
15
 
16
16
  If you have a coding agent working in your repository, you have probably
@@ -25,7 +25,7 @@ map lives beside the code, so seeing what your agents have built is one page
25
25
  rather than an afternoon of reading. It reads Python and only Python.
26
26
 
27
27
  <p align="center">
28
- <img src="docs/screenshots/tour.gif" alt="the map: switching readings, clicking a component to light what it reaches, stepping a journey" width="100%">
28
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/docs/screenshots/tour.gif" alt="the map: switching readings, clicking a component to light what it reaches, stepping a journey" width="100%">
29
29
  </p>
30
30
 
31
31
  <p align="center">
@@ -88,7 +88,7 @@ vendor-specific in it.
88
88
  ## What you get
89
89
 
90
90
  <p align="center">
91
- <img src="docs/map/figures/structure.svg" alt="systemap's map of itself: the Structure reading, every part in its region, no edges" width="100%">
91
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/docs/map/figures/structure.svg" alt="systemap's map of itself: the Structure reading, every part in its region, no edges" width="100%">
92
92
  </p>
93
93
 
94
94
  One page, several readings of the same map, which is how you look at a system
@@ -113,9 +113,9 @@ Three colour schemes ship, and the picker in the header remembers the one you
113
113
  chose.
114
114
 
115
115
  <p align="center">
116
- <img src="docs/screenshots/warm.png" alt="the warm scheme" width="32%">
117
- <img src="docs/screenshots/graphite.png" alt="the graphite scheme" width="32%">
118
- <img src="docs/screenshots/paper.png" alt="the paper scheme" width="32%">
116
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/docs/screenshots/warm.png" alt="the warm scheme" width="32%">
117
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/docs/screenshots/graphite.png" alt="the graphite scheme" width="32%">
118
+ <img src="https://raw.githubusercontent.com/0xfauzi/systemap/main/docs/screenshots/paper.png" alt="the paper scheme" width="32%">
119
119
  </p>
120
120
 
121
121
  ## What this pull request did to the system
@@ -218,9 +218,12 @@ repository's map, and installs the plugin from the checkout with the Claude
218
218
  Code CLI. [docs/reference.md](docs/reference.md) has the rest, including how
219
219
  the skill's two copies are kept identical.
220
220
 
221
- Releases: tag `v<version>` on the release commit, then run
222
- `scripts/publish.sh`, which builds `dist/` and uploads with the PyPI token in
223
- the maintainer's macOS Keychain (`--dry-run` builds and stops).
221
+ Releases: push a tag that names the version. `.github/workflows/workflow.yml`
222
+ builds the package and uploads it through PyPI's trusted publishing, where
223
+ GitHub proves the build came from this repository and no long-lived token
224
+ exists to be stolen. `scripts/publish.sh` is the manual path for a release
225
+ made from a laptop, taking the token from `UV_PUBLISH_TOKEN` or, on macOS,
226
+ from the login keychain.
224
227
 
225
228
  MIT licensed.
226
229
 
@@ -174,7 +174,7 @@ border-top:1px solid var(--line)}
174
174
  .systemap-panel{font-family:var(--fs);font-size:13px;line-height:1.45;color:var(--ink-2);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:.9rem 1rem 1rem;min-height:3rem}.systemap-panel:empty::before{content:'Click a component to read it.';color:var(--ink-3)}.systemap-f__plain{font-size:19px;font-weight:600;color:var(--ink);letter-spacing:-.01em;line-height:1.2;margin:0}.systemap-f__code{font-family:var(--fm);font-size:12px;color:var(--accent);margin:.3rem 0 0;display:flex;flex-wrap:wrap;gap:.2rem .7rem;align-items:baseline}.systemap-f__kind{color:var(--ink-3);font-size:11px;letter-spacing:.06em;text-transform:uppercase}.systemap-f__does{margin:.6rem 0 .2rem;font-size:13px;color:var(--ink-2)}.systemap-f__iface{margin:.3rem 0 .2rem;font-family:var(--fm);font-size:11.5px;color:var(--ink-2);word-break:break-word}.systemap-f__note{margin:.5rem 0 .2rem;padding:.4rem .6rem;font-size:12.5px;color:var(--ink);border-left:3px solid var(--warn);background:var(--raised);border-radius:0 6px 6px 0}.systemap-f__wheel{margin:.4rem 0 0}.systemap-f__wheel svg{width:100%;height:auto;display:block;margin:0 auto}.systemap-f__say{margin:.2rem 0 .6rem;padding:.55rem .7rem;font-size:13px;line-height:1.45;color:var(--ink);border-left:3px solid var(--accent);background:var(--raised);border-radius:0 6px 6px 0;min-height:2.6rem}.systemap-f__say.muted{color:var(--ink-3);border-left-color:var(--line-2)}.systemap-f__evidence{margin:-.3rem 0 .6rem;font-family:var(--fm);font-size:11px;color:var(--ink-3);min-height:1em}.systemap-f__evidence.declared{color:var(--warn)}.systemap-f__chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.5rem 0 0}.systemap-chip{display:inline-flex;align-items:center;gap:.35em;min-height:24px;padding:0 .55em;border-radius:4px;font-family:var(--fm);font-size:11px;letter-spacing:.04em;background:var(--raised);color:var(--ink-3);border:1px solid var(--line)}.systemap-chip--built{color:var(--good);border-color:transparent}.systemap-chip--actor{color:var(--ink-3);background:none;border:1px dashed var(--line-2)}.systemap-chip a{color:var(--accent);text-decoration:none}.systemap-chip a:hover{text-decoration:underline}.systemap-chip--rule{color:var(--violet);cursor:help;min-width:24px;justify-content:center}.systemap-f__lives{margin:.6rem 0 0;font-family:var(--fm);font-size:11px;color:var(--ink-3)}.systemap-f__lives b{font-weight:400;color:var(--ink-3)}.systemap-f__entry{margin:.4rem 0 0;font-family:var(--fm);font-size:11px;color:var(--ink-3)}.systemap-f__entry b{font-weight:400;color:var(--ink-2)}.systemap-f__opens{margin:.4rem 0 0;font-family:var(--fm);font-size:11px;color:var(--ink-3)}.systemap-f__opens b{font-weight:400;color:var(--ink-2)}.systemap-f__preview{margin:.5rem 0 0;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--bg)}.systemap-f__preview svg{width:100%;height:auto;display:block}.systemap-f__open{appearance:none;display:block;margin:.5rem 0 0;min-height:30px;padding:0 .8rem;border-radius:6px;border:1px solid var(--accent);background:none;color:var(--accent);font-family:var(--fs);font-size:12.5px;cursor:pointer}.systemap-f__open:hover{background:var(--raised)}.systemap-w__spoke{cursor:pointer;outline:none}.systemap-w__hit{stroke:transparent;stroke-width:26;fill:none;pointer-events:stroke}.systemap-w__line{fill:none;stroke-width:1.5;transition:stroke-width .12s ease}.systemap-w__verb{font-family:var(--fs);font-size:11px;font-weight:500;text-anchor:middle;paint-order:stroke;stroke:var(--surface);stroke-width:5;stroke-linejoin:round;pointer-events:none}.systemap-w__name{font-family:var(--fm);font-size:11px;font-weight:600;fill:var(--ink);pointer-events:none}.systemap-w__centre rect{fill:var(--raised);stroke:var(--accent);stroke-width:1.6}.systemap-w__centre text{font-family:var(--fm);font-size:12px;font-weight:600;fill:var(--ink);text-anchor:middle}.systemap-w__spoke.peek .systemap-w__line,.systemap-w__spoke:hover .systemap-w__line,.systemap-w__spoke:focus-visible .systemap-w__line{stroke-width:3.2}.systemap-w__spoke.peek .systemap-w__name,.systemap-w__spoke:hover .systemap-w__name,.systemap-w__spoke:focus-visible .systemap-w__name{fill:var(--accent)}.systemap-w__empty{font-family:var(--fs);font-size:12px;fill:var(--ink-3);text-anchor:middle}</style></head><body>
175
175
  <header class="bar">
176
176
  <h1>systemap <span>map</span></h1>
177
- <p class="meta">A generated map of what the parts of systemap are and what they are to each other: 15 components and 3 actors, 54 flows, five layers. Facts from <code title="the commit the tree was read at">395c88b311</code>.</p>
177
+ <p class="meta">A generated map of what the parts of systemap are and what they are to each other: 15 components and 3 actors, 54 flows, five layers. Facts from <code title="the commit the tree was read at">28b68a1f65</code>.</p>
178
178
  <nav class="nav">
179
179
  <a href="#map">Map</a><a href="#components">Components</a>
180
180
  <a href="#invariants">Invariants</a>
@@ -291,7 +291,7 @@ border-top:1px solid var(--line)}
291
291
  <li id="rule-10" value="10"><span class="rules__t">Every ignored module needs a reason (tests/test_coverage.py: test_ignore_without_reason_is_a_config_error).</span>
292
292
  <span class="governs"><button type="button" class="gv" data-go="Check">Check</button> <button type="button" class="gv" data-go="Config">Config</button></span></li>
293
293
  </ol></section></main>
294
- <footer class="foot">Generated by <code>systemap</code> from <code>docs/map/map.json</code> and <code>map/model.py</code>. The facts are from <code>395c88b311</code>, the commit the tree was read at when they were extracted: the one before the commit that records them, since the facts are committed after they are read. Refresh with <code>systemap refresh</code>.</footer>
294
+ <footer class="foot">Generated by <code>systemap</code> from <code>docs/map/map.json</code> and <code>map/model.py</code>. The facts are from <code>28b68a1f65</code>, the commit the tree was read at when they were extracted: the one before the commit that records them, since the facts are committed after they are read. Refresh with <code>systemap refresh</code>.</footer>
295
295
  <script>(function(){
296
296
  var DETAIL = {"Placer":{"id":"Placer","kind":"component","region":"operate","plain":"what places the cards","does":"A first position for every card without one: regions on a two-column grid with corridors between them, in the order the search scores best (every order tried, the best routed and scored by collisions, refusals, bends and length), cards on the grid inside, ordered by barycentre sweeps over the flows. Writes the positions into map/model.py in place; with --all, lays every card out again and keeps the pinned ones.","state":"built","state_label":"built","lives":"systemap/place.py","interface":"compute(model) -> Placement; write(path, model, placement)","entry":"compute","entry_module":"systemap.place","note":"","calls_model":false,"map":null,"moved":false,"rules":[5],"edges":[3,29,30,37,38,39]},"CLI":{"id":"CLI","kind":"component","region":"operate","plain":"the commands","does":"The commands the agent runs: init, extract, check, render, figure, refresh, judgement, describe, serve, skill. Every non-zero exit names what to run next.","state":"built","state_label":"built","lives":"systemap/cli.py, systemap/__main__.py","interface":"main(argv) -> exit code: 0 current, 1 failed or stale, 2 unusable","entry":"main","entry_module":"systemap.cli","note":"","calls_model":false,"map":null,"moved":false,"rules":[],"edges":[0,1,2,3,4,5,6,7,8,9,10,11,15]},"FactsExtractor":{"id":"FactsExtractor","kind":"component","region":"gather","plain":"what reads the code","does":"Walks the package's syntax tree and writes the facts: every module, its public surface and every public name, what it imports inside and outside the package, the tests that import it, and where a run can start. Nothing anyone writes changes what it finds; systemap facts reads them back one view at a time.","state":"built","state_label":"built","lives":"systemap/extract.py, systemap/facts.py","interface":"build(cfg) -> facts; drift(fresh, stored) -> what no longer matches","entry":"build","entry_module":"systemap.extract","note":"","calls_model":false,"map":null,"moved":false,"rules":[4],"edges":[5,16,23,24,25,26,31]},"Scaffold":{"id":"Scaffold","kind":"component","region":"operate","plain":"what init writes","does":"What init writes once and never overwrites: the configuration, a starter model laid out as a grid of regions with corridors between them, the output directory, a pinned workflow.","state":"built","state_label":"built","lives":"systemap/scaffold.py","interface":"write(root, name, package, roots, ci) -> one line per file","entry":"write","entry_module":"systemap.scaffold","note":"never overwrites a file that exists: an upgrade of systemap edits nothing init wrote, so a pinned workflow is bumped by hand","calls_model":false,"map":null,"moved":false,"rules":[],"edges":[2,22]},"Config":{"id":"Config","kind":"store","region":"operate","plain":"the configuration","does":"systemap.toml, or [tool.systemap] in pyproject.toml, resolved with defaults: package roots and tests directories discovered, judgement answers kept with their reasons. Unknown keys, ignores and answers without a reason are refused.","state":"built","state_label":"built","lives":"systemap/config.py","interface":"load(root) -> Config; load_model(path) -> (MODEL, MEANING)","entry":"load","entry_module":"systemap.config","note":"","calls_model":false,"map":null,"moved":false,"rules":[9,10],"edges":[15,16,17,18,19,20,21]},"ChangeDetector":{"id":"ChangeDetector","kind":"component","region":"gather","plain":"what a branch changed","does":"Works out what a branch changes in the map's terms: which components moved, what each gained or lost on its public surface, which exported names were redefined, and how far the change reaches through imports. systemap delta reads the facts at two commits out of git and says what the change did to the map, one line per thing with its fix.","state":"built","state_label":"built","lives":"systemap/change.py, systemap/delta.py","interface":"compute(cfg, model, base, facts, head) -> change; delta.compute(cfg, model, meaning, base facts, head facts) -> Delta","entry":"compute","entry_module":"systemap.change","note":"","calls_model":false,"map":null,"moved":false,"rules":[],"edges":[6,14,17,26,27,28,32]},"Skill":{"id":"Skill","kind":"component","region":"mean","plain":"the procedure the agent follows","does":"The procedure the agent follows: extract, draft, check, judgement, render, the second pass, the stop condition, what to hand back, and the maintenance path when the code changed. A directory of plain text with references, shipped in the package.","state":"built","state_label":"built","lives":"systemap/skill.py","interface":"files() -> the skill directory; write(dir) -> the installed SKILL.md","entry":"write","entry_module":"systemap.skill","note":"","calls_model":false,"map":null,"moved":false,"rules":[2,7],"edges":[4,48]},"Figures":{"id":"Figures","kind":"component","region":"draw","plain":"a picture for a document","does":"One figure from the same generator, for a document: the whole system, a plan's reach, or a change. A .svg output is the bare drawing on its ground.","state":"built","state_label":"built","lives":"systemap/figure.py","interface":"make(cfg, model, meaning, theme, facts, mode, components, base, head, caption, layer) -> (html, collisions)","entry":"make","entry_module":"systemap.figure","note":"","calls_model":false,"map":null,"moved":false,"rules":[1],"edges":[9,13,19,28,41]},"Page":{"id":"Page","kind":"component","region":"draw","plain":"the page you open","does":"Wraps the schematic into one self-contained HTML page: the layer switch, journeys, the focus drawer, the index by region, the invariants. No fonts, scripts or images are fetched; systemap serve serves it over HTTP.","state":"built","state_label":"built","lives":"systemap/page.py","interface":"build(cfg, model, meaning, theme, facts, change) -> html","entry":"build","entry_module":"systemap.page","note":"","calls_model":false,"map":null,"moved":false,"rules":[1,8],"edges":[8,12,18,27,40,45]},"CI":{"id":"CI","kind":"actor","region":"outside","plain":"the runner that refuses","does":"Runs the check on every pull request and fails the ones that leave the map behind.","state":"actor","state_label":"outside","lives":"","interface":"","entry":"","entry_module":"","note":"","calls_model":false,"map":null,"moved":false,"rules":[],"edges":[1,47]},"Model":{"id":"Model","kind":"store","region":"mean","plain":"the map as written","does":"The schema a map is written in, and the file the agent writes in it: containers, regions, components, flows, invariants, and the meaning tables. Checks that the meaning names only what the model has, reads from the facts whether an import backs each flow (observed, external or declared), and loads the tree of maps when a card opens a map of its own.","state":"built","state_label":"built","lives":"/ (4 modules)","interface":"Model(canvas, containers, regions, components, flows, flow_kinds, invariants) and Meaning(plain, layers, relations, journeys, verbs), exported by map/model.py as MODEL and MEANING","entry":"Model","entry_module":"systemap","note":"","calls_model":false,"map":null,"moved":false,"rules":[2,3,4,5],"edges":[22,29,30,31,32,33,34,49,50,51]},"Router":{"id":"Router","kind":"component","region":"draw","plain":"what finds the routes","does":"Routes every flow orthogonally through the gutters between cards, never through a card it does not connect, never across a band it neither starts nor ends in, and seats each label where it touches nothing.","state":"built","state_label":"built","lives":"systemap/route.py","interface":"route_all(edges, cards, actors, blocks, regions, region_of, canvas) -> routes; place_labels(routes, widths, height, obstacles, canvas) -> seated labels","entry":"route_all","entry_module":"systemap.route","note":"","calls_model":false,"map":null,"moved":false,"rules":[5],"edges":[35,36,37]},"Schematic":{"id":"Schematic","kind":"component","region":"draw","plain":"what draws the map","does":"Draws the SVG: cards marked by kind, routes coloured by layer, and the interaction script that lights a clicked component's neighbours, switches readings, steps journeys, pans and zooms. The theme is one table of tokens.","state":"built","state_label":"built","lives":"systemap/schematic.py, systemap/theme.py","interface":"render(model, meaning, theme, facts) -> (svg, detail JSON)","entry":"render","entry_module":"systemap.schematic","note":"","calls_model":false,"map":null,"moved":false,"rules":[1,3],"edges":[24,33,35,38,40,41,42,43]},"Maintainer":{"id":"Maintainer","kind":"actor","region":"outside","plain":"the person who confirms","does":"Reads the judgement answers, corrects the model where it disagrees, and commits the map.","state":"actor","state_label":"outside","lives":"","interface":"","entry":"","entry_module":"","note":"","calls_model":false,"map":null,"moved":false,"rules":[6],"edges":[45,50,53]},"Agent":{"id":"Agent","kind":"actor","region":"outside","plain":"the agent that draws","does":"Reads the skill, runs the commands, writes the model, fixes what the check names, and answers what the judgement asks.","state":"actor","state_label":"outside","lives":"","interface":"","entry":"","entry_module":"","note":"","calls_model":false,"map":null,"moved":false,"rules":[6,7],"edges":[0,44,46,48,49,52]},"Judgement":{"id":"Judgement","kind":"component","region":"keep","plain":"what asks","does":"The list the agent acts on and the maintainer confirms: single-module components, odd folds, flows without a sentence, thin layers, entry points without a journey, imports across a boundary with no flow, model SDK imports outside an agent. Answered lines, singly or by family, are suppressed and counted. A report; a gate only with --strict. Before any of it, systemap suggest proposes a first grouping from the facts, to argue with.","state":"built","state_label":"built","lives":"systemap/judgement.py, systemap/suggest.py","interface":"run(model, meaning, facts, sdks) -> lines; exit 1 with --strict while a line is open","entry":"run","entry_module":"systemap.judgement","note":"","calls_model":false,"map":null,"moved":false,"rules":[2,6,7],"edges":[10,21,25,51,52,53]},"Check":{"id":"Check","kind":"component","region":"keep","plain":"what refuses","does":"Every rule that refuses a lie: coverage, entry, interface, placement, routes, labels and card text, type size, meaning, wheels, and stale outputs. Each failure prints its fix; exit 1 on the first.","state":"built","state_label":"built","lives":"systemap/check.py","interface":"run(model, meaning, theme, facts, ignores) -> Result; stale(cfg, model, meaning, theme) -> lines","entry":"run","entry_module":"systemap.check","note":"","calls_model":false,"map":null,"moved":false,"rules":[4,5,6,10],"edges":[7,12,13,14,20,23,34,42,46,47]},"Describe":{"id":"Describe","kind":"component","region":"keep","plain":"what the picture shows","does":"What a look at the picture would tell an agent that cannot look: cards per region, bends and length per edge worst first, seats used per gutter, cards and edges per reading. A description, never a rule.","state":"built","state_label":"built","lives":"systemap/describe.py","interface":"run(model, meaning, theme, facts) -> lines; always exit 0","entry":"run","entry_module":"systemap.describe","note":"","calls_model":false,"map":null,"moved":false,"rules":[],"edges":[11,36,39,43,44]},"_meta":{"layers":[{"id":"structure","label":"Structure","question":"What are the parts, and where does each sit?","sub":"every component inside its region and container; no edges","colour":"var(--l-structure)","tag":"var(--lt-structure)","derived":true},{"id":"system","label":"System context","question":"Who and what is outside, and how does it reach in?","sub":"the actors, and every edge that crosses the boundary","colour":"var(--l-system)","tag":"var(--lt-system)","derived":true},{"id":"data","label":"Data flow","question":"What moves, and where does it go?","sub":"an artifact moves: a file, a record, a message, a response","colour":"var(--l-data)","tag":"var(--lt-data)","derived":false},{"id":"control","label":"Control flow","question":"Who drives whom?","sub":"one part invokes, schedules or drives another: a call, a command, an event","colour":"var(--l-control)","tag":"var(--lt-control)","derived":false},{"id":"judge","label":"What judges","question":"Where does the meaning come from, and who confirms it?","sub":"the skill, the agent, the model, the judgement, the maintainer","colour":"var(--l-judge)","tag":"var(--lt-judge)","derived":false}],"readings":{"structure":{"edges":[],"subjects":["Agent","CI","Maintainer","CLI","Scaffold","Config","FactsExtractor","ChangeDetector","Placer","Skill","Model","Router","Schematic","Page","Figures","Check","Judgement","Describe"]},"system":{"edges":[0,1,44,45,46,47,48,49,50,52,53],"subjects":["Agent","CI","Maintainer"]},"data":{"edges":[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],"subjects":[]},"control":{"edges":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"subjects":[]},"judge":{"edges":[48,49,50,51,52,53],"subjects":[]}},"reading":"","edges":[{"from":"Agent","to":"CLI","art":"commands","kind":"control","layer":"control","out":"runs","in":"is run by","say":"The agent drives everything through the commands; it never imports the package.","evidence":"external","mechanism":"","evidence_says":"external: outside the code"},{"from":"CI","to":"CLI","art":"check","kind":"control","layer":"control","out":"runs","in":"is run by","say":"The workflow init writes runs the check on every push and pull request.","evidence":"external","mechanism":"","evidence_says":"external: outside the code"},{"from":"CLI","to":"Scaffold","art":"init","kind":"control","layer":"control","out":"runs","in":"is run by","say":"init hands the scaffold the project's name and package roots; the scaffold writes what does not exist yet.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"CLI","to":"Placer","art":"place","kind":"control","layer":"control","out":"runs","in":"is run by","say":"place computes a position for every card without one, or with --all for every card not pinned, and writes it into the model; describe places them for one look without writing.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"CLI","to":"Skill","art":"init, skill","kind":"control","layer":"control","out":"runs","in":"is run by","say":"init installs the skill directory beside the project, and skill reinstalls it; an upgrade of the package refreshes it.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"CLI","to":"FactsExtractor","art":"extract","kind":"control","layer":"control","out":"runs","in":"is run by","say":"extract, and the first step of refresh, run the extractor over the configured package roots.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"CLI","to":"ChangeDetector","art":"--base, delta","kind":"control","layer":"control","out":"runs","in":"is run by","say":"render --base and figure --base ask the change detector what a git range moved; delta asks it what a change did to the map, from the facts at two commits.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"CLI","to":"Check","art":"check","kind":"control","layer":"control","out":"runs","in":"is run by","say":"check runs every rule and prints each failure with its fix; refresh runs the same rules before it renders.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"CLI","to":"Page","art":"render","kind":"control","layer":"control","out":"runs","in":"is run by","say":"render, and refresh, build the page from the facts and the model.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"CLI","to":"Figures","art":"figure","kind":"control","layer":"control","out":"runs","in":"is run by","say":"figure draws one figure to a file; refresh draws every figure the configuration lists.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"CLI","to":"Judgement","art":"judgement","kind":"control","layer":"control","out":"runs","in":"is run by","say":"judgement prints the list to act on or answer; with --strict it exits 1 while a line is open.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"CLI","to":"Describe","art":"describe","kind":"control","layer":"control","out":"runs","in":"is run by","say":"describe draws the map the way the page does and prints what the drawing shows, in numbers.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Check","to":"Page","art":"render to compare","kind":"control","layer":"control","out":"compares","in":"is compared by","say":"The stale rule renders the page from the stored facts and compares it with the committed one.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Check","to":"Figures","art":"render to compare","kind":"control","layer":"control","out":"compares","in":"is compared by","say":"The stale rule renders every configured figure and compares it with the committed one.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Check","to":"ChangeDetector","art":"interface rule","kind":"control","layer":"control","out":"lends its rule to","in":"judges by","say":"delta judges an interface name that vanished by the check's own interface rule, so the two cannot disagree about what a line may start with.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Config","to":"CLI","art":"settings","kind":"data","layer":"data","out":"configures","in":"is configured by","say":"The configuration tells the commands where the packages, the model and the output are.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Config","to":"FactsExtractor","art":"package roots","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The package roots and the tests directory say what the extractor walks.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Config","to":"ChangeDetector","art":"roots, tests dir","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The package roots and the tests directory say which changed files are modules and which are tests.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Config","to":"Page","art":"name, paths","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The page takes its title, its footer paths and the label for actors outside every region from the configuration.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Config","to":"Figures","art":"figures table","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The [[figures]] table says which figures refresh regenerates, in which mode, to which file.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Config","to":"Check","art":"ignores","kind":"data","layer":"data","out":"excuses modules to","in":"takes ignores from","say":"An ignore with a reason takes a module out of the coverage rule, on record.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Config","to":"Judgement","art":"answers, sdks","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The answers under [judgement] suppress the lines they cover, and [facts] model_sdks extends or reduces the SDK list the model sdk line reads.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Scaffold","to":"Model","art":"starter","kind":"data","layer":"data","out":"writes the first","in":"starts as","say":"The starter model is the smallest map that passes every check; the agent replaces its words.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"FactsExtractor","to":"Check","art":"map.json","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The facts are what the check judges coverage, entry and staleness against.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"FactsExtractor","to":"Schematic","art":"map.json","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The facts file, written by extract and read back by every command, says which modules each card stands for and which flows an import backs.","evidence":"observed","mechanism":"facts file","evidence_says":"observed by: facts file"},{"from":"FactsExtractor","to":"Judgement","art":"entry points","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The entry points in the facts are what the judgement asks journeys for; the imports are what it walks for crossing edges.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"FactsExtractor","to":"ChangeDetector","art":"surfaces","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The change detector reads a module's public surface with the extractor's parser, on both sides of the diff, so the two cannot disagree about what a module exports.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"ChangeDetector","to":"Page","art":"change map","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"With --base, the page carries a change map: what moved, what it reached.","evidence":"declared","mechanism":"","evidence_says":"declared: no import behind it"},{"from":"ChangeDetector","to":"Figures","art":"reach","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"A change figure marks what a git range changed; a reach figure marks what a plan will.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Model","to":"Placer","art":"cards, flows","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The placer reads the cards, their regions and the flows between them; a card with x and y is kept, and with --all only a pinned card is.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Placer","to":"Model","art":"positions","kind":"data","layer":"data","out":"places","in":"is placed by","say":"The placer writes the positions, the boxes and the canvas into map/model.py in place; the rest of the file is kept byte for byte.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Model","to":"FactsExtractor","art":"claims","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The extractor reads the model's claims to warn about a module the tree no longer has.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Model","to":"ChangeDetector","art":"claims","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The change detector attributes changed modules to the components that claim them.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Model","to":"Schematic","art":"topology, meaning","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The model is the topology the schematic draws and the meaning it prints on the wheel.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Model","to":"Check","art":"model","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The check reads the model's own contradictions first; nothing else is judged until they are gone.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Router","to":"Schematic","art":"routes, labels","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The router hands back the routes and the seated labels, and reports what could not be placed cleanly, with the fix that applies.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Router","to":"Describe","art":"gutters, seats","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The router's gutters and seat counts are what describe reports per gutter.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Router","to":"Placer","art":"routes, seats","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The placer routes every shortlisted region order with the router and the label pass, and keeps the order with the fewest label collisions, refused routes, bends and length.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Schematic","to":"Placer","art":"geometry","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The placer scores a candidate layout on the drawing's own geometry (the card boxes, the headers and empty containers as walls, what a label may not sit on) and reads the header measurements so a box it lays out holds its header.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Placer","to":"Describe","art":"region order, score","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"Describe reads the region order off the map as placed and the score of the drawing under it, and says how many orders place tried when it chose the order for the look.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Schematic","to":"Page","art":"svg, detail","kind":"data","layer":"data","out":"fills","in":"wraps","say":"The page embeds the SVG and the detail JSON the interaction script reads.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Schematic","to":"Figures","art":"svg","kind":"data","layer":"data","out":"fills","in":"wraps","say":"A figure is the same SVG in a figure element, or bare for an image.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Schematic","to":"Check","art":"geometry","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"The check renders once and reads the geometry back: routes, labels, type size, wheels.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Schematic","to":"Describe","art":"geometry","kind":"data","layer":"data","out":"feeds","in":"reads from","say":"describe renders once and reads the geometry back as a description: regions, edges, gutters, readings.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Describe","to":"Agent","art":"the picture in numbers","kind":"data","layer":"data","out":"describes to","in":"reads","say":"An agent that cannot open the page reads the picture in numbers after every refresh.","evidence":"external","mechanism":"","evidence_says":"external: outside the code"},{"from":"Page","to":"Maintainer","art":"the page","kind":"data","layer":"data","out":"is read by","in":"reads","say":"The maintainer opens the page: readings, click, journeys, pan and zoom.","evidence":"external","mechanism":"","evidence_says":"external: outside the code"},{"from":"Check","to":"Agent","art":"the fix","kind":"data","layer":"data","out":"refuses","in":"is refused by","say":"Every failure names its fix; the agent edits until coverage is complete and the layout is clean.","evidence":"external","mechanism":"","evidence_says":"external: outside the code"},{"from":"Check","to":"CI","art":"verdict","kind":"data","layer":"data","out":"answers","in":"asks","say":"Exit 1 fails the pull request; the message says what to run.","evidence":"external","mechanism":"","evidence_says":"external: outside the code"},{"from":"Skill","to":"Agent","art":"procedure","kind":"judge","layer":"judge","out":"guides","in":"follows","say":"The skill gives the agent the loop, the schema, a worked example, the second pass, and what to hand back.","evidence":"external","mechanism":"","evidence_says":"external: outside the code"},{"from":"Agent","to":"Model","art":"map/model.py","kind":"judge","layer":"judge","out":"writes","in":"is written by","say":"The agent writes map/model.py: the groupings, the flows, the sentences, the journeys, the invariants.","evidence":"external","mechanism":"","evidence_says":"external: outside the code"},{"from":"Maintainer","to":"Model","art":"corrections","kind":"judge","layer":"judge","out":"corrects","in":"is corrected by","say":"The maintainer corrects the calls they disagree with; the model is theirs once reviewed.","evidence":"external","mechanism":"","evidence_says":"external: outside the code"},{"from":"Model","to":"Judgement","art":"model","kind":"judge","layer":"judge","out":"informs","in":"reads","say":"The judgement reads the model for the calls that could have gone another way.","evidence":"observed","mechanism":"","evidence_says":"observed: an import joins them"},{"from":"Judgement","to":"Agent","art":"second-pass list","kind":"judge","layer":"judge","out":"asks","in":"answers","say":"In the second pass the agent walks every crossing import and every entry point without a journey, and changes the model or answers the line.","evidence":"external","mechanism":"","evidence_says":"external: outside the code"},{"from":"Judgement","to":"Maintainer","art":"judgement answers","kind":"judge","layer":"judge","out":"reports to","in":"confirms","say":"The maintainer reads the agent's answers, line by line; the list is mechanical to produce, so the review cannot be skipped.","evidence":"external","mechanism":"","evidence_says":"external: outside the code"}],"journeys":[{"id":"first-map","label":"The first map: systemap init, extract, a draft, check","steps":[{"acts":["Agent"],"measures":[],"edge":0,"say":"The agent runs systemap init: configuration, starter model, the workflow."},{"acts":["CLI"],"measures":[],"edge":4,"say":"init installs the skill directory beside the project; systemap skill reinstalls it later."},{"acts":["Skill"],"measures":[],"edge":48,"say":"The skill gives the agent the loop: extract, draft, check, judgement, render, second pass."},{"acts":["FactsExtractor"],"measures":[],"edge":5,"say":"systemap extract reads every module, its surface, its imports and the entry points out of the tree."},{"acts":["Agent"],"measures":[],"edge":49,"say":"The agent runs systemap suggest for a first grouping to argue with, then writes map/model.py: components, flows, one sentence per edge, a journey per entry point, and no positions."},{"acts":["Placer"],"measures":[],"edge":30,"say":"systemap place lays the regions out on a grid with corridors between them, puts every card on it, and writes the positions into the file."},{"acts":["Check"],"measures":["Check"],"edge":46,"say":"systemap check names each failure and its fix; the agent edits until coverage is N/N and the layout is clean."}]},{"id":"second-pass","label":"The second pass: judgement, then refresh","steps":[{"acts":["Agent"],"measures":[],"edge":0,"say":"The agent runs systemap judgement."},{"acts":["Judgement"],"measures":[],"edge":25,"say":"The judgement walks the imports in the facts for edges the model lacks, and the entry points for journeys it lacks."},{"acts":["Judgement"],"measures":["Judgement"],"edge":52,"say":"One line per crossing import, per entry point without a journey, per thin layer: the agent changes the model or answers the line."},{"acts":["Agent"],"measures":[],"edge":49,"say":"The agent adds the missed edges, regroups what was grouped by directory, and reruns check; a full pass that changes nothing is the stop."},{"acts":["Page"],"measures":[],"edge":8,"say":"systemap refresh renders the page and every configured figure; systemap describe says what the picture shows, and systemap serve opens the page for anyone who can look."},{"acts":["Judgement"],"measures":["Maintainer"],"edge":53,"say":"The agent answers the remaining judgement lines in systemap.toml, under [judgement] answered, singly or by family; judgement --strict exits 0, and the maintainer reads the answers and commits docs/map."}]},{"id":"refactor","label":"A refactor moves a module: the maintenance path","steps":[{"acts":["CI"],"measures":[],"edge":1,"say":"A pull request moves a module; the workflow runs systemap delta --base against the base branch and posts what the change did to the map as one comment."},{"acts":["ChangeDetector"],"measures":[],"edge":6,"say":"The detector reads the facts at both commits out of git, never from the working copy, and names the card that still names the old path, with the rename that fixes it."},{"acts":["Check"],"measures":["CI"],"edge":47,"say":"The job fails while a line needs a person; the comment names each fix, so the map is maintained in the pull request that changed the code."},{"acts":["Agent"],"measures":[],"edge":0,"say":"The agent follows the maintenance path: acts on the delta's lines alone, never redrawing the map, then runs refresh, check and judgement --strict, and commits docs/map."},{"acts":["Page"],"measures":["Maintainer"],"edge":45,"say":"The maintainer reads the page: the moved part is where the code now says it is."}]}],"regions":[{"id":"operate","label":"OPERATE","box":[250.0,80.0,380.0,204.0],"ids":["CLI","Scaffold","Config","Placer"]},{"id":"gather","label":"GATHER","box":[678.0,80.0,190.0,204.0],"ids":["FactsExtractor","ChangeDetector"]},{"id":"mean","label":"MEAN","box":[250.0,320.0,190.0,204.0],"ids":["Skill","Model"]},{"id":"draw","label":"DRAW","box":[678.0,320.0,380.0,204.0],"ids":["Router","Schematic","Page","Figures"]},{"id":"keep","label":"KEEP TRUE","box":[250.0,560.0,190.0,296.0],"ids":["Check","Judgement","Describe"]}],"rules":[{"n":1,"text":"No counts of code or tests anywhere on the page: the map explains what the system does, not how much of it there is (README, Principles).","ids":["Figures","Page","Schematic"]},{"n":2,"text":"A component is something a reader would point at and name; a module is not a part (README, Principles).","ids":["Judgement","Model","Skill"]},{"n":3,"text":"Edges carry the relationships; prose is for emphasis (README, Principles).","ids":["Model","Schematic"]},{"n":4,"text":"The map draws what exists today: every module a component names is in the facts, and nothing on the map is a plan (README, Principles).","ids":["Check","FactsExtractor","Model"]},{"n":5,"text":"Positions are fixed in the model, written once by systemap place or by hand, and the checker decides, so the same system always draws the same picture (README, Principles).","ids":["Check","Model","Placer","Router"]},{"n":6,"text":"The agent authors, the checker refuses, the person reviews (README, Principles).","ids":["Agent","Check","Judgement","Maintainer"]},{"n":7,"text":"The map is built in passes; the second pass is the point (README, Principles).","ids":["Agent","Judgement","Skill"]},{"n":8,"text":"The page fetches nothing and depends on nothing (README, opening).","ids":["Page"]},{"n":9,"text":"An unknown configuration key is refused, never ignored (src/systemap/config.py, load: 'unknown key').","ids":["Config"]},{"n":10,"text":"Every ignored module needs a reason (tests/test_coverage.py: test_ignore_without_reason_is_a_config_error).","ids":["Check","Config"]}],"kinds":["judge"],"states":{"built":18},"evidence":{"observed":42,"external":11,"declared":1},"collisions":[],"notes":[],"headers":[{"id":"outside","kind":"container","box":[24,22,152.4,54]},{"id":"systemap","kind":"container","box":[238,22,360.8,42]},{"id":"operate","kind":"region","box":[256,85,150.0,24]},{"id":"gather","kind":"region","box":[684,85,150.0,24]},{"id":"mean","kind":"region","box":[256,325,150.0,24]},{"id":"draw","kind":"region","box":[684,325,150.0,24]},{"id":"keep","kind":"region","box":[256,565,150.0,24]}]}};
297
297
  var PAL = {"ink": "var(--ink)"};