Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix(qm): defer attested add_timeline_entry, add_link, put_page and edit_page (GST-1158 F9)

garrytan121900a494d2
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 204c52a603..db2f561cf2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,8 @@ identifiers and attribution are available in the pre-removal Git revision
## [Unreleased]
+**An attested call can no longer write pages directly: `add_timeline_entry`, `add_link`, `put_page` and `edit_page` are not attestable.** They write to pages that everyone who reads the page sees, so a trusted system acting as one person could put that person's words in front of a whole audience with no one approving them. They now wait for owner-approved proposals, the way `capture` and take writes already do. An operator whose `--attest-ops` list names one of them sees `gbrain auth rescope` refuse the list, and each attested call to it is refused (`actor_not_attested`, reason `op_not_attested`); a queued attested write of one fails when it publishes. Unattested calls, and credentials bound to a member, are unchanged. `v2.json` lists the new deferred operations; `v1.json` is unchanged.
+
**A `memory_recall` that names sources reads as that scope, never as the attested person, so a shared turn can no longer recall one member's private facts into a shared channel.** `memory_recall` gains `source_id` and `source_ids`. Named, the read drops the person's own recent facts and every member-page fact, keeps restricted pages hidden and never relaxes `visibility: private`. The contract for it is the new `docs/contracts/qm-memory-provider/v2.json`; `v1.json` stays byte-identical and a test holds it there. Three smaller provider fixes ride along.
### What changed
diff --git a/docs/contracts/qm-memory-provider/v2.json b/docs/contracts/qm-memory-provider/v2.json
index c5cd903b8a..95ca642599 100644
--- a/docs/contracts/qm-memory-provider/v2.json
+++ b/docs/contracts/qm-memory-provider/v2.json
@@ -23,9 +23,13 @@
"memory_write"
],
"deferred_ops": [
+ "add_link",
+ "add_timeline_entry",
"capture",
+ "edit_page",
"extract_facts",
"list_write_conflicts",
+ "put_page",
"takes_add",
"takes_resolve",
"takes_supersede",
diff --git a/docs/guides/qm.md b/docs/guides/qm.md
index 4e6dd33a18..c8cf081af1 100644
--- a/docs/guides/qm.md
+++ b/docs/guides/qm.md
@@ -18,6 +18,10 @@ gbrain access member link alice-example --qm U0ALICE # the canonical
Add `forget` with `--attest-ops forget,get_write_request,memory_recall,memory_write` if QM
should withdraw facts; an attested `forget` reaches only facts on the person's own
page, and any other id is `not_found`.
+Direct page writes (`add_timeline_entry`, `add_link`, `put_page`, `edit_page`) are not
+attestable: a person's words reach a shared page only through an owner-approved proposal,
+which is not served yet. `--attest-ops` refuses them, and a list that already names one
+is refused for it on every call (`actor_not_attested`, reason `op_not_attested`).
A client whose `bound_slug_prefixes` do not cover `memory/members/<member>` is refused
(`permission_denied`) when it saves for that member.
Links and the right are database state, so a repo-less brain works the same; where
diff --git a/docs/guides/write-refusals.md b/docs/guides/write-refusals.md
index c9289e493e..ed17169204 100644
--- a/docs/guides/write-refusals.md
+++ b/docs/guides/write-refusals.md
@@ -1006,7 +1006,7 @@ Links and the right live in the database, so they are the same on a repo-less br
| Code | What happened | What to do |
|---|---|---|
-| <a id="actor_not_attested"></a>`actor_not_attested` | The call named a person in a way gbrain does not honour. `reason` says which: `no_attest_right` (the credential holds no attest right, or the token of an attest client was issued before the upgrade or by another grant: the message then says to take a new client-credentials token), `op_not_attested` (the operation is not in the credential's attested operations, or is not attestable yet: `list_write_conflicts`, `capture`, `extract_facts` and `takes_add|update|resolve|supersede`; also when a queued write or agent job tool call runs after its operation was removed from the list), `argument_mismatch` (the `acting_user` argument differs from the header, or, with no header on a credential bound to a member, names anyone but that member; its own member id or a canonical id linked to it is dropped and the call runs exactly as the credential), `argument_without_attestation` (`acting_user` came without an attested header from a credential bound to no member, over stdio, or beside an `on_behalf_of` audience), `invalid_actor_id` (the header or argument is not 1-256 visible ASCII characters), `actor_required` (`memory_write` named no attested person) or `audience_not_supported` (the request carries `x-qm-audience`, QM's channel audience, which is refused on every call until wave 2). Nothing was read or written. | `no_attest_right` and `op_not_attested` are the brain operator's call: `fix` carries `gbrain auth rescope --client <id> --attest-actor qm [--attest-ops <list>]`. The other five are fixed in the calling harness: send the canonical id unchanged in the header from the attest credential, the same value or nothing in `acting_user` (on a member-bound credential with no header: its own member id, a canonical id linked to it, or nothing), and no `x-qm-audience`. |
+| <a id="actor_not_attested"></a>`actor_not_attested` | The call named a person in a way gbrain does not honour. `reason` says which: `no_attest_right` (the credential holds no attest right, or the token of an attest client was issued before the upgrade or by another grant: the message then says to take a new client-credentials token), `op_not_attested` (the operation is not in the credential's attested operations, or is not attestable yet: `list_write_conflicts`, `capture`, `extract_facts`, `takes_add|update|resolve|supersede` and the direct page writes `add_timeline_entry`, `add_link`, `put_page` and `edit_page`; also when a queued write or agent job tool call runs after its operation was removed from the list), `argument_mismatch` (the `acting_user` argument differs from the header, or, with no header on a credential bound to a member, names anyone but that member; its own member id or a canonical id linked to it is dropped and the call runs exactly as the credential), `argument_without_attestation` (`acting_user` came without an attested header from a credential bound to no member, over stdio, or beside an `on_behalf_of` audience), `invalid_actor_id` (the header or argument is not 1-256 visible ASCII characters), `actor_required` (`memory_write` named no attested person) or `audience_not_supported` (the request carries `x-qm-audience`, QM's channel audience, which is refused on every call until wave 2). Nothing was read or written. | `no_attest_right` and `op_not_attested` are the brain operator's call: `fix` carries `gbrain auth rescope --client <id> --attest-actor qm [--attest-ops <list>]`. The other five are fixed in the calling harness: send the canonical id unchanged in the header from the attest credential, the same value or nothing in `acting_user` (on a member-bound credential with no header: its own member id, a canonical id linked to it, or nothing), and no `x-qm-audience`. |
| <a id="actor_unlinked"></a>`actor_unlinked` | The id is not linked to an enabled member: never linked, unlinked, or the member is disabled or removed. Ids compare exactly, with no case folding. Nothing was read or written. A queued write or agent job made for the person is refused the same way when its link is gone or now names another member. `memory_recall` answers it as an empty success instead (`structuredContent: {facts: [], truncated: false, code: "actor_unlinked"}`), so a person not yet linked reads nothing. | The brain operator links it: `gbrain access member link <member> --qm <id>` (or `gbrain access member enable <member>`). |
## Related
diff --git a/docs/mcp/ADMIN.md b/docs/mcp/ADMIN.md
index 6f04e3daab..2789e58730 100644
--- a/docs/mcp/ADMIN.md
+++ b/docs/mcp/ADMIN.md
@@ -259,7 +259,10 @@ person's facts ([QM guide](../guides/qm.md)); `forget` and `forget_fact` withdra
only a fact on the person's own page (also for a credential bound to a member).
A request carrying `x-qm-audience` is refused (`audience_not_supported`). Not attestable yet, because what they
read or write is not yet kept to the person: `list_write_conflicts`, `capture`,
-`extract_facts` and `takes_add|update|resolve|supersede`.
+`extract_facts`, `takes_add|update|resolve|supersede`, and the direct page writes
+`add_timeline_entry`, `add_link`, `put_page` and `edit_page`, which wait for owner-approved
+proposals. An `--attest-ops` list that already names one of these is refused for it
+(`actor_not_attested`, reason `op_not_attested`), and a queued attested write of one fails when it publishes.
`gbrain access check --token <name>` shows the
result ([Model C](../tutorials/company-brain.md#two-scoping-models-pick-the-one-that-matches-your-shape)).
diff --git a/docs/tutorials/company-brain.md b/docs/tutorials/company-brain.md
index 749782ca4d..c8e466dbbc 100644
--- a/docs/tutorials/company-brain.md
+++ b/docs/tutorials/company-brain.md
@@ -169,7 +169,7 @@ gbrain auth rescope --client <client_id> --attest-actor qm # default ops: g
gbrain access member link alice-example --qm U0ALICE # --dry-run previews; unlink and links manage them
```
-Each request then carries `x-qm-actor: U0ALICE`, and each attested operation runs as `alice-example` (page reads, and page writes such as `put_page` or `add_tag` when listed in `--attest-ops`), never reading `visibility: private` pages, whatever the client's own grant says. A fact the person saves (`remember`) goes on their own page `memory/members/<member>`, which names them as its only reader, so another member, the client's bare calls and an unbound credential never recall it, and no one but that member writes under `memory/members/<member>` remotely; `delta` cursors, write receipts and agent jobs (`submit_agent`, `get_agent_job`) are kept to the person the same way, and `forget` or `forget_fact` withdraws only a fact on the person's own page. QM itself calls `memory_recall` and `memory_write` ([QM guide](../guides/qm.md)). Not attestable yet, because what they read or write is not yet kept to the person: `list_write_conflicts`, `capture`, `extract_facts` and `takes_add|update|resolve|supersede`. Under the header, `tools/list` lists only the attested operations and `resources/read` is refused. An `acting_user` argument must equal the header and is stripped. A client without the right, an operation outside `--attest-ops`, or an id that is not 1-256 visible ASCII characters refuses `actor_not_attested`; an id with no link to an enabled member refuses `actor_unlinked`. Ids compare exactly, unlink and disable take effect on the next call, and queued writes and jobs re-check the link before they commit or call a tool. Links and the right are database state, so this works the same on a repo-less brain.
+Each request then carries `x-qm-actor: U0ALICE`, and each attested operation runs as `alice-example` (page reads, and writes such as `add_tag` when listed in `--attest-ops`), never reading `visibility: private` pages, whatever the client's own grant says. A fact the person saves (`remember`) goes on their own page `memory/members/<member>`, which names them as its only reader, so another member, the client's bare calls and an unbound credential never recall it, and no one but that member writes under `memory/members/<member>` remotely; `delta` cursors, write receipts and agent jobs (`submit_agent`, `get_agent_job`) are kept to the person the same way, and `forget` or `forget_fact` withdraws only a fact on the person's own page. QM itself calls `memory_recall` and `memory_write` ([QM guide](../guides/qm.md)). Not attestable yet, because what they read or write is not yet kept to the person: `list_write_conflicts`, `capture`, `extract_facts` and `takes_add|update|resolve|supersede`; the direct page writes `add_timeline_entry`, `add_link`, `put_page` and `edit_page` wait for owner-approved proposals. Under the header, `tools/list` lists only the attested operations and `resources/read` is refused. An `acting_user` argument must equal the header and is stripped. A client without the right, an operation outside `--attest-ops`, or an id that is not 1-256 visible ASCII characters refuses `actor_not_attested`; an id with no link to an enabled member refuses `actor_unlinked`. Ids compare exactly, unlink and disable take effect on the next call, and queued writes and jobs re-check the link before they commit or call a tool. Links and the right are database state, so this works the same on a repo-less brain.
For most company-brain installs (10+ teammates each with their own AI client), Model A is the right starting point. If you're running the fat-agent-serves-everyone pattern from the personal-brain tutorial, Model B is genuinely simpler. You can also mix: separate sources for the obviously-different ones (customer notes vs internal-only) AND a `partners/<slug>/` convention inside the shared source for per-person workspace.
diff --git a/scripts/build-qm-memory-contract.ts b/scripts/build-qm-memory-contract.ts
index 2d7c3f7a29..1b36dac3fa 100644
--- a/scripts/build-qm-memory-contract.ts
+++ b/scripts/build-qm-memory-contract.ts
@@ -23,6 +23,8 @@ export const QM_CONTRACT_PATHS: Record<QmContractVersion, string> = {
export const QM_CONTRACT_PATH = QM_CONTRACT_PATHS[1];
/** The arguments v1 publishes per tool, frozen: later arguments appear from v2 on. */
const V1_PARAMS: Record<string, readonly string[]> = { memory_recall: ['query', 'max_chars', 'acting_user'], memory_write: ['facts', 'idempotency_key', 'acting_user'] };
+/** The deferred operations v1 published, frozen: GST-1158 F9 deferred more from v2 on. */
+const V1_DEFERRED_OPS: readonly string[] = ['capture', 'extract_facts', 'list_write_conflicts', 'takes_add', 'takes_resolve', 'takes_supersede', 'takes_update'];
/** Catalogue summaries v1 published before they changed, frozen. */
const V1_SUMMARIES: Record<string, string> = {
actor_not_attested: "A call named the person it serves (the x-qm-actor header or the acting_user argument) in a way gbrain does not honour: the credential holds no attest right, the operation is not in its attested operations, the argument differs from the header or comes without an attested header, or the id is not 1-256 visible ASCII characters; or a write that saves only as an attested person (memory_write) named none; or the request carries x-qm-audience, a channel audience gbrain does not serve yet. Nothing was read or written.",
@@ -86,7 +88,7 @@ export function buildQmMemoryContract(version: QmContractVersion): Record<string
? 'optional; on an attested call it must equal the header; with no header it is accepted only from a credential bound to a member and only naming that member (its member id or a canonical id linked to it), and the call then runs exactly as the credential; never chooses the person on its own'
: 'optional; must equal the header; never chooses the person on its own',
actor_id: { pattern: EXTERNAL_ID_RE.source, case_folding: false },
- system: 'qm', default_attest_ops: [...DEFAULT_ATTEST_OPS], deferred_ops: [...ACTOR_DEFERRED_OPS].sort(),
+ system: 'qm', default_attest_ops: [...DEFAULT_ATTEST_OPS], deferred_ops: v2 ? [...ACTOR_DEFERRED_OPS].sort() : [...V1_DEFERRED_OPS],
audit: 'the audit trail and stored writes record the canonical external id as sent, with its linked member',
},
tools: [...QM_MEMORY_OPS].sort().map(name => toolEntry(name, version)),
diff --git a/src/core/access/actor-model.ts b/src/core/access/actor-model.ts
index 6589d9ed3f..af4ebad99f 100644
--- a/src/core/access/actor-model.ts
+++ b/src/core/access/actor-model.ts
@@ -15,13 +15,15 @@ export const DEFAULT_ATTEST_OPS: readonly string[] = ['get_write_request', 'memo
* Operations no attested call may run yet: what they read or write is not keyed to the person, so one person could
* change or see another's (a conflict list across writers) or write facts and takes every reader sees. GST-359 C2
* keyed remember (the member page), delta cursors, write receipts and agent jobs to the person and removed them; D keyed
- * forget and forget_fact (the person's own member-page facts, withdrawn there alone). Refused at `--attest-ops`, at
- * every call and when a stored write or job tool call is re-resolved.
+ * forget and forget_fact (the person's own member-page facts, withdrawn there alone). GST-1158 F9 deferred the direct
+ * page writes (timeline entries, links, page puts and edits land on pages every reader of them sees) until an owner can
+ * approve them. Refused at `--attest-ops`, at every call and when a stored write or job tool call is re-resolved.
*/
export const ACTOR_DEFERRED_OPS: ReadonlySet<string> = new Set([
'list_write_conflicts',
'capture', 'extract_facts',
'takes_add', 'takes_update', 'takes_resolve', 'takes_supersede',
+ 'add_timeline_entry', 'add_link', 'put_page', 'edit_page',
]);
/** Canonical person ids: 1-256 visible ASCII characters (QM's credential broker rule), no case folding. */
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.ts
index 3e70413583..228296895c 100644
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@ -1415,6 +1415,7 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText;
{ since: 'TBD', id: 'memory_recall_scope_read_gst1094', text: '`memory_recall` now takes `source_id` and `source_ids`. A call that names sources reads as their audience, never as the attested person: no own recent facts first and no fact from any member page; a page restricted to named readers stays hidden and `visibility: private` is never relaxed. A source outside the credential\'s read grant is refused (`permission_denied`) and `__all__` is refused (`invalid_params`). Without sources, `memory_recall` is unchanged. The contract is `docs/contracts/qm-memory-provider/v2.json`; `v1.json` is unchanged.' },
{ since: 'TBD', id: 'member_bound_acting_user_gst900', text: 'A credential bound to a member may now send `acting_user` with no `x-qm-actor` header: its own member id, or a canonical id linked to that member, is dropped and the call runs exactly as the credential; any other value is refused (`actor_not_attested` reason `argument_mismatch`). A credential bound to no member is still refused (`argument_without_attestation`).' },
{ since: 'TBD', id: 'recall_max_chars_harn15', text: '`recall` now takes `max_chars` (a whole number from 200 to 12000, as `memory_recall`): it keeps the whole facts, then results, whose text fits, adds no marker and returns `truncated`; without it `recall` is unchanged.' },
+ { since: 'TBD', id: 'attest_direct_page_writes_deferred_gst1158', text: 'An attested call (`x-qm-actor`) may no longer run `add_timeline_entry`, `add_link`, `put_page` or `edit_page`: they write pages every reader of the page sees, so they wait for owner-approved proposals. `gbrain auth rescope --attest-ops` refuses a list that names one, a credential whose list already names one is refused for it on every attested call (`actor_not_attested`, reason `op_not_attested`), and a queued attested write of one fails when it publishes. Unattested calls and member-bound credentials are unchanged.' },
{ since: 'TBD', id: 'unknown_param_meta_only_harn15', text: 'A read that ignores a parameter the tool does not declare (`mcp.strict_params` `warn`, the default) no longer adds a `[gbrain notice unknown_param kind=info]` text block to the result: the warning is only in `_meta.warnings` (`{code: \'unknown_param\', param, suggestion?}`), so a harness that stores tool output in its turns never stores it. Writes still refuse unknown parameters, and `reject` mode is unchanged.' },
];
diff --git a/test/access-member-facts.test.ts b/test/access-member-facts.test.ts
index 6a051ae145..40c76e8548 100644
--- a/test/access-member-facts.test.ts
+++ b/test/access-member-facts.test.ts
@@ -58,7 +58,7 @@ const ALICE_ID = 'U0ALICE';
const BOB_ID = '[email protected]';
const ACME = 'companies/acme-example';
const CANARY = { alice: 'canaryfactalice', bob: 'canaryfactbob' } as const;
-const ATTEST_OPS = ['cancel_write_request', 'context_pack', 'delete_page', 'delta', 'edit_page', 'get_page', 'get_write_request', 'list_write_requests', 'put_page', 'recall', 'remember', 'search', 'whoami'];
+const ATTEST_OPS = ['add_tag', 'cancel_write_request', 'context_pack', 'delete_page', 'delta', 'get_page', 'get_write_request', 'list_write_requests', 'recall', 'remember', 'search', 'whoami'];
for (const kind of testBackends()) {
describe('member facts and member-scoped reads (' + kind + ', repo-less)', () => {
@@ -327,15 +327,15 @@ for (const kind of testBackends()) {
expect(replay.all).not.toContain('"id":"' + factId + '"');
// A write on a page both can read: the receipt still belongs to the person it was written for.
const shared = 'c2-shared-' + randomUUID().slice(0, 6);
- const content = '---\ntype: note\ntitle: Shared harbor plan\n---\n# Shared harbor plan\n\nShared plan ' + shared + '.';
- expect((await call(who.alice(), 'put_page', { slug: 'notes/' + shared, content, request_id: shared })).isError).toBe(false);
+ await importFromContent(engine, 'notes/' + shared, '---\ntype: note\ntitle: Shared harbor plan\n---\n# Shared harbor plan\n\nShared plan ' + shared + '.', { sourceId: SRC });
+ expect((await call(who.alice(), 'add_tag', { slug: 'notes/' + shared, tag: 'harbor', request_id: shared })).isError).toBe(false);
expect((await call(who.alice(), 'get_write_request', { request_id: shared })).isError).toBe(false);
for (const as of [who.bob(), who.bare()]) {
const got = await call(as, 'get_write_request', { request_id: shared });
expect({ isError: got.isError, code: got.json.code ?? got.json.error }).toEqual({ isError: true, code: 'not_found' });
expect((await call(as, 'list_write_requests', {})).all).not.toContain(shared);
}
- const bobReplay = await call(who.bob(), 'put_page', { slug: 'notes/' + shared, content, request_id: shared });
+ const bobReplay = await call(who.bob(), 'add_tag', { slug: 'notes/' + shared, tag: 'harbor', request_id: shared });
expect(bobReplay.isError).toBe(true);
expect(bobReplay.json.code ?? bobReplay.json.error).toBe('idempotency_conflict');
}, 60_000);
@@ -398,10 +398,12 @@ for (const kind of testBackends()) {
const dave = { token: 'qm', actor: DAVE_ID };
const squat = '---\ntype: note\ntitle: Memory of carol-example\nreadable_by:\n - member:bob-example\n - member:carol-example\n---\n# Memory of carol-example\n';
for (const as of [who.bob(), who.bobToken(), who.bare()]) {
+ // GST-1158 F9: an attested caller may not put or edit pages at all, so its refusal comes first.
+ const pageWriteRefusal = as.actor ? 'actor_not_attested' : 'permission_denied';
const put = await call(as, 'put_page', { slug: 'memory/members/carol-example', content: '---\ntype: note\ntitle: Squat\n---\n# Squat\n' });
- expect({ isError: put.isError, code: put.json.code ?? put.json.error }).toEqual({ isError: true, code: 'permission_denied' });
+ expect({ isError: put.isError, code: put.json.code ?? put.json.error }).toEqual({ isError: true, code: pageWriteRefusal });
const edit = await call(as, 'edit_page', { slug: 'memory/members/alice-example', expected_revision: '00000000-0000-0000-0000-000000000000', edits: [{ old_text: 'Memory', new_text: 'Mine' }] });
- expect({ isError: edit.isError, code: edit.json.code ?? edit.json.error }).toEqual({ isError: true, code: 'permission_denied' });
+ expect({ isError: edit.isError, code: edit.json.code ?? edit.json.error }).toEqual({ isError: true, code: pageWriteRefusal });
const del = await call(as, 'delete_page', { slug: 'memory/members/alice-example' });
expect({ isError: del.isError, code: del.json.code ?? del.json.error }).toEqual({ isError: true, code: 'permission_denied' });
}
diff --git a/test/access-qm-actor.test.ts b/test/access-qm-actor.test.ts
index 8243279fec..bcc46c10c6 100644
--- a/test/access-qm-actor.test.ts
+++ b/test/access-qm-actor.test.ts
@@ -445,7 +445,7 @@ for (const kind of testBackends()) {
}
// GST-359 C2 keyed remember, delta, the write receipts and agent jobs to the person (test/access-member-facts.test.ts);
// D keyed forget and forget_fact to the person's own member page (test/qm-memory-tools.test.ts).
- for (const op of ['capture', 'extract_facts', 'takes_add', 'list_write_conflicts']) {
+ for (const op of ['capture', 'extract_facts', 'takes_add', 'list_write_conflicts', 'add_timeline_entry', 'add_link', 'put_page', 'edit_page']) {
expect(ACTOR_DEFERRED_OPS.has(op)).toBe(true);
}
for (const op of ['get_agent_job', 'submit_agent', 'get_write_request', 'list_write_requests', 'cancel_write_request', 'delta', 'remember', 'forget', 'forget_fact']) {
@@ -459,6 +459,9 @@ for (const kind of testBackends()) {
const deferredCalls: Array<[string, Record<string, unknown>]> = [
['list_write_conflicts', {}], ['capture', { content: 'note' }], ['extract_facts', { text: 'x' }],
['takes_add', { page_slug: PAGES.alice.slug, claim: 'x' }],
+ // GST-1158 F9: direct page writes wait for owner-approved proposals.
+ ['add_timeline_entry', { slug: PAGES.alice.slug, date: '2026-11-03', summary: 'x' }], ['add_link', { from: PAGES.alice.slug, to: PAGES.bob.slug }],
+ ['put_page', { slug: PAGES.alice.slug, content: '# x\n' }], ['edit_page', { slug: PAGES.alice.slug, expected_revision: '00000000-0000-0000-0000-000000000000', edits: [{ old_text: 'a', new_text: 'b' }] }],
];
for (const [op, params] of deferredCalls) {
const out = await refused(call(bearer, op, params, { actor: ALICE_ID }), 'actor_not_attested', 'op_not_attested');