412 Commits
Author SHA1 Message Date
CatoandClaude 49ed5fc48f fix(prices): answer the cron call by a hard deadline (#428)
Co-authored-by: Claude <noreply@anthropic.com>
2026-12-02 23:36:50 +01:00
CatoandClaude ceaca42a08 fix(layout): keep content clear of the feedback launcher; fit tab labels at 320px (#426)
* fix(layout): keep content clear of the feedback launcher; fit tab labels at 320px

Co-Authored-By: Claude <noreply@anthropic.com>

* test(layout): hold launcher clearance and 320px tab labels at the source

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(quality,graph): entity quality counts, registry/graph import cycle, repo docs (#425)

Co-authored-by: Claude <noreply@anthropic.com>

* fix(layout): keep content clear of the feedback launcher; fit tab labels at 320px

Co-Authored-By: Claude <noreply@anthropic.com>

* test(layout): hold launcher clearance and 320px tab labels at the source

Co-Authored-By: Claude <noreply@anthropic.com>

* style(test): format layout-clearance test

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-02 09:17:23 +01:00
CatoandClaude 901e349e6c fix(quality,graph): entity quality counts, registry/graph import cycle, repo docs (#425)
Co-authored-by: Claude <noreply@anthropic.com>
2026-12-02 08:39:51 +01:00
CatoandClaude edc0951cb3 fix(layout): keep focused controls clear of the sticky top bar (#424)
Co-authored-by: Claude <noreply@anthropic.com>
2026-12-02 06:58:04 +01:00
CatoandClaude a19fc22318 fix(layout): header actions never wrap; stack scenario tables on narrow widths (#423)
Co-authored-by: Claude <noreply@anthropic.com>
2026-12-02 06:00:45 +01:00
Cato 4269a4376a Connect research processes and sourced company relationships to the map (#422) 2026-12-02 03:56:44 +01:00
Cato 4ba37120a3 Explore an entity’s connections and evidence (#421)
* Explore entity connections and their evidence from profiles

* Open the connection map on the entire entity registry

* Give connections stable identities and expose all registry kinds
2026-12-01 18:02:29 +01:00
Cato 7019f55f04 Start sourced dependency research from profiles and chains (#419) 2026-12-01 17:16:55 +01:00
Cato ada0b68888 Make market access and Greenland resources actionable (#420) 2026-12-01 16:36:28 +01:00
CatoandClaude 76b5c6e8dc fix(links): a link does not preload its target (#418)
Next preloads every link that scrolls into view, and these pages are drawn on
request. Measured in a browser on 2026-11-29: one visit to the home page made
27 preload requests to the server. Solon, built the same way, made 91 to 778
a visit and stopped answering under a handful of readers (solon#643).

components/link.tsx wraps next/link with prefetch={false}; all 167 files that
imported next/link import it instead, and ESLint (no-restricted-imports)
keeps a bare next/link from coming back.

pnpm run verify passes (format, types, lint, 1,144 tests).


Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-29 17:25:02 +01:00
050c2eceed Globe: callouts on @bitbaum/geo-kit 0.5.0 labels (#356)
The figures at the countries are the renderer's own labels (box, leader,
dot), placed, thinned, kept steady and faded by the package like every
map's names; the hand-written placement loop goes.


Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cato <cato@orangecat.ch>
2026-11-28 22:31:52 +01:00
CatoandClaude b46062cd37 fix(market-data): keep EDGAR snapshots in memory only when the database write fails (#415)
writeSnapshot put every fundamentals and holders snapshot into a
module-level Map before writing it to research_market_snapshots, and
never dropped it. Every company the nightly /api/cron/prices facts
run refreshed stayed in the app heap until the next restart: about
0.1 MB a company, measured against live SEC data, across 506 tracked
SEC filers. The app unit is throttled at MemoryHigh=768M (killed at
1G), and the substrata crons have failed starting with the 22:07 UTC
prices run on 2026-11-20 and 2026-11-21.

The module's own comment says the in-process copy stands in where
there is no database. It now does only that: set when the row cannot
be written, dropped when it is.

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 21:31:52 +01:00
CatoandClaude 8338520d89 fix(prices): read proxy statements without a DOM so the daily run cannot stall the site (#416)
* fix(prices): read proxy statements without a DOM so the daily run cannot stall the site

appcron-substrata-prices timed out (curl exit 28, 0 bytes in 300s) although
the route stops starting work at 200s, and on 2026-11-24 the whole site
stopped answering during the 22:07 UTC run. Cause: the facts half parsed each
company's multi-MB DEF 14A with linkedom + Readability. V8 sizes its heap from
the box's RAM, not the unit's MemoryMax, so that garbage was not collected:
measured over the first 40 SEC filers, RSS climbed 334 MB -> 1107 MB before a
major GC, past the app unit's MemoryHigh=768M, where the kernel throttles the
whole process.

The proxy table is read by pattern, so it needs text, not an article: strip
tags in a few linear passes (lib/sources/html-text.ts). Same 40 companies:
peak RSS 383 MB, heap 75-145 MB; identical parsed rows on all 30 proxies
compared; parse 1.6 s against 30 s.

Co-Authored-By: Claude <noreply@anthropic.com>

* docs(readme): PRs merge through forge/verify, not the removed auto-merge workflow

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 20:26:37 +01:00
CatoandClaude 4bf1b011cb quality: flag likely publisher mistakes with @bitbaum/datakit; re-read sources (#417)
Adds series/no-likely-error (correctness): each series' points run through
the shared checks Solon uses, failing a point held as almost surely a
mistake. All series pass today. Re-reads every series quote (573 of 574
found; one BLS page unconfirmed), re-dates the claims, and refreshes the
sanctions regimes, which had passed their age limits and failed verify on
main.


Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 18:29:28 +01:00
CatoandClaude e7654a9b16 fix(prices): read EDGAR fundamentals and holders one at a time (#412)
The daily /api/cron/prices run read each company's company-facts JSON
(up to 16 MB, parsed whole) and its proxy statement (multi-MB HTML parsed
into a DOM by Readability/linkedom) concurrently. Together they can push
the Next process past the app unit's MemoryMax=1G; the kernel kills it
mid-request and the appcron curl gets an empty reply (exit 52).

Sequential reads halve the per-company peak. Holders is skipped (counted
as failed, picked up next day) when the company's time budget is spent.

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-20 04:07:14 +01:00
CatoandClaude Opus 5.5 8c1107fb9a chore(ci): one check per change — remove the merge sweep, check on PRs only (#413)
Removes the fleet auto-merge sweep caller (and wake chain where present);
checks run on pull requests only, not again after merging; a deploy that
waited for CI on main now deploys on push. The forge merge check
(forge/verify) verifies each PR on its merge result and merges it.

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 02:49:46 +01:00
Catoandfleet-reconciler 29a1404b7c chore(deps): raise shared package floors to published versions (#411)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-20 02:14:20 +01:00
CatoandClaude Opus 5.5 72cfa71b26 Every prose field gets chatkit's microphone (DictationField) (#410)
* Every prose field gets chatkit's microphone (DictationField via TextBox)

The desk settings, sweep settings, lead review form and X-ray holdings box
now use one app wrapper, components/forms/TextBox, around chatkit's
DictationField with the microphone on the app's own /api/transcribe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmwCTyVzo77nrcRfTsa

* Changelog: a microphone in every prose field

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmwCTyVzo77nrcRfTsa

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 20:14:18 +01:00
Catoandfleet-reconciler 3b33a6b802 chore(deps): raise shared package floors to published versions (#409)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-15 19:35:44 +01:00
Catoandfleet-reconciler 3fccba41cb chore(deps): raise shared package floors to published versions (#408)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-15 18:24:03 +01:00
Catoandfleet-reconciler 2ac75751ff chore(deps): raise shared package floors to published versions (#407)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-15 17:25:18 +01:00
Catoandfleet-reconciler 37f14e2e01 chore(deps): raise shared package floors to published versions (#406)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-15 16:31:03 +01:00
Catoandfleet-reconciler b3dfca4596 chore(deps): raise shared package floors to published versions (#405)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-15 15:07:56 +01:00
Catoandfleet-reconciler 41fac418c0 chore(deps): raise shared package floors to published versions (#404)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-15 14:00:23 +01:00
Catoandfleet-reconciler 2fa0c26228 chore(deps): raise shared package floors to published versions (#403)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-15 12:12:20 +01:00
Catoandfleet-reconciler 38f09a9f06 chore(deps): raise shared package floors to published versions (#402)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-15 04:02:35 +01:00
Catoandfleet-reconciler 7431a12b49 chore(deps): raise shared package floors to published versions (#401)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-15 02:33:43 +01:00
Catoandfleet-reconciler 49c13f1bca chore(deps): raise shared package floors to published versions (#400)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-15 02:04:25 +01:00
dependabot[bot] f8d769803f chore(deps): bump the minor-and-patch group with 9 updates (#399)
Bumps the minor-and-patch group with 9 updates:

| Package | From | To |
| --- | --- | --- |
| [@better-auth/passkey](https://github.com/better-auth/better-auth/tree/HEAD/packages/passkey) | `1.7.17` | `1.7.21` |
| [better-auth](https://github.com/better-auth/better-auth/tree/HEAD/packages/better-auth) | `1.7.17` | `1.7.21` |
| [next](https://github.com/vercel/next.js) | `16.4.5` | `16.4.6` |
| [@electric-sql/pglite](https://github.com/electric-sql/pglite/tree/HEAD/packages/pglite) | `0.5.15` | `0.5.16` |
| [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) | `4.3.4` | `4.3.5` |
| [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) | `16.4.5` | `16.4.6` |
| [playwright-core](https://github.com/microsoft/playwright) | `1.64.1` | `1.65.0` |
| [prettier](https://github.com/prettier/prettier) | `3.9.10` | `3.10.0` |
| [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) | `4.3.4` | `4.3.5` |


Updates `@better-auth/passkey` from 1.7.17 to 1.7.21
- [Release notes](https://github.com/better-auth/better-auth/releases)
- [Changelog](https://github.com/better-auth/better-auth/blob/main/packages/passkey/CHANGELOG.md)
- [Commits](https://github.com/better-auth/better-auth/commits/v1.7.21/packages/passkey)

Updates `better-auth` from 1.7.17 to 1.7.21
- [Release notes](https://github.com/better-auth/better-auth/releases)
- [Changelog](https://github.com/better-auth/better-auth/blob/main/packages/better-auth/CHANGELOG.md)
- [Commits](https://github.com/better-auth/better-auth/commits/v1.7.21/packages/better-auth)

Updates `next` from 16.4.5 to 16.4.6
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/compare/v16.4.5...v16.4.6)

Updates `@electric-sql/pglite` from 0.5.15 to 0.5.16
- [Release notes](https://github.com/electric-sql/pglite/releases)
- [Changelog](https://github.com/electric-sql/electric-pglite/blob/main/packages/pglite/CHANGELOG.md)
- [Commits](https://github.com/electric-sql/pglite/commits/@electric-sql/pglite@0.5.16/packages/pglite)

Updates `@tailwindcss/postcss` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.3.5/packages/@tailwindcss-postcss)

Updates `eslint-config-next` from 16.4.5 to 16.4.6
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/commits/v16.4.6/packages/eslint-config-next)

Updates `playwright-core` from 1.64.1 to 1.65.0
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.64.1...v1.65.0)

Updates `prettier` from 3.9.10 to 3.10.0
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.9.10...3.10.0)

Updates `tailwindcss` from 4.3.4 to 4.3.5
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.3.5/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: "@better-auth/passkey"
  dependency-version: 1.7.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: better-auth
  dependency-version: 1.7.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: next
  dependency-version: 16.4.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: "@electric-sql/pglite"
  dependency-version: 0.5.16
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: "@tailwindcss/postcss"
  dependency-version: 4.3.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: eslint-config-next
  dependency-version: 16.4.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: playwright-core
  dependency-version: 1.65.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: prettier
  dependency-version: 3.10.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: tailwindcss
  dependency-version: 4.3.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-14 23:32:03 +01:00
Catoandfleet-reconciler f5b29c8162 chore(deps): raise shared package floors to published versions (#398)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-14 13:49:38 +01:00
Catoandfleet-reconciler 068746de01 chore(deps): raise shared package floors to published versions (#397)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-14 12:07:19 +01:00
Catoandfleet-reconciler 34d0565aa0 chore(deps): raise shared package floors to published versions (#396)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-14 11:15:22 +01:00
Catoandfleet-reconciler 4944c90302 chore(deps): raise shared package floors to published versions (#395)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-14 10:43:53 +01:00
Catoandfleet-reconciler a991f78945 chore(deps): raise shared package floors to published versions (#394)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-14 00:22:58 +01:00
Catoandfleet-reconciler e83d497696 chore(deps): raise shared package floors to published versions (#393)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-13 23:03:18 +01:00
Catoandfleet-reconciler e73ab9ba81 chore(deps): raise shared package floors to published versions (#392)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-13 22:19:48 +01:00
Catoandfleet-reconciler f8b681f5cc chore(deps): raise shared package floors to published versions (#391)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-13 21:42:05 +01:00
Catoandfleet-reconciler b731e4a3d0 chore(deps): raise shared package floors to published versions (#390)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-13 21:03:54 +01:00
Catoandfleet-reconciler 0eb6a6c540 chore(deps): raise shared package floors to published versions (#358)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-13 11:42:22 +01:00
CatoandClaude 64f37d740a chore(deps): @bitbaum/ai-kit 1.26.0: Google out of the free AI chain (#389)
ai-kit <=1.25 put Google's Gemini API in the free chain on the fleet-wide
GEMINI_API_KEY, which sits on a billed Google project. 1.26 builds no Google
link (Groq, then OpenRouter :free), keeps paid AI off unless an app opts in,
and adds daily caps.

- .env.example: drop GEMINI_API_KEY, no longer read
- docs: the screenshot note names the one free link that can see


Claude-Session: https://claude.ai/code/session_019MDtmtUQb9BM11ycpApwGq

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-13 10:08:59 +01:00
CatoandClaude 116e9537d0 feat(comments): page discussion is chatkit's CommentThread (#387)
* feat(comments): page discussion is chatkit's CommentThread

The discussion under notes, learn, resources and profile pages was a
hand-rolled list and a bare <textarea> with no microphone. The fleet rule
is that comments are chatkit's CommentThread and that anywhere a person
types words there is a microphone, so:

- Bump @bitbaum/chatkit ^0.22.1 -> ^0.25.0 (CommentThread arrived in 0.23).
  Ask (ResearchChat, AskBox) type-checks and renders unchanged.
- PageDiscussion renders CommentThread: the box is chatkit's Composer with
  the microphone (/api/transcribe), Enter-to-send, and a refused post keeps
  the draft. Posting still goes to /api/comments, where threadkit's
  canWrite decides who may write; a signed-out reader (from /api/me) sees
  "Sign in to comment" linking to sign-in and back to the page instead of
  a box that only fails on submit. Dates keep the YYYY-MM-DD form and
  authors keep "Reader" / "Substrata". Fact-check stays Substrata's and
  re-mounts the thread with its new comment.
- Drop the CSS the package now owns (.page-comments, .comment-meta,
  .comment-form); bind PageDiscussion under the chat block of
  package-plan.json; note it in docs/IMPLEMENTATION-PLAN.md.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

* fix(comments): a refused comment says why, and no sign-in link where sign-in is off

The route's refusals (too short, the hourly limit, sign in) are thrown as
chatkit's CommentRefused, so the thread shows them instead of a generic
"try again" that would fail the same way forever; a comment under the
route's 3-character floor is refused before it is sent. The sign-in link
shows only once /api/me says sign-in exists on this deployment.

Needs @bitbaum/chatkit 0.28.0 (CommentRefused); the bump follows.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

* chore(deps): @bitbaum/chatkit ^0.28.0 (CommentRefused)

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 12:48:41 +01:00
CatoandClaude 5462424450 fix(chat): search for what a news question is about, not how it asks (#388)
"Latest news on gallium export controls" was searched as written plus the
year, and Wikipedia answered with the Patriot missile (seen on production,
2026-11-12). The news frame ("latest news on", "the latest on", "any
recent updates about") is dropped; route.ts still turns "now" into the
month and year.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 10:55:43 +01:00
CatoandClaude d21065941f feat(research): search through ai-kit's keyless fallback when the box's backends fail (#386)
* feat(research): search through ai-kit's keyless fallback when the box's backends fail

Since 2026-11-11 the box's SearXNG has not answered and there is no paid
key, so the Ask assistant, the event sweep and producer sourcing could not
look anything up. Every web search now walks the configured backends and
then ai-kit's keyless ones (GDELT news, then Wikipedia), from one place:
lib/web-search.ts. Whether looking up is offered still follows the
configured backends (webLookupEnabled, now ai-kit's own defaultProviders),
so a deployment or a test with none makes no request.

Needs @bitbaum/ai-kit 1.25.0 (the dependency bump follows).

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

* fix(health): the web probe walks the same chain as Ask, behind the same gate

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

* chore(deps): @bitbaum/ai-kit ^1.25.0 (keyless search fallback)

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

* test(web-search): type the test env the way next build checks it

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 10:07:33 +01:00
Cato 79989d9608 feat(seo): add robots.ts and sitemap.ts (#385) 2026-11-12 09:18:02 +01:00
CatoandClaude 6c5f235de8 feat(contribute): a microphone in the contribution boxes (chatkit Composer) (#384)
* feat(contribute): chatkit Composer with microphone for contribution boxes

"Know something, or want us to look?" (Inquire, on bottleneck pages,
empty states and the world panel) and "Send evidence" beside Ask
(ContributeForm) were bare textareas: no microphone, and a different send
from Ask. The fleet rule is that anywhere a person types words there is a
microphone, and the experience belongs to the package, so both now use
chatkit's Composer with the same /api/transcribe voice leg as Ask.

- Enter sends, Shift+Enter breaks the line, as in Ask.
- useContribution.send answers Composer's onSend: a message under 10
  characters, a missing consent tick (Send evidence) or a failed request
  is said in the box and returns false, so the draft is kept.
- ContributeForm is no longer a <form>, so nothing submits twice; the
  optional reply email and credit name stay.
- Inquire reuses useContribution instead of its own copy of the POST.
- The .inquire-form textarea style is dropped: the composer keeps its own look.
- package-plan.json binds Composer in both files.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

* fix(contribute): say the length cap before sending, and start each box clean

Composer has no maxLength, so the inbox's 12,000-character cap is now
checked before the request and said in words. Opening or closing a
contribution box clears an earlier refusal, so it never shows over a new
draft.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 09:06:25 +01:00
CatoandClaude 2f465e24e3 refactor(charts): draw severity, quality trend and output shares with chartkit (#383)
* refactor(charts): draw severity, quality trend and output shares with chartkit

Three charts were still drawn by hand in this app while @bitbaum/chartkit
already ships them, against the packages-first rule (every chart is
chartkit, so a fix made once reaches every product):

- SeverityBar (components/portal/Status.tsx) now draws its 0-12 bar with
  chartkit's Meter (showValue off: the number beside it still opens the
  severity method). The bar gains a meter role with its value and max.
- The quality run-history Trend (components/quality/Trend.tsx) is
  chartkit's LineChart: axis from 80% (or lower) to 100%, dated ticks,
  every run's value on hover/focus and in the hidden table. The caption
  keeps the old accessible sentence. The hand-drawn SVG's CSS is removed
  from app/styles/quality.css.
- Per-country share-of-world-output bars in the quantities profile
  module are chartkit Meters (neutral tone, stretched to the row in
  app/styles/places.css), with the same "per cent of the published world
  total" label.

package-plan.json binds the three files under the charts block.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

* fix(quality): the trend draws each day's latest run

The quality run fires every six hours and chartkit places a point by its
date, so four runs a day stacked on one x. The trend now keeps one point
per day, that day's latest run, and its caption says so.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 08:59:17 +01:00
CatoandClaude 14a4ea80b9 fix(quality): refuse source links that redirect into the private network (#382)
* fix(quality): refuse source links that redirect into the private network

The data-quality cron (lib/quality/page-text.ts, lib/quality/network.ts)
fetched corpus source URLs with redirect:'follow' and no private-network
guard, so a cited link that 302s to localhost or the cloud metadata service
would have been fetched from the box.

Every quality fetch now goes through guardedFetch: redirect:'manual' and
@bitbaum/ai-kit/web's validateFetchTarget on the first URL and on every hop
(up to 5), per the package-first rule. A refused target is a ReadError
("refused: ..."): pageText reports the quote as unreadable, probeUrl as an
error, without retrying. A failed DNS lookup is rethrown in fetch's shape so
EAI_AGAIN still reads as unresolved (unscored) and ENOTFOUND as broken.

readPage is not used for the body: it refuses PDFs, sends its own user agent
and keeps only the article part of a page, which would change which quotes
are found. Public URLs answer as before (test/quality-network.test.ts).
package-plan.json binds the file under the ai block; README says so.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

* docs(quality): say which network checks go through the SSRF guard

Every check that opens a corpus link uses guardedFetch; the SEC ticker
file and OpenFIGI calls go to fixed hosts. The README said every check.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 08:50:40 +01:00
CatoandClaude 3c6860d110 refactor(dates): validate and count days with @bitbaum/whenkit (#381)
Seven local copies of the YYYY-MM-DD regex (registry schema, entry
vocabulary, graph validation, event rules, event drafts, two quality
checks) and three hand-rolled day calculations (price window dayBefore and
daysBetween, starter rotation day count) are replaced by whenkit's
isISODate, addDays and daysBetween, per the packages-first rule.

isISODate also rejects impossible calendar days (2026-02-30), which the
regex let through; every stored row still passes. The entry isoDate schema
carries JSON Schema format "date", and the printed shape notes YYYY-MM-DD,
so the data-entry shape still states the form after the pattern is gone.
package-plan.json binds the new files under the dates block.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 08:49:49 +01:00
CatoandClaude c59cd1dc11 refactor(palette): search as you type through searchkit's useSearchAsYouType (#380)
The command palette hand-rolled its own debounce, abort and stale-answer
drop. @bitbaum/searchkit/react's useSearchAsYouType does exactly that, and
the org rule is that a package capability is used, not re-implemented. The
local useSearch is gone; the palette keeps its cache (an earlier query
answers without a request), its keyboard behaviour and its rows.

What the reader sees: the last research results stay on screen while a
newer query loads instead of blanking out, the "All N results" count only
shows for the query actually answered, and a failed research search now
says so on the last row instead of failing silently.

package-plan.json binds CommandPalette.tsx to useSearchAsYouType under the
search block; README describes the new behaviour.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 08:40:56 +01:00
CatoandClaude fc26f09019 refactor(lists): directory, series index and careers search through listkit (#379)
The company directory, the data series index and the careers SQL search
each hand-rolled what listkit already ships: facet parsing and validation,
facet counts with the facet's own selection lifted, a "show more" URL rebuilt
from scratch, and a LIKE escape. The package rule says use the package.

- lib/universe/directory.ts: the four filters are a ListSpec (directorySpec);
  parseQuery validates them, applyQuery filters, counts and draws the rows.
  Typed words stay with searchkit (textFilter), so a slip is still forgiven.
- app/data/series/page.tsx: bottleneck, measure and origin are a ListSpec;
  applyQuery and matches replace the hand-written predicate and slice.
- lib/list-more.ts: "Show more" keeps the ?n= URLs and writes the next one
  with writeQuery over the reader's params (empty and invalid values dropped).
- lib/careers-query.ts: title search uses likeContains instead of a local
  escape.

Same rows for the same URLs: 1890 directory filter combinations compared
old against new, identical rows, matched counts and facet counts. Tests pin
the spec, the ?n= paging and that a comma in typed words is not a list.

Claude-Session: https://claude.ai/code/session_019MDtmuvTGrpo3VChP3skH8

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-12 08:26:30 +01:00