data.storage.find-by-ref ​
Find StorageObject audit rows tagged with a given session, config, or skill uuid. Pure DB read.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-storage |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | UUID of the organization whose objects to search |
session_uuid | string | No | — | Filter by ref_session_uuid (mutually exclusive with config_uuid / skill_uuid) |
config_uuid | string | No | — | Filter by ref_config_uuid (mutually exclusive with session_uuid / skill_uuid) |
skill_uuid | string | No | — | Filter by ref_skill_uuid (mutually exclusive with session_uuid / config_uuid) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | UUID of the organization whose objects to search |
session_uuid | string | No | — | Filter by ref_session_uuid (mutually exclusive with config_uuid / skill_uuid) |
config_uuid | string | No | — | Filter by ref_config_uuid (mutually exclusive with session_uuid / skill_uuid) |
skill_uuid | string | No | — | Filter by ref_skill_uuid (mutually exclusive with session_uuid / config_uuid) |
objects | json | No | — | List of matching StorageObject dicts (UUID-only surface) |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at | string | No | — | ISO timestamp when the workflow failed |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | Querying StorageObject rows by ref UUID |
completed | No | Yes | Yes | — | Objects found |
failed | No | Yes | No | — | Query failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.storage.find-by-ref",
"initial_data": {
"organization_uuid": "value"
}
}