Skip to content

KAP-978: fix(autopilots): reconcile recovered issue runs#5619

Open
milymarkovic wants to merge 2 commits into
multica-ai:mainfrom
milymarkovic:fix/kap-978-autopilot-run-recovery
Open

KAP-978: fix(autopilots): reconcile recovered issue runs#5619
milymarkovic wants to merge 2 commits into
multica-ai:mainfrom
milymarkovic:fix/kap-978-autopilot-run-recovery

Conversation

@milymarkovic

@milymarkovic milymarkovic commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • reconcile create_issue runs after linked issue blocked -> reopened -> done/in_review
  • persist recovered_at while retaining failure_reason="issue blocked" as audit history
  • prevent recovery of dispatch/task failures and cancelled workflows
  • reconcile before run reads and failure-rate monitoring

State-machine semantics

Only a failed run linked to the same autopilot-created issue, with exact failure reason issue blocked, may recover. Recovery changes current status to completed, records recovered_at, and preserves the blocker reason. Other failures remain terminal.

Test plan

  • fresh database migrations 001-202
  • go test ./internal/service -count=1
  • go test ./internal/handler -count=1
  • go test ./cmd/server -count=1
  • go vet ./internal/service ./internal/handler ./cmd/server

Closes KAP-978

Traceability replay after workspace repo registration.

@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

@milymarkovic is attempting to deploy a commit to the IndexLabs Team on Vercel.

A member of the Team first needs to authorize it.

@milymarkovic milymarkovic changed the title fix(autopilots): reconcile recovered issue runs KAP-978: fix(autopilots): reconcile recovered issue runs Jul 18, 2026
@milymarkovic milymarkovic reopened this Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant