You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: a source close takes ownership of a human review and a later reopen sends it to Backlog #3601
Reproduced locally on 44e0dcf254975286c0e9dea443b5cd1ca6b23347 with real services. No production testing.
For a generic external source, reconcileExisting stamps externalClosedAt on every closed observation of a nonterminal task, including one already placed In review by a human. The next open observation sees that stamp and treats the human review as a mirror-owned park, moving it to Backlog and withdrawing its pending review. The API documentation explicitly promises that a park made by a person or agent remains theirs.
Steps:
Create a REST task with a generic external system such as crm and externalState open.
Move it to In review through the app status endpoint. This is the human-owned review.
Repeat its external intake with externalState closed. Status stays In review but externalClosedAt is now stamped.
Repeat again with externalState open. The task moves to Backlog.
Controls: source-only close/open correctly returns to Backlog; human park followed directly by source open correctly remains In review.
Expected: A source close arriving while the task is already in a human-owned review must not claim that review. A later source reopen must leave it In review, as the documented ownership rule states.
Actual: The intervening close converts a human review to mirror ownership, and a later open removes it.
Dedup: Cached issue titles and GitHub search for externalState human review found no match. The current reviewer PR 3554 concerns eligibility/erasure retargeting, not external lifecycle ownership.
Limits: Real local REST/app HTTP and Postgres. Uses a synthetic generic source and no workflow or external service. GitHub/GlitchTip sources intentionally ignore externalState and are not part of this report.
Acceptance:
Human- or agent-owned In review survives a subsequent source closed/open cycle.
A review actually opened by the mirror still reopens according to the documented source lifecycle.
The regression verifies both task status and the pending review ownership/stamps.
Activity