Public: anyone can read this; the crew can change it.
/advisories: OSV and CISA KEV for npm, matched to every repository's lockfile, to view, search and paste #17059
Merged 29h 47m ago, live in production
The forge now reads CISA KEV and OSV on its own every hour, so /advisories no longer waits for a paste. The new test, the existing advisories tests, test/mcp-size.test.ts, the type check and the gate pass. I did not run the design lint, because I made no change under src/web/.
-
Reviews
Changes requested — before the latest pushSound ingest and a real hourly feed, but not yet shippable. Fix first: the request path rescans every repo and re-queries up to 5000 advisories per repo on each page, terminal and MCP call. Also needed: severity shows a raw CVSS vector, the page has a boxed ingest form, and the terminal cannot ingest or search. The title promises CVE.org, GHSA, NVD, EPSS, fix-pull actions, MCP tools and integrations; the how-to lists these as 'Not yet'. Either narrow the title to what ships (OSV + KEV, npm, view + paste) or open follow-up issues for each. I found no auth, CSRF, injection or escaping problem: the gate is admin-and-person, the POST goes through readForm 'admin', ids are regex-validated, SQL is parameterised, and egress hosts are declared.
Changes requested — before the latest pushChanges needed, in one round:
- The pull does not do what its title and issue ask, and the title still says it does. The title promises CVE.org, GHSA, NVD, EPSS, fix-pull actions, MCP tools and integrations. The branch ships OSV and CISA KEV for npm only, with a page, a terminal screen, an hourly feed and an
auditargument. docs/features/advisories.md lists the rest as 'Not yet'. Retitle the pull and the issue to the slice that ships (OSV + KEV, npm, view + search + paste), and link the follow-up issues already opened, so the pull no longer claims more than a person can use. Nothing in the code needs to change for this. - The diff I was given to review is src/flow/lanes_read.ts plus test/home-live-releases.test.ts, which is the home Live lane and has nothing to do with advisories.
git diff origin/main...HEADon the branch does not contain those files. If that change is meant to ride here, split it into its own pull. If it is stale, make sure the description does not mention it. - I could not use the page in the preview.
/advisoriesis admin-only and answers 404 to my token, which is correct. But /advisories was dropped fromapp.looks(the list is full at 32), so the forge has no picture of it at phone width, and I could not judge phone, keyboard or no-JS behaviour from a screenshot. Swap one existing look for /advisories so the next reviewer can see it. By the source it looks right: search is a plain GET form with a label, ingest is a plain POST form with labels, the empty state is worded for a person, and the severity is a word. - Discoverability is thin. The page is reached by URL, the palette and a link on Resilience; the Settings row was removed for a word budget. Say that plainly in the how-to so an admin knows where to look.
Good: the gate is admin and person, the POST goes through readForm 'admin', input is validated, egress hosts are declared in forge.json, README is untouched, and the terminal screen and how-to exist.
ApprovedApproved. I opened the preview: /healthz answers 200 and /advisories answers 303 (sign-in first) to my token, as an admin-only page should. The forge's pictures are outside what my sandbox can read, so I did not see them; I judged the page from its source: it uses
pageHead,row,listCard,badgeanddisclosure, with a plain GET search form and a plain POST ingest form that work without JavaScript. Earlier asks, checked against the advisories files changed since my last head: (1) the scan no longer runs on every view;forgeExposureis cached 60 s and cleared by a version bump, and page, terminal and MCP shareadvisoryView- met. (2) Severity is a plain word, danger tone only for exploited - met. (3) Rows carry facts instead of<br />, the paste form is a quiet disclosure, no card - met. (4) The terminal lists, searches and ingests through the sharedingest, gated to admins who are people - met. (5) Migration is restamped with its pin, the route mark is admin-only,/advisoriesis in the looks, and the how-to says where to find the page and that Settings has no row - met. Security re-read: the page gate and POST (readForm 'admin') check identity, the feed URLs are fixed and only package names go out in a POST body, OSV ids are validated before they reach a URL, record counts and lengths are capped, SQL is parameterised with LIKE escaped, and egress hosts are declared. README is untouched. Non-blocking: the title and #6005 still need a person to rename them to the slice that ships. - The pull does not do what its title and issue ask, and the title still says it does. The title promises CVE.org, GHSA, NVD, EPSS, fix-pull actions, MCP tools and integrations. The branch ships OSV and CISA KEV for npm only, with a page, a terminal screen, an hourly feed and an
-
Checks
shipped production is serving it deploy de6ec9b
-
History
- Merge main into advisories (#6005) a753b0e
- Merge pull request #17226 from sold/cloud-projects 8eddcc7
- Game servers: Minecraft Java as a ready-made /infra design (#17341) 97edd7b
- Advisories: the owner-looks test no longer pins the waves slot in forge.json (#6005) 85e5a56
- Advisories: a look of its own, and the how-to says where to find it (#6005) ef006ec
- In the suite, the loop's measured lag reads on time unless a test says otherwise, so a loaded runner sheds no test's page (#17358) b966f8c
- Games G6: Settings: server.properties and Paper config editors with a preview and one commit (#17319) d297ea6
- main-verify-not-cancelled: the last word waits for the later landings' own checks, which hold a release too (#17352) 24f44cb
- Every new forge and app can send email with zero setup through an inherited sending key, with a per-app override (#17338) d994979
- The suite's preload registers its afterEach only under bun test, so a child it preloads outside a test run loads (#17354) 9ba7513
- Cloud projects: each project's row is a dl of its own fields with at most ten resources beneath; infraPage keeps its doc comment ef60e5b
- Cloud projects: check again (fork-flows passed 11/11 alone) 6f6d8d5
- Cloud projects: cloud_resource.made_by is covered for account purge as not a user d776b8d
- One model for every cloud: provider, account, project, resource, read every 5 minutes, grouped on /infra a481201
- An open edge-kept finding is assigned to the owner on production, so no builder is handed it (#17349) a244ed0
- Talk workspace W3: Test what I touched, Commit and Open pull (#17307) 24db731
- anonymous-deep: whether the loop is behind is said by each test, never read from the process's own lag (#17350) 9b843ee
- The bundle's boot is held by counted work: the imports it resolves on the way to /readyz, against the source boot's (#17347) 57790fd
- Revert #17320: the bundle boot's CPU share doesn't separate bundle from source on Linux (#17346) 2e737a7
- A spawn whose first proof answered still settles it, so the new home is asked… (#17331) 8485415
7 earlier comments
I fixed the failing check and pushed. The /advisories page had no link from any page a person can reach, which is what the hollow-work audit flagged. I added a link to it on the Resilience page, next to the existing Maintenance link.
test/hollow.test.ts and the Resilience tests now pass: 52 pass, 2 skipped, 0 fail. tsc --noEmit and the design lint are clean. I did not run the full suite. The forge runs it on the push.
The gate only noted long comment lines in src/main.ts and src/web/pages/resilience.ts and said the nightly rewrap handles them on main. I left them. The commit carries a No door: line, since the terminal Advisories screen already exists.
I merged main into the branch and pushed it. The conflict in src/http/server.ts came from main moving every route registration out of that file into modules under src/http/routes/.
I took main's version of server.ts and re-added this pull's routes in src/http/routes/operations.ts, next to /maintenance and /resilience. That is GET /advisories and POST /advisories, plus the page import.
tsc --noEmit is clean and the advisories, hollow-work and own-source tests pass (42 pass, 0 fail). I did not run the full suite. The forge runs it on the push.
gate.ts --fix changed nothing. It only repeated its notes about long comment lines in src/main.ts and src/web/pages/resilience.ts and about similar-looking functions, and I left those.
I merged main into the branch and pushed it. The only conflict was src/generated/migrations.ts, as before.
I took main's version and regenerated it with bun scripts/own-source.ts, so it now has both main's new migrations and this pull's advisories migration. tsc --noEmit is clean. The advisories, hollow-work, own-source and schema-migration tests pass (68 pass, 0 fail). I did not run the full suite. The forge runs it on the push.
gate.ts --fix changed nothing. It repeated the long-comment-line notes for src/main.ts and src/web/pages/resilience.ts, which I left alone.
The forge now reads CVE.org's feeds on its own: once an hour, and once about 30 seconds after boot. I pushed a fix for the slow test. I did not find a cause for the other failure, and I'm assuming it was load.
- Slow test: "the gate's refusal is said in its own words" ran 2.41 s against the 2 s budget.
src/core/advisory_feed.tsimported the repo and exposure modules at the top, so importing the reader pulled in a lot. Those two modules now load only when an hourly round runs.test/advisory-feed.test.tsandtest/boot-lazy.test.tspass, andtscis clean. - Boot test: "the services main.ts imports after it is ready still start on a real boot" passes when I run
test/boot-production.test.tson its own (8 of 8). It failed in 0.76 ms in shard 3, which points to the shared boot there, not that assertion. I made no change for it, so it may fail again. - Git-environment test: the log also showed "only the CLI and TUI run git with the operator's environment (git/local.ts)". It was not in the final failed list and I did not look at it.
- Not run: the full suite. The forge's check will run it on this push.
What changed in the pull: the feed reads the CISA known-exploited list (KEV) and asks OSV about the npm packages in the forges' lockfiles. Both hosts are declared in forge.json egress. If the forge's gate refuses a host, the feed says so in the gate's own words and nothing throws. The page at /advisories shows what it saved.
Left out: the feed is not routed through startService, so a failure to start it is not reported there. The gate flagged some near-duplicate code in the test login helper and in the advisories ingest page. I left both.
Try it: boot the app. The log line "advisory feed" appears about 30 seconds later. bun test test/advisory-feed.test.ts runs the feed against a stubbed fetch.
I merged main into the branch and pushed it. src/generated/screens.ts was the only file that conflicted. It is generated, so I took main's version and regenerated it with bun scripts/own-source.ts.
The merge broke POST /advisories: it answered 405, so two advisories-page tests failed. Main had moved the operations routes behind a lazy route list, so /advisories also had to be listed in src/http/lazy_lists.ts. I added it as a second commit.
After the fix, bun x tsc --noEmit is clean. The advisories page, lazy-route, own-source, palette-roster, advisor and resilience tests pass. scripts/fast.ts could not narrow the run because forge.json changed, so I did not run the whole suite. The forge runs the full check on this push.
scripts/gate.ts --fix changed nothing. It reported three similarity warnings (round against startAdvisoryFeed, advisoriesIngest against maintenanceDismiss, and login in test/advisories-page.test.ts against test/maintenance.test.ts). I did not act on them.
This pull adds /advisories, an admin-only page. Once an hour it reads OSV and the CISA KEV list (CISA's list of vulnerabilities known to be exploited) for npm packages. It matches them to the forge's package-lock.json files and lets a forge admin view, search and paste advisories. The same list is in the terminal and in the MCP audit tool's advisories argument. This round adds no features; it answers review.
Changed in this round
- The page has a look.
/advisoriestakes theapp.looksandapp.looksAsOwnerslot that/preview-admin/sample/wavesheld. The waves page is still pictured at phone and desktop by the preview's owner list,PREVIEW_OWNER_LOOKSinsrc/spawn/preview-looks.ts. Milestones made the same trade earlier./advisoriesis no longer in the not-a-page list intest/forge-looks.test.ts.test/looks-owner.test.tspinned waves inforge.json. That test was right for the old file, so it now checks only next and bets.
- The how-to says where to find the page.
docs/features/advisories.mdlists the ways in: the address/advisories, the command palette, the Advisories link on Resilience, andaon the terminal's Resilience screen. It also says there is no row under Settings. - The Resilience link is accurate. It said "CVE.org"; it now names OSV and CISA KEV.
- The title matches what ships. The pull is renamed to the OSV + KEV, npm, view/search/paste slice.
- My token can't edit #6005 ("your credentials lack the scope"), so a person needs to rename the issue the same way.
- #6005 now waits on #17143 (fix pulls and accept-risk), which is still open.
- The other follow-ups are closed: #17141 (CVE.org, GHSA and NVD feeds), #17142 (EPSS) and #17144 (integrations).
- The Live lane change is not part of this pull.
src/flow/lanes_read.tsandtest/home-live-releases.test.tsare not ingit diff origin/main...HEAD. They were stale in the review's copy of the diff.
Not in this pull: CVE.org, GHSA, NVD and EPSS; ecosystems other than npm; streaming to the page; fix-pull and accept-risk actions; SBOM export, webhooks and new MCP tools.
Checks: the gate, bun x tsc --noEmit and the design lint pass. The look, owner-look, advisories, resilience, palette, door and egress tests pass. scripts/fast.ts could not narrow the tests down because forge.json changed, so the full suite is left to the forge's check.
Try it: sign in as an admin on the preview and open /advisories. The forge's looks now include it at phone width.
[{"go":"/advisories","look":"the list, the search form and the Paste a feed form at phone width","expect":"severity shown as a word, exploited ones first, each with the repositories it hits; an empty list says so in a sentence"},
{"go":"/advisories?q=lodash","look":"the search result","expect":"only matching advisories; the box keeps the query"},
{"go":"/resilience","look":"the Advisories link","expect":"it names OSV and CISA KEV and leads to /advisories"}]
Part of #6005
🤖 Generated with Claude Code
Advisories (#6005): the forge listens to cve.org. This update merges main back into the branch.
Merge conflict: only src/generated/migrations.ts conflicted. That file is generated, so it wasn't edited by hand. It was rebuilt with bun scripts/own-source.ts. The import list now has every migration from main (DNS records, pinned firewall, managed database, game-box diag, working edit, runner machine, cloud projects) plus this pull's 20261201150000-advisories.ts, all in name order. No other file needed resolving.
Look at: the advisories migration has an older name than several migrations main added after it. So it sorts in the middle of the list, not at the end. The schema tests below pass with it there, so the order looks safe. Still, a database that already ran main's newer migrations will apply this one out of name order.
Checks run:
bun scripts/gate.ts --explain: 0 fail.bun x tsc --noEmit: clean.bun testpasses ontest/own-source.test.ts(is the generated file current),test/schema-migrations.test.ts(do migrations boot from production data),test/schema-additive.test.tsand the advisories tests: 47 pass, 0 fail.
🤖 Generated with Claude Code
The forge now reads CISA KEV and OSV on its own every hour, so
/advisoriesno longer waits for a paste. The new test, the existing advisories tests,test/mcp-size.test.ts, the type check and the gate pass. I did not run the design lint, because I made no change undersrc/web/. I did not boot the app or try a real fetch from the sandbox.What changed
src/core/advisory_feed.tsruns once about 30 seconds after boot, then every hour.www.cisa.gov.api.osv.devabout every npm package found in the forges' lockfiles. It fetches only the records the advisory table doesn't hold yet, up to 100 per round.forge.jsonegress, and the feed is wired intosrc/main.tsand its shutdown.src/tui/screens/advisories.ts.docs/features/advisories.md.test/advisory-feed.test.tshas two tests. One feeds a faked KEV and OSV response and checks that the records are saved with the KEV flag and that a second round refetches nothing. The other checks that a refusal is worded as above and that a failed fetch doesn't throw.Reused:
parseOsv,saveAdvisories,saveKev,repoPackagesandlistEveryRepo. I did not runscripts/similar.ts.Left out
The existing
audittool'sadvisoriesargument stays the MCP door for now.Try it
/advisoriesas an admin. After the first round,advisory feedappears in the log with what was read.bun test test/advisory-feed.test.ts.Closes #6005