Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs: slug examples that the flag registry does not read as flags

garrytan5f0a5cc12948
diff --git a/src/commands/doctor/checks/slug-path-mismatch.ts b/src/commands/doctor/checks/slug-path-mismatch.ts
index 0741451847..c91eb9634f 100644
--- a/src/commands/doctor/checks/slug-path-mismatch.ts
+++ b/src/commands/doctor/checks/slug-path-mismatch.ts
@@ -1,7 +1,7 @@
/**
* #7305 `slug_path_mismatch`: live file-backed pages whose slug their recorded file path does not derive, such as a
- * hyphen run or a segment-final hyphen that the path rule folds (`notes/x-1900---2000-ab` recorded at
- * `notes/x-1900---2000-ab.md` imports as `notes/x-1900-2000-ab`). Import and sync keep such a page on its own slug only
+ * hyphen run or a segment-final hyphen that the path rule folds (a slug with three hyphens between `notes/x-1900` and
+ * `2000-ab`, recorded at that slug plus `.md`, imports as `notes/x-1900-2000-ab`). Import and sync keep such a page on its own slug only
* through the `slug:` line its file carries (#5966); a file without that line imports as the derived slug and forks a
* duplicate-origin twin (#6948), which sync then holds `origin_conflict`. put_page and capture refuse a new such slug;
* this counts the pages that already exist.
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.ts
index ced6b6033b..b6b99cc36e 100644
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@ -1099,7 +1099,7 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText;
{ since: '0.60.361.0', id: 'applied_watermark_7190', text: '`get_write_request` with `applied: true` (`gbrain write-request <id> --applied`) now returns `applied`, read live: whether the write is searchable yet (`searchable_yet`, `searchable`, `state`), the gap (`requests_ahead`, `unembedded_chunks`), the request `sequence` and the source\'s write watermark (`indexed_through`, `committed_through_request`, `requests_pending`), and a pending write\'s hint names that read; a write\'s own reply is otherwise unchanged. `gbrain sources status --json`, MCP `sources_status` and `gbrain sync --json` add a `watermark` per source: `indexed_through` (the last commit a finished sync pass reached; a deadline-stopped or partial pass never moves it), `embedded_through` (held pages count as not embedded), `committed_through_request`, `pending` (requests, commits and files behind HEAD, held files, withheld deletes) and `writer_heartbeat` (the drain-lease holder and its last progress).' },
// #7306 / #7305 (GBRA-177): pinned-question output cap; hyphen-run slugs at write time. `since` is stamped at the merge slot.
{ since: 'TBD', text: 'A pinned-question refresh whose answer does not fit the output cap no longer fails as `refresh_failed:provider_error` (or `model_output_not_json` after a second metered call): it fails `refresh_failed:answer_too_long:<cap>` after one call, the receipt\'s `blocked_reason` is `answer_too_long` with a fix naming the new key `cycle.standing_questions.max_output_tokens` (default 2000, the old fixed cap), and the `standing_questions` cycle phase skips that pin (reported `blocked:answer_too_long`) until the cap is raised instead of spending on it every cooldown. `gbrain questions refresh <id>` still runs when asked.' },
- { since: 'TBD', text: 'A put_page or capture of a new slug with a hyphen run or a segment-final hyphen (`notes/x-1900---2000-ab`, `notes/x-`) is refused with `invalid_params` (detail `slug_hyphen_run`) naming the folded slug (`notes/x-1900-2000-ab`), the slug import and sync derive from its file. A page that already exists under such a slug still updates, and its response carries `slug_advisory`. New doctor check `slug_path_mismatch` counts live pages whose slug their recorded file path does not derive and warns when the file lacks the `slug:` line that keeps the page, naming the read-only `gbrain repair frontmatter --source <id>` preview.' },
+ { since: 'TBD', text: 'A put_page or capture of a new slug with a hyphen run or a segment-final hyphen (three hyphens between `notes/x-1900` and `2000-ab`, or `notes/x-`) is refused with `invalid_params` (detail `slug_hyphen_run`) naming the folded slug (`notes/x-1900-2000-ab`), the slug import and sync derive from its file. A page that already exists under such a slug still updates, and its response carries `slug_advisory`. New doctor check `slug_path_mismatch` counts live pages whose slug their recorded file path does not derive and warns when the file lacks the `slug:` line that keeps the page, naming the read-only `gbrain repair frontmatter --source <id>` preview.' },
// #7311 / #7305 (GBRA-177): retention purge of a shared-origin tombstone. `since` is stamped at the merge slot.
{ since: 'TBD', text: 'The 72 h retention purge (the autopilot purge phase, `gbrain pages purge-deleted`) now removes a soft-deleted page whose canonical file another live page of its source records (a duplicate deleted with receipt `write_through.skipped: shared_origin`) database-only: its row, chunks, links and facts go; the file and the surviving page stay, and no content or fact tombstone is written. It used to refuse every run as a shared origin, so the purge phase failed each pass (`managed_purge_failed`), `global_maintenance_stalled` never cleared and the tombstone parked after 5 failures. A tombstone parked by that refusal is retried once by the first purge run after the upgrade and purged then. An owner `gbrain delete <slug> --purge` of such a page still refuses (it would tombstone the survivor\'s content), and on a soft-deleted page it now names the retention purge instead of a soft delete. Nothing changes on upgrade.' },
{ since: 'TBD', text: 'A purge park (a soft-deleted page the purge stopped retrying after 5 failed purges) now records the gbrain version that wrote it. The first purge run of another version (the autopilot purge phase, the purge job, `gbrain pages purge-deleted`) tries such a park once more, so a park whose cause the upgrade fixed clears by itself instead of waiting for `--retry-parked`; a failure parks it again under the new version, so each version tries it at most once. A park written before parks recorded a version counts as another version\'s. Doctor `purge_parked_pages` counts only parks the running version wrote. `--retry-parked` is unchanged.' },
diff --git a/src/core/persistence/suffixed-slug.ts b/src/core/persistence/suffixed-slug.ts
index a38bfb49f0..7c756b3512 100644
--- a/src/core/persistence/suffixed-slug.ts
+++ b/src/core/persistence/suffixed-slug.ts
@@ -21,7 +21,7 @@
* replayed request never reaches this check.
*
* #7305: put_page and capture also refuse a new slug with a hyphen run or a
- * segment-final hyphen (`notes/x-1900---2000-ab`, `notes/x-`), naming the
+ * segment-final hyphen (three hyphens between `notes/x-1900` and `2000-ab`, or `notes/x-`), naming the
* folded slug (`notes/x-1900-2000-ab`): import and sync derive that folded slug
* from the file, so the page would keep its identity only through the `slug:`
* line its file is stamped with (#5966), and a file rewritten without it forks