@locus-forge/locus-map 0.2.2-dev.20261206.g5e970d2 → 0.3.0

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 (156) hide show
  1. package/dist/assets/{abnfDiagram-VCTEODGH-JiCO6vo-.js → abnfDiagram-VCTEODGH-YtlnkH6t.js} +1 -1
  2. package/dist/assets/{ar-SA-G6X2FPQ2-BdzEBmp3.js → ar-SA-G6X2FPQ2-BH5AlOAp.js} +1 -1
  3. package/dist/assets/{architectureDiagram-5GKGNRK7-D7T_vJwe.js → architectureDiagram-5GKGNRK7-DKYw7IM8.js} +1 -1
  4. package/dist/assets/{az-AZ-76LH7QW2-BQ_SoVB7.js → az-AZ-76LH7QW2-DoI4xcyq.js} +1 -1
  5. package/dist/assets/{bg-BG-XCXSNQG7-DlH1olUf.js → bg-BG-XCXSNQG7-CS9_2dp-.js} +1 -1
  6. package/dist/assets/{blockDiagram-I7D4REHJ-DPz0LEjY.js → blockDiagram-I7D4REHJ-FelDwD1I.js} +1 -1
  7. package/dist/assets/{bn-BD-2XOGV67Q-CFIZU06C.js → bn-BD-2XOGV67Q-CoIu5tTK.js} +1 -1
  8. package/dist/assets/{c4Diagram-7LVT6UL2-B6uCi0Ol.js → c4Diagram-7LVT6UL2-Bh7h9IHP.js} +1 -1
  9. package/dist/assets/{ca-ES-6MX7JW3Y-Bpe3kOti.js → ca-ES-6MX7JW3Y-DAEHzf3H.js} +1 -1
  10. package/dist/assets/channel-DXsl7ag_.js +1 -0
  11. package/dist/assets/{chunk-2Q5K7J3B-DTWRWhpx.js → chunk-2Q5K7J3B-CgUOCDxa.js} +1 -1
  12. package/dist/assets/{chunk-5VM5RSS4-Dfr1HUAN.js → chunk-5VM5RSS4-B97oha-s.js} +1 -1
  13. package/dist/assets/{chunk-F27PBJKO-D_IVoCIK.js → chunk-F27PBJKO-BQGqI2Ej.js} +1 -1
  14. package/dist/assets/{chunk-IMKFNOWR-Boa_chn8.js → chunk-IMKFNOWR-C_sOeFT_.js} +1 -1
  15. package/dist/assets/{chunk-JWPE2WC7-RaK8jzc2.js → chunk-JWPE2WC7-DG5n2owX.js} +1 -1
  16. package/dist/assets/{chunk-POPQ4Y6H-D7xOpv6O.js → chunk-POPQ4Y6H-Y-h3THrr.js} +1 -1
  17. package/dist/assets/{chunk-SVP7TREG-XvJsx1jt.js → chunk-SVP7TREG-Dn6yBHtF.js} +1 -1
  18. package/dist/assets/{chunk-TICWLB2K-DZCVWmZG.js → chunk-TICWLB2K-Cb_yWOVI.js} +1 -1
  19. package/dist/assets/{chunk-XXDRQBXY-Djk-REAy.js → chunk-XXDRQBXY-QE51OqTj.js} +1 -1
  20. package/dist/assets/classDiagram-ZZMXUADV-DLyWZtYF.js +1 -0
  21. package/dist/assets/classDiagram-v2-VYDZK3BY-Cb3mb68m.js +1 -0
  22. package/dist/assets/{cose-bilkent-JH36ORCC-D6XaIbtG.js → cose-bilkent-JH36ORCC-Bt7ZI9S1.js} +1 -1
  23. package/dist/assets/{cs-CZ-2BRQDIVT-BdzgSHdJ.js → cs-CZ-2BRQDIVT-BKZzkx2M.js} +1 -1
  24. package/dist/assets/{cynefin-OW5HDTMX-BMTkMDG1.js → cynefin-OW5HDTMX-n6-BmECj.js} +1 -1
  25. package/dist/assets/{cynefinDiagram-5FMLGOSQ-C2s5i9h9.js → cynefinDiagram-5FMLGOSQ-Bq2km1fZ.js} +1 -1
  26. package/dist/assets/{d3-scale-BMIMKl27.js → d3-scale-C9oJHYFk.js} +1 -1
  27. package/dist/assets/{da-DK-5WZEPLOC-Bj-GFWHU.js → da-DK-5WZEPLOC-DWJm1_Yl.js} +1 -1
  28. package/dist/assets/{dagre-GXQ25YYZ-CMT8wlz0.js → dagre-GXQ25YYZ-D9EJj_nK.js} +1 -1
  29. package/dist/assets/{de-DE-XR44H4JA-JmpondAB.js → de-DE-XR44H4JA-D-5dMJXD.js} +1 -1
  30. package/dist/assets/{diagram-S7CK7UJ4-DU1blS3M.js → diagram-S7CK7UJ4-DX3qZf_H.js} +1 -1
  31. package/dist/assets/{diagram-UQ7AKVKN-0lWi4KDV.js → diagram-UQ7AKVKN-lODsxrZ9.js} +1 -1
  32. package/dist/assets/{diagram-VSXAHHWV-CrseWrhn.js → diagram-VSXAHHWV-B48xz8Xq.js} +1 -1
  33. package/dist/assets/{diagram-VX7I27RA-C5BMS8Ql.js → diagram-VX7I27RA-Dms2AfBa.js} +1 -1
  34. package/dist/assets/{diagram-Z3DM3KII-Cc3vq6b8.js → diagram-Z3DM3KII-BnwZBeJA.js} +1 -1
  35. package/dist/assets/{ebnfDiagram-PWID7BFC-ZF78imma.js → ebnfDiagram-PWID7BFC-OtcCvaIU.js} +1 -1
  36. package/dist/assets/{el-GR-BZB4AONW-BFslUpdm.js → el-GR-BZB4AONW-BZVA3YVN.js} +1 -1
  37. package/dist/assets/{engines-BtEtIBXt.js → engines-DPbXorS1.js} +1 -1
  38. package/dist/assets/{erDiagram-RLTQ6QDP-CjPjDn2i.js → erDiagram-RLTQ6QDP-Cnh8Gn9f.js} +1 -1
  39. package/dist/assets/{es-ES-U4NZUMDT-B0ezBTxQ.js → es-ES-U4NZUMDT-DKJIfS-2.js} +1 -1
  40. package/dist/assets/{eu-ES-A7QVB2H4-DP_gx2kf.js → eu-ES-A7QVB2H4-LHCF7lHc.js} +1 -1
  41. package/dist/assets/{fa-IR-HGAKTJCU-BuT1ELty.js → fa-IR-HGAKTJCU-CMtLvHxY.js} +1 -1
  42. package/dist/assets/{fi-FI-Z5N7JZ37-BAu_Cj7n.js → fi-FI-Z5N7JZ37-CUIzm5UM.js} +1 -1
  43. package/dist/assets/{flowDiagram-HODETNUW-yqPGWNdd.js → flowDiagram-HODETNUW-lneiCvFi.js} +1 -1
  44. package/dist/assets/{fr-FR-RHASNOE6-OF1CpgtN.js → fr-FR-RHASNOE6-DTJ2WS73.js} +1 -1
  45. package/dist/assets/{ganttDiagram-EL5Y4UJY-zUY5je2K.js → ganttDiagram-EL5Y4UJY-B2aJ2MDb.js} +1 -1
  46. package/dist/assets/{gitGraphDiagram-WWUBYQGX-oWrs7wy0.js → gitGraphDiagram-WWUBYQGX-C74V3MFm.js} +1 -1
  47. package/dist/assets/{gl-ES-HMX3MZ6V-CkJ47l98.js → gl-ES-HMX3MZ6V-BP8M0fQQ.js} +1 -1
  48. package/dist/assets/{he-IL-6SHJWFNN-D7CecRlh.js → he-IL-6SHJWFNN-BMd-Q0PW.js} +1 -1
  49. package/dist/assets/{hi-IN-IWLTKZ5I-CGlW2X-h.js → hi-IN-IWLTKZ5I-Ct52OkX5.js} +1 -1
  50. package/dist/assets/{hu-HU-A5ZG7DT2-Dq_n_tbp.js → hu-HU-A5ZG7DT2-NfIL6Jfo.js} +1 -1
  51. package/dist/assets/{id-ID-SAP4L64H-CotwO_06.js → id-ID-SAP4L64H-Osl6P1wb.js} +1 -1
  52. package/dist/assets/{index-CdVc9Lmz.js → index-CyQSsku0.js} +181 -181
  53. package/dist/assets/{index-Cv-tTxNC.css → index-DR6sd54W.css} +1 -1
  54. package/dist/assets/{index-VaWCb9bx.js → index-VfiAlFSM.js} +5 -5
  55. package/dist/assets/{infoDiagram-27XIBGKW-CYzIkNFW.js → infoDiagram-27XIBGKW-BjDMKD-X.js} +1 -1
  56. package/dist/assets/{ishikawaDiagram-5VMMS53U-DkgUsuk5.js → ishikawaDiagram-5VMMS53U-DjrBmz8f.js} +1 -1
  57. package/dist/assets/{it-IT-JPQ66NNP-h97o81us.js → it-IT-JPQ66NNP-vT-EYZw5.js} +1 -1
  58. package/dist/assets/{ja-JP-DBVTYXUO-M6EVfh0o.js → ja-JP-DBVTYXUO-DexyPC4p.js} +1 -1
  59. package/dist/assets/{journeyDiagram-3NMN7TZE-CuKkNrJy.js → journeyDiagram-3NMN7TZE-Bs5RL4Ef.js} +1 -1
  60. package/dist/assets/{kaa-6HZHGXH3-DUy85zzz.js → kaa-6HZHGXH3-0BLUFlXY.js} +1 -1
  61. package/dist/assets/{kab-KAB-ZGHBKWFO-ChL-fKtk.js → kab-KAB-ZGHBKWFO-ByGN5_Fc.js} +1 -1
  62. package/dist/assets/{kanban-definition-UXKFOSKX-DkOxt3kf.js → kanban-definition-UXKFOSKX-DgcopnbA.js} +1 -1
  63. package/dist/assets/{kk-KZ-P5N5QNE5-DY6ucSGD.js → kk-KZ-P5N5QNE5-DlK-wQWu.js} +1 -1
  64. package/dist/assets/{km-KH-HSX4SM5Z-BAaS4014.js → km-KH-HSX4SM5Z-BZ75967_.js} +1 -1
  65. package/dist/assets/{ko-KR-MTYHY66A-D-r3mJ1R.js → ko-KR-MTYHY66A-C-copauZ.js} +1 -1
  66. package/dist/assets/{ku-TR-6OUDTVRD-Dk1GCoOP.js → ku-TR-6OUDTVRD-CNqY-Uj4.js} +1 -1
  67. package/dist/assets/{layout-DtNEGI4_.js → layout-B8D2HGrb.js} +1 -1
  68. package/dist/assets/{lt-LT-XHIRWOB4-3Z2Ui1VZ.js → lt-LT-XHIRWOB4-BopE_XJX.js} +1 -1
  69. package/dist/assets/{lv-LV-5QDEKY6T-Bg59rOkR.js → lv-LV-5QDEKY6T--7hU3JSZ.js} +1 -1
  70. package/dist/assets/{mindmap-definition-YA3MSWOX-Dcs8eV7p.js → mindmap-definition-YA3MSWOX-DYOVTEyE.js} +1 -1
  71. package/dist/assets/{mr-IN-CRQNXWMA-DepTOG29.js → mr-IN-CRQNXWMA-DydjVI2G.js} +1 -1
  72. package/dist/assets/{my-MM-5M5IBNSE-4KqL4Tav.js → my-MM-5M5IBNSE-D6ewM-EV.js} +1 -1
  73. package/dist/assets/{nb-NO-T6EIAALU-5YWO_l3W.js → nb-NO-T6EIAALU--iqOwj15.js} +1 -1
  74. package/dist/assets/{nl-NL-IS3SIHDZ-QlAndkM2.js → nl-NL-IS3SIHDZ-Bnhl_SmS.js} +1 -1
  75. package/dist/assets/{nn-NO-6E72VCQL-BscwhEDW.js → nn-NO-6E72VCQL-CIx7sLAQ.js} +1 -1
  76. package/dist/assets/{oc-FR-POXYY2M6-k7bYbSQj.js → oc-FR-POXYY2M6-DWt5a8Ow.js} +1 -1
  77. package/dist/assets/{pa-IN-N4M65BXN-jxBFwrWj.js → pa-IN-N4M65BXN-BW3LNure.js} +1 -1
  78. package/dist/assets/{pegDiagram-XKGWAZYB-zM-VZA3r.js → pegDiagram-XKGWAZYB-ixSY_9-e.js} +1 -1
  79. package/dist/assets/{pica-CsWQ4DPU.js → pica-Dn0N8xAP.js} +1 -1
  80. package/dist/assets/{pieDiagram-E7YTZNPT-C60FE0D8.js → pieDiagram-E7YTZNPT-BbCRV6Qi.js} +1 -1
  81. package/dist/assets/{pl-PL-T2D74RX3-be8atU_l.js → pl-PL-T2D74RX3-7nXJ8SiV.js} +1 -1
  82. package/dist/assets/{pt-BR-5N22H2LF-CSE0O2fj.js → pt-BR-5N22H2LF-DKGGof4J.js} +1 -1
  83. package/dist/assets/{pt-PT-UZXXM6DQ-5rnYJhy1.js → pt-PT-UZXXM6DQ-DCLEXuhk.js} +1 -1
  84. package/dist/assets/{quadrantDiagram-AXDQQJYC-DyH84hx6.js → quadrantDiagram-AXDQQJYC-Bvh_H4wg.js} +1 -1
  85. package/dist/assets/{railroadDiagram-O6MQD6OU-DCrJgP9s.js → railroadDiagram-O6MQD6OU-DHC3neQ8.js} +1 -1
  86. package/dist/assets/{requirementDiagram-BXWQKSXE-C78-QlFo.js → requirementDiagram-BXWQKSXE-DuCkl3u1.js} +1 -1
  87. package/dist/assets/{ro-RO-JPDTUUEW-Gh6EgC27.js → ro-RO-JPDTUUEW-Cwf4k3Ou.js} +1 -1
  88. package/dist/assets/{ru-RU-B4JR7IUQ-BUWESZhq.js → ru-RU-B4JR7IUQ-sZF6fySs.js} +1 -1
  89. package/dist/assets/{sankeyDiagram-P5KCCOFB-D_MOkKEs.js → sankeyDiagram-P5KCCOFB-1ELTqwtI.js} +1 -1
  90. package/dist/assets/{sequenceDiagram-WJ2MYXX4-BeQbHZRB.js → sequenceDiagram-WJ2MYXX4-BK8Ou8Dz.js} +1 -1
  91. package/dist/assets/{si-LK-N5RQ5JYF-C9pnvQMf.js → si-LK-N5RQ5JYF-DmYhXIqO.js} +1 -1
  92. package/dist/assets/{sizeCapture-INFHLROL-DUn-Mus_.js → sizeCapture-INFHLROL-BKwx3lxX.js} +1 -1
  93. package/dist/assets/{sk-SK-C5VTKIMK-FnkPBibb.js → sk-SK-C5VTKIMK-BRLu35YX.js} +1 -1
  94. package/dist/assets/{sl-SI-NN7IZMDC-Cwrqj_B9.js → sl-SI-NN7IZMDC-CMjfvJTr.js} +1 -1
  95. package/dist/assets/{stateDiagram-D77RDMKH-C3EF3jQ3.js → stateDiagram-D77RDMKH-CDwJ9XLN.js} +1 -1
  96. package/dist/assets/stateDiagram-v2-MP3YSRHH-BZjKARGY.js +1 -0
  97. package/dist/assets/{subset-shared.chunk-8ifLcT_D.js → subset-shared.chunk-DngAvf0H.js} +1 -1
  98. package/dist/assets/{subset-worker.chunk-DrNTybDR.js → subset-worker.chunk-DkH_mqr5.js} +1 -1
  99. package/dist/assets/{sv-SE-XGPEYMSR-Btz80pGx.js → sv-SE-XGPEYMSR-G4S06sbd.js} +1 -1
  100. package/dist/assets/{swimlanes-42K2YHIH-B2_kGhPA.js → swimlanes-42K2YHIH-Z9u8PDi-.js} +1 -1
  101. package/dist/assets/swimlanesDiagram-VR7AAH4N-D0kM5xmS.js +8 -0
  102. package/dist/assets/{ta-IN-2NMHFXQM-B0bWtgu1.js → ta-IN-2NMHFXQM-DgBbCQ8S.js} +1 -1
  103. package/dist/assets/{th-TH-HPSO5L25-DgC0yFw3.js → th-TH-HPSO5L25-o9u4fVfq.js} +1 -1
  104. package/dist/assets/{timeline-definition-24CTP7MA-Bu0W3Mcy.js → timeline-definition-24CTP7MA-BNgrm1r_.js} +1 -1
  105. package/dist/assets/{tr-TR-DEFEU3FU-C9Mmy6ri.js → tr-TR-DEFEU3FU-BqqSdzoL.js} +1 -1
  106. package/dist/assets/{uk-UA-QMV73CPH-rxEnqB_i.js → uk-UA-QMV73CPH-Dna46aia.js} +1 -1
  107. package/dist/assets/{vennDiagram-4TSXK5OY-63JTeOph.js → vennDiagram-4TSXK5OY-CHwUI40M.js} +1 -1
  108. package/dist/assets/{vi-VN-M7AON7JQ-DOVa-vAT.js → vi-VN-M7AON7JQ-CbKRBQPB.js} +1 -1
  109. package/dist/assets/{wardleyDiagram-VM6X3IG4-Bct0TRuC.js → wardleyDiagram-VM6X3IG4-KB0xBjXX.js} +1 -1
  110. package/dist/assets/{xychartDiagram-S5SC5T6Z-C21zgvSM.js → xychartDiagram-S5SC5T6Z-B3LOQLL-.js} +1 -1
  111. package/dist/assets/{zh-CN-LNUGB5OW-MyifsmQ8.js → zh-CN-LNUGB5OW-BFjA6n_2.js} +1 -1
  112. package/dist/assets/{zh-HK-E62DVLB3-Cp55UViv.js → zh-HK-E62DVLB3-BoTU6iS7.js} +1 -1
  113. package/dist/assets/{zh-TW-RAJ6MFWO-DMy6SZap.js → zh-TW-RAJ6MFWO-DB4kdpOS.js} +1 -1
  114. package/dist/index.html +2 -2
  115. package/docs/LOCAL-DOCUMENT.md +36 -83
  116. package/docs/VIEWER-LAUNCH.md +24 -27
  117. package/docs/adr/ADR-002-2026-12-03-project-selector/ADR-002-2026-12-03-project-selector.md +1 -1
  118. package/docs/adr/ADR-005-2026-12-04-named-libraries/ADR-005-2026-12-04-named-libraries.md +1 -1
  119. package/package.json +1 -1
  120. package/scripts/lib/library-directory.mjs +1 -1
  121. package/scripts/lib/map-build-invocation.mjs +5 -1
  122. package/scripts/lib/map-viewer-server.mjs +148 -20
  123. package/scripts/lib/project-catalog.mjs +250 -95
  124. package/scripts/lib/project-registry.mjs +151 -47
  125. package/scripts/lib/view-args.mjs +25 -45
  126. package/scripts/locus-map.mjs +12 -11
  127. package/scripts/open-map.mjs +18 -8
  128. package/skills/locus-map/SKILL.md +6 -4
  129. package/skills/locus-map/references/checks.md +1 -1
  130. package/skills/locus-map/references/component-checkpoint.md +4 -4
  131. package/skills/locus-map/references/folder.md +2 -2
  132. package/skills/locus-map/references/selection.md +2 -2
  133. package/skills/locus-map/references/visual-composition.md +20 -20
  134. package/skills/locus-map-draft/SKILL.md +76 -76
  135. package/skills/locus-map-draft/references/divergence-and-formats.md +58 -107
  136. package/skills/locus-map-primitives/SKILL.md +11 -14
  137. package/skills/locus-map-primitives/assets/batch/README.md +2 -2
  138. package/skills/locus-map-primitives/assets/batch/build.mjs +1 -1
  139. package/skills/locus-map-primitives/assets/batch/{project.json → topic.json} +13 -20
  140. package/src/bundle/projectClient.js +5 -3
  141. package/src/main.jsx +25 -1
  142. package/src/viewer/ControlIcon.jsx +2 -0
  143. package/src/viewer/ProjectLocation.jsx +25 -7
  144. package/src/viewer/ProjectRail.jsx +9 -2
  145. package/src/viewer/ProjectViewChainViewer.jsx +35 -16
  146. package/src/viewer/SketchCanvas.jsx +124 -15
  147. package/src/viewer/ViewChainViewer.jsx +14 -5
  148. package/src/viewer/ViewerSettings.jsx +208 -0
  149. package/src/viewer/projectContents.js +248 -55
  150. package/src/viewer/projectNavigation.js +27 -3
  151. package/src/viewer/viewChain.css +52 -1
  152. package/dist/assets/channel-DB3atv5o.js +0 -1
  153. package/dist/assets/classDiagram-ZZMXUADV-CzvsXoj_.js +0 -1
  154. package/dist/assets/classDiagram-v2-VYDZK3BY-HxwJpdPt.js +0 -1
  155. package/dist/assets/stateDiagram-v2-MP3YSRHH-CVQHmIvK.js +0 -1
  156. package/dist/assets/swimlanesDiagram-VR7AAH4N-C1rOmrkT.js +0 -8
@@ -1,10 +1,13 @@
1
1
  # Choose the visual structure for Locus Map
2
2
 
3
- Locus Map (`locus-map view`) opens both Draw-authored `.excalidraw` visuals (charts, matrices,
4
- freeform analytical boards, timelines, and any of the 53 genres in `@locus-forge/locus-draw`) and
5
- connected semantic `.locus-map.json` maps. Architecture diagrams are one entry route, not a
6
- mandatory lens for non-architectural topics such as ML experiments, incident reviews, or research
7
- comparisons.
3
+ Locus Map (`locus-map view`) opens both connected semantic `.locus-map.json` maps and Draw-authored
4
+ `.excalidraw` visuals (charts, matrices, freeform analytical boards, timelines, and any of the 53
5
+ genres in `@locus-forge/locus-draw`). Architecture diagrams are one entry route, not a mandatory
6
+ lens for non-architectural topics such as ML experiments, incident reviews, or research comparisons.
7
+
8
+ For viewer launch, `~/.locus-map/projects.toml`, and `:8181` reuse, see `docs/VIEWER-LAUNCH.md`.
9
+ For nested topic folders, `drafts/`, excluded folders, and optional `topic.json`, see
10
+ `docs/LOCAL-DOCUMENT.md`.
8
11
 
9
12
  ## Step 0: route by reader need before `selection.md`
10
13
 
@@ -13,9 +16,9 @@ Choose the structure and deliverable before entering [selection](selection.md) o
13
16
 
14
17
  | What the reader needs | Where to start | Delivered format in Locus Map |
15
18
  | --- | --- | --- |
16
- | Open-ended topic, competing layouts, or early feedback before full work | `skills/locus-map-draft/SKILL.md` | 1–4 quick draft previews (`.mjs`/`.puml`/`.map.json`) → `chosen-direction.md` → route below |
17
- | Quantitative charts, matrices, timelines, freeform notes, or mixed analytical board | Author with installed Draw (below) | `<topic>.excalidraw` in `.locus-map/TOPIC/` |
18
- | Connected map with clickable Inspector cards, `--details-files` Markdown/LaTeX/HTML, `readingTree` / `readingTable`, or `project.json` `↘` links | Continue sections 1–6 of `skills/locus-map/SKILL.md` via [selection](selection.md) | `<topic>.locus-map.json` (`source` route, `claims: "unverified"`) |
19
+ | Open-ended topic, competing layouts, or early feedback before full work | `skills/locus-map-draft/SKILL.md` | 1–3 interactive dummy templates in `<topic>/drafts/<variant>/<variant>.locus-map.json` → `chosen-direction.md` → route below |
20
+ | Quantitative charts, matrices, timelines, or freeform visual-only board (no Inspector cards) | Author with installed Draw (below) | `<topic>.excalidraw` in `.locus-map/TOPIC/` |
21
+ | Connected map with clickable Inspector cards, `--details-files` Markdown/LaTeX/HTML, `readingTree` / `readingTable`, or `topic.json` `↘` links | Continue sections 1–6 of `skills/locus-map/SKILL.md` via [selection](selection.md) | `<topic>.locus-map.json` (`source` route, `claims: "unverified"`) |
19
22
  | Verified claims, physical `component` containment, ordered `sequence`, guarded `decision`, or ArchiMate subset | `skills/locus-map-research/SKILL.md` | `<topic>.locus-map.json` (R0–R7 accepted build) |
20
23
  | Local project task tracking | [Author a project task map](task-maps.md) | `<map>.locus-map.json` (`--tasks-dir`) |
21
24
 
@@ -25,11 +28,11 @@ Pick the visual lens from the reader's question rather than defaulting to boxes
25
28
 
26
29
  | Reader's question | Archetype and first screen | Primary tooling |
27
30
  | --- | --- | --- |
28
- | What do we know so far and which hypotheses compete? | **Exploration board**: freeform text, excerpts, framed columns ("Observations", "Hypotheses", "Next check") | Draw JS (`Scene`, `textBox`, panels) → `.excalidraw` |
31
+ | What do we know so far and which hypotheses compete? | **Exploration board**: freeform text, excerpts, framed columns ("Observations", "Hypotheses", "Next check") | Draw JS (`Scene`, `textBox`, panels) → `.excalidraw`, or `editorial-v4` `.locus-map.json` when Inspector cards are needed |
29
32
  | How large is the difference and where does it occur? | **Measurement canvas**: shared-axis charts (`bar`, `line`, `scatter`, `heatmap`, `waterfall`, `radar`) + exact summary table | Installed Draw catalog (`Measurements and comparisons`) → `.excalidraw` |
30
- | What is the conclusion and what supports it? | **Conclusion & evidence breakdown**: thesis, main finding, and caveat on canvas; protocols, LaTeX, PNG figures, and HTML reports on click | Draw board `.excalidraw`, or `editorial-v4` `.locus-map.json` + `--details-files` |
33
+ | What is the conclusion and what supports it? | **Conclusion & evidence breakdown**: thesis, main finding, and caveat on canvas; protocols, LaTeX, PNG figures, and HTML reports on click | `editorial-v4` `.locus-map.json` + `--details-files` (or Draw `.excalidraw` when visual-only) |
31
34
  | How does the system, workflow, or decision work? | **Mechanism & architecture**: components, responsibilities, guards, stores, boundaries | Existing `locus-map` `source` or `locus-map-research` R0–R7 → `.locus-map.json` |
32
- | Where should each audience start and drill down? | **Topic navigator**: foldable `readingTree`, docked `readingTable`, or `project.json` catalog, optionally paired beside a `.excalidraw` metrics board | `.locus-map.json` (`readingTree` / `readingTable` / `project.json`) + sibling `.excalidraw` |
35
+ | Where should each audience start and drill down? | **Topic navigator**: nested topic folders, foldable `readingTree`, docked `readingTable`, or optional `topic.json` | `.locus-map.json` (`readingTree` / `readingTable` / `topic.json`) + optional sibling `.excalidraw` |
33
36
 
34
37
  One topic folder (for example, an ML experiment) may combine both formats side-by-side: a semantic
35
38
  `experiment.locus-map.json` for methodology and Inspector reports alongside a `metrics.excalidraw`
@@ -54,16 +57,13 @@ chart board in **Contents**.
54
57
  [deliverable updates](folder.md#updates): if an existing `<topic>.excalidraw` differs from the
55
58
  last published build (for example, after **Save drawing** edits) or its origin is unknown, keep
56
59
  the rebuilt file as a candidate in `artifacts/` until the user chooses which version to keep.
57
- 6. View the delivered board in **Contents**: if the target library is already open in a running
58
- workspace viewer, click **Refresh library**. Otherwise launch `locus-map view` (workspace mode,
59
- without `--local`); if `<target-project>` is not registered in `~/.locusmap/projects.toml` or
60
- port `8181` is already in use, launch with a temporary `LOCUS_MAP_PROJECTS_FILE` and `--port 0`
61
- (`docs/VIEWER-LAUNCH.md`).
60
+ 6. View the delivered board in **Contents** using the standard launch workflow in `docs/VIEWER-LAUNCH.md`
61
+ (`http://127.0.0.1:8181/?cwd=<target-project>` + **Refresh library**, or `locus-map view --local`
62
+ for an unregistered checkout).
62
63
 
63
64
  ## Current viewer boundaries
64
65
 
65
- - `.excalidraw` boards open, edit, and save natively in `locus-map view` workspace mode, but they
66
- do not expose the semantic Inspector panel, `--details-files`, or `project.json` `↘` targets.
67
- - `locus-map view --local` and `locus-map view FILE.excalidraw` do not currently discover or open
68
- standalone `.excalidraw` files (`docs/VIEWER-LAUNCH.md`).
66
+ - Saved `.excalidraw` boards open in **View** mode by default with a **View / Edit** toggle and
67
+ save natively in workspace and `--local` launches, but they do not expose the semantic Inspector
68
+ panel, `--details-files`, or `topic.json` `↘` targets.
69
69
  - Never claim a Draw board or a `--source` draft map has R7-verified source claims.
@@ -1,95 +1,95 @@
1
1
  ---
2
2
  name: locus-map-draft
3
- description: "Formalizes an open-ended visual request, builds 1–4 quick draft variants in Locus Map for early component feedback, and hands the chosen visual reference off to authoring or research."
3
+ description: "Formalizes an open-ended visual request, builds 1–3 annotated dummy templates (wireframe + source contract) as interactive .locus-map.json canvases for early layout feedback, and routes the approved format onward."
4
4
  ---
5
5
 
6
6
  # locus-map-draft
7
7
 
8
- Explore visual structure and component composition in Locus Map before full research or delivery.
8
+ Agree on visual structure and field provenance in Locus Map before full research or delivery.
9
9
  Use `locus-map` (`MAP_BIN`), `npx @locus-forge/locus-map`, or checkout `scripts/locus-map.mjs`.
10
10
  Resolve `productRoot` and `drawSkillPath` from `"$MAP_BIN" doctor --json`.
11
- This skill grants no agent-launch authority. When the host permits subagents, run 1–4 draft workers
12
- in parallel; otherwise author the selected variants sequentially, guided by
13
- [divergence axes and draft formats](references/divergence-and-formats.md).
11
+ This skill grants no agent-launch authority. When the host permits subagents, run 1–3 draft workers
12
+ in parallel; otherwise author sequentially, guided by
13
+ [divergence axes and dummy templates](references/divergence-and-formats.md).
14
+
15
+ Viewer launch, `~/.locus-map/projects.toml`, and `:8181` reuse are owned by `docs/VIEWER-LAUNCH.md`.
16
+ Nested topic folders, `drafts/`, excluded build folders, and optional `topic.json` are owned by
17
+ `docs/LOCAL-DOCUMENT.md`.
14
18
 
15
19
  ## 0. Decide whether drafting helps
16
20
 
17
- Skip drafting when the reader question and visual form are already clear: route directly to
21
+ Skip drafting when layout and visual form are already fixed: route directly to
18
22
  `skills/locus-map/SKILL.md` or `skills/locus-map-research/SKILL.md`.
19
- Use `locus-map-draft` when the request is open-ended (such as an ML experiment, comparison, or
20
- problem breakdown), competing visual forms fit, or the user wants to review quick drafts first.
23
+ Use `locus-map-draft` when the layout is open (e.g., an ML overview, multi-direction board, or
24
+ hierarchy), competing Canvas compositions fit, or the user wants dummy templates first.
21
25
 
22
- ## 1. Formalize the problem and request
26
+ ## 1. Formalize framing without scanning the full repo
23
27
 
24
28
  Record the verbatim request, `reader-question`, `audience`, `outputLanguage`, `Must show`, known
25
- `provided-facts`, and unverified placeholder zones (`missing-or-unverified`) in
29
+ `provided-facts`, and template slots (`missing-or-unverified`) in
26
30
  `TARGET_PROJECT/.locus-map/TOPIC/artifacts/drafts/SESSION_ID/session.md` (or
27
- `~/.locusmap/maps/.drafts/SESSION_ID/session.md` when no project directory is given).
28
- Ask only about unknowns that materially change the candidate structures.
29
- If source files exist, only the coordinator runs one light intake scan so workers do not re-read
30
- the repository repeatedly.
31
-
32
- ## 2. Design 1–4 structural variants
33
-
34
- Pick 1–4 variants (`1` to validate a single complex layout, `2` for a binary trade-off, `3`
35
- default for open problems, `4` maximum) using
36
- [divergence axes and draft formats](references/divergence-and-formats.md).
37
- Design divergence before writing scripts: every variant must differ on at least two structural
38
- axes (inference lens, visual grammar, unit of meaning, or delivery format), never cosmetic color
39
- swaps.
40
-
41
- ## 3. Author quick drafts and inspect PNGs
42
-
43
- Put each variant in an isolated directory `v1-SLUG/` .. `vN-SLUG/` with its authored source
44
- (`draft.mjs`, `draft.puml`, or schema-v1 `draft.map.json`), editable output, `draft.png`, and a
45
- short `summary.md`. Build or export each pass into `vN-SLUG/builds/PASS/` (skipped by library scans
46
- and avoiding `OUTPUT_EXISTS`), then copy the inspected output to `vN-SLUG/draft.excalidraw` (or
47
- `vN-SLUG/draft.locus-map.json`) and `vN-SLUG/draft.png`.
48
-
49
- - **Draw (`draft.mjs` or `draft.puml`) → `draft.excalidraw` + `draft.png`:** default for charts,
50
- matrices, freeform notes, analytical or ML experiment boards, and prototypes across Draw's 53
51
- catalog genres resolved from `drawSkillPath`.
52
- - **Lightweight Map source (`"$MAP_BIN" build --source`) → `draft.locus-map.json` + `draft.png`:**
53
- use when clickable Inspector cards, `--details-files` reading materials, a foldable
54
- `readingTree`, or `readingTable` (via schema-v1 `draft.map.json`) are central to the concept.
55
-
56
- Keep drafts fast and scannable: 5–10 core blocks, at most 1–2 render passes, a visible canvas
57
- marker (`DRAFT · CONCEPT V1` in `outputLanguage`), and `[example]` / `[TBD]` tags on unverified
58
- placeholders (avoid angle-bracket tags, which trigger Draw `INVALID_TEXT`). Visually inspect every
59
- `draft.png` before presenting it.
60
-
61
- ## 4. Review drafts in Locus Map and gather feedback
62
-
63
- Show every rendered `draft.png` inline where the chat supports images, alongside a short trade-off
64
- table (what stays visible on canvas, what moves to cards/reports, what is lost, and target route).
65
- Preview all drafts together in Locus Map (`artifacts/` stays hidden from normal library scans; see
66
- `docs/LOCAL-DOCUMENT.md` and
67
- [previewing drafts in Locus Map](references/divergence-and-formats.md#preview-drafts-in-locus-map)):
68
-
69
- ```sh
70
- LOCUS_MAP_PROJECTS_FILE=DIR/artifacts/drafts/SESSION_ID/.viewer.toml \
71
- "$MAP_BIN" view --port 0
72
- ```
73
-
74
- Collect feedback on which variant or specific components to keep, drop, or combine.
31
+ `~/.locus-map/maps/TOPIC/artifacts/drafts/SESSION_ID/session.md` when no project directory is given).
32
+ **Save tokens:** do NOT read hundreds of cards or code files during drafting; read at most top-level
33
+ entry docs or ask only about unknowns that materially change the template layout.
34
+
35
+ ## 2. Design 1–3 annotated dummy templates
36
+
37
+ Pick 1–3 Canvas candidates (`1` to validate one layout, `2` for a focused trade-off, `3` default)
38
+ using [divergence axes and dummy templates](references/divergence-and-formats.md).
39
+ **Dummy-template rule (wireframe + source contract):** annotate each card/section slot with
40
+ **what goes there**, **where it comes from (`source`)**, **who/how populates it**, and **what opens
41
+ on click** (keep at most one short format example). Do NOT dump real tables or long prose on drafts.
42
+ Do NOT enable `readingTable` unless a table view was explicitly asked: keep Canvas as the primary
43
+ surface. Every pair of candidates must differ in layout archetype or visual density.
44
+
45
+ ## 3. Author interactive `.locus-map.json` drafts and inspect PNGs
46
+
47
+ Place active drafts under `TARGET_PROJECT/.locus-map/TOPIC/drafts/VARIANT_SLUG/` (never inside
48
+ `artifacts/` and never using generic `draft.*` filenames):
49
+
50
+ - **Default format (`.locus-map.json`):** author `VARIANT_SLUG.mjs` (or `.puml` / `.map.json`)
51
+ generating a schema-v1 map with `claims: "unverified"`, a descriptive `model.title`, `page`
52
+ declared on-canvas, visible `DRAFT · CONCEPT` badge, and `--details-files` dummy Markdown slot
53
+ contracts under `VARIANT_SLUG/materials/`. Build into `VARIANT_SLUG/builds/1/` (skipped by
54
+ library scans), visually inspect the PNG, and copy the bundle and PNG to
55
+ `VARIANT_SLUG/VARIANT_SLUG.locus-map.json` and `VARIANT_SLUG/VARIANT_SLUG.png`.
56
+ Keeping `VARIANT_SLUG.mjs` beside the bundle automatically enables **Source** (`Open source in Zed`).
57
+ - **Explicit visual-only chart exception (`.excalidraw`):** use Draw → `VARIANT_SLUG.excalidraw`
58
+ only when the user explicitly requests a non-semantic chart board (`heatmap`, `waterfall`, `radar`,
59
+ `sankey`) with no clickable Inspector cards.
60
+ - Add an optional `TARGET_PROJECT/.locus-map/TOPIC/topic.json` (e.g., `{ "version": 1, "title": "..." }`)
61
+ and optional `drafts/topic.json` (`order`) if you want a custom topic title or fixed variant order.
62
+ - Use `[slot ← source]` / `[TBD]` tags (never angle-bracket tags, which fail `INVALID_TEXT`).
63
+
64
+ ## 4. Preview in Locus Map and gather feedback
65
+
66
+ Show every `VARIANT_SLUG.png` inline beside a short trade-off table (Canvas layout, density,
67
+ click-detail contract, and target route).
68
+
69
+ Preview through the standard workspace viewer on `8181` (never create `.viewer.toml` and never pass
70
+ `LOCUS_MAP_PROJECTS_FILE` or `--port 0`; see `docs/VIEWER-LAUNCH.md`):
71
+ - If `TARGET_PROJECT` is registered in `~/.locus-map/projects.toml` and `8181` is running, open
72
+ `http://127.0.0.1:8181/?cwd=TARGET_PROJECT&map=TOPIC/drafts/VARIANT_SLUG/VARIANT_SLUG.locus-map.json`
73
+ (or click **Refresh library**).
74
+ - If `TARGET_PROJECT` is unregistered, either suggest adding its `[[projects]]` stanza to
75
+ `~/.locus-map/projects.toml` or run `locus-map view TOPIC` / `locus-map view --local`.
76
+
77
+ Ask which template (or component combination) to lock before filling real repository data.
75
78
 
76
79
  ## 5. Lock the visual reference and route onward
77
80
 
78
- Save the chosen composition, component feedback, and grounding checklist in `chosen-direction.md`
79
- using the [chosen-direction handoff template](assets/chosen-direction.md).
80
- **Evidence firewall:** drafts express visual intent only. Never cite draft files in `facts.md`,
81
- `citations.json`, `sourceBindings`, `--snapshot-documents`, or final `--details-files`, and never
82
- promote a draft directly as a verified map.
83
-
84
- Route the approved reference into the matching downstream flow (verified architecture review is one
85
- branch, not mandatory):
86
-
87
- - **Draw-authored visual in Locus Map (`.mjs`/`.puml` → `.excalidraw`):** replace placeholders with
88
- real data, charts, and copy via `skills/locus-map/SKILL.md` and deliver into `.locus-map/TOPIC/`.
89
- - **Connected semantic map (`.locus-map.json`):** continue in `skills/locus-map/SKILL.md`
90
- (`source` route), transferring `Request (verbatim)`, `Must show`, `View choice`, and
91
- `Orientation` into `artifacts/handoff.md` and verifying every claim against real sources.
92
- - **Verified source-backed research (`skills/locus-map-research/SKILL.md`):** pass only the
93
- verbatim framing into R0; withhold draft layouts from R1–R5 to avoid confirmation bias; supply
94
- `chosen-direction.md` at R6 (or only `duties: ["authorBuild"]` in Pi). If real sources contradict
95
- the draft layout, sources prevail and return the conflict to the user.
81
+ Save the approved composition, slot contracts, and grounding checklist in
82
+ `TARGET_PROJECT/.locus-map/TOPIC/artifacts/drafts/SESSION_ID/chosen-direction.md` using the
83
+ [chosen-direction handoff template](assets/chosen-direction.md). Once the final map is delivered,
84
+ move `TARGET_PROJECT/.locus-map/TOPIC/drafts/` to `TARGET_PROJECT/.locus-map/TOPIC/archive/drafts/`
85
+ so finished topics stay clean in **Contents**.
86
+
87
+ **Evidence firewall:** dummy templates express visual structure only. Never cite any file under
88
+ `drafts/` or `archive/` in `facts.md`, `citations.json`, `sourceBindings`, `--snapshot-documents`,
89
+ or final `--details-files`, and never promote a draft directly as a verified map.
90
+
91
+ Route the approved template into the matching downstream flow (full repo reading happens here):
92
+ - **Interactive semantic map (`.locus-map.json`):** populate via `skills/locus-map/SKILL.md` (`source`).
93
+ - **Explicit Draw chart visual (`.excalidraw`):** populate via `skills/locus-map/SKILL.md`.
94
+ - **Verified source-backed research (`skills/locus-map-research/SKILL.md`):** pass verbatim framing
95
+ to R0, withhold drafts from R1–R5, and supply `chosen-direction.md` only at R6 (`duties: ["authorBuild"]`).
@@ -1,127 +1,78 @@
1
- # Divergence axes, draft formats, and Locus Map preview
1
+ # Divergence axes and dummy templates
2
2
 
3
- Use this reference during `locus-map-draft` to pick the right number of variants, enforce real
4
- structural diversity, preview drafts in Locus Map without polluting the main library, and preserve
5
- the evidence boundary.
3
+ Use this reference during `locus-map-draft` to pick the right number of template candidates, keep
4
+ drafts as lightweight annotated dummy wireframes (without reading full repositories upfront), and
5
+ keep Canvas primary (without hijacking it with `readingTable`).
6
6
 
7
- ## Choose the number of drafts (N = 1..4)
7
+ For viewer launch and `projects.toml`, see `docs/VIEWER-LAUNCH.md`.
8
+ For nested topic folders, `drafts/`, excluded directories, and optional `topic.json`, see
9
+ `docs/LOCAL-DOCUMENT.md`.
10
+ For choosing between `.locus-map.json` and visual-only `.excalidraw` charts, see
11
+ `skills/locus-map/references/visual-composition.md`.
12
+
13
+ ## Choose the number of drafts (N = 1..3, max 4)
8
14
 
9
15
  | Count | When to use | Typical scenario |
10
16
  | --- | --- | --- |
11
- | `0` (skip) | Reader question and visual form are already clear | Explicit C4 diagram request, targeted chart, or feedback revision of an existing map. Route directly to `skills/locus-map/SKILL.md` or `skills/locus-map-research/SKILL.md`. |
12
- | `1` | Structure is plausible, but layout density or framing needs quick validation | Confirming one non-standard board composition before collecting full details or running research. |
13
- | `2` | Exactly one clear design trade-off competes | Process flow vs. metrics matrix, or single dense Draw canvas vs. connected Map graph with Inspector. |
14
- | `3` (default) | Open-ended request with an understandable domain | Covers the main space cleanly: 1) flow or story, 2) measurements or comparison, 3) structure or decisions. |
15
- | `4` (max) | Broad multi-faceted topic or explicit request for 4 options | Hard ceiling: more than four images overwhelm side-by-side comparison and strain local browser renders. |
16
-
17
- **Single-agent fallback:** when subagents are unavailable or disallowed, keep the selected count N
18
- (`1–4`, defaulting to `2–3` when the user did not request a specific number), generate the variants
19
- sequentially in isolated subfolders, and check each new script against `session.md` so later
20
- variants do not repeat earlier layouts.
21
-
22
- ## Four structural divergence axes
23
-
24
- Do not ask multiple workers to "visualize X your own way" with identical prompts; that converges
25
- on nearly identical box-and-arrow diagrams with cosmetic color differences. Design divergence upfront
26
- by requiring every pair of concepts to differ on at least two structural axes:
17
+ | `0` (skip) | Layout and card schema are already agreed | Explicit C4 diagram, targeted chart, or revision of an existing map. Route directly to `skills/locus-map/SKILL.md` or `skills/locus-map-research/SKILL.md`. |
18
+ | `1` | One specific layout needs validation before filling data | Confirming one multi-column dummy template with slot provenance before scanning ~200 files. |
19
+ | `2` | Two layout archetypes compete | Compact side-by-side outliner vs. structured multi-column card grid (both `.locus-map.json`). |
20
+ | `3` (default) | Open layout choice for a multi-block report or overview | Three distinct Canvas layouts using the same dummy-template contract (e.g., WBS direction columns, compact status lists / foldable `readingTree`, and 4-column semantic grid with areas). |
21
+ | `4` (max) | Explicit user request for 4 options | Hard ceiling: more than four images overwhelm side-by-side comparison. |
22
+
23
+ **Single-agent fallback:** when subagents are unavailable or disallowed, author `1–3` candidates
24
+ sequentially in isolated subfolders under `TOPIC/drafts/VARIANT_SLUG/` so each candidate tests
25
+ a distinct layout archetype rather than a cosmetic color swap.
26
+
27
+ ## Annotated dummy-template rule (save tokens, show provenance)
28
+
29
+ During drafting, do **not** read hundreds of source files or replace the user's review with finished
30
+ data-dense dashboards unless the user explicitly asked for real slices:
31
+
32
+ 1. **Label every slot with its contract:** on each card, branch, or section block, write
33
+ `[What goes here ← source path or field · who/how fills it]` (plus at most 1 brief format hint),
34
+ and attach the full slot specification in clickable Inspector Markdown under `materials/`.
35
+ 2. **Keep Canvas compact and multi-column:** for multiple directions or categories, place branches
36
+ **side-by-side** (e.g., 3–4 columns) instead of one long vertical scroll column.
37
+ 3. **Always declare `page` on-canvas:** declare `page` (`title`, `eyebrow`) so every template opens
38
+ flush in the unified viewer chrome without extra HTML heading shifts.
39
+ 4. **Never substitute Canvas with `readingTable`:** `readingTable` defaults to `defaultMode: "table"`,
40
+ which hides the Canvas behind a full-screen table. Do **not** add `readingTable` during drafting
41
+ unless the user explicitly asks for a table-first view (if requested alongside a canvas, set
42
+ `defaultMode: "canvas"` when Canvas should open first).
43
+
44
+ ## Three structural divergence axes
45
+
46
+ Require candidates to differ on at least two structural axes (never cosmetic colors), while keeping
47
+ all candidates in interactive `.locus-map.json` by default:
27
48
 
28
49
  | Axis | Contrasting choices |
29
50
  | --- | --- |
30
- | 1. Inference lens | Mechanism / flow ("how data moves") vs. comparison ("what improved and why") vs. chronology / causality ("what changed over time") vs. ownership / structure ("who owns what") |
31
- | 2. Visual grammar | Quantitative chart or matrix (`heatmap`, `waterfall`, `line`, `scatter`, `quadrant`) vs. freeform board (`Scene`, `textBox`, frames) vs. connected card graph (`editorial-v4`, `c4-reference-v1`; `c4-modern-v2` opt-in only) vs. ordered interaction or timeline (`sequence`, `timeline`, `story-map`) |
32
- | 3. Unit of meaning | Pipeline steps vs. hypotheses and findings vs. metric slices vs. software components or decisions |
33
- | 4. Delivery surface & route | Self-contained `.excalidraw` visual via Draw (`locus-map`) vs. clickable `.locus-map.json` with Inspector reading materials vs. R0–R7 verified map (`locus-map-research`) |
34
-
35
- ### Worked example: four variants for an ML experiment
36
-
37
- 1. **Experiment discussion board** (`draft.mjs` → `.excalidraw`): left column holds hypothesis and
38
- success criteria; center shows slice behavior and anonymized error examples; right side frames
39
- competing explanations and next checks.
40
- 2. **Methodology verification map** (`draft.puml` / `draft.map.json` → `.locus-map.json`,
41
- `editorial-v4`): shows split → threshold tuning → evaluation with an explicit caveat on canvas,
42
- attaching LaTeX formulas, split dates, PNG figures, and static HTML reports in Inspector via
43
- `--details-files`.
44
- 3. **Metrics comparison canvas** (`draft.mjs` or `draft.puml` → `.excalidraw`): pairs headline
45
- deltas with a weekly trend and a slice `heatmap` or additive `waterfall`, composed with Draw and
46
- `embedSvg`.
47
- 4. **Topic index** (`draft.map.json` / `project.json` preview): splits overview from per-topic
48
- detail views when stakeholders revisit data, thresholds, and error slices independently.
51
+ | 1. Layout archetype | Multi-column WBS direction tree (`grid` columns + vertical chains) vs. compact side-by-side status lists / foldable `readingTree` vs. 4-column semantic grid with grouped `areas` (`editorial-v4`, `c4-reference-v1`; `c4-modern-v2` opt-in only) |
52
+ | 2. Visual density | Compact single-line pills/rows (`badge` rollups + status tones) vs. slim annotated cards vs. structured multi-slot cards with Inspector deep-dives |
53
+ | 3. Detail depth on click | Short inline slot note on card + full template Markdown checklist (`--details-files`) vs. linked subtopic drill-downs (`topic.json` `links`) vs. foldable branch overview (`readingTree`) |
49
54
 
50
55
  ## Draft worker brief and budget
51
56
 
52
- - Put each worker in its own folder `vN-SLUG/` with zero shared mutable files.
53
- - Export or build each render pass into a fresh `vN-SLUG/builds/PASS/` directory (`builds/` is
54
- skipped by library discovery and prevents `OUTPUT_EXISTS` / `OUTPUT_OVERLAPS_INPUT`), then copy
55
- the inspected scene/bundle and PNG to `vN-SLUG/draft.excalidraw` (or `vN-SLUG/draft.locus-map.json`)
56
- and `vN-SLUG/draft.png`.
57
+ - Put each candidate in `TOPIC/drafts/VARIANT_SLUG/` with zero shared mutable files:
58
+ - `VARIANT_SLUG.mjs` (or `.puml` / `.map.json`) — authored generator/source (auto-bound to **Source** in Zed)
59
+ - `VARIANT_SLUG.locus-map.json` — built interactive map with descriptive `model.title` (never `draft.*`)
60
+ - `VARIANT_SLUG.png` — inspected render
61
+ - `materials/` — dummy Markdown slot contracts + `materials.json` (skipped by library scan)
62
+ - `builds/1/` — build output directory (skipped by library scan; avoids `OUTPUT_EXISTS`)
57
63
  - Pass the shared Framing Packet (verbatim request, audience, `outputLanguage`, `Must show`,
58
- `provided-facts`, `missing-or-unverified`), the assigned concept's four axes, and a short
59
- anti-clone list of the other concepts.
60
- - Keep drafts lean: 5–10 core blocks, 1–2 render passes, visible `DRAFT · CONCEPT V1` (etc.) canvas
61
- badge, and `[example]` / `[TBD]` markers on unverified values. Avoid angle-bracket tokens, which
62
- trigger Draw `INVALID_TEXT` and R5–R7 HTML-tag checks.
63
- - Inspect every `draft.png` directly before presenting it. If 1 of the N workers fails to render,
64
- present the completed drafts and report the failed concept separately rather than blocking.
65
-
66
- ## Format selection: Draw vs lightweight Map source
67
-
68
- - **Draw (`draft.mjs` or `draft.puml`) → `draft.excalidraw` + `draft.png`**: resolve
69
- `@locus-forge/locus-draw/skill` via `drawSkillPath` from `"$MAP_BIN" doctor --json`. Read its
70
- `references/diagram-types.md`, `references/javascript-authoring.md`, and
71
- `references/javascript-layout.md`. Draw splits its 53 catalog categories across JS API
72
- (`heatmap`, `waterfall`, `radar`, `sankey`, custom `Scene` + `nodeCard` + `embedSvg`) and
73
- PlantUML transfer (`bar`, `line`, `scatter`, `quadrant`, `timeline`, `story-map`, etc.); follow
74
- the chosen catalog row's actual authoring language. Export into `vN-SLUG/builds/1/` and copy
75
- `scene.excalidraw` and `scene.png` to `vN-SLUG/draft.excalidraw` and `vN-SLUG/draft.png`.
76
- - **Lightweight Map source (`"$MAP_BIN" build --source`) → `draft.locus-map.json` + `draft.png`**:
77
- produces a `semantic` card graph (`draft`, `claims: "unverified"`). Use `draft.puml` for standard
78
- cards, or schema-v1 `draft.map.json` when JSON-only features such as `readingTree` or
79
- `readingTable` (`docs/DIAGRAM-SOURCE.md`) are central. Build into `vN-SLUG/builds/1/`, then copy
80
- the bundle and PNG to `vN-SLUG/draft.locus-map.json` and `vN-SLUG/draft.png`. Omit
81
- `citations.json`, `--record-for`, and viewer move/save/reopen checks during drafting.
82
- - **Current workspace limits (`docs/LOCAL-DOCUMENT.md`, `docs/VIEWER-LAUNCH.md`)**: `.excalidraw`
83
- sketches edit and save natively in workspace mode, but have no Inspector panel and cannot serve
84
- as `project.json` `↘` targets yet. Do not prototype a `sequence` or `component` research map
85
- with `build --source`; sketch its structure in Draw and note that full Inspector support uses
86
- `skills/locus-map-research/SKILL.md`.
87
-
88
- ## Preview drafts in Locus Map
89
-
90
- Drafts under `artifacts/drafts/SESSION_ID/` are automatically excluded from normal library scans
91
- because `artifacts/` is skipped (`docs/LOCAL-DOCUMENT.md`). To let the user inspect, pan, and
92
- move components across both `.excalidraw` and `.locus-map.json` drafts in one viewer window without
93
- touching `~/.locusmap/projects.toml` or port `8181`, write a hidden `.viewer.toml` inside the
94
- session folder:
95
-
96
- ```toml
97
- [[projects]]
98
- name = "Drafts: TOPIC"
99
- folder = "."
100
- ```
101
-
102
- Launch with:
103
-
104
- ```sh
105
- LOCUS_MAP_PROJECTS_FILE=DIR/artifacts/drafts/SESSION_ID/.viewer.toml \
106
- "$MAP_BIN" view --port 0
107
- ```
108
-
109
- Because workspace registry mode enables sketch discovery alongside `.locus-map.json` bundles
110
- (`docs/VIEWER-LAUNCH.md`) while skipping `builds/` subfolders, every `vN-SLUG/draft.*` appears once
111
- in **Contents**. When a user edits a draft in the viewer:
112
-
113
- - For a `.excalidraw` sketch, they click **Save drawing**; read back `vN-SLUG/draft.excalidraw` as
114
- layout guidance for the final build.
115
- - For a `.locus-map.json` draft, they click **Save chain file**; read back
116
- `vN-SLUG/draft.locus-map.json` as layout guidance for the final build.
64
+ `provided-facts`, `missing-or-unverified`), the assigned axes, and an anti-clone note.
65
+ - Keep drafts lean: 1–2 render passes, visible `DRAFT · CONCEPT` badge, and `[slot ← source]` / `[TBD]`
66
+ tags. Avoid angle-bracket tokens, which trigger Draw `INVALID_TEXT` and R5–R7 HTML-tag checks.
67
+ - Omit `citations.json`, `--record-for`, and move/save/reopen checks during drafting.
68
+ - Inspect every `VARIANT_SLUG.png` directly before presenting it.
117
69
 
118
70
  ## Evidence firewall
119
71
 
120
- 1. Never cite any draft source, scene, or placeholder number inside `facts.md`, `citations.json`,
72
+ 1. Never cite any file under `drafts/` or `archive/` inside `facts.md`, `citations.json`,
121
73
  `sourceBindings`, or R4 `sources`, and never pass draft files or `chosen-direction.md` through
122
74
  `--snapshot-documents` or final `--details-files`.
123
75
  2. Never rename or copy a draft `.locus-map.json` into the topic root as a finished deliverable.
124
76
  3. On `skills/locus-map-research/SKILL.md`, keep draft artifacts out of R1–R5 source investigation;
125
77
  only R0 receives the verbatim request framing and R6 receives `chosen-direction.md`. In native
126
- Pi runs (`locus-map-compact`), restrict any draft layout guidance to `duties: ["authorBuild"]`
127
- so `researchAuthor` stays unbiased.
78
+ Pi runs (`locus-map-compact`), restrict draft layout guidance to `duties: ["authorBuild"]`.
@@ -15,8 +15,8 @@ Resolve product paths below from `productRoot` in `locus-map doctor --json`. Its
15
15
  | Add a step, directed relation or note | Edit the Draw-authored `.puml` or the admitted schema-v1 `.map.json` input in the diagram folder. Draw owns source syntax and geometry. |
16
16
  | Build a researched view | An author `.mjs` consumes the accepted packet projection. Use the research skill for source bindings and independent admission. |
17
17
  | Open or save a canvas | A delivered `.locus-map.json` contains the model, views and scenes. Viewer Save preserves presentation edits. Update facts in the source and rebuild. |
18
- | Link separate documents | A project catalog names member files, stable addresses and links. Each member keeps its own model and save boundary. |
19
- | Group project tabs | The user registry `~/.locusmap/projects.toml` names library folders. See `docs/VIEWER-LAUNCH.md`. |
18
+ | Link separate documents | Optional `topic.json` overlays links, ordering, and navigation on nested folders. Each file keeps its own model and save boundary. |
19
+ | Group project tabs | The user registry `~/.locus-map/projects.toml` names library folders. See `docs/VIEWER-LAUNCH.md`. |
20
20
  | Select supported input and family | Read the product's `docs/capabilities.json`. It lists routes, profiles and limits. |
21
21
 
22
22
  Use the library selected by the reader for delivery. The conventional project folder is `.locus-map/DIAGRAM/`.
@@ -35,21 +35,18 @@ Use [element fields and reading files](references/reading-files.md) to add a sho
35
35
  - **Within one saved document.** Each view selects existing nodes and edges from one model. A `chain.links` entry names `fromViewId`, a node/edge `trigger` there and `toViewId`.
36
36
  These links form an acyclic graph and target views. Return via the ancestor trail, sidebar or visit history.
37
37
  The ordinary `build --source` creates one semantic view. Linked views of one model use an admitted author module or canonical integration (`docs/VIEW-CHAIN.md`).
38
- - **Between saved documents.** Register the delivered files in one catalog. For a parent and child in one section, use `.locus-map/TOPIC/project.json`. Member paths resolve beside that catalog.
39
- Copy each member's `modelId` and view ID from its saved document. Bind one source `{map, view, trigger}` to one `{map, view}` with an optional `node`.
40
- A trigger belongs to its source view. An internal link on that trigger takes precedence. See the [worked catalog](assets/batch/project.json).
38
+ - **Between saved documents.** Place related subtopics directly under `.locus-map/TOPIC/SUBTOPIC/SUBTOPIC.locus-map.json`
39
+ (no `pages/` wrapper) and add an optional `.locus-map/TOPIC/topic.json` for `links`, `order`, `entry`, `models`, `sources`, or `navigation`.
40
+ Every `map` path in `topic.json` resolves relative to that folder. Bind one source `{map, view, trigger}` to one `{map, view}` with an optional `node`.
41
+ A trigger belongs to its source view. An internal link on that trigger takes precedence. See the [worked topic manifest](assets/batch/topic.json).
41
42
  - **What a destination looks like.** A linked element can show ↘ on the canvas. Hover or focus it to see **Destination diagram** and the destination name.
42
- A project target names the document, view and optional card, omitting repeated titles. Click ↘ or the named Inspector action to open it.
43
+ A topic target names the document, view and optional card, omitting repeated titles. Click ↘ or the named Inspector action to open it.
43
44
  - **Two ways back.** An authored ↘ on the child can point to one fixed parent card. The viewer's **Return to** remembers the actual source of the visit.
44
- On direct entry it looks for a matching incoming link, preferring the section entry as source for the same target. It can fall back to the section entry.
45
- For this behavior in an explicit project, keep parent and child in one contents section, as in the example. A section entry on a fresh visit has no parent to return to.
45
+ On direct entry it looks for a matching incoming link, preferring the enclosing topic entry as source for the same target. It can fall back to the topic entry.
46
+ For this behavior, keep parent and child in one topic folder, as in the example. A topic entry on a fresh visit has no parent to return to.
46
47
  The viewer uses incoming links for this lookup. An outgoing reverse link on every content card is unnecessary.
47
- - **Project contents.** By default, omit `navigation` or list only diagram pages (`{map, view}`, optionally grouped) so the sidebar reflects real canvases.
48
- Add in-page card anchors (`{map, view, node}`) to `navigation` only when the reader explicitly asks for sidebar jumps to cards inside a page;
49
- the viewer renders card anchors smaller and muted so they stay distinct from page destinations. Expanding a group shows its children in the sidebar.
50
- Use `locus-map view TOPIC` (or `locus-map view --project [TOPIC|FILE]`, or `npx @locus-forge/locus-map view ...`)
51
- from the project root; `--source-root` defaults automatically under `.locus-map/`.
52
- See `docs/LOCAL-DOCUMENT.md` and `docs/VIEWER-LAUNCH.md` for discovery and launch modes.
48
+ - **Topic contents.** Nested folders directly build **Contents**; see `docs/LOCAL-DOCUMENT.md` for `topic.json`
49
+ (`order`, `navigation`, `drafts/`) and `docs/VIEWER-LAUNCH.md` for launch and `:8181` reuse.
53
50
 
54
51
  ## Fold a branch on the canvas
55
52
 
@@ -2,14 +2,14 @@
2
2
 
3
3
  The [batch importer](run-batch.mjs) calls the [filter](accept-batch.mjs) and stores eligible rows. Run `node validation/run-batch.mjs` from either generated project to reproduce the comparison. Read it alongside the [protocol](protocol.md) and [four-row comparison](results.html). The [PlantUML intake](intake.puml) and its [JavaScript equivalent](sources.mjs) tell the same story on one canvas. The optional second canvas expands its validation rules.
4
4
 
5
- From a project with Map installed, run the [example builder](build.mjs). Use two new directories to compare the source formats. Each invocation retains the input, the build artifacts, the reading materials and the [catalog](project.json).
5
+ From a project with Map installed, run the [example builder](build.mjs). Use two new directories to compare the source formats. Each invocation retains the input, the build artifacts, the reading materials and the [topic manifest](topic.json).
6
6
 
7
7
  ```sh
8
8
  BIN="$(pwd)/node_modules/.bin/locus-map"
9
9
  EXAMPLE="$(node -p "require('node:path').join(require('node:path').dirname(require.resolve('@locus-forge/locus-map/primitives-skill')), 'assets/batch/build.mjs')")"
10
10
  node "$EXAMPLE" plantuml batch-puml
11
11
  node "$EXAMPLE" javascript batch-js
12
- "$BIN" view --project batch-puml/.locus-map/batch/project.json --source-root batch-puml
12
+ "$BIN" view batch-puml/.locus-map/batch --source-root batch-puml
13
13
  ```
14
14
 
15
15
  Open the printed address. Repeat with `batch-js` as both the project directory and original source root.
@@ -39,5 +39,5 @@ for (const source of [intake, rules]) {
39
39
  const saved = source.id + '.locus-map.json';
40
40
  await copyFile(join(build, saved), join(folder, saved));
41
41
  }
42
- await copy('project.json', join(maps, 'project.json'));
42
+ await copy('topic.json', join(maps, 'topic.json'));
43
43
  console.log('Project ready at ' + project);
@@ -1,55 +1,48 @@
1
1
  {
2
2
  "version": 1,
3
- "id": "batch-library",
3
+ "title": "Batch library",
4
4
  "entry": {
5
- "map": "intake",
5
+ "map": "intake/intake.locus-map.json",
6
6
  "view": "intake"
7
7
  },
8
- "documents": [
9
- {
10
- "id": "intake",
11
- "modelId": "intake",
12
- "path": "intake/intake.locus-map.json"
13
- },
14
- {
15
- "id": "rules",
16
- "modelId": "rules",
17
- "path": "rules/rules.locus-map.json"
18
- }
19
- ],
8
+ "order": ["intake", "rules"],
9
+ "models": {
10
+ "intake/intake.locus-map.json": "intake",
11
+ "rules/rules.locus-map.json": "rules"
12
+ },
20
13
  "links": [
21
14
  {
22
15
  "from": {
23
- "map": "intake",
16
+ "map": "intake/intake.locus-map.json",
24
17
  "view": "intake",
25
18
  "trigger": "check"
26
19
  },
27
20
  "to": {
28
- "map": "rules",
21
+ "map": "rules/rules.locus-map.json",
29
22
  "view": "rules",
30
23
  "node": "context"
31
24
  }
32
25
  },
33
26
  {
34
27
  "from": {
35
- "map": "intake",
28
+ "map": "intake/intake.locus-map.json",
36
29
  "view": "intake",
37
30
  "trigger": "store"
38
31
  },
39
32
  "to": {
40
- "map": "rules",
33
+ "map": "rules/rules.locus-map.json",
41
34
  "view": "rules",
42
35
  "node": "unique"
43
36
  }
44
37
  },
45
38
  {
46
39
  "from": {
47
- "map": "rules",
40
+ "map": "rules/rules.locus-map.json",
48
41
  "view": "rules",
49
42
  "trigger": "context"
50
43
  },
51
44
  "to": {
52
- "map": "intake",
45
+ "map": "intake/intake.locus-map.json",
53
46
  "view": "intake",
54
47
  "node": "check"
55
48
  }