Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
CHANGELOG wording and stress weights for the new test files
garrytan534ab068f091
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 4fc5801528..71efe4fae3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -16,7 +16,7 @@ identifiers and attribution are available in the pre-removal Git revision- **A fact saved under a bare name moves when its page appears in a folder.** `remember` keys a new name such as "Kofi Example" as `kofi-example`. Once exactly one page with that name exists, such as `people/kofi-example`, the maintenance cycle moves the held fact into it in one commit and re-keys it to that page. If two pages could be meant, the fact stays held, and the doctor check and the repair preview name both pages.- **New doctor check: `strict_facts_outside_git`.** For each strict source it counts facts with no Git home, facts held more than 30 days for a page that never appeared, and held facts that cannot move. Its fix is the read-only preview of the new repair.-- **New repair: `gbrain repair facts-home --source <id>`.** It is explicit-only and preview-bound: `--apply --expect <hash>` writes the listed facts to `memory/unattributed`, at most 500 per run, and it never runs on upgrade. It lists, without moving, facts it cannot place: an entity under a folder access rule, a row the Facts table cannot show, an ontology observation, a row of a deleted page, and a fact whose entity page is deleted (that page may have been private, and purging it would not reach a row on the holding page, so the fact is listed until the page is restored or purged). The new writers skip such an entity the same way.+- **New repair: `gbrain repair facts-home --source <id>`.** It is explicit-only and preview-bound: `--apply --expect <hash>` writes the listed facts to `memory/unattributed`, at most 500 per run, and it never runs on upgrade. It lists, without moving, the facts it cannot place. Those are facts for an entity under a folder access rule, a row the Facts table cannot show, an ontology observation, a row of a deleted page, and a fact whose entity page is deleted (that page may have been private, and purging it would not reach a row on the holding page, so the fact is listed until the page is restored or purged). The new writers skip such an entity the same way.- **Known limit:** a fact for an entity under a folder access rule that has no page yet still stays in the database only, because the holding page is readable by everyone. The doctor check counts these facts and the repair lists them as `folder_restricted`.- **The `entity_page_missing` notice asks before it creates a page.** While the fact is in the database only, the notice's step is now `next: ask_user`: its `user_message` says the fact is saved in the database only and asks whether to create a page for the entity, and the `put_page` call is the fix once the user agrees. When the fact is already held in Git, the notice only says where it is and that it moves once the page exists, with no step to run. This holds for single and batch `remember`, over MCP and in the CLI's `[AGENT]` block.- **A sync into a strict source on a brain without managed persistence says why it imported nothing.** The failure ledger, the summary and `--json` (`failureCodes`, plus a new `failureAdvice`) now carry `strict_requires_managed` instead of `UNKNOWN`. The advice no longer sends you to fix YAML or to use `--skip-failed`. `docs/guides/git-canonical.md` now shows how to rebuild a strict source's database from a clean clone.diff --git a/scripts/stress/iteration-weights.json b/scripts/stress/iteration-weights.jsonindex ffd3223651..94fa6199b7 100644--- a/scripts/stress/iteration-weights.json+++ b/scripts/stress/iteration-weights.json@@ -77,7 +77,7 @@"test/doctor-keyword-plan-6495.test.ts": 3700,"test/doctor-routing-skill-pack-source.test.ts": 6200,"test/doctor-slow-pass-6712.test.ts": 1900,- "test/doctor-strict-facts-outside-git.test.ts": 4105,+ "test/doctor-strict-facts-outside-git.test.ts": 7643,"test/doctor-sync-freshness-skill-pack-6076.test.ts": 4200,"test/drift-watch.test.ts": 2700,"test/e2e/agent-journey-postgres.test.ts": 16400,@@ -202,7 +202,7 @@"test/fact-embedding-oversized-7211.test.ts": 5600,"test/fact-fence-adoption-exits.test.ts": 17600,"test/fact-purge-lookup-timeout-6511.test.ts": 5200,- "test/facts-home-review-gst2492.test.ts": 9248,+ "test/facts-home-review-gst2492.test.ts": 15673,"test/facts-insert-guards-7105.test.ts": 12000,"test/facts-publication-large-fence-6898.test.ts": 33700,"test/fence-repair-receipts.test.ts": 5900,@@ -234,8 +234,8 @@"test/hardened-git-stream-6712.test.ts": 3900,"test/harness-skills-epoch.test.ts": 5900,"test/harness-wiring-redaction-6453.test.ts": 550,- "test/held-bare-name-move-gst2492.test.ts": 9942,- "test/held-fence-readers-gst2492.test.ts": 3863,+ "test/held-bare-name-move-gst2492.test.ts": 17127,+ "test/held-fence-readers-gst2492.test.ts": 6742,"test/held-read-signals.test.ts": 5800,"test/hold-action-chain-6712.test.ts": 15200,"test/hook-command.serial.test.ts": 2300,@@ -644,7 +644,7 @@"test/repair-database-stop-gbra133.test.ts": 5000,"test/repair-embedding-effects.test.ts": 20300,"test/repair-explicit-only.test.ts": 1300,- "test/repair-facts-home-gst2492.test.ts": 14276,+ "test/repair-facts-home-gst2492.test.ts": 26374,"test/repair-failed-writes-conflict-6429.test.ts": 6800,"test/repair-failed-writes-drift-w411.test.ts": 12300,"test/repair-fences-during-catchup.test.ts": 3250,@@ -693,7 +693,7 @@"test/source-row-diagnostics.test.ts": 2100,"test/sources-resolve-path.test.ts": 12100,"test/stats-health-source-scope.test.ts": 5400,- "test/strict-background-writers-gst2492.test.ts": 22539,+ "test/strict-background-writers-gst2492.test.ts": 36888,"test/sync-absent-from-worktree-s27.test.ts": 12000,"test/sync-admission-6712.test.ts": 3000,"test/sync-alias-limit-hold-6712.test.ts": 4000,@@ -781,7 +781,7 @@"test/sync-staged-catchup.test.ts": 5000,"test/sync-status-failure-detail-6513.test.ts": 3000,"test/sync-status-unblock.test.ts": 3050,- "test/sync-strict-unmanaged-gst2492.test.ts": 9244,+ "test/sync-strict-unmanaged-gst2492.test.ts": 16305,"test/sync-unblock-repair-error-gbra130.test.ts": 6300,"test/sync-uncommitted-origin-7130.test.ts": 18000,"test/sync-unreadable-file-gbra130.test.ts": 7500,