Skip to content

pm-stack(kaneo-sync-guard): heal does not persist the complete repaired statusTransitions map #10528

Closed

Description

@dezren39

Finding (from PR review)

Codex P2 on merged PR #10190: pm-stack/kaneo-sync-guard.py computes a complete repaired statusTransitions map (healed) but never persists it. Its heal UPDATE uses nested jsonb_set calls on the three expected keys only, so (a) if an integration lacks statusTransitions entirely, the nested calls cannot create the missing intermediate object and the guard detects drift but never repairs it, leaving Kaneo's documented done fallback active on every subsequent run; and (b) additional forbidden transitions that were removed from the computed healed map remain in the database despite the HEALED message.

"If an integration lacks statusTransitions, these nested jsonb_set calls cannot create the missing intermediate object, so the guard detects drift but never repairs it, leaving Kaneo's documented done fallback active on every subsequent run. The UPDATE also ignores the computed healed map, so additional forbidden transitions removed from that map remain in the database despite the HEALED message. Write the repaired map at the top-level statusTransitions path and verify the full invariant afterward."
— chatgpt-codex-connector[bot], 2026-11-14T17:03:15Z

Evidence

Acceptance criteria

  • The heal persists the complete repaired map at the top-level statusTransitions path (creating it when missing, and dropping forbidden non-expected transitions), and the post-heal verification checks the full invariant (expected values present AND no forbidden targets remain) before printing HEALED; OR the finding is resolved by a documented decision recorded on this issue.
  • Verification is by fresh reads of the changed script plus, where feasible, a test case covering a missing statusTransitions object and an extra forbidden transition.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/normalOrdinary priority (the default)
    on Nov 15, 2026
  2. developing-today commented on Nov 15, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  4. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    effort/sSmall: expected under 2 hours of work
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 15, 2026
  5. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

  6. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · claimed (resume)

  7. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    Please make the final persisted text the combined acceptance oracle with #10316, not just the parsed statusTransitions map. I checked #10316's patch: its current Python compact serialization is not always byte-equal to Kaneo’s JSON.stringify(JSON.parse(config)) (integer-like property keys and 1.0 differ in a local fixture), and a value containing an apostrophe skips the compact UPDATE without an error. A fixture with one permitted extra, one forbidden extra, and an unrelated string containing an apostrophe should assert the exact JS predicate on the post-write readback plus preservation and full transition invariants. Prefer one parameterized/encoded atomic write with a failed-write readback check; avoid a JSONB-to-text intermediate write that can regress outbound sync. Existing owners retain their claims; no deploy requested.

  8. added a commit that references this issue on Nov 15, 2026
  9. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  10. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (already_done)

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

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions