2sagaco48 1.0.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 (365) hide show
  1. package/diagnostics.mjs +141 -0
  2. package/dist/compute.worker-j5ahIpF-.js +1 -0
  3. package/dist/graph.worker-DG6iGCB9.js +1 -0
  4. package/dist/index.html +2314 -0
  5. package/flatten-guide.md +248 -0
  6. package/index.html +12 -0
  7. package/package.json +38 -0
  8. package/src/App.orig.tsx +204 -0
  9. package/src/App.orig1.tsx +27 -0
  10. package/src/App.orig2.tsx +25 -0
  11. package/src/App.tsx +3 -0
  12. package/src/BaseApp.tsx +18 -0
  13. package/src/INTEGRATION_LEDGER.md +22 -0
  14. package/src/PERSIST_CANARY.orig.txt +1 -0
  15. package/src/PERSIST_CANARY.txt +1 -0
  16. package/src/REGRESSION_LEDGER.md +651 -0
  17. package/src/TEMPLATE_PIPELINE_AUDIT.md +208 -0
  18. package/src/WILLIAMS_PERSONA_GUIDE.md +62 -0
  19. package/src/chat/VeritasChat.tsx +69 -0
  20. package/src/chat/synthesis.ts +31 -0
  21. package/src/chat/tier.ts +45 -0
  22. package/src/components/AdaptersPage.orig.tsx +99 -0
  23. package/src/components/AdaptersPage.tsx +3 -0
  24. package/src/components/AdversarialPanel.tsx +136 -0
  25. package/src/components/AnchorBaselinePanel.tsx +75 -0
  26. package/src/components/AnswerPanel.tsx +60 -0
  27. package/src/components/ArtifactPanel.tsx +43 -0
  28. package/src/components/ChatApp.orig.tsx +1582 -0
  29. package/src/components/ChatApp.orig1.tsx +722 -0
  30. package/src/components/ChatApp.tsx +95 -0
  31. package/src/components/ChatAugmentPanels.tsx +73 -0
  32. package/src/components/CitationLedgerPanel.tsx +313 -0
  33. package/src/components/ComputeSandboxPanel.tsx +130 -0
  34. package/src/components/ConfigPanel.tsx +110 -0
  35. package/src/components/ControlPlanePage.tsx +195 -0
  36. package/src/components/CreativeTreeLifePage.tsx +234 -0
  37. package/src/components/CreativeTreeOfLifePanel.tsx +149 -0
  38. package/src/components/DebugTracePanel.tsx +137 -0
  39. package/src/components/DeepReasoningTrace.tsx +48 -0
  40. package/src/components/EntitySheetPanel.tsx +51 -0
  41. package/src/components/FailureModesPanel.tsx +104 -0
  42. package/src/components/GBSDashboard.tsx +239 -0
  43. package/src/components/GraphView.tsx +116 -0
  44. package/src/components/HUD.tsx +125 -0
  45. package/src/components/HypothesisPanel.tsx +67 -0
  46. package/src/components/InnovationGenomeEngine.tsx +792 -0
  47. package/src/components/InnovationPersonaGuide.tsx +348 -0
  48. package/src/components/InnovationPersonaPanel.tsx +289 -0
  49. package/src/components/LiveResourceHUD.tsx +109 -0
  50. package/src/components/LongWriterPanel.tsx +112 -0
  51. package/src/components/MainPipelineV10Bridge.tsx +72 -0
  52. package/src/components/MarkdownLite.tsx +63 -0
  53. package/src/components/MemoryInspector.tsx +38 -0
  54. package/src/components/MemoryMonitor.tsx +52 -0
  55. package/src/components/MemoryStressPanel.tsx +176 -0
  56. package/src/components/ModulesPage.tsx +171 -0
  57. package/src/components/PipelineDebugConsole.orig.tsx +1856 -0
  58. package/src/components/PipelineDebugConsole.tsx +3 -0
  59. package/src/components/PreFlightHUD.tsx +67 -0
  60. package/src/components/PrismaFetchTracePanel.tsx +87 -0
  61. package/src/components/ReportOSPanel.tsx +165 -0
  62. package/src/components/ResourceEstimatorPage.tsx +327 -0
  63. package/src/components/RichText.tsx +181 -0
  64. package/src/components/SagaOsPanel.tsx +605 -0
  65. package/src/components/SagaOsReference.tsx +421 -0
  66. package/src/components/SagaOsV2Panel.tsx +594 -0
  67. package/src/components/SagaStyleTab.tsx +382 -0
  68. package/src/components/SageBlueprintPanel.tsx +416 -0
  69. package/src/components/SharedChatInput.tsx +77 -0
  70. package/src/components/StatFinancePanel.tsx +190 -0
  71. package/src/components/StylePersonaPanel.tsx +128 -0
  72. package/src/components/TemplatesPage.tsx +300 -0
  73. package/src/components/TestPanel.tsx +63 -0
  74. package/src/components/TraceLog.tsx +89 -0
  75. package/src/components/V15CalibrationAugment.tsx +1134 -0
  76. package/src/components/V15CalibrationDialog.tsx +1871 -0
  77. package/src/components/V15Overlay.orig.tsx +120 -0
  78. package/src/components/V15Overlay.tsx +4 -0
  79. package/src/components/V15OverlayWrapper.tsx +362 -0
  80. package/src/components/V15Toggle.tsx +34 -0
  81. package/src/console/DiagnosticRecoveryPanel.tsx +358 -0
  82. package/src/console/EngineeringConsole.tsx +103 -0
  83. package/src/console/FictionSystemPanels.tsx +882 -0
  84. package/src/console/InspectorPanels.tsx +254 -0
  85. package/src/console/ManuscriptGraderPanel.tsx +182 -0
  86. package/src/console/RecursiveReviserPanel.tsx +245 -0
  87. package/src/console/SeedControlPanel.tsx +135 -0
  88. package/src/console/StoryControllerPanel.tsx +443 -0
  89. package/src/console/engineBridge.ts +258 -0
  90. package/src/console/gemini.ts +106 -0
  91. package/src/console/grading.ts +250 -0
  92. package/src/console/util.ts +45 -0
  93. package/src/fiction/continuity.ts +372 -0
  94. package/src/fiction/crash-protection.ts +111 -0
  95. package/src/fiction/diagnostics.ts +208 -0
  96. package/src/fiction/diff.ts +74 -0
  97. package/src/fiction/entity-state-machine.ts +214 -0
  98. package/src/fiction/nive-engine.ts +404 -0
  99. package/src/fiction/pipeline-selftest.ts +132 -0
  100. package/src/fiction/seed-control.ts +193 -0
  101. package/src/fiction/story-engine.ts +326 -0
  102. package/src/fiction/types.ts +68 -0
  103. package/src/flatten-guide.md +379 -0
  104. package/src/index.css +14 -0
  105. package/src/index.orig.css +13 -0
  106. package/src/lib/academic-sources.base.ts +188 -0
  107. package/src/lib/academic-sources.orig.ts +28 -0
  108. package/src/lib/academic-sources.ts +10 -0
  109. package/src/lib/advanced-math.ts +119 -0
  110. package/src/lib/adversarial-engine.base.ts +409 -0
  111. package/src/lib/adversarial-engine.ts +82 -0
  112. package/src/lib/ai-revision.ts +623 -0
  113. package/src/lib/app-state.tsx +426 -0
  114. package/src/lib/artifact-registry.ts +97 -0
  115. package/src/lib/artifacts.ts +180 -0
  116. package/src/lib/atlas-dr.ts +167 -0
  117. package/src/lib/browser-mtls.ts +127 -0
  118. package/src/lib/browser-queue.ts +221 -0
  119. package/src/lib/browser-search-scraper.base.ts +382 -0
  120. package/src/lib/browser-search-scraper.orig.ts +90 -0
  121. package/src/lib/browser-search-scraper.ts +10 -0
  122. package/src/lib/calc-interceptor.ts +82 -0
  123. package/src/lib/citation-lane-tap.ts +78 -0
  124. package/src/lib/citation-ledger-store.ts +369 -0
  125. package/src/lib/citation-ledger.ts +203 -0
  126. package/src/lib/compute-sandbox.ts +215 -0
  127. package/src/lib/compute.worker.ts +153 -0
  128. package/src/lib/connectors/gemini.ts +120 -0
  129. package/src/lib/connectors/jina.ts +233 -0
  130. package/src/lib/connectors/marketdata.ts +51 -0
  131. package/src/lib/connectors/prismafetch.base.ts +175 -0
  132. package/src/lib/connectors/prismafetch.ts +1 -0
  133. package/src/lib/connectors/serpapi.ts +65 -0
  134. package/src/lib/connectors/wikidata.ts +44 -0
  135. package/src/lib/constraints.ts +331 -0
  136. package/src/lib/continuation-detector.base.ts +153 -0
  137. package/src/lib/continuation-detector.ts +48 -0
  138. package/src/lib/contradraft.ts +168 -0
  139. package/src/lib/cors-proxy.ts +120 -0
  140. package/src/lib/coverage.ts +81 -0
  141. package/src/lib/debug/architecture-prescription.ts +556 -0
  142. package/src/lib/debug/covea-repair.ts +543 -0
  143. package/src/lib/debug/helios-ground.ts +319 -0
  144. package/src/lib/debug/intent-decomposer.ts +281 -0
  145. package/src/lib/debug/intent-lattice.ts +349 -0
  146. package/src/lib/debug/pipeline-diagnosis.ts +1149 -0
  147. package/src/lib/debug/pipeline-trace-bus.ts +424 -0
  148. package/src/lib/debug/prompt-forge.ts +678 -0
  149. package/src/lib/debug/repair-sites.ts +513 -0
  150. package/src/lib/debug/research-phase.ts +266 -0
  151. package/src/lib/debug/retrieval-context.ts +76 -0
  152. package/src/lib/debug/retrieval-hardener.ts +142 -0
  153. package/src/lib/debug/scraper-debug-runner.ts +576 -0
  154. package/src/lib/debug/scraper-forensics.ts +418 -0
  155. package/src/lib/debug/scraper-lane-roadmap.ts +136 -0
  156. package/src/lib/debug/self-test.ts +415 -0
  157. package/src/lib/debug/step-attribution.ts +211 -0
  158. package/src/lib/debug/template-rubric.ts +301 -0
  159. package/src/lib/debug/unified-innovation.ts +126 -0
  160. package/src/lib/debug/veritas-hybrid-scraper.ts +335 -0
  161. package/src/lib/defense-registry.ts +104 -0
  162. package/src/lib/defenses.ts +162 -0
  163. package/src/lib/deterministic-citation-ledger.ts +174 -0
  164. package/src/lib/elo-registry.base.ts +117 -0
  165. package/src/lib/elo-registry.ts +1 -0
  166. package/src/lib/entity-resolver.ts +291 -0
  167. package/src/lib/failure-modes.ts +267 -0
  168. package/src/lib/feature-registry.ts +69 -0
  169. package/src/lib/flaw-registry.ts +143 -0
  170. package/src/lib/flaws/_template.ts +52 -0
  171. package/src/lib/flaws/builtins.ts +63 -0
  172. package/src/lib/flaws/finance.ts +169 -0
  173. package/src/lib/flaws/fixers.ts +10 -0
  174. package/src/lib/flaws/index.ts +32 -0
  175. package/src/lib/flaws/legal.ts +157 -0
  176. package/src/lib/flaws/medical.ts +188 -0
  177. package/src/lib/flaws/original-defenses-pack.ts +81 -0
  178. package/src/lib/flaws/sample-declarative-pack.json +38 -0
  179. package/src/lib/flaws/selftest.ts +201 -0
  180. package/src/lib/flaws/software-extended.ts +125 -0
  181. package/src/lib/flaws/software-rn-webgl.ts +182 -0
  182. package/src/lib/flaws/statistics-advanced.ts +46 -0
  183. package/src/lib/flaws/statistics.ts +61 -0
  184. package/src/lib/gbse/config.ts +20 -0
  185. package/src/lib/gbse/engine.ts +226 -0
  186. package/src/lib/gbse/graph.ts +118 -0
  187. package/src/lib/gbse/graph.worker.ts +21 -0
  188. package/src/lib/gbse/tests.ts +117 -0
  189. package/src/lib/gbse/tiers.ts +65 -0
  190. package/src/lib/gbse/types.ts +94 -0
  191. package/src/lib/innovation-genome-engine-v2.orig.ts +1001 -0
  192. package/src/lib/innovation-genome-engine-v2.ts +3 -0
  193. package/src/lib/innovation-genome-engine.orig.ts +330 -0
  194. package/src/lib/innovation-genome-engine.ts +3 -0
  195. package/src/lib/innovation-genome-v10.orig.ts +314 -0
  196. package/src/lib/innovation-genome-v10.ts +2 -0
  197. package/src/lib/innovation-genome-v3.orig.ts +2015 -0
  198. package/src/lib/innovation-genome-v3.ts +2 -0
  199. package/src/lib/innovation-genome-v4.orig.ts +1959 -0
  200. package/src/lib/innovation-genome-v4.ts +2 -0
  201. package/src/lib/innovation-genome-v5.orig.ts +1210 -0
  202. package/src/lib/innovation-genome-v5.ts +2 -0
  203. package/src/lib/innovation-genome-v7.orig.ts +2549 -0
  204. package/src/lib/innovation-genome-v7.ts +2 -0
  205. package/src/lib/innovation-genome-v8.orig.ts +1485 -0
  206. package/src/lib/innovation-genome-v8.ts +2 -0
  207. package/src/lib/innovation-genome-v9.orig.ts +643 -0
  208. package/src/lib/innovation-genome-v9.ts +2 -0
  209. package/src/lib/jina.base.ts +293 -0
  210. package/src/lib/jina.ts +1 -0
  211. package/src/lib/live-telemetry.ts +61 -0
  212. package/src/lib/longwriter.ts +84 -0
  213. package/src/lib/manuscript-grade-v2.ts +298 -0
  214. package/src/lib/memory-governor.ts +173 -0
  215. package/src/lib/memory-stress-tests.ts +248 -0
  216. package/src/lib/model-intelligence.ts +48 -0
  217. package/src/lib/model-rotator.ts +75 -0
  218. package/src/lib/models.orig.ts +513 -0
  219. package/src/lib/models.ts +151 -0
  220. package/src/lib/n-deep.base.ts +592 -0
  221. package/src/lib/n-deep.ts +51 -0
  222. package/src/lib/nih-simulator.ts +56 -0
  223. package/src/lib/nih-vulnerability-fixes.ts +460 -0
  224. package/src/lib/omega-templates.base.ts +294 -0
  225. package/src/lib/omega-templates.ts +225 -0
  226. package/src/lib/omni-nexus.ts +64 -0
  227. package/src/lib/oracle-adapters.ts +67 -0
  228. package/src/lib/oracle-registry.ts +163 -0
  229. package/src/lib/orchestrator.ts +357 -0
  230. package/src/lib/output-boundary.ts +235 -0
  231. package/src/lib/overrides/vite-native-chaos-harness.ts +154 -0
  232. package/src/lib/overrides/vite-native-contract-plane.ts +245 -0
  233. package/src/lib/overrides/vite-native-doctor-plane.ts +208 -0
  234. package/src/lib/overrides/vite-native-knowledge-store.ts +267 -0
  235. package/src/lib/overrides/vite-native-policy-plane.ts +190 -0
  236. package/src/lib/overrides/vite-native-replay-plane.ts +197 -0
  237. package/src/lib/overrides/vite-native-runtime-plane.ts +106 -0
  238. package/src/lib/overrides/vite-native-scraper.ts +848 -0
  239. package/src/lib/overrides/vite-native-selftest-functional.ts +217 -0
  240. package/src/lib/overrides/vite-native-selftest.ts +183 -0
  241. package/src/lib/overrides/vite-native-snapshot-plane.ts +123 -0
  242. package/src/lib/philosophy-toolkit.ts +75 -0
  243. package/src/lib/pipeline.orig.ts +659 -0
  244. package/src/lib/pipeline.ts +42 -0
  245. package/src/lib/precache.ts +128 -0
  246. package/src/lib/py-sandbox.ts +205 -0
  247. package/src/lib/quality-score.ts +96 -0
  248. package/src/lib/quant-engine.ts +231 -0
  249. package/src/lib/quant-lib.ts +80 -0
  250. package/src/lib/reportos.ts +175 -0
  251. package/src/lib/research-os.ts +306 -0
  252. package/src/lib/resource-estimator.ts +114 -0
  253. package/src/lib/rpm-governor.ts +93 -0
  254. package/src/lib/runtime-estimator.ts +135 -0
  255. package/src/lib/sage/empty-space-v6.ts +560 -0
  256. package/src/lib/sage/empty-space-v7.ts +222 -0
  257. package/src/lib/sage/empty-space.ts +733 -0
  258. package/src/lib/sage/engine.ts +786 -0
  259. package/src/lib/sage/index.ts +17 -0
  260. package/src/lib/sage/judge.ts +246 -0
  261. package/src/lib/sage/prng.ts +53 -0
  262. package/src/lib/sage/reality-grounding.ts +380 -0
  263. package/src/lib/sage/repetition.ts +151 -0
  264. package/src/lib/sage/saga-os-v2-engines.ts +1870 -0
  265. package/src/lib/sage/saga-os-v2.ts +274 -0
  266. package/src/lib/sage/saga-os-v3-core.ts +1491 -0
  267. package/src/lib/sage/saga-os-v3-release.ts +739 -0
  268. package/src/lib/sage/saga-os-v4-aureate.ts +1161 -0
  269. package/src/lib/sage/saga-os-v4.ts +212 -0
  270. package/src/lib/sage/saga-os-v5.ts +205 -0
  271. package/src/lib/sage/saga-os-v6.ts +346 -0
  272. package/src/lib/sage/saga-os-v7.ts +314 -0
  273. package/src/lib/sage/saga-os-v8.ts +505 -0
  274. package/src/lib/sage/saga-os.ts +329 -0
  275. package/src/lib/sage/taxonomy.ts +403 -0
  276. package/src/lib/sage/unified-roll.ts +524 -0
  277. package/src/lib/sage/worked-sketches.ts +44 -0
  278. package/src/lib/sage.ts +166 -0
  279. package/src/lib/scraper-debug-bus.ts +53 -0
  280. package/src/lib/scraper-enhanced.orig.ts +153 -0
  281. package/src/lib/scraper-enhanced.ts +10 -0
  282. package/src/lib/scraper-hardener.base.orig.ts +155 -0
  283. package/src/lib/scraper-hardener.base.ts +317 -0
  284. package/src/lib/scraper-hardener.ts +1 -0
  285. package/src/lib/scraper-palisade/palisade-adjudicator.orig.ts +419 -0
  286. package/src/lib/scraper-palisade/palisade-adjudicator.ts +13 -0
  287. package/src/lib/scraper-vnext/arbiter-omega.orig.ts +688 -0
  288. package/src/lib/scraper-vnext/arbiter-omega.ts +13 -0
  289. package/src/lib/scraper-vnext/canonical-portfolio-augments.ts +479 -0
  290. package/src/lib/scraper-vnext/canonical-portfolio-orchestrator.orig.ts +1529 -0
  291. package/src/lib/scraper-vnext/canonical-portfolio-orchestrator.ts +13 -0
  292. package/src/lib/scraper-vnext/conclave-omega.ts +1830 -0
  293. package/src/lib/scraper-vnext/content-extractor-v2.ts +226 -0
  294. package/src/lib/scraper-vnext/diagnostics-suite.ts +36 -0
  295. package/src/lib/scraper-vnext/epistemic-packer.ts +97 -0
  296. package/src/lib/scraper-vnext/fusion-v2.ts +65 -0
  297. package/src/lib/scraper-vnext/hydra-reader.orig.ts +1216 -0
  298. package/src/lib/scraper-vnext/hydra-reader.ts +13 -0
  299. package/src/lib/scraper-vnext/native-scraper-browser-vnext.orig.ts +91 -0
  300. package/src/lib/scraper-vnext/native-scraper-browser-vnext.ts +13 -0
  301. package/src/lib/scraper-vnext/nexus-consensus.orig.ts +905 -0
  302. package/src/lib/scraper-vnext/nexus-consensus.ts +13 -0
  303. package/src/lib/scraper-vnext/portfolio-consensus-adjudicator.ts +804 -0
  304. package/src/lib/scraper-vnext/portfolio-consensus-memory.ts +377 -0
  305. package/src/lib/scraper-vnext/portfolio-terminal-governor.ts +548 -0
  306. package/src/lib/scraper-vnext/query-strategist.orig.ts +224 -0
  307. package/src/lib/scraper-vnext/query-strategist.ts +423 -0
  308. package/src/lib/scraper-vnext/retrieval-accelerator.ts +708 -0
  309. package/src/lib/scraper-vnext/retrieval-audit-augments.ts +477 -0
  310. package/src/lib/scraper-vnext/retrieval-control-plane.ts +904 -0
  311. package/src/lib/scraper-vnext/retrieval-policy-augments.ts +358 -0
  312. package/src/lib/scraper-vnext/safe-fetch-v2.ts +157 -0
  313. package/src/lib/scraper-vnext/sentinel-omega.ts +56 -0
  314. package/src/lib/scraper-vnext/sentinel-orchestrator.ts +69 -0
  315. package/src/lib/scraper-vnext/sibyl-oracle.orig.ts +413 -0
  316. package/src/lib/scraper-vnext/sibyl-oracle.ts +13 -0
  317. package/src/lib/scraper-vnext/smart-read-v2.ts +55 -0
  318. package/src/lib/scraper-vnext/spa-rescue-bridge.ts +608 -0
  319. package/src/lib/scraper-vnext/strata-engine.orig.ts +2666 -0
  320. package/src/lib/scraper-vnext/strata-engine.ts +13 -0
  321. package/src/lib/scraper-vnext/structured-source-adapter.orig.ts +369 -0
  322. package/src/lib/scraper-vnext/structured-source-adapter.ts +34 -0
  323. package/src/lib/scraper-vnext/terminal-complete.ts +224 -0
  324. package/src/lib/scraper-vnext/terminal-final.ts +277 -0
  325. package/src/lib/scraper-vnext/terminal-saturation.ts +345 -0
  326. package/src/lib/scraper-vnext/terminal-wire.ts +425 -0
  327. package/src/lib/scraper-vnext/vanguard-titanium.orig.ts +467 -0
  328. package/src/lib/scraper-vnext/vanguard-titanium.ts +17 -0
  329. package/src/lib/search-cache.ts +138 -0
  330. package/src/lib/sloop-runner.base.ts +223 -0
  331. package/src/lib/sloop-runner.ts +104 -0
  332. package/src/lib/sloop.ts +114 -0
  333. package/src/lib/small-model-adapters.ts +82 -0
  334. package/src/lib/sscp.ts +86 -0
  335. package/src/lib/system-map.ts +54 -0
  336. package/src/lib/uni-node.ts +86 -0
  337. package/src/lib/universal-rigor-guard.ts +433 -0
  338. package/src/lib/v15-gate-testbed.ts +274 -0
  339. package/src/lib/v15-gemini.base.ts +89 -0
  340. package/src/lib/v15-gemini.ts +1 -0
  341. package/src/lib/v15-grounding.orig.ts +241 -0
  342. package/src/lib/v15-grounding.ts +79 -0
  343. package/src/lib/v15-pipeline.base.ts +769 -0
  344. package/src/lib/v15-pipeline.orig.ts +1154 -0
  345. package/src/lib/v15-pipeline.ts +674 -0
  346. package/src/lib/v15-questions.ts +64 -0
  347. package/src/lib/v15-rate-limiter.orig.ts +91 -0
  348. package/src/lib/v15-rate-limiter.ts +48 -0
  349. package/src/lib/v15-state.base.ts +87 -0
  350. package/src/lib/v15-state.ts +28 -0
  351. package/src/lib/visual-table-generator.tsx +207 -0
  352. package/src/lib/wasm-runtime.ts +133 -0
  353. package/src/lib/williams-persona-guide.ts +265 -0
  354. package/src/lib/williams-style.base.ts +464 -0
  355. package/src/lib/williams-style.ts +59 -0
  356. package/src/lib/worker-pool.ts +96 -0
  357. package/src/lib/writing-tiers.ts +125 -0
  358. package/src/main.orig.tsx +10 -0
  359. package/src/main.tsx +10 -0
  360. package/src/utils/cn.orig.ts +6 -0
  361. package/src/utils/cn.ts +6 -0
  362. package/src/vite-env.d.ts +1 -0
  363. package/tsconfig.json +31 -0
  364. package/unify.mjs +537 -0
  365. package/vite.config.ts +18 -0
@@ -0,0 +1,222 @@
1
+ /**
2
+ * SAGE Empty Space / Grounded Space canonical database — Turn 7 (append-only).
3
+ * ---------------------------------------------------------------------------
4
+ * Source: user-provided P7 canonical entries in this conversation turn
5
+ * ("PART A — COMPLETION OF DEFERRED BANDS (opus-4-7 ledger)").
6
+ *
7
+ * NOTE ON DEDUPLICATION (honest): the P7 paste repeats the same band blocks
8
+ * (ES-HWE … ES-HGA) many times over. Each UNIQUE row id is transcribed exactly
9
+ * once here; the literal duplicate re-pastes of identical id+text blocks are not
10
+ * re-emitted, because a database with the same id N times is a defect, not
11
+ * fidelity. Every distinct id/name/desc/tag present in the paste is included
12
+ * verbatim. Ids that already exist in the P6 database (ES-HAI001-008,
13
+ * ES-HEC001-008) are intentionally omitted here to avoid duplicate ids; the P6
14
+ * copies remain authoritative and unchanged.
15
+ *
16
+ * Rows are stored as pipe-table raw text and parsed into the shared
17
+ * [id,name,desc,tag] tuple shape. No external source or search was used.
18
+ */
19
+ import type { V6Row } from "./empty-space-v6";
20
+
21
+ function rows(raw: string): V6Row[] {
22
+ return raw
23
+ .trim()
24
+ .split(/\n+/)
25
+ .map((line) => line.trim())
26
+ .filter(Boolean)
27
+ .map((line) => {
28
+ const parts = line.split("|").map((p) => p.trim());
29
+ const [id, name, ...rest] = parts;
30
+ const tag = rest.pop() ?? "";
31
+ return [id, name, rest.join(" | "), tag] as V6Row;
32
+ });
33
+ }
34
+
35
+ // ── §ES-HWE — Weapons as Institutional Primitive ────────────────────────────
36
+ const ES_HWE = rows(`
37
+ ES-HWE001 | Weapon Confessor | when weapon is drawn, wielder must confess intent to civic witness; drawn undeclared is illegal | ≠ open carry: intent-registration | [candidate][play:H]
38
+ ES-HWE002 | Weapon Marriage | ownership of specific weapon passes through household; the weapon has a genealogy and duties | ≠ heirloom: obligations | [candidate][play:H]
39
+ ES-HWE003 | Weapon Rest | period during which weapon may not be used; drawn but not employed for a year | ≠ sheathed: mandatory abstention | [candidate][play:M]
40
+ ES-HWE004 | Non-Weapon Witness | person licensed to attend weapon-events specifically to be unarmed | ≠ referee: unarmed by law | [candidate][play:H]
41
+ ES-HWE005 | Retired-Weapon Custody | weapons formally retired are stored with communal responsibility; retirement is a ceremony | ≠ decommissioning: participatory | [candidate][play:H]
42
+ ES-HWE006 | Weapon-Handover Ritual | transfer of ownership requires both parties to perform a specific gesture in the presence of a witness | ≠ sale: ceremonial | [candidate][play:H]
43
+ ES-HWE007 | Weapon-Name Registry | weapons are individually named and registered; using an unregistered weapon is a crime | ≠ serial number: personal name | [candidate][play:M]
44
+ ES-HWE008 | Weapon-Mourning Period | when a weapon is destroyed, the owner must observe a formal mourning period | ≠ disposal: ritual | [candidate][play:H]
45
+ ES-HWE009 | Weapon-Neutral Zone | specific public spaces where drawing a weapon is automatically illegal regardless of intent | ≠ gun-free zone: absolute | [candidate][play:H]
46
+ ES-HWE010 | Weapon-Proxy | a person legally authorized to carry and use a weapon on behalf of another who is forbidden to do so | ≠ bodyguard: proxy authority | [candidate][play:M]
47
+ ES-HWE011 | Weapon-Season | certain weapons are legal only during specific seasons (hunting, ceremonial) | ≠ hunting season: weapon-specific | [candidate][play:H]
48
+ ES-HWE012 | Weapon-Vow | citizens who take formal vows never to use weapons; the vow is a public status | [candidate][play:H]
49
+ ES-HWE013 | Weapon-Archive | a public institution that holds decommissioned weapons for historical record | [candidate][play:M]
50
+ ES-HWE014 | Weapon-Inspection | periodic mandatory inspections of all registered weapons by civic officials | [candidate][play:H]
51
+ ES-HWE015 | Weapon-Dispute Court | specialized court for disputes involving weapons (ownership, use, damage) | [candidate][play:H]
52
+ `);
53
+
54
+ // ── §ES-HAR — Architecture as Institutional Primitive ───────────────────────
55
+ const ES_HAR = rows(`
56
+ ES-HAR001 | Building Godparent | each building has assigned godparent who represents it in disputes; role passes through generations | ≠ owner: sworn advocate | [candidate][play:H]
57
+ ES-HAR002 | Wall Council | when walls between properties need decisions, both households must appoint delegates; walls are constitutional | ≠ HOA: wall-specific | [candidate][play:M]
58
+ ES-HAR003 | Anti-Renovation Clause | some spaces may not be modified; renovating is legally impossible | ≠ historic preservation: absolute | [candidate][play:H]
59
+ ES-HAR004 | Threshold Ceremony | crossing certain thresholds requires accompaniment by householder; unaccompanied crossing is trespass | ≠ etiquette: crime | [candidate][play:H]
60
+ ES-HAR005 | Room-Purpose Charter | rooms have designated purposes recorded at construction; deviating requires community re-designation | ≠ zoning: room-scale | [candidate][play:H]
61
+ ES-HAR006 | Building-Testator | buildings have named heirs who inherit maintenance responsibility | [candidate][play:H]
62
+ ES-HAR007 | Un-Named Building | some structures are legally required to remain unnamed; anonymity is preserved | [candidate][play:H]
63
+ ES-HAR008 | Architectural Contract | agreements sealed by both parties adding to a building simultaneously | [candidate][play:H]
64
+ ES-HAR009 | Deconstruction Witness | present at every demolition; testifies to the building's history | [candidate][play:H]
65
+ ES-HAR010 | Building Sponsor | a citizen who sponsors a public building for their lifetime; their reputation is the building's | [candidate][play:H]
66
+ ES-HAR011 | Room-Namer | professionals who name rooms in new buildings; a career of nomenclature | [candidate][play:M]
67
+ ES-HAR012 | Building-Archive | public record of every building's construction, modification, and demolition | [candidate][play:H]
68
+ ES-HAR013 | Building-Inspection | periodic mandatory inspections of all buildings by civic officials | [candidate][play:H]
69
+ ES-HAR014 | Building-Dispute Court | specialized court for disputes involving buildings (ownership, use, damage, modification) | [candidate][play:H]
70
+ ES-HAR015 | Building-Vow | citizens who take formal vows to maintain specific buildings; the vow is a public status | [candidate][play:H]
71
+ `);
72
+
73
+ // ── §ES-HFI — Fire as Institutional Primitive ───────────────────────────────
74
+ const ES_HFI = rows(`
75
+ ES-HFI001 | Fire Ambassador | represents specific fire to civic bodies (kitchen fire, hearth fire, workshop fire); each has its own concerns | ≠ arsonist: advocate | [candidate][play:M]
76
+ ES-HFI002 | Ash Executor | when a fire is intentionally extinguished, someone is responsible for the ashes' formal disposition | ≠ cleanup: sacred duty | [candidate][play:H]
77
+ ES-HFI003 | Communal Hearth | one fire in the village that cannot be extinguished; keeper role rotates | ≠ eternal flame: participatory | [candidate][play:H]
78
+ ES-HFI004 | Fire Refusal | citizens who take vows to never light a fire themselves; receive their fire from others through ceremony | ≠ vegetarian equivalent: fire-abstemption | [candidate][play:M]
79
+ ES-HFI005 | Fire Baptism | children introduced to household fire at defined age; introduction is documented | ≠ christening: elemental | [candidate][play:H]
80
+ ES-HFI006 | Household Hearth Register | each household's fire is inventoried; extinguishing without registration is illegal | [candidate][play:H]
81
+ ES-HFI007 | Fire Ambassador (Neighbor) | maintains ceremonial flame between neighboring households | [candidate][play:H]
82
+ ES-HFI008 | Ceremonial Extinguishment | rituals for putting out a specific fire; the extinguishing is the ceremony | [candidate][play:H]
83
+ ES-HFI009 | Fire-Inheritance | when a household dissolves, its ceremonial fire is transferred to another; matter of ceremony | [candidate][play:H]
84
+ ES-HFI010 | Fire Vow | citizens who commit to keeping a specific fire alive continuously; life-vows | [candidate][play:H]
85
+ ES-HFI011 | Fireless Household | families who by choice maintain no fire; their identity is defined by cold | [candidate][play:H]
86
+ ES-HFI012 | Fire Witness | present when major fires are lit; deposition-grade testimony about kindling | [candidate][play:H]
87
+ ES-HFI013 | Fire-Archive | public institution that holds decommissioned fires for historical record | [candidate][play:M]
88
+ ES-HFI014 | Fire-Inspection | periodic mandatory inspections of all fires by civic officials | [candidate][play:H]
89
+ ES-HFI015 | Fire-Dispute Court | specialized court for disputes involving fires (ownership, use, damage) | [candidate][play:H]
90
+ `);
91
+
92
+ // ── §ES-HAS — Astronomy / Celestial Institutions ────────────────────────────
93
+ const ES_HAS = rows(`
94
+ ES-HAS001 | Star Ambassador | civic representative of a constellation's interests in planning light/noise | ≠ astrology protagonist | [candidate][play:M]
95
+ ES-HAS002 | Moon-Phase Franchise | rights rotate by lunar phase | ≠ werewolf cadence | [candidate][play:H]
96
+ ES-HAS003 | Eclipse Amnesty | short extinguishing of low-level debts/grievances at eclipse | ≠ jubilee rename | [candidate][play:H]
97
+ ES-HAS004 | Constellation Adoption | family adopts a constellation as kin with duties to dark-sky upkeep | ≠ zodiac identity | [candidate][play:M]
98
+ ES-HAS005 | Transit Marriage Window | marriages valid only during announced planetary transit windows | ≠ auspicious-date comedy | [candidate][play:H]
99
+ ES-HAS006 | Light-Debt to the Sky | cities bank outdoor lighting minutes; overspend requires dark restitution nights | ≠ Earth Hour PR | [candidate][play:H]
100
+ ES-HAS007 | Comet Census | rare visitors get temporary legal personhood for duration of visibility | ≠ omen tale | [candidate][play:M]
101
+ ES-HAS008 | Meridian Court | disputes heard only at local solar noon; time itself is the courthouse | ≠ ordinary calendar court | [candidate][play:H]
102
+ `);
103
+
104
+ // ── §ES-HBI — Body-Modification Institutions ────────────────────────────────
105
+ const ES_HBI = rows(`
106
+ ES-HBI001 | Modification Registry | scars/tattoos/surgeries require civic reason codes | ≠ medical chart privacy story | [candidate][play:H]
107
+ ES-HBI002 | Body-Modification Council | commons regulation of permitted changes | ≠ fashion police | [candidate][play:M]
108
+ ES-HBI003 | Un-Modified Vow | institutional role of the deliberately unmodified | ≠ purity cult stereotype | [candidate][play:M]
109
+ ES-HBI004 | Reversibility Bond | mods allowed only if funded reverse path exists | ≠ cyberpunk chrome | [candidate][play:H]
110
+ ES-HBI005 | Proxy-Pain Contract | one person legally bears a modification for another's qualification | ≠ sacrifice cliché: bureaucratic | [candidate][play:M]
111
+ ES-HBI006 | Scar Sabbatical | mandatory unmodified years between alterations | ≠ addiction arc | [candidate][play:H]
112
+ ES-HBI007 | Inherited Mark Dispute | whether parental mods create claims/duties on children | ≠ genetic destiny SF | [candidate][play:H]
113
+ ES-HBI008 | Functional-Only Clinic | changes allowed solely for articulated task performance, never expression | ≠ disability clinic rename | [candidate][play:H]
114
+ `);
115
+
116
+ // ── §ES-HPU — Punctuation / Writing-System Institutions ─────────────────────
117
+ const ES_HPU = rows(`
118
+ ES-HPU001 | Comma Registrar | official disputes over comma placement in statutes | ≠ style guide humor | [candidate][play:M]
119
+ ES-HPU002 | Silent Letter Custodian | duty to preserve unpronounced letters | ≠ spelling bee | [candidate][play:M]
120
+ ES-HPU003 | Dash Doctrine | legal difference among hyphen/en/em dash | ≠ copyedit slice | [candidate][play:M]
121
+ ES-HPU004 | Full-Stop Sabbath | periodic ban on declarative sentences in civic speech; only questions allowed | ≠ rhetoric game | [candidate][play:H]
122
+ ES-HPU005 | Orthography Schism Board | manages coexisting spellings without declaring a winner | ≠ language academy war | [candidate][play:H]
123
+ ES-HPU006 | Redaction Meter | public measure of how much official text is removed; elections turn on the meter | ≠ censorship plot alone | [candidate][play:H]
124
+ ES-HPU007 | Marginalia Franchise | right to write in public library margins is licensed and heritable | ≠ vandalism | [candidate][play:H]
125
+ ES-HPU008 | Blank-Page Ration | citizens receive limited certified blank pages per year for binding promises | ≠ paper shortage dystopia | [candidate][play:H]
126
+ `);
127
+
128
+ // ── §ES-HCO — Color Institutions ────────────────────────────────────────────
129
+ const ES_HCO = rows(`
130
+ ES-HCO001 | Color Franchise | family-owned rights to wear hues | ≠ sumptuary cliché only if property+debt engine present — kept with debt link | [candidate][play:H]
131
+ ES-HCO002 | Color Registrar | new pigments need sanction | [candidate][play:M]
132
+ ES-HCO003 | Non-Color Days | mandatory desaturation calendar | [candidate][play:H]
133
+ ES-HCO004 | Color-Debt System | wearing owned colors incurs royalties | [candidate][play:M]
134
+ ES-HCO005 | Named-Color Ceremony | civic auction of hue names | [candidate][play:M]
135
+ ES-HCO006 | Widow's Saturation Cap | grief reduces allowed chroma by statute over time | ≠ mourning clothes custom: quantitative | [candidate][play:H]
136
+ ES-HCO007 | Safety-Chroma Commons | high-visibility colors are public property; private fashion may not monopolize them | [candidate][play:H]
137
+ ES-HCO008 | Counterfeit Indigo Court | trials over false dye claims as identity fraud | [candidate][play:H]
138
+ `);
139
+
140
+ // ── §ES-HSU — Substances / Intoxicants Institutions ─────────────────────────
141
+ const ES_HSU = rows(`
142
+ ES-HSU001 | Ceremonial Sobriety Office | rotating mandated sober decision-makers | [candidate][play:H]
143
+ ES-HSU002 | Intoxication License | some acts valid only under specified intoxication | ≠ frat comedy | [candidate][play:M]
144
+ ES-HSU003 | Substance-Genealogy | inherited consumption rights in specific staples | [candidate][play:H]
145
+ ES-HSU004 | Pairing Magistrate | matches substances to occasions; mismatch voids contracts signed there | [candidate][play:M]
146
+ ES-HSU005 | Abstention Exchange | markets in tradable sobriety credits among guilds | [candidate][play:H]
147
+ ES-HSU006 | Hangover Constituency | political bloc of those harmed by others' licensed excess; holds veto hours | [candidate][play:H]
148
+ ES-HSU007 | Memory-Porous Draught Law | drinks categorized by whether testimony afterward is admissible | [candidate][play:H]
149
+ ES-HSU008 | Ferment Calendar | civic timekeeping via communal batches; spoilage amends the year | [candidate][play:H]
150
+ `);
151
+
152
+ // ── §ES-HGA — Games / Chance Institutions ───────────────────────────────────
153
+ const ES_HGA = rows(`
154
+ ES-HGA001 | Rotating Chance Master | annual "lucky one" whose lots decide minor public goods | [candidate][play:H]
155
+ ES-HGA002 | Game Court | binding dispute resolution by prescribed games | [candidate][play:H]
156
+ ES-HGA003 | Play Rest | mandatory game-playing work ban periods | [candidate][play:H]
157
+ ES-HGA004 | Losing Rites | losers gain ceremonial offices | [candidate][play:H]
158
+ ES-HGA005 | Stake-Cap Confessor | hears confessions of intended wagers before caps apply | [candidate][play:H]
159
+ ES-HGA006 | Nested Bet Ban | forbids wagers on outcomes of civic games of chance themselves | [candidate][play:M]
160
+ ES-HGA007 | Skill-Chance Partition Inspectors | certify which contests are luck vs skill for legal regimes | [candidate][play:H]
161
+ ES-HGA008 | Ante of Attention | entry stake is minutes of public listening to opponents' cases | [candidate][play:H]
162
+ `);
163
+
164
+ // ── §ES-HLA — Landscape Formation Institutions ──────────────────────────────
165
+ const ES_HLA = rows(`
166
+ ES-HLA001 | Erosion Witness | lifetime testimony on landform change as legal record | [candidate][play:H]
167
+ ES-HLA002 | Slope Rights | distinct tenure for slopes vs flats | [candidate][play:M]
168
+ ES-HLA003 | River-Bend Marriage | households wed to bends; reconsecrate annually | [candidate][play:H]
169
+ ES-HLA004 | Landscape-Change Amnesty | natural shifts extinguish dependent claims | [candidate][play:H]
170
+ ES-HLA005 | Sediment Parliament | upstream/downstream allocate silt as resource/hazard | [candidate][play:H]
171
+ ES-HLA006 | Terrace Guild | builds slow earthworks whose payers are unborn users | [candidate][play:H]
172
+ ES-HLA007 | Subsidence Choir | residents sonify measured sinking to keep risk audible | [candidate][play:M]
173
+ ES-HLA008 | Coastline Retreat Notary | records managed retreat parcels before water takes them | [candidate][play:H]
174
+ `);
175
+
176
+ // ── §ES-HBR — Breath Institutions ───────────────────────────────────────────
177
+ const ES_HBR = rows(`
178
+ ES-HBR001 | Breath Notary | shared exhalation seals documents | [candidate][play:M]
179
+ ES-HBR002 | Anti-Breathing Ceremony | collective breath-holds as the rite itself | [candidate][play:M]
180
+ ES-HBR003 | Breath Debt | accounting for breathing another's air in sealed spaces | [candidate][play:M][harness: submarine/clinic/crowd-law staging]
181
+ ES-HBR004 | Cadence Drill Compact | neighborhoods synchronize breath/walk cadences during smoke events | [candidate][play:H]
182
+ ES-HBR005 | First/Last Breath Witness | lifecycle officer for birth/death respiration marks | [candidate][play:H]
183
+ ES-HBR006 | Whisper Franchise | legal rights to use ultra-low voice bands in public stacks | [candidate][play:H]
184
+ `);
185
+
186
+ // ── §ES-HTO — Touch Institutions ────────────────────────────────────────────
187
+ const ES_HTO = rows(`
188
+ ES-HTO001 | Contact Registrar | logs meaningful non-familial touches | [candidate][play:M]
189
+ ES-HTO002 | Non-Touch Vow | person-specific untouchability pacts | [candidate][play:H]
190
+ ES-HTO003 | Handclasp Notary | notarized clasp as contract form | [candidate][play:H]
191
+ ES-HTO004 | Contagious Touch | ceremonial status transmission by contact webs | [candidate][play:M]
192
+ ES-HTO005 | Glove Census | classifies hand-cover meanings; bare palm hours rationed | [candidate][play:H]
193
+ ES-HTO006 | Repair-Touch License | who may touch broken infrastructure during outages | [candidate][play:H]
194
+ `);
195
+
196
+ // ── §ES-HSC — Scent Institutions ────────────────────────────────────────────
197
+ const ES_HSC = rows(`
198
+ ES-HSC001 | Scent Franchise | family-owned signature scents; wearing another's is impersonation | [candidate][play:H]
199
+ ES-HSC002 | Odor Advocate | represents necessary offensive smells in negotiation | [candidate][play:M]
200
+ ES-HSC003 | Smell Executor | posthumous release of a person's scent-signature | [candidate][play:H]
201
+ ES-HSC004 | Scent-Debt Ledger | proximity borrowing of smell creates obligation | [candidate][play:M]
202
+ ES-HSC005 | Anosmia Accommodations Board | redesigns civic cues when smell-infrastructure fails populations | [candidate][play:H]
203
+ ES-HSC006 | Smoke-Index Choir | public singers map air quality to permitted outdoor rites | [candidate][play:H]
204
+ `);
205
+
206
+ export const V7_EMPTY_SPACE_BANDS: { key: string; label: string; rows: V6Row[]; rollable: boolean }[] = [
207
+ { key: "ES-HWE", label: "Weapons as institutional primitive", rows: ES_HWE, rollable: true },
208
+ { key: "ES-HAR", label: "Architecture as institutional primitive", rows: ES_HAR, rollable: true },
209
+ { key: "ES-HFI", label: "Fire as institutional primitive", rows: ES_HFI, rollable: true },
210
+ { key: "ES-HAS", label: "Astronomy / celestial institutions", rows: ES_HAS, rollable: true },
211
+ { key: "ES-HBI", label: "Body-modification institutions", rows: ES_HBI, rollable: true },
212
+ { key: "ES-HPU", label: "Punctuation / writing-system institutions", rows: ES_HPU, rollable: true },
213
+ { key: "ES-HCO", label: "Color institutions", rows: ES_HCO, rollable: true },
214
+ { key: "ES-HSU", label: "Substances / intoxicants institutions", rows: ES_HSU, rollable: true },
215
+ { key: "ES-HGA", label: "Games / chance institutions", rows: ES_HGA, rollable: true },
216
+ { key: "ES-HLA", label: "Landscape-formation institutions", rows: ES_HLA, rollable: true },
217
+ { key: "ES-HBR", label: "Breath institutions", rows: ES_HBR, rollable: true },
218
+ { key: "ES-HTO", label: "Touch institutions", rows: ES_HTO, rollable: true },
219
+ { key: "ES-HSC", label: "Scent institutions", rows: ES_HSC, rollable: true },
220
+ ];
221
+
222
+ export const V7_EMPTY_SPACE_TOTAL = V7_EMPTY_SPACE_BANDS.reduce((n, b) => n + b.rows.length, 0);