@consiliency/agent-board-schema 1.24.0 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/fixtures/already-applied.json +8 -0
  2. package/migrations/20260906000100_agent_board_enroll_resumption.sql +749 -0
  3. package/migrations/20260907000100_agent_board_signed_authority_provenance.sql +243 -0
  4. package/package.json +1 -1
  5. package/schema-manifest.json +21 -3
  6. package/src/tooling.test.mjs +3 -3
  7. package/tests/agent_board_atomic_fleet_onboarding.test.sql +124 -112
  8. package/tests/agent_board_claimkey.test.sql +25 -3
  9. package/tests/agent_board_consent_emission.test.sql +17 -13
  10. package/tests/agent_board_consent_gating.test.sql +55 -11
  11. package/tests/agent_board_delegation_policies.test.sql +3 -1
  12. package/tests/agent_board_enroll_resumption.test.sql +412 -0
  13. package/tests/agent_board_federated_lock_order_class.test.sql +1 -3
  14. package/tests/agent_board_fedsession_provider_absence_gate.test.sql +9 -6
  15. package/tests/agent_board_fleet_machine_reactivation.test.sql +56 -5
  16. package/tests/agent_board_mint_harden.test.sql +39 -4
  17. package/tests/agent_board_outbox_wake_ordering.test.sql +27 -12
  18. package/tests/agent_board_rejectsem.test.sql +1 -1
  19. package/tests/agent_board_rolereset.test.sql +23 -2
  20. package/tests/agent_board_rowid.test.sql +24 -13
  21. package/tests/agent_board_scoped_send_regrant.test.sql +8 -4
  22. package/tests/agent_board_signed_authority_provenance.test.sql +454 -0
  23. package/tests/agent_board_source_strip_helper.test.sql +285 -0
  24. package/tests/agent_board_wake_recovery.test.sql +58 -40
  25. package/tests/catalog/p_metadata_parameters.json +689 -0
  26. package/tests/fixtures/test-prereqs.sql +313 -0
  27. package/tests/isolation/expected/atomic_fleet_lifecycle_races.out +3 -3
@@ -0,0 +1,689 @@
1
+ {
2
+ "$comment": "GENERATED by scripts/build-p-metadata-snapshot.mjs from pg_catalog — do not hand-edit. EVERY agent_board function, with whether it declares an INPUT parameter named p_metadata. Derived with NO name filter: the client's signed set is not an input to the query. A signed RPC must have declares_p_metadata true on EVERY overload — the client merges its signing envelope into p_metadata and nowhere else, so an overload without it is a PostgREST signature mismatch, not an unsigned call (#261).",
3
+ "functions": [
4
+ {
5
+ "signature": "_active_board_membership_id(p_board_id uuid, p_agent_id uuid)",
6
+ "declares_p_metadata": false
7
+ },
8
+ {
9
+ "signature": "_addressing_agent_ids_or_raise(p_actor_agent_id uuid, p_recipient_descriptors jsonb)",
10
+ "declares_p_metadata": false
11
+ },
12
+ {
13
+ "signature": "_addressing_descriptors_array(p_descriptors jsonb)",
14
+ "declares_p_metadata": false
15
+ },
16
+ {
17
+ "signature": "_agent_principal_active(p_agent_id uuid)",
18
+ "declares_p_metadata": false
19
+ },
20
+ {
21
+ "signature": "_board_membership_events_provenance_guard()",
22
+ "declares_p_metadata": false
23
+ },
24
+ {
25
+ "signature": "_build_fetch_descriptor(p_surface text, p_target_id uuid, p_view text, p_reason text, p_filters jsonb)",
26
+ "declares_p_metadata": false
27
+ },
28
+ {
29
+ "signature": "_can_claim_resource(p_resource_kind text, p_resource_key text)",
30
+ "declares_p_metadata": false
31
+ },
32
+ {
33
+ "signature": "_can_claim_resource_for(p_actor uuid, p_resource_kind text, p_resource_key text)",
34
+ "declares_p_metadata": false
35
+ },
36
+ {
37
+ "signature": "_canonical_claim_key(p_resource_kind text, p_resource_key text)",
38
+ "declares_p_metadata": false
39
+ },
40
+ {
41
+ "signature": "_check_and_bump_child_mint_rate(p_root_agent_id uuid, p_limit integer, p_window interval)",
42
+ "declares_p_metadata": false
43
+ },
44
+ {
45
+ "signature": "_claimgate_kind_enforced(p_resource_kind text)",
46
+ "declares_p_metadata": false
47
+ },
48
+ {
49
+ "signature": "_claimgate_max_lease_horizon()",
50
+ "declares_p_metadata": false
51
+ },
52
+ {
53
+ "signature": "_claimgate_ownerless_guards_enabled()",
54
+ "declares_p_metadata": false
55
+ },
56
+ {
57
+ "signature": "_claimgate_ownerless_quota()",
58
+ "declares_p_metadata": false
59
+ },
60
+ {
61
+ "signature": "_claimgate_ownerless_ttl_cap()",
62
+ "declares_p_metadata": false
63
+ },
64
+ {
65
+ "signature": "_claimgate_promotion_blockers(p_resource_kind text)",
66
+ "declares_p_metadata": false
67
+ },
68
+ {
69
+ "signature": "_current_agent_bound_to_machine(p_machine_id uuid)",
70
+ "declares_p_metadata": false
71
+ },
72
+ {
73
+ "signature": "_current_agent_can_access_task(p_task_id uuid)",
74
+ "declares_p_metadata": false
75
+ },
76
+ {
77
+ "signature": "_current_agent_can_access_thread(p_thread_id uuid)",
78
+ "declares_p_metadata": false
79
+ },
80
+ {
81
+ "signature": "_current_agent_can_mutate_task(p_task_id uuid)",
82
+ "declares_p_metadata": false
83
+ },
84
+ {
85
+ "signature": "_current_agent_can_post_to_thread(p_thread_id uuid)",
86
+ "declares_p_metadata": false
87
+ },
88
+ {
89
+ "signature": "_current_agent_can_send_to_board(p_board_id uuid)",
90
+ "declares_p_metadata": false
91
+ },
92
+ {
93
+ "signature": "_current_agent_has_board_access(p_board_id uuid)",
94
+ "declares_p_metadata": false
95
+ },
96
+ {
97
+ "signature": "_default_provision_display_name(p_slug text)",
98
+ "declares_p_metadata": false
99
+ },
100
+ {
101
+ "signature": "_emit_membership_event(p_board_id uuid, p_agent_id uuid, p_membership_state text, p_event_kind text)",
102
+ "declares_p_metadata": false
103
+ },
104
+ {
105
+ "signature": "_enforce_agent_lineage_owner()",
106
+ "declares_p_metadata": false
107
+ },
108
+ {
109
+ "signature": "_enforce_raw_key_fingerprint()",
110
+ "declares_p_metadata": false
111
+ },
112
+ {
113
+ "signature": "_enroll_federated_human_after_revocation_gate(p_issuer text, p_audience text, p_subject text, p_human_identity_claim jsonb, p_display_name text)",
114
+ "declares_p_metadata": false
115
+ },
116
+ {
117
+ "signature": "_enroll_federated_identity_once(p_issuer text, p_audience text, p_subject text, p_human_identity_claim jsonb, p_slug text, p_agent_public_key text, p_agent_public_key_format text, p_agent_public_key_fingerprint text, p_pop_verified boolean, p_actor_sub text, p_agent_kind text, p_requested_scopes text[], p_requested_board_scopes text[], p_invite_code text)",
118
+ "declares_p_metadata": false
119
+ },
120
+ {
121
+ "signature": "_ensure_agent_auth_user(p_slug text)",
122
+ "declares_p_metadata": false
123
+ },
124
+ {
125
+ "signature": "_fedsession_autojoin_default_board(p_provider agent_board.identity_providers, p_agent_id uuid)",
126
+ "declares_p_metadata": false
127
+ },
128
+ {
129
+ "signature": "_fleet_onboarding_bounds_immutable()",
130
+ "declares_p_metadata": false
131
+ },
132
+ {
133
+ "signature": "_grant_within_ceiling(p_grantor_agent_id uuid, p_board_id uuid, p_grantee_role text)",
134
+ "declares_p_metadata": false
135
+ },
136
+ {
137
+ "signature": "_invite_permitted(p_board_id uuid, p_target_agent_id uuid, p_inviter_agent_id uuid)",
138
+ "declares_p_metadata": false
139
+ },
140
+ {
141
+ "signature": "_is_service_role()",
142
+ "declares_p_metadata": false
143
+ },
144
+ {
145
+ "signature": "_issue_agent_credential(p_agent_id uuid, p_credential_label text, p_replaces_credential_id uuid, p_metadata jsonb)",
146
+ "declares_p_metadata": true
147
+ },
148
+ {
149
+ "signature": "_lock_board_authority_ceiling(p_board_id uuid)",
150
+ "declares_p_metadata": false
151
+ },
152
+ {
153
+ "signature": "_lock_idempotency_key(p_namespace text, p_idempotency_key text)",
154
+ "declares_p_metadata": false
155
+ },
156
+ {
157
+ "signature": "_membership_consent_kind(p_board_id uuid, p_agent_id uuid)",
158
+ "declares_p_metadata": false
159
+ },
160
+ {
161
+ "signature": "_membership_consent_present(p_board_id uuid, p_agent_id uuid)",
162
+ "declares_p_metadata": false
163
+ },
164
+ {
165
+ "signature": "_mint_agent_refresh_token()",
166
+ "declares_p_metadata": false
167
+ },
168
+ {
169
+ "signature": "_next_callback_attempt_number(p_outbox_event_id uuid)",
170
+ "declares_p_metadata": false
171
+ },
172
+ {
173
+ "signature": "_next_task_event_sequence(p_task_id uuid)",
174
+ "declares_p_metadata": false
175
+ },
176
+ {
177
+ "signature": "_next_thread_message_sequence(p_thread_id uuid)",
178
+ "declares_p_metadata": false
179
+ },
180
+ {
181
+ "signature": "_normalize_provision_slug(p_slug text)",
182
+ "declares_p_metadata": false
183
+ },
184
+ {
185
+ "signature": "_normalized_federation_audience(p_claim jsonb)",
186
+ "declares_p_metadata": false
187
+ },
188
+ {
189
+ "signature": "_owned_callback_endpoint(p_endpoint_id uuid, p_owner_agent_id uuid)",
190
+ "declares_p_metadata": false
191
+ },
192
+ {
193
+ "signature": "_protect_federation_contract()",
194
+ "declares_p_metadata": false
195
+ },
196
+ {
197
+ "signature": "_queue_board_post_callbacks(p_board_id uuid, p_message_id uuid, p_subject text, p_preview text, p_priority text, p_fetch_descriptor jsonb)",
198
+ "declares_p_metadata": false
199
+ },
200
+ {
201
+ "signature": "_queue_inbox_callbacks(p_inbox_item_id uuid, p_event_category text)",
202
+ "declares_p_metadata": false
203
+ },
204
+ {
205
+ "signature": "_raw_fingerprint_backfill_collisions()",
206
+ "declares_p_metadata": false
207
+ },
208
+ {
209
+ "signature": "_raw_key_canonical(p_public_key text)",
210
+ "declares_p_metadata": false
211
+ },
212
+ {
213
+ "signature": "_raw_key_fingerprint(p_public_key text)",
214
+ "declares_p_metadata": false
215
+ },
216
+ {
217
+ "signature": "_record_send_authz_telemetry(p_kind text, p_origin text, p_actor_agent_id uuid, p_board_id uuid, p_operation text, p_scope_key text, p_denial_class text, p_metadata jsonb)",
218
+ "declares_p_metadata": true
219
+ },
220
+ {
221
+ "signature": "_record_signed_write_evidence(p_source_kind text, p_source_id uuid, p_operation text, p_payload jsonb, p_gateway_decision jsonb)",
222
+ "declares_p_metadata": false
223
+ },
224
+ {
225
+ "signature": "_redeem_fleet_invite_for_agent(p_code text, p_agent_id uuid)",
226
+ "declares_p_metadata": false
227
+ },
228
+ {
229
+ "signature": "_redeem_invite_for_agent(p_code text, p_agent_id uuid)",
230
+ "declares_p_metadata": false
231
+ },
232
+ {
233
+ "signature": "_redeem_unbounded_invite_for_agent(p_code text, p_agent_id uuid)",
234
+ "declares_p_metadata": false
235
+ },
236
+ {
237
+ "signature": "_require_platform_admin_user_id()",
238
+ "declares_p_metadata": false
239
+ },
240
+ {
241
+ "signature": "_resolve_addressing_recipient_rows(p_actor_agent_id uuid, p_recipient_descriptors jsonb)",
242
+ "declares_p_metadata": false
243
+ },
244
+ {
245
+ "signature": "_resolve_send_fleet_scope(p_actor uuid)",
246
+ "declares_p_metadata": false
247
+ },
248
+ {
249
+ "signature": "_resolved_actor_agent_id(p_supplied_agent_id uuid, p_param_name text)",
250
+ "declares_p_metadata": false
251
+ },
252
+ {
253
+ "signature": "_revoke_agent_principal(p_agent_id uuid, p_revoked_by_agent_id uuid, p_reason text)",
254
+ "declares_p_metadata": false
255
+ },
256
+ {
257
+ "signature": "_role_rank(p_role text)",
258
+ "declares_p_metadata": false
259
+ },
260
+ {
261
+ "signature": "_send_fleet_scope_mode(p_scope_key text)",
262
+ "declares_p_metadata": false
263
+ },
264
+ {
265
+ "signature": "_signed_write_actor_id(p_payload jsonb, p_gateway_decision jsonb, p_actor_field text)",
266
+ "declares_p_metadata": false
267
+ },
268
+ {
269
+ "signature": "_trim_inbox_text(p_value text, p_max_length integer)",
270
+ "declares_p_metadata": false
271
+ },
272
+ {
273
+ "signature": "_upsert_board_membership_state(p_board_id uuid, p_agent_id uuid, p_membership_state text, p_created_by_agent_id uuid, p_metadata jsonb, p_membership_id uuid, p_event_kind text)",
274
+ "declares_p_metadata": true
275
+ },
276
+ {
277
+ "signature": "_upsert_delivery_recipient(p_delivery_mode text, p_recipient_agent_id uuid, p_source_kind text, p_source_message_id uuid, p_source_task_id uuid, p_source_delegation_id uuid, p_board_id uuid, p_board_membership_id uuid, p_metadata jsonb)",
278
+ "declares_p_metadata": true
279
+ },
280
+ {
281
+ "signature": "_upsert_inbox_item(p_delivery_recipient_id uuid, p_recipient_agent_id uuid, p_board_id uuid, p_delivery_mode text, p_source_kind text, p_source_message_id uuid, p_source_task_id uuid, p_source_delegation_id uuid, p_subject text, p_preview text, p_priority text, p_visible_in_inbox boolean, p_visible_in_board_feed boolean, p_fetch_descriptor jsonb, p_metadata jsonb)",
282
+ "declares_p_metadata": true
283
+ },
284
+ {
285
+ "signature": "acquire_claim(p_agent_id uuid, p_resource_kind text, p_resource_key text, p_lease_expires_at timestamp with time zone, p_task_id uuid, p_thread_id uuid, p_metadata jsonb)",
286
+ "declares_p_metadata": true
287
+ },
288
+ {
289
+ "signature": "add_artifact(p_created_by_agent_id uuid, p_uri text, p_artifact_type text, p_storage_kind text, p_thread_id uuid, p_task_id uuid, p_message_id uuid, p_task_event_id uuid, p_metadata jsonb)",
290
+ "declares_p_metadata": true
291
+ },
292
+ {
293
+ "signature": "append_task_event(p_task_id uuid, p_actor_agent_id uuid, p_event_type text, p_payload jsonb, p_status text, p_assigned_agent_id uuid, p_completed_at timestamp with time zone)",
294
+ "declares_p_metadata": false
295
+ },
296
+ {
297
+ "signature": "block_board_inviter(p_board_id uuid, p_inviter_agent_id uuid, p_target_agent_id uuid, p_metadata jsonb)",
298
+ "declares_p_metadata": true
299
+ },
300
+ {
301
+ "signature": "bootstrap_board_owner_memberships()",
302
+ "declares_p_metadata": false
303
+ },
304
+ {
305
+ "signature": "check_and_bump_enroll_rate(p_source text, p_limit integer, p_window interval)",
306
+ "declares_p_metadata": false
307
+ },
308
+ {
309
+ "signature": "claim_callback_outbox_events(p_batch_size integer)",
310
+ "declares_p_metadata": false
311
+ },
312
+ {
313
+ "signature": "create_board(p_created_by_agent_id uuid, p_slug text, p_name text, p_description text, p_metadata jsonb, p_visibility text)",
314
+ "declares_p_metadata": true
315
+ },
316
+ {
317
+ "signature": "create_fleet_onboarding_invite(p_board_id uuid, p_machine_id uuid, p_harness_kind text, p_harness_label text, p_repo_slug text, p_repo_fingerprint text, p_repo_scope_role text, p_agent_role text, p_expected_agent_handle text, p_max_uses integer, p_expires_at timestamp with time zone, p_created_by_agent_id uuid, p_metadata jsonb)",
318
+ "declares_p_metadata": true
319
+ },
320
+ {
321
+ "signature": "create_invite_link(p_board_id uuid, p_preset_role text, p_preset_membership_state text, p_max_uses integer, p_expires_at timestamp with time zone, p_created_by_agent_id uuid, p_metadata jsonb)",
322
+ "declares_p_metadata": true
323
+ },
324
+ {
325
+ "signature": "create_or_find_thread(p_created_by_agent_id uuid, p_subject text, p_idempotency_key text, p_thread_type text, p_metadata jsonb)",
326
+ "declares_p_metadata": true
327
+ },
328
+ {
329
+ "signature": "create_task(p_thread_id uuid, p_created_by_agent_id uuid, p_title text, p_details text, p_assigned_agent_id uuid, p_parent_task_id uuid, p_priority text, p_orchestration_mode text, p_metadata jsonb)",
330
+ "declares_p_metadata": true
331
+ },
332
+ {
333
+ "signature": "create_tasking_delivery(p_thread_id uuid, p_created_by_agent_id uuid, p_title text, p_details text, p_recipient_agent_ids uuid[], p_board_id uuid, p_priority text, p_orchestration_mode text, p_idempotency_key text, p_metadata jsonb)",
334
+ "declares_p_metadata": true
335
+ },
336
+ {
337
+ "signature": "create_tasking_delivery(p_thread_id uuid, p_created_by_agent_id uuid, p_title text, p_details text, p_recipient_descriptors jsonb, p_board_slug text, p_addressing_mode text, p_priority text, p_orchestration_mode text, p_idempotency_key text, p_metadata jsonb)",
338
+ "declares_p_metadata": true
339
+ },
340
+ {
341
+ "signature": "create_thread(p_created_by_agent_id uuid, p_subject text, p_thread_type text, p_metadata jsonb)",
342
+ "declares_p_metadata": true
343
+ },
344
+ {
345
+ "signature": "current_agent_id()",
346
+ "declares_p_metadata": false
347
+ },
348
+ {
349
+ "signature": "delegate_task(p_parent_task_id uuid, p_actor_agent_id uuid, p_title text, p_details text, p_delegated_to_agent_id uuid, p_priority text, p_note text, p_metadata jsonb)",
350
+ "declares_p_metadata": true
351
+ },
352
+ {
353
+ "signature": "delete_callback_endpoint(p_endpoint_id uuid, p_owner_agent_id uuid)",
354
+ "declares_p_metadata": false
355
+ },
356
+ {
357
+ "signature": "disable_callback_delivery_endpoint(p_endpoint_id uuid, p_outbox_event_id uuid, p_disabled_reason text, p_error_summary text, p_metadata jsonb)",
358
+ "declares_p_metadata": true
359
+ },
360
+ {
361
+ "signature": "disable_callback_endpoint(p_endpoint_id uuid, p_owner_agent_id uuid, p_disabled_reason text, p_metadata jsonb)",
362
+ "declares_p_metadata": true
363
+ },
364
+ {
365
+ "signature": "enroll_federated_human(p_issuer text, p_audience text, p_subject text, p_human_identity_claim jsonb, p_display_name text)",
366
+ "declares_p_metadata": false
367
+ },
368
+ {
369
+ "signature": "enroll_federated_identity(p_issuer text, p_audience text, p_subject text, p_human_identity_claim jsonb, p_slug text, p_agent_public_key text, p_agent_public_key_format text, p_agent_public_key_fingerprint text, p_pop_verified boolean, p_actor_sub text, p_agent_kind text, p_requested_scopes text[], p_requested_board_scopes text[], p_invite_code text)",
370
+ "declares_p_metadata": false
371
+ },
372
+ {
373
+ "signature": "evaluate_fleet_sender_policy(p_sender_agent_id uuid, p_recipient_agent_id uuid, p_sender_machine_id uuid, p_recipient_board_id uuid, p_operation text, p_signature_evidence_id uuid, p_direct_rpc_compatibility boolean)",
374
+ "declares_p_metadata": false
375
+ },
376
+ {
377
+ "signature": "evaluate_signed_write_fleet_policy(p_operation text, p_payload jsonb, p_gateway_decision jsonb)",
378
+ "declares_p_metadata": false
379
+ },
380
+ {
381
+ "signature": "expand_recipients_dry_run(p_actor_agent_id uuid, p_recipient_descriptors jsonb, p_thread_idempotency_key text)",
382
+ "declares_p_metadata": false
383
+ },
384
+ {
385
+ "signature": "get_bundle_compatibility()",
386
+ "declares_p_metadata": false
387
+ },
388
+ {
389
+ "signature": "get_schema_version()",
390
+ "declares_p_metadata": false
391
+ },
392
+ {
393
+ "signature": "grant_board_role(p_board_id uuid, p_agent_id uuid, p_grantee_role text, p_grantor_agent_id uuid)",
394
+ "declares_p_metadata": false
395
+ },
396
+ {
397
+ "signature": "heartbeat(p_agent_id uuid, p_thread_id uuid, p_availability text, p_activity_summary text, p_expires_in interval, p_metadata jsonb)",
398
+ "declares_p_metadata": true
399
+ },
400
+ {
401
+ "signature": "invite_board_member(p_board_id uuid, p_agent_id uuid, p_created_by_agent_id uuid, p_metadata jsonb)",
402
+ "declares_p_metadata": true
403
+ },
404
+ {
405
+ "signature": "issue_signing_key_challenge(p_agent_id uuid, p_key_id text, p_expires_in interval)",
406
+ "declares_p_metadata": false
407
+ },
408
+ {
409
+ "signature": "join_board(p_board_id uuid, p_agent_id uuid, p_membership_state text, p_created_by_agent_id uuid, p_metadata jsonb)",
410
+ "declares_p_metadata": true
411
+ },
412
+ {
413
+ "signature": "leave_board(p_board_id uuid, p_agent_id uuid, p_metadata jsonb)",
414
+ "declares_p_metadata": true
415
+ },
416
+ {
417
+ "signature": "list_board_pending_memberships(p_board_id uuid)",
418
+ "declares_p_metadata": false
419
+ },
420
+ {
421
+ "signature": "mark_read(p_thread_id uuid, p_agent_id uuid, p_last_read_message_sequence bigint)",
422
+ "declares_p_metadata": false
423
+ },
424
+ {
425
+ "signature": "mark_retention_metadata(p_table_name text, p_cutoff timestamp with time zone, p_run_id uuid, p_reason text)",
426
+ "declares_p_metadata": false
427
+ },
428
+ {
429
+ "signature": "mint_delegated_child(p_root_agent_id uuid, p_child_slug text, p_requested_scopes jsonb, p_child_public_key text, p_ttl interval, p_self_service boolean)",
430
+ "declares_p_metadata": false
431
+ },
432
+ {
433
+ "signature": "mint_fleet_agent_session(p_challenge_id uuid, p_nonce text, p_signing_key_id uuid, p_agent_id uuid, p_max_ttl_seconds integer)",
434
+ "declares_p_metadata": false
435
+ },
436
+ {
437
+ "signature": "onboard_federated_fleet_agent(p_issuer text, p_audience text, p_subject text, p_human_identity_claim jsonb, p_slug text, p_agent_public_key text, p_agent_public_key_format text, p_agent_public_key_fingerprint text, p_pop_verified boolean, p_actor_sub text, p_agent_kind text, p_requested_scopes text[], p_requested_board_scopes text[], p_invite_code text, p_board_id uuid, p_machine_id uuid, p_harness_kind text, p_harness_label text, p_repo_slug text, p_repo_fingerprint text, p_repo_scope_role text, p_agent_role text, p_expected_agent_handle text)",
438
+ "declares_p_metadata": false
439
+ },
440
+ {
441
+ "signature": "post_board_message(p_thread_id uuid, p_author_agent_id uuid, p_board_id uuid, p_subject text, p_body text, p_message_type text, p_priority text, p_idempotency_key text, p_metadata jsonb)",
442
+ "declares_p_metadata": true
443
+ },
444
+ {
445
+ "signature": "post_board_message(p_thread_id uuid, p_author_agent_id uuid, p_board_slug text, p_addressing_mode text, p_subject text, p_body text, p_message_type text, p_priority text, p_idempotency_key text, p_metadata jsonb)",
446
+ "declares_p_metadata": true
447
+ },
448
+ {
449
+ "signature": "post_message(p_thread_id uuid, p_author_agent_id uuid, p_body text, p_message_type text, p_task_id uuid, p_metadata jsonb)",
450
+ "declares_p_metadata": true
451
+ },
452
+ {
453
+ "signature": "provision_agent(p_slug text, p_kind text, p_scopes jsonb, p_owner_user_id uuid)",
454
+ "declares_p_metadata": false
455
+ },
456
+ {
457
+ "signature": "raise_conflict(p_thread_id uuid, p_raised_by_agent_id uuid, p_summary text, p_conflict_type text, p_severity text, p_task_id uuid, p_details jsonb)",
458
+ "declares_p_metadata": false
459
+ },
460
+ {
461
+ "signature": "raise_escalation(p_thread_id uuid, p_raised_by_agent_id uuid, p_summary text, p_escalation_type text, p_severity text, p_task_id uuid, p_assigned_agent_id uuid, p_details jsonb)",
462
+ "declares_p_metadata": false
463
+ },
464
+ {
465
+ "signature": "reactivate_fleet_machine(p_machine_id uuid, p_reactivated_by_agent_id uuid, p_reactivation_reason text)",
466
+ "declares_p_metadata": false
467
+ },
468
+ {
469
+ "signature": "reap_expired_enroll_rate_events(p_older_than interval)",
470
+ "declares_p_metadata": false
471
+ },
472
+ {
473
+ "signature": "reap_expired_nonfleet_sessions(p_older_than interval)",
474
+ "declares_p_metadata": false
475
+ },
476
+ {
477
+ "signature": "reap_expired_signing_key_challenges(p_older_than interval)",
478
+ "declares_p_metadata": false
479
+ },
480
+ {
481
+ "signature": "reclaim_fleet_machine(p_machine_id uuid, p_new_owner_agent_id uuid, p_reclaimed_by_agent_id uuid, p_reason text, p_new_trust_domain_id uuid)",
482
+ "declares_p_metadata": false
483
+ },
484
+ {
485
+ "signature": "reclaim_fleet_trust_domain(p_domain_id uuid, p_new_owner_agent_id uuid, p_reclaimed_by_agent_id uuid, p_reason text)",
486
+ "declares_p_metadata": false
487
+ },
488
+ {
489
+ "signature": "record_bundle_installation(p_package_version text, p_bundle_digest text, p_schema_version integer, p_source_commit text, p_materializer_receipt text)",
490
+ "declares_p_metadata": false
491
+ },
492
+ {
493
+ "signature": "record_callback_delivery_retry(p_outbox_event_id uuid, p_endpoint_id uuid, p_http_status integer, p_error_summary text, p_next_retry_at timestamp with time zone, p_metadata jsonb)",
494
+ "declares_p_metadata": true
495
+ },
496
+ {
497
+ "signature": "record_callback_delivery_success(p_outbox_event_id uuid, p_endpoint_id uuid, p_http_status integer, p_metadata jsonb)",
498
+ "declares_p_metadata": true
499
+ },
500
+ {
501
+ "signature": "record_callback_delivery_terminal_failure(p_outbox_event_id uuid, p_endpoint_id uuid, p_http_status integer, p_error_summary text, p_metadata jsonb)",
502
+ "declares_p_metadata": true
503
+ },
504
+ {
505
+ "signature": "record_signing_key_proof_result(p_challenge_id uuid, p_agent_id uuid, p_key_id text, p_verified boolean, p_failure_class text, p_metadata jsonb)",
506
+ "declares_p_metadata": true
507
+ },
508
+ {
509
+ "signature": "redeem_invite_link(p_code text, p_metadata jsonb)",
510
+ "declares_p_metadata": true
511
+ },
512
+ {
513
+ "signature": "register_agent(p_agent_type text, p_handle text, p_display_name text, p_status text, p_metadata jsonb)",
514
+ "declares_p_metadata": true
515
+ },
516
+ {
517
+ "signature": "register_callback_endpoint(p_owner_agent_id uuid, p_endpoint_url text, p_metadata jsonb)",
518
+ "declares_p_metadata": true
519
+ },
520
+ {
521
+ "signature": "register_fleet_machine(p_owner_agent_id uuid, p_trust_domain_id uuid, p_machine_label text, p_machine_fingerprint text, p_enrollment_source text, p_metadata jsonb)",
522
+ "declares_p_metadata": true
523
+ },
524
+ {
525
+ "signature": "release_claim(p_lease_token uuid)",
526
+ "declares_p_metadata": false
527
+ },
528
+ {
529
+ "signature": "renew_claim(p_lease_token uuid, p_lease_expires_at timestamp with time zone)",
530
+ "declares_p_metadata": false
531
+ },
532
+ {
533
+ "signature": "renew_delegated_grant(p_child_agent_id uuid, p_extend interval)",
534
+ "declares_p_metadata": false
535
+ },
536
+ {
537
+ "signature": "request_join_board(p_board_id uuid, p_agent_id uuid, p_metadata jsonb)",
538
+ "declares_p_metadata": true
539
+ },
540
+ {
541
+ "signature": "reserve_signed_write_replay(p_agent_id uuid, p_signing_key_id uuid, p_operation text, p_payload_digest text, p_nonce text, p_idempotency_key text, p_envelope_timestamp timestamp with time zone, p_expires_at timestamp with time zone)",
542
+ "declares_p_metadata": false
543
+ },
544
+ {
545
+ "signature": "resolve_agent_handle(p_handle text)",
546
+ "declares_p_metadata": false
547
+ },
548
+ {
549
+ "signature": "resolve_board_request(p_board_id uuid, p_agent_id uuid, p_membership_state text, p_created_by_agent_id uuid, p_metadata jsonb)",
550
+ "declares_p_metadata": true
551
+ },
552
+ {
553
+ "signature": "resolve_conflict(p_conflict_id uuid, p_resolved_by_agent_id uuid, p_details jsonb)",
554
+ "declares_p_metadata": false
555
+ },
556
+ {
557
+ "signature": "resolve_escalation(p_escalation_id uuid, p_resolved_by_agent_id uuid, p_details jsonb)",
558
+ "declares_p_metadata": false
559
+ },
560
+ {
561
+ "signature": "resolve_recipients(p_actor_agent_id uuid, p_recipient_descriptors jsonb)",
562
+ "declares_p_metadata": false
563
+ },
564
+ {
565
+ "signature": "revoke_agent(p_agent_id uuid, p_reason text)",
566
+ "declares_p_metadata": false
567
+ },
568
+ {
569
+ "signature": "revoke_agent_subtree(p_root_agent_id uuid, p_revoked_by_agent_id uuid, p_reason text)",
570
+ "declares_p_metadata": false
571
+ },
572
+ {
573
+ "signature": "revoke_fleet_machine_agent_binding(p_binding_id uuid, p_revoked_by_agent_id uuid, p_revocation_reason text, p_metadata jsonb)",
574
+ "declares_p_metadata": true
575
+ },
576
+ {
577
+ "signature": "revoke_fleet_subject(p_subject_kind text, p_subject_id uuid, p_revoked_by_agent_id uuid, p_revocation_reason text, p_metadata jsonb)",
578
+ "declares_p_metadata": true
579
+ },
580
+ {
581
+ "signature": "revoke_human_subtree(p_owner_user_id uuid, p_revoked_by_agent_id uuid, p_reason text)",
582
+ "declares_p_metadata": false
583
+ },
584
+ {
585
+ "signature": "revoke_invite_link(p_code text, p_metadata jsonb)",
586
+ "declares_p_metadata": true
587
+ },
588
+ {
589
+ "signature": "rotate_agent_token(p_agent_id uuid)",
590
+ "declares_p_metadata": false
591
+ },
592
+ {
593
+ "signature": "rotate_callback_signing_key(p_endpoint_id uuid, p_owner_agent_id uuid, p_metadata jsonb)",
594
+ "declares_p_metadata": true
595
+ },
596
+ {
597
+ "signature": "self_enroll_human(p_display_name text)",
598
+ "declares_p_metadata": false
599
+ },
600
+ {
601
+ "signature": "send_direct_message(p_thread_id uuid, p_author_agent_id uuid, p_recipient_agent_id uuid, p_subject text, p_body text, p_message_type text, p_priority text, p_idempotency_key text, p_metadata jsonb)",
602
+ "declares_p_metadata": true
603
+ },
604
+ {
605
+ "signature": "send_direct_message(p_thread_id uuid, p_author_agent_id uuid, p_recipient_descriptor jsonb, p_addressing_mode text, p_subject text, p_body text, p_message_type text, p_priority text, p_idempotency_key text, p_metadata jsonb)",
606
+ "declares_p_metadata": true
607
+ },
608
+ {
609
+ "signature": "send_multicast_message(p_thread_id uuid, p_author_agent_id uuid, p_recipient_agent_ids uuid[], p_subject text, p_body text, p_message_type text, p_priority text, p_idempotency_key text, p_metadata jsonb)",
610
+ "declares_p_metadata": true
611
+ },
612
+ {
613
+ "signature": "send_multicast_message(p_thread_id uuid, p_author_agent_id uuid, p_recipient_descriptors jsonb, p_addressing_mode text, p_subject text, p_body text, p_message_type text, p_priority text, p_idempotency_key text, p_metadata jsonb)",
614
+ "declares_p_metadata": true
615
+ },
616
+ {
617
+ "signature": "set_board_authority_ceiling(p_board_id uuid, p_max_grantable_role text, p_actor_agent_id uuid)",
618
+ "declares_p_metadata": false
619
+ },
620
+ {
621
+ "signature": "set_board_role_gate(p_board_id uuid, p_enforced boolean)",
622
+ "declares_p_metadata": false
623
+ },
624
+ {
625
+ "signature": "set_fleet_receive_policy(p_recipient_agent_id uuid, p_policy_name text, p_default_action text, p_require_signed_sender boolean, p_board_id uuid, p_trust_domain_id uuid, p_metadata jsonb)",
626
+ "declares_p_metadata": true
627
+ },
628
+ {
629
+ "signature": "signed_append_task_event(p_payload jsonb, p_gateway_decision jsonb)",
630
+ "declares_p_metadata": false
631
+ },
632
+ {
633
+ "signature": "signed_create_tasking_delivery(p_payload jsonb, p_gateway_decision jsonb)",
634
+ "declares_p_metadata": false
635
+ },
636
+ {
637
+ "signature": "signed_grant_board_role(p_payload jsonb, p_gateway_decision jsonb)",
638
+ "declares_p_metadata": false
639
+ },
640
+ {
641
+ "signature": "signed_post_board_message(p_payload jsonb, p_gateway_decision jsonb)",
642
+ "declares_p_metadata": false
643
+ },
644
+ {
645
+ "signature": "signed_send_direct_message(p_payload jsonb, p_gateway_decision jsonb)",
646
+ "declares_p_metadata": false
647
+ },
648
+ {
649
+ "signature": "signed_send_multicast_message(p_payload jsonb, p_gateway_decision jsonb)",
650
+ "declares_p_metadata": false
651
+ },
652
+ {
653
+ "signature": "signed_set_board_authority_ceiling(p_payload jsonb, p_gateway_decision jsonb)",
654
+ "declares_p_metadata": false
655
+ },
656
+ {
657
+ "signature": "subscribe_callback_endpoint(p_endpoint_id uuid, p_agent_id uuid, p_subscription_scope text, p_event_category text, p_board_id uuid, p_metadata jsonb)",
658
+ "declares_p_metadata": true
659
+ },
660
+ {
661
+ "signature": "sync_agent_principal_columns()",
662
+ "declares_p_metadata": false
663
+ },
664
+ {
665
+ "signature": "unblock_board_inviter(p_board_id uuid, p_inviter_agent_id uuid, p_target_agent_id uuid)",
666
+ "declares_p_metadata": false
667
+ },
668
+ {
669
+ "signature": "unsubscribe_callback_endpoint(p_endpoint_id uuid, p_agent_id uuid, p_subscription_scope text, p_event_category text, p_board_id uuid, p_metadata jsonb)",
670
+ "declares_p_metadata": true
671
+ },
672
+ {
673
+ "signature": "update_board_membership(p_board_id uuid, p_agent_id uuid, p_membership_state text, p_metadata jsonb)",
674
+ "declares_p_metadata": true
675
+ },
676
+ {
677
+ "signature": "update_inbox_item_state(p_inbox_item_id uuid, p_recipient_agent_id uuid, p_action_state text, p_metadata jsonb)",
678
+ "declares_p_metadata": true
679
+ },
680
+ {
681
+ "signature": "upsert_delegation_policy(p_root_agent_id uuid, p_mode text, p_allowed_scopes jsonb, p_max_active_children integer, p_child_ttl_ceiling interval, p_require_child_signing_key boolean)",
682
+ "declares_p_metadata": false
683
+ },
684
+ {
685
+ "signature": "verify_callback_endpoint(p_endpoint_id uuid, p_owner_agent_id uuid, p_metadata jsonb)",
686
+ "declares_p_metadata": true
687
+ }
688
+ ]
689
+ }