Skip to content

Bug: a source close takes ownership of a human review and a later reopen sends it to Backlog #3601

Closed

Description

@yannickmonney

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:

  1. Create a REST task with a generic external system such as crm and externalState open.
  2. Move it to In review through the app status endpoint. This is the human-owned review.
  3. Repeat its external intake with externalState closed. Status stays In review but externalClosedAt is now stamped.
  4. Repeat again with externalState open. The task moves to Backlog.
  5. 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.

Source:

Evidence: local/task-rest-matrix.py, local/task-rest-matrix-results.json

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions