Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge remote-tracking branch 'origin/master' into capy/gbra60-g6-door-writers
garrytan78cc0f120863
diff --cc src/core/behavior-change-notice.tsindex 1d429fa269,fc07aff2af..bfb7e47f13--- a/src/core/behavior-change-notice.ts+++ b/src/core/behavior-change-notice.ts@@@ -1250,10 -1250,14 +1250,18 @@@ export const BEHAVIOR_CHANGES: Readonly{ since: '0.60.441.0', text: 'On a managed brain, `add_link` and `remove_link` now edit a `## Links` table in the page\'s Markdown (one row per target, type and source, between `<!--- gbrain:links:begin -->` and `end` markers) through the page-mutation door, and the edge in the database is derived from that row, so a manual edge survives a rebuild from Git. Calling `add_link` again on an existing row without `context` or dates keeps the stored ones. Manual edges recorded before this release stay in the database as they were. Unmanaged brains are unchanged.' },{ since: '0.60.441.0', text: 'On a managed brain, `remove_link` no longer deletes an edge that the page\'s own text creates (a link, wikilink or frontmatter field): it keeps it and returns `derived_from_text` with a message saying to edit the page text (`edit_page`) instead.' },{ since: '0.60.441.0', text: 'On a managed brain, `extract_entities` writes the entity\'s timeline bullet into the entity page\'s Markdown through the page door, and the backlink to the source page is the link inside that bullet rather than a database-only edge.' },+ // GBRA-197 lane A (#7514). `since` is stamped at the merge slot.+ { since: '0.60.443.0', text: 'On a managed brain, an atom batch whose write did not commit is now reported as a write failure: each item in `gbrain dream --drain --json` carries the request id (`gbrain write-request -- <id>` explains it) and the refusal code, and a batch of such items no longer stops the drain as `provider_failure` (code `atom_drain_provider_failure`, `transient`, retryable). After 3 such failures on the same content the page or transcript is held (`held_failed`, doctor `extract_atoms_held_failed` with its receipt and retry command) instead of failing every window; no model call is made for it, and an explicit retry runs it again. An extraction whose model reply repeats an atom title now publishes one atom for that title instead of failing the whole batch.' },+ // #7516 (GBRA-197 lane B). `since` is stamped at the merge slot.+ { since: '0.60.443.0', text: 'A managed conversation-facts batch whose receipt lost its stored intent (a `purged_content` refusal the journal redacts, a purge, or receipt compaction) no longer sticks its pages. `gbrain extract-conversation-facts` derived the same batch request id again, so every run paid a model call, failed with `idempotency_conflict` (or got the old failure back) and inserted nothing. The batch now publishes under its pages\' next attempt after one more model call, and the next run makes none. A crashed run that resubmits the same batch still replays its receipt.' },+ // GBRA-197 (#7515 chat-connector hardening). `since` is stamped at the merge slot.+ { since: '0.60.443.0', text: 'Chat-connector syncs no longer refresh and retry after a 403: a 403 with a JSON error body or a `www-authenticate` header ends the run as `auth_required` at once, and a redirect is never followed (the session cookie only goes to the provider\'s own origin) and ends it as `auth_required` too. ChatGPT\'s token refresh now goes through the same client, so it is paced, counted and refused the same way: a refused refresh reports `forbidden`, `rate_limited` or `auth_required` instead of being ignored, and `gbrain connectors auth` stops there instead of probing. Re-copy the cookie when a sync reports `auth_required`.' },+ { since: '0.60.443.0', text: '`gbrain connectors sync --all` now syncs only providers whose `connectors.<p>.auto_sync` is on and names each one it skips; a queued `connector-sync` job rechecks `auto_sync` when it starts and returns `skipped` if it was turned off. A host cron running `connectors sync --all` for a provider without `auto_sync` stops syncing it: turn `auto_sync` on, or run `gbrain connectors sync <provider>`, which still syncs either way.' },+ { since: '0.60.443.0', text: 'Every chat-connector sync is bounded: at most 10,000 requests per run (5,000 per Claude organization, and at most 10 Claude organizations listed), list pages cut to the page size asked for, and new `--max-requests N` and `--deadline <90s|30m|2h>` flags on `gbrain connectors sync`. A run that reaches a bound ends `partial` with `stopReason` `max_requests` or `deadline`, keeps what it imported and holds the watermark; run `gbrain connectors sync <provider>` again (without `--full`) to continue.' },+ // GBRA-60 G6 (strict git-canonical sources are door-only). `since` is stamped at the merge slot.+ { since: 'TBD', text: 'On a brain whose writes are not managed, a direct import into a source configured `canonical: git` (`gbrain import` of markdown, code or an image, the streamed large-page import, and `extract_entities` creating or updating entity pages) is now refused with `strict_requires_managed` before anything is written, because only the managed writer commits a git-canonical source through its one door. Other sources and managed brains are unchanged.' },+ { since: 'TBD', text: 'On a managed brain, maintenance writers publish one commit per run instead of one per page: a dream patterns or concept republish batch, the entity stubs and timeline bullets of one `extract_entities` call, and one atom generation (its new atoms, activation and retirements) each publish in one transaction and one git commit. Each page still keeps its own request, receipt and failure; a page that fails no longer holds back the rest. `brainstorm --save` on a managed brain now reports its page as accepted and pending (exit 10) with the receipt to poll.' },+ { since: 'TBD', text: 'On a source configured `canonical: git`, a dream synthesis page is checked against its transcript and stamped with provenance before it is written, so a quote the model invented never reaches git history, and a world concept its provenance covers is published once at world. A connector page marked private, and a private calendar event, is stored database-only and never committed.' },];/** The newest disclosed change's release: the notice id moves only when a release adds rows. */