@rubytech/create-maxy-code 0.1.69 → 0.1.71

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 (136) hide show
  1. package/package.json +1 -1
  2. package/payload/platform/config/brand.json +1 -0
  3. package/payload/platform/plugins/admin/hooks/__tests__/turn-completed-graph-write.test.sh +163 -102
  4. package/payload/platform/plugins/admin/hooks/turn-completed-graph-write.sh +127 -13
  5. package/payload/platform/plugins/docs/references/admin-session.md +22 -18
  6. package/payload/platform/plugins/docs/references/platform.md +4 -0
  7. package/payload/platform/plugins/memory/PLUGIN.md +9 -1
  8. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/resolve-active-vertical.test.d.ts +2 -0
  9. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/resolve-active-vertical.test.d.ts.map +1 -0
  10. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/resolve-active-vertical.test.js +116 -0
  11. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/resolve-active-vertical.test.js.map +1 -0
  12. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-loader.test.js +100 -0
  13. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-loader.test.js.map +1 -1
  14. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-validator.test.js +197 -5
  15. package/payload/platform/plugins/memory/mcp/dist/lib/__tests__/schema-validator.test.js.map +1 -1
  16. package/payload/platform/plugins/memory/mcp/dist/lib/resolve-active-vertical.d.ts +33 -0
  17. package/payload/platform/plugins/memory/mcp/dist/lib/resolve-active-vertical.d.ts.map +1 -0
  18. package/payload/platform/plugins/memory/mcp/dist/lib/resolve-active-vertical.js +44 -0
  19. package/payload/platform/plugins/memory/mcp/dist/lib/resolve-active-vertical.js.map +1 -0
  20. package/payload/platform/plugins/memory/mcp/dist/lib/schema-loader.d.ts +29 -1
  21. package/payload/platform/plugins/memory/mcp/dist/lib/schema-loader.d.ts.map +1 -1
  22. package/payload/platform/plugins/memory/mcp/dist/lib/schema-loader.js +57 -5
  23. package/payload/platform/plugins/memory/mcp/dist/lib/schema-loader.js.map +1 -1
  24. package/payload/platform/plugins/memory/mcp/dist/lib/schema-validator.d.ts +9 -0
  25. package/payload/platform/plugins/memory/mcp/dist/lib/schema-validator.d.ts.map +1 -1
  26. package/payload/platform/plugins/memory/mcp/dist/lib/schema-validator.js +36 -2
  27. package/payload/platform/plugins/memory/mcp/dist/lib/schema-validator.js.map +1 -1
  28. package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-write-emit.test.js +7 -3
  29. package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-write-emit.test.js.map +1 -1
  30. package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/profile-update-personfields-open.test.js +1 -0
  31. package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/profile-update-personfields-open.test.js.map +1 -1
  32. package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.d.ts.map +1 -1
  33. package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js +22 -11
  34. package/payload/platform/plugins/memory/mcp/dist/tools/memory-write.js.map +1 -1
  35. package/payload/platform/plugins/memory/mcp/dist/tools/profile-update.js +6 -0
  36. package/payload/platform/plugins/memory/mcp/dist/tools/profile-update.js.map +1 -1
  37. package/payload/platform/plugins/memory/references/schema-base.md +2 -2
  38. package/payload/platform/scripts/lib/read-brand-json.sh +69 -0
  39. package/payload/platform/scripts/seed-neo4j.sh +67 -8
  40. package/payload/platform/services/claude-session-manager/dist/fs-watcher.d.ts.map +1 -1
  41. package/payload/platform/services/claude-session-manager/dist/fs-watcher.js +73 -1
  42. package/payload/platform/services/claude-session-manager/dist/fs-watcher.js.map +1 -1
  43. package/payload/platform/services/claude-session-manager/dist/http-server.d.ts +8 -1
  44. package/payload/platform/services/claude-session-manager/dist/http-server.d.ts.map +1 -1
  45. package/payload/platform/services/claude-session-manager/dist/http-server.js +49 -4
  46. package/payload/platform/services/claude-session-manager/dist/http-server.js.map +1 -1
  47. package/payload/platform/services/claude-session-manager/dist/jsonl-enumerator.d.ts +5 -0
  48. package/payload/platform/services/claude-session-manager/dist/jsonl-enumerator.d.ts.map +1 -1
  49. package/payload/platform/services/claude-session-manager/dist/jsonl-enumerator.js +11 -3
  50. package/payload/platform/services/claude-session-manager/dist/jsonl-enumerator.js.map +1 -1
  51. package/payload/platform/services/claude-session-manager/dist/jsonl-tail.d.ts.map +1 -1
  52. package/payload/platform/services/claude-session-manager/dist/jsonl-tail.js +45 -20
  53. package/payload/platform/services/claude-session-manager/dist/jsonl-tail.js.map +1 -1
  54. package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts +7 -0
  55. package/payload/platform/services/claude-session-manager/dist/pty-spawner.d.ts.map +1 -1
  56. package/payload/platform/services/claude-session-manager/dist/pty-spawner.js +5 -1
  57. package/payload/platform/services/claude-session-manager/dist/pty-spawner.js.map +1 -1
  58. package/payload/platform/templates/specialists/agents/database-operator.md +5 -28
  59. package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-brochure/SKILL.md +13 -5
  60. package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-brochure/references/build.md +186 -14
  61. package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-brochure/references/registers.md +3 -2
  62. package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-brochure/references/template.html +3 -1
  63. package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-extract/SKILL.md +2 -0
  64. package/payload/premium-plugins/real-agent/plugins/brochures/skills/property-socials/SKILL.md +14 -13
  65. package/payload/server/public/assets/{admin-BPRjc4z9.js → admin-Bej-Q1IZ.js} +1 -1
  66. package/payload/server/public/assets/{architectureDiagram-Q4EWVU46-Asw7tNG5.js → architectureDiagram-Q4EWVU46-umb1qQ5e.js} +1 -1
  67. package/payload/server/public/assets/{blockDiagram-DXYQGD6D-Blvay4_b.js → blockDiagram-DXYQGD6D-C8kHw50g.js} +1 -1
  68. package/payload/server/public/assets/{brand-CwHvVF8s.css → brand-DxX912hX.css} +1 -1
  69. package/payload/server/public/assets/{c4Diagram-AHTNJAMY-C2st6jZP.js → c4Diagram-AHTNJAMY-CtKxKvPu.js} +1 -1
  70. package/payload/server/public/assets/channel-BshbIIpE.js +1 -0
  71. package/payload/server/public/assets/{chunk-336JU56O-Cp7B2yh1.js → chunk-336JU56O-_xUA1Yj-.js} +2 -2
  72. package/payload/server/public/assets/{chunk-426QAEUC-B0x3RXvj.js → chunk-426QAEUC-d_A8vQqM.js} +1 -1
  73. package/payload/server/public/assets/{chunk-4TB4RGXK-B0yM0pgq.js → chunk-4TB4RGXK-BgkVBpN_.js} +1 -1
  74. package/payload/server/public/assets/{chunk-5FUZZQ4R-CqGhfArO.js → chunk-5FUZZQ4R-CGOqTZDS.js} +1 -1
  75. package/payload/server/public/assets/{chunk-5PVQY5BW-jSeD3Yrj.js → chunk-5PVQY5BW-CW78oYeu.js} +1 -1
  76. package/payload/server/public/assets/{chunk-EDXVE4YY-C7HuvG2r.js → chunk-EDXVE4YY-D_w_ZcbQ.js} +1 -1
  77. package/payload/server/public/assets/{chunk-ENJZ2VHE-DzCrge6H.js → chunk-ENJZ2VHE-MIcdFlwQ.js} +1 -1
  78. package/payload/server/public/assets/{chunk-ICPOFSXX-BPvCh0Yc.js → chunk-ICPOFSXX-BaRHp6jX.js} +1 -1
  79. package/payload/server/public/assets/{chunk-OYMX7WX6-DamxwrTn.js → chunk-OYMX7WX6-Cgo3QttE.js} +1 -1
  80. package/payload/server/public/assets/{chunk-U2HBQHQK-DDiVd0qV.js → chunk-U2HBQHQK-BVZMJI1z.js} +1 -1
  81. package/payload/server/public/assets/{chunk-X2U36JSP-CDof681v.js → chunk-X2U36JSP-DdgOyRDq.js} +1 -1
  82. package/payload/server/public/assets/{chunk-YZCP3GAM-DYzaYjrN.js → chunk-YZCP3GAM-CO61zu06.js} +1 -1
  83. package/payload/server/public/assets/{chunk-ZZ45TVLE-j0bcHHzU.js → chunk-ZZ45TVLE-B3BNOUKS.js} +1 -1
  84. package/payload/server/public/assets/classDiagram-6PBFFD2Q-mzmkY4eP.js +1 -0
  85. package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-Co3bBdih.js +1 -0
  86. package/payload/server/public/assets/clone-BRSMOear.js +1 -0
  87. package/payload/server/public/assets/{dagre-C8nbdG6y.js → dagre-BY0FcwR1.js} +1 -1
  88. package/payload/server/public/assets/{dagre-KV5264BT-1RnGN_fy.js → dagre-KV5264BT-YvKOR5T0.js} +1 -1
  89. package/payload/server/public/assets/data-LkSd6fEQ.js +1 -0
  90. package/payload/server/public/assets/{device-url-actions-C_Keyr0L.js → device-url-actions-Cq5VIBKc.js} +1 -1
  91. package/payload/server/public/assets/{diagram-5BDNPKRD-C6d3Rrui.js → diagram-5BDNPKRD-DL3SiNlA.js} +1 -1
  92. package/payload/server/public/assets/{diagram-G4DWMVQ6-aD4Dik01.js → diagram-G4DWMVQ6-C_IwINPH.js} +1 -1
  93. package/payload/server/public/assets/{diagram-MMDJMWI5-CAub49YE.js → diagram-MMDJMWI5-vumL8N8U.js} +1 -1
  94. package/payload/server/public/assets/{diagram-TYMM5635-CAKnAfEr.js → diagram-TYMM5635-ewBaf58r.js} +1 -1
  95. package/payload/server/public/assets/{erDiagram-SMLLAGMA-BrqOworC.js → erDiagram-SMLLAGMA-kiidRkW3.js} +1 -1
  96. package/payload/server/public/assets/{flowDiagram-DWJPFMVM-DV4eU-T2.js → flowDiagram-DWJPFMVM-C-1rI_Iw.js} +1 -1
  97. package/payload/server/public/assets/{ganttDiagram-T4ZO3ILL-DayXUN42.js → ganttDiagram-T4ZO3ILL-B_9YdwWh.js} +1 -1
  98. package/payload/server/public/assets/{gitGraphDiagram-UUTBAWPF-CK1xV1OV.js → gitGraphDiagram-UUTBAWPF-BmwivVe3.js} +1 -1
  99. package/payload/server/public/assets/graph-CPXz4A4I.js +1 -0
  100. package/payload/server/public/assets/graph-labels-CZR9j5Ge.js +1 -0
  101. package/payload/server/public/assets/{graphlib-CkF9o1XT.js → graphlib-Dvt3mNtm.js} +1 -1
  102. package/payload/server/public/assets/{infoDiagram-42DDH7IO-CiepM2H6.js → infoDiagram-42DDH7IO-B2n7mCmp.js} +1 -1
  103. package/payload/server/public/assets/{ishikawaDiagram-UXIWVN3A-DwNkdQ6z.js → ishikawaDiagram-UXIWVN3A-C2ejJadN.js} +1 -1
  104. package/payload/server/public/assets/{journeyDiagram-VCZTEJTY-BlDLMfu_.js → journeyDiagram-VCZTEJTY-BaIXYVwB.js} +1 -1
  105. package/payload/server/public/assets/{kanban-definition-6JOO6SKY-ayZTc0Oj.js → kanban-definition-6JOO6SKY-B1NCV7hH.js} +1 -1
  106. package/payload/server/public/assets/{line-LhPUiuH-.js → line-BEjGPKWc.js} +1 -1
  107. package/payload/server/public/assets/{mermaid-parser.core-DyZYsQv_.js → mermaid-parser.core-DwLM_Bkq.js} +1 -1
  108. package/payload/server/public/assets/{mermaid.core-CauxgRdz.js → mermaid.core-BwedTSna.js} +3 -3
  109. package/payload/server/public/assets/{mindmap-definition-QFDTVHPH-CQzcaJuh.js → mindmap-definition-QFDTVHPH-D6q_XhF7.js} +1 -1
  110. package/payload/server/public/assets/{page-DAw3-U_s.js → page-BBRZF8Z8.js} +1 -1
  111. package/payload/server/public/assets/{page-BGv81dGN.js → page-CLr-z4E2.js} +1 -1
  112. package/payload/server/public/assets/{pieDiagram-DEJITSTG-BPhAeTm9.js → pieDiagram-DEJITSTG-CAKQ-eUh.js} +1 -1
  113. package/payload/server/public/assets/{public-CGI24wrL.js → public-CfVPuA1x.js} +3 -3
  114. package/payload/server/public/assets/{quadrantDiagram-34T5L4WZ-CxrzL3ZF.js → quadrantDiagram-34T5L4WZ-B8_Xl5p8.js} +1 -1
  115. package/payload/server/public/assets/{requirementDiagram-MS252O5E-ZBSC4fGX.js → requirementDiagram-MS252O5E-BWSq9eFs.js} +1 -1
  116. package/payload/server/public/assets/{sankeyDiagram-XADWPNL6-BTDBEisC.js → sankeyDiagram-XADWPNL6-V3uWSRXp.js} +1 -1
  117. package/payload/server/public/assets/{sequenceDiagram-FGHM5R23-Bv7fA5_J.js → sequenceDiagram-FGHM5R23-DJ_F3-vT.js} +1 -1
  118. package/payload/server/public/assets/{stateDiagram-FHFEXIEX-D07lcZrk.js → stateDiagram-FHFEXIEX-odlwuCTP.js} +1 -1
  119. package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-DE5qFFDY.js +1 -0
  120. package/payload/server/public/assets/{timeline-definition-GMOUNBTQ-DyeyUqKa.js → timeline-definition-GMOUNBTQ-DXE7m_zC.js} +1 -1
  121. package/payload/server/public/assets/{vennDiagram-DHZGUBPP-B9FqDmwS.js → vennDiagram-DHZGUBPP-DEiEepoV.js} +1 -1
  122. package/payload/server/public/assets/{wardleyDiagram-NUSXRM2D-4-5uCIAD.js → wardleyDiagram-NUSXRM2D-CRhVx95h.js} +1 -1
  123. package/payload/server/public/assets/{xychartDiagram-5P7HB3ND-WdkP5T_y.js → xychartDiagram-5P7HB3ND-9Gv4VNaG.js} +1 -1
  124. package/payload/server/public/data.html +5 -5
  125. package/payload/server/public/graph.html +5 -5
  126. package/payload/server/public/index.html +7 -7
  127. package/payload/server/public/public.html +4 -4
  128. package/payload/server/public/assets/channel-DTh_uFbz.js +0 -1
  129. package/payload/server/public/assets/classDiagram-6PBFFD2Q-Dsupydrn.js +0 -1
  130. package/payload/server/public/assets/classDiagram-v2-HSJHXN6E-DrwAXnBf.js +0 -1
  131. package/payload/server/public/assets/clone-COx5mf-H.js +0 -1
  132. package/payload/server/public/assets/data-DOI26n9p.js +0 -1
  133. package/payload/server/public/assets/graph-DP9P7TKZ.js +0 -1
  134. package/payload/server/public/assets/graph-labels-BoLyECfJ.js +0 -1
  135. package/payload/server/public/assets/stateDiagram-v2-QKLJ7IA2-Cr1Qet-f.js +0 -1
  136. /package/payload/server/public/assets/{brand-B8JhGW9e.js → brand-BT-mNX7-.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"pty-spawner.js","s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CAAC,CAAA;IACrB,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;QAClC,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;YAC5B,IAAI,CAAC,CAAC,CAAC,MAAM;gBAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;YACpC,OAAO,EAAE,CAAA;QACX,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,CAAA;QACpB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE;YAChB,YAAY,CAAC,KAAK,CAAC,CAAA;YACnB,OAAO,EAAE,CAAA;QACX,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IACF,MAAM,QAAQ,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAA;IAC1E,IAAI,QAAQ,KAAK,kBAAkB;QAAE,CAAC,CAAC,UAAU,GAAG,IAAI,CAAA;IACxD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC5B,IAAI,CAAC,MAAM,CAAC,kBAAkB,SAAS,QAAQ,CAAC,CAAC,GAAG,wCAAwC,QAAQ,EAAE,CAAC,CAAA;IACvG,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AAC1B,CAAC"}
@@ -2,34 +2,11 @@
2
2
  name: database-operator
3
3
  description: "Background recorder for the memory graph. Reads the operator's full conversation transcript (ordered turns array with text and tool calls) from stdin and writes whatever the most recent operator turn implies into the graph via the wrapped writers. Fires once per admin turn from a Stop hook; never reachable from the admin agent directly."
4
4
  summary: "Watches every completed admin turn and records what it implies into the memory graph."
5
- model: claude-haiku-4-5
5
+ model: claude-sonnet-4-6
6
6
  tools: mcp__memory__memory-write, mcp__memory__memory-update, mcp__memory__memory-search, mcp__memory__profile-update, mcp__memory__profile-read, mcp__contacts__contact-create, mcp__contacts__contact-update, mcp__tasks__task-create, mcp__tasks__task-update, mcp__tasks__project-create, mcp__tasks__project-update
7
7
  ---
8
8
 
9
- # Database Operator
10
-
11
- You are this account's background recorder for the memory graph. You receive the operator's full conversation transcript and you decide what the most recent operator turn implies for the graph. You write through the wrapped tools listed in your frontmatter and produce no other output. The operator never sees you.
12
-
13
- ## Three rules
14
-
15
- These three rules win when anything else in this prompt conflicts with them.
16
-
17
- 1. **Be precise.** Every write traces to the most recent operator turn, anchored by the earlier turns in the transcript. No inferred facts. No "likely".
18
- 2. **Be concise.** Your job is the write, not the report. If the latest operator turn implies no write, exit silently. Do not narrate, summarise, or describe the graph.
19
- 3. **Stamp your evidence.** On every node and edge you write, set `createdBySource` to the literal string `turn-recorder` and `createdBySession` to the operator's conversation id so the audit trail names where the claim came from.
20
-
21
- ## Outcome contract
22
-
23
- Writes happen through the wrapped tools in your frontmatter. Nothing else. No raw cypher, no filesystem reads, no web calls, no tool outside that list. The most recent operator turn is what you record; earlier turns are context, not separate triggers. If the latest operator turn implies a change the wrapped tools cannot make, that change is out of scope for this run — skip silently and leave the graph where it is.
24
-
25
- ## Graph hierarchy
26
-
27
- Every node has a parent in the canonical chain that runs LocalBusiness, then Project, then Task or Person or Organisation or KnowledgeDocument. The wrapped tools reject orphans; do not try to circumvent that by writing a node first and adding the parent edge later. If you do not have a parent for the node, do not write the node.
28
-
29
- ## Idempotency
30
-
31
- You will be fired many times against the same operator. The wrapped tools merge on natural keys; identical inputs produce no new nodes or edges. Do not invent surrogate keys to force a fresh write.
32
-
33
- ## When a tool returns an error
34
-
35
- Acknowledge the error to yourself and stop. Do not retry. Do not call a different tool to rescue the write. The graph stays where it is; the next turn will fire you again.
9
+ You are an expert Neo4J graph operator. Here is the schema {schema}.
10
+ Use your expert judgement to update the graph in reaction to the
11
+ following conversation {conversation}, using the tools at your disposal.
12
+ You are not user-facing and your text goes nowhere — do not emit it.
@@ -86,12 +86,12 @@ A `[SKIP]` answer is a **valid** answer for the gate. An empty answer is still a
86
86
 
87
87
  If the operator's request contains "and socials", "+socials", "with socials", "with OG images", or any equivalent, append a socials step after the brochure web bundle is built:
88
88
 
89
- 1. Invoke the `property-socials` skill on the same `<property_dir>` (it reads `output/web/page.html` or `output/web/index.html`, `property.json`, and the brand pack).
90
- 2. The OG JPGs (landscape 1200x630, square 1080x1080, portrait 1080x1350) land under `output/web/socials/`.
91
- 3. This skill **additionally** produces a small gallery page at `output/web/socials.html`: the third endpoint in the web bundle, alongside the brochure HTML and the landing page, previewing each tile size with download links and the suggested copy / alt text for each platform. Brand it from the same DESIGN.md tokens used for the brochure.
92
- 4. The bundle's smoke-test extends to `socials.html` and every JPG referenced; all must return 200 from the isolated HTTP server.
89
+ 1. Invoke the `property-socials` skill on the same `<property_dir>` (it reads `output/web/index.html`, `property.json`, and the brand pack).
90
+ 2. `property-socials` owns the full deliverable: OG JPGs in `output/web/socials/` (landscape 1200×628, square 1200×1200, portrait 1080×1350), the gallery page at `output/web/socials.html`, captions at `output/web/social-posts.md`, and the `og.html` template kept for re-runs. The orchestrator does **not** produce a separate gallery — everything lands when the skill returns, so a direct standalone invocation produces an identical bundle to the orchestrator-invoked one.
91
+ 3. After the skill returns, extend the bundle's smoke-test to include `socials.html` and every JPG referenced; all must return 200 from the isolated HTTP server.
92
+ 4. Re-zip the web bundle with the socials artefacts included.
93
93
 
94
- The web bundle is then re-zipped with the socials artefacts included. If the operator did **not** request socials, do not run the step; adding 1 to 3 MB of imagery and a third HTML page silently is an over-reach.
94
+ If the operator did **not** request socials, do not run the step; adding 1 to 3 MB of imagery and a third HTML page silently is an over-reach.
95
95
 
96
96
  ## Step 4 — populate, render, deliver
97
97
 
@@ -162,6 +162,14 @@ When any field above is unresolved after consulting its primary source, **stop b
162
162
  - **Self-contained `output/`** — never reference `../` paths. Every asset the HTML uses must live under `output/images/`.
163
163
  - **Web bundle must include `index.html`** — a bundle without it is incomplete.
164
164
  - **Suppress screen-only chrome before snapshotting** — the template's `.download-bar` is hidden under `@media print` but Playwright's `element.screenshot()` captures the screen render, where the bar IS visible. The render script in `build.md` injects a style tag (`.download-bar { display: none !important; }`) before capture. Any custom render script must do the same.
165
+ - **Brand-token overrides MUST land at the `BRAND_TOKENS_OVERRIDE_SLOT` sentinel** — immediately before the closing `}` of the template's `:root` rule. Any earlier insertion site loses the CSS cascade: the template's own `--paper-25 / --serif / --gold-700` declarations win in source order, and the brochure renders in Premium register despite `register=branded`. The substitution gate and snapshot capture both pass — failure is silent until visual review.
166
+ - **Display-headline wrap contract on `{{ property_name }}`** — `.back-headline em`, `.cover-title`, and `.opener-title em` carry `white-space: nowrap` so multi-word property names sit on one line regardless of brand display family. Removing the nowrap rule reintroduces non-deterministic wrap (same name renders correctly in Premium and breaks in Branded when the display family changes). For a property name long enough to overflow at the column width, shrink the headline `font-size` or shorten the name — never delete the nowrap rule.
167
+ - **Web bundle must contain only referenced images.** Before the zip step, walk `output/web/images/` and remove every file not appearing in any of the bundle's HTML surfaces (`brochure.html`, the companion landing page, optional `og.html`). A bundle carrying unreferenced images is a build defect; the 30–50 MB target documented in `build.md → Web bundle` is enforced, not aspirational. See `build.md → Strip unreferenced images` for the recipe.
168
+ - **Web PDF defaults to JPEG-embedded at quality 85.** Snapshot PNGs in `output/.snapshots-web/` are re-encoded to JPEG q=85 before `img2pdf` binds them. PNG-embedded for the web grade is opt-in only (one-pagers / report-style where small-text crispness outweighs wire size). The print master never flips to JPEG — its audience archives for press runs. A web PDF over ~20 MB on a 16-page folio means the re-encode was skipped.
169
+ - **Companion landing page is named `index.html`.** Every reference (template, bundle, smoke-test, docs) uses `index.html` so the static host serves it as the default document without an explicit URL. Do not drift back to `page.html` — that name was deprecated in favour of hosting-platform default-document compatibility.
170
+ - **Floorplan ships as PNG on disk.** The brochure templates reference `images/<slug>-floorplan.png` and the contract is PNG-only on disk regardless of source format. If the operator-supplied source is JPG, convert at build time (`magick <src>.jpg <slug>-floorplan.png`) before substitution. JPEG compression artefacts on thin lines and small text are unacceptable for floorplans.
171
+ - **Brand-token override block must carry both vocabularies and target both templates.** The brochure (`template.html`) and the landing page (`index.html`) declare independent `:root` token vocabularies (`--paper-25 / --gold-700 / …` vs `--paper / --gold / …`). The brand-tokens block must emit **both** sets of token names with the same brand values and substitute at the `BRAND_TOKENS_OVERRIDE_SLOT` sentinel in **both** templates. A block that only carries the brochure's vocabulary leaves the landing page rendering Premium silently — the substitution gate passes and the snapshot capture proceeds. See `references/build.md → Brand-token override emission` for the mapping table and example block. Long-term vocabulary unification is a follow-up; until it lands the dual emission is structurally required.
172
+ - **Doc-comment strip pass runs against BOTH templates.** After substitution, the `<!-- REPLACE … -->` authoring notes must be removed from both `brochure.html` AND `index.html`. A strip pass that covers only the brochure leaves landing-page authoring notes rendering as visible body text whenever a comment delimiter is misplaced. The companion source-side check in `references/build.md → Template authoring hygiene + CI lint` catches the same defect class at template-edit time.
165
173
  - **No `{{ token }}` may remain in rendered output** — `grep '{{' output/brochure.html` must return zero matches before PDFs are built.
166
174
 
167
175
  ## Scope
@@ -4,7 +4,8 @@
4
4
 
5
5
  1. Copy template to property directory, populate with content
6
6
  2. Stage `output/images/` per `images.md → Image renaming and optimisation`
7
- 3. **If branded register and `<brand_dir>/DESIGN.md` contains a `## Type roles` block** — emit the role overlay into both `brochure.html` and `page.html`/`index.html` per **Type-role overlay generation** below. Run this **before** any snapshot capture; the overlay is part of what the user reviews in the browser, not a post-process applied to PDFs.
7
+ 3. **If branded register and `<brand_dir>/DESIGN.md` contains a `## Type roles` block** — emit the role overlay into both `brochure.html` and `index.html` per **Type-role overlay generation** below. Run this **before** any snapshot capture; the overlay is part of what the user reviews in the browser, not a post-process applied to PDFs.
8
+ 3b. **Doc-comment strip — run against BOTH templates.** After substitution and overlay emission, run a regex pass that removes template authoring notes (the `<!-- REPLACE … -->` markers and any demo-placeholder blocks inside comments) from both `brochure.html` and `index.html`. The single regex is `re.compile(r"<!--\s*REPLACE\s+.*?-->", re.DOTALL)`. Run it explicitly against **both** files — a strip pass that covers only the brochure leaves landing-page authoring notes rendering as visible body text whenever a comment delimiter is misplaced (the historical `page.html` template shipped this defect once already). See **Template authoring hygiene + CI lint** below for the source-side check that catches the same class of defect at template-edit time, before a property build is ever started.
8
9
  4. Serve locally: `python3 -m http.server <port>` from the project root
9
10
  5. Navigate Playwright to the brochure URL
10
11
  6. Present to user in browser for review
@@ -12,10 +13,11 @@
12
13
  8. Verify every page fits A4: measure `scrollHeight` for all `.page` elements
13
14
  9. Verify no 404s in the browser console
14
15
  10. Repeat 6–9 until user approves the final copy
15
- 11. **Only after user approval**: render snapshots (two passes 300 dpi to `output/`, 192 dpi to `output/.snapshots-web/`) per **Print snapshot capture** below
16
- 12. Build both PDFs (img2pdf + qpdf) per **PDF deliverable** below
17
- 13. Build the web bundle (96 dpi JPGs + bundled web PDF + zip) per **Web bundle** below
18
- 14. User downloads the web PDF via brochure.html's Download button or receives the print master separately for press/print runs
16
+ 11. **Preview manifest gate** render `<property_dir>/output/.review/` thumbnails (per-page PNGs at DPR) plus `<property_dir>/output/.review/manifest.json` capturing the active register, computed `--paper-25 / --serif / --gold-700 / --ink` token values, risk probes for `.mi-row .v` / `.folio em` / `.opener-title`, and which always-emit blocks were emitted (`DARK_SURFACE_PROTECTION`, `LIGHT_SURFACE_DATA_PROTECTION`, `STRUCTURAL_CLAMP_LOOSEN`). Halt and wait until the operator writes `<property_dir>/output/.review/approved`. The interactive form of the same gate is the browser-review loop in steps 6–10; this file-based halt is the structural form that scripted or autonomous runs cannot bypass — the build refuses to advance until `approved` exists.
17
+ 12. **Only after `approved` exists**: render snapshots (two passes — 300 dpi to `output/`, 192 dpi to `output/.snapshots-web/`) per **Print snapshot capture** below
18
+ 13. Build both PDFs (img2pdf + qpdf) per **PDF deliverable** below
19
+ 14. Build the web bundle (96 dpi JPGs + bundled web PDF + zip) per **Web bundle** below
20
+ 15. User downloads the web PDF via brochure.html's Download button or receives the print master separately for press/print runs
19
21
 
20
22
  Do not capture snapshots during the editing cycle — they are expensive and invalidated by every change.
21
23
 
@@ -106,7 +108,7 @@ Both are image-only — no fonts embedded, no Ghostscript anywhere in the chain.
106
108
 
107
109
  ### Build steps
108
110
 
109
- For each grade, bind the per-page PNG snapshots into a PDF via img2pdf, then linearize via qpdf:
111
+ Build both grades from the per-page snapshots in `output/` and `output/.snapshots-web/`, then linearize via qpdf. The print master embeds the PNG snapshots verbatim; the web grade re-encodes them as JPEG quality 85 before binding, so the deliverable that goes out to email and CDN hosting is materially smaller:
110
112
 
111
113
  ```bash
112
114
  # Print master from 300 dpi PNGs (in output/)
@@ -123,13 +125,17 @@ qpdf --linearize --object-streams=disable \
123
125
  /tmp/pre-linearize.pdf \
124
126
  <property_slug>-brochure-print.pdf
125
127
 
126
- # Web PDF from 192 dpi PNGs (in output/.snapshots-web/)
128
+ # Web PDF from 192 dpi PNGs → JPEG q=85 (in output/.snapshots-web/)
129
+ # img2pdf preserves JPEG bytes verbatim, so re-encoding once up front is the only quality step.
127
130
  cd <property_dir>/output/.snapshots-web/
131
+ for png in *-print.png; do
132
+ magick "$png" -quality 85 -strip -interlace none -colorspace sRGB "${png%.png}.jpg"
133
+ done
128
134
  img2pdf --pagesize 297mmx210mm \
129
135
  --title "<Property Name> · <address line 1>" \
130
136
  --author "<Agent Name>" \
131
137
  --output /tmp/pre-linearize.pdf \
132
- cover-print.png page2-print.png … backpage-print.png
138
+ cover-print.jpg page2-print.jpg … backpage-print.jpg
133
139
  qpdf --linearize --object-streams=disable \
134
140
  /tmp/pre-linearize.pdf \
135
141
  <property_dir>/output/<property_slug>-brochure-web.pdf
@@ -148,9 +154,9 @@ pdfinfo <output>.pdf | grep Optimized # → "Optimized: yes"
148
154
  pdffonts <output>.pdf | wc -l # → 2 (header rows only; no font entries)
149
155
  ```
150
156
 
151
- A typical 16-page folio ships with the print master at **65–100 MB** and the web PDF at **2545 MB**. If the print master lands under ~40 MB, the snapshot DPR is wrong (likely rendered at 2× instead of 3.125×). If the web PDF exceeds ~55 MB, source photos may be over-floor (see **Image resolution floor** in a4-print-documents) or the snapshot DPR drifted to 3.125× by accident.
157
+ A typical 16-page folio ships with the print master at **65–100 MB** (PNG-embedded) and the web PDF at **715 MB** (JPEG-embedded at q=85). If the print master lands under ~40 MB, the snapshot DPR is wrong (likely rendered at 2× instead of 3.125×). If the web PDF exceeds ~20 MB, the JPEG re-encode was skipped (bind step ran against `.png` instead of `.jpg`) or the snapshot DPR drifted to 3.125× by accident.
152
158
 
153
- If the web PDF runs into a transport limit (some webmail systems cap at 25 MB), substitute JPEG-encoded snapshots: `magick page-print.png -quality 88 -strip -interlace none -colorspace sRGB page-print.jpg`, then bind `.jpg` files instead of `.png`. Expect 3040% size reduction with no visible quality loss at 192 dpi.
159
+ The web PDF defaults to JPEG-embedded; PNG-embedded for the web grade is **opt-in only**, for one-pagers or report-style brochures where small-text crispness matters more than wire size. For the standard photographic property folio, JPEG q=85 is visually indistinguishable from PNG at typical screen DPRs and is roughly 3 smaller. The print master never flips to JPEG its audience archives for press runs.
154
160
 
155
161
  ### When to (re)generate
156
162
 
@@ -183,7 +189,7 @@ The same per-slot tier idea as the digital floor in `images.md`, but with smalle
183
189
  | Hero / cover / banner / feature / drone aerial / front elevation / outdoor full-bleed | **1300 px @ q82** | 80–300 KB |
184
190
  | Story photo (in-spread half-page) | **1100 px @ q80** | 60–250 KB |
185
191
  | Gallery thumb / strip / image-led grid cell | **800 px @ q76** | 25–80 KB |
186
- | **Floor plan** (PNG, line art) | **source file copied unchanged** — `cp <slug>-floorplan.png web/images/` | matches source (often 500 KB – 1 MB) |
192
+ | **Floor plan** (PNG output, line art) | **PNG source copied unchanged; JPG source converted to PNG at build time** — `magick <slug>-floorplan.jpg <slug>-floorplan.png` then drop the `.jpg`. The brochure templates reference `images/<slug>-floorplan.png` and the contract is PNG-only on disk; JPEG compression artefacts on thin lines and small text are unacceptable for floorplans. | matches PNG output (often 500 KB – 1 MB) |
187
193
  | Site plan (raster line art) | **1100 px @ q80** WebP if not already PNG; if PNG, copy unchanged | 30–60 KB or source size |
188
194
 
189
195
  A 27-image folio typically lands at **~2.5 MB** of web photographs, with the floor plan adding **0.5–1.0 MB** on top because line art is preserved at source resolution. Total web image weight is typically 3.0–3.5 MB.
@@ -227,6 +233,34 @@ The web PDF (`<slug>-brochure-web.pdf` at the property level) is also placed ins
227
233
  cp output/<slug>-brochure-web.pdf output/web/<slug>-brochure.pdf
228
234
  ```
229
235
 
236
+ ### Strip unreferenced images
237
+
238
+ Every image in `output/web/images/` must be reachable from at least one HTML surface in the bundle (`brochure.html`, the companion landing page, and `og.html` if present). The build accumulates working images during editing — operator drops a hero, re-numbers a sequence, swaps an image and forgets to delete the prior version — and without the strip step the bundle ships every accumulated file. Typical bloat on a re-iterated 16-page folio is 20–40 unreferenced `.webp` files at ~500 KB each, which is what pushes a "30–50 MB target" bundle to 80–120 MB.
239
+
240
+ ```bash
241
+ cd output/web
242
+
243
+ # Collect every image actually referenced by the bundle's HTML surfaces.
244
+ # `cat *.html` catches brochure.html, the companion landing page, and og.html
245
+ # without needing to know the landing-page filename in advance.
246
+ referenced=$(cat *.html 2>/dev/null \
247
+ | grep -oE 'images/[A-Za-z0-9_.-]+\.(webp|jpg|jpeg|png|svg)' \
248
+ | sort -u)
249
+
250
+ # Walk images/ and remove anything not in $referenced. Brand assets
251
+ # (logos, QR PNGs) are referenced by the templates and survive.
252
+ removed=0
253
+ for f in images/*; do
254
+ if ! echo "$referenced" | grep -qxF "$f"; then
255
+ rm -f "$f"
256
+ removed=$((removed + 1))
257
+ fi
258
+ done
259
+ echo "[strip] removed $removed unreferenced files from output/web/images/"
260
+ ```
261
+
262
+ The strip is a closed-set operation: two agents producing the bundle for the same property emit byte-identical surviving image sets. Run it before the zip step; a bundle carrying unreferenced images is a build defect, not "extra-safe" packaging.
263
+
230
264
  ### Bundling
231
265
 
232
266
  After populating `output/web/`, zip it with `-X` (strip extra attributes) and exclude any `.DS_Store` / AppleDouble files:
@@ -270,6 +304,117 @@ The brochure should render the same as the canonical preview, just lighter on th
270
304
 
271
305
  The convention: `output/` is the canonical archive for the property's lifetime. `output/web/` is a derived bundle, regenerable any time from the canonical artefacts.
272
306
 
307
+ ## Brand-token override emission (cascade-safe, two-template, two-vocabulary)
308
+
309
+ Branded register replaces palette and type tokens in `:root`. The override is emitted as a `<style id="brand-tokens">…</style>` block at the **`BRAND_TOKENS_OVERRIDE_SLOT`** sentinel in **both** the brochure template (`template.html`) and the companion landing page (`index.html`). The sentinel sits immediately before the closing `}` of each `:root` rule — placing the override after the template's own declarations is what keeps the brand values winning the cascade. See SKILL.md hard rule "Brand-token overrides MUST land at the BRAND_TOKENS_OVERRIDE_SLOT sentinel".
310
+
311
+ ### Two vocabularies (today)
312
+
313
+ The brochure and the landing page use independent token vocabularies. Until vocabulary unification lands (see follow-up below), the brand-tokens block must include **both** sets of token names so that whichever template the block lands in, the right values bind.
314
+
315
+ | Concept | `template.html` token | `index.html` token |
316
+ |---|---|---|
317
+ | Ivory page background | `--paper-25` | `--paper` |
318
+ | Slightly darker cream surface | `--paper-50` | `--paper-2` |
319
+ | Warm cream / banded surface | `--paper-100` | (no equivalent — omit) |
320
+ | Pure white | `--paper-0` | (no equivalent — omit) |
321
+ | Body ink | `--ink` | `--ink` (shared name) |
322
+ | Secondary ink | (no equivalent — omit) | `--ink-2` |
323
+ | Bronze accent | `--gold-700` | `--gold` |
324
+ | Antique gold rule / softer accent | `--gold-500` | `--gold-soft` |
325
+ | Champagne flourish | `--gold-300` | (no equivalent — omit) |
326
+ | Display serif family | `--serif` | `--serif` (shared name) |
327
+ | Body serif family | `--body-serif` | (no equivalent — omit) |
328
+ | Sans family | `--sans` | (no equivalent — omit) |
329
+
330
+ Pick one brand-pack value per concept, emit **both** token names in the same block. Example for a brand whose accent is brand-green `#02843E`:
331
+
332
+ ```html
333
+ <style id="brand-tokens">
334
+ :root {
335
+ /* template.html vocabulary */
336
+ --paper-25: #FFFFFF;
337
+ --paper-50: #F4F1EA;
338
+ --paper-100: #EFE7D8;
339
+ --gold-700: #02843E;
340
+ --gold-500: #4FB371;
341
+ --gold-300: #C9E8D4;
342
+ --ink: #323636;
343
+ --serif: 'Lora', 'Cormorant Garamond', serif;
344
+ --body-serif: 'Lora', serif;
345
+ --sans: 'Inter', sans-serif;
346
+
347
+ /* index.html vocabulary — same colour values, different token names */
348
+ --paper: #FFFFFF;
349
+ --paper-2: #F4F1EA;
350
+ --gold: #02843E;
351
+ --gold-soft: #4FB371;
352
+ --ink-2: #2A3036;
353
+ }
354
+ </style>
355
+ ```
356
+
357
+ The same block is substituted at the sentinel in **both** templates. A block that only carries the `template.html` vocabulary leaves the landing page rendering Premium silently — the substitution gate passes and the snapshot capture proceeds. The defect is invisible until visual review.
358
+
359
+ ### Follow-up — vocabulary unification (long-term)
360
+
361
+ The dual-emission above is a tactical fix for the divergence between the two templates' `:root` vocabularies. The long-term fix is to **unify the landing page on `template.html`'s tiered vocabulary** (`--paper-0 / -25 / -50 / -100`, `--gold-300 / -500 / -700`, `--ink` plus a `--ink-2` if needed) so every brand block is authored once instead of twice. Until that refactor lands, the dual-emission contract above is structurally required.
362
+
363
+ ## Template authoring hygiene + CI lint
364
+
365
+ The doc-comment strip in step 3b of the workflow above catches template authoring notes **at property-build time** — but a template that ships with a misplaced `<!-- … -->` delimiter is a source-side defect that should be caught at template-edit time, before any property build runs against it. The historical `page.html` template carried a duplicated authoring note where one copy sat inside a proper comment and the other copy sat outside any delimiters; browsers rendered the duplicate as visible body text on every property built from that template.
366
+
367
+ Add a CI step (or a `make check-templates` recipe at the plugin root) that parses every `references/*.html` and asserts:
368
+
369
+ ```python
370
+ import re
371
+ from pathlib import Path
372
+
373
+ REFERENCES = Path("references")
374
+ TEMPLATES = list(REFERENCES.glob("*.html")) # template.html, index.html
375
+ COMMENT_RE = re.compile(r"<!--.*?-->", re.DOTALL)
376
+
377
+ LEAKED_PHRASES = [
378
+ "terminate this outer comment",
379
+ "REPLACE markers, use prose",
380
+ "delimiter pair",
381
+ "the bug that prompted this note",
382
+ ]
383
+
384
+ defects = []
385
+
386
+ for tpl in TEMPLATES:
387
+ text = tpl.read_text()
388
+
389
+ # 1. Every <!-- must be closed by --> within the file.
390
+ if text.count("<!--") != text.count("-->"):
391
+ defects.append(f"{tpl}: unbalanced HTML comment delimiters")
392
+
393
+ # 2. Strip every well-formed comment, then any LEAKED_PHRASES that
394
+ # remain are authoring notes sitting outside comments — body-text
395
+ # defects waiting to ship.
396
+ outside_comments = COMMENT_RE.sub("", text)
397
+ for phrase in LEAKED_PHRASES:
398
+ if phrase in outside_comments:
399
+ defects.append(f"{tpl}: authoring-note phrase {phrase!r} found outside any HTML comment")
400
+
401
+ # 3. `{{ token }}` placeholders are fine inside slot positions but
402
+ # an example placeholder appearing inside a code-block in body text
403
+ # (e.g. an explanation of how to use the template) is a leak.
404
+ # Surface as a soft warning — operator decides.
405
+ leftover_examples = re.findall(r"\{\{\s*example[_a-z]*\s*\}\}", outside_comments)
406
+ if leftover_examples:
407
+ defects.append(f"{tpl}: example placeholders leaked outside comments: {leftover_examples}")
408
+
409
+ if defects:
410
+ print("Template lint failed:")
411
+ for d in defects:
412
+ print(f" - {d}")
413
+ raise SystemExit(1)
414
+ ```
415
+
416
+ Either check catches the page.html-class leak at edit time, before it ships to a property build. The lint runs against the source-side `references/*.html` only — the property-build copies under `<property_dir>/output/` are derived artefacts and are protected by step 3b above instead.
417
+
273
418
  ## Type-role overlay generation
274
419
 
275
420
  If the brand pack's `DESIGN.md` contains a `## Type roles` block (declared per `references/registers.md → Type-role overrides`), parse it and emit a single `<style id="brand-type-roles">…</style>` block at the `<!-- BRAND_TYPE_ROLES_OVERRIDE_SLOT -->` sentinel immediately before the closing `</style>` of the template's main stylesheet. The override CSS is generated **mechanically** from the recipe map below — the build does not invent selectors, it emits the documented ones using values from the DESIGN doc.
@@ -435,9 +580,9 @@ def emit_overlay(role_values: dict[str, str]) -> str:
435
580
  ```
436
581
 
437
582
 
438
- ### Always-emit recipes — dark-surface protection and structural clamps
583
+ ### Always-emit recipes — dark-surface protection, light-surface data protection, structural clamps
439
584
 
440
- Two sections of the overlay are emitted **whenever the brand pack's `## Type roles` block is present**, regardless of which roles the operator declared. They are the foundation of any branded re-skin — without them the role API's targeted overrides can blow up adjacent template assumptions.
585
+ Three sections of the overlay are emitted **whenever the brand pack's `## Type roles` block is present**, regardless of which roles the operator declared. They are the foundation of any branded re-skin — without them the role API's targeted overrides can blow up adjacent template assumptions.
441
586
 
442
587
  #### Dark-surface protection (fixed exclusion list)
443
588
 
@@ -469,6 +614,33 @@ DARK_SURFACE_PROTECTION = [
469
614
 
470
615
  The selector list is closed. Two agents producing brochures for the same brand pack emit byte-identical dark-surface blocks. If the template adds a new dark-surface region in a future revision, this list (in `build.md`) is the authoritative update site.
471
616
 
617
+ #### Light-surface data protection (fixed selector list)
618
+
619
+ The template uses `var(--gold-700)` both for genuine accents (em emphasis, eyebrow rules, particulars numbering) **and** for data-value treatment in the Material Information rows, opener meta row, EPC chart rows, floorplan caption, and the spec list. Premium binds `--gold-700` to a muted bronze (`#7A6235`) so the data cells read as subtle accents on cream. Branded binds `--gold-700` to whatever the brand's primary accent is — for some brands a saturated green or red — and every data cell turns into a hyperlink-looking blob.
620
+
621
+ The light-surface twin of dark-surface protection forces data-cell text back to `var(--ink)` (and the folio strip to `var(--slate-600)`), regardless of which brand token swap happens.
622
+
623
+ ```python
624
+ LIGHT_SURFACE_DATA_PROTECTION = [
625
+ # Material info, opener meta, EPC data values, floorplan caption, spec list —
626
+ # always read as ink, never brand-accent.
627
+ '.mi-row .v, .mi-row .v em, '
628
+ '.opener-meta-row .v, .opener-meta-row .v em, '
629
+ '.epc-row .v, .epc-row .v em, '
630
+ '.spec-list li, .spec-list li em, .spec-list li strong, '
631
+ '.floorplan-sub, .floorplan-sub em '
632
+ '{ color: var(--ink) !important; }',
633
+ # Folio strip — muted slate, never full brand colour.
634
+ '.folio, .folio em, .folio-mid, .folio-mid em '
635
+ '{ color: var(--slate-600) !important; }',
636
+ # Particulars numbering keeps the brand accent intentionally; the existing
637
+ # `.spec-list li .num` rule already scopes that to the number span only —
638
+ # no override needed here.
639
+ ]
640
+ ```
641
+
642
+ Same closed-list contract as the dark-surface block: two agents emit byte-identical output for the same brand. If a future template revision adds a new data-cell region, the entry is added here. A cleaner long-term fix is to split `--gold-700` into `--accent-strong` (em, eyebrow rules, `.num`) and `--data-text` (the selectors above, defaulting to `--ink`) so Branded only swaps `--accent-strong`; until that token split lands, this override block is structurally mandatory in Branded runs, not optional polish.
643
+
472
644
  #### Structural clamp loosen
473
645
 
474
646
  The template's chapter-heading grid rows are sized for the Cormorant Garamond display setup (italic, weight 400, letter-spacing tuned for didone). When the role overlay swaps display family, weight, or letter-spacing, headings can grow a few millimetres beyond what the fixed-height rows accommodate — and the template's `overflow: hidden` on those rows clips the descenders. The proposal author's term for this is "structural-element clamps that need to be loosened together with the type-role overlay."
@@ -488,7 +660,7 @@ STRUCTURAL_CLAMP_LOOSEN = [
488
660
  ]
489
661
  ```
490
662
 
491
- If a future template revision adds another fixed-height heading row, the entry is added here. The substitute step's `emit_overlay()` always emits these two sections first, then the per-role recipes.
663
+ If a future template revision adds another fixed-height heading row, the entry is added here. The substitute step's `emit_overlay()` always emits these three sections first, then the per-role recipes.
492
664
 
493
665
 
494
666
  ### Where the overlay lands
@@ -77,9 +77,10 @@ Existing brand packs whose `DESIGN.md` files do not contain a `## Type roles` bl
77
77
  Two sections of the role overlay are emitted **whenever the brand pack declares any `## Type roles`**, regardless of which specific roles the operator chose. They are the foundation of any branded re-skin:
78
78
 
79
79
  1. **Dark-surface protection.** A fixed exclusion list of selectors that sit on dark surfaces — the TOC hero caption pill, intermission caption pills, the spread-6 chapter-head overlay on its dark photo, the back-page masthead and tagline, and the back-page contact-grid name lines. The brand-token swap remaps `--gold-700` (the template's italic-emphasis colour) to the brand's accent. On a light surface that's correct. On a dark surface, a brand-accent like navy or maroon on dark photographic background is unreadable. The dark-surface protection forces text on these selectors to `var(--paper-25)` and emphasis to `var(--gold-300)` (the brand's accent / highlight). This is **not** a per-implementer concern — the exclusion list is fixed in `build.md → Always-emit recipes`.
80
- 2. **Structural clamp loosen.** The template's chapter-heading rows in `.spread-2` and `.spread-3` are sized for the Cormorant Garamond display setup (italic, weight 400, didone-tuned letter-spacing). When the role overlay changes display family, weight, or letter-spacing, headings can grow a few millimetres beyond what those fixed-height rows accommodate, and the template's `overflow: hidden` clips the descenders. The clamp-loosen recipe converts the affected rows to `minmax(<original>, max-content)` and lifts the heading-row `overflow` from `hidden` to `visible`. A heading that already fits renders identically; a heading that needs a few extra mm no longer clips. If a future template revision adds another fixed-height heading row, the entry is added in `build.md` not handwritten per property.
80
+ 2. **Light-surface data protection.** The template uses `--gold-700` for two semantically different things — genuine accents (em emphasis, eyebrow rules, particulars numbering) and data-value treatment in `.mi-row .v`, `.opener-meta-row .v`, `.epc-row .v`, `.spec-list li`, and `.floorplan-sub`. In Premium that's invisible because `--gold-700` is a muted bronze on cream. In Branded, where `--gold-700` is rebound to whatever the brand's primary accent is (often a saturated green, red, or navy), every data cell turns into a hyperlink-looking blob. The light-surface twin of dark-surface protection forces those data cells to `var(--ink)` and the folio strip to `var(--slate-600)` regardless of the brand token swap. The fixed selector list lives in `build.md Always-emit recipes` as `LIGHT_SURFACE_DATA_PROTECTION`. This is structurally mandatory in Branded runs, not optional polish the long-term cleanup is to split `--gold-700` into `--accent-strong` and `--data-text` tokens so Branded only swaps the accent.
81
+ 3. **Structural clamp loosen.** The template's chapter-heading rows in `.spread-2` and `.spread-3` are sized for the Cormorant Garamond display setup (italic, weight 400, didone-tuned letter-spacing). When the role overlay changes display family, weight, or letter-spacing, headings can grow a few millimetres beyond what those fixed-height rows accommodate, and the template's `overflow: hidden` clips the descenders. The clamp-loosen recipe converts the affected rows to `minmax(<original>, max-content)` and lifts the heading-row `overflow` from `hidden` to `visible`. A heading that already fits renders identically; a heading that needs a few extra mm no longer clips. If a future template revision adds another fixed-height heading row, the entry is added in `build.md` — not handwritten per property.
81
82
 
82
- A branded brochure built with the role overlay must show both blocks in the emitted `<style id="brand-type-roles">`. Their absence is a build-time defect, not a stylistic choice.
83
+ A branded brochure built with the role overlay must show all three blocks in the emitted `<style id="brand-type-roles">`. Their absence is a build-time defect, not a stylistic choice.
83
84
 
84
85
  ## Forbidden template sources
85
86
 
@@ -208,6 +208,7 @@
208
208
  text-transform: uppercase;
209
209
  color: var(--ink);
210
210
  white-space: nowrap;
211
+ white-space: nowrap;
211
212
  }
212
213
 
213
214
  .cover-subtitle {
@@ -514,6 +515,7 @@
514
515
  font-weight: 400;
515
516
  color: var(--gold-700);
516
517
  font-size: 0.36em;
518
+ white-space: nowrap;
517
519
  line-height: 1.2;
518
520
  margin-top: 8px;
519
521
  letter-spacing: 0.18em;
@@ -1121,7 +1123,7 @@
1121
1123
  color: var(--paper-0);
1122
1124
  margin-bottom: 12px;
1123
1125
  }
1124
- .back-headline em { font-style: italic; color: var(--gold-300); }
1126
+ .back-headline em { font-style: italic; color: var(--gold-300); white-space: nowrap; }
1125
1127
 
1126
1128
  .back-tagline {
1127
1129
  font-family: var(--serif);
@@ -319,6 +319,7 @@ The skill orchestrates four capabilities, each a **what** not a **how**:
319
319
  2. **Extract.** Pull the raw HTML and grep all `b-cdn.net/propertyimages/...` and `b-cdn.net/floorplans/...` URLs. Deduplicate. Also grep PDF URLs containing `epc`. Extract the `<div class="section__description">` block for the description text. (Map detection is provider-agnostic and happens in step 4 below — don't try to parse map markup at this static-HTML stage.)
320
320
  3. **Stage.** Create the four-folder structure under `<output-dir>/<slug>-<listing-id>/`. Download images and floorplans in parallel (`xargs -n1 -P8 curl -O -L`) — there are routinely 40–60 images per listing and serial downloads are slow.
321
321
  4. **Capture map** (conditional, provider-agnostic). Drive Playwright to the listing URL and apply the heuristic detector under **Map — extract or omit**: try iframe-by-provider, then class/id-by-keyword, then static-map images, then visual fallback. On the first hit, scroll into view, wait for tiles, screenshot the **element** (not the page), convert to `map.webp` at ~1500 px wide. If no heuristic finds a map, skip — **extract or omit**, no fallback synthesis.
322
+ 4b. **Traverse tabbed UIs (conditional, provider-agnostic).** Modern listing pages from Loop CRM tenants, Rightmove, Zoopla and others render top-level data in tabs — *Details / Floorplan / EPC / Virtual Tour / Map View / Book Viewing* — and the static HTML returned by `WebFetch` or `curl` often does not include the inactive-tab content. If the probe in step 1 came back with data the listing visibly shows (EPC band, floorplan thumbnail, video URL) but the static-HTML extract in step 2 does not, the data is almost certainly tab-bound. Drive the Playwright session opened in step 4 (or open one if step 4 skipped) and walk the tab list: detect elements with `role="tablist"`, `role="tab"`, or class/id substrings `tab` containing the keywords `EPC`, `Floor plan`, `Map`, `Virtual tour`, `Brochure`. For each tab found, `page.click(<selector>)`, `page.waitForLoadState('networkidle')`, then harvest the panel content. For the EPC tab specifically: scrape the certificate PDF/PNG link and the displayed current/potential scores into `specifications.epc_rating`, `specifications.epc_current_score`, `specifications.epc_potential_score`. For other tabs: extract what each contract field needs and skip the rest. The traversal is principled — never hard-code a single agency's tab markup as the sole detector; the same listing surface ships with different tab implementations across CMS tenants.
322
323
  5. **Assemble.** Write `property.json` and `description.md`. Run a final consistency pass: image count in JSON matches files on disk, EPC rating in JSON matches the description.md line, agent contact in JSON matches the description.md header. `media.map` is populated iff a map screenshot landed on disk; `address.geo` is populated iff coordinates were parseable from a recognised URL pattern (and may legitimately be `null` even when `media.map` is set — see the schema notes).
323
324
 
324
325
  The skill does not prescribe which HTTP tool to use. `curl` is fine for the static HTML pages Muvin serves. If a future agent ships a JS-rendered listing page, switch to Chrome DevTools MCP or Playwright — the contract on the output is unchanged.
@@ -345,6 +346,7 @@ A delivered package that diverges substantially in shape from the reference is w
345
346
  | Saving `/tmp/muvin_property.html` or other working files inside the output directory | The directory is the deliverable. Working files get cleaned up. |
346
347
  | Hardcoding the tenant UUID | The UUID identifies the agency on Loop CRM. Different Muvin offices can have different tenant IDs. Extract it from the actual URLs on the page. |
347
348
  | Treating "EPC: TBC" as a missing field | "TBC" is information — the agent is telling you the assessment hasn't been done. Record it verbatim. |
349
+ | Recording "EPC: TBC" when the listing's EPC tab actually shows a band but the static HTML did not | Modern listings tab-hide data behind a JS tab switcher; `WebFetch` / `curl` see only the active tab. If the listing visibly carries EPC content the static HTML lacks, drive Playwright per step 4b and harvest from the tab panel. "TBC" recorded from a missed-tab extract is a silent data-loss defect, not a faithful record. |
348
350
  | Synthesizing a map when the listing has none | The rule is **extract or omit**. Postcode-centroid renders, OSM static maps, and AI-generated map artwork are all forbidden. If the heuristic detector returns nothing, write `media.map: null` and move on. |
349
351
  | Hard-coding a single CMS's map markup (`section__property--map`, `<iframe src="google.com/maps">`) as the only detector | Each agent embeds maps differently — Loop CRM uses Google iframes, custom builds use Mapbox-GL canvases, others use static-map `<img>` tags. The detection order is heuristic and provider-agnostic by design. Hard-coding one breaks every other listing. |
350
352
  | Trying to render a map provider's tiles ourselves with our own API key | The screenshot approach captures whatever the agency already pays for, with their attribution. Spinning up our own Mapbox/Google account introduces a billing relationship the user didn't ask for, and risks brand-mismatch with what the agency publishes. Screenshot the element; don't reach for an API. |
@@ -27,23 +27,24 @@ shots — it does not re-design anything.
27
27
 
28
28
  ## Output contract
29
29
 
30
- Two deliverables every time: image files and the captions that go with them.
30
+ This skill owns the **full** social-collateral deliverable. Whether invoked directly or through `make-brochure`'s `+socials` add-on, the same files land on disk — no orchestrator-side gallery emission, no split contract.
31
31
 
32
- **Image files** are written next to `page.html` so they share the same public
33
- URL prefix:
32
+ ```
33
+ output/web/
34
+ socials/
35
+ og-landscape-<hero>.jpg # 1200×628 Twitter / LinkedIn / Facebook / OG
36
+ og-square-<hero>.jpg # 1200×1200 Instagram feed
37
+ og-portrait-<hero>.jpg # 1080×1350 Instagram portrait, mobile
38
+ socials.html # gallery page — the third HTML endpoint in the bundle
39
+ social-posts.md # paste-ready captions, also linked from socials.html
40
+ og.html # template that renders the tiles, kept for re-runs
41
+ ```
34
42
 
35
- | File | Dimensions | Use |
36
- |------|------------|-----|
37
- | `og-landscape-<hero>.jpg` | 1200×628 | Twitter / LinkedIn / Facebook / OG |
38
- | `og-square-<hero>.jpg` | 1200×1200 | Instagram feed |
39
- | `og-portrait-<hero>.jpg` | 1080×1350 | Instagram portrait, mobile |
43
+ `<hero>` is `main`, `kitchen`, or `garden`. At minimum produce `og-landscape-main.jpg`; offer the full nine-variant set (landscape + square + portrait × main/kitchen/garden) when the user wants social collateral, not just a meta image.
40
44
 
41
- `<hero>` is `main`, `kitchen`, or `garden`. At minimum produce
42
- `og-landscape-main.jpg`; offer the full five-variant set (landscape + square +
43
- three portraits) when the user wants social collateral, not just a meta image.
45
+ **Gallery page (`socials.html`)** sits at the root of the web bundle, alongside `brochure.html` and `index.html`. It previews each tile at its actual dimensions with download links, the suggested copy from `social-posts.md` inline next to each tile, and the platform's `<meta>` snippet ready to paste into a page `<head>`. Brand it from the same DESIGN.md tokens used for the brochure — same `:root` palette, same display family, same accent.
44
46
 
45
- **Captions** are written into `output/web/social-posts.md`, one section per
46
- image, ready to paste. Every caption is generated through the `plainly` skill's
47
+ **Captions (`social-posts.md`)** are written one section per image, ready to paste. Every caption is generated through the `plainly` skill's
47
48
  register: no em-dashes, no inflation vocabulary (*discover*, *unlock*,
48
49
  *nestled*, *stunning*, *boasts*, *bespoke* where it isn't literally bespoke),
49
50
  no antithetical "it's not X, it's Y", no rhetorical openers (*Imagine…*,