failguard.error-fix ​
Automated code fixing for production errors from Sentry
Automated code fixing for production errors from Sentry.
Input fields: sentry_payload, project_uuid (optional), organization_uuid
Branching:
- VALIDATING on_enter: routes to create_attempt_then_index or create_attempt_then_explore
- EVALUATING on_enter: routes to approve_fix, retry_fix, or reject_fix
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-failguard |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
sentry_payload | json | Yes | — | — |
organization_uuid | string | Yes | — | — |
project_uuid | string | No | — | — |
workflow_run_id | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
sentry_payload | json | No | — | — |
organization_uuid | string | No | — | — |
project_uuid | string | No | — | — |
workflow_run_id | string | No | — | — |
sentry_event_ref | string | No | — | — |
sentry_project_slug | string | No | — | — |
sentry_level | string | No | — | — |
error_fingerprint | string | No | — | — |
error_message | string | No | — | — |
severity | string | No | — | — |
stack_trace | string | No | — | — |
stack_frames | json | No | — | — |
culprit_file | string | No | — | — |
culprit_function | string | No | — | — |
culprit_line | string | No | — | — |
environment | string | No | — | — |
release_version | string | No | — | — |
request_url | string | No | — | — |
user_ref | string | No | — | — |
transformed_at | string | No | — | — |
error_uuid | string | No | — | — |
project_name | string | No | — | — |
github_installation_ref | string | No | — | — |
repository_name | string | No | — | — |
default_branch | string | No | — | — |
is_new_error | boolean | No | — | — |
occurrence_count | integer | No | — | — |
error_matched_at | string | No | — | — |
attempt_uuid | string | No | — | — |
attempt_number | integer | No | — | — |
max_attempts | integer | No | — | — |
indexing_required | boolean | No | — | — |
index_status | string | No | — | — |
validated_at | string | No | — | — |
max_iterations | integer | No | — | — |
iteration_number | integer | No | — | — |
initiated_at | string | No | — | — |
bedrock_ingestion_message | string | No | — | — |
indexed_at | string | No | — | — |
exploration_result | json | No | — | — |
relevant_code_chunks | json | No | — | — |
explored_at | string | No | — | — |
design_result | json | No | — | — |
fix_strategies | json | No | — | — |
selected_strategy | json | No | — | — |
designed_at | string | No | — | — |
generation_result | json | No | — | — |
file_changes | json | No | — | — |
generated_at | string | No | — | — |
review_result | json | No | — | — |
review_passed | boolean | No | — | — |
review_issues | json | No | — | — |
reviewed_at | string | No | — | — |
proposal_uuid | string | No | — | — |
confidence_score | string | No | — | — |
quality_metrics | json | No | — | — |
decision | string | No | — | — |
retry_feedback | json | No | — | — |
evaluated_at | string | No | — | — |
pr_number | string | No | — | — |
pr_url | string | No | — | — |
pr_branch | string | No | — | — |
pr_created_at | string | No | — | — |
completed_at | string | No | — | — |
rejected_at | string | No | — | — |
failed_at | string | No | — | — |
source_type | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | transform_payload | — |
creating_pr | No | No | — | create_pr | — |
designing | No | No | — | generate | — |
evaluating | No | No | — | — | — |
exploring | No | No | — | design | — |
generating | No | No | — | review | — |
indexing | No | No | — | explore | — |
matching | No | No | — | check_prerequisites | — |
reviewing | No | No | — | evaluate | — |
transforming | No | No | — | find_or_create_error | — |
validating | No | No | — | — | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
rejected | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | transform_payload | transforming | — |
transforming | find_or_create_error | matching | — |
matching | check_prerequisites | validating | — |
validating | create_attempt_then_index | indexing | — |
validating | create_attempt_then_explore | exploring | — |
indexing | explore | exploring | — |
exploring | design | designing | — |
designing | generate | generating | — |
generating | review | reviewing | — |
reviewing | evaluate | evaluating | — |
evaluating | approve_fix | creating_pr | — |
evaluating | retry_fix | designing | — |
evaluating | reject_fix | rejected | — |
creating_pr | create_pr | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "failguard.error-fix",
"initial_data": {
"sentry_payload": "value",
"organization_uuid": "value"
}
}