ticket.git-work.observe ​
Append an ordered, idempotent local Git observation and advance the ticket projection.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-tickets |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
work_uuid | string | Yes | — | — |
sequence | integer | Yes | — | — |
idempotency_key | string | Yes | — | — |
ref_name | string | Yes | — | — |
head_oid | string | No | — | — |
base_oid | string | No | — | — |
dirty | boolean | No | — | — |
ahead_count | integer | No | — | — |
behind_count | integer | No | — | — |
source | string | No | — | — |
observed_at | datetime | No | — | — |
data | json | No | — | Provider-blind observation metadata, kept local and never published. A key is refused when it IS a provider coordinate, a credential or a filesystem location -- the whole key, or its first or last component: url, uri, remote, provider, token, secret, password, auth, credential, private, path. A plural *_paths key is work content and is accepted, so changed_paths belongs here; a singular *_path is one filesystem location and is not. Values are scanned regardless: any URL, ssh coordinate, absolute path or credential assignment is refused. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
observation | dict | No | — | — |
work | dict | No | — | — |
created | boolean | No | — | — |
organization_uuid | string | No | — | Input field preserved in workflow state. |
work_uuid | string | No | — | Input field preserved in workflow state. |
sequence | integer | No | — | Input field preserved in workflow state. |
idempotency_key | string | No | — | Input field preserved in workflow state. |
ref_name | string | No | — | Input field preserved in workflow state. |
head_oid | string | No | — | Input field preserved in workflow state. |
base_oid | string | No | — | Input field preserved in workflow state. |
dirty | boolean | No | — | Input field preserved in workflow state. |
ahead_count | integer | No | — | Input field preserved in workflow state. |
behind_count | integer | No | — | Input field preserved in workflow state. |
source | string | No | — | Input field preserved in workflow state. |
observed_at | datetime | No | — | Input field preserved in workflow state. |
data | json | No | — | Input field preserved in workflow state. |
failed_at | string | No | — | ISO-8601 timestamp when action_fail recorded the failure |
failure_reason | string | No | — | Human-readable failure reason from action_fail |
failure_type | string | No | — | Engine-stamped failure category |
failed_action | string | No | — | Engine-stamped action that raised |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | string | 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 |
|---|---|---|---|---|---|
initiated | Yes | No | — | execute | Accepted |
executing | No | No | — | complete | Applying the mutation |
completed | No | Yes | Yes | — | Done |
failed | No | Yes | No | — | Failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | execute | executing | Run the mutation |
executing | complete | completed | Finalize |
* (any state) | fail | failed | Catch-all failure |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "ticket.git-work.observe",
"initial_data": {
"organization_uuid": "value",
"work_uuid": "value",
"sequence": 123,
"idempotency_key": "value"
}
}