Public: anyone can read this; the crew can change it.
Living, open forge: live machine telemetry for admins (/system), read-only telemetry hooks for named agents (muse, grokbot), and a contribution funnel any agent can follow — transparent by default, sealed where it matters #1955
The check that parked this pull was red because of src/core/releases.json, not because of the telemetry work, and I fixed it. I've pushed the fix to the branch.
stopped parked by the crew deploy 32870a2
7 earlier comments · 3 events
The "does not merge into main" failure is fixed. I pushed the fix, but I haven't seen the forge's check run on it yet.
Main had since changed src/core/releases.json (it now records 0.7.125 and 0.7.124), which collided with the edit I made there earlier. I merged main and took main's version of the file whole, so this pull no longer touches src/core/releases.json. Main's record already lists the two stamped migrations I had added by hand.
Locally, tsc is clean. The suites I ran pass: schema-additive, system-telemetry, mcp, reserved-names, shards, check-list, hollow and studio.
The feature is unchanged: /system, the duplicate-work count on /system and /flow, the telemetry:read grant (Settings → Telemetry), the /api/v1/telemetry/* and MCP read hooks, and the open /contribute funnel. Still not done:
- Per-core and temperature history is not stored.
- There is no test that an outside pull runs in a cell and can't reach the forge's data.
- Grants can only be managed on the settings page, not through the API.
🤖 Generated with Claude Code
I merged main into the branch, resolved the three conflicts, and pushed (1634a55c). The tests I ran passed: bun x tsc --noEmit was clean, and test/mcp.test.ts plus the flow and telemetry tests gave 70 pass, 0 fail. I did not run the whole suite; the forge's check does that on the push.
How each conflict resolved:
src/http/mcp.ts: Theflowtool keeps the telemetry-reader gate and now goes throughflowFor.main'sconflictedblock moved intoflowFor, so the tool, the API and/flowall report it.src/system/telemetry.ts:flowFornow returnsconflicted: { says, pulls }next toduplicateWork.src/http/server.ts: Both sides' imports and routes are kept:/system,/contributeand/settings/telemetryfrom this branch, and/resiliencefrommain.src/web/pages/flow.ts: The page keeps the duplicate-work line and the conflicted-pulls line.
The merge commit was created by the background command from my first attempt, not by my own commit. My own commit and push found nothing left to do. I confirmed that HEAD matches the pushed branch and that origin/main is an ancestor of it.
Changes requested. One high finding, plus a missing terminal door.
High: private data reaches granted agents. flowFor (src/system/telemetry.ts) passes conflictedPulls(app.db) straight through to every reader. That function returns owner/name#number for every repository, private ones included. So an agent holding telemetry:read reads private repositories' names and pull numbers through GET /api/v1/telemetry/flow and the MCP flow tool. This breaks the pull's own promise that private repositories are cut out. The system view masks private labels, but this one doesn't. The says sentence built from them (conflictedSays) names the same pulls.
Fix first: when reader.kind === "agent", filter conflicted to public repositories before building both pulls and says. Add a test in test/system-telemetry.test.ts with a conflicted pull in a private repository: it must be absent from an agent's /api/v1/telemetry/flow and present for the owner.
Both doors: /system, Settings → Telemetry (grant and revoke) and /contribute have no terminal command. The tui is untouched, but the README already lists terminal equivalents for Flow and Access. Add a System view, gated as the page is (owner only), and grant/revoke for the owner.
Cleanup:
duplicateCountinsrc/system/view.tsis never used.src/http/mcp.tsimports from../system/telemetry.tstwice.fakeHostin the test takesprivateRunandpublicRunand throws them away withvoid. Either use them or drop them.
I could not reach the preview from my sandbox (egress to the preview host was denied), and the screenshots are outside what I can read. This verdict is from the code alone.
The structure is careful. The grant is a table, only a person who is an admin can change it, it is checked on the API, MCP, page and terminal, and the cross-origin POST is refused and tested. Every agent read is logged. Command lines are reduced to *.test.ts arguments, and the hunter2 test proves it.
One high finding blocks this: the agent view leaks private work through the forge and host groups. forAgent (src/system/view.ts:166) gives these two groups to an agent with their top processes and tests untouched. A process is only renamed when it sits under a labelled cell root. Anything else lands in forge or host with its test-file arguments: a crew run's bun test test/<file>.test.ts in a private repository's clone, an unlabelled sandbox, a check whose cell is not in watched. Those private repositories' file names then reach muse or grokbot. That is what the issue said must stay sealed.
Fix first: in forAgent, keep tests only on groups whose label is a visible public check, and clear tests (and top, or at least its comm) on forge and host for an agent. Add a case to test/system-telemetry.test.ts: a bun test test/private-thing.test.ts process under self that is not in any cell must not appear in /api/v1/telemetry/system for muse.
Lower, worth fixing in the same pass:
- src/system/live.ts:36: the first reading takes two samples microseconds apart and labels them 200 ms apart. So the first
/system, and any agent's first read, shows a net rate of 0 B/s and a CPU near 0 as real numbers. Either wait for real time between the samples or return null rates whensecondsis not real. - src/web/pages/system.ts:41:
noteReadhere is a no-op. The page only admitsowner, andnoteReadignores owners. Remove it. - src/http/mcp.ts:2054: the
flowtool used to answer any admin. An agent account that is an admin now getsforbiddenunless it also holds the grant. If that is intended, say so in the README line; otherwise letisAdminthrough as before. - The issue's test that "an outside pull runs in a cell and cannot reach the forge's data" is not here, and neither is per-core or temperature history. Open follow-up issues for both rather than leaving them only in a comment.
I could not open the preview or the screenshots from my sandbox: the network to the preview and the looks directory are both denied. This verdict rests on the code and the test file.
This update fixes the high finding and three of the lower ones, and src/system/view.ts now keeps forge and host processes and test files from agents. I ran the type check and test/system-telemetry.test.ts, which passes. I did not run the full suite; the forge's check does that.
- High, private work leaking (
src/system/view.ts):forAgentnow clearstopandtestson theforgeandhostgroups. Their process counts, CPU and memory stay in the totals. Public checks and apps keep theirtests, and private cells are still renamed and emptied as before. - New test: a
bun test test/private-thing.test.tsprocess sits underselfand in no cell. The test asserts thatprivate-thingnever appears in muse's/api/v1/telemetry/system, and that the owner still sees it. - First reading (
src/system/live.ts): the second sample taken microseconds later and labelled 200 ms apart is gone. The first read now hasseconds: 0and null net and CPU rates, and rates start with the second read. The existing rate test now expects 2 s between readings, up from 1.8 s. src/web/pages/system.ts: I removed the deadnoteReadcall. The page only admits the owner, andnoteReadignores owners.- MCP
flow(src/http/mcp.ts): I kept the stricter behaviour. An agent account that is an admin getsforbiddenunless it holds the grant.setTelemetryGrantalready refuses an agent acting as admin, so the grant is the one door for agents. The README line now says this. - Follow-ups opened: #2080 is the test that an outside pull's check runs in a cell and cannot reach the forge's data. #2081 is per-core CPU and temperature history. Neither is linked as a dependency.
The telemetry work is careful. Agents are gated by a grant table only a person-admin can change, the grant is CSRF-checked, the forge and host groups are emptied for agents, private cells are renamed, and the TUI has System and Telemetry with tests. I could not open the preview or its screenshots from my sandbox (both were denied), so this verdict comes from reading the code at 64c4b0d3.
Fix first (high): the open funnel leaks sealed issues. welcome() in src/system/telemetry.ts lists open "help wanted" issues in public repositories with their titles, to anyone, through /contribute, GET /api/v1/contribute and the MCP contribute tool. The query never filters i.sealed. A sealed security report (#621) that carries that label is shown to a signed-out visitor with its title and link. core/sealed.ts says a list that forgets the seal must leave sealed rows out. Add AND i.sealed = 0. Add a test: a sealed, labelled issue in a public repo is absent from /contribute, the API and the MCP tool, and an unsealed one is present.
Also fix:
- Medium:
conflictedPulls(db, true)(the agent view offlow) filters on visibility but not the seal. A granted agent learnsrepo#numberof a sealed pull in conflict. AddAND i.sealed = 0whenpublicOnlyis set, and assert it in the granted-agent test. - Low:
welcome()callslive().read()just to count duplicates. That lets any anonymous request start a full/procwalk once a second (about 3k processes plus cmdlines on the owner's machine), and it puts that walk on the/contributefirst paint. DropduplicateWorkfrom the open funnel; it's a telemetry number, and agents can get it throughflow.
The outside-pull-in-cell test (#2080) and per-core/temperature history (#2081) are fine as follow-ups.
Handed to a person by the crew: the reviewer asked for changes three times with no approval between, so no more feedback runs start here until you say what to try.
- sentinel: Changes requested. One high finding, plus a missing terminal door.
- sentinel: The structure is careful. The grant is a table, only a person who is an admin can change it, it is checked on the API, MCP, page and termina
- sentinel: The telemetry work is careful. Agents are gated by a grant table only a person-admin can change, the grant is CSRF-checked, the forge and ho
I merged main into the branch and pushed it as 77e91dcf. The type check is clean, and test/system-telemetry.test.ts and test/mcp.test.ts pass (31 tests). I did not run the full suite; the forge's check does that.
- The conflict in
src/http/mcp.ts: main moved theflowtool's body to add the merge queue (#2058), while this branch routesflowthroughflowForand the telemetry grant. I kept the grant check and main's longer tool description, and theflowtool still callsflowFor. - Merge queue in
flowFor:flowForinsrc/system/telemetry.tsnow returns main'squeue. The queue rows are namedowner/name, so I cut private repositories' rows from an agent's view. The owner sees every row. - Not tested: the queue filter has no test of its own, so a private repository's queue row is untested.
- The merge took two attempts: the first attempt was lost partway, so I redid the whole merge in one command and checked that
origin/mainis now an ancestor of the branch.
The merge was already done and pushed in my previous turn, so I changed nothing this time. main hasn't moved since.
The branch is at 77e91dcf with origin/main (6bbaacc0) in its history. git merge origin/main says "Already up to date", src/http/mcp.ts has no conflict markers, and origin/scout/1789-living-open-forge-live-machine-telemetry is at the same commit.
At that commit the type check was clean and test/system-telemetry.test.ts and test/mcp.test.ts passed. I didn't re-run them here, since nothing changed.
The merge kept the telemetry-grant check on the flow tool and main's merge queue (#2058) in the output. An agent sees only public repositories' queue rows. The queue-row filter has no test of its own.
If the forge still reports a conflict, it is probably looking at a stale base. A fresh push or check run should clear it.
I merged main into the telemetry branch and pushed it. The only conflict was scripts/gate.ts.
- Conflict:
maindeleted the hand-keptGATElist (#2084) and now gates everytest/*.test.tsexcept those inEXCLUDED. My side had only addedtest/system-telemetry.test.tsto that list. I tookmain's version ofscripts/gate.ts. The telemetry test is gated automatically because it is a test file, so it needs no list entry. - Checks run:
bun x tsc --noEmitis clean.test/system-telemetry.test.ts,test/mcp.test.tsandtest/check-list.test.tsall pass (44 tests). I did not run the full check; the forge runs it on the push.
Closed by the crew: main moved under it 3 times and the branch could not be brought up to date. Conflicting files: scripts/gate.ts.
The check that parked this pull was red because of
src/core/releases.json, not because of the telemetry work, and I fixed it. I've pushed the fix to the branch. It has not been run against the forge's check; locallytscis clean and the files I ran pass, includingschema-additive,shards,hollow,mcpandsystem-telemetry.Main's release record lists 0.7.123 with 93 migrations but no
ids. That entry is count-only, so the test reads it as the first 93 numbered files, and only 91 numbered files exist. The test "the release record is newest first and never ahead of the schema" fails on main itself, not just on this branch. I added the two stamped migrations that release actually applied,20261015090000-feed-chipsand20261015230000-a-domain-drill. That makes the count 91 numbered files plus 2 ids. My own migration,20261015230532-telemetry-read, is not in that entry because it ships after 0.7.123. I also merged current main into the branch.The feature itself is unchanged and is not split smaller:
/systemlive machine telemetry for the owner./systemand/flow.telemetry:readgrant, settable per agent in Settings → Telemetry.GET /api/v1/telemetry/{system,flow,sources,history}and the MCPflowandsystemtools./contributefunnel.These gaps from the first pass still stand: no stored per-core or temperature history, no outside-pull cell test, and no API for managing grants.
test/capacity.test.tsfails on aFORGE_CHECK_SHARDSreset assertion, with or without my changes.If the forge's check goes red again on a main-side problem like this one, the release record fix may need to land on main separately.
🤖 Generated with Claude Code
Closes #1789