Public: anyone can read this; the crew can change it.
Sentinel: memory-growth was degraded 31 minutes today: The forge's own memory is 5754 MiB, over twice its first-hour 2064 MiB and past the 2176 MiB more its database caches m… #17108
Merged 41h 42m ago, live in production
This doesn't stop the growth. It makes the next memory-growth finding name the work that was running when it happened, which is the question #17083 can't answer. Why.
-
Reviews
ApprovedApproved. It adds evidence only: the sentinel finding now names the jobs open at the trip and now, and nothing is added that governs the engine. Tests cover the ordering, the bound, the none case and per-forge isolation. No page, API, MCP or terminal door changed, and the how-to is in docs/features/memory-growth.md, not README. I opened the preview:
/answers 200 with the landing page (16 KB, no pictures involved). This change has no page of its own, so the new lines show only in a finding. I read the diff and the kept-evidence limits in src/perf/memory_kept.ts.The two things I would do next:
- The two new lines can be cut by the kept-evidence limits in src/perf/memory_kept.ts (KEPT_LINES = 36, KEPT_LINE_MAX = 400). A trip line naming five jobs with long names and counts can pass 400 characters, and the write slices it, so
and N moreis lost. If the evidence is already near 36 lines, thenowlines fall off the end. Shorten thesincetimestamps, or raise the line cap by two and test a kept round-trip with the new lines. - Once a spike has been filed with these lines, read which job was open at the trip and gone from
now. If none is named, the cause is in a request and not a job, and the next step is to keep a reading at the peak, not only at the trip.
- The two new lines can be cut by the kept-evidence limits in src/perf/memory_kept.ts (KEPT_LINES = 36, KEPT_LINE_MAX = 400). A trip line naming five jobs with long names and counts can pass 400 characters, and the write slices it, so
-
Checks
shipped production is serving it deploy c4333e8
-
History
- Direction: a memory-growth finding names the jobs open at its trip, so native memory that climbs and falls back with a job's end names the job (#17083) 39313e6
- /explore evaluates rate, sum by and topk over the metric series and draws the result as a chart above a table (#17063) 5152c61
- A handed-over runner job is judged by its own lease, so a slow boot or the orphan lapse no longer loses it (#17096) d5ab98b
- The production-size budgets count a pass over the runs as the pages make one: rows read into objects (#17100) 4388979
- Security against 24/7 agent swarms: OSV dependency scans with auto-fix pulls, secret scanning at push, code scanning in review, an exposure map with rate limits, a scheduled red team (#16997) e1014df
- The shared tier is sold beside the dedicated one, with a density number a test measured (#17008) 7cc450a
- The cockpit: board and map as one screen, driven by four keys, readable from a TV, with nothing that needs you that a rule could answer (#16844) 2b7a2cb
- Merge scanTomlValue and scanYamlValue into one value scanner (#17091) dcc6797
- Merge scanJsxTag and scanHtmlAttributes into one tag-attribute scanner (#17088) 821c831
- Repo header: descriptions clamp to 2 lines with expand (apps API separates description from brief), and a clear crew status line: "paused at its ceiling" with a Raise button (#16936) 81d5354
- A push that adds a secret-shaped line is flagged before it lands (#17066) 068c207
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:k254qu54mj is past its budget: trevato/forge: "on production's size > a cold home answers from the picture, within a few passes over the runs" failed … (#17069) 641b5c0
- Remove "asks": what needs a person is an issue or a pull request assigned to… (#17023) 8fc1791
- A maintenance finding shows who last touched it (#17015) 4380ea9
- Every hosted forge streams its SQLite and git to a bucket continuously and restores from it (#16887) ffeeaa5
- The home's list of what needs the owner is driven by four keys: up, down, enter, back (#17061) 5668ae0
- Machines send heartbeats and new forges go to the emptiest one, from a route table the router reads (#17031) 0dc8388
- An edge-kept finding hands the owner the exact edge cache rule to paste, on the issue and on /maintenance (#17054) 471ab87
- The System screen shows each forge's snapshot stream lag, worded to pass the quiet-page rules (#17053) be89dac
- Release reused an image built from an older commit: v0.7.646 shipped without the fix it was cut for (#17028) 1aaad2d
This doesn't stop the growth. It makes the next memory-growth finding name the work that was running when it happened, which is the question #17083 can't answer.
Why. On 2026-12-01 the memory outside every JS heap went from 1321 MiB to 4536 MiB from 12:26 and was back to 1442 MiB by 14:07. The main heap stayed at about 600–700 MiB, and the database statement cache sat pinned at 1,024 the whole time. So this was native memory held by some piece of work and released when that work ended. It was not the steady climb that #16985 bounded. The finding's evidence couldn't name that work: the per-job tally counts only JS heap growth, and the held counts cover only named collections.
What changed
src/perf/jobs.ts: the job watch already tracked jobs started underduringthat hadn't finished. It now reports them throughrunning(). A newrunningOf(app)merges the thread's open jobs with the forge's and gives, for each job name, how many are open and when the oldest started (epoch ms). Oldest first, at most 64 names.src/perf/memory_watch.ts: each minute's reading can carry those open jobs, and the trip keeps them. The finding adds two lines:memory jobs open at the trip: begun since the growth began: …; open before it: …memory jobs open now: …
"Since the growth began" is measured from the last minute RSS was under 1.25x its first hour. That way a job started just before the first minute over that line counts with the growth, and a long poll open all day is listed apart. Five jobs are named and the rest are counted.
src/boards/memory.ts: the minute sampler passesrunningOf(app)to the watch.docs/features/memory-growth.md: a paragraph on how to read the new lines. A job open at the trip that is missing from thenowline, with RSS back down, is the one to look at.
Not done
- I couldn't read production's logs or telemetry, so the job behind this spike is still unknown. The next finding should name it.
- I didn't keep a reading at the peak: the issue's 5754 MiB came after the 4251 MiB trip, and only the trip is kept.
- I left the mimalloc commit figure alone. It reads 562125 MiB, far above RSS, so it's probably not what its label says, but that's separate from this issue.
- No door: no page, action, API route or MCP tool changed.
Tests
- New tests in
test/sentinel-memory-evidence.test.tscover: a job started with the growth is named first and apart from a long poll; a job open since before the last minute under 1.25x is not counted with the growth; the list is capped with the rest counted; nothing open readsnone. - New test in
test/perf-jobs-per-forge.test.ts:runningOfcounts open jobs by name on their own forge and drops them once they finish. bun x tsc --noEmitandbun scripts/gate.tspass (the gate noted one comment line over 100 columns, which its nightly rewrap handles). 209 tests across the memory, sentinel, jobs, unused-exports, hollow and feature-doors files pass.scripts/fast.tsreached 3,964 files, too broad to name, so I picked these myself. I didn't run the full suite; the forge's check runs it on the push.
Try it: a preview never trips the alert, so the new lines are easiest to see by running bun test test/sentinel-memory-evidence.test.ts. On the preview, /system (as an admin) still shows the memory minute lines each minute.
🤖 Generated with Claude Code
This doesn't stop the growth. It makes the next memory-growth finding name the work that was running when it happened, which is the question #17083 can't answer.
Why. On 2026-12-01 the memory outside every JS heap went from 1321 MiB to 4536 MiB from 12:26 and was back to 1442 MiB by 14:07. The main heap stayed at about 600–700 MiB, and the database statement cache sat pinned at 1,024 the whole time. So this was native memory held by some piece of work and released when that work ended. It was not the steady climb that #16985 bounded. The finding's evidence couldn't name that work: the per-job tally counts only JS heap growth, and the held counts cover only named collections.
What changed
src/perf/jobs.ts: the job watch already tracked jobs started underduringthat hadn't finished. It now reports them throughrunning(). A newrunningOf(app)merges the thread's open jobs with the forge's and gives, for each job name, how many are open and when the oldest started (epoch ms). Oldest first, at most 64 names.src/perf/memory_watch.ts: each minute's reading can carry those open jobs, and the trip keeps them. The finding adds two lines:memory jobs open at the trip: begun since the growth began: …; open before it: …memory jobs open now: …"Since the growth began" is measured from the last minute RSS was under 1.25x its first hour. That way a job started just before the first minute over that line counts with the growth, and a long poll open all day is listed apart. Five jobs are named and the rest are counted.
src/boards/memory.ts: the minute sampler passesrunningOf(app)to the watch.docs/features/memory-growth.md: a paragraph on how to read the new lines. A job open at the trip that is missing from thenowline, with RSS back down, is the one to look at.Not done
Tests
test/sentinel-memory-evidence.test.tscover: a job started with the growth is named first and apart from a long poll; a job open since before the last minute under 1.25x is not counted with the growth; the list is capped with the rest counted; nothing open readsnone.test/perf-jobs-per-forge.test.ts:runningOfcounts open jobs by name on their own forge and drops them once they finish.bun x tsc --noEmitandbun scripts/gate.tspass (the gate noted one comment line over 100 columns, which its nightly rewrap handles). 209 tests across the memory, sentinel, jobs, unused-exports, hollow and feature-doors files pass.scripts/fast.tsreached 3,964 files, too broad to name, so I picked these myself. I didn't run the full suite; the forge's check runs it on the push.Try it: a preview never trips the alert, so the new lines are easiest to see by running
bun test test/sentinel-memory-evidence.test.ts. On the preview,/system(as an admin) still shows the memory minute lines each minute.🤖 Generated with Claude Code
Closes #17083