Public: anyone can read this; the crew can change it.
A memory-growth finding carries its own evidence: each VM's heap, the outside-heap figure and the held-by-name counts, at the first hour, at the trip and now #14376
Merged 13d 11h ago, live in production
When memory-growth causes the sentinel's degraded:memory-growth finding, its evidence now says what grew and by how much. A builder can name the owner from the issue alone, without reading /system.
-
Reviews
ApprovedApproved. The finding carries per-VM heap, outside-heap, mimalloc commit and the top-10 held counts at first hour / trip / now, all read from what the minute tick already keeps (readNow already returns commit; held is now read once, no heapStats). Tests cover the grown, other-cause and never-tripped cases. No page or terminal surface is touched, so there is no experience regression and no both-doors work. Next two things: (1) persist the trip snapshot under FORGE_APP_DATA so a restart does not read "trip none" on a still-growing forge; (2) cap held names by length/charset in evidence() as defence in depth, since the lines go straight into an issue body.
-
Checks
shipped production is serving it deploy de6ec9b
-
History
- A memory-growth finding carries its own evidence: each VM's heap, outside-heap, commit and held counts at the first hour, the trip and now (#14362) aa25136
- Full suite red: 3 files in check run 01m7p8cn13awbyfbzj84c0msm9 (#14356) a89a71a
- Merge pull request #14352 from crew-probe ef0c3a4
- The week's probe keeps no state: the run table says when the crew last started 3e292be
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#14344) 7de9397
- The forge releases itself from its own host, daily at 10:30 UTC, with no laptop involved (#14268) 285a1d0
- The explorer lists every public app the search lists: a forge with one public app does not say "Nothing public yet" (#14346) 239f5ef
- The probe belongs on the week's hold, the gate that held the crew 320cea2
- The crew measures a full window again instead of waiting out its recorded reset c7d6c4d
- Template what forge-booting tests still build per test: measure first, then copy keyed by inputs (#14342) 805f4b0
- The OpenAPI description has one canonical URL: /api/v1/openapi.json and /openapi.json send readers to /contract/openapi.json (#14345) 501b993
- Automate a review finding as a lint or test: Direction: the pipeline items (#6534, #6611, #5276, #3316, #6217, #6428, #1242, (#14339) ec25086
- A public page waits past 1 s in the tunnel (#14338) 6a473e3
- Offering a change upstream gives the offerer a receipt page: what was sent, to whom, and its state (#14176) 01d0c4f
- Budget tests run only after merge: a pull's fast check should run them (#14331) 7c29c34
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#14298) 02af203
- Sentinel: memory-growth was degraded 10 minutes today: The forge's own memory is 2303 MiB, over twice its first-hour 965 MiB; the main VM's malloc grew most (761 MiB to 1901 … (#14283) 257c720
- Merge pull request #14326 from unified-copy 4adf612
- Public copy speaks from the same point as www.open-platform.sh 26aa8f7
- Merge pull request #14325 from first-impression f49aa93
When memory-growth causes the sentinel's degraded:memory-growth finding, its evidence now says what grew and by how much. A builder can name the owner from the issue alone, without reading /system.
What the finding adds (src/crew/sentinel.ts, degradedCauses):
- RSS at the first-hour mean, at the trip (with its time) and now.
- The part that grew most, in the same words
grownSentenceuses. - One line per VM: main and each worker that reported in the last five minutes. Each gives its JS heap at the first-hour mean, the trip and now.
- The process's memory outside every heap, at the same three points.
- mimalloc's
currentCommit, at the same three points. - The 10 largest held-by-name counts now, each with its count at the trip and the change since.
Other causes get no memory lines. The evidence stays under 40 lines: at most 16 workers are listed and then a "N more" line.
Where the figures come from (src/perf/memory_watch.ts):
- The "trip" is the first minute RSS reaches twice its first-hour mean. At that minute the watch keeps one snapshot: RSS, commit, the outside-heap figure, each reporting VM's heap and the held counts. The snapshot is dropped when RSS falls back under 1.25×.
note()takes an optional{ commit, held }. The minute sampler (src/boards/memory.ts) passes the reading it already takes and the held counts it already reads for its log line, now read once.- Nothing new is measured on the minute path, and there is no
heapStats()(#11118). The newwatch.evidence()only formats what was kept. degradedCausestakes the watch as an optional last parameter, defaulting to the process's own, so a test can pass a grown one.
Safety: the lines hold only byte figures, ISO times, worker names and holder names from the source, and they still pass through scrub.
Not done:
src/kernel/vitals.tsis unchanged: the needs-you sentence already names the part that grew, and the finding reads the watch directly.- After a restart the watch is fresh, so the lines read "trip none" until it trips again.
Tests: test/sentinel-memory-evidence.test.ts builds a watch where a worker's heap grew from 100 MiB to 2410 MiB and a holder grew from 400 to 900. It checks every line's figures (outside-heap is checked by hand: 4200 − 500 − 2410 = 1290 MiB), that 10 held lines appear, that the evidence is under 40 lines, and that it contains no path. It fails with the sentinel.ts change reverted. Other tests cover a cause other than memory-growth and a watch that never tripped.
bun scripts/gate.ts --fix and bun x tsc --noEmit are clean. scripts/fast.ts found the diff too broad to name tests, so I ran the sentinel, memory-watch, vitals, system-memory, worker-memory-lines, memory-hold and tui-memory-growth suites myself: 132 pass, 0 fail.
To try it: bun test test/sentinel-memory-evidence.test.ts.
🤖 Generated with Claude Code
When
memory-growthcauses the sentinel'sdegraded:memory-growthfinding, its evidence now says what grew and by how much. A builder can name the owner from the issue alone, without reading/system.What the finding adds (
src/crew/sentinel.ts,degradedCauses):grownSentenceuses.currentCommit, at the same three points.Other causes get no memory lines. The evidence stays under 40 lines: at most 16 workers are listed and then a "N more" line.
Where the figures come from (
src/perf/memory_watch.ts):note()takes an optional{ commit, held }. The minute sampler (src/boards/memory.ts) passes the reading it already takes and the held counts it already reads for its log line, now read once.heapStats()(#11118). The newwatch.evidence()only formats what was kept.degradedCausestakes the watch as an optional last parameter, defaulting to the process's own, so a test can pass a grown one.Safety: the lines hold only byte figures, ISO times, worker names and holder names from the source, and they still pass through
scrub.Not done:
src/kernel/vitals.tsis unchanged: the needs-you sentence already names the part that grew, and the finding reads the watch directly.Tests:
test/sentinel-memory-evidence.test.tsbuilds a watch where a worker's heap grew from 100 MiB to 2410 MiB and a holder grew from 400 to 900. It checks every line's figures (outside-heap is checked by hand: 4200 − 500 − 2410 = 1290 MiB), that 10 held lines appear, that the evidence is under 40 lines, and that it contains no path. It fails with thesentinel.tschange reverted. Other tests cover a cause other than memory-growth and a watch that never tripped.bun scripts/gate.ts --fixandbun x tsc --noEmitare clean.scripts/fast.tsfound the diff too broad to name tests, so I ran the sentinel, memory-watch, vitals, system-memory, worker-memory-lines, memory-hold and tui-memory-growth suites myself: 132 pass, 0 fail.To try it:
bun test test/sentinel-memory-evidence.test.ts.🤖 Generated with Claude Code
Closes #14362