Skip to content

[81e63b89] Reconcile already-merged PR work session from forge state in complete() - #1120

Open
roboco-app[bot] wants to merge 3 commits into
feature/backend/4a708207--63094d70from
feature/backend/4a708207--63094d70--81e63b89
Open

roboco-app[bot] wants to merge 3 commits into
feature/backend/4a708207--63094d70from
feature/backend/4a708207--63094d70--81e63b89

Conversation

@roboco-app

@roboco-app roboco-app Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Close the interrupted-complete() bookkeeping gap (live incident: task 05ac303f / PR #955, 120s gateway timeout after the GitHub merge succeeded). When cell_pm_complete's H7 pre-check finds already_merged = await self.git.is_pr_merged_for_task(task_id) true (current master anchor _impl.py:8992, re-locate by symbol — refs drifted ~300 lines) it skips the pr_merge call but leaves the work session unreconciled (merge_commit None, pr_status 'open'); _finalize_cell_complete (:9019) then fails the PR-merged guard and its remediate text routes to 'escalate to the CEO to reconcile the session and complete manually' (:9041-9057). Fix: on the already-merged branch, backfill the work session from forge state — set pr_status='merged', fetch and store the merge commit sha from the forge (GitService exposes the merged PR's merge_commit_sha), and write an auditable record (audit event or task journal note — your design choice) stating the merge record was backfilled from forge state including the sha. CONSTRAINTS: must not mask the normal path — an unmerged PR still merges normally; this is distinct from the H7 already-merged 405 fix (H7 closed the respawn loop; this closes the bookkeeping gap). No DB migration needed.

Backend Developer 1 added 2 commits September 27, 2026 21:38
…m forge state in cell_pm_complete

On the H7 already-merged branch, backfill the work session from forge
state (merge_pr + forge merge_commit_sha) and write an audited
gateway.pr_merge_backfilled event, so a complete() retry after an
interrupted merge self-heals instead of wedging on the PR-merged
guard's CEO-manual reconciliation. Unmerged PRs still merge normally.
@github-actions

Copy link
Copy Markdown

Thanks for opening your first pull request on RoboCo!

Quick checklist before review (most of these are enforced by CI, but worth a glance):

  • make quality — ruff format check, ruff check, mypy, pytest (≥80% coverage), and the rest of the gate
  • Panel changes pass pnpm lint and pnpm exec tsc --noEmit (run from panel/)
  • No # noqa / # type: ignore shortcuts; pre-existing violations in touched files are fixed
  • Added an entry under ## [Unreleased] in CHANGELOG.md
  • Signed the CLA (the bot will prompt you on this PR)
  • Signed your commits — master requires verified signatures (SSH signing setup)
  • Updated any affected docs under docs/

See CONTRIBUTING.md for the full workflow and the Code of Conduct for the community standards we follow.

Welcome aboard — a maintainer will review shortly.

@rennf93 rennf93 self-assigned this Sep 27, 2026
@github-actions github-actions Bot added documentation Docs, README, CHANGELOG, governance files area: panel Touches panel/ (Next.js control panel) area: services Touches roboco/services/ (business logic, side effects) tests Test suite changes area: gateway Touches roboco/services/gateway/ (Choreographer, verb surface) area: agents Touches agents/ (prompts, role config) labels Sep 27, 2026
…ter rebase

The prior regen commit was produced against a stale environment and, after
the rebase onto the advanced base, would have deleted verbs the base
re-added (run_sandbox_tests, preflight_diff, triage_failure, cancel_leaf,
task_time). Restored to base; the task diff now touches only the
choreographer, git service, and their tests.
@github-actions github-actions Bot removed documentation Docs, README, CHANGELOG, governance files area: panel Touches panel/ (Next.js control panel) area: agents Touches agents/ (prompts, role config) labels Sep 28, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: gateway Touches roboco/services/gateway/ (Choreographer, verb surface) area: services Touches roboco/services/ (business logic, side effects) cell/backend Task owned by Backend Team tests Test suite changes to feature/backend/4a708207--63094d70

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant