@bongos/core 1.19.481 → 1.19.483

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.
@@ -1399,5 +1399,9 @@ is load-bearing: the script throws rather than guess if it is missing, and
1399
1399
  landed since 1.19.479 with no explicit bump. run 33668172411. (task 1002620)
1400
1400
  1.19.481 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
1401
1401
  landed since 1.19.480 with no explicit bump. run 33670051626. (task 1002620)
1402
+ 1.19.482 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
1403
+ landed since 1.19.481 with no explicit bump. run 33670786915. (task 1002620)
1404
+ 1.19.483 — CI auto-patch (publish-on-merge, ADR 0161): carrier for merges
1405
+ landed since 1.19.482 with no explicit bump. run 33674657478. (task 1002620)
1402
1406
  ---------------------------------------------------------------------------
1403
1407
  ```
@@ -173,6 +173,11 @@
173
173
  // (same pattern as lastNeedsState). These are un-landed confirmed tasks that
174
174
  // GATE new claims and whose reward is pending until they land on ship.
175
175
  let lastRebaseState = null;
176
+ // task 1003464: the two halves of the greeting's status sentence — the
177
+ // public version progress and how many tasks the claimable feed returned.
178
+ // Null until each lands; the sentence says only what it knows.
179
+ let lastProgressState = null;
180
+ let lastClaimableCount = null;
176
181
 
177
182
  // Cached /me payload from the most recent loadAll() call. Used by the
178
183
  // welcome-chip reopen path (#408) so we can re-render the welcome panel
@@ -891,6 +896,10 @@
891
896
  if (!wrap || !list) return;
892
897
  try {
893
898
  const resp = await getJSON(`${API}/tasks/claimable`, { softAuth: true });
899
+ // task 1003464: the same feed answers the greeting's "N tasks are
900
+ // claimable right now" — rank-scoped, so it is THIS builder's number.
901
+ lastClaimableCount = resp && Array.isArray(resp.claimable) ? resp.claimable.length : null;
902
+ renderGreeting();
894
903
  const rows = (resp && Array.isArray(resp.claimable) ? resp.claimable : []).slice(0, 2);
895
904
  if (!rows.length) { wrap.hidden = true; if (subhead) subhead.hidden = true; return; }
896
905
  const cur = (window.__BRANDING__ && window.__BRANDING__.currency && window.__BRANDING__.currency.label) || 'credits';
@@ -1039,6 +1048,7 @@
1039
1048
  window.__buildersSelfId = me.builder?.id ?? null;
1040
1049
  renderWelcome(me.builder, me.onboarding || null);
1041
1050
  renderProfile(me.builder);
1051
+ renderGreeting(); // task 1003464: "Good morning, <name>" — the h1 — as soon as /me answers
1042
1052
  // #731: the CLI-token re-issue card (V3.R91 #401) and the Discord connect/
1043
1053
  // link card (F7, ADR 0033) moved to /builders/settings — the hall's Standing
1044
1054
  // card is identity-only now.
@@ -1087,13 +1097,19 @@
1087
1097
  // down the page — log and show an inline placeholder.
1088
1098
  // #726: the per-skill model picker (Voices) moved to /builders/settings,
1089
1099
  // so the hall no longer fetches /me/skill-prefs here.
1090
- const [achAll, ships, versionsResp, lb] = await Promise.allSettled([
1100
+ const [achAll, ships, versionsResp, lb, progress] = await Promise.allSettled([
1091
1101
  getJSON(`${API}/achievements`),
1092
1102
  getJSON(`${API}/me/recent-ships?limit=all`),
1093
1103
  getJSON(`${API}/versions`),
1094
1104
  getJSON(`${API}/leaderboard`),
1105
+ getJSON(`${API}/public/progress`), // task 1003464: "<version> is N percent shipped"
1095
1106
  ]);
1096
1107
 
1108
+ if (progress.status === 'fulfilled') {
1109
+ lastProgressState = progress.value;
1110
+ renderGreeting();
1111
+ }
1112
+
1097
1113
  if (achAll.status === 'fulfilled') {
1098
1114
  // Show top 10 by sort_order — already ordered server-side. (Set is locked at 8
1099
1115
  // for V2, so the slice is defensive.) Unlocked + locked-with-progress come
@@ -1314,13 +1330,15 @@
1314
1330
  // reads what this page holds NOW rather than what it held at boot. Everything
1315
1331
  // else is stable for the life of the page. This call sits AFTER every
1316
1332
  // declaration it passes — moving it earlier is a temporal-dead-zone crash.
1317
- const { SETUP_CONFIG_KEY, analyticsState, lbState, mountHallWidgets, onboardingBox, renderCurveBody, renderLanding, renderNav, renderOnboarding, renderProfile, renderRecentShips, renderWelcomeCore, shipState, shipsPager, welcomeDismissalKey } = window.OTBHallRender({
1333
+ const { SETUP_CONFIG_KEY, analyticsState, lbState, mountHallWidgets, onboardingBox, renderCurveBody, renderGreeting, renderLanding, renderNav, renderOnboarding, renderProfile, renderRecentShips, renderWelcomeCore, shipState, shipsPager, welcomeDismissalKey } = window.OTBHallRender({
1318
1334
  API, RANK_ORDER, api, brandWorld, curLabel, emptyRow, fmtDate, mins, normalizeRank, pct, postJSON, rankLabel, rankWeight, signClasses, toast, usd,
1319
1335
  get instanceRepo() { return instanceRepo; },
1336
+ get lastClaimableCount() { return lastClaimableCount; },
1320
1337
  get lastCostState() { return lastCostState; },
1321
1338
  get lastKarmaState() { return lastKarmaState; },
1322
1339
  get lastMeState() { return lastMeState; },
1323
1340
  get lastNeedsState() { return lastNeedsState; },
1341
+ get lastProgressState() { return lastProgressState; },
1324
1342
  get lastRebaseState() { return lastRebaseState; },
1325
1343
  get newcomerGated() { return newcomerGated; },
1326
1344
  });
@@ -272,6 +272,13 @@
272
272
  host.hidden = true; // stays hidden until a slice finds something actionable
273
273
  host.innerHTML =
274
274
  '<h2 id="attention-h" class="scroll__h">Needs your attention<span class="count-pill" id="attention-count" hidden></span></h2>' +
275
+ // task 1003464: the system's own notices — rebase owed, an input the
276
+ // system needs, the monthly budget — used to stack as banners INSIDE the
277
+ // Standing card. They are lines here now (rendered by hall-render.js
278
+ // renderSystemNotices from the /me state it already holds), first because
279
+ // a paused queue outranks an invitation. Rows carry .ginbox__item so
280
+ // refresh() counts them.
281
+ '<div id="attention-system"></div>' +
275
282
  '<div id="attention-goals"></div>' +
276
283
  // task 1002802 (P06): "Complete your profile" — a DISMISSIBLE nudge when
277
284
  // bio or preferred_disciplines are empty. Rendered by builders.js (which
@@ -508,7 +508,7 @@
508
508
  </div>
509
509
  <div class="profile__disciplines">
510
510
  <span class="profile__disc-label">Preferred work:</span>
511
- <span class="profile__disc-value">${prefs.length ? escapeHtml(prefs.join(', ')) : 'none chosen yet'}</span>
511
+ <span class="profile__disc-value">${prefs.length ? escapeHtml(prefs.join(', ')) : PREFS_EMPTY}</span>
512
512
  <a class="profile__disc-edit" href="/settings">Change in Settings →</a>
513
513
  </div>
514
514
  </div>
@@ -542,30 +542,121 @@
542
542
  const statsSection = document.getElementById('home-stats');
543
543
  if (statsSection && !ctx.newcomerGated) statsSection.hidden = false;
544
544
 
545
+ // task 1003464: the Home card as the mock draws it — an identity LINE and a
546
+ // three-row fact ledger. The mock repeats Credits and the place even though
547
+ // the stat band above carries both; the card is built as approved, all three
548
+ // rows, because that content is also what makes it end level with Goals.
549
+ // The notices that used to stack in here are inbox lines now.
545
550
  const homeStanding = document.getElementById('home-standing-body');
546
551
  if (homeStanding) {
552
+ const place = rollPlace ? `${ordinal(rollPlace.place)} of ${fmtNum(rollPlace.total)}` : '—';
547
553
  homeStanding.innerHTML = `
548
- ${rebaseBanner}
549
- ${needsBanner}
550
- ${budgetBanner}
551
- <div class="profile profile--compact">
552
- ${avatar}
553
- <div>
554
- <div class="profile__name-row">
555
- <p class="profile__name">${escapeHtml(builder.display_name || builder.github_login || 'Builder')}</p>
556
- ${rankBadge}
557
- </div>
558
- <p class="profile__handle">@${escapeHtml(builder.github_login || 'unknown')}</p>
559
- <div class="profile__stats">
560
- <span>Member since ${fmtDate(builder.created_at)}</span>
561
- <span>${prefs.length ? escapeHtml(prefs.join(', ')) : 'no preferred work yet'}</span>
562
- </div>
554
+ <div class="home-who">
555
+ ${builder.avatar_url
556
+ ? `<img class="home-who__avatar" src="${escapeHtml(builder.avatar_url)}" alt="">`
557
+ : '<span class="home-who__avatar" aria-hidden="true"></span>'}
558
+ <div class="home-who__meta">
559
+ <p class="home-who__name">${escapeHtml(builder.display_name || builder.github_login || 'Builder')}</p>
560
+ <p class="home-who__handle">@${escapeHtml(builder.github_login || 'unknown')}</p>
563
561
  </div>
562
+ <span class="home-who__rank">${builder.rank ? renderRankBadge(normalizeRank(builder.rank), { tip: false }) : ''}</span>
564
563
  </div>
564
+ <dl class="home-facts">
565
+ <div><dt>${escapeHtml(curLabel(true))}</dt><dd>${fmtNum(builder.total_credits)}</dd></div>
566
+ <div><dt>On the board</dt><dd>${place}</dd></div>
567
+ <div><dt>Preferred work</dt><dd>${prefs.length ? escapeHtml(prefs.join(', ')) : PREFS_EMPTY}</dd></div>
568
+ </dl>
565
569
  `;
566
570
  }
567
571
  const homeStandingSection = document.getElementById('home-standing');
568
572
  if (homeStandingSection && !ctx.newcomerGated) homeStandingSection.hidden = false;
573
+ renderSystemNotices({ rebaseTasks, need, cost });
574
+ }
575
+
576
+ // The ONE string for "no preferred work chosen" — the mock's copy — on both
577
+ // Standing surfaces (the Home card and the full view), so they cannot drift.
578
+ const PREFS_EMPTY = 'Not set yet';
579
+
580
+ const ordinal = (n) => {
581
+ const v = Number(n) || 0;
582
+ const s = (v % 100 >= 11 && v % 100 <= 13) ? 'th' : ({ 1: 'st', 2: 'nd', 3: 'rd' }[v % 10] || 'th');
583
+ return `${v}${s}`;
584
+ };
585
+
586
+ // task 1003464: the three system notices as inbox LINES on Home (the
587
+ // placement rule in modules/hall-ui/CLAUDE.md: an action awaiting the builder
588
+ // is a line item in Needs-attention, never a card). Only what awaits the
589
+ // builder lands here — a "we cover it" note is information, and stays on the
590
+ // full Standing view with the other two, where the banners still render.
591
+ function renderSystemNotices({ rebaseTasks, need, cost }) {
592
+ const box = document.getElementById('attention-system');
593
+ if (!box) return;
594
+ const rows = [];
595
+ if (rebaseTasks.length) {
596
+ const refs = rebaseTasks.map((t) => {
597
+ const id = String(t.id);
598
+ const href = window.OTBTaskDetail && typeof window.OTBTaskDetail.href === 'function' ? window.OTBTaskDetail.href(id) : `/task/${encodeURIComponent(id)}`;
599
+ return `<a href="${escapeHtml(href)}">task ${escapeHtml(id)}</a>`;
600
+ }).join(', ');
601
+ const one = rebaseTasks.length === 1;
602
+ rows.push(`<li class="ginbox__item ginbox__item--danger"><div class="ginbox__body">` +
603
+ `<span class="ginbox__kind">Rebase owed</span>` +
604
+ `<span class="ginbox__line">New claims are paused: ${rebaseTasks.length} confirmed ${one ? 'task' : 'tasks'} can't land yet, so ${one ? 'its' : 'their'} reward is pending. Rebase and re-ship, or release: ${refs}.</span>` +
605
+ `</div></li>`);
606
+ }
607
+ if (need && need.state === 'action_needed') {
608
+ const act = need.action && need.action.href
609
+ ? `<div class="ginbox__actions"><a class="btn-ghost" href="${escapeHtml(need.action.href)}">${escapeHtml(need.action.label || 'Set it up')}</a></div>`
610
+ : '';
611
+ rows.push(`<li class="ginbox__item ginbox__item--warn"><div class="ginbox__body">` +
612
+ `<span class="ginbox__kind">${escapeHtml(need.title)}</span>` +
613
+ `<span class="ginbox__line">${escapeHtml(need.message)}</span>` +
614
+ `</div>${act}</li>`);
615
+ }
616
+ if (cost && (cost.level === 'warn' || cost.level === 'over')) {
617
+ const over = cost.level === 'over';
618
+ rows.push(`<li class="ginbox__item ginbox__item--${over ? 'danger' : 'warn'}"><div class="ginbox__body">` +
619
+ `<span class="ginbox__kind">${over ? 'Monthly budget exceeded' : 'Approaching monthly budget'}</span>` +
620
+ `<span class="ginbox__line">$${escapeHtml(String(cost.spend_mtd_usd))} of $${escapeHtml(String(cost.budget_mtd_usd))} this month (${escapeHtml(String(cost.pct_used))}%). ${over ? 'Shipping and art generation are paused until an Archon raises your budget.' : 'At 100% these actions pause until an Archon raises your budget.'}</span>` +
621
+ `</div></li>`);
622
+ }
623
+ box.innerHTML = rows.length ? `<h3 class="ginbox__sec-h">From the system</h3><ul class="ginbox">${rows.join('')}</ul>` : '';
624
+ if (window.OTBAttention && typeof window.OTBAttention.refresh === 'function') window.OTBAttention.refresh();
625
+ }
626
+
627
+ // task 1003464: the greeting IS Home's one h1 (the mock opens with it), and
628
+ // the sub-line is the live status sentence — how far the version is and
629
+ // whether there is anything to do — the one line a returning builder needs.
630
+ // Each half renders as its data lands; the line stays hidden until one has.
631
+ const SMALL_NUMBERS = ['', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve'];
632
+ const greetingWord = (hour) => (hour < 12 ? 'Good morning' : (hour < 18 ? 'Good afternoon' : 'Good evening'));
633
+ // The version the sentence is about: the one being built with the most work in it.
634
+ function currentVersion(progress) {
635
+ const rows = progress && Array.isArray(progress.progress) ? progress.progress : [];
636
+ return rows.filter((r) => r && r.status === 'building')
637
+ .sort((a, b) => (Number(b.total_count) || 0) - (Number(a.total_count) || 0))[0] || null;
638
+ }
639
+ function renderGreeting() {
640
+ const h1 = document.getElementById('hall-h1');
641
+ const sub = document.getElementById('hall-sub');
642
+ const builder = ctx.lastMeState && ctx.lastMeState.builder;
643
+ if (h1 && builder) {
644
+ h1.textContent = `${greetingWord(new Date().getHours())}, ${builder.display_name || builder.github_login || 'builder'}`;
645
+ }
646
+ if (!sub) return;
647
+ const parts = [];
648
+ const v = currentVersion(ctx.lastProgressState);
649
+ if (v) parts.push(`${v.version_id} is ${Math.round(Number(v.percent_complete) || 0)} percent shipped.`);
650
+ const n = ctx.lastClaimableCount;
651
+ if (typeof n === 'number') {
652
+ if (n === 0) parts.push('Nothing is claimable right now.');
653
+ else {
654
+ const word = n < SMALL_NUMBERS.length ? SMALL_NUMBERS[n] : fmtNum(n);
655
+ parts.push(`${word.charAt(0).toUpperCase()}${word.slice(1)} ${n === 1 ? 'task is' : 'tasks are'} claimable right now.`);
656
+ }
657
+ }
658
+ sub.textContent = parts.join(' ');
659
+ sub.hidden = parts.length === 0;
569
660
  }
570
661
  const ONBOARDING_STAGE_ORDER = [
571
662
  'auth_complete',
@@ -1116,6 +1207,6 @@
1116
1207
  return idx === -1 ? null : { place: idx + 1, total: ranked.length };
1117
1208
  }
1118
1209
 
1119
- return { SETUP_CONFIG_KEY, analyticsState, lbState, mountHallWidgets, onboardingBox, renderCurveBody, renderLanding, renderNav, renderOnboarding, renderProfile, renderRecentShips, renderWelcomeCore, shipState, shipsPager, welcomeDismissalKey };
1210
+ return { SETUP_CONFIG_KEY, analyticsState, lbState, mountHallWidgets, onboardingBox, renderCurveBody, renderGreeting, renderLanding, renderNav, renderOnboarding, renderProfile, renderRecentShips, renderWelcomeCore, shipState, shipsPager, welcomeDismissalKey };
1120
1211
  };
1121
1212
  })();
@@ -116,13 +116,14 @@
116
116
  }
117
117
 
118
118
  /* ---- the prose ----------------------------------------------------------- */
119
+ /* No pre-wrap: the body renders as markdown through the shared reader and takes
120
+ record.css's .rec-md prose rules (task 1003465). */
119
121
  .ig-body {
120
122
  margin: var(--sp-xs) 0 0;
121
123
  max-width: var(--measure);
122
124
  font-size: 15px;
123
125
  line-height: 1.65;
124
126
  color: var(--ink-soft);
125
- white-space: pre-wrap;
126
127
  }
127
128
  .ig-body[data-empty="1"] { color: var(--ink-faint); font-style: italic; }
128
129
  .ig-empty { margin: 0; font-size: 14px; color: var(--ink-faint); }
@@ -59,6 +59,7 @@
59
59
  written inside an idea's own prose keeps resolving from this page. -->
60
60
  <script src="/builders/task-detail.js?v=2026-07-03-taskdetail2" defer></script>
61
61
  <script src="/builders/brand-apply.js?v=2026-06-19-r56" defer></script>
62
+ <script src="/builders/md-reader.js" defer></script>
62
63
  <script src="/builders/idea.js?v=2026-08-22-r153" defer></script>
63
64
  </body>
64
65
  </html>
@@ -113,11 +113,17 @@
113
113
  return `<div class="ig-credit">${rows.join('')}</div>`;
114
114
  }
115
115
 
116
+ // The body is markdown and renders through the hall's one parser, the way the
117
+ // task record's description does (task 1003465); a bare #NNN is a GDS id and
118
+ // drops its hash so it cannot read as a GitHub issue. Without the reader the
119
+ // text still shows, escaped.
116
120
  function prose(text) {
117
121
  const s = String(text == null ? '' : text).trim();
118
- return s
119
- ? `<p class="ig-body">${escapeHtml(s)}</p>`
120
- : '<p class="ig-body" data-empty="1">No description.</p>';
122
+ if (!s) return '<p class="ig-body" data-empty="1">No description.</p>';
123
+ const MD = window.OTBMdReader;
124
+ if (!MD) return `<p class="ig-body">${escapeHtml(s)}</p>`;
125
+ const md = s.replace(/(^|\s)#(\d+)\b/g, '$1$2');
126
+ return `<div class="ig-body rec-md">${MD.parseMarkdown(md, MD.makeResolveLinkHref({ baseDir: '' })).html}</div>`;
121
127
  }
122
128
 
123
129
  // The five answers, in TEMPLATE order, each under its own question. Missing
@@ -34,7 +34,17 @@
34
34
  it sets document.title + this element's text from the branding pack.
35
35
  The visible brand mark lives in the sidebar (shell.js reads the pack
36
36
  directly); this stays as the invisible chrome hook + a11y page title. -->
37
- <h1 id="hall-h1" class="sr-only">Builders' Hall</h1>
37
+ <!-- task 1003464: the mock opens with a greeting, and it IS the page's one h1
38
+ (one-header-main-h1 — never a second one). The static text is the no-JS /
39
+ signed-out fallback and what brand-apply.js writes the hall's name into;
40
+ hall-render.js renderGreeting turns it into "Good morning, <name>" once
41
+ /me answers, and fills the sub-line — the live status sentence (how far
42
+ the version is, whether anything is claimable) — hidden until it has
43
+ something to say. The label voice is the board's own (.page-head--board). -->
44
+ <div class="page-head page-head--board page-head--hall">
45
+ <h1 id="hall-h1" class="page-head__h">Builders' Hall</h1>
46
+ <p id="hall-sub" class="page-head__sub" hidden></p>
47
+ </div>
38
48
 
39
49
  <!-- BV1.R75 (ADR 0062 §4): hall widgets are NOT hardcoded here. Every widget
40
50
  — core (hall-widgets.js) and module-contributed (a module's own client
@@ -143,7 +143,10 @@
143
143
  // (the "**It's the API *list* price**" line showed its asterisks before).
144
144
  out = out.replace(/\*\*(.+?)\*\*/g, '<strong>$1</strong>');
145
145
  out = out.replace(/(^|[^*])\*([^*]+)\*(?!\*)/g, '$1<em>$2</em>');
146
- out = out.replace(/ CODE(\d+) /g, (_m, idx) => `<code>${escapeHtml(codeSpans[Number(idx)])}</code>`);
146
+ // The spans were lifted out of text the block pass had ALREADY escaped, so
147
+ // they go back as they are: escaping again rendered `a && b` as its entities
148
+ // (idea 1000889, folded into task 1003465).
149
+ out = out.replace(/ CODE(\d+) /g, (_m, idx) => `<code>${codeSpans[Number(idx)]}</code>`);
147
150
  return out;
148
151
  }
149
152
 
@@ -238,16 +238,76 @@
238
238
  /* The description as filed. `--measure` is MEASURED (48ch renders ~60 characters
239
239
  in Manrope) — a `ch` is the zero glyph's width, not a character, so do not do
240
240
  fresh ch arithmetic here. */
241
+ /* No pre-wrap: the description is RENDERED markdown now (task 1003465), and its
242
+ paragraphs wrap themselves. pre-wrap kept the DB's ~78-column hard breaks and
243
+ the measure broke each line a second time — the ragged short-then-long read. */
241
244
  .rec-desc {
242
245
  margin: 0;
243
246
  font-size: 15px;
244
247
  line-height: 1.65;
245
248
  color: var(--ink-soft);
246
249
  max-width: var(--measure);
247
- white-space: pre-wrap;
248
250
  overflow-wrap: anywhere;
249
251
  }
250
252
 
253
+ /* Rendered markdown inside a record — the task description and the idea body.
254
+ The room's prose rules at the record's density: heads in the body face one
255
+ weight up (a record is not a document; its heads are labels), tight lists,
256
+ the same code and quote treatment. A link takes the room's floor recipe. */
257
+ .rec-md > :first-child { margin-top: 0; }
258
+ .rec-md > :last-child { margin-bottom: 0; }
259
+ .rec-md p { margin: 0 0 var(--sp-sm); }
260
+ .rec-md h1, .rec-md h2, .rec-md h3, .rec-md h4 {
261
+ margin: var(--sp-md) 0 var(--sp-xs);
262
+ font-family: var(--font-body);
263
+ font-size: 15px;
264
+ font-weight: 600;
265
+ line-height: 1.4;
266
+ letter-spacing: -0.01em;
267
+ color: var(--ink);
268
+ }
269
+ .rec-md ul, .rec-md ol { margin: 0 0 var(--sp-sm); padding-left: 1.4em; }
270
+ .rec-md li { margin: 0 0 4px; }
271
+ .rec-md li:last-child { margin-bottom: 0; }
272
+ .rec-md li::marker { color: var(--ink-faint); }
273
+ .rec-md strong { font-weight: 600; color: var(--ink); }
274
+ .rec-md a {
275
+ display: inline-block;
276
+ min-height: 24px;
277
+ padding: 1px 0;
278
+ color: var(--accent-ink);
279
+ text-decoration: underline;
280
+ text-underline-offset: 3px;
281
+ text-decoration-thickness: 1px;
282
+ }
283
+ .rec-md a:hover { color: var(--ink); }
284
+ .rec-md code {
285
+ font: 400 .85em/1.4 var(--font-mono);
286
+ background: var(--glass);
287
+ padding: 2px 6px;
288
+ border-radius: 4px;
289
+ }
290
+ .rec-md pre {
291
+ margin: 0 0 var(--sp-sm);
292
+ padding: var(--sp-sm) var(--sp-md);
293
+ overflow-x: auto;
294
+ background: var(--glass);
295
+ border: var(--line) solid var(--glass-edge);
296
+ border-radius: var(--radius);
297
+ }
298
+ .rec-md pre code { background: none; padding: 0; border-radius: 0; font-size: 13px; line-height: 1.7; }
299
+ .rec-md blockquote {
300
+ margin: 0 0 var(--sp-sm);
301
+ padding: var(--sp-xs) var(--sp-md);
302
+ border-left: 2px solid var(--rule);
303
+ color: var(--ink-soft);
304
+ }
305
+ .rec-md blockquote p { margin: 0; }
306
+ .rec-md hr { border: none; border-top: var(--line) solid var(--rule-soft); margin: var(--sp-md) 0; }
307
+ .rec-md table { width: 100%; border-collapse: collapse; margin: 0 0 var(--sp-sm); font-size: 14px; }
308
+ .rec-md th, .rec-md td { text-align: left; vertical-align: top; padding: 6px 10px 6px 0; border-top: var(--line) solid var(--rule-soft); }
309
+ .rec-md th { color: var(--ink-faint); font-weight: 500; }
310
+
251
311
  /* v1's bare ledger inside a v3 panel: a hairline on top, air, and the first row
252
312
  drops both. The paths are the machine's words, so they take the mono face. */
253
313
  .rec-files { list-style: none; margin: 0; padding: 0; }
@@ -926,11 +926,13 @@ main:focus { outline: none; }
926
926
  }
927
927
 
928
928
  .app-views .view > .view-zone + .view-zone { margin-top: var(--sp-md); }
929
+ /* No align-items (task 1003464): the mock's .band declares none, so the grid
930
+ default — stretch — makes both cards fill the row and end level. `start` let
931
+ each card shrink to its content, and Standing stopped short under Goals. */
929
932
  .view-zone--band {
930
933
  display: grid;
931
934
  grid-template-columns: 1fr 1fr;
932
935
  gap: var(--sp-md);
933
- align-items: start;
934
936
  }
935
937
  .view-zone--band > .scroll { margin: 0; }
936
938
  .view-zone:empty { display: none; }
@@ -2782,6 +2784,73 @@ main [id] { scroll-margin-top: calc(var(--topbar-h) + 16px); }
2782
2784
  .ginbox__note { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-soft); font-style: italic; }
2783
2785
  .ginbox__actions { flex: 0 0 auto; display: flex; gap: 6px; }
2784
2786
  .ginbox__pending { font-size: 12.5px; margin: 10px 0 0; color: var(--ink-soft); }
2787
+ /* task 1003464: the system's notices are inbox LINES on Home (rebase owed, an
2788
+ input the system needs, the monthly budget) — the placement rule, not a
2789
+ banner inside the Standing card. A row is a kind in the label voice over one
2790
+ line of ink; tone marks the exception, on the kind only. */
2791
+ .ginbox__kind {
2792
+ font-family: var(--label-face);
2793
+ font-size: var(--label-size);
2794
+ letter-spacing: var(--label-space);
2795
+ text-transform: var(--label-case);
2796
+ color: var(--ink-faint);
2797
+ }
2798
+ .ginbox__line { font-size: 13.5px; color: var(--ink); }
2799
+ /* a task ref inside a line (rebase owed) is a link in prose: the same 24px
2800
+ row recipe as the row links below, or it sits under the floor at 13.5px */
2801
+ .ginbox__line a {
2802
+ display: inline-block;
2803
+ min-height: 24px;
2804
+ padding: 3px 0;
2805
+ line-height: 18px;
2806
+ box-sizing: border-box;
2807
+ color: var(--ink);
2808
+ text-decoration: underline;
2809
+ text-underline-offset: 3px;
2810
+ }
2811
+ .ginbox__item--warn .ginbox__kind { color: var(--warn); }
2812
+ .ginbox__item--danger .ginbox__kind { color: var(--danger); }
2813
+ /* The link in a Home row takes the mock's row recipe (.att__line a, .g__t): 3px
2814
+ of vertical padding lifts a 13–14px line to the 24px floor without re-spacing
2815
+ the row. The populated harness measured these at 21–23px (task 1003464); the
2816
+ kit's own stub never showed it, because it serves no rows. */
2817
+ .ginbox__goal, .triage-inbox__link, .next-up__title {
2818
+ display: inline-block;
2819
+ min-height: 24px;
2820
+ padding: 3px 0;
2821
+ line-height: 18px;
2822
+ box-sizing: border-box;
2823
+ }
2824
+
2825
+ /* ---------- Home: the Standing card as the mock draws it (task 1003464) ----------
2826
+ docs/design/mocks/hall/board/v3.html: an identity LINE (a 36px avatar, the
2827
+ name over the handle, the rank on the right) and a three-row fact ledger —
2828
+ Credits, On the board, Preferred work. With .view-zone--band stretching its
2829
+ two cards, this content is what makes Standing end level with Goals. */
2830
+ .home-who { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
2831
+ .home-who__avatar {
2832
+ width: 36px; height: 36px; flex: none;
2833
+ border-radius: 50%;
2834
+ background: var(--skeleton);
2835
+ border: 1px solid var(--rule);
2836
+ object-fit: cover;
2837
+ }
2838
+ .home-who__meta { display: flex; flex-direction: column; min-width: 0; }
2839
+ .home-who__name { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
2840
+ .home-who__handle { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
2841
+ .home-who__rank { margin-left: auto; }
2842
+ .home-facts { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0; }
2843
+ .home-facts > div { display: contents; }
2844
+ .home-facts dt, .home-facts dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--rule-soft); }
2845
+ .home-facts dt {
2846
+ font-family: var(--label-face);
2847
+ font-size: var(--label-size);
2848
+ letter-spacing: var(--label-space);
2849
+ text-transform: var(--label-case);
2850
+ color: var(--ink-faint);
2851
+ }
2852
+ .home-facts dd { text-align: right; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
2853
+ .home-facts > div:first-child dt, .home-facts > div:first-child dd { border-top: 0; padding-top: 0; }
2785
2854
 
2786
2855
  /* ---------- hall-kit components (task 2166) ----------
2787
2856
  Styles for the shared kit (hall-kit.js / window.OTBKit): pager bar,
@@ -67,6 +67,7 @@
67
67
  links still resolve from this page. -->
68
68
  <script src="/builders/task-detail.js?v=2026-07-03-taskdetail2" defer></script>
69
69
  <script src="/builders/brand-apply.js?v=2026-06-19-r56" defer></script>
70
+ <script src="/builders/md-reader.js" defer></script>
70
71
  <script src="/builders/task.js?v=2026-07-03-taskpage1" defer></script>
71
72
  </body>
72
73
  </html>
@@ -303,9 +303,28 @@
303
303
  }
304
304
  }
305
305
 
306
+ // A bare #NNN in a description is a GDS id, and anywhere it is pasted or
307
+ // rendered it would autolink to a GitHub issue that does not exist (CLAUDE.md's
308
+ // no-bare-#NNN rule) — so both the copy and the rendered paths drop the hash.
309
+ const delinkRefs = (s) => String(s || '').replace(/(^|\s)#(\d+)\b/g, '$1$2');
310
+
311
+ // The description IS markdown (headings, bold, code spans, lists) and was
312
+ // escaped straight into a <p> under white-space: pre-wrap, so the markup showed
313
+ // as characters and the DB's ~78-column hard wrap fought the measure (task
314
+ // 1003465). It renders through the hall's one parser now; a relative path in a
315
+ // description is repo-root-relative, and the repo bases arrive with load().
316
+ let repoBlobBase = null;
317
+ let repoTreeBase = null;
318
+ function descriptionHtml(md) {
319
+ const MD = window.OTBMdReader;
320
+ if (!MD) return `<p>${escapeHtml(md)}</p>`;
321
+ const resolve = MD.makeResolveLinkHref({ baseDir: '', getBlobBase: () => repoBlobBase, getTreeBase: () => repoTreeBase });
322
+ return MD.parseMarkdown(delinkRefs(md), resolve).html;
323
+ }
324
+
306
325
  function buildPrompt(t) {
307
326
  const url = `${location.origin}${hallBase()}/task/${t.id}`;
308
- const desc = String(t.description || '').replace(/(^|\s)#(\d+)\b/g, '$1$2');
327
+ const desc = delinkRefs(t.description);
309
328
  return `I am working on GDS task ${t.id} (${t.title || ''}) — ${url}\n\n` +
310
329
  `Claim it with \`/builder-claim ${t.id}\`, build it, then \`/builder-ship ${t.id}\`.\n\n` +
311
330
  `Task description:\n${desc}`;
@@ -388,7 +407,7 @@
388
407
  if (t.visual_url) parts.push(`<section class="rec-sec">${taskVisualHtml(t)}</section>`);
389
408
 
390
409
  if (t.description) {
391
- parts.push(`<section class="rec-sec"><p class="rec-sec__h">Description</p><p class="rec-desc">${escapeHtml(t.description)}</p></section>`);
410
+ parts.push(`<section class="rec-sec"><p class="rec-sec__h">Description</p><div class="rec-desc rec-md">${descriptionHtml(t.description)}</div></section>`);
392
411
  }
393
412
 
394
413
  const touches = Array.isArray(t.touches) ? t.touches : [];
@@ -530,6 +549,13 @@
530
549
  goal = (g && g.goal) ? g.goal : null;
531
550
  } catch (_) { /* cosmetic — the goal link still resolves without it */ }
532
551
  }
552
+ // The repo bases a description's relative paths resolve onto (the primer's
553
+ // and drachmae's pattern). Best-effort: without them a path passes through.
554
+ try {
555
+ const ri = await getJSON(`${API}/public/repo-info`, { softAuth: true });
556
+ if (ri && typeof ri.blob_base === 'string') repoBlobBase = ri.blob_base;
557
+ if (ri && typeof ri.tree_base === 'string') repoTreeBase = ri.tree_base;
558
+ } catch (_) { /* links degrade to the original href */ }
533
559
  renderTask(d.task, d.last_claim || null, viewer, goal);
534
560
  } catch (err) {
535
561
  if (err && err.code === AUTH_NEEDED) { toAuth(); return; }
package/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@bongos/core",
3
- "version": "1.19.481",
3
+ "version": "1.19.483",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bongos/core",
9
- "version": "1.19.481",
9
+ "version": "1.19.483",
10
10
  "license": "AGPL-3.0-or-later",
11
11
  "dependencies": {
12
12
  "express": "^4.21.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bongos/core",
3
- "version": "1.19.481",
3
+ "version": "1.19.483",
4
4
  "description": "Cloud Bongos — the AI-first build platform core (GDS + platform surfaces + module system), installed as a versioned dependency (ADR 0108).",
5
5
  "license": "AGPL-3.0-or-later",
6
6
  "main": "src/platform-server.js",
package/src/module-api.js CHANGED
@@ -34,7 +34,7 @@ const { validateOrRespond, LIMITS, parseId, asyncHandler, corsPublicGet, parsePa
34
34
  // there. scripts/gds/bump-version.js still rewrites the literal below; it appends
35
35
  // the entry to that file. Look for a version's history there, not here.
36
36
  // ---------------------------------------------------------------------------
37
- const CORE_VERSION = '1.19.481'; // CI auto-patch carrier (ADR 0161); changelog: docs/module-api-changelog.md
37
+ const CORE_VERSION = '1.19.483'; // CI auto-patch carrier (ADR 0161); changelog: docs/module-api-changelog.md
38
38
 
39
39
  // A namespaced logger so a module's log lines are attributable + consistent.
40
40
  // Usage: const log = api.logger('dev-box'); log.info('mounted');