Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs(w13): Unreleased changelog and BEHAVIOR_CHANGES rows for fix wave 13 PR1

time-attackf29d0974420f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 15bd0883fe..008bb2c488 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,28 @@ credits are retained; no result has been reassigned to another provider. Origina
identifiers and attribution are available in the pre-removal Git revision
`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).
+## [Unreleased]
+
+**`embed --max-usd` is enforced, a fence write no longer wipes a database-only page, and synced quarantine overrides and Git children are locked down.**
+
+An approved `gbrain embed --max-usd` cap was never metered, so a run could spend past it; it is now enforced on every paid call, and `--yes` with no cost estimate runs under the default $5.00 cap. A facts fence write to a page with no file wrote a stub that overwrote the stored body (#6398); it is refused now. A file's own `quarantine_override` is kept only for an owner-tier source, and Git children no longer follow an inherited `GIT_DIR`. Nothing needs doing after you upgrade; to let an embed run spend more than $5.00 without an estimate, pass `--max-usd <usd>`.
+
+### Itemized changes
+
+- `gbrain embed` meters an approved `--max-usd` while it spends, for text, `--slugs`, `--images` (multimodal and OCR) and `--background` runs. A run that reaches its cap keeps what it wrote, exits 11 with reason `cost_cap` and prints the shell-quoted resume command; rerun it with `--max-usd <usd>` to raise the cap. `--yes` with no cost estimate is now capped at the default $5.00. Consent counts a paid multimodal or OCR model when `--images` is set, and `--slugs` stops at the next flag.
+- A facts fence write to a database-only or soft-deleted page is refused with `db_only_page` instead of writing a stub over it (#6398). Doctor `stub_guard_24h` counts these separately and they do not raise its warning.
+- A synced or imported file's `quarantine_override` is kept only when the source's write-gate tier is owner-tier; file repairs and reconcile apply the same rule, and an unreadable tier strips it (CSO T1).
+- Git children drop inherited repository-locating variables (`GIT_DIR`, `GIT_WORK_TREE`, `GIT_INDEX_FILE` and the rest Git lists), checkout discovery stops at a world-writable ancestor owned by someone else, hardened Git calls take literal pathspecs and only the exact options callers use, and `eval drift-watch` runs Git without a shell (CSO G1 to G4).
+- `pollCommand` output is shell-quoted and `LLMS_REPO_BASE` is normalized; the paid-consent skill lint says it is a documentation check, not enforcement.
+
+### For contributors
+
+- Flake fixes: the facts drain scheduler returns its tick promise (#6348); the capture-log weight fixture hand-shakes with its artifact (#6312); connector tests run on the production wait budget, with `withPausedOwnerBudget` where a test expects `writer_pending`.
+- Failure-only diagnostics, issues left open: the write-gate p95 check dumps every round's raw samples (#6430); the history fixture dumps effect, lock and request state (#6345); a shared source-row dump wraps managed connector recovery and every managed-extract-atoms scenario (#6427).
+- The shard-weight miner fetches unit capture artifacts and serial job logs per job; shard weights refreshed.
+- `test/git-env-guard.test.ts` fails on a new Git spawn that inherits `process.env` unfiltered.
+- New probes: `test/quarantine-override-tier.test.ts`, `test/quarantine-override-repair-reconcile.test.ts`, `test/fence-write-db-only.test.ts`, `test/doctor-stub-guard.test.ts`, `test/embed-max-usd-metered.serial.test.ts`, `test/embed-consent-multimodal.test.ts`, `test/gateway-ocr-reserve.test.ts`, `test/e2e/embed-background-cap.test.ts`, `test/persistence-effect-git-env.test.ts`, `test/drift-watch-args.test.ts`, `test/w13-small-hardening.test.ts`.
+
## [0.60.157.0] - 2026-10-10
**A database-only `validate: false` stamp no longer refuses every write; lost memory writes are counted and replayable.**
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.ts
index 6e24d89d86..cf0cbbb7e4 100644
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@ -374,6 +374,11 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText }
// `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.
{ since: '0.60.151.0', text: '`delta` and `context_pack` called without `include_private`, and the per-turn context block that harness hooks inject, now apply to their facts the same page-visibility rule they already apply to their pages. With `include_private` from the local CLI, `delta` and `context_pack` output is unchanged.' },
{ since: '0.60.157.0', text: 'A page whose database frontmatter carries the v0.13.1 grandfather `validate: false` while its canonical file does not is no longer refused `source_changed` on write; the next coordinated write publishes the stamp to the file. `remember` and other caller writes that were refused that way are counted by doctor (`lost_caller_writes`) and replayed by `gbrain repair failed-writes --source <id>` on the brain host, after the user agrees to the previewed set.' },
+ // Fix wave 13 PR1. `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.
+ { since: '0.60.157.0', text: '`gbrain embed --max-usd <usd>` is now enforced while the run spends, for text, `--slugs`, `--images` (multimodal and OCR) and `--background` runs; before, an approved cap was never metered. A run approved with `--yes` and no cost estimate now runs under the default $5.00 cap instead of none. A run that reaches its cap keeps the embeddings already written, exits 11 with reason `cost_cap` and prints the command that resumes; raise the cap by rerunning it with `--max-usd <usd>`.' },
+ { since: '0.60.157.0', text: 'A facts fence write to a page that exists only in the database (no file, or a soft-deleted page) is now refused with `db_only_page` instead of writing a stub file that then overwrote the stored body and timeline (#6398). Doctor `stub_guard_24h` counts these refusals separately and they do not raise its warning.' },
+ { since: '0.60.157.0', text: 'A `quarantine_override` carried in a file is now kept only when the file\'s source is owner-tier (operator_curated or above), on sync, import, file repairs and reconcile alike; a mirror, connector or lowered source loses it and the content gate decides, and a file repair of such a file refuses as an overlay.' },
+ { since: '0.60.157.0', text: 'Git commands gbrain runs no longer inherit `GIT_DIR`, `GIT_WORK_TREE`, `GIT_INDEX_FILE` and the other repository-locating variables, so gbrain started from a Git hook or a nested shell operates on the brain\'s own repository; a `.git` found above a world-writable directory owned by someone else is no longer treated as the brain\'s checkout; and gbrain\'s hardened Git calls take literal paths and only the exact options they use.' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */