Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge remote-tracking branch 'origin/master' into capy/convergence-pr-b-barrier-ledger

garrytan4ab68397cacb
diff --cc src/core/persistence/model.ts
index 29b8f31325,1d3ca46322..5db30f9a9c
--- a/src/core/persistence/model.ts
+++ b/src/core/persistence/model.ts
@@@ -2,9 -2,10 +2,11 @@@ import type { BrainEngine } from '../en
import { assertRecoveryVersion } from './recovery-version.ts';
export type Principal = { kind: 'oauth_client' | 'legacy_token' | 'local_cli' | 'local_stdio' | 'application'; id: string };
-export type RequestState = 'queued' | 'running' | 'recovering' | 'committed' | 'conflict' | 'failed' | 'cancelled';
+/** `deferred` (PR B, docs/designs/REFRESH_WRITE_BARRIER.md): admitted during a worktree refresh, unclaimable until it is released. */
+export type RequestState = 'queued' | 'deferred' | 'running' | 'recovering' | 'committed' | 'conflict' | 'failed' | 'cancelled';
export interface WriteAuthority {
+ /** The caller's self-declared agent label (X-Gbrain-Agent-Label). Unverified text: nothing authorizes on it. */
+ agentLabel?: string;
version: 1;
principal: Principal;
remote: boolean;