@bongos/core 1.19.439 → 1.19.441

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "_": "The hub's interaction contract for modules/ui-design/kit/probe.js (task 1003320): the disclosure bands, the views, the card, the fold under 480, signed out. A probe with `continue` keeps the previous page — the contract is a sequence. The manage flows (task 1003345): attach, restart, teardown (the row and the ender), revive, retry and join drive the stub's receipts end to end, so the makeover cannot silently break a door. The catalog is featured-hub.json (stub.fixtures): the signed-in stub owns Demo, and an owned orb's plain click opens its manage view, never its card — the card probes open the landing's other rows and Tidewater, the un-owned floor row.",
2
+ "_": "The hub's interaction contract for modules/ui-design/kit/probe.js (task 1003320): the disclosure bands, the views, the card, the fold under 480, signed out. A probe with `continue` keeps the previous page — the contract is a sequence. The manage flows: since task 1003355 a row carries only its two doors, so attach, restart, revive, retry, teardown (the ender), join and the planet all drive the stub's receipts from the project's OWN page — and one probe holds the row itself to two doors and nothing that acts. The catalog is featured-hub.json (stub.fixtures): the signed-in stub owns Demo, and an owned orb's plain click opens its manage view, never its card — the card probes open the landing's other rows and Tidewater, the un-owned floor row.",
3
3
  "page": "/projects",
4
4
  "surface": "public-landing",
5
5
  "stub": { "fixtures": { "featured": "featured-hub" } },
@@ -75,8 +75,16 @@
75
75
  "text": [["#cardRel", "yours"]], "href": [["#cardOpen", "/"]] } },
76
76
  { "name": "the table: the hall glyph rides the door cell on the one member row whose hall is elsewhere, and on the platform's row", "continue": true,
77
77
  "steps": [["press", "Escape"], ["wait", 150], ["click", "#projTrig"], ["wait", 120], ["click", "a[data-sub=\"table\"]"], ["wait", 300]],
78
- "expect": { "dialog": false, "visible": ["#selfHall"], "count": [["#mapRows tr[data-generated] .rowHall", 1], ["#mapRows tr[data-generated] td", 42]],
79
- "href": [["#mapRows tr[data-generated] .rowHall", "https://builders.amazonprimea.com/"]] } },
78
+ "expect": { "dialog": false, "visible": ["#selfHall"], "count": [["#mapRows li[data-generated] .rowHall", 1], ["#mapRows li[data-generated] .facts", 7], ["#mapRows li[data-generated] .runs", 7], ["#mapRows li[data-generated] .rowDoors", 7]],
79
+ "href": [["#mapRows li[data-generated] .rowHall", "https://builders.amazonprimea.com/"]] } },
80
+ { "name": "the table: the sort left the column head — the pills carry the order, and the sentence under the list states it (task 1003356)", "continue": true,
81
+ "steps": [["click", ".tblSort button[data-sort=\"builders\"]"], ["wait", 200]],
82
+ "expect": { "attr": [[".tblSort button[data-sort=\"builders\"]", "aria-pressed", "true"], [".tblSort button[data-sort=\"name\"]", "aria-pressed", "false"]],
83
+ "text": [["#mapSorted", "Sorted by builders, fewest first."]] } },
84
+ { "name": "the table: pressing the pressed sort reverses it, exactly as the column header did", "continue": true,
85
+ "steps": [["click", ".tblSort button[data-sort=\"builders\"]"], ["wait", 200]],
86
+ "expect": { "attr": [[".tblSort button[data-sort=\"builders\"]", "aria-pressed", "true"]],
87
+ "text": [["#mapSorted", "Sorted by builders, most first."]] } },
80
88
  { "name": "back to the sky for the rest of the sequence", "continue": true,
81
89
  "steps": [["click", "#projTrig"], ["wait", 120], ["click", "a[data-sub=\"sky\"]"], ["wait", 300]],
82
90
  "expect": { "hidden": ["#sub-table-body"] } },
@@ -108,24 +116,21 @@
108
116
  { "name": "390: a solo Shift tap opens the fold and focuses the field, without overflow", "continue": true,
109
117
  "steps": [["press", "Escape"], ["wait", 100], ["press", "Shift"], ["wait", 150]],
110
118
  "expect": { "hasClass": [["#qWrap", "is-open", true]], "activeId": "mapQ", "noOverflow": true } },
111
- { "name": "manage flows (task 1003345): the address fold on a live row records a domain", "auth": true, "width": 1440, "url": "/projects?view=mine",
112
- "steps": [["wait",600],["click","li[data-inst=\"101\"] details.attachFold summary"],["fill","#dom-101","demo.example.com"],["click","[data-attach=\"101\"]"],["wait",600]],
113
- "expect": {"text":[["#msg-101","Address recorded."]],"hasClass":[["#msg-101","ok",true]]} },
114
- { "name": "manage flows: restart on an unreachable row asks; the row re-reads the project and shows the queued rail, the door leaves while the intent is open", "auth": true, "width": 1440, "url": "/projects?view=mine",
115
- "steps": [["wait",600],["click","[data-restart=\"105\"]"],["wait",900]],
116
- "expect": {"text":[["li[data-inst=\"105\"] .strip .pnote","A restart is queued — this card updates when it starts."],["li[data-inst=\"105\"] .strip .stages li.now .slbl","Restart queued"]],"visible":["li[data-inst=\"105\"] .strip","li[data-inst=\"105\"] .worldOrb.ashen"],"hidden":["[data-restart=\"105\"]"]} },
117
- { "name": "manage flows: tear it down asks twice on a row — the truth first, then the door", "auth": true, "width": 1440, "url": "/projects?view=mine",
118
- "steps": [["wait",600],["click","[data-teardown=\"101\"]"],["wait",200]],
119
- "expect": {"visible":["li[data-inst=\"101\"] .confirmRow","[data-teardown-yes=\"101\"]","[data-teardown-no=\"101\"]"],"hidden":["[data-teardown=\"101\"]"]} },
120
- { "name": "manage flows: the second press queues the teardown; the row re-reads the project and shows the wind-down rail, the door leaves", "continue": true,
121
- "steps": [["click","[data-teardown-yes=\"101\"]"],["wait",900]],
122
- "expect": {"text":[["li[data-inst=\"101\"] .strip .pnote","A teardown is queued — this card updates when it starts."]],"visible":["li[data-inst=\"101\"] .strip.flowDown"],"hidden":["[data-teardown=\"101\"]","[data-teardown-yes=\"101\"]"]} },
123
- { "name": "manage flows: bring it back on a torn-down row re-files the project", "auth": true, "width": 1440, "url": "/projects?view=mine",
124
- "steps": [["wait",600],["click","[data-revive=\"104\"]"],["wait",600]],
125
- "expect": {"text":[["#msg-104","Queued. The platform picks it up from here."]],"hasClass":[["#msg-104","ok",true]],"visible":["li[data-inst=\"104\"] .worldOrb.ghost"]} },
126
- { "name": "manage flows: try again on a snagged row re-files it too", "auth": true, "width": 1440, "url": "/projects?view=mine",
127
- "steps": [["wait",600],["click","[data-retry=\"103\"]"],["wait",600]],
128
- "expect": {"text":[["#msg-103","Queued. The platform picks it up from here."]],"hasClass":[["#msg-103","ok",true]]} },
119
+ { "name": "the row is two doors and nothing that acts (task 1003355): view where a project is live and addressed, manage on every row, no button anywhere in the list", "auth": true, "width": 1440, "url": "/projects?view=mine",
120
+ "steps": [["wait",600]],
121
+ "expect": {"count":[["#projectsList .proj .actions a",7],["#projectsList .proj .actions a[data-manage]",5],["#projectsList .proj .actions button",0],["li[data-inst=\"104\"] .actions a",1]],"text":[["li[data-inst=\"104\"] .actions","Manage"]]} },
122
+ { "name": "manage flows (task 1003355): the address control on the project's own page records a domain", "auth": true, "width": 1440, "url": "/projects?view=manage&id=101",
123
+ "steps": [["wait",900],["fill","#mDomName","demo.example.com"],["click","[data-m-attach]"],["wait",900]],
124
+ "expect": {"text":[["#mDomMsg","Address recorded."],["#mName","demo"]],"hasClass":[["#mDomMsg","ok",true]],"visible":["#mAddress","#mDomWhat summary"]} },
125
+ { "name": "manage flows: restart from the unreachable project's own page; the page re-reads it, the rail says queued and the door leaves while the intent is open", "auth": true, "width": 1440, "url": "/projects?view=manage&id=105",
126
+ "steps": [["wait",900],["click","[data-m-restart]"],["wait",900]],
127
+ "expect": {"text":[["#mMsg","Restart queued."],["#mStrip .strip .stages li.now .slbl","Restart queued"]],"hasClass":[["#mMsg","ok",true]],"visible":["#mStrip .strip","#mOrb .worldOrb.ashen"],"hidden":["[data-m-restart]"]} },
128
+ { "name": "manage flows: bring it back from the torn-down project's own page re-files it", "auth": true, "width": 1440, "url": "/projects?view=manage&id=104",
129
+ "steps": [["wait",900],["click","[data-m-revive]"],["wait",900]],
130
+ "expect": {"text":[["#mMsg","Queued. The platform picks it up from here."]],"hasClass":[["#mMsg","ok",true]],"visible":["#mOrb .worldOrb.ghost"],"hidden":["#mAddress"]} },
131
+ { "name": "manage flows: try again from the snagged project's own page re-files it too", "auth": true, "width": 1440, "url": "/projects?view=manage&id=103",
132
+ "steps": [["wait",900],["click","[data-m-retry]"],["wait",900]],
133
+ "expect": {"text":[["#mMsg","Queued. The platform picks it up from here."]],"hasClass":[["#mMsg","ok",true]],"hidden":["#mAddress"]} },
129
134
  { "name": "manage flows: how people join — pick a cell, save, the receipt lands under the choice", "auth": true, "width": 1440, "url": "/projects?view=manage&id=101",
130
135
  "steps": [["wait",900],["check","input[name=\"mJoinPick\"][value=\"apply\"]"],["click","[data-join-save]"],["wait",600]],
131
136
  "expect": {"text":[["#mJoinMsg","Saved. The project restarts to apply it."],["#mName","demo"]],"checked":"input[name=\"mJoinPick\"][value=\"apply\"]","visible":["#mOrb .worldOrb","#mFacts .ledger .k"]} },
@@ -15,12 +15,14 @@
15
15
  "in-map-kbd": { "auth": true, "actions": [["focus", "#projTrig"], ["press", "Enter"], ["wait", 350], ["press", "ArrowDown"], ["wait", 120]], "expect": { "expanded": true, "activeText": "Table" } },
16
16
  "in-map-search": { "auth": true, "actions": [["clickIfVisible", "#qToggle"], ["wait", 200], ["fill", "#mapQ", "emer"], ["wait", 300]], "expect": { "value": [["#mapQ", "emer"]] } },
17
17
  "in-map-mine-on": { "auth": true, "actions": [["check", "#onlyMine"], ["wait", 300]], "expect": { "checked": "#onlyMine" } },
18
- "in-table": { "auth": true, "actions": [["click", "#projTrig"], ["wait", 250], ["click", "a[data-sub=\"table\"]"], ["wait", 400]], "expect": { "visible": ["#sub-table-body", ".tblMast", ".mastObj", "#selfHall"], "closed": "#menuProjects", "count": [["#mapRows tr[data-generated] .rowHall", 1]] } },
19
- "in-mine": { "auth": true, "url": "/projects?view=mine", "expect": { "hidden": ["#qWrap", "#empty"], "visible": ["#mineBar", "#projectsList", "#projectsList .proj .worldOrb .disc"], "count": [["#projectsList .proj", 5], ["#projectsList .proj.gone", 1], ["#projectsList .proj .worldOrb[data-shape][data-material][data-style]", 5], ["#projectsList .proj .worldOrb[data-template=\"blob-frost-tint\"]", 1], ["#projectsList .proj .strip", 1], ["#projectsList .proj .worldOrb.ashen", 2], ["#projectsList [data-restart]", 1]] } },
20
- "in-manage": { "auth": true, "url": "/projects?view=manage&id=101", "expect": { "visible": ["#mMain", "#mChip .chip", "#mOrb .worldOrb", "#mFacts .ledger .k", "#mActs"], "hidden": ["#qWrap", "#mGate", "#mMissing", "#mErr"], "text": [["#mName", "demo"], ["#mTitle", "demo"]] } },
18
+ "in-table": { "auth": true, "actions": [["click", "#projTrig"], ["wait", 250], ["click", "a[data-sub=\"table\"]"], ["wait", 400]], "expect": { "visible": ["#sub-table-body", ".tblMast", ".mastObj", "#selfHall"], "closed": "#menuProjects", "count": [["#mapRows li[data-generated] .rowHall", 1], ["#mapRows .tblRow .facts", 7], ["#mapRows .tblRow .rowDoors", 7]], "text": [["#mapSorted", "Sorted by name, a to z."]] } },
19
+ "in-table-by-builders": { "auth": true, "actions": [["click", "#projTrig"], ["wait", 250], ["click", "a[data-sub=\"table\"]"], ["wait", 400], ["click", ".tblSort button[data-sort=\"builders\"]"], ["wait", 200]], "expect": { "visible": ["#sub-table-body"], "attr": [[".tblSort button[data-sort=\"builders\"]", "aria-pressed", "true"], [".tblSort button[data-sort=\"name\"]", "aria-pressed", "false"]], "text": [["#mapSorted", "Sorted by builders, fewest first."]] } },
20
+ "in-mine": { "auth": true, "url": "/projects?view=mine", "expect": { "hidden": ["#qWrap", "#empty"], "visible": ["#mineBar", "#projectsList", "#projectsList .proj .worldOrb .disc"], "count": [["#projectsList .proj", 5], ["#projectsList .proj.gone", 1], ["#projectsList .proj .worldOrb[data-shape][data-material][data-style]", 5], ["#projectsList .proj .worldOrb[data-template=\"blob-frost-tint\"]", 1], ["#projectsList .proj .strip", 1], ["#projectsList .proj .worldOrb.ashen", 2], ["#projectsList .proj .actions a", 7], ["#projectsList .proj .actions button", 0]] } },
21
+ "in-manage": { "auth": true, "url": "/projects?view=manage&id=101", "expect": { "visible": ["#mMain", "#mChip .chip", "#mOrb .worldOrb", "#mFacts .ledger .k", "#mActs", "#mAddress"], "hidden": ["#qWrap", "#mGate", "#mMissing", "#mErr"], "text": [["#mName", "demo"], ["#mTitle", "demo"]] } },
22
+ "in-manage-address": { "auth": true, "url": "/projects?view=manage&id=101", "expect": { "visible": ["#mAddress", "#mAddress h2", "#mDom .plain", "#mDomName", "#mDom [data-m-attach]", "#mDomWhat summary"], "count": [["#mDom .attach input[type=text]", 1], ["#mDom .attach button", 1]] } },
21
23
  "in-manage-planet": { "auth": true, "url": "/projects?view=manage&id=101", "expect": { "visible": ["#mPlanetPick", "#mPick .pick .pickPreview .worldOrb .disc", "#mPick [data-pick-save]", "#mPick [data-pick-reset]", "#mPickWhat summary"], "count": [["#mPick .pickCells[role=\"radiogroup\"]", 3], ["#mPick .pickCell", 10], ["#mPick .pickCell.on", 3], ["#mPick .pickSw", 5], ["#mPick .pickSw.on", 1]], "attr": [["#mPick .pickPreview .worldOrb", "data-template", "pair-obsidian-tint"], ["#mOrb .worldOrb", "data-template", "pair-obsidian-tint"]], "checked": "#mPick input[name=\"mPickAccent\"][value=\"sea\"]", "text": [["#mPlanet .v small", "your choice."]] } },
22
- "in-manage-snag": { "auth": true, "url": "/projects?view=manage&id=103", "expect": { "visible": ["#mMain", "#mErr", "#mActs"], "text": [["#mName", "tidepool"]] } },
23
- "in-manage-gone": { "auth": true, "url": "/projects?view=manage&id=104", "expect": { "visible": ["#mMain", "#mActs"], "hidden": ["#mErr"], "text": [["#mName", "old-lantern"]] } },
24
+ "in-manage-snag": { "auth": true, "url": "/projects?view=manage&id=103", "expect": { "visible": ["#mMain", "#mErr", "#mActs"], "hidden": ["#mAddress"], "text": [["#mName", "tidepool"]] } },
25
+ "in-manage-gone": { "auth": true, "url": "/projects?view=manage&id=104", "expect": { "visible": ["#mMain", "#mActs"], "hidden": ["#mErr", "#mAddress"], "text": [["#mName", "old-lantern"]] } },
24
26
  "in-manage-missing": { "auth": true, "url": "/projects?view=manage&id=999", "expect": { "visible": ["#mMissing"], "hidden": ["#mMain", "#mGate"] } },
25
27
  "out-manage": { "auth": false, "url": "/projects?view=manage&id=101", "expect": { "visible": ["#mGate"], "hidden": ["#mMain", "#mMissing"] } },
26
28
  "in-new": { "auth": true, "url": "/projects?view=new", "expect": { "hidden": ["#qWrap"] } },
