Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(doctor): foreign_writers in the Postgres doctor goldens

garrytan28d436f9a12a
diff --git a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
index c988b3b518..5af4462e01 100644
--- a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
@@ -2964,6 +2964,70 @@
"name": "tracked_ownership_marker",
"status": "ok"
},
+ {
+ "category": "brain",
+ "details": {
+ "dirty": [
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fences/deterministic.md",
+ "state": "modified"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fences/untracked.md",
+ "state": "untracked"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fm/image.png",
+ "state": "untracked"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fm/null-bytes.md",
+ "state": "untracked"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fm/null-in-frontmatter.md",
+ "state": "untracked"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fm/untracked-yaml.md",
+ "state": "untracked"
+ }
+ ],
+ "dirty_count": 6,
+ "dirty_warn_after_minutes": 30,
+ "foreign": [],
+ "partial": false,
+ "unconfirmed": [],
+ "unknown": [],
+ "window": [
+ {
+ "common": "<home>/notes-src/.git",
+ "from": null,
+ "ledger": false,
+ "ledger_start": null,
+ "oldest_reflog": "<ts>",
+ "to": "<ts>",
+ "uncovered": 4
+ }
+ ]
+ },
+ "elapsed_ms": "<volatile>",
+ "message": "Every locally created commit in the covered window of 1 repository is in gbrain's commit ledger, and no page file waits uncommitted for more than 30 minutes. A repository gbrain has not committed in yet has no ledger, so its window is empty.",
+ "name": "foreign_writers",
+ "status": "ok"
+ },
{
"category": "ops",
"elapsed_ms": "<volatile>",
@@ -7937,6 +8001,82 @@
"name": "tracked_ownership_marker",
"status": "ok"
},
+ {
+ "category": "brain",
+ "details": {
+ "dirty": [
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fences/deterministic.md",
+ "state": "modified"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fm/image.png",
+ "state": "untracked"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fm/null-bytes.md",
+ "state": "untracked"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fm/null-in-frontmatter.md",
+ "state": "untracked"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fm/untracked-yaml.md",
+ "state": "untracked"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fences/late.md",
+ "state": "untracked"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fences/untracked.md",
+ "state": "untracked"
+ },
+ {
+ "age_ms": "<volatile>",
+ "checkout": "<home>/notes-src",
+ "path": "fm/late-broken.md",
+ "state": "untracked"
+ }
+ ],
+ "dirty_count": 8,
+ "dirty_warn_after_minutes": 30,
+ "foreign": [],
+ "partial": false,
+ "unconfirmed": [],
+ "unknown": [],
+ "window": [
+ {
+ "common": "<home>/notes-src/.git",
+ "from": null,
+ "ledger": false,
+ "ledger_start": null,
+ "oldest_reflog": "<ts>",
+ "to": "<ts>",
+ "uncovered": 4
+ }
+ ]
+ },
+ "elapsed_ms": "<volatile>",
+ "message": "Every locally created commit in the covered window of 1 repository is in gbrain's commit ledger, and no page file waits uncommitted for more than 30 minutes. A repository gbrain has not committed in yet has no ledger, so its window is empty.",
+ "name": "foreign_writers",
+ "status": "ok"
+ },
{
"category": "ops",
"elapsed_ms": "<volatile>",
diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.json
index 303d5cb3cb..85da325630 100644
--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json
+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json
@@ -2526,6 +2526,15 @@
"name": "tracked_ownership_marker",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "Not applicable: no registered source on this host is a Git checkout, so there are no commits to attribute (the database is the record on a repo-less brain).",
+ "name": "foreign_writers",
+ "readiness_state": "not_applicable",
+ "severity": "info",
+ "status": "ok"
+ },
{
"category": "ops",
"elapsed_ms": "<volatile>",