Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(behavior-notice): the 4b block ends at the next comment and only later releases may follow it
garrytane6dca451a599
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.tsindex 4988999fe7..d13fd79ae5 100644--- a/src/core/behavior-change-notice.ts+++ b/src/core/behavior-change-notice.ts@@ -1010,6 +1010,7 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText;{ since: '0.60.320.0', text: 'A managed sync no longer stops a whole source when a file it would skip as already imported (a no-op waiver) has meanwhile become a symlink, a FIFO or an unreadable file in the working tree: that entry is simply not skipped and goes on like any other, where an unreadable file is held `file_unreadable`.' },{ since: '0.60.320.0', text: 'A managed sync holds a committed file whose name is not valid UTF-8 (a Latin-1 name from an older system or an archive) under the new hold code `path_not_utf8`, naming the rename that fixes it, and the rest of the source syncs; before, the file was held with a raw Git error or stopped the source. Renaming the file to a UTF-8 name clears the hold. With `sync.holds=fail` the run stops with `path_not_utf8`.' },{ since: '0.60.320.0', text: 'A managed sync of a folder of more than 20 pages moved with `git mv` keeps each page (a move, with its id, links and history): the mass-delete valve no longer counts a delete whose bytes arrive at a new path in the same round. Before, the valve withheld the old paths\' deletes in the first round, so every new path imported as a new page beside its old one (one `shares content_hash ... Indexing both` warning per file) and the old pages were deleted afterwards. A mass delete with nothing arriving is still withheld.' },+ // #7091 (Git effects on a source root below the Git toplevel){ since: '0.60.321.0', text: 'On a managed brain with Git durability on, a source whose root sits below its Git repository\'s top (for example `<repo>/brain`) now commits and pushes page edits and deletes: the Git effect compares every Git path listing relative to the source root, where before an edit to a tracked page or a delete completed `unchanged` with nothing committed or pushed (#7091). `gbrain doctor` `git_convergence` now matches such a checkout to its binding, and also warns (`stranded: true`) when tracked files under a durable source root are modified with no Git effect queued, running or parked, listing them in `details.roots[].uncommitted_pages`; its fix asks the user to commit them and then runs `gbrain git commit-push --push-only --keep-checkout --path <root>`.' },];diff --git a/test/behavior-change-notice-6712-block.test.ts b/test/behavior-change-notice-6712-block.test.tsindex 0a6fbd65aa..4979646308 100644--- a/test/behavior-change-notice-6712-block.test.ts+++ b/test/behavior-change-notice-6712-block.test.ts@@ -49,8 +49,8 @@ describe('#6712 PR 4b BEHAVIOR_CHANGES block', () => {expect(block.filter(row => row.since !== block[0]!.since).map(row => row.since)).toEqual([]);});- test("the block sits after master's rows: last in the array, and no earlier row is newer", () => {- expect(first + count).toBe(BEHAVIOR_CHANGES.length);+ test("the block sits after master's rows: only later releases follow it, and no earlier row is newer", () => {+ expect(BEHAVIOR_CHANGES.slice(first + count).filter(row => compareReleases(row.since, block[0]!.since) <= 0).map(row => row.since)).toEqual([]);expect(BEHAVIOR_CHANGES.slice(0, first).filter(row => compareReleases(row.since, block[0]!.since) > 0).map(row => row.since)).toEqual([]);});