Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: doctor goldens show the not-yet-compacted receipt bytes the housekeeping target counts

garrytan34e65553e2e2
diff --git a/test/fixtures/goldens/doctor/content-pglite-human.json b/test/fixtures/goldens/doctor/content-pglite-human.json
index 4b30cc0ada..49eddee734 100644
--- a/test/fixtures/goldens/doctor/content-pglite-human.json
+++ b/test/fixtures/goldens/doctor/content-pglite-human.json
@@ -54,7 +54,7 @@
" [INFO] harness_wiring: No agent harness was detected. Wire one when the user picks an agent app.",
" [OK] agent_contract: No agent dead ends in the last 7 days (0 non-success event(s) logged).",
" [OK] connection: Connected, 5 pages",
- " [OK] persistence_capacity: No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 115490 reserved bytes, under the housekeeping target of 8589934592.",
+ " [OK] persistence_capacity: No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 115490 reserved bytes, and receipts not yet compacted are under the housekeeping target of 8589934592.",
" [OK] persistence_terminal_failures: No terminal write failures in the last 7 d.",
" [OK] managed_sync_not_moving: No managed sync is pending.",
" [OK] managed_sync_blocked: No managed sync run is blocked.",
diff --git a/test/fixtures/goldens/doctor/content-pglite-json.json b/test/fixtures/goldens/doctor/content-pglite-json.json
index 493dd6e5a2..4dab360a51 100644
--- a/test/fixtures/goldens/doctor/content-pglite-json.json
+++ b/test/fixtures/goldens/doctor/content-pglite-json.json
@@ -498,6 +498,7 @@
"window_days": 1
},
"housekeeping": {
+ "compactable_bytes": null,
"explicit_retention_days": null,
"over_target": false,
"target_bytes": 8589934592,
@@ -511,7 +512,7 @@
"verify": "gbrain doctor --only persistence_capacity --json"
},
"elapsed_ms": "<volatile>",
- "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 115490 reserved bytes, under the housekeeping target of 8589934592.",
+ "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 115490 reserved bytes, and receipts not yet compacted are under the housekeeping target of 8589934592.",
"name": "persistence_capacity",
"status": "ok"
},
diff --git a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
index 06cda5126b..335891d480 100644
--- a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
@@ -499,6 +499,7 @@
"window_days": 1
},
"housekeeping": {
+ "compactable_bytes": null,
"explicit_retention_days": null,
"over_target": false,
"target_bytes": 8589934592,
@@ -512,7 +513,7 @@
"verify": "gbrain doctor --only persistence_capacity --json"
},
"elapsed_ms": "<volatile>",
- "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 197727 reserved bytes, under the housekeeping target of 8589934592.",
+ "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 197727 reserved bytes, and receipts not yet compacted are under the housekeeping target of 8589934592.",
"name": "persistence_capacity",
"status": "ok"
},
@@ -5505,6 +5506,7 @@
"window_days": 1
},
"housekeeping": {
+ "compactable_bytes": null,
"explicit_retention_days": null,
"over_target": false,
"target_bytes": 8589934592,
@@ -5518,7 +5520,7 @@
"verify": "gbrain doctor --only persistence_capacity --json"
},
"elapsed_ms": "<volatile>",
- "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 197727 reserved bytes, under the housekeeping target of 8589934592.",
+ "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 197727 reserved bytes, and receipts not yet compacted are under the housekeeping target of 8589934592.",
"name": "persistence_capacity",
"status": "ok"
},
diff --git a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
index 47ae41aad6..4a9fe16696 100644
--- a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
@@ -493,6 +493,7 @@
"window_days": 1
},
"housekeeping": {
+ "compactable_bytes": null,
"explicit_retention_days": null,
"over_target": false,
"target_bytes": 8589934592,
@@ -506,7 +507,7 @@
"verify": "gbrain doctor --only persistence_capacity --json"
},
"elapsed_ms": "<volatile>",
- "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 198780 reserved bytes, under the housekeeping target of 8589934592.",
+ "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 198780 reserved bytes, and receipts not yet compacted are under the housekeeping target of 8589934592.",
"name": "persistence_capacity",
"status": "ok"
},
@@ -5500,6 +5501,7 @@
"window_days": 1
},
"housekeeping": {
+ "compactable_bytes": null,
"explicit_retention_days": null,
"over_target": false,
"target_bytes": 8589934592,
@@ -5513,7 +5515,7 @@
"verify": "gbrain doctor --only persistence_capacity --json"
},
"elapsed_ms": "<volatile>",
- "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 198780 reserved bytes, under the housekeeping target of 8589934592.",
+ "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 198780 reserved bytes, and receipts not yet compacted are under the housekeeping target of 8589934592.",
"name": "persistence_capacity",
"status": "ok"
},
diff --git a/test/fixtures/goldens/doctor/json-pglite-degraded.json b/test/fixtures/goldens/doctor/json-pglite-degraded.json
index 567e119b94..0bc70ef7a0 100644
--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json
+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json
@@ -480,6 +480,7 @@
"window_days": 1
},
"housekeeping": {
+ "compactable_bytes": null,
"explicit_retention_days": null,
"over_target": false,
"target_bytes": 8589934592,
@@ -493,7 +494,7 @@
"verify": "gbrain doctor --only persistence_capacity --json"
},
"elapsed_ms": "<volatile>",
- "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 19163 reserved bytes, under the housekeeping target of 8589934592.",
+ "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 19163 reserved bytes, and receipts not yet compacted are under the housekeeping target of 8589934592.",
"name": "persistence_capacity",
"status": "ok"
},
diff --git a/test/fixtures/goldens/doctor/json-pglite-fresh.json b/test/fixtures/goldens/doctor/json-pglite-fresh.json
index 1022bd152a..0d490b9829 100644
--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json
+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.json
@@ -483,6 +483,7 @@
"window_days": 1
},
"housekeeping": {
+ "compactable_bytes": null,
"explicit_retention_days": null,
"over_target": false,
"target_bytes": 8589934592,
@@ -496,7 +497,7 @@
"verify": "gbrain doctor --only persistence_capacity --json"
},
"elapsed_ms": "<volatile>",
- "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 19163 reserved bytes, under the housekeeping target of 8589934592.",
+ "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 19163 reserved bytes, and receipts not yet compacted are under the housekeeping target of 8589934592.",
"name": "persistence_capacity",
"status": "ok"
},
diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.json
index 41445e52cb..288bc5ca65 100644
--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json
+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json
@@ -477,6 +477,7 @@
"window_days": 1
},
"housekeeping": {
+ "compactable_bytes": null,
"explicit_retention_days": null,
"over_target": false,
"target_bytes": 8589934592,
@@ -490,7 +491,7 @@
"verify": "gbrain doctor --only persistence_capacity --json"
},
"elapsed_ms": "<volatile>",
- "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 19163 reserved bytes, under the housekeeping target of 8589934592.",
+ "message": "No cumulative write cap is set (the default), so receipt storage never refuses or pauses a write; it holds 19163 reserved bytes, and receipts not yet compacted are under the housekeeping target of 8589934592.",
"name": "persistence_capacity",
"status": "ok"
},