Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(errors): source_changed names the canonical_file_missing exit (#6696 C10)
garrytan4b272d99620b
diff --git a/docs/guides/error-codes.md b/docs/guides/error-codes.mdindex c7c9457ec8..53e2265a98 100644--- a/docs/guides/error-codes.md+++ b/docs/guides/error-codes.md@@ -2855,7 +2855,7 @@ More: [docs/guides/shared-brain-skills.md#troubleshoot-leave-and-recover](../../| Meaning | Why | Next step | Who acts · consent | Verify | Exit | Retryable ||---|---|---|---|---|---|---|-| The source changed during the operation; nothing was committed. | Covers a replaced, archived or re-bound source and a canonical file that differs from the page's database copy (detail file_database_drift). A page that records no file of its own reconciles against the file at its slug path only with gbrain sources reconcile <source> <slug> --preview --adopt-slug-path. | Correct the request using the message above, then retry. | agent | `repeat the read that failed` | 1 | no |+| The source changed during the operation; nothing was committed. | Covers a replaced, archived or re-bound source and a canonical file that differs from the page's database copy (detail file_database_drift). A page that records no file of its own reconciles against the file at its slug path only with gbrain sources reconcile <source> <slug> --preview --adopt-slug-path. A canonical file that is gone while its page is live (reason canonical_file_missing, a ghost page) never clears by retrying or syncing: a person restores the file and syncs, or removes the page (docs/guides/write-refusals.md#canonical_file_missing). | Correct the request using the message above, then retry. | agent | `repeat the read that failed` | 1 | no |### source_id_takendiff --git a/src/core/error-registry.ts b/src/core/error-registry.tsindex 67c3f24a5f..a9f1a63738 100644--- a/src/core/error-registry.ts+++ b/src/core/error-registry.ts@@ -430,7 +430,7 @@ export const CODES = {skill_retention_capacity: { class: 'caller', summary: "Retained skill revisions exceed this source storage budget." },skill_unavailable: { class: 'caller', summary: "The qualified shared skill is not in this installation's current authorized view.", docs: 'docs/guides/shared-brain-skills.md#troubleshoot-leave-and-recover' },source_binding_required: { class: 'caller', summary: "A write needs an explicit source binding on this MCP server (--source-guard)." },- source_changed: { class: 'caller', summary: "The source changed during the operation; nothing was committed.", why: "Covers a replaced, archived or re-bound source and a canonical file that differs from the page's database copy (detail file_database_drift). A page that records no file of its own reconciles against the file at its slug path only with gbrain sources reconcile <source> <slug> --preview --adopt-slug-path." },+ source_changed: { class: 'caller', summary: "The source changed during the operation; nothing was committed.", why: "Covers a replaced, archived or re-bound source and a canonical file that differs from the page's database copy (detail file_database_drift). A page that records no file of its own reconciles against the file at its slug path only with gbrain sources reconcile <source> <slug> --preview --adopt-slug-path. A canonical file that is gone while its page is live (reason canonical_file_missing, a ghost page) never clears by retrying or syncing: a person restores the file and syncs, or removes the page (docs/guides/write-refusals.md#canonical_file_missing)." },source_id_taken: { class: 'caller', summary: "This source already exists and does not match this exact admitted request." },source_mismatch: { class: 'caller', summary: "The request names a different source than the one this serve is bound to; it is refused, never rerouted." },source_not_ready: { class: 'caller', summary: "A committed source and approved schema are required." },