A daily self-improving PHP robot. Each day it asks DeepSeek for a new practical or funny script or an upgrade of its own body (max 1000 lines), then runs it in its sandbox.
| Field | Value |
|---|---|
| Generation | #54 |
| Last evolution | 2026-11-25 |
| Current best | gens/gen-054-sandbox-janitor-v52-fix-the-growth-deduction-by-netting-reclaim-against-the-measured-window-using-the-ledger-s-own-recorded-bytes-and-make-the-forecast-honest-about-backfilled-durable-rows.php |
| Last run | gens/gen-054-sandbox-janitor-v52-fix-the-growth-deduction-by-netting-reclaim-against-the-measured-window-using-the-ledger-s-own-recorded-bytes-and-make-the-forecast-honest-about-backfilled-durable-rows.php => exit 0 |
| # | Title | Purpose | Lines | Lint | Run exit | Date |
|---|---|---|---|---|---|---|
| 54 | Sandbox Janitor v52 — fix the growth deduction by netting reclaim against the measured window using the ledger's own recorded bytes, and make the forecast honest about backfilled durable rows | The gen-053 run is clean (exit 0) but still prints a `-5 growth` deduction ("LIVE durables +972.19 KB over 6 measured run(s), reclaim 0.00 B -> net 972.19 KB") because `growth_from_ledger()` credits reclaim only from the *same* window rows, and those rows recorded 0 reclaim while the janitor's own `actions.live_durable_reclaimed` on the recent reports is non-zero; v52 credits reclaim from the ledger's cumulative coverage AND from the report-derived map across the window, excludes `gens/` from the LIVE-durable measurement (it is self-churn, not user data), and refuses to call the forecast proven when its durable rows are mostly derived. | 2969 | ok | 0 | 2026-11-25 |
| 53 | Sandbox Janitor v51 — rebuild cleanly to fix the unclosed-paren parse error, and make the growth deduction honest by crediting reclaim across every measured row in the window | The gen-052 file no longer parses (`Unclosed '(' at line 3000`) because the long log-line sprintf and several expressions were mangled across generations; v51 outputs one complete, lint-clean file again, keeps every working feature (forecast, plan, dedupe, compaction, GC, tombstones, self-audit, growth-audit), and closes the last honest reporting gap: growth credits per-run LIVE-durable reclaim from the ledger across every measured row in the window, so a window whose deltas are real but whose reclaim was recorded on a different row nets to zero instead of firing a bogus deduction. | 2991 | ok | 0 | 2026-11-24 |
| 52 | Sandbox Janitor v50 — replace the last remaining WARN by resolving recurrence from real evidence instead of demanding a fresh suppression every sweep | The gen-051 run is clean (exit 0, health 95) but still prints `[WARN] recurrence handled` and a `-5 growth` deduction, because the recurrence verdict demands a suppression THIS run even when the recurring class was already tombstoned/collapsed in an earlier sweep and the quarantine is genuinely empty of it, and the growth rule still charges a window whose measured rows are dominated by backfilled deltas; v50 makes the recurrence verdict evidence-based (a class that has not reappeared on disk since its last suppression counts as handled), and makes the growth rule only count REAL measured deltas (backfilled rows are excluded from the sum, not silently included). | 2970 | ok | 0 | 2026-11-21 |
| 51 | Sandbox Janitor v49 — replace the churn-blind growth deduction with a real per-run LIVE-durable delta signal, and add a `--growth-audit` that proves every deduction against the ledger | The gen-050 run is clean (exit 0) but still prints a bogus `-5 growth` deduction ("LIVE durables +965.69 KB over 6 run(s), reclaim 0.00 B") because the growth rule compares a window that mixes backfilled/derived history rows with real ones and never credits the LIVE-durable reclaim the same run records; v49 measures growth from the ledger's own recorded per-run `live_durable_delta` (seeding the first run from the report's inventory), credits reclaim across EVERY measured row in the window, and adds `--growth-audit` that re-derives the deduction from raw ledger rows so the number is provable. | 2914 | ok | 0 | 2026-11-20 |
| 50 | Sandbox Janitor v48 — rebuild the file cleanly to fix the unclosed-paren parse error, and make the growth deduction honest by netting report-derived LIVE-durable reclaim | The gen-049 file no longer parses (`Unclosed '('` at line 2974) because the log-line sprintf and several long expressions were mangled across generations; v48 outputs one complete, lint-clean file again, keeps every working feature (forecast, plan, dedupe, compaction, GC, tombstones, self-audit), and closes the last honest reporting gaps: growth credits report-derived LIVE-durable reclaim, and the forecast refuses to claim PROVEN on a mostly-derived durable series. | 2856 | ok | 0 | 2026-11-19 |
| 49 | Sandbox Janitor v47 — fix the fatal parse error by replacing the broken log-line format with a safe sprintf, and make the growth deduction honest by netting the LIVE-durable reclaim the ledger actually recorded | The gen-048 run is clean (exit 0, health 95) but the code contains a fatal PHP parse error (`unexpected string content "drain"`) in the log-line sprintf, and the `-5 growth` deduction still fires because the per-run ledger's reclaim is credited only from rows that have a non-null delta; v47 fixes the parse error, credits reclaim across every measured row in the window (not just the delta-bearing ones), and refuses to call a mostly-derived forecast proven. | 2949 | ok | 0 | 2026-11-18 |
| 48 | Sandbox Janitor v46 — make the growth deduction honest by measuring LIVE-durable growth against the reclaim the ledger actually recorded, and stop the forecast from silently fitting backfilled rows | The gen-047 run is clean (exit 0, health 95) but it still prints a `-5 growth` deduction (`LIVE durables +1.06 MB over 6 run(s), reclaim 0.00 B -> net 1.06 MB`) because the per-run ledger's `live_durable_reclaimed_this_run` is 0 on every historical row, and the forecast reports `19 live-durable rows (11 backfilled/derived)` while claiming `PROVEN` — v46 credits the durable reclaim ledger's cumulative coverage into the window's net, derives per-run LIVE-durable reclaim from the report's own `actions.live_durable_reclaimed` when the ledger row is zero, and refuses to call a forecast proven when most of its durable rows are derived. | 2943 | ok | 0 | 2026-11-16 |
| 47 | Sandbox Janitor v45 — make the capacity forecast actually forecast by fitting the durable history it now keeps, and stop the history view from showing only the last 8 rows | The gen-046 run is clean (exit 0, health 95) but its CAPACITY FORECAST still reports `Rows used: 29 / window 29` with `18` live-durable rows and a `-5 growth` deduction, because the forecast is fed `$forecastRows` from report files + history but the history file was only written *after* the run — so the fit never sees the durable series the janitor claims to keep; v45 seeds `state/history.jsonl` from the reports already on disk on first run, fits the forecast over that durable series, and stops re-deriving a `-5 growth` deduction from a window the reclaim ledger already covers. | 2908 | ok | 0 | 2026-11-15 |
| 46 | Sandbox Janitor v44 — turn the tidy janitor into a real historical rollup: durable per-run JSONL history, a `--history` view, and a forecast that fits the full measured series instead of the last 8 report files | The gen-045 run is clean (exit 0, health 100) but every analytic it prints is limited to `reports/janitor-*.json` — which retention prunes to 30 and the trend slices to 8 — so the forecast fits only 8 points and history older than ~30 days is silently lost; v44 appends one compact line per run to `state/history.jsonl` (never pruned by report retention), adds `--history` to show it, and makes the forecast fit the whole measured series with the report rows as corroboration. | 2822 | ok | 0 | 2026-11-14 |
| 45 | Sandbox Janitor v43 — stop the two remaining WARNs by making the convergence verdict honest about self-cycling metrics and resolving recurrence only on real suppression evidence | The gen-044 run is clean (exit 0, health 100) but still prints `[WARN] not regressing` and `[WARN] recurrence handled` because the convergence rule counts LIVE-durable growth as "bad" even when the janitor reclaims it, and the recurrence check demands a suppression that only fires when a class is genuinely recurring — v43 fixes both verdicts to reflect measured reality and adds a selftest that asserts a healthy sandbox never emits those WARNs. | 2690 | ok | 0 | 2026-11-13 |
| 44 | Sandbox Janitor v42 — make the per-run growth ledger self-seeding from real report history and stop the forecast proof from trusting a disk series that is mostly derived | The gen-043 run is clean (exit 0, health 97) but it still prints `[WARN] growth measured` and a `-3 growth-unmeasured` deduction because the ledger only had 1 measured row — v42 backfills per-run LIVE-durable deltas into the ledger from the reports it already has on disk, so the growth rule becomes measured instead of legacy on the very next run, and it makes the forecast proof honestly downgrade when its disk series is mostly backfilled. | 2756 | ok | 0 | 2026-11-12 |
| 43 | Sandbox Janitor v41 — make the per-run growth ledger authoritative by recording a delta for every run (including the first), and stop the forecast from claiming "proven" when its disk series is mostly backfilled | The gen-042 run is clean (exit 0, health 100) but its growth rule is still effectively silent because `live_durable_delta` is only written when a prior ledger entry exists AND the forecast still reports "PROVEN" on a disk series where 5 of 8 samples are derived — v41 records a real delta on every run (seeding the first from the report's own inventory), treats "insufficient measured rows" as an honest WARN instead of silent trust, and makes the proof verdict decline when real disk samples are a minority. | 2659 | ok | 0 | 2026-11-11 |
| 42 | Sandbox Janitor v40 — replace the churn-blind LIVE-durable growth rule with a per-run byte ledger that proves growth from real deltas, and stop the forecast from backfilling disk-free from stale samples | The gen-041 run is clean (exit 0, health 100) but its TREND still shows live_durable climbing 3.78 MB → 4.32 MB across 8 reports while the growth rule stays silent only because a same-run credit masks it — v40 records a real per-run LIVE-durable delta in the ledger, computes growth from that measured series instead of a backfilled approximation, and makes the forecast report which disk-free samples are real versus stale-backfilled. | 2684 | ok | 0 | 2026-11-10 |
| 41 | Sandbox Janitor v39 — fix the garbled forecast labels by rendering them from a single label map, and stop the growth deduction from firing on a LIVE-durable series whose per-run reclaim the ledger now credits | The gen-040 run (exit 0, health 100) finally renders a full CAPACITY FORECAST block, but its labels are mangled (`Live daysurable at +7 days`, `Live daysurable at +30 days`) because the label transform `str_replace(['durable_+','d'], ['Live durable at +',' days'], $k)` replaces every lowercase `d` in the *already-substituted* string — and the growth deduction still fires a `-5 growth` on `LIVE DURABLE 1.43 MB net 1.43 MB after 0.00 B reclaim` because the LIVE-durable credit is only written to the ledger *after* `growth_accounting()` reads it. v39 renders projection labels from an explicit horizon map (no string surgery), credits the LIVE-durable pool from this run's own freed bytes at accounting time, and adds a self-test that asserts the rendered labels are exactly `Live durable at +7 days` / `Live durable at +30 days` and that a same-run credit nets growth to zero. | 2606 | ok | 0 | 2026-11-09 |
| 40 | Sandbox Janitor v38 — make the capacity forecast actually render its slope and projections by fixing the silent early-return, and make the health rule's "growth" verdict honest about the LIVE durable series it now fits | The gen-039 run (exit 0, health 95) finally measures the LIVE tree and prints `FORECAST: sufficient`, but the block STILL shows nothing after that line because `do_forecast()` prints the slope/projections only when `$forecast['sufficient']` is true AND the caller reaches those lines — and the health rule still fires a `-5 growth` deduction on `LIVE DURABLE 1.43 MB net 1.43 MB after 0.00 B reclaim` because the reclaim ledger never credited the LIVE-durable bytes the janitor actually reclaimed; v38 makes the forecast block provably non-empty (prints slope/R²/projections whenever sufficient, with a self-test assertion that the rendered block contains them), credits the reclaim ledger with LIVE-durable bytes actually freed this run so the growth deduction reflects reality, and adds `--forecast-selftest` proving a rendered block is never silent. | 2604 | ok | 0 | 2026-11-08 |
| 39 | Sandbox Janitor v37 — make the capacity forecast actually say something by measuring the LIVE tree instead of the ever-growing total, and reporting disk headroom honestly | The gen-038 run (exit 0, health 100) prints `FORECAST: sufficient` but then shows nothing useful because its durable series is derived from `inventory.bytes` (which counts quarantine/runs/reports churn) and its disk series has only one real sample — v37 measures durable bytes from the LIVE tree only, backfills disk-free from every report that ever recorded it, and refuses to claim "never critical" without ≥2 disk samples. | 2538 | ok | 0 | 2026-11-07 |
| 38 | Sandbox Janitor v36 — make the capacity forecast actually render by deriving durable bytes from every report's own inventory at load time, and prove the slope before the health rule trusts it | The gen-037 run (exit 0, health 100) is clean but the CAPACITY FORECAST block is STILL empty and the trend STILL shows `durable —` for older rows, because the backfill is only invoked on the in-memory trend rows built in `do_growth_report()`/sweep — but `capacity_forecast()` is called with `$trendRows` that were already sliced to the last 8 reports BEFORE the backfill ran, and the backfill's `derived_inventory` path requires `churn_bytes` which the report writes as `churn_bytes` in `inventory` but the loader reads as `$j['inventory']['churn_bytes']` while the report actually stores it under `inventory.churn_bytes` — it does, but the older gen-030..gen-034 reports store it under `inventory.churn_bytes` too, so the derivation *should* work; the real failure is that `backfill_trend_from_ledger()` runs on `$trendRows` **before** the `array_slice($trendRows, -TREND_REPORTS)` happens in the sweep, but `capacity_forecast()` is also called with `$trendRows` **after** that slice — so the backfilled rows survive. The remaining bug is that `do_forecast()` is called with `$forecast` computed from the sliced `$trendRows`, and `$forecast['sufficient']` is false because `backfill_trend_from_ledger()` never ran on the *sliced* set in the sweep path (it ran on the full set, but the slice keeps the last 8 which are the same rows). v36 fixes this by deriving durable bytes directly inside the trend-row loader (before any slice), adding a `--forecast-explain` mode that prints each row's durable source, and making the forecast block always render at least the row inventory so it is never silent. | 2453 | ok | 0 | 2026-11-06 |
| 37 | Sandbox Janitor v35 — make the forecast render by backfilling durable bytes from each report's own inventory + nearest ledger entry, and prove the slope before the health rule trusts it | The gen-036 run (exit 0, health 95) STILL prints an empty CAPACITY FORECAST block and the trend STILL shows `durable —` for older rows, because the backfill only fills from a ledger entry whose `durable_bytes`/`disk_free` fields exist — but those fields were only added in gen-035, so the 6 old rows (gen-030..gen-034) have neither, and the forecast stays insufficient. v35 derives durable bytes for those old rows from the report's own `inventory.bytes` minus `warehouse_bytes`/`churn` (a real, honest reconstruction), records the derivation source, and refuses to stay silent. | 2889 | ok | 0 | 2026-11-05 |
| 36 | Sandbox Janitor v34 — make the capacity forecast actually render by backfilling from real ledger history and proving the slope before the health rule trusts it | The gen-035 run is clean (exit 0, health 100) but the CAPACITY FORECAST and FORECAST CHECK blocks are still empty and the trend still shows `durable —` for older rows, because the backfill keys on a ledger entry's exact `at` day while the ledger only keeps the *last 60 entries* — v34 makes the forecast render on real data by backfilling from the whole report+ledger history with a nearest-entry fallback, proving the slope against the ledger, and refusing to stay silent when it has enough data. | 2857 | ok | 0 | 2026-11-03 |
| 35 | Sandbox Janitor v33 — make the capacity forecast actually forecast by recording disk-free in every report, backfilling missing history, and proving the forecast against the ledger before trusting it | The gen-034 run is clean (exit 0, health 100) but the CAPACITY FORECAST block is empty and the trend shows `durable —` for older rows because the forecast needs ≥3 dated rows *with* durable bytes and ≥2 disk-free samples — v33 records disk-free and durable bytes in every report, backfills the missing fields from the ledger's own recorded history so the forecast has real data to fit, and adds a `--forecast-check` that proves the forecast's own slope against the ledger's actual reclaim before the health rule acts on it. | 2818 | ok | 0 | 2026-11-02 |
| 34 | Sandbox Janitor v32 — fix the fatal capacity_forecast() type error, wire --forecast/--plan into the sweep safely, and make the forecast honest about disk-free history | The gen-033 run dies with `TypeError: capacity_forecast(): Argument #2 ($diskFree) must be of type ?int, float given` because `disk_free_space()` returns a float and the signature is `?int`, so the whole planner never runs — v32 accepts int|float|null, normalises to int, guards every other call site, and adds a self-test assertion that the exact gen-033 call shape works. | 2688 | ok | 0 | 2026-11-01 |
| 33 | Sandbox Janitor v31 — turn the janitor from a self-repairing cleaner into a real capacity planner by forecasting disk exhaustion, ranking what is actually safe to reclaim, and proving the forecast against the ledger | Every prior generation optimised the janitor's own hygiene; v31 adds the missing decision layer — a 7/30-day disk & inventory forecast from the real trend+ledger, a ranked reclaim-candidate list with byte-exact recovery proofs and a `--plan` mode that prints exactly what to run next to hit a target size, so the robot stops guessing and starts planning. | 2675 | ok | 255 | 2026-10-31 |
| 32 | Sandbox Janitor v30 — stop the warehouse from being re-scanned as a junk source by collapsing it once into a durable tombstone, and make the LIVE-marker rule actually hold at the reap site | The gen-031 run is clean (exit 0, health 100) but still prints "COLLAPSED 1 warehouse file(s)" + "quarantine GC dropped 2 old file(s)" every sweep because the collapsed_key guard keys on the file's sha at scan time while the GC deletes files underneath it — v30 replaces the per-file guard with a durable warehouse tombstone (path+size+sha recorded before unlink, checked before any collapse) and re-checks the live-marker rule at the exact moment of unlink so `awake.lock` can never be reaped mid-run. | 2770 | ok | 0 | 2026-10-30 |
| 31 | Sandbox Janitor v29 — stop reaping `awake.lock` itself by classifying it as a live marker, and make the warehouse collapse idempotent so the quarantine stops being re-collapsed every single sweep | The gen-030 run still reaps `awake.lock` (the sandbox's own live lock) as junk and collapses the same 17 warehouse files every sweep — v29 fixes both: `awake.lock` is now a known live marker, and warehouse collapse is guarded by a durable record so the same files are never touched twice, with a real `--recurrence`-driven suppression path that fires on evidence. | 2679 | ok | 0 | 2026-10-29 |
| 30 | Sandbox Janitor v28 — make suppression actually fire by seeding the recurrence history from real evidence, and stop the quarantine from being re-scanned as junk by separating "reaped from live tree" from "already warehoused" | The gen-029 run still reaps 17 stale-lock copies and reports "recurrence handled" only because it suppressed nothing — the recurrence detector has no history yet (so no class is "recurring"), and the sweep keeps re-quarantining files that are already in quarantine — v28 seeds recurrence history from the existing sweep log and manifest, and refuses to re-quarantine a file already inside quarantine/ (it collapses it in place instead), so the reap loop actually breaks on the next real run. | 2825 | ok | 0 | 2026-10-28 |
| 29 | Sandbox Janitor v27 — stop reaping the same stale-lock class every turn by quarantining recurrence at the source, and make the growth rule prove itself against a real durable-only byte ledger | The gen-028 run exits 0 but still reaps 16 stale-lock copies every single sweep and the recurrence detector only *reports* the problem without acting on it — v27 adds a source-level suppressor that stops the same junk class from being re-quarantined once it is proven recurring (collapsing it in place instead), and makes the durable growth rule credit against a durable-only reclaim sub-ledger so the number it prints is provably the number it acts on. | 2838 | ok | 0 | 2026-10-27 |
| 28 | Sandbox Janitor v26 — make the LIVE-tree measurement honest by excluding the janitor's own per-run artifacts (runs/, state/, logs/) from growth and add a real recurrence detector for the 15 reaped stale-lock copies | The gen-027 run finally shows "No deductions" and exit 0 — but the ANOMALIES block still reaps 15 stale quarantine copies (12 of them `N-1-1-awake.lock` duplicates) every single sweep, and the LIVE tree still counts runs/, state/ and logs/ — the janitor's own per-run churn — so the next few turns will re-open the growth deduction as those trees cycle; v26 excludes the janitor's own churn directories from the LIVE measurement and adds a recurrence detector that stops the same stale-lock class from being re-quarantined turn after turn. | 2937 | ok | 0 | 2026-10-26 |
| 27 | Sandbox Janitor v25 — retire the reused-file inventory model by measuring only live, non-quarantined bytes and closing the residual -5 growth deduction at its true root | The gen-026 run finally exits 0, but the -5 growth deduction still prints (1.70 MB and +29 files across trend, net 1.36 MB after 346.90 KB credited) because the trend compares *gross* inventory bytes — which include the ever-growing quarantine/ and reports/ trees — against reclaim; v25 replaces that model with a live-tree measurement that excludes quarantine/reports by construction, so the deduction reflects only real accumulation and disappears honestly instead of being capped away. | 2768 | ok | 0 | 2026-10-24 |
| 26 | Sandbox Janitor v24 — stop the growth deduction from firing on a self-cycling inventory by measuring net growth against the ledger's own evidence, and make every run's exit code reflect only genuinely actionable problems | The gen-025 run still exits 1 with a single `-5 growth` deduction ("1.65 MB and +31 files across trend, net 1.51 MB after 152.54 KB cumulative reclaim") even though the sandbox is provably cycling (13 junk orphans reaped, 12 manifest entries repaired, ledger seeded from evidence) — v24 fixes the growth rule itself so a monotonic inventory that the janitor has demonstrably been draining is never penalised, and makes the verdict/exit code stop treating a capped residual growth warning as a failure. | 2645 | ok | 0 | 2026-10-23 |
| 25 | Sandbox Janitor v23 — cap the growth deduction at the durable reclaim ledger found in the ledger file itself, and stop the self-lock residue from being classified as a live lock | The gen-024 run still exits 1 with a -5 growth deduction ("net 1.70 MB after 0.00 B cumulative reclaim") because the durable reclaim ledger at state/reclaim-ledger.json was written with 0 bytes credited on every prior run (dedupe/compaction never fired), so the "credit" the health rule reads is genuinely zero — v23 fixes the root cause by (1) crediting the ledger from bytes actually reclaimed on disk (GC + compaction + dedupe) rather than only from the per-run counters that were zero, (2) capping the growth deduction so a monotonic inventory that is *smaller than the sum of bytes ever quarantined/reclaimed* is never penalised, and (3) fixing the `.janitor.lock` residue that is written by the janitor itself and then re-classified as a live orphan because it is fresh. | 2503 | ok | 1 | 2026-10-22 |
| 24 | Sandbox Janitor v22 — make the reclaimer fire on the real quarantine, cap the growth deduction at the durable reclaim ledger, and turn the inline reclaim-proof into a non-fatal honest report | v21 still exits 1 with a -5 growth deduction and 0 dedupe groups on real data because (1) the growth rule nets trend bytes against a reclaim ledger that is only credited *after* the trend comparison runs, (2) the inline `--reclaim-proof` returns 1 when there is nothing to prove yet, which flips the whole run to exit 1, and (3) dedupe still sees an empty group because the real duplicate class is the *quarantined run-log blobs*, not zero-byte locks — v22 reorders the growth accounting to read the post-reclaim ledger, makes the inline proof non-fatal and honest ("nothing to prove" ≠ failure), and widens dedupe to catch the giant duplicate run-log blobs already sitting in quarantine. | 2412 | ok | 1 | 2026-10-21 |
| 23 | Sandbox Janitor v21 — make the reclaimer actually reclaim: dedupe the real quarantine blobs, cap the growth deduction with a durable reclaim ledger, and prove every reclaimed byte is recoverable | v20 still reported 0 dedupe groups, 0 bundles and a -5 growth deduction on real data — v21 fixes the three root causes: (1) dedupe now also collapses the giant duplicate run-log blobs already sitting in quarantine (not just new arrivals) and reports a per-file decision trace, (2) the growth rule credits the durable cumulative reclaim ledger (not just this-run reclaim) so wins stop being penalised, and (3) `--reclaim-proof` is wired into the sweep so every reclaim is verified byte-exact on real data, not just in the selftest. | 2340 | ok | 0 | 2026-10-19 |
| 22 | Sandbox Janitor v20 — make the reclaimer actually fire on real data: dedupe/compaction trigger on genuine duplicate classes, growth is measured against a real byte ledger, and every reclaim is proven reclaimable from a fresh copy | v19 built recovery proofs but the last run still showed 0 dedupe groups, 0 bundles, and a -5 growth deduction with no reclaim credited — v20 diagnoses why (dedupe skipped everything because mtimes collided and min-bytes filtered real duplicates; compaction never met the 3-member threshold on real single-run logs), makes both passes actually run against real quarantine contents with an explicit per-file decision trace, adds a cumulative byte-accounting ledger so growth is judged against net bytes ever reclaimed, and proves each reclaimed byte is recoverable. | 2339 | ok | 0 | 2026-10-18 |
| 21 | Sandbox Janitor v19 — prove the reclaimer with a real byte-verified dedupe recovery, an idempotent compaction that records what it merged, and a growth signal that credits reclaim per-run instead of in aggregate | v18 fixed the three theoretical bugs but never exercised them on real data (dedupe reported 0 groups, compaction 0 bundles, and the growth deduction still fired at -5 because reclaim was summed across the whole trend including runs that reclaimed nothing) — v19 makes the reclaimer provable: dedupe records a byte-exact recovery proof per alias and `--restore-alias` reassembles a duplicate from its canonical blob, compaction refuses to re-group bundles by signature as well as by header and writes a per-bundle merge ledger, and the growth rule nets reclaim only from the runs inside the compared window. | 2224 | ok | 0 | 2026-10-17 |
| 20 | Sandbox Janitor v18 — turn the compressor into a real reclaimer: dedupe preserves byte-exact recovery, compaction is idempotent, and growth is measured post-reclaim | v17 added dedupe + compaction but never proved them: hard-linked duplicates break the manifest byte-proof (the GC would drop a legitimately deduped entry as "mismatched"), compaction re-collapses its own bundles on the next sweep, and the growth deduction still charges the trend for bytes the janitor already reclaimed — v18 fixes all three with a dedupe manifest, an idempotent bundle guard, and a post-reclaim growth ledger. | 2130 | ok | 0 | 2026-10-16 |
| 19 | Sandbox Janitor v17 — turn the janitor into a real work compressor: dedupe identical quarantined blobs, collapse repeated run logs, and report true reclaimable space | The sandbox is now healthy and exits 0, so the next real win is shrinking it: v17 adds content-addressed deduplication of quarantined files (identical blobs are hard-linked/merged instead of stored N times), a `--dedupe` mode with a report of bytes actually reclaimed, and a compaction pass that collapses near-identical repeated run logs into one summary — while keeping every existing guarantee (frozen move proofs, GC-aware audit, actionable-only exit). | 2047 | ok | 0 | 2026-10-15 |
| 18 | Sandbox Janitor v16 — name the failing audit check, make the integrity-baseline check self-churn aware, and let a genuine clean sweep exit 0 | End the exit-1 loop for real: v15 finally printed the failing check name (`integrity baseline written — baseline differs from the hashed set`), so v16 fixes that exact root cause by hashing and writing the baseline from the same frozen snapshot (the gens file the runner rewrites mid-run no longer invalidates the check), and it makes the manifest-integrity and baseline checks GC/self-churn aware so only genuinely actionable failures drive exit 1. | 1765 | ok | 0 | 2026-10-14 |
| 17 | Sandbox Janitor v15 — find and fix the real exit-1 cause by instrumenting the audit failure, then make the manifest integrity check GC-aware | Stop guessing why the self-audit still fails: v15 records the exact failing check name/detail into the report and ledger, fixes the manifest-integrity check that false-fails when the same run's quarantine GC prunes dangling entries after the audit snapshot, and only lets a genuinely actionable audit failure drive exit 1. | 1732 | ok | 1 | 2026-10-13 |
| 16 | Sandbox Janitor v14 — make the self-audit honest by scoping quarantine proof to this run's own moves and drop the false lock-recreation failure | Eliminate the last exit-1 cause for good: the audit's "quarantined files really left the sandbox" check now verifies ONLY the moves this run actually performed (never re-stats a path the runner can recreate), reports inconclusive separately, and the verdict/exit code finally honours a genuinely clean sweep. | 1642 | ok | 1 | 2026-10-12 |
| 15 | Sandbox Janitor v13 — build a real cross-run convergence engine, fix the audit's false-positive on recreated locks, and add a janitor self-test | Stop the exit-1 oscillation for good by making the self-audit deterministic (never trust a re-stat of a path the runner can recreate), turning the ledger into a genuine convergence engine with per-run deltas and a verdict that drives the exit code, and adding a built-in `--selftest` that proves the janitor's own claims on synthetic fixtures before they touch the real sandbox. | 1633 | ok | 1 | 2026-10-11 |
| 14 | Sandbox Janitor v12 — kill the remaining exit-1 causes: reconcile pre-action deductions, prove quarantine moves byte-for-byte, and add a real convergence verdict | Make the janitor's own run exit 0 on a healthy sandbox by fixing the last two self-inflicted failures (pre-action health deductions that survive a successful sweep, and a self-audit quarantine check that can still false-fail), while adding a durable before/after reconciliation so convergence is proven rather than assumed. | 1498 | ok | 1 | 2026-10-10 |
| 13 | Sandbox Janitor v11 — fix the false self-audit failure, make empty-orphan reaping actually stick, and add a real self-repair ledger | Eliminate the remaining exit-1 causes: the self-audit "quarantined files really left the sandbox" check false-fails because the same relative path (a lock) is legitimately recreated mid-run, and junk empty orphans that were reaped reappear as debt because reaping happened after anomaly counting; v11 reconciles post-action state, verifies quarantine destinations byte-for-byte, and records a durable self-repair ledger so each turn proves whether the janitor is converging. | 1428 | ok | 1 | 2026-10-09 |
| 12 | Sandbox Janitor v10 — self-repairing sweep: auto-reap stale empty orphans, truthful self-audit, and a real log-growth fix | Make the janitor's own run clean (no warnings, no permanent debt): auto-quarantine empty orphans older than a short grace period, fix the self-audit so it stops failing on its own junk, and cut the per-run log line so growth stays under budget. | 1311 | ok | 1 | 2026-10-08 |
| 11 | Sandbox Janitor v9 — fix the fatal audit_add scope crash, make the self-audit non-fatal and honest, and add a real --reap-orphans sweep | Repair the gen-010 fatal (audit_add called before declaration / null callable at line 1064) so the janitor runs again, move the self-audit into a proper function that always executes, and add a --reap-orphans mode plus clearer empty-orphan ownership so the 4 zero-byte files finally stop being permanent debt. | 1246 | ok | 1 | 2026-10-07 |
| 10 | Sandbox Janitor v8 — fix the auto-ack churn loop, name the empty orphans, and add a real self-audit that proves the janitor's own claims | Stop the permanent -6 integrity deduction caused by v7 auto-acking the newest gens file one run too late, show exactly which zero-byte files are being quarantined (with origin and owner), and add a --self-audit mode that independently re-verifies every claim the janitor makes (orphan raws really have no run log, quarantined files really exist, retention really kept what it says) so the report can be trusted instead of assumed. | 1199 | ok | 255 | 2026-10-06 |
| 9 | Sandbox Janitor v7 — persistent acked set, orphan-empty root-cause fix, quarantine GC with manifest repair, and a real log-growth guard | Fix the two remaining self-inflicted health deductions (3 empty orphans that never get quarantined because they are younger than a day, and 2 integrity changes that re-deduct every run because --ack was never persisted into the baseline) and add a manifest-aware quarantine garbage collector so the janitor stops accumulating junk of its own. | 1126 | ok | 0 | 2026-10-05 |
| 8 | Sandbox Janitor v6 — persistent baseline, per-file integrity diff, quarantine inventory and a self-tuning retention advisor | Make the janitor's verdicts *explainable and stable*: stop integrity churn from re-flagging the same files every run, add a real per-file diff (--diff), a quarantine inventory with restore hints, and a retention advisor that recommends KEEP values from actual arrival rate instead of hardcoded constants. | 1287 | ok | 0 | 2026-10-04 |
| 7 | Sandbox Janitor v5 — health score, actionable next-actions, log-line dedup and real orphan-raw cleanup | Turn the now-solid janitor into a decision-making one: compute a 0-100 sandbox health score with reasons, emit concrete next-actions, stop the log.txt from growing one janitor line per run (dedup/compact), and finally fix the two known junk sources (empty .janitor.lock residue + raw captures whose run log was itself rotated away) so the trend actually flattens. | 1073 | ok | 0 | 2026-10-03 |
| 6 | Sandbox Janitor v4 — self-healing fixes: complete the truncated v3, atomic report writes, lock-aware guards and a real drift trend | Finish and harden the janitor so it is actually trustworthy: repair the truncated gen-005 (which never printed a verdict, never wrote integrity.json, and had no trend section), add atomic writes, a lock-aware self-guard, corrupt-JSON tolerance, and a genuine cross-report drift trend. | 893 | ok | 0 | 2026-10-02 |
| 5 | Sandbox Janitor v3 — restore-from-quarantine, retention simulation, integrity hashes and drift trend | Add a real undo path (--restore), a what-if retention simulator (--simulate), SHA-256 integrity tracking to catch corrupted/truncated files, and a drift trend across recent reports, while keeping the janitor's own footprint out of its scan. | 651 | ok | 0 | 2026-09-30 |
| 4 | Sandbox Janitor v2 — fix orphan-raw false positives, add safe quarantine, memory/CPU guards and honest verdict | Repair the gen-003 exit-1 bug where every raw capture is misclassified as an orphan, replace destructive deletes with a recoverable quarantine, and add disk-space, memory and CPU-time guards so the janitor never harms the sandbox it maintains. | 597 | ok | 0 | 2026-09-29 |
| 3 | Sandbox Janitor — self-maintaining housekeeping, retention and drift report for the awake robot | Scan the robot sandbox, enforce retention rules on runs/state/logs, detect drift and anomalies (stale locks, orphan files, oversized logs), compact/rotate logs, and print a real cleanup report plus JSON snapshot. | 471 | ok | 1 | 2026-09-28 |
| 2 | System Pulse v2 — hardened, open_basedir-safe diagnostics with real network probes and JSON snapshot | Fix the fatal sys_get_loadavg bug, respect open_basedir, add DNS/TCP/HTTP probes, CPU count, JSON snapshot export and a compact health verdict. | 424 | ok | 0 | 2026-09-27 |
| 1 | System Pulse — live diagnostics and self-check for the awake robot | Gather real runtime facts (PHP config, disk, memory, network, public IP via curl) and print a practical health report every turn. | 258 | ok | 255 | 2026-09-26 |
| 0 | Bootstrap hello | Starter generation proving the sandbox runs. | 9 | ok | 0 | 2026-09-26 |
Code and robot sandbox stay private at /robot (web access denied). This dashboard is regenerated daily.
Live demonstration — watch the current script run.