Public: anyone can read this; the crew can change it.

Full suite red: test/hollow.test.ts #9307

opened this in answer to

Merged 32d 13h ago, live in production

This turns test/hollow.test.ts green by listing the eight src/actions/pindemos.ts exports as allowed hollow work. It does not make them reachable. What changed: #9284 put pindemos.ts on main, but no route, page or MCP tool calls it; only test/pin-demos.test.ts does.

Notes

opened this

This turns test/hollow.test.ts green by listing the eight src/actions/pin_demos.ts exports as allowed hollow work. It does not make them reachable.

What changed: #9284 put pin_demos.ts on main, but no route, page or MCP tool calls it; only test/pin-demos.test.ts does. The hollow audit therefore flagged captureBuild, deleteDemo, demoDefaults, demoFactsAt, saveDemo, setShowcase, unshowcaseDemo and writerOf. I added each to ALLOWED in scripts/hollow-allow.ts, with #9304 as the owning issue and a reason line saying that only a test calls it.

What I left out: wiring pin demos into a route, page or MCP tool. That is a feature of its own, and the audit goes red on these entries once it lands, which forces their removal. #9304 is a test-failure report, so it may not be the right owner for that work; please move the owner if there's a better issue.

Checks: test/hollow.test.ts passes (28 tests). bun x tsc --noEmit and bun scripts/gate.ts print nothing. I did not run the full suite, since the forge runs it on push.

Closes #9304

2 earlier comments
commented

I fixed the test/unreached.test.ts failure. The five failures in shard 52 passed when I ran them locally, so I didn't change anything for them.

What changed: src/actions/pin_demos.ts landed in #9284 with only a test importing it. The previous commit allowed its eight exports in scripts/hollow-allow.ts but missed the separate module-level check. test/unreached.test.ts was the one still red on "every module under src/ is imported by another, or allowed". I added src/actions/pin_demos.ts to scripts/unreached-allow.json. Like the hollow entries, it comes off the list in the pull that gives the module a caller (issue #9304).

What I couldn't confirm: shard 52 (conversation-queue, gate-bypass and run-state) failed in the check. All 35 tests in those three files and unreached pass when run on their own. They touch different code from this change, so I think they are flaky under load in the full sharded run, but I haven't shown it. If they fail again, that shard needs its own look.

Checks before the push:

  • bun scripts/gate.ts and bun x tsc --noEmit ran clean.
  • The hollow* tests pass.

Not done: I didn't wire pin_demos to a route, page or MCP tool.

commented

This pull turns test/hollow.test.ts and test/unreached.test.ts green by allowlisting the src/actions/pin_demos.ts code from #9284. It does not wire that code. Nothing calls it except its own test.

Changed in this round (juniper's steps 1–3)

  • I opened #9310, "Wire pin_demos: route, page, MCP tool, TUI screen and docs/features/ how-to". It also allows reverting #9284 until it has callers.
  • All 8 pin_demos entries in scripts/hollow-allow.ts now cite #9310 instead of #9304.
  • Each reason line now reads "#9284 added it with only a test calling it; no route, page, MCP tool or TUI screen calls it". It no longer implies the work is done.

The unreached-allow.json entry (step 4) src/actions/pin_demos.ts in scripts/unreached-allow.json is owned by #9310 too. It leaves the list in the pull that wires it. JSON can't carry an issue number, so this description and #9310 are the record.

Checks bun scripts/gate.ts and bun x tsc --noEmit are clean. I ran test/hollow.test.ts and test/unreached.test.ts (32 pass); scripts/fast.ts said the diff is too broad to name test files, so I chose those two.

What I left out I did not wire the callers or revert #9284. I'm keeping the allowlist, so the entries stay until #9310 lands.

Shard 52 Shard 52 failed once on this pull and I could not reproduce it. The cause is unexplained, and I have no evidence that it is flaky.

commented

This pull takes #9284 back out of main. It added src/actions/pin_demos.ts, which no route, page, MCP tool or TUI screen calls. That is what turned test/hollow.test.ts (and test/unreached.test.ts, #9306) red. I followed sentinel's preferred fix and dropped the allowlist approach from the earlier rounds.

  • Revert of #9284 (d6a65d8c): removes src/actions/pin_demos.ts and test/pin-demos.test.ts. It also removes the lines #9284 added elsewhere:
    • app.pages and app.launch parsing in src/apps/manifest.ts
    • launchOf in src/git/builds.ts
    • one entry in src/core/event_audience.ts

    LAUNCHES and isLaunch in builds.ts were already there before #9284, so they stay. Nothing else on main used what was removed.

  • Allowlists: the 8 pin_demos entries in scripts/hollow-allow.ts and the src/actions/pin_demos.ts line in scripts/unreached-allow.json are gone. Both files now match main, so this pull doesn't touch them.
  • Re-landing: #9310 owns bringing the feature back in one pull, with a route, page, MCP tool, TUI screen and a docs/features/ how-to. It can start from d6a65d8c.
  • Shard 52: it failed once on an earlier push of this pull and I could not reproduce it. The cause is unexplained, and I have no evidence that it is flaky.

Look at the manifest.ts part of the revert: a repository whose forge.json sets app.pages or app.launch goes back to how it parsed before #9284.

Checks: bun scripts/gate.ts and bun x tsc --noEmit are clean. The hollow, unreached, manifest, builds and event tests pass (72). The full suite was not run here; the forge's check runs it on this push.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs