mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-30 17:14:54 +01:00
Handle incomplete PR delivery during reassessment
Treat unchanged unmerged PRs as unfinished delivery before status commit. Reuse the bounded continuation and recovery policy so reassessment does not repeatedly query GitHub through status-race retries. Lock source and destination tasks before work-product updates, including human updates. Re-read the product under those locks so restoring an archived PR cannot bypass the completion snapshot. Add four reassessment regressions and a real PostgreSQL lock regression. The five cases reproduced the previous failures. Server typecheck and six focused lifecycle/work-product suites pass after the fixes. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
7f259b7047
commit
bb19d6741e
6 files changed
+145
-11
No files matched your search
@@ -139,9 +139,13 @@ uses its existing bounded incomplete-work continuation. The agent can fix review
|
||||
or CI failures, use the existing monitor for an external wait, or report a
|
||||
concrete blocker. This creates no generic human completion approval.
|
||||
|
||||
Reassessment uses the same bounded incomplete-delivery continuation as initial
|
||||
finalization. A stable unmerged PR does not create a status-race retry deadline.
|
||||
The transactional commit also checks these outputs, including reassessment
|
||||
paths. Provider reads occur before the transaction, with at most twenty PRs
|
||||
and a shared ten-second abort signal for GitHub requests. The locked transaction requires merge proof
|
||||
paths. Human and agent work-product updates lock their source and destination
|
||||
tasks in a stable order before changing status or identity. Provider reads occur
|
||||
before the transaction, with at most twenty PRs and a shared ten-second abort
|
||||
signal for GitHub requests. The locked transaction requires merge proof
|
||||
for every current deliverable, so a changed output requires a new assessment.
|
||||
There is no new polling worker or schema. Existing saved contracts remain valid;
|
||||
new contracts include the delivery guidance and existing unfinished results use
|
||||
|
||||
Reference in new issue
Block a user