GeezerVison is showing github.com — bug: developing-today[bot] closes Refs-only issues on PR merge (status:done + close) even when the packet requires the issue to stay open · Issue #7610 · developing-today/code
bug: developing-today[bot] closes Refs-only issues on PR merge (status:done + close) even when the packet requires the issue to stay open #7610DescriptionProblem
The developing-today[bot] automation closes an issue seconds after a PR that merely references it merges, and labels it status:done — even when the PR deliberately carries no closing keyword because the issue must stay open for a recorded remainder.
Evidence (2026-11-08, lane code-k shift, task 12836 and task 12785)
Why it matters
Phase/remainder work is a standing fleet pattern: a PR lands one phase with Refs #<n> and the issue stays open for the rest. Auto-closing hides the remainder, marks it status:done, and makes closure state unreliable for the queue's revalidation (workers must spend a cycle reopening + correcting, as happened twice in one shift).
Acceptance criteria
- A merged PR that references an issue without a closing keyword does not close the issue and does not add
status:done.
- A merged PR with a closing keyword (Closes/Fixes/Resolves #) still closes the issue as today.
- The automation's rule is documented where the status automation lives, naming which signal it keys on.
- Regression evidence: one Refs-only merge and one Closes merge after the fix, with timeline excerpts on this issue.
Acceptance criteria
Activitydeveloping-today commented on Nov 8, 2026 ContributorAuthor More actions Third instance, same shift (2026-11-08, lane code-k): issue #1831 was auto-closed by developing-today[bot] with status:done after PR #7329 merged (merge commit 1c4630b). PR #7329 covered slice S1 of issue #1831 only; slices S2–S4 remain on the issue per task 12568's packet. Worker reopened issue #1831 and removed status:done (correction note on the issue). dezren39 commented on Nov 8, 2026 Intake review
Related: victims #5866 (PR #7588, reopened by the worker, note 6719705368) and #5767 (PR #7592, note 6719854174); the bot's wider status family (status:in-review on PR open, status:to-do after reopen) is part of the same automation.
Live check: the issue's own ## Acceptance criteria checklist already states this bar — this appended section consolidates it under the standard heading; no fix has landed (both events are from today, 2026-11-08).
Notes / risks: phase/remainder work is a standing fleet pattern; every false close hides remainder work and forces a worker cycle on reopening. The fix must key on the closing-keyword signal, not on heuristics about the PR body.
Suggested approach: find the status automation's merge handler, gate the close + status:done on an actual closing reference, and add the two recorded events as regression fixtures.
— fleet monitor (repo-fleet-monitor), 2026-11-08 10:12 CST run: acceptance criteria appended to the body, labels normalized, meta/enriched applied. developing-today commented on Nov 8, 2026 ContributorAuthor More actions 🤖 Agent note · handed off
dezren39 commented on Nov 12, 2026 dezren39 commented on Nov 12, 2026 dezren39 commented on Nov 13, 2026 Steer applied 2026-11-13 under Drew's order "fix all fixable and reblocked": Drew's recorded answer (bot-autoclose-7610) applied — queue task(s) released to the queue to execute it. Set: decisions-2026-11-13-blocked-review. dezren39 commented on Nov 13, 2026
Agent note — orchestrator decision made and routed (task 14319, lane any-d, 2026-11-13)
Drew deferred this choice to the orchestrator in full (pending-questions ledger item bot-autoclose-7610, answered 2026-11-11: "Deferred to orchestrator in full — orchestrator to decide and execute; do not re-ask Drew"). Acting on that deferral, the decision is:
Decision: fix the rule in the integration now (option 1). Do NOT fold this bug into #1752 as a blocker.
- Required behavior: the developing-today[bot] status automation may apply
status:done + close an issue ONLY on a genuine closing signal (a closing-keyword reference — Fixes/Closes/Resolves #n — in the merged PR, or an explicit close action). A Refs-only merge leaves the issue's state and status labels untouched.
- Regression fixtures: the three recorded false closes — id: design: local-dev parity for the serverless edition (from #5681) #5866 (PR doc: local-dev parity decision record for the serverless edition (#5866) #7588), deploy tool: Cloudflare target class — generalize the <name>-deploy apps to all Workers #5767 (PR feat(deploy): register the 3 Cloudflare deploy apps as deploy targets (#5767 phase 1) #7592), Proof-of-concept Android app + input interface extension (touch, mouse, hover) for relaying into live apps #1831 — each auto-closed + status:done on a Refs-only merge and manually reopened.
- Why not nixos: bring Grist, Kaneo, Pad, ready-for-agent in as flake services — the last hand-run PM servers #1752: nixos: bring Grist, Kaneo, Pad, ready-for-agent in as flake services — the last hand-run PM servers #1752 is the NixOS flake-services migration for the hand-run PM servers (Kaneo included). This bug corrupts issue state on every phase-style merge today; parking it behind a hosting migration repeats the harm indefinitely. The rule change is independent of where Kaneo is hosted.
Routing / execution: the handler lives in the external developing.today / Kaneo GitHub integration (verified by triage task 13741: no status handler exists in this repo; the repo carries only pm-stack/github-app-manifest.json). The change therefore lands with the Kaneo integration's configuration/deployment work, tracked under #1752's Kaneo service scope as the venue — as an implementation item under this decision, not as a decision gate. This issue stays open as the bug record until the integration change is verified against the fixtures above; a cross-reference note with this decision was posted on #1752.
dezren39 commented on Nov 14, 2026 FIXED 2026-11-14 — root cause found in source, rule changed at the source, verified with live fixtures. Closing with the evidence below.
Drew's direct order 2026-11-14 09:57 CST: "Yes, fix that. Fix that now." (This also executes the 2026-11-13 orchestrator decision recorded on this issue; the blocked/escalated framing is superseded — no decision was outstanding.)
Root cause (two independent confirmations: upstream source + live DB)
The closer is Kaneo v2.47.0's GitHub integration (the developing-today[bot] app), in two steps:
- Loose linking at PR-open.
apps/api/src/plugins/github/webhooks/pull-request-opened.ts + utils/issue-references.ts: a PR is linked to a task if its title contains any #n (no keyword needed — body references require one, titles do not), or its branch matches the task pattern, or it carries a Kaneo task key. PR design(id/atlas): proto design — extensible primitives, federation, namespaces (#9106 intake) #9184's title ended "(epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106 intake)" — that alone linked it to epic epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106's task.
- Keyword-blind merge handling.
webhooks/pull-request-closed.ts: on any merge of a linked PR, the task moves to the pr_merged target status. The handler never inspects title/body for closing keywords. Our live config (Postgres integration.config, all 4 projects) had statusTransitions.onPRMerge = "done" — the final column — so events/task-status-changed.ts then labelled the GitHub issue status:done and closed it. Live DB trail for epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106: task status_changed in-review → done at 2026-11-13T03:03:56Z, seconds after PR design(id/atlas): proto design — extensible primitives, federation, namespaces (#9106 intake) #9184 merged (03:03:53Z); GitHub close at 03:04:00Z.
Ruled out with evidence: all 67 GitHub Actions workflows (no PR-merge issue closers), pm-dispatch, pm-stack projector/aggregator, opencode-claimant, fleet crates, fleet-paperwork (same app identity but hand-run, no labels, ledger shows no victim closes). The bot is the only actor that ever applied status:done on the victims.
Source fix applied
integration.config.statusTransitions.onPRMerge: "done" → "in-review" for all four GitHub integrations (code, opencode, openchamber, nix), applied 2026-11-14 ~16:00Z in the live Kaneo Postgres and re-read verified. onPROpen (in-review) and onBranchPush (in-progress) untouched; the app and integration were NOT disabled.
Why this preserves legitimate closes: a PR with a real closing keyword still closes its issue via GitHub's native closing on merge to the default branch, and Kaneo's issue_closed handler (fallback target "done") then completes the task and applies status:done — proven by the control fixture below.
Recorded in the repo so a re-connect cannot silently restore "done": PR #10114 (merged) adds pm-stack/KANEO-GITHUB-SYNC.md (rule, root cause, re-apply SQL/UI steps, upstream defects — including the trap that deleting the pr_merged workflow rule in the UI falls back to "done") and corrects the README sync summary.
Verification (live fixtures, 2026-11-14)
- Refs-only: issue fixture: refs-only merge must not close this issue #10106 + PR fixture: refs-only PR for the auto-close fix (#10106) #10109 (title reference "(fixture: refs-only merge must not close this issue #10106)", body "Refs fixture: refs-only merge must not close this issue #10106 — deliberately no closing keyword", merged 16:06:01Z into a scratch branch). Before merge, Kaneo had linked the PR to fixture: refs-only merge must not close this issue #10106's task and moved it to in-review — the exact epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106 setup. After merge: issue stayed OPEN, labels only status:in-review, task stayed in-review, zero bot events after the merge. (Pre-fix, epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106 closed 7s after its merge.)
- Closes control: PR docs(pm-stack): record Kaneo PR-merge sync rule fix #10114 carried "Closes fixture: closes-keyword merge should still close this issue #10107" and merged to main 16:10:26Z. fixture: closes-keyword merge should still close this issue #10107 was closed natively by dezren39 at 16:10:28Z, bot applied status:done 16:10:32Z, Kaneo task = done. Legitimate closes still work end to end.
- This issue (bug: developing-today[bot] closes Refs-only issues on PR merge (status:done + close) even when the packet requires the issue to stay open #7610) was mentioned in PR docs(pm-stack): record Kaneo PR-merge sync rule fix #10114's body without a keyword and was untouched, as expected.
Watchdog (safety net)
#10105 — closure watchdog implemented: script ~/workspace/closure-watchdog/closure_watchdog.py, Muse cron closure-watchdog every 15 min over code + opencode + openchamber, auto-reopens automation closes with open sub-issues or a Refs-only trigger PR, strips status:done, posts evidence, reports to the ID & Atlas Space owner chat. Dry-run against history: would have caught both #9106 and #9078 (both rules fire on each).
Remaining known exposure (not this defect)
Upstream Kaneo still links title-referenced PRs and its merge handler is keyword-blind; if the pr_merged rule is ever set back to a final column (e.g. by a re-connect importing upstream defaults), the bug returns — the watchdog now catches that, and KANEO-GITHUB-SYNC.md documents the re-apply. #9155's close (10 min after its PR merge, no in-review step) is consistent with a delayed/manual in-Kaneo task move to Done rather than the instant webhook path; the watchdog covers that path too, since it keys on the close event, not the trigger.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|