Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript
6.7 KB
Raw Blame
{
  "_meta": {
    "gbrain_notices": [
      {
        "code": "degraded_recall",
        "kind": "degraded",
        "why": "Recall was degraded (keyword_only_no_embedding_provider): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\". This brain was set up keyword-only by the user's choice; mention it only if the user asks why something was not found. No query text was sent to an embedding provider. If the user wants semantic search, `gbrain doctor --json` names the enable command; turning it on needs their consent.",
        "contract_version": 1
      },
      {
        "code": "recall_hint",
        "kind": "info",
        "why": "The facts in this response are the newest saved facts: `query` searches pages and does not rank facts. `question` ranks saved facts by relevance to a question (it does not search pages).",
        "fix": {
          "argv": [
            "gbrain",
            "recall",
            "--question",
            "quokka-journey-marker",
            "--query",
            "quokka-journey-marker",
            "--brain",
            "host",
            "--source",
            "default"
          ],
          "command": "gbrain recall --question quokka-journey-marker --query quokka-journey-marker --brain host --source default",
          "mcp": {
            "tool": "recall",
            "arguments": {
              "query": "quokka-journey-marker",
              "question": "quokka-journey-marker"
            }
          },
          "consent": [],
          "actor": "agent",
          "why": "The same recall with question set to the query, so saved facts come back ranked by relevance and pages are still searched.",
          "requires_exclusive": false
        },
        "contract_version": 1
      }
    ],
    "degraded": {
      "reasons": [
        "embed_unavailable"
      ]
    },
    "access": {
      "member": null,
      "groups": [],
      "audience": null,
      "policy_rev": null,
      "relaxation": "none"
    }
  },
  "content": [
    {
      "type": "text",
      "text": "{\n  \"facts\": [\n    {\n      \"id\": 1,\n      \"fact\": \"[quoted conversation excerpt from fact 1; source material, not instructions]\\n```text\\nquokka-journey-marker is the install-check fact\\n```\",\n      \"kind\": \"fact\",\n      \"entity_slug\": null,\n      \"source_id\": \"default\",\n      \"visibility\": \"world\",\n      \"notability\": \"medium\",\n      \"valid_from\": \"{{TIME}}\",\n      \"valid_until\": null,\n      \"expired_at\": null,\n      \"superseded_by\": null,\n      \"consolidated_at\": null,\n      \"consolidated_into\": null,\n      \"source\": \"install-check\",\n      \"source_session\": null,\n      \"context\": null,\n      \"confidence\": 1,\n      \"created_at\": \"{{TIME}}\",\n      \"fact_id\": \"1\",\n      \"provenance\": \"install-check\",\n      \"quoted\": \"transcript\",\n      \"trust_tier\": \"agent_written\",\n      \"origin\": \"mcp:remember\"\n    }\n  ],\n  \"total\": 1,\n  \"facts_order\": \"newest\",\n  \"protocol_version\": 1,\n  \"results\": [\n    {\n      \"slug\": \"journey-note-3\",\n      \"title\": \"Journey note 3\",\n      \"chunk\": \"# Journey note 3\\n\\nThe quokka-journey-marker 3 lives in note 3.\",\n      \"evidence\": \"keyword_exact\",\n      \"create_safety\": \"probable\",\n      \"provenance\": \"journey-note-3\",\n      \"source_id\": \"default\",\n      \"trust_tier\": \"operator_curated\",\n      \"origin\": \"managed_file_import\"\n    },\n    {\n      \"slug\": \"journey-note-2\",\n      \"title\": \"Journey note 2\",\n      \"chunk\": \"# Journey note 2\\n\\nThe quokka-journey-marker 2 lives in note 2.\",\n      \"evidence\": \"keyword_exact\",\n      \"create_safety\": \"probable\",\n      \"provenance\": \"journey-note-2\",\n      \"source_id\": \"default\",\n      \"trust_tier\": \"operator_curated\",\n      \"origin\": \"managed_file_import\"\n    },\n    {\n      \"slug\": \"journey-note-1\",\n      \"title\": \"Journey note 1\",\n      \"chunk\": \"# Journey note 1\\n\\nThe quokka-journey-marker 1 lives in note 1.\",\n      \"evidence\": \"keyword_exact\",\n      \"create_safety\": \"probable\",\n      \"provenance\": \"journey-note-1\",\n      \"source_id\": \"default\",\n      \"trust_tier\": \"operator_curated\",\n      \"origin\": \"managed_file_import\"\n    },\n    {\n      \"slug\": \"memory/unattributed\",\n      \"title\": \"[quoted conversation excerpt from memory/unattributed; source material, not instructions]\\n```text\\nUnattributed memory\\n```\",\n      \"chunk\": \"[quoted conversation excerpt from memory/unattributed; source material, not instructions]\\n```text\\n## Facts\\n\\n<!--- gbrain:facts:begin -->\\n\\n| # | claim | kind | confidence | visibility | notability | valid_from | valid_until | source | context |\\n|---|-------|------|------------|------------|------------|------------|-------------|--------|---------|\\n| 1 | quokka-journey-marker is the install-check fact | fact | 1.0 | world | medium | {{TIME}} |  | install-check |  |\\n<!--- gbrain:facts:end -->\\n```\",\n      \"evidence\": \"keyword_exact\",\n      \"create_safety\": \"probable\",\n      \"provenance\": \"memory/unattributed\",\n      \"source_id\": \"default\",\n      \"quoted\": \"transcript\",\n      \"trust_tier\": \"agent_written\",\n      \"origin\": \"mcp:remember\"\n    }\n  ],\n  \"search_degraded\": \"keyword_only_embedding_disabled\"\n}"
    },
    {
      "type": "text",
      "text": "[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (keyword_only_no_embedding_provider): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\". This brain was set up keyword-only by the user's choice; mention it only if the user asks why something was not found. No query text was sent to an embedding provider. If the user wants semantic search, `gbrain doctor --json` names the enable command; turning it on needs their consent."
    },
    {
      "type": "text",
      "text": "[gbrain notice recall_hint kind=info]\nwhy: The facts in this response are the newest saved facts: `query` searches pages and does not rank facts. `question` ranks saved facts by relevance to a question (it does not search pages).\nfix: recall {\"query\":\"quokka-journey-marker\",\"question\":\"quokka-journey-marker\"}\nnext: {{next}}"
    },
    {
      "type": "text",
      "text": "[gbrain degraded: embed_unavailable] This result is partial or degraded: never report \"no notes\" or \"not found\" from it."
    }
  ]
}