JJijibora Docs
docs.jijibora.online
On this page (12 sections)

Sovereign Agent BFF — FSM Worker Command Plane — OpenAPI 1.0.0

<!-- GENERATED by scripts/render-platform-map-api-docs.mjs — do not hand-edit; edit apps/agent-bff/openapi/<spec>.json and re-run. --> Scope: The published reference for Sovereign Agent BFF — FSM Worker Command Plane. 6 paths — the measured spec-vs-implementation coverage lives in the complete API inventory. Status: rendered 2026-11-09 from the OpenAPI source for Sovereign Agent BFF — FSM Worker Command Plane — regenerate with node scripts/render-platform-map-api-docs.mjs. See also: the OpenAPI spec index.

Servers

URLNotes
http://127.0.0.1:3030

Tags

TagSummary
fsmFSM worker control API

Paths — 6 paths / 6 operations

MethodPathOperation IDSummary
GET/v1/fsm/statusgetFsmStatusAggregate FSM worker + command queue status
GET/v1/fsm/execution-modegetFsmExecutionModeCurrent inline vs enqueue execution mode
GET/v1/fsm/commandslistFsmCommandsList fsm_command_log rows
GET/v1/fsm/commands/{commandId}getFsmCommandGet command by id
POST/v1/fsm/history/exportexportFsmHistoryArchive binding history and file_claim sealed bundle
POST/v1/pipeline/instances/{bindingId}/transitionpipelineTransitionExecute or enqueue pipeline transition

Operations

GET /v1/fsm/status

Summary: Aggregate FSM worker + command queue status

Tags: fsm Operation ID: getFsmStatus Responses:

StatusMeaning
200Status snapshot

GET /v1/fsm/execution-mode

Summary: Current inline vs enqueue execution mode

Tags: fsm Operation ID: getFsmExecutionMode Responses:

StatusMeaning
200Mode

GET /v1/fsm/commands

Summary: List fsm_command_log rows

Tags: fsm Operation ID: listFsmCommands

Parameters:

NameInRequiredTypeNotes
statusquerynostring enum: pending, completed, failed
limitquerynoint

Responses:

StatusMeaning
200Command list

GET /v1/fsm/commands/{commandId}

Summary: Get command by id

Tags: fsm Operation ID: getFsmCommand

Parameters:

NameInRequiredTypeNotes
commandIdpathyesstring

Responses:

StatusMeaning
200Command row
404Not found

POST /v1/fsm/history/export

Summary: Archive binding history and file_claim sealed bundle

Tags: fsm Operation ID: exportFsmHistory Request body:

Content type: application/json

FieldTypeNotes
binding_idstring
vault_idstring

Responses:

StatusMeaning
201Export + vault claim

POST /v1/pipeline/instances/{bindingId}/transition

Summary: Execute or enqueue pipeline transition

Tags: fsm Operation ID: pipelineTransition

Parameters:

NameInRequiredTypeNotes
bindingIdpathyesstring

Responses:

StatusMeaning
200Inline execution result
202Enqueued to fsm-worker

Full specification — verbatim source of truth

{
  "openapi": "3.1.0",
  "info": {
    "title": "Sovereign Agent BFF — FSM Worker Command Plane",
    "version": "1.0.0",
    "description": "FSM-24 — JetStream command plane for pipeline/worker execution. State in SurrealDB; hooks on fsm-worker."
  },
  "servers": [
    {
      "url": "http://127.0.0.1:3030"
    }
  ],
  "tags": [
    {
      "name": "fsm",
      "description": "FSM worker control API"
    }
  ],
  "paths": {
    "/v1/fsm/status": {
      "get": {
        "tags": [
          "fsm"
        ],
        "summary": "Aggregate FSM worker + command queue status",
        "operationId": "getFsmStatus",
        "responses": {
          "200": {
            "description": "Status snapshot"
          }
        }
      }
    },
    "/v1/fsm/execution-mode": {
      "get": {
        "tags": [
          "fsm"
        ],
        "summary": "Current inline vs enqueue execution mode",
        "operationId": "getFsmExecutionMode",
        "responses": {
          "200": {
            "description": "Mode"
          }
        }
      }
    },
    "/v1/fsm/commands": {
      "get": {
        "tags": [
          "fsm"
        ],
        "summary": "List fsm_command_log rows",
        "operationId": "listFsmCommands",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "completed",
                "failed"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Command list"
          }
        }
      }
    },
    "/v1/fsm/commands/{commandId}": {
      "get": {
        "tags": [
          "fsm"
        ],
        "summary": "Get command by id",
        "operationId": "getFsmCommand",
        "parameters": [
          {
            "name": "commandId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Command row"
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/v1/fsm/history/export": {
      "post": {
        "tags": [
          "fsm"
        ],
        "summary": "Archive binding history and file_claim sealed bundle",
        "operationId": "exportFsmHistory",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "binding_id",
                  "vault_id"
                ],
                "properties": {
                  "binding_id": {
                    "type": "string"
                  },
                  "vault_id": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Export + vault claim"
          }
        }
      }
    },
    "/v1/pipeline/instances/{bindingId}/transition": {
      "post": {
        "tags": [
          "fsm"
        ],
        "summary": "Execute or enqueue pipeline transition",
        "operationId": "pipelineTransition",
        "parameters": [
          {
            "name": "bindingId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Inline execution result"
          },
          "202": {
            "description": "Enqueued to fsm-worker"
          }
        }
      }
    }
  },
  "x-nats-subjects": {
    "fsm.v1.command.start": "Start pipeline binding",
    "fsm.v1.command.transition": "Run transition hooks",
    "fsm.v1.command.resume": "Resume from checkpoint",
    "fsm.v1.event.completed": "Worker success",
    "fsm.v1.event.failed": "Worker failure"
  }
}