Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: privacy sweep classifies get_brain_health; route and content goldens gain /admin/api/ops and the ops sections (#6696 B2)
garrytan2664cf50c213
diff --git a/test/fixtures/goldens/doctor/content-pglite-human.json b/test/fixtures/goldens/doctor/content-pglite-human.jsonindex e5badca55c..ae61ff5e41 100644--- a/test/fixtures/goldens/doctor/content-pglite-human.json+++ b/test/fixtures/goldens/doctor/content-pglite-human.json@@ -53,10 +53,16 @@" [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: Managed write capacity is below 80% of every cumulative limit.",+ " [OK] persistence_terminal_failures: No terminal write failures in the last 7 d.",+ " [OK] managed_sync_not_moving: No managed sync is pending.",+ " [INFO] receipt_compaction: No receipt compaction recorded yet (persistence.maintenance.last_compaction is unset): the persistence consumer records one after it compacts.",+ " [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] 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.",- " [OK] persistence_capacity: Managed write capacity is below 80% of every cumulative limit."," [OK] parked_effects: No Git or withdrawal effect is parked."," [OK] worktree_refresh_stuck: No worktree refresh is stuck."," [OK] managed_guard_schema_drift: Guarded tables carry only the columns gbrain creates.",@@ -91,7 +97,6 @@" [OK] persistence_request_growth: 6 request row(s); no scope exhausts its lifetime request IDs within 90 days at its last-7-day rate."," [OK] persistence_write_stall: No write request has held its claim longer than persistence.max_claim_ms (600000 ms)."," [OK] lost_caller_writes: Every caller write with a retained receipt committed or was superseded.",- " [OK] persistence_terminal_failures: No terminal write failures in the last 7 d."," [OK] persistence_session_timeouts: PGLite has no session to time out."," [OK] connector_held_items: No connector items are held."," [OK] git_held_files: No Git source files are held.",@@ -177,11 +182,9 @@" [OK] trust_scan: Every agent-written or lower row has been scanned by the current write-gate detector; flagged rows carry their flag, and proactive surfaces withhold them when trust.agent_activation is suppress."," [OK] trust_sources_unclaimed: No unclaimed source holds rows from before trust tiers."," [OK] core_memory: Core memory is off (opt-in). If the user wants a profile loaded in every session: gbrain config set memory.core.enabled true, then gbrain core init.",- " [OK] managed_sync_not_moving: No managed sync is pending."," [OK] two_consumers_on_host: PGLite admits one process; no consumer heartbeat rows are kept."," [OK] consumers_without_heartbeat: PGLite admits one process; no consumer heartbeat rows are kept."," [OK] host_identity_mismatch: This process's host identity (<home>/.gbrain/persistence/host.json) owns every binding this filesystem holds.",- " [OK] serve_build_drift: PGLite admits one process; no consumer heartbeat rows are kept to compare builds."," [OK] extract_atoms_held_failed: No managed atom page or transcript is held after repeated extraction failures."," [OK] fence_integrity: No malformed facts or takes fence is held, stored or waiting in a checkout (2 source(s) scanned)."," [OK] search_mode: Mode: conservative (no per-key overrides — mode bundle is canonical).",diff --git a/test/fixtures/goldens/doctor/content-pglite-json.json b/test/fixtures/goldens/doctor/content-pglite-json.jsonindex 5ba8248643..63452b80c3 100644--- a/test/fixtures/goldens/doctor/content-pglite-json.json+++ b/test/fixtures/goldens/doctor/content-pglite-json.json@@ -21,6 +21,7 @@"checks": [{"category": "skill",+ "elapsed_ms": "<volatile>","message": "1 skills, all reachable","name": "resolver_health","status": "ok"@@ -35,6 +36,7 @@"path": "pglite — serve IPC socket not present","policy_skill_installed": false},+ "elapsed_ms": "<volatile>","fix": {"actor": "user","consent": [@@ -58,30 +60,35 @@"channels": {},"window_days": 7},+ "elapsed_ms": "<volatile>","message": "no push-context activity in 7 days — if a hook adapter is installed, confirm its registration landed and the harness session was RESTARTED (hooks snapshot at session start); a serve older than this build logs NOTHING for the hook lane — restart serve on the new build to activate the feedback loop","name": "volunteer_channels","status": "ok"},{"category": "skill",+ "elapsed_ms": "<volatile>","message": "no verb calls recorded yet (sidecar appears on first remember/recall/entity/synthesize/forget)","name": "memory_verbs_usage","status": "ok"},{"category": "skill",+ "elapsed_ms": "<volatile>","message": "1/1 skills pass","name": "skill_conformance","status": "ok"},{"category": "skill",+ "elapsed_ms": "<volatile>","message": "1 skill(s) compliant or exempt","name": "skill_brain_first","status": "ok"},{"category": "skill",+ "elapsed_ms": "<volatile>","message": "No skills.lock.json in <home>/skills — integrity check not applicable","name": "skills_manifest_integrity","status": "ok"@@ -157,6 +164,7 @@"webhook-transforms"]},+ "elapsed_ms": "<volatile>","fix_unavailable_reason": "unstructured","message": "64 new built-in skill(s) available that this workspace hasn't installed: academic-verify, archive-crawler, article-enrichment, ask-user, blog-ingest, book-mirror, brain-ingest-gate, brain-link-discipline, … +56 more. Add them with `gbrain skillpack sync`.","name": "skill_currency",@@ -164,6 +172,7 @@},{"category": "skill",+ "elapsed_ms": "<volatile>","message": "no installed skills declare preconditions","name": "skill_preconditions","status": "ok"@@ -175,6 +184,7 @@"out_of_band_settable": true,"reason": "disabled"},+ "elapsed_ms": "<volatile>","message": "memorable relay off (default)","name": "memorable_relay_health","status": "ok"@@ -208,12 +218,14 @@"ttl_valid": true,"visibility_note": "world = readable by agents authorized on THIS brain, not the public internet"},+ "elapsed_ms": "<volatile>","message": "ambient writeback off (default): Stop-hook turn capture is off, but the compaction harvest and SessionEnd transcripts still extract (installing the harness hooks opted into them; stop them: gbrain config set memory.auto_writeback off). Enable: gbrain config set memory.auto_writeback salient","name": "memory_writeback","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "No chat connectors configured (optional).","name": "connectors","status": "ok"@@ -227,6 +239,7 @@"keys": [],"threshold": 3},+ "elapsed_ms": "<volatile>","message": "No dream key died 3+ times in 24h","name": "dream_paid_loop","status": "ok"@@ -242,6 +255,7 @@"0.53.0"]},+ "elapsed_ms": "<volatile>","fix": {"actor": "agent","argv": [@@ -274,18 +288,21 @@},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "mode=notify","name": "self_upgrade_health","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "Bun <bun-version> (minimum 1.4.0)","name": "bun_runtime","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "disabled (opt-in). Enable with: gbrain config set autopilot.nightly_quality_probe.enabled true","name": "nightly_quality_probe_health","status": "ok"@@ -296,12 +313,14 @@"kinds": [],"schema_version": 1},+ "elapsed_ms": "<volatile>","message": "no extractions in last 7 days","name": "extract_health","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "disabled (opt-in). Enable with: gbrain config set cycle.conversation_facts_backfill.enabled true","name": "conversation_facts_backlog","status": "ok"@@ -313,6 +332,7 @@"known_approximation": "page backlog only; transcript corpus not counted","pack_declares_phase": false},+ "elapsed_ms": "<volatile>","message": "no pages awaiting atom extraction","name": "extract_atoms_backlog","status": "ok"@@ -327,36 +347,42 @@"source_gone": 0,"total_atoms": 0},+ "elapsed_ms": "<volatile>","message": "no atoms to check","name": "atom_provenance_drift","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No conversation-type pages — coverage check not applicable","name": "conversation_format_coverage","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "No progressive-batch operations in the last 7 days","name": "progressive_batch_audit_health","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "disabled (opt-in; default-on only for search.mode=tokenmax). Enable with: `gbrain config set autopilot.conversation_parser_probe.enabled true`","name": "conversation_parser_probe_health","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "gbrain home is outside any enclosing git worktree.","name": "home_dir_in_worktree","status": "ok"},{"category": "meta",+ "elapsed_ms": "<volatile>","message": "default source local_path is set: <home>/.gbrain/content/<uuid>/default","name": "default_source_local_path","status": "ok"@@ -371,6 +397,7 @@"unreadable_sources": [],"walk_truncated": false},+ "elapsed_ms": "<volatile>","message": "No cross-source slug drift detected.","name": "multi_source_drift","status": "ok"@@ -387,6 +414,7 @@"embedding_model": "voyage:voyage-4","shadows": []},+ "elapsed_ms": "<volatile>","message": "No embedding key is set here (VOYAGE_API_KEY or voyage_api_key). No environment variable overrides a different config-plane provider key. This check sees only the environment `gbrain doctor` runs in; a daemon (gbrain serve, autopilot) has its own, and reports a mismatch in its log with a startup warning or embedding_auth_failed.","name": "embedding_key_source","status": "ok"@@ -397,6 +425,7 @@"decision": null,"provider_env": []},+ "elapsed_ms": "<volatile>","message": "No gbrain setup receipt records a provider-use decision for this install; provider calls follow the configured keys.","name": "provider_consent","readiness_state": "not_applicable",@@ -408,6 +437,7 @@"details": {"reason": "no_harness_detected"},+ "elapsed_ms": "<volatile>","fix": {"actor": "user","consent": [@@ -435,24 +465,248 @@"json_document_missing": 0,"window_days": 7},+ "elapsed_ms": "<volatile>","message": "No agent dead ends in the last 7 days (0 non-success event(s) logged).","name": "agent_contract","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "Connected, 5 pages","name": "connection","status": "ok"},{"category": "ops",+ "details": {+ "commands": [],+ "exact": true,+ "inspected": 2,+ "resources": [],+ "truncated": false+ },+ "elapsed_ms": "<volatile>",+ "message": "Managed write capacity is below 80% of every cumulative limit.",+ "name": "persistence_capacity",+ "status": "ok"+ },+ {+ "category": "ops",+ "details": {+ "active_blockers": [],+ "config": {+ "receipt_retention_days": 30,+ "spike_factor": {+ "key": "persistence.terminal_failures.spike_factor",+ "value": 3+ },+ "spike_min": {+ "key": "persistence.terminal_failures.spike_min",+ "value": 25+ },+ "window_clamped": false,+ "window_days": {+ "key": "persistence.terminal_failures.window_days",+ "value": 7+ }+ },+ "count": 0,+ "defects": [],+ "docs": "docs/guides/troubleshooting.md#terminal-write-failures",+ "historical_rows": 0,+ "new_last_24h": 0,+ "sources": [],+ "spike": {+ "daily_7d": [+ 0,+ 0,+ 0,+ 0,+ 0,+ 0,+ 0+ ],+ "last_24h": 0,+ "median_7d": 0,+ "spiking": false+ },+ "unresolved": {+ "distinct_intents": 0,+ "distinct_slugs": 0,+ "oldest_age_seconds": null,+ "rows": 0+ },+ "window_days": 7+ },+ "elapsed_ms": "<volatile>",+ "message": "No terminal write failures in the last 7 d.",+ "name": "persistence_terminal_failures",+ "status": "ok"+ },+ {+ "category": "ops",+ "details": {+ "count": 0,+ "docs": "docs/guides/troubleshooting.md#managed-sync-not-moving",+ "parked": 0,+ "sources": []+ },+ "elapsed_ms": "<volatile>",+ "message": "No managed sync is pending.",+ "name": "managed_sync_not_moving",+ "status": "ok"+ },+ {+ "category": "ops",+ "details": {+ "docs": "docs/guides/troubleshooting.md#receipt-compaction",+ "recorded": false+ },+ "elapsed_ms": "<volatile>",+ "message": "No receipt compaction recorded yet (persistence.maintenance.last_compaction is unset): the persistence consumer records one after it compacts.",+ "name": "receipt_compaction",+ "readiness_state": "not_applicable",+ "severity": "info",+ "status": "ok"+ },+ {+ "category": "ops",+ "details": {+ "count": 0,+ "docs": "docs/guides/troubleshooting.md#serve-build-drift"+ },+ "elapsed_ms": "<volatile>",+ "message": "PGLite admits one process; no consumer heartbeat rows are kept to compare builds.",+ "name": "serve_build_drift",+ "status": "ok"+ },+ {+ "category": "meta",+ "details": {+ "docs": "docs/architecture/schema-packs.md#undeclared-page-types",+ "per_source": [+ {+ "pack": "gbrain-base-v2",+ "source_id": "notes",+ "total": 5,+ "undeclared": 0,+ "undeclared_types": [],+ "untyped": 0+ }+ ],+ "unresolved_sources": []+ },+ "elapsed_ms": "<volatile>",+ "message": "All pages match the active schema pack across every source.",+ "name": "schema_pack_consistency",+ "status": "ok"+ },+ {+ "category": "brain",+ "details": {+ "active_column": "embedding",+ "basis": "exact",+ "counts": {+ "chunkless_healable": 0,+ "deleted_page_chunks": 0,+ "embedded": 0,+ "empty": 0,+ "keyword_only": 0,+ "pending": 7,+ "quarantined": 0+ },+ "coverage": {+ "basis": "exact",+ "eligible": 7,+ "embedded": 0,+ "ratio": 0+ },+ "covering_index": null,+ "deleted_page_chunks": {+ "past_window": 0,+ "window_hours": 72,+ "within_window": 0+ },+ "embeddings_enabled": false,+ "exact": true,+ "keyword_only": {+ "marker_bytes": 0,+ "pages": 0,+ "reason": "embed_skip",+ "threshold_bytes": 500000+ },+ "mode": "full",+ "omitted_states": [],+ "reason": "embeddings_disabled",+ "status": "known",+ "units": "content_chunks rows, plus one unit per page with no chunk rows",+ "unsearchable": 0,+ "unsearchable_complete": true,+ "unstamped_pending": {+ "count": 0,+ "created_at_lower_bound": null,+ "writer_version": "<version>"+ }+ },+ "elapsed_ms": "<volatile>",+ "fix": {+ "actor": "user",+ "argv": [+ "gbrain",+ "init",+ "--force",+ "--embedding-model",+ "voyage:voyage-4",+ "--embedding-dimensions",+ "1024",+ "--path",+ "<home>/.gbrain/brain.pglite"+ ],+ "command": "gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024 --path <home>/.gbrain/brain.pglite",+ "consent": [+ "credentials",+ "paid"+ ],+ "docs": "https://github.com/garrytan/gbrain/blob/master/docs/guides/search-modes.md",+ "inputs": [+ {+ "how": "Ask the user for an API key for Voyage AI; store it with `gbrain config set voyage_api_key <key>` (every gbrain process reads it), or export VOYAGE_API_KEY in the environment of every gbrain process. Then run the command.",+ "name": "VOYAGE_API_KEY"+ }+ ],+ "next": "tell_user_to_run",+ "requires_exclusive": true,+ "user_message": "Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (VOYAGE_API_KEY), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are.",+ "verify": {+ "argv": [+ "gbrain",+ "doctor",+ "--only",+ "embeddings",+ "--json",+ "--brain",+ "host"+ ]+ },+ "why": "Embeddings are off, so search is keyword-only, and no configured embedding key fits this brain. Once the key is set this turns on voyage:voyage-4 (1024d) for the PGLite brain at <home>/.gbrain/brain.pglite. Pages, facts and keyword search are kept; existing chunks and facts are queued for vectors, which `gbrain embed --stale` (or the next maintenance cycle) fills."+ },+ "message": "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.",+ "name": "embedding_state",+ "readiness_state": "disabled_by_choice",+ "severity": "info",+ "status": "ok"+ },+ {+ "category": "ops",+ "elapsed_ms": "<volatile>","message": "Extension installed","name": "pgvector","status": "ok"},{"category": "meta",+ "elapsed_ms": "<volatile>","message": "pages has the UNIQUE(source_id, slug) upsert arbiter","name": "pages_upsert_arbiter","status": "ok"@@ -463,23 +717,11 @@"readiness": "ready","ready": true},+ "elapsed_ms": "<volatile>","message": "Visible text projections match their canonical revisions.","name": "text_projection_readiness","status": "ok"},- {- "category": "ops",- "details": {- "commands": [],- "exact": true,- "inspected": 2,- "resources": [],- "truncated": false- },- "message": "Managed write capacity is below 80% of every cumulative limit.",- "name": "persistence_capacity",- "status": "ok"- },{"category": "brain","details": {@@ -489,6 +731,7 @@"parked_effects": 0,"truncated": false},+ "elapsed_ms": "<volatile>","message": "No Git or withdrawal effect is parked.","name": "parked_effects","status": "ok"@@ -498,6 +741,7 @@"details": {"refreshes": []},+ "elapsed_ms": "<volatile>","message": "No worktree refresh is stuck.","name": "worktree_refresh_stuck","status": "ok"@@ -509,6 +753,7 @@"page_child_source_columns": [],"runbook": "docs/guides/write-refusals.md#managed-guard-page-children"},+ "elapsed_ms": "<volatile>","message": "Guarded tables carry only the columns gbrain creates.","name": "managed_guard_schema_drift","status": "ok"@@ -522,48 +767,56 @@"unclassified_p0001": 0,"window_days": 7},+ "elapsed_ms": "<volatile>","message": "No write was refused by a database guard in the last 7 days.","name": "publication_refusals","status": "ok"},{"category": "meta",+ "elapsed_ms": "<volatile>","message": "links_link_source_check has the v114 kebab-case gate","name": "links_link_source_check","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "PGLite at 5 pages — comfortable below the 1000-page threshold","name": "pglite_scale","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "Skipped (PGLite — no PostgREST exposure, RLS not applicable)","name": "rls","status": "ok"},{"category": "meta",+ "elapsed_ms": "<volatile>","message": "Version <latest> (latest: <latest>)","name": "schema_version","status": "ok"},{"category": "meta",+ "elapsed_ms": "<volatile>","message": "1115 column(s) verified against live schema","name": "schema_columns","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "Skipped (PGLite — no event trigger support)","name": "rls_event_trigger","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","fix": {"actor": "user","argv": [@@ -613,6 +866,7 @@},{"category": "brain",+ "elapsed_ms": "<volatile>","fix": {"actor": "user","argv": [@@ -662,24 +916,28 @@},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Registry healthy: 1 columns (embedding_image); primary embeddings disabled","name": "embedding_column_registry","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "no embedding env overrides set","name": "embedding_env_override","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "no embedding migration in flight","name": "embedding_migration_state","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Embeddings are off on this brain, so facts are only deduplicated by exact text; no supersession threshold applies.","name": "supersession_calibration","readiness_state": "not_applicable",@@ -688,24 +946,28 @@},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "No chat_fallback_chain is set: every chat call uses only its own model.","name": "chat_fallback_chain","status": "ok"},{"category": "meta",+ "elapsed_ms": "<volatile>","message": "Nothing to disclose: this brain is a fresh install at v<version>, after every disclosed behavior change, so the one-time behavior-change notice does not apply.","name": "behavior_changes","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Only 2 eligible entity pages (< 5) — coverage ratio not meaningful at this scale","name": "graph_coverage","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","fix": {"actor": "agent","argv": [@@ -739,24 +1001,28 @@},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Vacuous: 2 entity pages (<100). Orphan ratio not meaningful at this scale.","name": "orphan_ratio","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No by-mention links in this brain.","name": "stale_mentions","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No orphaned timeline rows across 4 page(s).","name": "timeline_orphans","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No slug collisions across 2 source checkout(s).","name": "slug_collisions","status": "ok"@@ -772,6 +1038,7 @@"repair": "timeline","truncated": false},+ "elapsed_ms": "<volatile>","message": "Every timeline row has a bullet in its page (4 page(s) inspected).","name": "timeline_history","status": "ok"@@ -787,6 +1054,7 @@"unstamped_atoms": 0,"unstamped_concepts": 0},+ "elapsed_ms": "<volatile>","message": "Every extracted atom and synthesized concept carries an explicit visibility no looser than its origin.","name": "derived_visibility","status": "ok"@@ -800,6 +1068,7 @@"repair": "safe-chunks","truncated": false},+ "elapsed_ms": "<volatile>","message": "Every re-sealable page is at the safe-chunk index version.","name": "safe_index_pending","status": "ok"@@ -812,6 +1081,7 @@"pages_pending": 0,"truncated": false},+ "elapsed_ms": "<volatile>","message": "No page waits for the credential-safe re-chunk.","name": "credential_projection_pending","status": "ok"@@ -826,6 +1096,7 @@"retries": 0,"truncated": false},+ "elapsed_ms": "<volatile>","message": "No orphan connector checkpoint rows older than 7 days.","name": "connector_checkpoints","status": "ok"@@ -852,6 +1123,7 @@],"repair": "request-indexes"},+ "elapsed_ms": "<volatile>","message": "Managed sync request indexes are valid.","name": "persistence_request_indexes","status": "ok"@@ -890,6 +1162,7 @@"verify": "gbrain doctor --json (check persistence_request_growth)","window_days": 7},+ "elapsed_ms": "<volatile>","message": "6 request row(s); no scope exhausts its lifetime request IDs within 90 days at its last-7-day rate.","name": "persistence_request_growth","status": "ok"@@ -909,6 +1182,7 @@},"stalls": []},+ "elapsed_ms": "<volatile>","message": "No write request has held its claim longer than persistence.max_claim_ms (600000 ms).","name": "persistence_write_stall","status": "ok"@@ -922,62 +1196,11 @@"repair": "failed-writes","writes": []},+ "elapsed_ms": "<volatile>","message": "Every caller write with a retained receipt committed or was superseded.","name": "lost_caller_writes","status": "ok"},- {- "category": "ops",- "details": {- "active_blockers": [],- "config": {- "receipt_retention_days": 30,- "spike_factor": {- "key": "persistence.terminal_failures.spike_factor",- "value": 3- },- "spike_min": {- "key": "persistence.terminal_failures.spike_min",- "value": 25- },- "window_clamped": false,- "window_days": {- "key": "persistence.terminal_failures.window_days",- "value": 7- }- },- "count": 0,- "defects": [],- "docs": "docs/guides/troubleshooting.md#terminal-write-failures",- "historical_rows": 0,- "new_last_24h": 0,- "sources": [],- "spike": {- "daily_7d": [- 0,- 0,- 0,- 0,- 0,- 0,- 0- ],- "last_24h": 0,- "median_7d": 0,- "spiking": false- },- "unresolved": {- "distinct_intents": 0,- "distinct_slugs": 0,- "oldest_age_seconds": null,- "rows": 0- },- "window_days": 7- },- "message": "No terminal write failures in the last 7 d.",- "name": "persistence_terminal_failures",- "status": "ok"- },{"category": "ops","details": {@@ -985,6 +1208,7 @@"configured": "5min","docs": "docs/guides/troubleshooting.md#session-timeouts-not-applied"},+ "elapsed_ms": "<volatile>","message": "PGLite has no session to time out.","name": "persistence_session_timeouts","status": "ok"@@ -996,6 +1220,7 @@"held": 0,"sources": []},+ "elapsed_ms": "<volatile>","message": "No connector items are held.","name": "connector_held_items","status": "ok"@@ -1009,6 +1234,7 @@"source_ids": [],"sources": []},+ "elapsed_ms": "<volatile>","message": "No Git source files are held.","name": "git_held_files","status": "ok"@@ -1020,6 +1246,7 @@"docs": "docs/guides/repair.md#held-files","hooks": []},+ "elapsed_ms": "<volatile>","message": "No outdated gbrain frontmatter pre-commit hook is installed.","name": "frontmatter_hook","status": "ok"@@ -1033,6 +1260,7 @@"repair": "orphan-bindings","truncated": false},+ "elapsed_ms": "<volatile>","message": "Every persistence source binding belongs to an existing source.","name": "orphan_persistence_bindings","status": "ok"@@ -1044,6 +1272,7 @@"docs": "docs/guides/write-refusals.md#foreign-ownership-marker","markers": []},+ "elapsed_ms": "<volatile>","message": "Every ownership marker beside a source checkout belongs to this brain.","name": "foreign_ownership_marker","status": "ok"@@ -1054,6 +1283,7 @@"sources": [],"total": 0},+ "elapsed_ms": "<volatile>","message": "No page was written database-only to an unbound source.","name": "unbound_source","status": "ok"@@ -1083,6 +1313,7 @@"truncated": false,"window_days": 7},+ "elapsed_ms": "<volatile>","message": "Every writer that admitted or published a request in the last 7 days is v0.60.5.0 or newer.","name": "writer_version","status": "ok"@@ -1095,6 +1326,7 @@"truncated": false,"unclassifiable": 0},+ "elapsed_ms": "<volatile>","message": "No session corpus is configured; nothing to classify.","name": "self_capture","status": "ok"@@ -1105,6 +1337,7 @@"outcome": "skipped","reason": "pglite"},+ "elapsed_ms": "<volatile>","message": "Skipped: PGLite runs vector search in-process; the plan check applies to Postgres brains.","name": "vector_plan","status": "ok"@@ -1115,6 +1348,7 @@"outcome": "skipped","reason": "pglite"},+ "elapsed_ms": "<volatile>","message": "Skipped: PGLite runs keyword search with no statement timeout; the canary applies to Postgres brains.","name": "keyword_plan","status": "ok"@@ -1133,6 +1367,7 @@"stale_effects": 0,"truncated": false},+ "elapsed_ms": "<volatile>","message": "No committed write has a stale queued or failed embedding effect.","name": "stale_embedding_effects","status": "ok"@@ -1145,6 +1380,7 @@"repair": "google-file-modes","sources": []},+ "elapsed_ms": "<volatile>","message": "No group- or world-readable gbrain files under Google source directories outside ~/.gbrain.","name": "google_file_modes","status": "ok"@@ -1158,6 +1394,7 @@"excluded": 0,"repair": "extractor-facts"},+ "elapsed_ms": "<volatile>","message": "No conversation-extractor fact is left expired by the pre-v0.60.11.0 projection.","name": "extractor_facts_expired","status": "ok"@@ -1170,6 +1407,7 @@"evidenced": 0,"repair": "conversation-labels"},+ "elapsed_ms": "<volatile>","message": "No conversation fact carries the pre-fix meeting-label signature (a 1970-01-01 segment on a label page).","name": "conversation_label_facts","status": "ok"@@ -1185,6 +1423,7 @@"stale": 0,"unstamped": 0},+ "elapsed_ms": "<volatile>","message": "No conversation extraction outcome predates extractor version 1.","name": "conversation_outcomes_stale","status": "ok"@@ -1199,6 +1438,7 @@"repair": "captured-facts","unclassifiable": 0},+ "elapsed_ms": "<volatile>","message": "No active fact from a gbrain self-capture or paste candidate remains. This counts facts in the database; the self_capture check counts corpus files.","name": "captured_facts_active","status": "ok"@@ -1210,6 +1450,7 @@"drifted": 0,"repair": "loop-facts"},+ "elapsed_ms": "<volatile>","message": "Every closed commitment loop has its fact retired.","name": "loop_facts_drift","status": "ok"@@ -1223,6 +1464,7 @@"repair": "ontology-facts","retired": 0},+ "elapsed_ms": "<volatile>","message": "No ontology observation is held by a page's Facts table.","name": "ontology_facts_fenced","status": "ok"@@ -1236,6 +1478,7 @@"source_ids": [],"sources": []},+ "elapsed_ms": "<volatile>","message": "No stored frontmatter carries a parser-reserved key (type, title, tags, slug).","name": "stale_frontmatter_keys","status": "ok"@@ -1250,102 +1493,119 @@"sources": [],"window_sequences": 20000},+ "elapsed_ms": "<volatile>","message": "No page whose writes refuse source_changed still has a canonical file that differs from the database.","name": "maintenance_write_drift","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Relative dates resolve against each source's observation date in fact extraction, dream synthesis, extract_atoms and propose_takes (the default). life chronicle events keep their current prompt unless extraction.date_grounding is set to true. Facts extracted before this was on keep their original wording; re-extract a source only with the user's consent (gbrain extract-conversation-facts --source-id <id> --dry-run previews it).","name": "extraction_date_grounding","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Sampled 5 pages; no bare-tweet phrases or external links.","name": "integrity","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "All JSONB columns store objects/arrays","name": "jsonb_integrity","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No takes yet","name": "takes_weight_grid","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "All FK-child tables clean (10 tables checked)","name": "child_table_orphans","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "All synthesized pages carry a raw trace or explicit exemption","name": "raw_provenance","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "All source config values are JSON objects","name": "source_config_shape","status": "ok"},{"category": "skill",+ "elapsed_ms": "<volatile>","message": "whoknows eval fixture present (10 queries). Run `gbrain eval whoknows test/fixtures/whoknows-eval.jsonl` to grade.","name": "whoknows_health","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "All image-asset chunks have modality=image","name": "cross_modal_modality_backfill","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "search.unified_multimodal is off; coverage check N/A","name": "unified_multimodal_coverage","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No truncated bodies detected","name": "markdown_body_completeness","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No pages exceed 500000 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 quarantined pages","name": "quarantined_pages","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No flagged pages","name": "flagged_pages","status": "ok"@@ -1357,12 +1617,14 @@"days": 7,"source_id": null},+ "elapsed_ms": "<volatile>","message": "No stale unverified extraction stubs","name": "unverified_extractions","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","fix": {"actor": "agent","argv": [@@ -1421,6 +1683,7 @@],"unscanned": []},+ "elapsed_ms": "<volatile>","fix": {"actor": "agent","argv": [@@ -1456,30 +1719,35 @@},{"category": "meta",+ "elapsed_ms": "<volatile>","message": "No capture failures in the last 24h","name": "eval_capture","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No probe runs in the last 7 days. Run `gbrain eval suspected-contradictions --query \"...\" --top-k 5` to populate.","name": "contradictions","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Automatic fact extraction not configured (keyless) — memory comes from agent-authored `## Facts` fences and the `remember` verb. One optional key enables automatic extraction (OpenAI or Anthropic).","name": "facts_extraction_health","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Sample of last 1000 pages clean (no fallback-with-parseable-fm-date, no future-dated, no pre-1990)","name": "effective_date_health","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Skipped (no pages have emotional_weight > 0; either fresh install or recompute hasn't run yet)","name": "salience_health","status": "ok"@@ -1492,24 +1760,28 @@"engine": "pglite","worker_alive": true},+ "elapsed_ms": "<volatile>","message": "PGLite: no jobs waiting for a worker.","name": "queue_health","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "Subagent tier resolves to default (claude-sonnet-4-6) — full tool-loop capability","name": "subagent_capability","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "facts_health(default): 0 active, 0 today, 0 this week, 0 consolidated, top entities —","name": "facts_health","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "Brain-wide maintenance jobs are finishing within their deadline.","name": "global_maintenance_timeouts","status": "ok"@@ -1532,6 +1804,7 @@"unsupported": 0,"unsupported_ids": []},+ "elapsed_ms": "<volatile>","message": "No queued job predates submission authority.","name": "legacy_job_authority","status": "ok"@@ -1545,6 +1818,7 @@"malformed": [],"mirror_window_ends": "2026-11-04"},+ "elapsed_ms": "<volatile>","message": "Every active legacy token uses the unified grant columns. The permissions mirror for older gbrain binaries is kept until 2026-11-04.","name": "legacy_token_grant_shape","status": "ok"@@ -1556,6 +1830,7 @@"drift": [],"mirror_window_ends": "2026-11-04"},+ "elapsed_ms": "<volatile>","message": "No legacy token grant has drifted from its permissions mirror.","name": "legacy_token_grant_drift","status": "ok"@@ -1567,6 +1842,7 @@"null_scope_count": 0,"tokens": []},+ "elapsed_ms": "<volatile>","message": "Every active legacy token has explicit scopes.","name": "legacy_token_null_scope","status": "ok"@@ -1578,18 +1854,21 @@"grants": [],"server_surface": "full"},+ "elapsed_ms": "<volatile>","message": "Every active client and token can call the operations its scopes allow.","name": "grant_new_ops_available","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No image assets indexed yet","name": "image_assets","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "OCR not in use (or no images ingested with OCR opt-in)","name": "ocr_health","status": "ok"@@ -1603,6 +1882,7 @@"unsupported_holds": 0,"without_image_vector": 0},+ "elapsed_ms": "<volatile>","message": "No image pages indexed yet.","name": "image_embedding_coverage","status": "ok"@@ -1615,6 +1895,7 @@"unchanged_count": 0,"writer_owned_count": 1},+ "elapsed_ms": "<volatile>","fix_unavailable_reason": "unstructured","message": "Source 'notes' has never been synced. Run `gbrain sync --source <id> --no-pull` for each stale source. 1 writer-owned canonical content source(s): upstream sync is not applicable; see canonical_content_writes for publication status","name": "sync_freshness",@@ -1627,6 +1908,7 @@"recovering_count": 0,"writer_owned_count": 1},+ "elapsed_ms": "<volatile>","message": "1 writer-owned content source(s); no pending canonical publication or recovery.","name": "canonical_content_writes","status": "ok"@@ -1649,6 +1931,7 @@"unpushed": 0}},+ "elapsed_ms": "<volatile>","fix": {"actor": "agent","argv": [@@ -1693,18 +1976,21 @@},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "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.","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>","message": "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.","name": "cycle_freshness","readiness_state": "not_applicable",@@ -1713,24 +1999,28 @@},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No same-source content-hash duplicate groups","name": "content_hash_duplicates","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "All code-page chunks carry symbol metadata","name": "code_chunk_metadata","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Every DB page is file-backed or under a declared/default db_only path (derive-phase defaults: life/events/ atoms/ concepts/ extracts/ dream-cycle-summaries/).","name": "undeclared_db_only_pages","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "No configured collectors declare output paths","name": "db_only_collector_collision","status": "ok"@@ -1741,12 +2031,14 @@"checkouts": 1,"tracked": []},+ "elapsed_ms": "<volatile>","message": "1 Git checkout(s) track no ownership marker (markers on disk stay untracked and are denied on push).","name": "tracked_ownership_marker","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "System One is off (every decide slot is off; nothing is sent).","name": "decide_health","status": "ok"@@ -1775,6 +2067,7 @@"unlinked": 0}},+ "elapsed_ms": "<volatile>","message": "No active facts yet; nothing to link.","name": "unlinked_facts","status": "ok"@@ -1793,6 +2086,7 @@"relationships": {},"stale_assertions": []},+ "elapsed_ms": "<volatile>","message": "relationships: none yet; read policy on; contradiction mode propose (default)","name": "edge_validity","status": "ok"@@ -1831,6 +2125,7 @@"unpricedCalls": 0}},+ "elapsed_ms": "<volatile>","message": "auto_chronicle is on (default). Last 24 h: 0 of 200 automatic extraction calls. Last 7 days: 0 extracted, 0 failed, 0 skipped; $0.00 known spend. 0 page(s) pending. No chat provider is configured, so nothing will be extracted until one is.","name": "auto_chronicle","readiness_state": "missing",@@ -1838,6 +2133,7 @@},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "chronicle.* settings are valid.","name": "chronicle_config_invalid","status": "ok"@@ -1949,6 +2245,7 @@},"severity": "info"},+ "elapsed_ms": "<volatile>","fix": {"actor": "agent","argv": [@@ -2004,6 +2301,7 @@"last_run": null,"max_jobs": 50},+ "elapsed_ms": "<volatile>","message": "No facts-absorb jobs are queued (no run recorded yet).","name": "facts_drain","status": "ok"@@ -2013,6 +2311,7 @@"details": {"applicable": false},+ "elapsed_ms": "<volatile>","message": "Not applicable: embeddings are disabled on this brain (keyword search keeps working).","name": "fact_take_vectors","readiness_state": "disabled_by_choice",@@ -2036,6 +2335,7 @@"missing_search_statistics": [],"stale": []},+ "elapsed_ms": "<volatile>","message": "Planner statistics are fresh on 6 hot tables.","name": "planner_stats_stale","status": "ok"@@ -2056,6 +2356,7 @@"weights": 0,"weights_off_neutral": 0},+ "elapsed_ms": "<volatile>","message": "Retrieval feedback is off; rankings do not learn from ratings. Turn it on with: gbrain config set feedback.enabled true","name": "retrieval_feedback_health","status": "ok"@@ -2067,6 +2368,7 @@"failed": [],"pending": 0},+ "elapsed_ms": "<volatile>","message": "Every page has its revision; the page revision backfill is complete.","name": "revision_backfill","status": "ok"@@ -2144,6 +2446,7 @@],"unknown_pct": 0},+ "elapsed_ms": "<volatile>","message": "0% of 13 row(s) have an unverified origin (unknown tier); the backfill has classified every row it has a signal for.","name": "trust_tiers","status": "ok"@@ -2161,6 +2464,7 @@"timeline_entries": 0}},+ "elapsed_ms": "<volatile>","message": "Every agent-written or lower row has been scanned by the current write-gate detector; flagged rows carry their flag, and proactive surfaces withhold them when trust.agent_activation is suppress.","name": "trust_scan","status": "ok"@@ -2172,6 +2476,7 @@"pending": [],"unclaimed": []},+ "elapsed_ms": "<volatile>","message": "No unclaimed source holds rows from before trust tiers.","name": "trust_sources_unclaimed","status": "ok"@@ -2187,22 +2492,11 @@"enabled": false,"pages": 0},+ "elapsed_ms": "<volatile>","message": "Core memory is off (opt-in). If the user wants a profile loaded in every session: gbrain config set memory.core.enabled true, then gbrain core init.","name": "core_memory","status": "ok"},- {- "category": "ops",- "details": {- "count": 0,- "docs": "docs/guides/troubleshooting.md#managed-sync-not-moving",- "parked": 0,- "sources": []- },- "message": "No managed sync is pending.",- "name": "managed_sync_not_moving",- "status": "ok"- },{"category": "ops","details": {@@ -2210,6 +2504,7 @@"count": 0,"docs": "docs/guides/troubleshooting.md#two-consumers-on-host"},+ "elapsed_ms": "<volatile>","message": "PGLite admits one process; no consumer heartbeat rows are kept.","name": "two_consumers_on_host","status": "ok"@@ -2221,6 +2516,7 @@"docs": "docs/guides/troubleshooting.md#two-consumers-on-host","owners": []},+ "elapsed_ms": "<volatile>","message": "PGLite admits one process; no consumer heartbeat rows are kept.","name": "consumers_without_heartbeat","status": "ok"@@ -2234,20 +2530,11 @@"host_json_path": "<home>/.gbrain/persistence/host.json","mismatches": []},+ "elapsed_ms": "<volatile>","message": "This process's host identity (<home>/.gbrain/persistence/host.json) owns every binding this filesystem holds.","name": "host_identity_mismatch","status": "ok"},- {- "category": "ops",- "details": {- "count": 0,- "docs": "docs/guides/troubleshooting.md#serve-build-drift"- },- "message": "PGLite admits one process; no consumer heartbeat rows are kept to compare builds.",- "name": "serve_build_drift",- "status": "ok"- },{"category": "brain","details": {@@ -2255,6 +2542,7 @@"held": 0,"items": []},+ "elapsed_ms": "<volatile>","message": "No managed atom page or transcript is held after repeated extraction failures.","name": "extract_atoms_held_failed","status": "ok"@@ -2379,12 +2667,14 @@},"warn_at_normalized_7d": 20},+ "elapsed_ms": "<volatile>","message": "No malformed facts or takes fence is held, stored or waiting in a checkout (2 source(s) scanned).","name": "fence_integrity","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "Mode: conservative (no per-key overrides — mode bundle is canonical).","name": "search_mode","status": "ok"@@ -2399,72 +2689,84 @@".raw/"]},+ "elapsed_ms": "<volatile>","message": "No pages hidden by search-exclude policy.","name": "hidden_by_search_policy","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No retrieval-affecting files changed in working tree.","name": "eval_drift","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "Reranker disabled — no failures expected","name": "reranker_health","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "No exhausted batch retries in last 24h.","name": "batch_retry_health","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "PGLite — no queue to check","name": "wedged_queue","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "No orphaned private queues","name": "orphaned_private_queue","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "PGLite — single-writer, fan-out is 1","name": "autopilot_fanout_concurrency","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "no Google accounts connected (gbrain google connect to start)","name": "google_oauth","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "graph_signals disabled — coverage not checked","name": "graph_signals_coverage","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No junk entity hubs (pages with <=2 chunks and >1000 edges)","name": "junk_entity_hubs","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "Migration v79 applied; tracking enabled. Calibration profile not yet generated — brainstorm/lsd will run unbiased until enough takes are resolved.","name": "brainstorm_health","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","fix_unavailable_reason": "unstructured","message": "6 of 8 bare wikilinks (75%) would resolve to 2 distinct page(s) under global_basename mode. Enable with: gbrain config set link_resolution.global_basename true","name": "link_resolution_opportunity",@@ -2472,42 +2774,49 @@},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Embeddings disabled — no active embedding width to reconcile.","name": "embedding_width_consistency","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Skipped on PGLite (single bundled pgvector version).","name": "facts_embedding_width_consistency","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Multi-source brain (1 non-default source(s)); all populated","name": "source_routing_health","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "No OAuth clients registered","name": "oauth_confidential_client_health","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "Scoped-client grants consistent (no dangling federated reads, no orphaned workspace sources, no privileged self-registered clients)","name": "oauth_client_scope_health","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "Lock path: <home>/.gbrain/autopilot.lock","name": "autopilot_lock_scope","status": "ok"},{"category": "ops",+ "elapsed_ms": "<volatile>","message": "No stale locks (no rows with ttl_expires_at < NOW())","name": "stale_locks","status": "ok"@@ -2552,12 +2861,14 @@"synthesize_concepts": "global"}},+ "elapsed_ms": "<volatile>","message": "Phase taxonomy: 12 source-scoped, 15 brain-global, 2 mixed. Source-safe: [lint, backlinks, sync, extract, extract_facts, extract_atoms, recompute_emotional_weight, consolidate, propose_takes, conversation_facts_backfill, enrich_thin, schema-suggest]. Brain-global: [fence_repair, content_repair, resolve_symbol_edges, synthesize_concepts, grade_takes, calibration_profile, edge_contradictions, drift, standing_questions, chronicle, facts_drain, skillopt, embed, orphans, purge]. Mixed: [synthesize, patterns].","name": "cycle_phase_scope","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","fix": {"actor": "user","argv": [@@ -2607,18 +2918,21 @@},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Only 2 entity pages (< 5) — coverage ratio not meaningful at this scale","name": "entity_link_coverage","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "Only 2 entity pages (< 5) — coverage ratio not meaningful at this scale","name": "timeline_coverage","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","fix": {"actor": "agent","argv": [@@ -2658,18 +2972,21 @@},{"category": "meta",+ "elapsed_ms": "<volatile>","message": "Active pack [email protected]+a50a67b9 is current (no successor declared)","name": "pack_upgrade_available","status": "ok"},{"category": "meta",+ "elapsed_ms": "<volatile>","message": "3 distinct typed values (pack gbrain-base-v2 declares 20)","name": "type_proliferation","status": "ok"},{"category": "brain",+ "elapsed_ms": "<volatile>","message": "No dangling aliases","name": "dangling_aliases","status": "ok"diff --git a/test/fixtures/goldens/serve-http/routes-runtime.json b/test/fixtures/goldens/serve-http/routes-runtime.jsonindex 5b4aa861e3..dabcb5f177 100644--- a/test/fixtures/goldens/serve-http/routes-runtime.json+++ b/test/fixtures/goldens/serve-http/routes-runtime.json@@ -441,6 +441,14 @@"method": "get","path": "/admin/api/health-indicators"},+ {+ "handlers": [+ "requireAdmin#4",+ "<anonymous>"+ ],+ "method": "get",+ "path": "/admin/api/ops"+ },{"handlers": ["requireAdmin#4",@@ -1157,6 +1165,14 @@"method": "get","path": "/admin/api/health-indicators"},+ {+ "handlers": [+ "requireAdmin#4",+ "<anonymous>"+ ],+ "method": "get",+ "path": "/admin/api/ops"+ },{"handlers": ["requireAdmin#4",diff --git a/test/fixtures/goldens/serve-http/routes.json b/test/fixtures/goldens/serve-http/routes.jsonindex 0cf8bb2df1..ce46c0055d 100644--- a/test/fixtures/goldens/serve-http/routes.json+++ b/test/fixtures/goldens/serve-http/routes.json@@ -257,6 +257,15 @@"path": "/admin/api/health-indicators","when": []},+ {+ "handlers": [+ "requireAdmin",+ "<inline>"+ ],+ "method": "get",+ "path": "/admin/api/ops",+ "when": []+ },{"handlers": ["requireAdmin",diff --git a/test/remote-privacy-sweep.test.ts b/test/remote-privacy-sweep.test.tsindex 47fdfc2f65..532d3fadc0 100644--- a/test/remote-privacy-sweep.test.ts+++ b/test/remote-privacy-sweep.test.ts@@ -304,6 +304,7 @@ const EXPECTED_OUTCOME: Record<string, Outcome> = {list_jobs: 'ok', // base unused — per-shape override in EXPECTED_BY_SHAPE (above)quarantine_list: 'ok',run_doctor: 'ok',+ get_brain_health: 'ok', // bands only: counts as ranges, no slugs or stored textget_ingest_log: 'ok',code_callers: 'error',code_callees: 'error',