Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(g8a): CHANGELOG entry
garrytane7777d618c5c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6055ec816e..532414be4a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,34 @@ credits are retained; no result has been reassigned to another provider. Originaidentifiers and attribution are available in the pre-removal Git revision`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).+## [0.60.458.0] - 2026-10-25++**`gbrain sources canonical <id> --to git` converts a source to strict git-canonical mode, and `--to mixed` turns it back. It previews every page it would adopt into Git, declare database-only or let Git win, and refuses to lose any database content.**++The command is off unless an operator runs it, trusted local CLI only, on a managed brain. Nothing rewrites data on upgrade.++### What changed++| Situation | Before | Now |+|---|---|---|+| Turning a source strict | no verb; only the config flag | `gbrain sources canonical <id> --to git` previews per-category counts bound to HEAD by a plan hash; `--apply --expect <hash>` runs it |+| Pages the database holds ahead of Git, or pages with no file and no declared class | stayed database-only | adopted: their export bytes are committed through the door, 200 pages per commit, with no database row changed |+| Ignored and db_only paths, derive folders, images, private pages | n/a | declared database-only; nothing written, nothing deleted |+| Held deletions, and unknown-side drift whose row equals the committed file | open holds | resolved by Git wins |+| Any database content the conversion would lose, including unknown-side drift whose row differs from HEAD, or a working-tree edit that differs from both HEAD and the database | n/a | refused with `git_conversion_blocked`, listed by path |+| Work that lands between the last pass and the flag | n/a | a strict pass and a re-preview run after the flag; anything left ends `git_conversion_incomplete` and the source stays strict |+| Turning strict off | edit the config | `--to mixed` removes the flag and changes nothing else |+| A strict source's page that no import record proves (`legacy_unverified`) | kept the database version | imports the committed blob (conversion adopts such pages first) |++### Itemized changes++- `src/core/persistence/git-conversion.ts` (new) and `src/commands/sources-canonical.ts` (new): the plan, the apply and the CLI. Remote callers get `trusted_cli_required`; unmanaged brains get `strict_requires_managed`; there is no MCP operation.+- `src/core/persistence/sync-discovery.ts` and `src/commands/sync.ts`: an internal `SyncOpts.canonicalOverride` the apply uses for its strict-equivalent pass; it has no CLI flag and refuses remote callers.+- `src/core/persistence/sync-classify.ts`: `legacy_unverified` takes the committed blob on a strict source.+- Reclassifying a parked effect onto a declared-ignored page stamps `pages.database_only_reason` in one transaction (metadata only).+- `src/core/error-registry.ts`: `git_conversion_blocked`, `git_conversion_incomplete`. Fault points `conversion:group_committed`, `conversion:before_flip`.+- Tests: `test/git-canonical-conversion-g8a.test.ts` on PGLite and Postgres.+## [0.60.457.0] - 2026-10-25**Remote MCP callers and thin clients that write to a git-canonical source (`canonical: git`, off by default) are now proven to commit through the owner's door, and a door commit that landed before its row stays on the write's receipt.**