mirror of
https://github.com/bitbaum/substrata.git
synced 2026-12-04 17:58:03 +01:00
main
6
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
ee01b2f75c |
docs(copy): roadmap, changelog, README, join page and notes match the site (supersedes #139) (#156)
* docs(copy): bring roadmap, changelog, README and join page up to date - Join: drop three false claims (no readiness score cited — all 14 are; most energy rows unsourced — 28 of 30 are; two notes — there are 3). - Roadmap: sourced-row milestone 48/92 -> all but 14; reader views named as config/audiences.ts names them; domain move is one script. - Changelog: entries for #125-#127 and #134-#138. - README: cut the solo-framing line and "commissioned" (programmes are questions Substrata set itself); events publish on accept at /review. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * docs(copy): the domain move includes #133; the front page shows up to four finds - ROADMAP: the move is the box script plus the lib/site.ts change held in #133. - CHANGELOG/README: the front page lists up to four recent finds that report a change and are not yet filed (lib/home-feed.ts HOME_FOUND), not everything the sweep found in 14 days. - learn/how-to-read-this-site: drop "roughly half verified today"; the front page now prints 99/113. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * docs(notes): the two method notes say what the corpus holds today The join page and learn page were corrected last round; the same stale claims sat one directory away in content/notes/. - what-this-map-does-not-know: maker rows are mostly sourced now (99/113, portalTotals), not "about half" of 92; every directory row cites a source for its role (101/101) while the grade stays a judgement; every readiness score cites a source (14/14); policy is 12 instruments across 3 jurisdictions (cn, us, eu), not 6. - why-a-bottleneck-map: drop "roughly half verified"; point at the fraction the front page prints. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * docs(changelog): 2026-10-02 and 2026-10-06 — Ask tools, News, update for anyone, junk filters Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|
|
d2cb042466 |
fix(portal): put the research back in the chrome (#50)
Markets, policy, science, capital, learn and talent were never deleted; they were hidden. RESEARCH_NAV is the SSOT for public bar and desk sidebar. Signed-in pages keep the sidebar so a left-panel click does not drop the shell. Ask sits bottom-right on every page except /chat. Adds sourced JBIC to capital, and two Learn notes for the rabbit hole. |
||
|
|
ecca727058 | feat: build checkable research atlas and Substrata companion (#43) | ||
|
|
8549216642 |
Capital, Learn, and one module that owns every internal URL (#41)
* feat(portal): capital, learn, and one module that owns every internal URL Three things the site was missing, and a gate for the class of bug the third one introduces. **Capital.** The loop model has nine stages and `capital` read "not covered yet". The obvious version of this section would imply money is the scarce thing — but the site's own research says otherwise, and one of the published calls rests on it: transformer lead times stay long *because* capital has been available for two years without shortening the queue. So the claim is narrower: capital is rarely scarce, capital with the right mandate and the right patience is. `willNotFund` is the load-bearing field, and `FUNDING_ASSESSMENTS` says out loud where funding is not the constraint. Three providers, not the five drafted. Two were cut because the mandate sentences could not be found on their own pages — the same bar the policy section uses. **Learn.** The glossary was 32 entries rendered as one undifferentiated block at the bottom of About, with no anchor per term, so nothing could link to a definition. It moves to /learn and gains an anchor each, alongside four explainers built on the existing bip-kit path — `lib/notes.ts` generalised to collections rather than a second content pipeline. **Links.** 29 hand-built entity URLs in twelve distinct shapes; an `href()` helper in lib/site.ts that nothing used. `lib/links.ts` owns them now. The test that walks every href the data can generate caught a real bug on its first run: KfW is German and /policy/de does not exist, because a jurisdiction only earns a page once something is recorded under it. Fixed by making POLICY_PAGES the single fact that generateStaticParams, the test and the capital page all read. Event `participants` were not merely unlinked — they were never rendered. An event knew it was about Samsung Memory and the reader was never told. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y6ecRd91ZsPPcjuNkKTFV2 * feat(portal): capital on the bottleneck pages, in the map, and in the stage model Four loose ends from the capital pass. A bottleneck page now answers "who could fund relief" — leading with whether funding is the constraint at all, because for most rows on this site it is not, and a section that opened with providers would imply the opposite. Policy proponents link to their Markets page. There is exactly one proponent recorded as having lobbied for a rule, and it had a page all along: the policy record spells it "thyssenkrupp Electrical Steel" and the directory "ThyssenKrupp Electrical Steel", so an exact-name lookup called it a miss. `hasMarketPage()` matches on the slug, and the link test makes the same call the page does so the two cannot drift. /api/map gains capital, so an agent reading the map sees what a reader sees. And the capital stage stops saying "not covered yet". That phrase is still true of two other stages, so it cannot be banned by pattern — the new gate checks the claim against the data for the stage that makes it. Proved by mutation: restore the old line and the test fails. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y6ecRd91ZsPPcjuNkKTFV2 * research: promote five producer rows, and stop the block list eating real domains Five of the 35 unsourced producer rows now cite the company's own page — 57 to 62 of 92. Shanghai Superconductor's own tape page lists the 12 mm grade the row is about; POSCO's product page explains grain-oriented electrical steel; ExxonMobil, Gazprom and Air Liquide each document the helium operation on their own site. The other thirty did not clear the bar, and the bar is the one already written into `sourced()`: the company's own page. Market-report farms, stock-quote pages and a YouTube video are not sources. Two rows are worth flagging rather than promoting — the only evidence found for Nyrstar and gallium is a 2023 piece saying it was *considering* gallium projects, and REC Silicon's polysilicon evidence is about the Moses Lake closure. Neither is a source; both stay unsourced. Pruning the event worklist turned up a bug worth more than the prune. `host.includes('x.com')` matched `semiconductorx.com` and `simplytronix.com`, so the sweep had been discarding trade press invisibly — a filtered result leaves no trace. The list mixes full hosts and bare names, and the first fix broke the bare ones silently: the prune dropped 12 where it should have dropped 20. Now a full host matches itself or a subdomain and a bare name matches a whole label. Event candidates 77 to 57, all twenty drops junk domains, and `--prune` applies the live filter to stored rows so there is never a second definition of what counts as junk. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y6ecRd91ZsPPcjuNkKTFV2 * fix(portal): say a kind's funding limit once, and keep screenshot output out of the repo `willNotFund` describes the KIND of money, not the provider, so a bottleneck funded by two development banks printed the same sentence twice in a row and read as a rendering fault. It is now said once per kind. Phrasing it as a sentence did not survive contact with the data — "a venture capital will not fund" and "a export credit will not fund" are both wrong, and no article works across all ten kinds. It is a label now, in the same mono style the page already uses for "grade that ships" and "part of the process", where a noun phrase is what belongs. Verified in the built page, not just the source: the kind's limit appears under EIB and not again under KfW. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y6ecRd91ZsPPcjuNkKTFV2 --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
b2b49f708a |
feat(calls): start the track record, and fix the engine that was mistaking blindness for absence (#39)
THE ENGINE BUG 33 producer rows were filed as 'nothing' — including "Air Liquide" helium and "MP Materials" rare earth, which cannot plausibly return zero results. The timestamps gave it away: 18 of them finished in under three seconds, which is the inter-row pause plus a search and no page read at all. The shared SearXNG instance had begun answering HTTP 200 with an empty result list. ai-kit reports that as 'nothing' — correctly, the request succeeded — and 'nothing' is not 'could_not_look', so the outage guard never fired and a backend brownout was recorded as an absence of producers. That is precisely the failure the three-valued design exists to prevent, and it happened because the third value was attached to the wrong signal. A run of consecutive empty searches is now treated as blindness. A worse look also no longer overwrites a better one: re-running with --all had already destroyed three good rows when the backend hiccuped mid-run, which is the same mistake wearing different clothes. Also: read 8 of 10 results rather than 3 of 5, and read the company's own domain first, because every one of the 131 candidates the first run accepted came from a company-owned domain and not one from a news site. Producer aliases and extra material trade names for the rows where the web writes a different word than the catalogue does. Candidates went from 59 rows to 73. Nine of those passed the analyst bar — the organisation's own document, or a recognised industry body — taking verified producer rows from 48 to 57 of 92. Resellers, market-report vendors, stock-profile sites and PR wires were rejected, which is most of what the engine turns up. CALLS The first seven dated calls, each naming the observation that settles it, the date by which reality must answer, and the thesis claim it tests — which is what turns six general views into something that can be marked. No hit rate is published until ten have resolved, because a percentage from a handful is noise wearing a number, and wrong calls will stay on the page. Publishing them made two existing sentences false — About and one note both said no call had ever been made. Both are fixed here, and a new gate fails the build if any rendered string claims an absence the data has since filled, because that class of error recurs every time the data catches up with the prose. Claude-Session: https://claude.ai/code/session_01Y6ecRd91ZsPPcjuNkKTFV2 Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
813de972b2 |
feat(portal): grouped megamenu, notes, and an invitation to contribute (#38)
* feat(portal): grouped megamenu, notes, and an invitation to contribute Seven flat navigation items became three groups and one action. Every destination carries a one-line description in the menu, so a reader chooses from what they will find rather than from a noun — Science and Research were indistinguishable from their labels alone, and Research now sits under About as the open questions it actually is. The menu opens on hover and on focus-within for keyboard, and renders as a disclosure list on a phone, with no JavaScript in either. Notes: markdown files in content/notes, parsed by bip-kit, which is the fleet's answer for this and ships no raw HTML. It has no filesystem layer by design, so lib/notes.ts is the listing half. Its bp-* classes are dressed in this site's own tokens in globals.css. Two pieces to open with, one of them an inventory of what this research does not know. Join: lib/contribute.ts is a typed model and a pure function to sitekit sections, with no imports from this project, so a sibling can copy one file and write its own model. It enforces the rule that matters — an invitation to contribute is not an offer of employment — by making the terms required and rendering them above the ask. Not a package yet, on the fleet's own rule that a shared dependency has to remove a repeated decision and that markup is not shareable; when a third project wants it the file lifts into sitekit unchanged. The About page stops leading with how few people work on this. It leads with the project being open, says what contribution would change, and still states plainly that there is no staff, no entity and no money. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y6ecRd91ZsPPcjuNkKTFV2 * fix(deps): exempt bip-kit from the release-age window bip-kit 0.2.8 was published inside the 24-hour supply-chain window, which CI rejects. It is our own package, which is what this exclusion list is for. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y6ecRd91ZsPPcjuNkKTFV2 --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |