@jam-overture/loom 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/README.md +3 -1
  2. package/dist/application/application.d.ts +109 -0
  3. package/dist/application/application.js +97 -0
  4. package/dist/application/memory.d.ts +20 -0
  5. package/dist/application/memory.js +79 -0
  6. package/dist/application/store.d.ts +101 -0
  7. package/dist/application/store.js +25 -0
  8. package/dist/audience/audience.d.ts +36 -0
  9. package/dist/audience/audience.js +41 -0
  10. package/dist/audience/compose.d.ts +112 -0
  11. package/dist/audience/compose.js +134 -0
  12. package/dist/audience/memory.d.ts +14 -0
  13. package/dist/audience/memory.js +71 -0
  14. package/dist/audience/overlay-store.d.ts +343 -0
  15. package/dist/audience/overlay-store.js +217 -0
  16. package/dist/audience/rule.d.ts +121 -0
  17. package/dist/audience/rule.js +78 -0
  18. package/dist/cli/index.d.ts +3 -4
  19. package/dist/cli/index.js +3 -4
  20. package/dist/cli/templates.js +19 -0
  21. package/dist/data/adapter.d.ts +9 -1
  22. package/dist/data/adapter.js +2 -0
  23. package/dist/data/plan.js +0 -0
  24. package/dist/data/resolution.d.ts +23 -1
  25. package/dist/data/resolve.d.ts +31 -4
  26. package/dist/data/resolve.js +11 -3
  27. package/dist/ids.d.ts +10 -0
  28. package/dist/ids.js +11 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +1 -0
  31. package/dist/interpretation/anthropic.d.ts +1 -1
  32. package/dist/interpretation/anthropic.js +2 -22
  33. package/dist/interpretation/client.d.ts +1 -1
  34. package/dist/interpretation/materialize.js +67 -22
  35. package/dist/interpretation/openai-compatible.d.ts +36 -0
  36. package/dist/interpretation/openai-compatible.js +79 -0
  37. package/dist/interpretation/status.d.ts +19 -0
  38. package/dist/interpretation/status.js +26 -0
  39. package/dist/live/index.d.ts +73 -0
  40. package/dist/live/index.js +73 -0
  41. package/dist/live/pages.d.ts +187 -0
  42. package/dist/live/pages.js +161 -0
  43. package/dist/live/pull.d.ts +147 -0
  44. package/dist/live/pull.js +398 -0
  45. package/dist/live/pulling.d.ts +79 -0
  46. package/dist/live/pulling.js +117 -0
  47. package/dist/live/window.d.ts +129 -0
  48. package/dist/live/window.js +132 -0
  49. package/dist/patch.d.ts +54 -0
  50. package/dist/patch.js +44 -0
  51. package/dist/project/closing.d.ts +51 -0
  52. package/dist/project/closing.js +53 -0
  53. package/dist/project/memory.d.ts +20 -0
  54. package/dist/project/memory.js +97 -0
  55. package/dist/project/project.d.ts +90 -0
  56. package/dist/project/project.js +91 -0
  57. package/dist/project/store.d.ts +135 -0
  58. package/dist/project/store.js +41 -0
  59. package/dist/registered.d.ts +64 -0
  60. package/dist/registered.js +118 -0
  61. package/dist/render/addressed.d.ts +35 -0
  62. package/dist/render/addressed.js +79 -0
  63. package/dist/render/behaviour-adjust.d.ts +11 -19
  64. package/dist/render/behaviour-adjust.js +75 -21
  65. package/dist/render/behaviour-present.d.ts +8 -0
  66. package/dist/render/behaviour-present.js +57 -6
  67. package/dist/render/behaviour.d.ts +98 -17
  68. package/dist/render/behaviour.js +91 -26
  69. package/dist/render/control-name.d.ts +68 -0
  70. package/dist/render/control-name.js +37 -0
  71. package/dist/render/diagnostics.d.ts +72 -0
  72. package/dist/render/diagnostics.js +7 -0
  73. package/dist/render/document-theme.d.ts +70 -0
  74. package/dist/render/document-theme.js +139 -0
  75. package/dist/render/editable.d.ts +15 -1
  76. package/dist/render/editable.js +13 -1
  77. package/dist/render/expected.d.ts +98 -0
  78. package/dist/render/expected.js +88 -0
  79. package/dist/render/index.d.ts +4 -0
  80. package/dist/render/index.js +4 -0
  81. package/dist/render/reads.d.ts +11 -0
  82. package/dist/render/reads.js +12 -1
  83. package/dist/render/render.d.ts +11 -0
  84. package/dist/render/render.js +294 -53
  85. package/dist/render/request.d.ts +8 -1
  86. package/dist/render/request.js +1 -0
  87. package/dist/render/slots.d.ts +52 -0
  88. package/dist/render/slots.js +24 -0
  89. package/dist/render/theme.d.ts +54 -1
  90. package/dist/render/theme.js +23 -1
  91. package/dist/render/unshown.d.ts +152 -0
  92. package/dist/render/unshown.js +80 -0
  93. package/dist/runtime/analysis.d.ts +94 -9
  94. package/dist/runtime/analysis.js +54 -9
  95. package/dist/runtime/assessment.d.ts +36 -2
  96. package/dist/runtime/assessment.js +27 -2
  97. package/dist/runtime/auto-apply-ceiling.d.ts +54 -0
  98. package/dist/runtime/auto-apply-ceiling.js +66 -0
  99. package/dist/runtime/checks.d.ts +148 -0
  100. package/dist/runtime/checks.js +112 -0
  101. package/dist/runtime/disposition.d.ts +96 -0
  102. package/dist/runtime/disposition.js +46 -0
  103. package/dist/runtime/gate.js +91 -10
  104. package/dist/runtime/index.d.ts +4 -0
  105. package/dist/runtime/index.js +4 -0
  106. package/dist/runtime/irreversibility.d.ts +64 -0
  107. package/dist/runtime/irreversibility.js +45 -0
  108. package/dist/runtime/nesting.d.ts +13 -1
  109. package/dist/runtime/nesting.js +41 -24
  110. package/dist/runtime/pipeline.d.ts +43 -0
  111. package/dist/runtime/pipeline.js +10 -2
  112. package/dist/runtime/policy-change.d.ts +93 -0
  113. package/dist/runtime/policy-change.js +305 -0
  114. package/dist/runtime/policy-log.d.ts +406 -0
  115. package/dist/runtime/policy-log.js +285 -0
  116. package/dist/runtime/policy.d.ts +8 -6
  117. package/dist/runtime/policy.js +5 -2
  118. package/dist/runtime/repointing.js +0 -0
  119. package/dist/runtime/reversibility.d.ts +11 -9
  120. package/dist/runtime/stakes.d.ts +129 -1
  121. package/dist/runtime/stakes.js +240 -26
  122. package/dist/runtime/vocabulary.d.ts +164 -7
  123. package/dist/runtime/vocabulary.js +181 -8
  124. package/dist/sdk/audit.d.ts +174 -3
  125. package/dist/sdk/audit.js +176 -17
  126. package/dist/sdk/catalogue.d.ts +9 -1
  127. package/dist/sdk/conformance.d.ts +37 -3
  128. package/dist/sdk/conformance.js +25 -4
  129. package/dist/sdk/definition.d.ts +129 -5
  130. package/dist/sdk/definition.js +66 -0
  131. package/dist/sdk/registry.d.ts +45 -2
  132. package/dist/sdk/registry.js +102 -1
  133. package/dist/signals/acted.contract.d.ts +21 -0
  134. package/dist/signals/acted.contract.js +236 -0
  135. package/dist/signals/acted.d.ts +359 -0
  136. package/dist/signals/acted.js +135 -0
  137. package/dist/signals/action-change.d.ts +507 -0
  138. package/dist/signals/action-change.js +265 -0
  139. package/dist/signals/action.d.ts +331 -0
  140. package/dist/signals/action.js +182 -0
  141. package/dist/signals/agenda.d.ts +585 -0
  142. package/dist/signals/agenda.js +295 -0
  143. package/dist/signals/applied-window.contract.d.ts +23 -0
  144. package/dist/signals/applied-window.contract.js +160 -0
  145. package/dist/signals/arrivals.contract.d.ts +21 -0
  146. package/dist/signals/arrivals.contract.js +180 -0
  147. package/dist/signals/arrivals.d.ts +375 -0
  148. package/dist/signals/arrivals.js +254 -0
  149. package/dist/signals/arriving.d.ts +210 -0
  150. package/dist/signals/arriving.js +133 -0
  151. package/dist/signals/audiences.d.ts +528 -0
  152. package/dist/signals/audiences.js +255 -0
  153. package/dist/signals/broadcast.d.ts +33 -17
  154. package/dist/signals/broadcast.js +255 -32
  155. package/dist/signals/change.d.ts +378 -0
  156. package/dist/signals/change.js +327 -0
  157. package/dist/signals/collect.d.ts +169 -34
  158. package/dist/signals/collect.js +186 -38
  159. package/dist/signals/conversion.d.ts +348 -0
  160. package/dist/signals/conversion.js +235 -0
  161. package/dist/signals/copy-change.d.ts +553 -0
  162. package/dist/signals/copy-change.js +377 -0
  163. package/dist/signals/copy.d.ts +337 -0
  164. package/dist/signals/copy.js +211 -0
  165. package/dist/signals/correlated.contract.d.ts +24 -0
  166. package/dist/signals/correlated.contract.js +94 -0
  167. package/dist/signals/counters.d.ts +97 -0
  168. package/dist/signals/counters.js +160 -0
  169. package/dist/signals/deliver.d.ts +23 -4
  170. package/dist/signals/deliver.js +34 -6
  171. package/dist/signals/deployment-change.d.ts +395 -0
  172. package/dist/signals/deployment-change.js +309 -0
  173. package/dist/signals/deployment.d.ts +278 -0
  174. package/dist/signals/deployment.js +178 -0
  175. package/dist/signals/door.d.ts +114 -0
  176. package/dist/signals/door.js +77 -0
  177. package/dist/signals/expire.d.ts +192 -0
  178. package/dist/signals/expire.js +213 -0
  179. package/dist/signals/fold.d.ts +10 -0
  180. package/dist/signals/fold.js +5 -1
  181. package/dist/signals/form-action.d.ts +302 -0
  182. package/dist/signals/form-action.js +169 -0
  183. package/dist/signals/form-copy.d.ts +523 -0
  184. package/dist/signals/form-copy.js +346 -0
  185. package/dist/signals/forms.d.ts +247 -0
  186. package/dist/signals/forms.js +147 -0
  187. package/dist/signals/frontier.d.ts +268 -0
  188. package/dist/signals/frontier.js +145 -0
  189. package/dist/signals/funnel-change.d.ts +548 -0
  190. package/dist/signals/funnel-change.js +361 -0
  191. package/dist/signals/funnel-hours.contract.d.ts +21 -0
  192. package/dist/signals/funnel-hours.contract.js +221 -0
  193. package/dist/signals/funnel-hours.d.ts +293 -0
  194. package/dist/signals/funnel-hours.js +99 -0
  195. package/dist/signals/funnel.d.ts +592 -0
  196. package/dist/signals/funnel.js +231 -0
  197. package/dist/signals/health.d.ts +694 -0
  198. package/dist/signals/health.js +573 -0
  199. package/dist/signals/index.d.ts +60 -0
  200. package/dist/signals/index.js +60 -0
  201. package/dist/signals/ingest.d.ts +56 -1
  202. package/dist/signals/ingest.js +91 -1
  203. package/dist/signals/inside.d.ts +190 -0
  204. package/dist/signals/inside.js +263 -0
  205. package/dist/signals/join.d.ts +56 -0
  206. package/dist/signals/join.js +60 -0
  207. package/dist/signals/journal.d.ts +123 -9
  208. package/dist/signals/kept.contract.d.ts +22 -0
  209. package/dist/signals/kept.contract.js +111 -0
  210. package/dist/signals/kinds.d.ts +8 -6
  211. package/dist/signals/kinds.js +14 -6
  212. package/dist/signals/library-action.d.ts +430 -0
  213. package/dist/signals/library-action.js +336 -0
  214. package/dist/signals/library-agenda-change.d.ts +324 -0
  215. package/dist/signals/library-agenda-change.js +199 -0
  216. package/dist/signals/library-agenda.d.ts +258 -0
  217. package/dist/signals/library-agenda.js +167 -0
  218. package/dist/signals/library-change.d.ts +477 -0
  219. package/dist/signals/library-change.js +335 -0
  220. package/dist/signals/library-copy-change.d.ts +498 -0
  221. package/dist/signals/library-copy-change.js +476 -0
  222. package/dist/signals/library-pace.d.ts +319 -0
  223. package/dist/signals/library-pace.js +305 -0
  224. package/dist/signals/library-reach-change.d.ts +646 -0
  225. package/dist/signals/library-reach-change.js +542 -0
  226. package/dist/signals/library-reach.d.ts +377 -0
  227. package/dist/signals/library-reach.js +227 -0
  228. package/dist/signals/library-senders-change.d.ts +457 -0
  229. package/dist/signals/library-senders-change.js +367 -0
  230. package/dist/signals/library-senders-reach-change.d.ts +486 -0
  231. package/dist/signals/library-senders-reach-change.js +538 -0
  232. package/dist/signals/library-senders-reach.d.ts +340 -0
  233. package/dist/signals/library-senders-reach.js +252 -0
  234. package/dist/signals/library-senders.d.ts +271 -0
  235. package/dist/signals/library-senders.js +180 -0
  236. package/dist/signals/library-word-reach-change.d.ts +567 -0
  237. package/dist/signals/library-word-reach-change.js +564 -0
  238. package/dist/signals/library.d.ts +306 -0
  239. package/dist/signals/library.js +178 -0
  240. package/dist/signals/memory.d.ts +9 -0
  241. package/dist/signals/memory.js +246 -14
  242. package/dist/signals/migrate.d.ts +20 -4
  243. package/dist/signals/migrate.js +269 -8
  244. package/dist/signals/notice.d.ts +389 -0
  245. package/dist/signals/notice.js +250 -0
  246. package/dist/signals/pace-change.d.ts +501 -0
  247. package/dist/signals/pace-change.js +310 -0
  248. package/dist/signals/pace.d.ts +296 -0
  249. package/dist/signals/pace.js +291 -0
  250. package/dist/signals/page-views.d.ts +365 -0
  251. package/dist/signals/page-views.js +218 -0
  252. package/dist/signals/part-pace.d.ts +378 -0
  253. package/dist/signals/part-pace.js +333 -0
  254. package/dist/signals/parts.d.ts +354 -0
  255. package/dist/signals/parts.js +232 -0
  256. package/dist/signals/postgres.d.ts +16 -2
  257. package/dist/signals/postgres.js +753 -76
  258. package/dist/signals/progress.d.ts +212 -0
  259. package/dist/signals/progress.js +150 -0
  260. package/dist/signals/ratios.d.ts +108 -0
  261. package/dist/signals/ratios.js +40 -0
  262. package/dist/signals/reach.d.ts +309 -0
  263. package/dist/signals/reach.js +93 -0
  264. package/dist/signals/readable.d.ts +34 -0
  265. package/dist/signals/readable.js +34 -0
  266. package/dist/signals/readership.d.ts +381 -0
  267. package/dist/signals/readership.js +308 -0
  268. package/dist/signals/region-pages.d.ts +173 -0
  269. package/dist/signals/region-pages.js +62 -0
  270. package/dist/signals/region.d.ts +287 -0
  271. package/dist/signals/region.js +198 -0
  272. package/dist/signals/retention.d.ts +163 -0
  273. package/dist/signals/retention.js +75 -0
  274. package/dist/signals/rhythm.d.ts +302 -0
  275. package/dist/signals/rhythm.js +262 -0
  276. package/dist/signals/rollup.d.ts +194 -4
  277. package/dist/signals/rollup.js +0 -0
  278. package/dist/signals/schema.d.ts +1069 -1
  279. package/dist/signals/schema.js +393 -3
  280. package/dist/signals/signal.d.ts +237 -11
  281. package/dist/signals/signal.js +70 -10
  282. package/dist/signals/silence-census.d.ts +205 -0
  283. package/dist/signals/silence-census.js +87 -0
  284. package/dist/signals/silences.d.ts +1147 -0
  285. package/dist/signals/silences.js +996 -0
  286. package/dist/signals/subtrees.d.ts +123 -0
  287. package/dist/signals/subtrees.js +102 -0
  288. package/dist/signals/tally.d.ts +262 -12
  289. package/dist/signals/unread.d.ts +292 -0
  290. package/dist/signals/unread.js +137 -0
  291. package/dist/signals/window-agenda.d.ts +276 -0
  292. package/dist/signals/window-agenda.js +83 -0
  293. package/dist/signals/window-figures.d.ts +148 -0
  294. package/dist/signals/window-figures.js +42 -0
  295. package/dist/signals/window-funnels.d.ts +88 -0
  296. package/dist/signals/window-funnels.js +47 -0
  297. package/dist/signals/window.d.ts +866 -0
  298. package/dist/signals/window.js +693 -0
  299. package/dist/signals/words.d.ts +24 -0
  300. package/dist/signals/words.js +24 -0
  301. package/dist/store/cache.d.ts +101 -0
  302. package/dist/store/cache.js +149 -0
  303. package/dist/store/history.d.ts +82 -0
  304. package/dist/store/history.js +36 -0
  305. package/dist/store/index.d.ts +30 -0
  306. package/dist/store/index.js +30 -0
  307. package/dist/store/memory.d.ts +2 -1
  308. package/dist/store/memory.js +48 -12
  309. package/dist/store/migrate.d.ts +106 -0
  310. package/dist/store/migrate.js +323 -7
  311. package/dist/store/postgres-applications.d.ts +4 -0
  312. package/dist/store/postgres-applications.js +197 -0
  313. package/dist/store/postgres-audience.d.ts +14 -0
  314. package/dist/store/postgres-audience.js +272 -0
  315. package/dist/store/postgres-holds.d.ts +10 -1
  316. package/dist/store/postgres-holds.js +116 -101
  317. package/dist/store/postgres-policy-log.d.ts +14 -0
  318. package/dist/store/postgres-policy-log.js +240 -0
  319. package/dist/store/postgres-projects.d.ts +4 -0
  320. package/dist/store/postgres-projects.js +217 -0
  321. package/dist/store/postgres.d.ts +17 -1
  322. package/dist/store/postgres.js +60 -9
  323. package/dist/store/replay.d.ts +102 -1
  324. package/dist/store/replay.js +190 -19
  325. package/dist/store/reseed.d.ts +238 -0
  326. package/dist/store/reseed.js +308 -0
  327. package/dist/store/schema.d.ts +762 -2
  328. package/dist/store/schema.js +218 -5
  329. package/dist/store/source.d.ts +57 -1
  330. package/dist/store/source.js +65 -1
  331. package/dist/store/store.d.ts +29 -6
  332. package/dist/submit/resolve.d.ts +1 -1
  333. package/dist/submit/resolve.js +2 -1
  334. package/dist/telemetry/calibration.d.ts +25 -0
  335. package/dist/telemetry/calibration.js +27 -1
  336. package/dist/telemetry/event.d.ts +391 -33
  337. package/dist/telemetry/event.js +84 -20
  338. package/dist/telemetry/index.d.ts +2 -0
  339. package/dist/telemetry/index.js +2 -0
  340. package/dist/telemetry/journal.d.ts +104 -3
  341. package/dist/telemetry/journal.js +9 -0
  342. package/dist/telemetry/lookup.d.ts +27 -0
  343. package/dist/telemetry/lookup.js +18 -0
  344. package/dist/telemetry/memory.js +33 -1
  345. package/dist/telemetry/migrate.js +22 -1
  346. package/dist/telemetry/postgres.d.ts +10 -1
  347. package/dist/telemetry/postgres.js +188 -90
  348. package/dist/telemetry/remeasure.d.ts +78 -0
  349. package/dist/telemetry/remeasure.js +83 -0
  350. package/dist/telemetry/retention.d.ts +2 -2
  351. package/dist/telemetry/schema.d.ts +17 -0
  352. package/dist/telemetry/schema.js +27 -1
  353. package/dist/telemetry/sink.d.ts +2 -2
  354. package/dist/telemetry/window.d.ts +135 -0
  355. package/dist/telemetry/window.js +101 -0
  356. package/dist/testing/application-contract.d.ts +14 -0
  357. package/dist/testing/application-contract.js +270 -0
  358. package/dist/testing/audience-overlay-contract.d.ts +31 -0
  359. package/dist/testing/audience-overlay-contract.js +354 -0
  360. package/dist/testing/contracts.d.ts +13 -7
  361. package/dist/testing/contracts.js +13 -7
  362. package/dist/testing/definitions.d.ts +78 -0
  363. package/dist/testing/definitions.js +134 -9
  364. package/dist/testing/doubles.d.ts +103 -0
  365. package/dist/testing/doubles.js +143 -0
  366. package/dist/testing/index.d.ts +2 -2
  367. package/dist/testing/index.js +2 -2
  368. package/dist/testing/journal-contract.js +297 -6
  369. package/dist/testing/model-contract.d.ts +110 -0
  370. package/dist/testing/model-contract.js +150 -0
  371. package/dist/testing/policy-log-contract.d.ts +26 -0
  372. package/dist/testing/policy-log-contract.js +344 -0
  373. package/dist/testing/project-contract.d.ts +14 -0
  374. package/dist/testing/project-contract.js +266 -0
  375. package/dist/testing/reader-signal-contract.d.ts +27 -2
  376. package/dist/testing/reader-signal-contract.js +475 -5
  377. package/dist/testing/store-contract.d.ts +7 -1
  378. package/dist/testing/store-contract.js +84 -3
  379. package/dist/theme/apply.d.ts +20 -1
  380. package/dist/theme/apply.js +5 -3
  381. package/dist/theme/contrast.d.ts +19 -14
  382. package/dist/theme/contrast.js +181 -17
  383. package/dist/theme/derive.d.ts +22 -0
  384. package/dist/theme/derive.js +54 -1
  385. package/dist/theme/library.js +1 -1
  386. package/dist/theme/measure.d.ts +34 -0
  387. package/dist/theme/measure.js +30 -1
  388. package/dist/theme/palettes.js +7 -7
  389. package/dist/theme/ramp.d.ts +64 -0
  390. package/dist/theme/ramp.js +114 -0
  391. package/dist/theme/registry.d.ts +9 -0
  392. package/dist/theme/registry.js +11 -1
  393. package/dist/theme/separation.d.ts +97 -3
  394. package/dist/theme/separation.js +75 -0
  395. package/dist/tree/apply.js +13 -0
  396. package/dist/tree/compare.d.ts +9 -0
  397. package/dist/tree/compare.js +18 -0
  398. package/dist/tree/mutation.d.ts +18 -0
  399. package/dist/tree/mutation.js +24 -12
  400. package/dist/tree/navigation.d.ts +5 -0
  401. package/dist/tree/navigation.js +32 -10
  402. package/dist/tree/outline.d.ts +7 -0
  403. package/dist/tree/outline.js +9 -5
  404. package/dist/write/computed.d.ts +60 -0
  405. package/dist/write/computed.js +61 -0
  406. package/dist/write/held.d.ts +59 -0
  407. package/dist/write/index.d.ts +5 -2
  408. package/dist/write/index.js +5 -2
  409. package/dist/write/reseed.d.ts +151 -0
  410. package/dist/write/reseed.js +184 -0
  411. package/dist/write/revert.js +2 -16
  412. package/package.json +25 -3
  413. package/dist/runtime/inverse-interpreter.d.ts +0 -90
  414. package/dist/runtime/inverse-interpreter.js +0 -56
@@ -0,0 +1,996 @@
1
+ import { everyMemberOf } from "../closed-set.js";
2
+ export const SILENCE_SUBJECTS = everyMemberOf()([
3
+ "page",
4
+ "part",
5
+ "comparison",
6
+ "kind",
7
+ "series",
8
+ ]);
9
+ /** One line per subject, for a surface naming what a reason is about. */
10
+ export const describeSilenceSubject = (subject) => {
11
+ switch (subject) {
12
+ case "page":
13
+ return "this version of the page, and the window read against it";
14
+ case "part":
15
+ return "one part of the page";
16
+ case "comparison":
17
+ return "the two readings together, neither side named";
18
+ case "kind":
19
+ return "one kind of part, everywhere it stands in the pages read";
20
+ case "series":
21
+ return "the run of hours that was read, whatever scope its counters were of";
22
+ }
23
+ };
24
+ export const SILENCE_VOCABULARIES = everyMemberOf()([
25
+ "action-change",
26
+ "change",
27
+ "conversion",
28
+ "copy",
29
+ "copy-change",
30
+ "deployment",
31
+ "deployment-change",
32
+ "form-action",
33
+ "form-copy",
34
+ "forms",
35
+ "funnel-change",
36
+ "library",
37
+ "library-action",
38
+ "library-change",
39
+ "library-copy-change",
40
+ "library-pace",
41
+ "library-reach",
42
+ "library-reach-change",
43
+ "library-senders",
44
+ "library-senders-change",
45
+ "library-senders-reach",
46
+ "library-senders-reach-change",
47
+ "library-word-reach-change",
48
+ "pace",
49
+ "pace-change",
50
+ "reach",
51
+ "rhythm",
52
+ ]);
53
+ /**
54
+ * What each reading's reasons are about.
55
+ *
56
+ * Published as a table over the vocabularies because that is what it is: the
57
+ * subject is a property of the reading, uniform across its whole set, and a
58
+ * caller holding a silence it has not yet mapped can read the subject off this
59
+ * before it reads the condition.
60
+ */
61
+ export const SUBJECT_OF_VOCABULARY = Object.freeze({
62
+ "action-change": "comparison",
63
+ change: "comparison",
64
+ conversion: "page",
65
+ copy: "page",
66
+ "copy-change": "comparison",
67
+ deployment: "page",
68
+ "deployment-change": "comparison",
69
+ "form-action": "comparison",
70
+ "form-copy": "comparison",
71
+ forms: "comparison",
72
+ "funnel-change": "comparison",
73
+ library: "kind",
74
+ "library-action": "kind",
75
+ "library-change": "kind",
76
+ "library-copy-change": "kind",
77
+ "library-pace": "kind",
78
+ "library-reach": "kind",
79
+ "library-reach-change": "kind",
80
+ "library-senders": "kind",
81
+ "library-senders-change": "kind",
82
+ "library-senders-reach": "kind",
83
+ "library-senders-reach-change": "kind",
84
+ "library-word-reach-change": "kind",
85
+ pace: "part",
86
+ "pace-change": "comparison",
87
+ reach: "page",
88
+ rhythm: "series",
89
+ });
90
+ export const SILENCE_CONDITIONS = everyMemberOf()([
91
+ "two-pages",
92
+ "two-audiences",
93
+ "no-view-reported",
94
+ "no-arrivals-counted",
95
+ "no-openings-marked",
96
+ "no-window-folded",
97
+ "says-nothing",
98
+ "words-a-floor",
99
+ "readers-above-views",
100
+ "nothing-carried",
101
+ "no-action-credited",
102
+ "nothing-of-the-kind",
103
+ "nothing-inside",
104
+ "no-reach-reported",
105
+ "two-forms-unsplit",
106
+ "two-revisions",
107
+ "one-population",
108
+ "no-audience-named",
109
+ "questions-stale",
110
+ "no-reach-below",
111
+ "no-hour-counted",
112
+ "no-hour-settled",
113
+ "nothing-checkable",
114
+ "nothing-claimed",
115
+ ]);
116
+ /**
117
+ * One line per condition, written so that it reads after the subject it is
118
+ * about rather than naming one itself.
119
+ *
120
+ * Each set's own `describe` is the sentence for one reading and stays the right
121
+ * thing to print there. This is the sentence for the state, which is what a
122
+ * surface needs when it is speaking about two readings at once.
123
+ */
124
+ export const describeSilenceCondition = (condition) => {
125
+ switch (condition) {
126
+ case "two-pages":
127
+ return "the two readings are of different pages";
128
+ case "two-audiences":
129
+ return "the two readings are of different audiences, and so of different readers";
130
+ case "no-view-reported":
131
+ return "nothing reported a view of it";
132
+ case "no-arrivals-counted":
133
+ return "no page views have been counted at the door for it";
134
+ case "no-openings-marked":
135
+ return "nothing has said a page view began";
136
+ case "no-window-folded":
137
+ return "readers arrived and no window of their reading has been counted yet";
138
+ case "says-nothing":
139
+ return "it says nothing that could be read";
140
+ case "words-a-floor":
141
+ return "some of its words are a floor, because a type in it declares no copy";
142
+ case "readers-above-views":
143
+ return "it reports more readers than views, which no rollup produces";
144
+ case "nothing-carried":
145
+ return "the change left no word of the page as it was";
146
+ case "no-action-credited":
147
+ return "it holds actions and credits none of them to a reader";
148
+ case "nothing-of-the-kind":
149
+ return "there is none of it in the pages that were read";
150
+ case "nothing-inside":
151
+ return "it has nothing inside it, so there is nothing a reader could act in";
152
+ case "no-reach-reported":
153
+ return "its counters are there and not one of them reports being reached";
154
+ case "two-forms-unsplit":
155
+ return "one window holds two forms of the page and says which readers neither";
156
+ case "two-revisions":
157
+ return "the two readings are of two revisions, and so not of one page held still";
158
+ case "one-population":
159
+ return "both readings are of one audience, so there is no second population";
160
+ case "no-audience-named":
161
+ return "nothing recorded which audience it was of";
162
+ case "questions-stale":
163
+ return "every question it is asked names a part the page no longer has";
164
+ case "no-reach-below":
165
+ return "nothing below it reported being reached, so nothing it holds can witness it";
166
+ case "no-hour-counted":
167
+ return "no hour of it has ever been counted";
168
+ case "no-hour-settled":
169
+ return "it holds hours and not one of them is over yet";
170
+ case "nothing-checkable":
171
+ return "no place it holds in both readings could be checked in both of them";
172
+ case "nothing-claimed":
173
+ return "every place it could be compared at is unclaimed in one of the two readings";
174
+ }
175
+ };
176
+ const meaning = (vocabulary, condition) => ({
177
+ condition,
178
+ subject: SUBJECT_OF_VOCABULARY[vocabulary],
179
+ vocabulary,
180
+ });
181
+ /**
182
+ * What a comparison of what readers *did* reports (0251).
183
+ *
184
+ * A comparison, so its subject is the pair and never the page on the screen —
185
+ * and `unwalked` is the one member of any set that does not say which side it is
186
+ * true of while being the one a surface most wants to name. The two readings
187
+ * travel on the comparison, each with its own `unwalked`, which is where that is
188
+ * answered; the condition is what the two sides have in common and no more, as
189
+ * `no-openings-marked` is for a deployment.
190
+ */
191
+ export const meaningOfActionChangeSilence = (silence) => {
192
+ switch (silence) {
193
+ case "different-trees":
194
+ return meaning("action-change", "two-pages");
195
+ case "different-audiences":
196
+ return meaning("action-change", "two-audiences");
197
+ case "audiences-mixed":
198
+ return meaning("action-change", "two-forms-unsplit");
199
+ case "unwalked":
200
+ return meaning("action-change", "no-action-credited");
201
+ case "nothing-measured":
202
+ return meaning("action-change", "no-view-reported");
203
+ case "dissolved":
204
+ return meaning("action-change", "nothing-carried");
205
+ }
206
+ };
207
+ /** What a before-and-after reading's silence reports (0224). */
208
+ export const meaningOfChangeSilence = (silence) => {
209
+ switch (silence) {
210
+ case "different-trees":
211
+ return meaning("change", "two-pages");
212
+ case "different-audiences":
213
+ return meaning("change", "two-audiences");
214
+ case "audiences-mixed":
215
+ return meaning("change", "two-forms-unsplit");
216
+ case "nothing-measured":
217
+ return meaning("change", "no-view-reported");
218
+ }
219
+ };
220
+ /**
221
+ * What a copy reading's silence reports (0235, 0282).
222
+ *
223
+ * `unspoken` is the newer of the two reasons there is no mean, and the one that
224
+ * brought this table its thirteenth condition: a page whose rows report no
225
+ * reach at all is not a page nobody read.
226
+ */
227
+ export const meaningOfCopySilence = (silence) => {
228
+ switch (silence) {
229
+ case "wordless":
230
+ return meaning("copy", "says-nothing");
231
+ case "unmeasured":
232
+ return meaning("copy", "no-view-reported");
233
+ case "floored":
234
+ return meaning("copy", "words-a-floor");
235
+ case "unspoken":
236
+ return meaning("copy", "no-reach-reported");
237
+ case "inconsistent":
238
+ return meaning("copy", "readers-above-views");
239
+ }
240
+ };
241
+ /**
242
+ * What a comparison of two windows' words reports (0239, 0282).
243
+ *
244
+ * Six of its seven reasons are states of the pair; `unspoken` is the same state
245
+ * a copy reading reports, said of the carried passages rather than of the page.
246
+ */
247
+ export const meaningOfCopyChangeSilence = (silence) => {
248
+ switch (silence) {
249
+ case "different-trees":
250
+ return meaning("copy-change", "two-pages");
251
+ case "different-audiences":
252
+ return meaning("copy-change", "two-audiences");
253
+ case "wordless":
254
+ return meaning("copy-change", "says-nothing");
255
+ case "audiences-mixed":
256
+ return meaning("copy-change", "two-forms-unsplit");
257
+ case "nothing-measured":
258
+ return meaning("copy-change", "no-view-reported");
259
+ case "inconsistent":
260
+ return meaning("copy-change", "readers-above-views");
261
+ case "dissolved":
262
+ return meaning("copy-change", "nothing-carried");
263
+ case "floored":
264
+ return meaning("copy-change", "words-a-floor");
265
+ case "unspoken":
266
+ return meaning("copy-change", "no-reach-reported");
267
+ }
268
+ };
269
+ /**
270
+ * What an order over a deployment's pages reports, of one of them (0250).
271
+ *
272
+ * Every reason here is a fact about one revision of one page, so the subject is
273
+ * the page — which is the one case this table did not have, and the only thing
274
+ * about it that is new. A reading of a deployment is silent about its **members**
275
+ * rather than about itself: the order stands, and one page is not in it.
276
+ *
277
+ * `unscaled` is the second name in this subsystem for the state a share-of-readers
278
+ * reading calls `unmeasured`, and the two are deliberately not spelled alike. A
279
+ * reach reading has nothing to say at all without a row at the door; an order has
280
+ * a complete reading of that page and is missing only what would make it
281
+ * comparable with another, which is a different sentence to print even though it
282
+ * is one state of the world.
283
+ */
284
+ export const meaningOfDeploymentSilence = (silence) => {
285
+ switch (silence) {
286
+ case "unread":
287
+ return meaning("deployment", "no-view-reported");
288
+ case "unsplit":
289
+ return meaning("deployment", "two-forms-unsplit");
290
+ case "unscaled":
291
+ return meaning("deployment", "no-arrivals-counted");
292
+ case "unopened":
293
+ return meaning("deployment", "no-openings-marked");
294
+ case "inconsistent":
295
+ return meaning("deployment", "readers-above-views");
296
+ }
297
+ };
298
+ /**
299
+ * What an order over what a change did to a deployment reports, of one page's
300
+ * comparison (0291).
301
+ *
302
+ * The seventeenth set. Every reason is a fact about one comparison, so the
303
+ * subject is the pair even though the reading is of a deployment — which is the
304
+ * combination this table did not have, and the only thing about it that is new.
305
+ *
306
+ * `unread` is the condition a before-and-after reading reports as
307
+ * `nothing-measured`, said here of the comparison that is not in the order
308
+ * rather than of the order; `mispaired` is that reading's `different-trees` for
309
+ * the same reason.
310
+ */
311
+ export const meaningOfDeploymentChangeSilence = (silence) => {
312
+ switch (silence) {
313
+ case "unread":
314
+ return meaning("deployment-change", "no-view-reported");
315
+ case "mispaired":
316
+ return meaning("deployment-change", "two-pages");
317
+ case "unsplit":
318
+ return meaning("deployment-change", "two-forms-unsplit");
319
+ case "unscaled":
320
+ return meaning("deployment-change", "no-arrivals-counted");
321
+ case "unopened":
322
+ return meaning("deployment-change", "no-openings-marked");
323
+ case "inconsistent":
324
+ return meaning("deployment-change", "readers-above-views");
325
+ }
326
+ };
327
+ /**
328
+ * What a census of the library reports, of one kind of part (0257).
329
+ *
330
+ * Both reasons are about a kind and neither is about a page, so this is the set
331
+ * that put the fourth subject in the table above. `unplaced` is the one member
332
+ * in this subsystem whose condition is not an absence of measurement but an
333
+ * absence of the thing measured, and the distinction is worth a surface's
334
+ * attention: `unread` on a kind says point a reader at it, `unplaced` says
335
+ * nothing in this library is one.
336
+ */
337
+ export const meaningOfKindSilence = (silence) => {
338
+ switch (silence) {
339
+ case "unread":
340
+ return meaning("library", "no-view-reported");
341
+ case "unplaced":
342
+ return meaning("library", "nothing-of-the-kind");
343
+ }
344
+ };
345
+ /**
346
+ * What a kind's share of the readers who met it reports, of one kind (0256).
347
+ *
348
+ * The tenth set, and the first since the seventh to bring neither a condition
349
+ * nor a subject — which is the claim below holding rather than a coincidence:
350
+ * three of its five reasons are the states of the door, and the door's states
351
+ * were named the first time a share of readers was taken of anything.
352
+ *
353
+ * **It is also the first set that could not reuse another's outright.** A
354
+ * funnel answer reports a reach silence unchanged, because a funnel is asked of
355
+ * a page and so is a reach reading; this is asked of a **kind**, and a subject
356
+ * is a property of the reading rather than of the condition. So the three
357
+ * door states are said again here at a kind, the page they are true of is
358
+ * published with a reach silence on it, and this table is what says the two are
359
+ * one state at two subjects. The census's own two reasons are reused as values,
360
+ * because those were already a kind's.
361
+ */
362
+ export const meaningOfKindReachSilence = (silence) => {
363
+ switch (silence) {
364
+ case "unread":
365
+ return meaning("library-reach", "no-view-reported");
366
+ case "unplaced":
367
+ return meaning("library-reach", "nothing-of-the-kind");
368
+ case "unscaled":
369
+ return meaning("library-reach", "no-arrivals-counted");
370
+ case "unopened":
371
+ return meaning("library-reach", "no-openings-marked");
372
+ case "uncounted":
373
+ return meaning("library-reach", "no-window-folded");
374
+ }
375
+ };
376
+ /**
377
+ * What a reader-weighted comparison of a kind of part reports, of one kind
378
+ * (0279).
379
+ *
380
+ * **The fourteenth set, and the first assembled out of two readings of its own
381
+ * question.** Five of its six members are the two it is built from — the
382
+ * census's `unplaced`, the places comparison's `unpaired` and `unread`, and the
383
+ * door's three — and the sixth, `unscaled`, is the door's again. A comparison
384
+ * is withheld for every reason either side's figure is withheld and for nothing
385
+ * else, which is why a set that answers a genuinely new question brings no new
386
+ * state of the world.
387
+ *
388
+ * The subject is the kind and not the pair, for the reason the places comparison
389
+ * has it (0266): the rows are keyed by the vocabulary, so each reason is about
390
+ * one kind of part across both windows. Which **window** a door reason came from
391
+ * is published on the page it is about rather than in this vocabulary — a side
392
+ * is not a state.
393
+ */
394
+ export const meaningOfKindReachChangeSilence = (silence) => {
395
+ switch (silence) {
396
+ case "unplaced":
397
+ return meaning("library-reach-change", "nothing-of-the-kind");
398
+ case "unpaired":
399
+ return meaning("library-reach-change", "nothing-carried");
400
+ case "unread":
401
+ return meaning("library-reach-change", "no-view-reported");
402
+ case "unscaled":
403
+ return meaning("library-reach-change", "no-arrivals-counted");
404
+ case "unopened":
405
+ return meaning("library-reach-change", "no-openings-marked");
406
+ case "uncounted":
407
+ return meaning("library-reach-change", "no-window-folded");
408
+ }
409
+ };
410
+ /**
411
+ * What a comparison of the words one reader got to reports, of one kind (0280).
412
+ *
413
+ * **The fifteenth set, and the first assembled out of four.** The census's
414
+ * `unplaced`, the places comparison's `unpaired`, the door's three states said
415
+ * of a kind, and the pair a comparison of a library's words already reports of
416
+ * one — `wordless` and `floored`. Nothing is new because nothing can be: a
417
+ * comparison is withheld for every reason one side's figure is withheld and
418
+ * for nothing a window could be in on its own.
419
+ *
420
+ * `floored` is the member worth reading twice. It is the same condition the
421
+ * thirteenth set reports, said at the same subject, and it withholds five
422
+ * figures here where it withholds one there — because every figure this
423
+ * reading would have a surface subtract is a sum of signed terms that floors
424
+ * scale by different factors. One state of the world, two costs, and the cost
425
+ * belongs to the reading.
426
+ */
427
+ export const meaningOfKindWordReachChangeSilence = (silence) => {
428
+ switch (silence) {
429
+ case "unplaced":
430
+ return meaning("library-word-reach-change", "nothing-of-the-kind");
431
+ case "unpaired":
432
+ return meaning("library-word-reach-change", "nothing-carried");
433
+ case "wordless":
434
+ return meaning("library-word-reach-change", "says-nothing");
435
+ case "unread":
436
+ return meaning("library-word-reach-change", "no-view-reported");
437
+ case "unscaled":
438
+ return meaning("library-word-reach-change", "no-arrivals-counted");
439
+ case "unopened":
440
+ return meaning("library-word-reach-change", "no-openings-marked");
441
+ case "uncounted":
442
+ return meaning("library-word-reach-change", "no-window-folded");
443
+ case "floored":
444
+ return meaning("library-word-reach-change", "words-a-floor");
445
+ }
446
+ };
447
+ /**
448
+ * What a kind's share of the readers who acted inside it reports, of one kind
449
+ * (0265).
450
+ *
451
+ * **The eleventh set, and the first built on another's type rather than beside
452
+ * it.** It takes the tenth's five members whole — the census's two and the
453
+ * door's three — because the tenth's own limit was that a set cannot be reused
454
+ * across subjects, and this reading's subject is a kind exactly as that one's
455
+ * is. So the reuse is that limit used in the affirmative: same subject, same
456
+ * states, one word for one state on any surface drawing both.
457
+ *
458
+ * Two members are added and only one of them brings a condition. `unwalked` is
459
+ * `no-action-credited`, which the eighth set brought and which is the state of a
460
+ * window whose nought is a filing rule. `unenterable` is the twelfth condition
461
+ * and is **not about a window at all**: a kind standing only in places with
462
+ * nothing inside them has no question to answer, which would be exactly as true
463
+ * of a deployment every reader in the world had read.
464
+ */
465
+ export const meaningOfKindActionSilence = (silence) => {
466
+ switch (silence) {
467
+ case "unread":
468
+ return meaning("library-action", "no-view-reported");
469
+ case "unplaced":
470
+ return meaning("library-action", "nothing-of-the-kind");
471
+ case "unenterable":
472
+ return meaning("library-action", "nothing-inside");
473
+ case "unwalked":
474
+ return meaning("library-action", "no-action-credited");
475
+ case "unscaled":
476
+ return meaning("library-action", "no-arrivals-counted");
477
+ case "unopened":
478
+ return meaning("library-action", "no-openings-marked");
479
+ case "uncounted":
480
+ return meaning("library-action", "no-window-folded");
481
+ }
482
+ };
483
+ /**
484
+ * What a comparison of two windows of one library reports, of one kind (0266).
485
+ *
486
+ * **The twelfth set, and the first comparison whose subject is not the pair.**
487
+ * Every other comparison here names neither side — *one of the two windows held
488
+ * no page views* is a fact about the two readings together — and this one does
489
+ * not, because its rows are keyed by the **vocabulary** and each reason is about
490
+ * one kind of part across both windows. So the subject is `kind`, which is 0240's
491
+ * claim holding in the one place it looked most likely to break: the subject is a
492
+ * property of the reading and uniform across its set, and a reading's scope was
493
+ * never what decided it (0250).
494
+ *
495
+ * **It brings no condition and no subject.** `unread` and `unplaced` are the
496
+ * census's own two, reused for the reason the eleventh set reuses them — same
497
+ * subject, same states. `unpaired` is `nothing-carried`, which is the state a
498
+ * comparison of two windows' words reports of words and a comparison of two
499
+ * paces reports of parts: the change left nothing of the thing being compared as
500
+ * it was. Here the thing is a **place**, and the condition's sentence is written
501
+ * for words because words were the first counter it was found in.
502
+ */
503
+ export const meaningOfKindChangeSilence = (silence) => {
504
+ switch (silence) {
505
+ case "unread":
506
+ return meaning("library-change", "no-view-reported");
507
+ case "unplaced":
508
+ return meaning("library-change", "nothing-of-the-kind");
509
+ case "unpaired":
510
+ return meaning("library-change", "nothing-carried");
511
+ }
512
+ };
513
+ /**
514
+ * What a comparison of two windows' words at the scale of a library reports
515
+ * (0270).
516
+ *
517
+ * Five members and not one new condition, and the subject is the kind for the
518
+ * reason the comparison of places has it: the rows are keyed by the vocabulary,
519
+ * so every reason is about one kind of part across both windows.
520
+ *
521
+ * `floored` is the one member in this table whose reading withholds a figure
522
+ * rather than a comparison — the signed movement in a mass of words, which a
523
+ * floor can give the wrong sign, where the two shares it is the difference of
524
+ * both stand (0239).
525
+ */
526
+ export const meaningOfKindCopyChangeSilence = (silence) => {
527
+ switch (silence) {
528
+ case "unplaced":
529
+ return meaning("library-copy-change", "nothing-of-the-kind");
530
+ case "unpaired":
531
+ return meaning("library-copy-change", "nothing-carried");
532
+ case "wordless":
533
+ return meaning("library-copy-change", "says-nothing");
534
+ case "unread":
535
+ return meaning("library-copy-change", "no-view-reported");
536
+ case "floored":
537
+ return meaning("library-copy-change", "words-a-floor");
538
+ }
539
+ };
540
+ /**
541
+ * What a kind of part's pace reports, of one kind (0325).
542
+ *
543
+ * **The twenty-first set, and the first to bring neither a condition nor a
544
+ * subject of its own.** Its two census reasons were already a kind's and are
545
+ * reused as values; its other two are the states a part's own pace reports,
546
+ * said here of a kind — the same move `library-reach` made with the door's
547
+ * three states, and this table is again what says the two are one state at two
548
+ * subjects (0240).
549
+ */
550
+ export const meaningOfKindPaceSilence = (silence) => {
551
+ switch (silence) {
552
+ case "unread":
553
+ return meaning("library-pace", "no-view-reported");
554
+ case "unplaced":
555
+ return meaning("library-pace", "nothing-of-the-kind");
556
+ case "unreadable":
557
+ return meaning("library-pace", "words-a-floor");
558
+ case "wordless":
559
+ return meaning("library-pace", "says-nothing");
560
+ }
561
+ };
562
+ /**
563
+ * What a comparison of two windows' senders reports, of one kind (0394, 0414).
564
+ *
565
+ * **Two conditions of its own, and both are about running out of places rather
566
+ * than out of readers** (0400). Its first two members are the pair every
567
+ * comparison keyed by the vocabulary reports: `unplaced` is the census's
568
+ * `nothing-of-the-kind`, and `unpaired` is `nothing-carried` said of a place,
569
+ * exactly as a comparison of two windows of one library says it (0266).
570
+ *
571
+ * The next three are the population being empty, and they are three conditions
572
+ * rather than one because they are three instructions. `unwitnessable` is
573
+ * answered by nothing at all — it is a fact about the library. `uncheckable` is
574
+ * answered by readers under the places on both sides. `unclaimable` is answered
575
+ * by a sender that reports what it did. A surface handed one in place of another
576
+ * sends a deployment to rewrite pages that are fine, to wait for a week of
577
+ * readers it has already had, or to go and look at a primitive that is working.
578
+ *
579
+ * **`unwitnessable` is the census's word and `nothing-inside` said of an
580
+ * intersection, which is new and is the clause worth reading twice** (0414).
581
+ * 0400 refused the structural condition for the coarse member and was right to:
582
+ * *there is nothing inside it* is false of a library full of parts and short of
583
+ * readers. The split makes it true of what it is now said about — a kind no
584
+ * paired place of which holds anything on **both** sides. A place that held
585
+ * parts and was emptied by the release is in it, and that is deliberate: being a
586
+ * leaf on either side is a fact about a tree, so no reading of either window
587
+ * could ever have checked the place in both, and the remedy is the pages rather
588
+ * than the readers. That is what separates it from `no-reach-below`, which 0400
589
+ * also refused here and which stays refused — that one is a **measurement** of
590
+ * one window, and whether it holds depends on which window is read.
591
+ */
592
+ export const meaningOfSenderFixSilence = (silence) => {
593
+ switch (silence) {
594
+ case "unplaced":
595
+ return meaning("library-senders-change", "nothing-of-the-kind");
596
+ case "unpaired":
597
+ return meaning("library-senders-change", "nothing-carried");
598
+ case "unwitnessable":
599
+ return meaning("library-senders-change", "nothing-inside");
600
+ case "uncheckable":
601
+ return meaning("library-senders-change", "nothing-checkable");
602
+ case "unclaimable":
603
+ return meaning("library-senders-change", "nothing-claimed");
604
+ }
605
+ };
606
+ /** What a pace reading's silence reports, of one part (0230). */
607
+ export const meaningOfPaceSilence = (silence) => {
608
+ switch (silence) {
609
+ case "unreached":
610
+ return meaning("pace", "no-view-reported");
611
+ case "unreadable":
612
+ return meaning("pace", "words-a-floor");
613
+ case "wordless":
614
+ return meaning("pace", "says-nothing");
615
+ }
616
+ };
617
+ /**
618
+ * What a comparison of two windows' pace reports (0244).
619
+ *
620
+ * A comparison, so its subject is the pair and never the page on the screen —
621
+ * which is the distinction this module exists for: `nothing-measured` here does
622
+ * not say which of the two windows was empty.
623
+ */
624
+ export const meaningOfPaceChangeSilence = (silence) => {
625
+ switch (silence) {
626
+ case "different-trees":
627
+ return meaning("pace-change", "two-pages");
628
+ case "different-audiences":
629
+ return meaning("pace-change", "two-audiences");
630
+ case "wordless":
631
+ return meaning("pace-change", "says-nothing");
632
+ case "audiences-mixed":
633
+ return meaning("pace-change", "two-forms-unsplit");
634
+ case "nothing-measured":
635
+ return meaning("pace-change", "no-view-reported");
636
+ case "dissolved":
637
+ return meaning("pace-change", "nothing-carried");
638
+ }
639
+ };
640
+ /**
641
+ * What a share-of-readers silence reports, which is also a funnel's (0229).
642
+ *
643
+ * Its `unmeasured` is the one name in this subsystem that means something other
644
+ * than what the same name means elsewhere, and this is where that is written
645
+ * down: a missing row at the door, not a window without readers.
646
+ */
647
+ export const meaningOfReachSilence = (silence) => {
648
+ switch (silence) {
649
+ case "unmeasured":
650
+ return meaning("reach", "no-arrivals-counted");
651
+ case "unopened":
652
+ return meaning("reach", "no-openings-marked");
653
+ case "uncounted":
654
+ return meaning("reach", "no-window-folded");
655
+ }
656
+ };
657
+ /**
658
+ * What a comparison of two windows' funnels reports (0288).
659
+ *
660
+ * **The sixteenth set, and the first assembled out of the door's three said of
661
+ * a pair.** `different-trees` is the state every comparison here reports;
662
+ * `unscaled`, `unopened` and `uncounted` are the door's three (0229) at the
663
+ * `comparison` subject rather than the `page` subject a funnel answer reports
664
+ * them at; and `unasked` is `nothing-carried` said of a question.
665
+ *
666
+ * Nothing is new because nothing can be: a comparison is withheld for every
667
+ * reason one side's figure is withheld and for nothing a window could be in on
668
+ * its own. What the set does add is written up with the conditions above — the
669
+ * door's three cost this reading half of itself and not all of it.
670
+ */
671
+ export const meaningOfFunnelChangeSilence = (silence) => {
672
+ switch (silence) {
673
+ case "different-trees":
674
+ return meaning("funnel-change", "two-pages");
675
+ case "different-audiences":
676
+ return meaning("funnel-change", "two-audiences");
677
+ case "unscaled":
678
+ return meaning("funnel-change", "no-arrivals-counted");
679
+ case "unopened":
680
+ return meaning("funnel-change", "no-openings-marked");
681
+ case "uncounted":
682
+ return meaning("funnel-change", "no-window-folded");
683
+ case "audiences-mixed":
684
+ return meaning("funnel-change", "two-forms-unsplit");
685
+ case "unasked":
686
+ return meaning("funnel-change", "nothing-carried");
687
+ }
688
+ };
689
+ /**
690
+ * What a comparison of two forms of one page reports (0302).
691
+ *
692
+ * **The eighteenth set, and the first whose subject is the readership rather
693
+ * than the tree, the window or the vocabulary** — which is why it is also the
694
+ * first to bring three conditions of its own where no set since the eighth
695
+ * brought more than one. Each of the three is a state only a reading that holds
696
+ * the tree still and varies the audience can be in: two revisions, one
697
+ * population, and a side that cannot name its own.
698
+ *
699
+ * The other three are borrowed exactly. `different-pages` is the state every
700
+ * comparison here reports, `unsplit` is the window fault 0300 brought, and
701
+ * `nothing-measured` is the door's quiet window — and it is the only member of
702
+ * this set that withholds half of a reading rather than all of it.
703
+ */
704
+ export const meaningOfFormComparisonSilence = (silence) => {
705
+ switch (silence) {
706
+ case "different-pages":
707
+ return meaning("forms", "two-pages");
708
+ case "unsplit":
709
+ return meaning("forms", "two-forms-unsplit");
710
+ case "unattributed":
711
+ return meaning("forms", "no-audience-named");
712
+ case "one-population":
713
+ return meaning("forms", "one-population");
714
+ case "different-revisions":
715
+ return meaning("forms", "two-revisions");
716
+ case "nothing-measured":
717
+ return meaning("forms", "no-view-reported");
718
+ }
719
+ };
720
+ /**
721
+ * What a comparison of what two forms' readers *did* reports (0303).
722
+ *
723
+ * **The nineteenth set, and the first since the fourth to bring no condition of
724
+ * its own.** That is the whole of what this entry is here to say. It reports
725
+ * seven states and every one of them was already in the table: five from the
726
+ * form comparison's own pairing rule, which it imports rather than restates,
727
+ * one from the comparison of what readers did, and the door's quiet window.
728
+ *
729
+ * A set that brings nothing is the shape worth having, because the alternative
730
+ * was seven more names for seven states a surface can already print one
731
+ * sentence for (0240) — and `no-action-credited` arriving a second time is the
732
+ * evidence that the condition the action comparison declared was about the
733
+ * **sender** rather than about that comparison.
734
+ */
735
+ export const meaningOfFormActionSilence = (silence) => {
736
+ switch (silence) {
737
+ case "different-pages":
738
+ return meaning("form-action", "two-pages");
739
+ case "unsplit":
740
+ return meaning("form-action", "two-forms-unsplit");
741
+ case "unattributed":
742
+ return meaning("form-action", "no-audience-named");
743
+ case "one-population":
744
+ return meaning("form-action", "one-population");
745
+ case "different-revisions":
746
+ return meaning("form-action", "two-revisions");
747
+ case "unwalked":
748
+ return meaning("form-action", "no-action-credited");
749
+ case "nothing-measured":
750
+ return meaning("form-action", "no-view-reported");
751
+ }
752
+ };
753
+ /**
754
+ * What a comparison of what two forms *say* reports (0305).
755
+ *
756
+ * **The twentieth set, and the second in a row to bring no condition of its
757
+ * own** — eleven states, every one of them already here. Five are the pairing
758
+ * rule it imports rather than restates, and the other six are the states a
759
+ * reading of words has been in since the fourth set: a page that says nothing,
760
+ * a window nobody opened, a passage reporting more readers than views, no text
761
+ * the two sides share, nothing either side can speak for, and a word count that
762
+ * is a floor.
763
+ *
764
+ * Two sets in a row bringing nothing is a stronger version of what the
765
+ * nineteenth said about one. These are the states of the world, and a third
766
+ * reading of one pair of forms over a counter nothing else compares still lands
767
+ * entirely on them: what a new reading brings is a figure, and only a reading
768
+ * that can be in a state nothing before it could reaches for a condition.
769
+ */
770
+ export const meaningOfFormCopySilence = (silence) => {
771
+ switch (silence) {
772
+ case "different-pages":
773
+ return meaning("form-copy", "two-pages");
774
+ case "unsplit":
775
+ return meaning("form-copy", "two-forms-unsplit");
776
+ case "unattributed":
777
+ return meaning("form-copy", "no-audience-named");
778
+ case "one-population":
779
+ return meaning("form-copy", "one-population");
780
+ case "different-revisions":
781
+ return meaning("form-copy", "two-revisions");
782
+ case "wordless":
783
+ return meaning("form-copy", "says-nothing");
784
+ case "nothing-measured":
785
+ return meaning("form-copy", "no-view-reported");
786
+ case "inconsistent":
787
+ return meaning("form-copy", "readers-above-views");
788
+ case "unshared":
789
+ return meaning("form-copy", "nothing-carried");
790
+ case "unspoken":
791
+ return meaning("form-copy", "no-reach-reported");
792
+ case "floored":
793
+ return meaning("form-copy", "words-a-floor");
794
+ }
795
+ };
796
+ /**
797
+ * What an order of a deployment's conversions reports (0333).
798
+ *
799
+ * **The twenty-second set, and the second whose subject is what a deployment
800
+ * asked rather than what it measured.** Three members are the door's three
801
+ * (0229) at the page subject, `unsplit` is the window fault the split of two
802
+ * forms brought (0300), and `inconsistent` is the alarm every reading of
803
+ * counters against page views raises.
804
+ *
805
+ * Two are worth reading twice. `unanswered` is `no-reach-reported` said of a
806
+ * funnel end rather than of a part — a counter that is there and reports
807
+ * nobody arriving at it — and `stale` is the one condition this set brings:
808
+ * every question asked of a page that the page no longer has the parts for.
809
+ *
810
+ * **A page nothing asks anything of is not in this set at all.** It is a
811
+ * standing and not a silence: no figure is withheld, because no question was
812
+ * written, and the sentence is *there is nothing here to measure* rather than
813
+ * *this could not be measured*.
814
+ */
815
+ export const meaningOfConversionSilence = (silence) => {
816
+ switch (silence) {
817
+ case "unsplit":
818
+ return meaning("conversion", "two-forms-unsplit");
819
+ case "unscaled":
820
+ return meaning("conversion", "no-arrivals-counted");
821
+ case "unopened":
822
+ return meaning("conversion", "no-openings-marked");
823
+ case "uncounted":
824
+ return meaning("conversion", "no-window-folded");
825
+ case "stale":
826
+ return meaning("conversion", "questions-stale");
827
+ case "unanswered":
828
+ return meaning("conversion", "no-reach-reported");
829
+ case "inconsistent":
830
+ return meaning("conversion", "readers-above-views");
831
+ }
832
+ };
833
+ /**
834
+ * What a reader-weighted reading of a library's silent senders reports, of one
835
+ * kind.
836
+ *
837
+ * **Six members and not one new state of the world**, which is the claim this
838
+ * table exists to make. Three of them are the census of silent senders' own
839
+ * values, reused rather than respelled because that census is already asked of a
840
+ * kind; the other three are the door's, said at this subject exactly as a kind's
841
+ * share of the readers who met it says them (0256). A reading that answers a
842
+ * question no reading here could answer, and brings no condition with it, is
843
+ * what a mapped vocabulary is supposed to look like.
844
+ *
845
+ * `unwitnessed` is `no-reach-below` for the reason the sibling condition exists
846
+ * at all: the reach it is missing is not the subject's own, and a deployment
847
+ * handed `no-reach-reported` instead would go and rewrite a primitive that works
848
+ * because nobody has stood under it yet.
849
+ *
850
+ * **The door's three are kept apart from each other here, too.** A weighted
851
+ * figure is withheld for the whole kind when any page bearing a checkable place
852
+ * of it cannot be scaled, and which page that was is published with a page's own
853
+ * reason on it — so the remedy stays legible: a missing row is retention, no
854
+ * openings is a sender, and an unfolded window is a wait.
855
+ */
856
+ export const meaningOfSenderReachSilence = (silence) => {
857
+ switch (silence) {
858
+ case "unplaced":
859
+ return meaning("library-senders-reach", "nothing-of-the-kind");
860
+ case "unwitnessable":
861
+ return meaning("library-senders-reach", "nothing-inside");
862
+ case "unwitnessed":
863
+ return meaning("library-senders-reach", "no-reach-below");
864
+ case "unscaled":
865
+ return meaning("library-senders-reach", "no-arrivals-counted");
866
+ case "unopened":
867
+ return meaning("library-senders-reach", "no-openings-marked");
868
+ case "uncounted":
869
+ return meaning("library-senders-reach", "no-window-folded");
870
+ }
871
+ };
872
+ /**
873
+ * What a comparison of two windows of a library's silent senders, among the
874
+ * readings that got inside them, reports of one kind.
875
+ *
876
+ * **Not one new state of the world**, which is what a reading built out of two
877
+ * readings that are both already mapped ought to report. The comparison of
878
+ * places' own values are reused rather than respelled, because that comparison
879
+ * is already asked of a kind; the rest are the door's, said at this subject
880
+ * exactly as the reader-weighted reading of one window says them. No count of
881
+ * them is written here: the member list is the test's to count (0400 clause 8).
882
+ *
883
+ * The three worth reading twice are `unwitnessable`, `uncheckable` and
884
+ * `unclaimable`, in that order. *Nothing stands inside its places to report
885
+ * them*, *come back with readers on both sides*, and *the places are checkable
886
+ * and one window would not say what they did* are three instructions with three
887
+ * remedies — nothing, waiting, and a primitive to look at — and the subsystem's
888
+ * conditions for them keep that difference where a surface can see it (0414).
889
+ */
890
+ export const meaningOfSenderReachChangeSilence = (silence) => {
891
+ switch (silence) {
892
+ case "unplaced":
893
+ return meaning("library-senders-reach-change", "nothing-of-the-kind");
894
+ case "unpaired":
895
+ return meaning("library-senders-reach-change", "nothing-carried");
896
+ case "unwitnessable":
897
+ return meaning("library-senders-reach-change", "nothing-inside");
898
+ case "uncheckable":
899
+ return meaning("library-senders-reach-change", "nothing-checkable");
900
+ case "unclaimable":
901
+ return meaning("library-senders-reach-change", "nothing-claimed");
902
+ case "unscaled":
903
+ return meaning("library-senders-reach-change", "no-arrivals-counted");
904
+ case "unopened":
905
+ return meaning("library-senders-reach-change", "no-openings-marked");
906
+ case "uncounted":
907
+ return meaning("library-senders-reach-change", "no-window-folded");
908
+ }
909
+ };
910
+ /**
911
+ * What a fold of an hourly series into the hours of a day reports (0389).
912
+ *
913
+ * **The twenty-third set, and the first whose subject is a run of hours.** It
914
+ * brought both of its conditions, which no set had done since the first five,
915
+ * and the reason is that it is the first reading here that is a fold of a
916
+ * **clock** rather than of a window: its silences are the two ways a series can
917
+ * hold no finished hour, and nothing about a page, a part, a pair or a kind can
918
+ * be in either.
919
+ *
920
+ * `unmeasured` is the one worth stating. It is not `no-window-folded`, which is
921
+ * the state it reads most like — that condition asserts readers arrived and the
922
+ * rollup has not caught up, and an empty series is equally what a deployment
923
+ * nobody has read looks like. Collapsing the two would have put *your rollup is
924
+ * behind* on a deployment with no readers.
925
+ */
926
+ export const meaningOfDayShapeSilence = (silence) => {
927
+ switch (silence) {
928
+ case "unmeasured":
929
+ return meaning("rhythm", "no-hour-counted");
930
+ case "unsettled":
931
+ return meaning("rhythm", "no-hour-settled");
932
+ }
933
+ };
934
+ /**
935
+ * What a census of a library's silent senders reports, of one kind (0393).
936
+ *
937
+ * **The twenty-fourth set, and it brought exactly one condition.** Two of its
938
+ * three members are states already here at the same subject: `unplaced` is the
939
+ * census's `nothing-of-the-kind`, and `unwitnessable` is `nothing-inside` — a
940
+ * kind standing only in places with no element part under them, which is the
941
+ * eleventh set's condition said of the one question a part's own report can be
942
+ * checked by.
943
+ *
944
+ * `unwitnessed` is the new one, and it is `no-reach-below` rather than
945
+ * `no-reach-reported` because the reach it is missing is not the subject's. A
946
+ * placement of this kind holds parts and no view reported reaching any of them,
947
+ * so the defect this reading is about — a part on a reader's screen that said
948
+ * nothing — cannot be seen there at all. The sibling condition would have sent a
949
+ * deployment to its senders for a window in which nobody had stood under the
950
+ * component.
951
+ */
952
+ export const meaningOfSenderSilence = (silence) => {
953
+ switch (silence) {
954
+ case "unplaced":
955
+ return meaning("library-senders", "nothing-of-the-kind");
956
+ case "unwitnessable":
957
+ return meaning("library-senders", "nothing-inside");
958
+ case "unwitnessed":
959
+ return meaning("library-senders", "no-reach-below");
960
+ }
961
+ };
962
+ export const SILENCE_RELATIONS = everyMemberOf()([
963
+ "one-state",
964
+ "one-reason",
965
+ "unrelated",
966
+ ]);
967
+ /**
968
+ * Hold two readings' reasons against each other.
969
+ *
970
+ * The vocabulary is deliberately not part of the comparison. Two readings that
971
+ * report one state are reporting one state whether or not they spell it the
972
+ * same, which is the whole of what this module is for.
973
+ */
974
+ export const relateSilences = (one, other) => {
975
+ if (one.condition !== other.condition)
976
+ return "unrelated";
977
+ return one.subject === other.subject ? "one-state" : "one-reason";
978
+ };
979
+ /**
980
+ * The states a card is actually in, out of the readings on it.
981
+ *
982
+ * Takes the silences as a surface holds them — one per reading, most of them
983
+ * `null` on a healthy deployment — and gives back the distinct states, in the
984
+ * order the readings were handed over. Nulls are dropped rather than refused,
985
+ * because that is the shape of the call: a caller maps its readings' `silence`
986
+ * fields and should not have to narrow them first.
987
+ *
988
+ * Two readings that report one state collapse to one entry, and the entry keeps
989
+ * the **first** reading's vocabulary, so a surface that would rather print that
990
+ * reading's own sentence still can. Two readings that report one condition
991
+ * about different subjects stay as two, for the reason the relation gives.
992
+ */
993
+ export const distinctSilences = (meanings) => meanings.reduce((kept, next) => next === null || kept.some((seen) => relateSilences(seen, next) === "one-state")
994
+ ? kept
995
+ : [...kept, next], []);
996
+ //# sourceMappingURL=silences.js.map