live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/agent-anthropic


@orangecheck/agent-anthropic / postActionToFleet

Function: postActionToFleet()

function postActionToFleet(action: ActionEnvelope, client: FleetClient): Promise<PostActionResult>;

Defined in: index.ts:183

POST a stamped action envelope to fleet.ochk.io's /api/actions registry. The fleet:

  • re-derives the action id from canonical inputs and rejects on mismatch (tamper defense)
  • validates that the agent address matches the parent delegation's agent (forgery defense)
  • persists, fans out to Nostr (kind 30084), submits to OC Stamp, and triggers any subscribed webhooks (action.registered)

Returns the registered action's id + project_id + delegation_id. Throws on non-2xx with the server's reason string.

Parameters

ParameterType
actionActionEnvelope
clientFleetClient

Returns

Promise&lt;PostActionResult>