Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: regenerate doctor goldens for the integrated #6803 wave

garrytan41e4ed1be7e5
diff --git a/test/fixtures/goldens/doctor/content-pglite-human.json b/test/fixtures/goldens/doctor/content-pglite-human.json
index b51f7c2023..22246ff246 100644
--- a/test/fixtures/goldens/doctor/content-pglite-human.json
+++ b/test/fixtures/goldens/doctor/content-pglite-human.json
@@ -61,6 +61,11 @@
" [OK] serve_build_drift: PGLite admits one process; no consumer heartbeat rows are kept to compare builds.",
" [OK] schema_pack_consistency: All pages match the active schema pack across every source.",
" [INFO] embedding_state: Embedding state (exact, column 'embedding'): 0 embedded, 7 pending, 0 keyword-only, 0 quarantined, 0 empty, 0 on deleted pages, 0 chunkless (healable); 0 unsearchable. Embeddings are disabled by choice: keyword search reads the pending chunks.",
+ " [OK] links_extraction_lag: Extraction lag not applicable (5 pages — too few to assess)",
+ " [OK] oversized_pages: No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
+ " [OK] scraper_junk_pages: No junk-pattern hits in 5 recent page(s) (use --content-audit for full scan)",
+ " [OK] content_sanity_audit_recent: No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ " [OK] partial_embedding: No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
" [OK] pgvector: Extension installed",
" [OK] pages_upsert_arbiter: pages has the UNIQUE(source_id, slug) upsert arbiter",
" [OK] text_projection_readiness: Visible text projections match their canonical revisions.",
@@ -134,10 +139,6 @@
" [OK] cross_modal_modality_backfill: All image-asset chunks have modality=image",
" [OK] unified_multimodal_coverage: search.unified_multimodal is off; coverage check N/A",
" [OK] markdown_body_completeness: No truncated bodies detected",
- " [OK] oversized_pages: No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
- " [OK] scraper_junk_pages: No junk-pattern hits in 5 recent page(s) (use --content-audit for full scan)",
- " [OK] content_sanity_audit_recent: No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- " [OK] partial_embedding: No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
" [OK] quarantined_pages: No quarantined pages",
" [OK] flagged_pages: No flagged pages",
" [OK] unverified_extractions: No stale unverified extraction stubs",
@@ -169,7 +170,6 @@
" [OK] canonical_content_writes: 1 writer-owned content source(s); no pending canonical publication or recovery.",
" [INFO] backup_coverage: Not urgent yet: the brain holds 5 page(s)+fact(s) and is under 7 days old (backup coaching starts at 25 items or 7 days). 2 knowledge asset(s) lack verified recovery: default (not_a_git_repo), notes (no git remote). A source repo with a pushed git remote restores its Markdown files only, never DB-only pages, facts, config or credentials. Run `gbrain backup status` for each asset's fix command.",
" [OK] sync_consolidation: 2 active sources on a managed brain. Recommended cron on the owner host, every 15 minutes: `gbrain sync --all --no-pull --hard-deadline 13m`. Managed sync never pulls: for each checkout that tracks a remote, chain `gbrain sources refresh <id>;` in front of it to take upstream commits. Keep the deadline under the interval: managed sync takes no per-source lock, so a tick that outlives the interval would overlap the next one.",
- " [OK] links_extraction_lag: Extraction lag not applicable (5 pages — too few to assess)",
" [INFO] cycle_freshness: No full cycle yet for 'default', 'notes': they hold no pages or only pages from the last 24h, so there is nothing to consolidate yet.",
" [OK] content_hash_duplicates: No same-source content-hash duplicate groups",
" [OK] code_chunk_metadata: All code-page chunks carry symbol metadata",
diff --git a/test/fixtures/goldens/doctor/content-pglite-json.json b/test/fixtures/goldens/doctor/content-pglite-json.json
index a4c89a6414..ca15940072 100644
--- a/test/fixtures/goldens/doctor/content-pglite-json.json
+++ b/test/fixtures/goldens/doctor/content-pglite-json.json
@@ -9,6 +9,7 @@
"exit_code": 1,
"report": {
"brain_checks_score": 60,
+ "budget_ms": "<volatile>",
"capped_by": [
"embeddings_disabled"
],
@@ -823,6 +824,41 @@
"severity": "info",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "Extraction lag not applicable (5 pages — too few to assess)",
+ "name": "links_extraction_lag",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
+ "name": "oversized_pages",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No junk-pattern hits in 5 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
+ "status": "ok"
+ },
{
"category": "ops",
"elapsed_ms": "<volatile>",
@@ -1753,34 +1789,6 @@
"name": "markdown_body_completeness",
"status": "ok"
},
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
- "name": "oversized_pages",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 5 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
- "name": "partial_embedding",
- "status": "ok"
- },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -2243,13 +2251,6 @@
"name": "sync_consolidation",
"status": "ok"
},
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "Extraction lag not applicable (5 pages — too few to assess)",
- "name": "links_extraction_lag",
- "status": "ok"
- },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -3360,11 +3361,14 @@
"status": "ok"
}
],
+ "complete": true,
"db_url_source": null,
+ "elapsed_ms": "<volatile>",
"engine": "pglite",
"health_score": 55,
"schema_version": 2,
"status": "unhealthy",
+ "tier": "standard",
"top_issues": [
{
"action": {
@@ -3516,9 +3520,11 @@
"status": "warn",
"tier": "symptom"
}
- ]
+ ],
+ "unknown_sections": []
},
"stderr": [
+ "[gbrain doctor] non-interactive run: the check run (not connect or migrations) is capped at 90000 ms (doctor.default_budget_ms); checks past it report health unknown. Off for one run: --budget-ms 0; off for good: gbrain config set doctor.default_budget_ms 0. On PGLite a statement already running cannot be stopped, so a check can finish late.",
"[backup] checked 2 asset(s): 1 without a git remote (computed_by=doctor)"
],
"stdout": "<json>"
diff --git a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
index 015174fed3..75601855d7 100644
--- a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
@@ -10,6 +10,7 @@
"exit_code": 1,
"report": {
"brain_checks_score": 45,
+ "budget_ms": "<volatile>",
"capped_by": [
"embeddings_disabled"
],
@@ -845,6 +846,41 @@
"severity": "info",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "Extraction lag not applicable (20 pages — too few to assess); 1 page(s) pending link extraction (gbrain extract --stale finishes them)",
+ "name": "links_extraction_lag",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
+ "name": "oversized_pages",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
+ "status": "ok"
+ },
{
"category": "ops",
"elapsed_ms": "<volatile>",
@@ -1921,34 +1957,6 @@
"name": "markdown_body_completeness",
"status": "ok"
},
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
- "name": "oversized_pages",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
- "name": "partial_embedding",
- "status": "ok"
- },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -2404,13 +2412,6 @@
"name": "sync_consolidation",
"status": "ok"
},
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "Extraction lag not applicable (20 pages — too few to assess); 1 page(s) pending link extraction (gbrain extract --stale finishes them)",
- "name": "links_extraction_lag",
- "status": "ok"
- },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -3695,11 +3696,14 @@
"status": "ok"
}
],
+ "complete": true,
"db_url_source": null,
+ "elapsed_ms": "<volatile>",
"engine": "pglite",
"health_score": 35,
"schema_version": 2,
"status": "unhealthy",
+ "tier": "standard",
"top_issues": [
{
"action": {
@@ -3995,9 +3999,11 @@
"status": "warn",
"tier": "symptom"
}
- ]
+ ],
+ "unknown_sections": []
},
"stderr": [
+ "[gbrain doctor] non-interactive run: the check run (not connect or migrations) is capped at 90000 ms (doctor.default_budget_ms); checks past it report health unknown. Off for one run: --budget-ms 0; off for good: gbrain config set doctor.default_budget_ms 0. On PGLite a statement already running cannot be stopped, so a check can finish late.",
"[backup] checked 3 asset(s): 1 without a git remote (computed_by=doctor)"
],
"stdout": "<json>"
@@ -4012,6 +4018,7 @@
"exit_code": 1,
"report": {
"brain_checks_score": 45,
+ "budget_ms": "<volatile>",
"capped_by": [
"embeddings_disabled"
],
@@ -4847,6 +4854,41 @@
"severity": "info",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "Extraction lag not applicable (20 pages — too few to assess); 1 page(s) pending link extraction (gbrain extract --stale finishes them)",
+ "name": "links_extraction_lag",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
+ "name": "oversized_pages",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
+ "status": "ok"
+ },
{
"category": "ops",
"elapsed_ms": "<volatile>",
@@ -5923,34 +5965,6 @@
"name": "markdown_body_completeness",
"status": "ok"
},
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
- "name": "oversized_pages",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
- "name": "partial_embedding",
- "status": "ok"
- },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -6406,13 +6420,6 @@
"name": "sync_consolidation",
"status": "ok"
},
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "Extraction lag not applicable (20 pages — too few to assess); 1 page(s) pending link extraction (gbrain extract --stale finishes them)",
- "name": "links_extraction_lag",
- "status": "ok"
- },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -7697,11 +7704,14 @@
"status": "ok"
}
],
+ "complete": true,
"db_url_source": null,
+ "elapsed_ms": "<volatile>",
"engine": "pglite",
"health_score": 35,
"schema_version": 2,
"status": "unhealthy",
+ "tier": "standard",
"top_issues": [
{
"action": {
@@ -7997,9 +8007,12 @@
"status": "warn",
"tier": "symptom"
}
- ]
+ ],
+ "unknown_sections": []
},
- "stderr": [],
+ "stderr": [
+ "[gbrain doctor] non-interactive run: the check run (not connect or migrations) is capped at 90000 ms (doctor.default_budget_ms); checks past it report health unknown. Off for one run: --budget-ms 0; off for good: gbrain config set doctor.default_budget_ms 0. On PGLite a statement already running cannot be stopped, so a check can finish late."
+ ],
"stdout": "<json>"
}
},
diff --git a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
index 6fa51f1548..c0578374e0 100644
--- a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
@@ -10,6 +10,7 @@
"exit_code": 1,
"report": {
"brain_checks_score": 45,
+ "budget_ms": "<volatile>",
"capped_by": [
"embeddings_disabled"
],
@@ -841,6 +842,41 @@
"severity": "info",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "Extraction lag not applicable (20 pages — too few to assess); 1 page(s) pending link extraction (gbrain extract --stale finishes them)",
+ "name": "links_extraction_lag",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
+ "name": "oversized_pages",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
+ "status": "ok"
+ },
{
"category": "ops",
"elapsed_ms": "<volatile>",
@@ -1926,34 +1962,6 @@
"name": "markdown_body_completeness",
"status": "ok"
},
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
- "name": "oversized_pages",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
- "name": "partial_embedding",
- "status": "ok"
- },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -2408,13 +2416,6 @@
"name": "sync_consolidation",
"status": "ok"
},
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "Extraction lag not applicable (20 pages — too few to assess); 1 page(s) pending link extraction (gbrain extract --stale finishes them)",
- "name": "links_extraction_lag",
- "status": "ok"
- },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -3696,11 +3697,14 @@
"status": "ok"
}
],
+ "complete": true,
"db_url_source": null,
+ "elapsed_ms": "<volatile>",
"engine": "postgres",
"health_score": 35,
"schema_version": 2,
"status": "unhealthy",
+ "tier": "standard",
"top_issues": [
{
"action": {
@@ -3996,9 +4000,11 @@
"status": "warn",
"tier": "symptom"
}
- ]
+ ],
+ "unknown_sections": []
},
"stderr": [
+ "[gbrain doctor] non-interactive run: the check run (not connect or migrations) is capped at 90000 ms (doctor.default_budget_ms); checks past it report health unknown. Off for one run: --budget-ms 0; off for good: gbrain config set doctor.default_budget_ms 0. On PGLite a statement already running cannot be stopped, so a check can finish late.",
"[backup] checked 3 asset(s): 1 without a git remote (computed_by=doctor)"
],
"stdout": "<json>"
@@ -4013,6 +4019,7 @@
"exit_code": 1,
"report": {
"brain_checks_score": 45,
+ "budget_ms": "<volatile>",
"capped_by": [
"embeddings_disabled"
],
@@ -4844,6 +4851,41 @@
"severity": "info",
"status": "ok"
},
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "Extraction lag not applicable (20 pages — too few to assess); 1 page(s) pending link extraction (gbrain extract --stale finishes them)",
+ "name": "links_extraction_lag",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
+ "name": "oversized_pages",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
+ "status": "ok"
+ },
+ {
+ "category": "brain",
+ "elapsed_ms": "<volatile>",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
+ "status": "ok"
+ },
{
"category": "ops",
"elapsed_ms": "<volatile>",
@@ -5929,34 +5971,6 @@
"name": "markdown_body_completeness",
"status": "ok"
},
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
- "name": "oversized_pages",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
- "status": "ok"
- },
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
- "name": "partial_embedding",
- "status": "ok"
- },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -6411,13 +6425,6 @@
"name": "sync_consolidation",
"status": "ok"
},
- {
- "category": "brain",
- "elapsed_ms": "<volatile>",
- "message": "Extraction lag not applicable (20 pages — too few to assess); 1 page(s) pending link extraction (gbrain extract --stale finishes them)",
- "name": "links_extraction_lag",
- "status": "ok"
- },
{
"category": "brain",
"elapsed_ms": "<volatile>",
@@ -7699,11 +7706,14 @@
"status": "ok"
}
],
+ "complete": true,
"db_url_source": null,
+ "elapsed_ms": "<volatile>",
"engine": "postgres",
"health_score": 35,
"schema_version": 2,
"status": "unhealthy",
+ "tier": "standard",
"top_issues": [
{
"action": {
@@ -7999,9 +8009,12 @@
"status": "warn",
"tier": "symptom"
}
- ]
+ ],
+ "unknown_sections": []
},
- "stderr": [],
+ "stderr": [
+ "[gbrain doctor] non-interactive run: the check run (not connect or migrations) is capped at 90000 ms (doctor.default_budget_ms); checks past it report health unknown. Off for one run: --budget-ms 0; off for good: gbrain config set doctor.default_budget_ms 0. On PGLite a statement already running cannot be stopped, so a check can finish late."
+ ],
"stdout": "<json>"
}
},
diff --git a/test/fixtures/goldens/doctor/json-pglite-degraded.json b/test/fixtures/goldens/doctor/json-pglite-degraded.json
index ba7335cc93..14f368eaaf 100644
--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json
+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json
@@ -765,22 +765,22 @@
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No large page is held or capped by embed.max_usd_per_page.",
- "name": "partial_embedding",
+ "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
"status": "ok"
},
{
diff --git a/test/fixtures/goldens/doctor/json-pglite-fresh.json b/test/fixtures/goldens/doctor/json-pglite-fresh.json
index c02b33f001..574d825765 100644
--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json
+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.json
@@ -812,22 +812,22 @@
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No large page is held or capped by embed.max_usd_per_page.",
- "name": "partial_embedding",
+ "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
"status": "ok"
},
{
diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.json
index 8449d0cb6d..84aac33727 100644
--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json
+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json
@@ -808,22 +808,22 @@
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No large page is held or capped by embed.max_usd_per_page.",
- "name": "partial_embedding",
+ "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
"status": "ok"
},
{
diff --git a/test/fixtures/goldens/doctor/registry-build-checks.json b/test/fixtures/goldens/doctor/registry-build-checks.json
index d895588ea7..6b9074b4d1 100644
--- a/test/fixtures/goldens/doctor/registry-build-checks.json
+++ b/test/fixtures/goldens/doctor/registry-build-checks.json
@@ -295,15 +295,15 @@
},
{
"category": "brain",
- "name": "partial_embedding"
+ "name": "scraper_junk_pages"
},
{
"category": "brain",
- "name": "scraper_junk_pages"
+ "name": "content_sanity_audit_recent"
},
{
"category": "brain",
- "name": "content_sanity_audit_recent"
+ "name": "partial_embedding"
},
{
"category": "ops",