package/src/module-api.js CHANGED
@@ -33,7 +33,7 @@ const { validateOrRespond, LIMITS, parseId, asyncHandler, corsPublicGet, parsePa
33
33
  // there. scripts/gds/bump-version.js still rewrites the literal below; it appends
34
34
  // the entry to that file. Look for a version's history there, not here.
35
35
  // ---------------------------------------------------------------------------
36
- const CORE_VERSION = '1.19.439'; // CI auto-patch carrier (ADR 0161); changelog: docs/module-api-changelog.md
36
+ const CORE_VERSION = '1.19.441'; // CI auto-patch carrier (ADR 0161); changelog: docs/module-api-changelog.md
37
37
 
38
38
  // A namespaced logger so a module's log lines are attributable + consistent.
39
39
  // Usage: const log = api.logger('dev-box'); log.info('mounted');
@@ -384,9 +384,9 @@ test('the platform has a self entry in the TABLE, not only in the sky', () => {
384
384
  // reason: stripApexOnly() is a string transform and cannot reach JS output
385
385
  assert.match(HUB, /id="selfOrb"/, 'the sky keeps its self orb');
386
386
  assert.match(HUB, /id="selfRow"/, 'the table needs one too — this is the bug');
387
- // and the row must sit INSIDE the tbody the renderer owns
388
- const tbody = (HUB.match(/<tbody id="mapRows">([\s\S]*?)<\/tbody>/) || [, ''])[1];
389
- assert.match(tbody, /id="selfRow"/, 'the self row belongs in #mapRows');
387
+ // and the row must sit INSIDE the list the renderer owns
388
+ const rows = (HUB.match(/<ul class="tbl" id="mapRows">([\s\S]*?)<\/ul>/) || [, ''])[1];
389
+ assert.match(rows, /id="selfRow"/, 'the self row belongs in #mapRows');
390
390
  });
391
391
 
392
392
  test('both self entries are apex-only — a child instance has no "this platform"', () => {
@@ -404,9 +404,9 @@ test('the renderer preserves the self row exactly as it preserves the self orb',
404
404
  // delete a static row on the first catalog paint
405
405
  assert.doesNotMatch(SCRIPT, /\$\('mapRows'\)\.innerHTML\s*=/,
406
406
  'a wholesale innerHTML= on #mapRows destroys the static self row');
407
- assert.match(SCRIPT, /querySelectorAll\('tr\[data-generated\]'\)/,
407
+ assert.match(SCRIPT, /querySelectorAll\('li\[data-generated\]'\)/,
408
408
  'generated rows must be removed selectively, like .worldOrb[data-generated]');
409
- assert.match(SCRIPT, /<tr data-generated[ >]/, 'generated rows must be markable');
409
+ assert.match(SCRIPT, /<li class="tblRow" data-generated[ >]/, 'generated rows must be markable');
410
410
  });
411
411
 
412
412
  test('"only mine" no longer hides the platform from a signed-in builder', () => {
@@ -573,11 +573,11 @@ test('exactly one hall-URL derivation: the DOM for the hub, the feed for a proje
573
573
  assert.equal((SCRIPT.match(/isMember\(rel\) \? hallUrlOf\(p\) : ''/g) || []).length, 2, 'member-gated on the card AND on the row, one rule');
574
574
  assert.match(SCRIPT, /'<a class="cardHall" id="cardHall" href="' \+ esc\(hall\)/, 'the card\'s hall door is escaped');
575
575
  assert.match(SCRIPT, /'<a class="rowHall" href="' \+ esc\(hall\) \+ '" target="_blank" rel="noopener"/, 'the row\'s hall glyph is escaped and opens a new tab');
576
- assert.match(SCRIPT, /: ''\) \+ hallGlyphHtml\(p, rel\) \+ '<\/td>'/, 'the glyph rides the existing door cell — no seventh column');
576
+ assert.match(SCRIPT, /: ''\) \+ hallGlyphHtml\(p, rel\) \+ '<\/div>'/, 'the glyph is the row\'s SECOND door, inside the one door slot — never a third');
577
577
  });
578
578
 
579
579
  test('the platform row carries a stamped, hidden hall glyph the session unhides — same tab, no target', () => {
580
- const selfRow = (HUB.match(/<tr id="selfRow">([\s\S]*?)<\/tr>/) || [, ''])[1];
580
+ const selfRow = (HUB.match(/<li class="tblRow" id="selfRow">([\s\S]*?)\r?\n\s*<\/li>/) || [, ''])[1];
581
581
  assert.match(selfRow, /<a class="rowHall" id="selfHall" href="\{\{buildersOrigin\}\}"[^>]*hidden>/, 'server-stamped and hidden until the session says member');
582
582
  assert.match(SCRIPT, /if \(sh\) sh\.hidden = !badge \|\| !hallUrlOf\(SELF_PROJECT\);/, 'member-gated and address-gated, and null-safe: the stamp drops the anchor whole when a pack names no hall');
583
583
  assert.match(SCRIPT, /if \(p\.isSelf\) \{\r?\n\s*var a = \$\('selfHall'\);/);
@@ -614,7 +614,7 @@ test('the poster is in the world: 560 wide, one hairline, no shadow, the disc su
614
614
  assert.match(COSMOS, /\.projCard \.cardMeta dd\{[^}]*text-align:right[^}]*border-top:1px solid var\(--rule-soft\)/, 'the value right and on the same hairline');
615
615
  assert.match(COSMOS, /\.projCard \.cardRel\{[^}]*font-family:var\(--label-face\)/, 'the relationship is a mono label, not an accent pill');
616
616
  assert.doesNotMatch(COSMOS, /\.projCard \.cardMeta \.tags/, 'the card no longer renders the module list');
617
- assert.match(COSMOS, /\.rowHall\{[^}]*width:28px;height:28px/, 'the row glyph clears the 24px floor');
617
+ assert.match(COSMOS, /\.rowHall\{[^}]*width:44px;height:40px/, 'the row\'s second door is a door, not a glyph: the same 40px the "view" pill stands at');
618
618
  });
619
619
 
620
620
  test('the row keeps its own Open link working underneath the card', () => {
@@ -631,14 +631,16 @@ test('the row keeps its own Open link working underneath the card', () => {
631
631
  task 1002772 when a project began DECLARING it at creation — a nullable
632
632
  declared field, so an em dash now means "not declared", never a guess. ── */
633
633
 
634
- test('every table column has a source — Type is declared, never guessed', () => {
635
- const thead = (HUB.match(/<thead>([\s\S]*?)<\/thead>/) || [, ''])[1];
636
- assert.match(thead, />Type</, 'Type has a source now: the project declares it at creation (task 1002772)');
637
- assert.match(SCRIPT, /typeHtml\(p\.type\)/, 'the Type cell must read the declared field through the one formatter');
638
- assert.match(thead, />Builders</);
639
- assert.match(thead, />Runs</);
640
- assert.match(SCRIPT, /p\.builders/, 'the Builders cell must read real data');
641
- assert.match(SCRIPT, /tagsHtml\(p\.tags\)/, 'the Runs cell must read real data');
634
+ test('every fact the row states has a source — Type is declared, never guessed', () => {
635
+ // the header row left with the table (task 1003356): a fact is a line now, so
636
+ // what once had to be a column with a source is a line with a source
637
+ const facts = (SCRIPT.match(/function factLines\(p\)\s*\{([\s\S]*?)\n \}/) || [, ''])[1];
638
+ assert.ok(facts, 'factLines() must exist');
639
+ assert.match(facts, /typeHtml\(p\.type\)/, 'the Type line must read the declared field through the one formatter');
640
+ assert.match(facts, /p\.builders/, 'the Builders line must read real data');
641
+ assert.match(facts, /shippedFigure\(p\)/, 'shipped-in-30-days is the feed\'s own figure, capped mark and all');
642
+ assert.match(facts, /listedDate\(p\.created_at\)/, 'the Listed date is the catalog\'s');
643
+ assert.match(SCRIPT, /tagsHtml\(p\.tags\)/, 'the Runs line must read real data');
642
644
  // the wizard files the declaration with the create — the source end of the pipe
643
645
  assert.match(SCRIPT, /type: state\.projType/, 'the create request carries the declared type');
644
646
  });
@@ -712,13 +714,20 @@ test('a renumbering of the wizard invalidates old drafts — the key carries the
712
714
  assert.equal(count, 8, 'gate + six numbered steps + done — bump DRAFT_KEY when this changes');
713
715
  });
714
716
 
715
- test('header and body agree on the column count', () => {
716
- // a stray <td> shifts every cell after it — silent, and only visible on screen
717
- const n = ((HUB.match(/<thead>([\s\S]*?)<\/thead>/) || [, ''])[1].match(/<th/g) || []).length;
718
- const selfRow = (HUB.match(/<tr id="selfRow">([\s\S]*?)<\/tr>/) || [, ''])[1];
719
- const generated = (SCRIPT.match(/return '<tr data-generated([\s\S]*?)'<\/tr>';/) || [, ''])[1];
720
- assert.equal((selfRow.match(/<td/g) || []).length, n, 'the self row must match the header');
721
- assert.equal((generated.match(/<td/g) || []).length, n, 'a generated row must match the header');
717
+ test('every row lays the same five parts — the ledger has no ragged row', () => {
718
+ // a stray <td> used to shift every cell after it; the ledger's version of that
719
+ // bug is a row that skips one grid area, which silently collapses its track
720
+ const selfRow = (HUB.match(/<li class="tblRow" id="selfRow">([\s\S]*?)\r?\n\s*<\/li>/) || [, ''])[1];
721
+ const generated = (SCRIPT.match(/return '<li class="tblRow" data-generated([\s\S]*?)'<\/li>';/) || [, ''])[1];
722
+ assert.ok(selfRow && generated, 'both row templates must keep their extractable shape');
723
+ // the generated row builds its planet into a local first, so the parts test
724
+ // reads that expression too — otherwise dropping the planet would go unseen
725
+ const planet = (SCRIPT.match(/var planet = '<span class="worldOrb"[\s\S]*?;\r?\n/) || [''])[0];
726
+ for (const part of ['worldOrb', 'tWho', 'facts', 'ptag', 'runs', 'rowDoors']) {
727
+ assert.match(selfRow, new RegExp('class="[^"]*\\b' + part + '\\b'), `the self row is missing its ${part}`);
728
+ assert.match(generated + planet, new RegExp('class="[^"]*\\b' + part + '\\b'), `a generated row is missing its ${part}`);
729
+ }
730
+ assert.match(generated, /' \+ planet \+/, 'the generated row plants the planet it built');
722
731
  });
723
732
 
724
733
  test('no sort control is offered for a column that cannot sort', () => {
@@ -735,22 +744,25 @@ test('no sort control is offered for a column that cannot sort', () => {
735
744
  test('the table is in the world: a masthead, then ledger rows — no panel, no shadow, the accent only on the row\'s door (task 1003332)', () => {
736
745
  // the owner's pick from three rendered treatments: the view title in the display
737
746
  // voice and one chrome object; the title is two words ("every project", the owner cut ", as rows")
738
- assert.match(HUB, /<div class="tblMast">\s*<h2 class="tblTitle">every project<\/h2>\s*<span class="mastObj" aria-hidden="true"><\/span>\s*<\/div>\s*<table class="tbl">/, 'one masthead ahead of the table');
747
+ assert.match(HUB, /<div class="tblMast">\s*<h2 class="tblTitle">every project<\/h2>\s*<span class="mastObj" aria-hidden="true"><\/span>\s*<\/div>/, 'one masthead ahead of the rows');
739
748
  assert.doesNotMatch(HUB, /tblMast--t[123]|data-tbl|mastCallouts|mastField/, 'the render round\'s switch and the unpicked mastheads left with the pick');
740
- assert.match(COSMOS, /\.tbl\{width:100%;border-collapse:collapse;background:none;\}/, 'the rows sit on the page ground — no card');
741
- assert.doesNotMatch((COSMOS.match(/\.tbl\{[^}]*\}/) || [''])[0], /border-radius|box-shadow/, 'no radius, no shadow on the table');
742
- assert.match(COSMOS, /\.tbl td\{padding:17px 14px;border-bottom:1px solid var\(--rule-soft\);/, 'ledger rows: hairlines');
743
- assert.match(COSMOS, /\.tbl tbody tr:hover td\{border-bottom-color:var\(--ink-faint\);\}/, 'hover is the hairline taking ink, not an accent tint');
744
- assert.match(COSMOS, /\.rowGo\{[^}]*color:var\(--accent-deep\);text-decoration:underline;/, 'the row\'s door is accent text');
745
- assert.match(HUB, /<a class="rowGo" href="\/">Open →<\/a>/, 'the self row\'s door');
749
+ // the table itself left with task 1003356: a list of ledger rows, no header
750
+ // row, no cell borders, no <table> wearing a role it no longer has
751
+ assert.doesNotMatch(HUB, /<table class="tbl">|<thead>|<th class="col/, 'the table markup, its header row and its cells are gone');
752
+ assert.match(COSMOS, /\.tbl\{list-style:none;margin:0;padding:0;\}/, 'the rows sit on the page ground — no card, no table');
753
+ assert.doesNotMatch((COSMOS.match(/\.tbl\{[^}]*\}/) || [''])[0], /border-radius|box-shadow/, 'no radius, no shadow on the list');
754
+ assert.match(COSMOS, /\.tbl \.tblRow:last-child\{border-bottom:1px solid var\(--rule-soft\);\}/, 'ledger rows: hairlines, and the last one closes');
755
+ assert.match(COSMOS, /\.tbl \.tblRow:hover\{border-top-color:var\(--ink-faint\);\}/, 'hover is the hairline taking ink, not an accent tint');
756
+ assert.match(COSMOS, /\.rowGo\{[^}]*border:1px solid var\(--rule\);border-radius:var\(--radius-pill\);/, 'the row\'s door is the mine row\'s hairline pill');
757
+ assert.match(HUB, /<a class="rowGo" href="\/">view<\/a>/, 'the self row\'s door');
746
758
  assert.match(SCRIPT, /'<a class="rowGo" href="' \+ esc\(safeHttpUrl\(p\.origin\)\)/, 'the generated rows\' door');
747
759
  assert.match(COSMOS, /\.mastObj\{display:block;--dia:clamp\(96px,10vw,132px\);[^}]*background-image:var\(--plate-set-cut\);/, 'the object is the set\'s small bead by token, in both modes');
748
760
  assert.doesNotMatch(COSMOS, /mix-blend-mode:var\(--mast/, 'the cutout needs no blend — the view wrap is a stacking context');
749
761
  });
750
762
 
751
- test('every live column keeps its styling — .colType included since task 1002772', () => {
752
- for (const live of ['.tbl .num', '.tbl .tags', '.colTags', '.colType', '.typeTag']) {
753
- assert.ok(COSMOS.includes(live), `${live} styles a column that renders real data`);
763
+ test('every live part of the row keeps its styling — .typeTag included since task 1002772', () => {
764
+ for (const live of ['.tbl .facts', '.tbl .runs', '.tbl .tags', '.tbl .ptag', '.typeTag']) {
765
+ assert.ok(COSMOS.includes(live), `${live} styles a part of the row that renders real data`);
754
766
  }
755
767
  // the type tag is its own vocabulary: not the relationship .pill, not the
756
768
  // liveness .chip — two different facts must not wear the same chrome
@@ -766,8 +778,11 @@ test('every live column keeps its styling — .colType included since task 10027
766
778
  test('unknown and zero are rendered as different things', () => {
767
779
  // 0 builders is a real answer — "nobody has joined yet". null is not an
768
780
  // answer at all. Collapsing them would restate the lie 1002764 removed.
769
- assert.match(SCRIPT, /p\.builders == null \? '—'/,
770
- 'only null becomes a dash; 0 must render as 0');
781
+ // since task 1003356 the fact is a line, so the two answers are two sentences
782
+ assert.match(SCRIPT, /p\.builders == null \? 'builders not known'/,
783
+ 'only null says "not known"');
784
+ assert.match(SCRIPT, /esc\(String\(p\.builders\)\) \+ \(p\.builders === 1 \? ' builder' : ' builders'\)/,
785
+ '0 must render as "0 builders" — a real answer, not an absence');
771
786
  });
772
787
 
773
788
  test('a project that cannot be reached degrades to a dash, not to a wrong number', () => {
@@ -796,7 +811,7 @@ test('each card fact is wired to its data, not just present in the markup', () =
796
811
  assert.match(SCRIPT, /cardFact\('cardRuns', runsOf\(p\)\)/, 'runs is the address on the poster');
797
812
  const runs = (SCRIPT.match(/function runsOf\(p\)\s*\{([\s\S]*?)\n \}/) || [, ''])[1];
798
813
  assert.match(runs, /hostOf\(p\.origin\)/, 'the address is the catalog origin\'s host');
799
- assert.match(SCRIPT, /'<td class="colTags">' \+ tagsHtml\(p\.tags\)/, 'the table row keeps the module list');
814
+ assert.match(SCRIPT, /'<div class="runs"><span class="rLbl">runs<\/span>' \+ tagsHtml\(p\.tags\)/, 'the table row keeps the module list, under its own label');
800
815
  assert.match(SCRIPT, /cardFact\('cardOwner', rel === 'owner' \? '' : ownerHtml\(p\), true\)/,
801
816
  'owner comes from the enrichment and yields to the rel chip saying "yours"');
802
817
  const oh = (SCRIPT.match(/function ownerHtml\(p\)\s*\{([\s\S]*?)\n \}/) || [, ''])[1];
@@ -907,21 +922,21 @@ test('the card metadata block lives inside the card, not a hideable sub-view', (
907
922
  ignores clicks inside an <a> so real links keep their jobs — but this link
908
923
  had no job, so the click was swallowed AND went nowhere. ── */
909
924
 
910
- test('the self row Open is a real link home, not an unwired hook', () => {
911
- const selfRow = (HUB.match(/<tr id="selfRow">([\s\S]*?)<\/tr>/) || [, ''])[1];
912
- assert.match(selfRow, /<a[^>]*href="\/"[^>]*>Open/,
913
- 'the platform project IS this site — its Open navigates to /');
925
+ test('the self row\'s door is a real link home, not an unwired hook', () => {
926
+ const selfRow = (HUB.match(/<li class="tblRow" id="selfRow">([\s\S]*?)\r?\n\s*<\/li>/) || [, ''])[1];
927
+ assert.match(selfRow, /<a[^>]*href="\/"[^>]*>view/,
928
+ 'the platform project IS this site — its door navigates to /');
914
929
  assert.doesNotMatch(selfRow, /target=/,
915
930
  'a new tab for the page you are already on is a bug, not a courtesy');
916
931
  assert.doesNotMatch(HUB, /data-self-open/, 'the never-wired hook must not survive');
917
932
  });
918
933
 
919
- test('no anchor in the table ships a placeholder href', () => {
934
+ test('no anchor in the every-project list ships a placeholder href', () => {
920
935
  // href="#" is the shape of this bug: a dead link wearing button clothes
921
- const table = (HUB.match(/<table[\s\S]*?<\/table>/) || [''])[0];
922
- assert.ok(table, 'the table must be findable');
923
- assert.doesNotMatch(table, /href="#"/, 'no anchor in the table may ship href="#"');
924
- const generated = (SCRIPT.match(/return '<tr data-generated([\s\S]*?)'<\/tr>';/) || [, ''])[1];
936
+ const rows = (HUB.match(/<ul class="tbl" id="mapRows">[\s\S]*?<\/ul>/) || [''])[0];
937
+ assert.ok(rows, 'the list must be findable');
938
+ assert.doesNotMatch(rows, /href="#"/, 'no anchor in the list may ship href="#"');
939
+ const generated = (SCRIPT.match(/return '<li class="tblRow" data-generated([\s\S]*?)'<\/li>';/) || [, ''])[1];
925
940
  assert.doesNotMatch(generated, /href="#"/, 'generated rows must not ship placeholders either');
926
941
  });
927
942
 
@@ -958,11 +973,11 @@ test('a project both featured and owned renders once, marked owned', () => {
958
973
  test('owned truth reaches the TABLE too — same list, same chip, same manage job', () => {
959
974
  // the count, the sky and the table read ONE merged browse list; an owned row
960
975
  // carries chipFor()'s truth in Status and routes its click to manage
961
- const generated = (SCRIPT.match(/return '<tr data-generated([\s\S]*?)'<\/tr>';/) || [, ''])[1];
976
+ const generated = (SCRIPT.match(/return '<li class="tblRow" data-generated([\s\S]*?)'<\/li>';/) || [, ''])[1];
962
977
  assert.ok(generated, 'the generated-row template must keep its extractable shape');
963
978
  assert.match(generated, /data-manage/, 'an owned row carries the manage route key');
964
- assert.match(generated, /p\._inst \? chipFor\(p\._inst\)/, 'an owned row\'s Status is the overlay truth');
965
- assert.match(generated, /chip calm/, 'an unprobed catalog row keeps the honest calm dash');
979
+ assert.match(generated, /p\._inst \? chipFor\(p\._inst\)/, 'an owned row\'s chip is the overlay truth');
980
+ assert.match(generated, /chip calm[\s\S]{0,80}not checked/, 'an unprobed catalog row says so in words beside the name');
966
981
  assert.match(SCRIPT, /tr\.hasAttribute\('data-manage'\)\) return goToManage/,
967
982
  'an owned row click goes to manage, exactly like its orb');
968
983
  });
@@ -1161,7 +1176,8 @@ test('the manage chip defers to chipFor — one site, no second story (C6)', ()
1161
1176
  assert.ok(fn, 'renderManage() must be extractable');
1162
1177
  assert.equal((fn.match(/chipFor\(inst\)/g) || []).length, 1,
1163
1178
  'renderManage must have exactly one chip call site');
1164
- assert.match(fn, /addressRow\(inst\)/, 'the address sentence is the shared, verified one');
1179
+ assert.match(fn, /addressRow\(inst, true\)/,
1180
+ 'the address sentence is the shared, verified one — read on THIS surface, so its pointers name the controls this page has (task 1003355)');
1165
1181
  assert.match(fn, /SHAPE_LABEL/, 'the hosting shape speaks the card\'s vocabulary');
1166
1182
  });
1167
1183
 
@@ -1304,12 +1320,11 @@ test('tearing a project down asks for its NAME — the page\'s heaviest control'
1304
1320
  });
1305
1321
 
1306
1322
  test('the delete section mirrors the server gate — every state but torn_down', () => {
1307
- const fn = (SCRIPT.match(/function canTeardown\(inst\)\s*\{([\s\S]*?)\n \}/) || [, ''])[1];
1308
- assert.ok(fn, 'canTeardown() must be extractable');
1309
- // the old whitelist is what made a snagged project a dead end (N5)
1310
- assert.doesNotMatch(fn, /inst\.status === 'provisioning' \|\| inst\.status === 'active'/,
1311
- 'the two-state whitelist is gone');
1312
- assert.match(fn, /torn_down/, 'torn_down is the only lifecycle exclusion');
1323
+ // the ender is the ONLY teardown door since task 1003355 took the row's away,
1324
+ // so renderDelete IS the gate: it carries each exclusion as its own honest
1325
+ // state rather than deferring to a predicate nothing else reads
1326
+ assert.doesNotMatch(SCRIPT, /function canTeardown\(/,
1327
+ 'the client mirror went with the row button that was its only caller');
1313
1328
  const render = (SCRIPT.match(/function renderDelete\(inst\)\s*\{([\s\S]*?)\n \}/) || [, ''])[1];
1314
1329
  assert.ok(render, 'renderDelete() must be extractable');
1315
1330
  // keyed by PROJECT, not a bare flag: a boolean would also suppress the repaint
@@ -1320,6 +1335,16 @@ test('the delete section mirrors the server gate — every state but torn_down',
1320
1335
  for (const s of ['torn_down', 'tearing_down']) {
1321
1336
  assert.match(render, new RegExp(s), `${s} gets its own honest state, not the action`);
1322
1337
  }
1338
+ assert.match(render, /open_intent\.action === 'teardown'/, 'and a queued teardown is the third');
1339
+ // the old whitelist is what made a snagged project a dead end (N5): every
1340
+ // other state — 'requested' and 'error' included — still reaches the ask
1341
+ assert.match(render, /teardownTruth\(inst\)[\s\S]*?data-del-ask/,
1342
+ 'a project that never finished standing up still reaches the ask');
1343
+ // the pointer out of a torn-down project must name a door THIS page has
1344
+ assert.doesNotMatch(render, /view=mine/,
1345
+ 'the revive door moved here in task 1003355 — a pointer at the list would be a dead end');
1346
+ assert.match(render, /canRevive\(inst\) \? ' Bring it back with the button at the top of this page\.' : ''/,
1347
+ 'and the sentence is dropped where no such button rendered');
1323
1348
  });
1324
1349
 
1325
1350
  test('a teardown does not silence the address — the copy says what the runner does', () => {
@@ -1773,25 +1798,35 @@ test('the feed carries the owner\'s choice through a seam: platform-identity res
1773
1798
 
1774
1799
  /* ── the table's columns on FIXED tracks (task 1003348; the owner, 2026-08-29: "the
1775
1800
  columns in that projects table view dont look aligned") ── */
1776
- test('one column grammar: the table lays every row on one set of fixed tracks (each header over its cells), and the mine list shares the rule', () => {
1777
- assert.match(COSMOS, /\.tbl\{table-layout:fixed;min-width:860px;\}/, 'the header row\'s widths are the table\'s — no per-row content sizing');
1778
- // the task's other half — the Your projects list — landed with task 1003345 and is pinned above
1779
- // ('the mine list lays every row on one set of FIXED tracks'); it is asserted here too so the two
1780
- // halves of the grammar can never drift apart: fixed planet + doors, ratio tracks with no content minimum
1801
+ test('one row grammar: the every-project row and the Your-projects row lay the SAME five tracks', () => {
1802
+ // task 1003348 aligned the two views on one set of fixed tracks while one was
1803
+ // still a table; task 1003356 gave the table the mine row's whole grammar, so
1804
+ // the tracks must now match line for line or the two ledgers drift apart
1781
1805
  assert.match(COSMOS, /#view-mine \.proj\{display:grid;grid-template-columns:72px minmax\(0,1fr\);/, 'the mine row: the planet track is a width');
1782
1806
  assert.match(COSMOS, /#view-mine \.projBody\{display:grid;grid-template-columns:minmax\(0,1\.1fr\) minmax\(0,1\.3fr\) minmax\(0,1fr\) 232px;/, 'the mine row: name, facts and rail by ratio with no content minimum, the doors a width');
1783
- assert.match(COSMOS, /the same column grammar the every-project table takes/, 'the mine block names the table as its twin');
1784
- for (const [col, w] of [['colType', 88], ['colBuilders', 96], ['colTags', 168], ['colStatus', 224], ['colGo', 112]]) {
1785
- assert.match(COSMOS, new RegExp(`\\.tbl th\\.${col}\\{width:${w}px;\\}`), `${col} is a width, not a 1% hug`);
1786
- }
1787
- assert.doesNotMatch(COSMOS, /\.tbl \.col\w+\{width:1%/, 'no column hugs its widest cell any more');
1788
- assert.match(COSMOS, /\.tbl th\.colName\{padding-left:22px;\}/, 'the Project header sits over the name, past the dot and its gap');
1789
- assert.match(COSMOS, /\.tbl th\.right\{text-align:right;\}/, 'a right-aligned column\'s header is right-aligned too');
1790
- assert.match(HUB, /<th class="right colBuilders" data-sort="builders">/, 'the builders header names its column so its width can be set');
1791
- assert.match(COSMOS, /@media \(max-width:780px\)\{\.tbl \.colTags,\.tbl \.colType\{display:none;\}\.tbl\{min-width:600px;\}\}/, 'a phone scrolls the table inside its wrap');
1807
+ assert.match(COSMOS, /\.tbl \.tblRow\{display:grid;\r?\n\s*grid-template-columns:72px minmax\(0,1\.1fr\) minmax\(0,1\.3fr\) minmax\(0,1fr\) 232px;/, 'the table row: the same five tracks, composed into one grid');
1808
+ assert.match(COSMOS, /grid-template-areas:"orb who facts runs doors" "orb who tag runs doors";/, 'runs where the mine row draws its rail, the tagline where it puts its address');
1809
+ assert.match(COSMOS, /the SAME five tracks in its \S\.tbl \.tblRow\S rule/, 'the mine block names the table as its twin');
1810
+ assert.doesNotMatch(COSMOS, /table-layout:fixed|\.tbl th|\.tbl td/, 'no table rule outlived the table');
1792
1811
  assert.match(COSMOS, /#sub-table-body\{overflow-x:auto;\}/, 'the wrap scrolls, never the page');
1793
1812
  });
1794
1813
 
1814
+ test('the sort left the column head for a control the keyboard and a screen reader can both read (task 1003356)', () => {
1815
+ // aria-sort is only valid on a columnheader; with no header row the order has
1816
+ // to be stated by the control itself and by a sentence in a live region
1817
+ assert.doesNotMatch(HUB, /aria-sort=/, 'aria-sort has no host once the header row is gone');
1818
+ assert.match(HUB, /<div class="tblSort" role="group" aria-label="Sort the projects">/, 'the two orders are one group');
1819
+ for (const k of ['name', 'builders']) {
1820
+ assert.match(HUB, new RegExp(`<button type="button" class="sortPill" data-sort="${k}"`), `${k} is a real button`);
1821
+ }
1822
+ assert.match(HUB, /<p class="finePrint" id="mapSorted" role="status" aria-live="polite">/, 'the live order is announced, not only drawn');
1823
+ assert.match(SCRIPT, /b\.setAttribute\('aria-pressed', on \? 'true' : 'false'\)/, 'pressed IS the live order');
1824
+ assert.match(SCRIPT, /mapSort\.dir = \(mapSort\.key === k\) \? -mapSort\.dir : 1;/, 'pressing the pressed one reverses, exactly as the header did');
1825
+ assert.match(SCRIPT, /\$\('mapSorted'\)\.textContent = 'Sorted by '/, 'the sentence is written from the same state the pills paint from');
1826
+ assert.match(COSMOS, /\.tblSort button\[aria-pressed="true"\]\{background:var\(--ink\);border-color:var\(--ink\);color:var\(--bg\);\}/, 'the pressed pill inverts to ink, the mine filters\' rule');
1827
+ assert.match(COSMOS, /\.tblSort button:focus-visible\{outline:2px solid var\(--accent\);outline-offset:2px;\}/, 'keyboard focus on the sort is visible');
1828
+ });
1829
+
1795
1830
  /* ── the create wizard in the world (task 1003346; direction record §15, the pick: v1 the
1796
1831
  rail above, the bongo pair kept). Two sheets carry it: cosmos.css draws the FRAME by scope
1797
1832
  (#view-new), projects.html's own wizard block draws the wizard's structures. ── */