@bongos/core 1.20.50 → 1.20.52

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 (77) hide show
  1. package/.bongos-core.json +172 -62
  2. package/docs/copy-inventory.md +54 -52
  3. package/docs/copy-registry.json +106 -88
  4. package/docs/module-api-changelog.md +4 -0
  5. package/docs/page-inventory.json +6 -1
  6. package/docs/page-readings.json +449 -427
  7. package/modules/hall-ui/public/atlas.html +1 -1
  8. package/modules/hall-ui/public/blockers.html +1 -1
  9. package/modules/hall-ui/public/board-room.html +1 -1
  10. package/modules/hall-ui/public/collab.html +1 -1
  11. package/modules/hall-ui/public/commands.html +1 -1
  12. package/modules/hall-ui/public/copy-desk.html +1 -1
  13. package/modules/hall-ui/public/deploy.html +1 -1
  14. package/modules/hall-ui/public/diagrams.html +1 -1
  15. package/modules/hall-ui/public/drachmae.html +1 -1
  16. package/modules/hall-ui/public/fleet.html +1 -1
  17. package/modules/hall-ui/public/gate.html +1 -1
  18. package/modules/hall-ui/public/goal-map.html +29 -14
  19. package/modules/hall-ui/public/goal-map.states.json +12 -0
  20. package/modules/hall-ui/public/goals.html +1 -1
  21. package/modules/hall-ui/public/government.html +1 -1
  22. package/modules/hall-ui/public/idea.html +1 -1
  23. package/modules/hall-ui/public/ideas.html +1 -1
  24. package/modules/hall-ui/public/index.html +1 -1
  25. package/modules/hall-ui/public/modules.html +1 -1
  26. package/modules/hall-ui/public/primer.html +1 -1
  27. package/modules/hall-ui/public/profile.html +1 -1
  28. package/modules/hall-ui/public/project-settings.html +1 -1
  29. package/modules/hall-ui/public/ranks.html +1 -1
  30. package/modules/hall-ui/public/roadmap.html +1 -1
  31. package/modules/hall-ui/public/roster.html +1 -1
  32. package/modules/hall-ui/public/sessions.html +1 -1
  33. package/modules/hall-ui/public/settings.html +1 -1
  34. package/modules/hall-ui/public/shell.js +145 -15
  35. package/modules/hall-ui/public/studio.html +1 -1
  36. package/modules/hall-ui/public/style.css +61 -5
  37. package/modules/hall-ui/public/task.html +1 -1
  38. package/modules/hall-ui/public/thinking.css +15 -11
  39. package/modules/hall-ui/public/thinking.html +1 -1
  40. package/modules/hall-ui/public/tweak-editor.css +6 -0
  41. package/modules/hall-ui/public/tweak-editor.html +2 -2
  42. package/modules/hall-ui/public/watch.html +1 -1
  43. package/modules/hall-ui/public/work.html +1 -1
  44. package/modules/hall-ui/records/hall-navigation.md +22 -0
  45. package/modules/hall-ui/records/sky.md +2 -0
  46. package/modules/provisioning/soft-limits.js +17 -0
  47. package/modules/public-landing/public/assets/world/r5-life-1-primordial-sea-cut.webp +0 -0
  48. package/modules/public-landing/public/assets/world/r5-life-1-primordial-sea-cut.webp.json +16 -0
  49. package/modules/public-landing/public/assets/world/r5-life-1-primordial-sea.jpg +0 -0
  50. package/modules/public-landing/public/assets/world/r5-life-1-primordial-sea.jpg.json +16 -0
  51. package/modules/public-landing/public/assets/world/r5-life-2-first-cells-cut.webp +0 -0
  52. package/modules/public-landing/public/assets/world/r5-life-2-first-cells-cut.webp.json +16 -0
  53. package/modules/public-landing/public/assets/world/r5-life-2-first-cells.jpg +0 -0
  54. package/modules/public-landing/public/assets/world/r5-life-2-first-cells.jpg.json +16 -0
  55. package/modules/public-landing/public/assets/world/r5-life-3-genome-cut.webp +0 -0
  56. package/modules/public-landing/public/assets/world/r5-life-3-genome-cut.webp.json +16 -0
  57. package/modules/public-landing/public/assets/world/r5-life-3-genome.jpg +0 -0
  58. package/modules/public-landing/public/assets/world/r5-life-3-genome.jpg.json +16 -0
  59. package/modules/public-landing/public/assets/world/r5-life-4-membrane-cut.webp +0 -0
  60. package/modules/public-landing/public/assets/world/r5-life-4-membrane-cut.webp.json +16 -0
  61. package/modules/public-landing/public/assets/world/r5-life-4-membrane.jpg +0 -0
  62. package/modules/public-landing/public/assets/world/r5-life-4-membrane.jpg.json +16 -0
  63. package/modules/public-landing/public/assets/world/r5-life-5-nervous-system-cut.webp +0 -0
  64. package/modules/public-landing/public/assets/world/r5-life-5-nervous-system-cut.webp.json +16 -0
  65. package/modules/public-landing/public/assets/world/r5-life-5-nervous-system.jpg +0 -0
  66. package/modules/public-landing/public/assets/world/r5-life-5-nervous-system.jpg.json +16 -0
  67. package/package-lock.json +2 -2
  68. package/package.json +1 -1
  69. package/release-notes.json +16 -0
  70. package/src/module-api.js +1 -1
  71. package/tests/genesis_life_plates.mjs +63 -0
  72. package/tests/goal_map_page.mjs +10 -7
  73. package/tests/hall_audit.mjs +3 -4
  74. package/tests/hall_fullscreen.mjs +99 -14
  75. package/tests/hall_tweak_editor.mjs +1 -1
  76. package/tests/nav_permission_atoms.mjs +1 -1
  77. package/tests/provisioning_planet_physics.mjs +14 -0
@@ -422,18 +422,21 @@ await test('Sky sits directly under Goals in the nav, member-gated, at the URL G
422
422
 
423
423
  await test('the page is the sky\'s own surface — the same sheet and the same seven scripts as /thinking, one cache-bust between them, and the old goal map is gone', () => {
424
424
  const html = read('goal-map.html'); const thinking = read('thinking.html');
425
- assert.match(html, /<body data-page="goal-map" data-page-title="The sky" data-sky-lens="all">/);
425
+ assert.match(html, /<body data-page="goal-map" data-page-title="The sky" data-sky-lens="all" data-fullscreen-switch>/);
426
426
  assert.match(html, /<title>The sky — \{\{worldName\}\}<\/title>/);
427
427
  assert.match(html, /<h1>the sky <em id="lensWord">— the whole project<\/em><\/h1>/, 'the h1 is in static markup, so every state has one');
428
- assert.equal(/shell\.js|style\.css/.test(html), false, 'no hall chrome yet — /thinking joined it (task 1004327), the project sky did not');
428
+ // IN THE HALL (task 1004430): the project sky joined /thinking in the chrome.
429
+ assert.match(html, /<script src="\/builders\/shell\.js\?v=/, 'the shell draws its sidebar and top bar');
430
+ assert.match(html, /<link rel="stylesheet" href="\/builders\/style\.css/, 'and the hall sheet styles them');
431
+ assert.match(html, /<main id="hall-main" class="sky-stage">/, 'the sky is drawn in the stage, the skip link\'s target');
429
432
  const scripts = (h) => [...h.matchAll(/<script src="\/builders\/([^"?]+)\?v=([^"]+)"/g)].map((m) => [m[1], m[2]]);
430
433
  // criterion-uat-ui.js (task 1004402): the rings' UAT state words, shared with the goal page.
431
- assert.deepEqual(scripts(html).map((s) => s[0]), ['idea-objects.js', 'criterion-uat-ui.js', 'sky-data.js', 'sky-layout.js', 'sky-draw.js', 'sky-interaction.js', 'sky-panel.js', 'sky-composer.js', 'sky-tour.js']);
432
- // /thinking also loads the shell (task 1004327); the SKY's files are the same.
434
+ assert.deepEqual(scripts(html).filter((s) => s[0] !== 'shell.js').map((s) => s[0]), ['idea-objects.js', 'criterion-uat-ui.js', 'sky-data.js', 'sky-layout.js', 'sky-draw.js', 'sky-interaction.js', 'sky-panel.js', 'sky-composer.js', 'sky-tour.js']);
435
+ // Both doors load the shell (tasks 1004327, 1004430); the SKY's files are the same.
433
436
  const skyScripts = (h) => scripts(h).filter((s) => s[0] !== 'shell.js');
434
437
  assert.deepEqual(skyScripts(html), skyScripts(thinking), 'the two doors load the same sky files at the same stamp');
435
438
  assert.equal(html.match(/thinking\.css\?v=([^"]+)/)[1], thinking.match(/thinking\.css\?v=([^"]+)/)[1]);
436
- assert.match(read('thinking.css'), /body\[data-page="goal-map"\], body\[data-page="thinking"\] \.sky-stage \{/, 'the sheet names both doors: the project sky\'s body, and the stage /thinking draws in inside the hall');
439
+ assert.match(read('thinking.css'), /body\[data-page\] \.sky-stage \{/, 'the sheet dresses the one stage both doors draw in inside the hall');
437
440
  for (const f of ['goal-map.css', 'goal-map.js', 'goal-map-lib.js']) assert.equal(fs.existsSync(path.join(HALL, f)), false, `${f} is retired`);
438
441
  assert.equal(fs.existsSync(path.join(ROOT, 'tests/goal_map_lib.mjs')), false, 'and so is the lib\'s test');
439
442
  assert.equal(/goal-map-lib|goal-map\.js|goal-map\.css/.test(html), false);
@@ -457,11 +460,11 @@ await test('the ledger drawer accessible name matches its visible heading (docs/
457
460
  // slide the sky again whatever overflows; and the hint now shrinks instead.
458
461
  await test('the sky cannot be scrolled sideways: its box clips, it does not hide (task 1004342)', () => {
459
462
  const css = read('thinking.css');
460
- const rule = /body\[data-page="goal-map"\], body\[data-page="thinking"\] \.sky-stage \{ margin: 0;[^}]*\}/.exec(css);
463
+ const rule = /body\[data-page\] \.sky-stage \{ margin: 0;[^}]*\}/.exec(css);
461
464
  assert.ok(rule, 'the shared stage rule is still there');
462
465
  // hidden first as the fallback for an engine without clip, then clip, which wins where supported
463
466
  assert.match(rule[0], /overflow: hidden; overflow: clip;/, 'the stage clips (not scrollable), with hidden only as a fallback');
464
- assert.match(css, /body\[data-page="thinking"\] \{ overflow: hidden; overflow: clip; \}/, 'and so does the page body');
467
+ assert.match(css, /body\[data-page="thinking"\], body\[data-page="goal-map"\] \{ overflow: hidden; overflow: clip; \}/, 'and so does each door\'s page body');
465
468
  });
466
469
 
467
470
  await test('the footer hint shrinks with an ellipsis instead of running past the stage (task 1004342)', () => {
@@ -367,10 +367,9 @@ test('the module doc still records where the 2179 density pass landed', () => {
367
367
  // tests/hall_sky.mjs against the template. It still stamps the branding token
368
368
  // and the pack's font links like every hall page (the server injects them).
369
369
  // /thinking left this list in task 1004327 (owner decision 2026-09-27): it sits
370
- // in the hall chrome now, with the shell's full-screen switch to hide it.
371
- const STANDALONE_EXEMPT = {
372
- 'goal-map.html': 'the project sky (task 1004232) — the same surface as thinking.html, opened in its whole-project lens',
373
- };
370
+ // in the hall chrome now, with the shell's full-screen switch to hide it. The
371
+ // project sky (/goal-map) followed in task 1004430, so the list is empty again.
372
+ const STANDALONE_EXEMPT = {};
374
373
 
375
374
  test('every hall page loads style.css and shell.js', () => {
376
375
  const missing = [];
@@ -26,7 +26,12 @@ const read = (f) => fs.readFileSync(path.join(HALL, f), 'utf8');
26
26
 
27
27
  // Boot the shell once — one page load. `store` is the browser's localStorage and
28
28
  // is SHARED across boots on purpose: a second boot over the same store is a reload.
29
- function boot({ page = 'thinking', optIn = true, store = {}, storageThrows = false } = {}) {
29
+ // `optIn`: true = the bare attribute (the page lays itself out for full screen),
30
+ // null = no attribute (a plain page — the switch is standard since task
31
+ // 1004430), 'off' = the page opts out. `referrer` / `search` / `session` /
32
+ // `recBack` drive the top bar's Back link (task 1004430).
33
+ function boot({ page = 'thinking', optIn = true, store = {}, storageThrows = false,
34
+ referrer = '', search = '', session = {}, recBack = false, path = null, meId = null } = {}) {
30
35
  const els = new Map();
31
36
  const windowListeners = {};
32
37
  const timers = [];
@@ -49,25 +54,41 @@ function boot({ page = 'thinking', optIn = true, store = {}, storageThrows = fal
49
54
  const topbar = makeEl('app-topbar');
50
55
  const getElementById = (id) => {
51
56
  if (id === 'app-topbar') return topbar;
52
- if (/^(fullscreen-toggle|theme-toggle|zoom-toggle|topbar-menu|topbar-title|topbar-jump)$/.test(id)
57
+ if (/^(fullscreen-toggle|theme-toggle|zoom-toggle|topbar-menu|topbar-title|topbar-jump|topbar-back)$/.test(id)
53
58
  && !topbar._html.includes(`id="${id}"`)) return null;
54
59
  if (!els.has(id)) els.set(id, makeEl(id));
55
60
  return els.get(id);
56
61
  };
62
+ // Two sidebar items, enough to see which one the shell marks active.
63
+ const navItems = ['/roster', '/profile'].map((href) => {
64
+ const cls = new Set();
65
+ return { href, dataset: {}, getAttribute: (k) => (k === 'href' ? href : null),
66
+ classList: { add: (c) => cls.add(c), remove: (c) => cls.delete(c), contains: (c) => cls.has(c) } };
67
+ });
68
+ const attr = optIn === true ? '' : optIn === false ? null : optIn;
57
69
  const body = {
58
70
  dataset: { page },
59
- hasAttribute: (k) => optIn && k === 'data-fullscreen-switch',
71
+ hasAttribute: (k) => k === 'data-fullscreen-switch' && attr !== null,
72
+ getAttribute: (k) => (k === 'data-fullscreen-switch' ? attr : null),
73
+ appendChild() {},
60
74
  };
61
75
  const documentObj = {
62
76
  body,
77
+ referrer,
63
78
  documentElement: { dataset: {}, style: {}, classList: { add() {}, remove() {}, toggle() { return false; }, contains() { return false; } } },
64
79
  getElementById,
65
- querySelectorAll() { return []; },
80
+ querySelector: (sel) => (/\.rec-back/.test(sel) && recBack ? {} : null),
81
+ querySelectorAll: (sel) => (sel === '#app-sidebar .nav-item' ? navItems : []),
66
82
  createElement() { return makeEl(null); },
67
83
  addEventListener() {}, dispatchEvent() {},
68
84
  get cookie() { return ''; }, set cookie(_v) {},
69
85
  };
70
- const location = { hostname: 'h', origin: 'https://h', pathname: '/' + page, hash: '', search: '', assign() {}, replace() {} };
86
+ const location = { hostname: 'h', origin: 'https://h', href: 'https://h/' + page + search, pathname: path || '/' + page, hash: '', search, assign() {}, replace() {} };
87
+ const sessionStorage = {
88
+ getItem: (k) => (k in session ? session[k] : null),
89
+ setItem: (k, v) => { session[k] = String(v); },
90
+ removeItem: (k) => { delete session[k]; },
91
+ };
71
92
  const localStorage = {
72
93
  getItem: (k) => { if (storageThrows) throw new Error('SecurityError'); return k in store ? store[k] : null; },
73
94
  setItem: (k, v) => { if (storageThrows) throw new Error('SecurityError'); store[k] = String(v); },
@@ -75,16 +96,18 @@ function boot({ page = 'thinking', optIn = true, store = {}, storageThrows = fal
75
96
  let resizes = 0;
76
97
  const windowObj = {
77
98
  __BRANDING__: {}, __MODULES__: { enabled: {} },
78
- BongosClient: { createClient: () => ({ request: () => new Promise(() => {}) }) },
99
+ // `meId` answers /me once with that builder; otherwise the read never settles.
100
+ BongosClient: { createClient: () => ({ request: () => (meId == null ? new Promise(() => {})
101
+ : Promise.resolve({ status: 200, ok: true, data: { builder: { id: meId, rank: 'thetes' } } })) }) },
79
102
  matchMedia: () => ({ matches: false, addEventListener() {} }),
80
- localStorage, location,
103
+ localStorage, sessionStorage, location, clearTimeout() {},
81
104
  requestAnimationFrame() {}, scrollTo() {},
82
105
  addEventListener(type, fn) { (windowListeners[type] ||= []).push(fn); },
83
106
  dispatchEvent(ev) { if (ev && ev.type === 'resize') resizes += 1; return true; },
84
107
  setTimeout: (fn) => { timers.push(fn); return timers.length; },
85
108
  };
86
109
  const sandbox = {
87
- window: windowObj, document: documentObj, location, console, clearTimeout() {}, queueMicrotask,
110
+ window: windowObj, document: documentObj, location, console, clearTimeout() {}, queueMicrotask, URL, URLSearchParams,
88
111
  setTimeout: windowObj.setTimeout,
89
112
  Event: class { constructor(t) { this.type = t; } },
90
113
  CustomEvent: class { constructor(t, i) { this.type = t; Object.assign(this, i); } },
@@ -97,6 +120,10 @@ function boot({ page = 'thinking', optIn = true, store = {}, storageThrows = fal
97
120
  store,
98
121
  button: () => getElementById('fullscreen-toggle'),
99
122
  on: () => root.dataset.fullscreen === 'on',
123
+ plain: () => root.dataset.fullscreenPlain === 'on',
124
+ active: () => navItems.filter((a) => a.classList.contains('nav-item--active')).map((a) => a.href),
125
+ topbar: () => topbar._html,
126
+ session,
100
127
  resizes: () => resizes,
101
128
  // Press a key the way the browser dispatches it: every window listener,
102
129
  // then the page may mark the press used, then the queued timers run.
@@ -109,13 +136,71 @@ function boot({ page = 'thinking', optIn = true, store = {}, storageThrows = fal
109
136
  };
110
137
  }
111
138
 
112
- test('a page that does not opt in gets no switch, and never goes full screen', () => {
139
+ test('a page that opts OUT gets no switch, and never goes full screen', () => {
113
140
  const store = { 'hall-fullscreen:work': 'on' };
114
- const p = boot({ page: 'work', optIn: false, store });
141
+ const p = boot({ page: 'work', optIn: 'off', store });
115
142
  assert.equal(p.button(), null, 'no button rendered');
116
143
  assert.equal(p.on(), false, 'a stored value for a page with no switch is ignored');
117
144
  });
118
145
 
146
+ test('THE SWITCH IS STANDARD (task 1004430): a page with no attribute gets it too, marked plain', () => {
147
+ const p = boot({ page: 'goals', optIn: false });
148
+ assert.ok(p.button(), 'goals carries the switch without opting in');
149
+ p.button().click();
150
+ assert.equal(p.on(), true);
151
+ assert.equal(p.plain(), true, 'a plain page: style.css steps its content clear of the corner button');
152
+ p.button().click();
153
+ assert.equal(p.plain(), false, 'and the mark leaves with full screen');
154
+ const sky = boot({ page: 'thinking' });
155
+ sky.button().click();
156
+ assert.equal(sky.plain(), false, 'a page that lays itself out for full screen is not plain');
157
+ });
158
+
159
+ // THE BACK LINK (task 1004430). The owner's case: a profile opened from the
160
+ // Builders list shows "← Builders", and a sidebar hop shows nothing.
161
+ test('a page reached from inside another hall page shows Back to it, by its nav label', () => {
162
+ const p = boot({ page: 'profile', optIn: false, search: '?id=7', referrer: 'https://h/roster' });
163
+ assert.match(p.topbar(), /<a class="topbar-back" id="topbar-back" href="\/roster"/);
164
+ assert.match(p.topbar(), />Builders<\/span><\/a>/);
165
+ });
166
+
167
+ test('Back: ?from= wins over the referrer, and a record origin is named as the record', () => {
168
+ const p = boot({ page: 'profile', optIn: false, search: '?id=7&from=%2Ftask%2F42', referrer: 'https://h/roster' });
169
+ assert.match(p.topbar(), /href="\/task\/42"/);
170
+ assert.match(p.topbar(), />task 42<\/span>/);
171
+ });
172
+
173
+ test('Back: none after a sidebar hop, from another site, from the page itself, or where the page draws its own', () => {
174
+ const hop = boot({ page: 'goals', optIn: false, referrer: 'https://h/work', session: { 'hall-nav-hop': '/goals' } });
175
+ assert.doesNotMatch(hop.topbar(), /topbar-back/, 'the sidebar is not a drill-down');
176
+ assert.equal(hop.session['hall-nav-hop'], undefined, 'the note is one-shot');
177
+ assert.doesNotMatch(boot({ page: 'goals', optIn: false, referrer: 'https://elsewhere.example/roster' }).topbar(), /topbar-back/);
178
+ assert.doesNotMatch(boot({ page: 'goals', optIn: false, referrer: 'https://h/goals' }).topbar(), /topbar-back/);
179
+ assert.doesNotMatch(boot({ page: 'task', optIn: false, path: '/task/9', referrer: 'https://h/goals', recBack: true }).topbar(), /topbar-back/,
180
+ 'the task record keeps its own back link, and the bar adds no second one');
181
+ });
182
+
183
+ test('someone else\'s profile highlights Builders; your own hands the mark back to Profile', async () => {
184
+ const other = boot({ page: 'profile', optIn: false, search: '?id=7', meId: 3 });
185
+ assert.deepEqual(other.active(), ['/roster'], 'at boot, before /me answers');
186
+ await new Promise((r) => setImmediate(r));
187
+ assert.deepEqual(other.active(), ['/roster'], 'id 7 is not the viewer (3)');
188
+ const own = boot({ page: 'profile', optIn: false, search: '?id=3', meId: 3 });
189
+ await new Promise((r) => setImmediate(r));
190
+ assert.deepEqual(own.active(), ['/profile'], 'the viewer\'s own id is their Profile');
191
+ assert.deepEqual(boot({ page: 'profile', optIn: false }).active(), ['/profile'], 'no id: your own profile');
192
+ });
193
+
194
+ test('Back: a page\'s own back link (data-own-back, the tweak editor\'s "← studio") suppresses the bar\'s', () => {
195
+ assert.match(read('tweak-editor.html'), /<a class="tw-back" data-own-back href="\/builders\/studio">/);
196
+ assert.match(SHELL, /querySelector\('\.rec-back, \[data-own-back\]'\)/);
197
+ });
198
+
199
+ test('Back: an origin\'s own ?from= is dropped, so one page\'s way back never chains into the next', () => {
200
+ const p = boot({ page: 'profile', optIn: false, search: '?id=7', referrer: 'https://h/roster?q=a&from=%2Fwork' });
201
+ assert.match(p.topbar(), /href="\/roster\?q=a"/);
202
+ });
203
+
119
204
  test('an opted-in page renders ONE switch in the top bar, off by default', () => {
120
205
  const p = boot();
121
206
  const btn = p.button();
@@ -130,7 +215,8 @@ test('the switch hides the chrome, the same button brings it back', () => {
130
215
  p.button().click();
131
216
  assert.equal(p.on(), true, 'html[data-fullscreen="on"]');
132
217
  assert.equal(p.button().getAttribute('aria-pressed'), 'true');
133
- assert.equal(p.button().getAttribute('aria-label'), 'Leave full screen');
218
+ assert.equal(p.button().getAttribute('aria-label'), 'Exit full screen');
219
+ assert.match(p.button().innerHTML, />Exit full screen<\/span>/, 'a labelled pill, not a bare glyph (task 1004430)');
134
220
  assert.ok(p.resizes() >= 1, 'a page that sizes to its box is told to re-measure');
135
221
  p.button().click();
136
222
  assert.equal(p.on(), false, 'and back');
@@ -174,15 +260,14 @@ test('storage that throws (a private window) leaves the chrome showing and the s
174
260
  assert.equal(p.on(), true, 'the switch still works for this page load');
175
261
  });
176
262
 
177
- test('the studio and Your thinking opt in, inside the hall chrome; the project sky does not (yet)', () => {
178
- for (const f of ['studio.html', 'thinking.html']) {
263
+ test('the studio, Your thinking and the project sky lay themselves out for it, inside the hall chrome', () => {
264
+ for (const f of ['studio.html', 'thinking.html', 'goal-map.html']) {
179
265
  const html = read(f);
180
266
  assert.match(html, /<body[^>]*\bdata-fullscreen-switch\b/, `${f} opts in`);
181
267
  for (const id of ['app-sidebar', 'app-topbar']) assert.match(html, new RegExp(`id="${id}"`), `${f} carries #${id}`);
182
268
  assert.match(html, /<main id="hall-main"/, `${f}: the skip link's target`);
183
269
  assert.equal((html.replace(/<!--[\s\S]*?-->/g, '').match(/<header\b/g) || []).length, 1, `${f}: the top bar is the one <header>`);
184
270
  }
185
- assert.doesNotMatch(read('goal-map.html'), /data-fullscreen-switch|shell\.js/, '/goal-map keeps its standalone form');
186
271
  });
187
272
 
188
273
  // SOURCE ASSERTION (the CSS half): full screen hides the sidebar and the foot
@@ -635,7 +635,7 @@ try {
635
635
  assert.match(HTML, /<body data-page="tweak-editor"[^>]*data-fullscreen-switch/);
636
636
  assert.equal((HTML.match(/<h1\b/g) || []).length, 1);
637
637
  assert.ok(HTML.indexOf('tweak-editor-lib.js') < HTML.indexOf('tweak-editor.js?'), 'the lib loads first');
638
- assert.match(HTML, /shell\.js\?v=2026-09-30-founding-commands/);
638
+ assert.match(HTML, /shell\.js\?v=2026-09-30-navback2/);
639
639
  assert.equal(/fonts\.googleapis\.com\/css/.test(HTML), false);
640
640
  for (const id of ['tw-bar', 'tw-counter', 'tw-open', 'tw-open-more', 'tw-divider', 'tw-openwrap', 'tw-open-menu', 'tw-open-tab', 'tw-open-split', 'tw-frame', 'tw-frame-view', 'tw-split-close', 'tw-download', 'tw-upload', 'tw-file', 'tw-submit', 'tw-paper', 'tw-doc', 'tw-notice', 'tw-done', 'tw-take', 'tw-pick', 'tw-picks', 'tw-refused', 'tw-refused-title', 'tw-refused-list', 'tw-refused-next', 'tw-refused-download', 'tw-refused-close']) {
641
641
  assert.ok(new RegExp(`id="${id}"`).test(HTML), `#${id} is in the markup`);
@@ -87,7 +87,7 @@ test('the hall-preview fixture carries every atom /me resolves', () => {
87
87
  // the file and left the query alone, so a returning browser kept the cached copy —
88
88
  // a fix that reaches nobody looks identical to a fix that does not work.
89
89
 
90
- const SHELL_SHA = '3e4f905947bc39d2';
90
+ const SHELL_SHA = 'c05e9d87594aca3c';
91
91
 
92
92
  test('shell.js has not changed without its cache-bust being bumped', () => {
93
93
  const actual = crypto.createHash('sha256').update(SHELL).digest('hex').slice(0, 16);
@@ -188,6 +188,20 @@ await t("the spec's three examples fire, each with its why line", () => {
188
188
  assert.equal(find({ entity: 'for-profit' }, 'reward_intents:equity').length, 0);
189
189
  });
190
190
 
191
+ await t('equity is greyed for a single-owner LLC and a research entity, each with its own reason (task 1004475, owner 2026-09-30)', () => {
192
+ const equity = (entity) => softLimitsFor({ entity }).limits.filter((l) => l.option === 'reward_intents:equity');
193
+ const llc = equity('single-owner-llc');
194
+ assert.equal(llc.length, 1); assert.equal(llc[0].effect, 'grey');
195
+ assert.match(llc[0].reason, /one owner/);
196
+ const research = equity('research');
197
+ assert.equal(research.length, 1); assert.equal(research[0].effect, 'grey');
198
+ assert.match(research[0].reason, /research/i);
199
+ assert.notEqual(llc[0].reason, research[0].reason, 'each says its own why');
200
+ // The two companies that can give a builder a stake are still offered it.
201
+ assert.equal(equity('for-profit').length, 0);
202
+ assert.equal(equity('corporate-division').length, 0);
203
+ });
204
+
191
205
  await t('a rule never fires on an answer nobody gave — only the platform-wide facts apply to a skipped interview', () => {
192
206
  const skipped = softLimitsFor({});
193
207
  for (const limit of skipped.limits) {