Skip to content

#722 Repoint the quarantined view test at an open issue — fixes main - #723

Merged
nockawa merged 1 commit into
mainfrom
fix-718-residual
Aug 8, 2026
Merged

nockawa merged 1 commit into
mainfrom
fix-718-residual

Conversation

@nockawa

@nockawa nockawa commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Fixes main, red since 4956f242 on invariants:

IGNORE_CLOSED_ISSUE - 1 violation(s)
  SystemInputViewLivenessTests.cs:100: [Ignore] references #718, which is CLOSED

Depends on log2n-io/typhon-claude#72 (docs-first).

What happened

PR #721 said Closes #718 and left ViewCreatedBeforeTheSpawns_ConvergesWithOneCreatedAfter quarantined against #718 for direction 1, which it deliberately did not implement. My error — the quarantine reason literally says "needs direction 1" and I still let the message close the issue.

Why the PR gate could not catch it

The lint passed on #721 (#718 was open then) and failed on main (the merge closed it). Any change that both closes an issue and leaves an [Ignore] pointing at it is green before merge and red after. Same shape as the cross-repo deadlock #70 fixed: a check evaluated against a world the merge changes.

Worth a companion to closing-keywords that asks whether anything in the tree still cites what the message closes. Not in this PR.

The fix

The lint's own message prescribes it: "that is a NEW defect and needs a new issue, not a stale reference." And the two cases really are distinct:

fixed — #718's headline a system's input view is re-queried every tick; SystemInputView_SeesEntitiesSpawnedWhileTheRuntimeIsRunning green
open — new #722 a pull View held by user code that nobody refreshes is still a snapshot

Reopening #718 would also have cleared the lint, and would have misrepresented merged work: the P0 it was filed for is fixed.

#722 carries the reason direction 1 is a design and not a repair — ViewRegistry is keyed per indexed field, every publisher iterates fields to find subscribers, and an unfiltered query has no field to register under. Typed Bug, P2, Area Query, Estimate L.

Verified

lint-test-suppressions.py    clean
suite                        5055/0/13

One run also lost ConcurrentAllocateAndFree_MaintainsConsistency — a named victim of #720. It passes in isolation and the re-run was clean; recorded rather than ignored.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FE5GUBSF5D1DhyPAuTBbYk

Fixes main. The #703 suppression lint requires every [Ignore] to name an OPEN issue; PR #721 closed #718 while leaving ViewCreatedBeforeTheSpawns_ConvergesWithOneCreatedAfter quarantined against it, so the lint went red on main.

The lint is right and its own message says what to do: this is a distinct defect and needs its own issue, not a stale reference. #718's headline was a SYSTEM never seeing entities spawned after startup, and that is fixed. What remains is a pull View held by user code that nobody refreshes, filed as #722 with the reason direction 1 is a design rather than a repair — ViewRegistry is keyed per indexed FIELD and an unfiltered query has no field to register under.

Note the timing hole, because it will recur: the lint passed on the PR (#718 was open) and failed on main (the merge closed it). Any change that both closes an issue and leaves an [Ignore] pointing at it is green before merge and red after, so the closing-keyword check wants a companion that asks whether anything in the tree still cites what the message closes.

Suite 5055/0/13. One run also lost ConcurrentAllocateAndFree_MaintainsConsistency, which is a named victim of #720; it passes in isolation and the re-run was clean.
@nockawa
nockawa merged commit 529af52 into main Aug 8, 2026
14 checks passed
@nockawa
nockawa deleted the fix-718-residual branch August 8, 2026 23:21
nockawa added a commit that referenced this pull request Aug 9, 2026
update-on-merge ran `gh issue close` on the first #N in the PR TITLE, unconditionally. That made the title a third way to close an issue, alongside a closing keyword in the squash message and one in the PR description — and it is the one nobody designed. It collides head-on with this repo's own convention of prefixing a title with the issue a change RELATES to. A leading #N means "about", not "completes".

It closed issue #722 minutes after that issue was filed to track REMAINING work, because PR #723 was titled "#722 Repoint the quarantined view test ...". That turned an [Ignore("#722")] into a reference to a closed issue and reddened main. Neither the closing-keywords gate nor the suppression companion from #725 could see it: both read keywords, and this path used none. Three mechanisms, one gate.

Closing is now GitHub's job alone, from an explicit Closes #N. One mechanism, and it is the one already guarded.

The board still moves, which is the half worth keeping — and it is now more correct than before, not merely preserved. It reads the issue's ACTUAL state instead of assuming the merge completed it:

  closed -> Done   (a keyword or a human closed it; update-status-on-close usually does this via the
                    issues.closed event, and doing it here too covers an issue closed BEFORE the merge,
                    where no such event fires at merge time)
  open   -> Todo   (its PR is no longer open, so by the three-state lifecycle it is neither Done nor
                    In Progress — "an issue stays In Progress while its PR is open")

So a title that merely names a related issue now parks it in Todo rather than claiming Done for work that did not happen. That open -> Todo transition is exactly the correction I had to apply by hand to #582 and #688 earlier today.

Verified: no live `gh issue close` remains, the mutation binds $TARGET_STATUS, `bash -n` clean, and the branch simulated both ways — closed gives Done, open gives Todo.
nockawa added a commit that referenced this pull request Aug 9, 2026
update-on-merge ran `gh issue close` on the first #N in the PR TITLE, unconditionally. That made the title a third way to close an issue, alongside a closing keyword in the squash message and one in the PR description — and it is the one nobody designed. It collides head-on with this repo's own convention of prefixing a title with the issue a change RELATES to. A leading #N means "about", not "completes".

It closed issue #722 minutes after that issue was filed to track REMAINING work, because PR #723 was titled "#722 Repoint the quarantined view test ...". That turned an [Ignore("#722")] into a reference to a closed issue and reddened main. Neither the closing-keywords gate nor the suppression companion from #725 could see it: both read keywords, and this path used none. Three mechanisms, one gate.

Closing is now GitHub's job alone, from an explicit Closes #N. One mechanism, and it is the one already guarded.

The board still moves, which is the half worth keeping — and it is now more correct than before, not merely preserved. It reads the issue's ACTUAL state instead of assuming the merge completed it:

  closed -> Done   (a keyword or a human closed it; update-status-on-close usually does this via the
                    issues.closed event, and doing it here too covers an issue closed BEFORE the merge,
                    where no such event fires at merge time)
  open   -> Todo   (its PR is no longer open, so by the three-state lifecycle it is neither Done nor
                    In Progress — "an issue stays In Progress while its PR is open")

So a title that merely names a related issue now parks it in Todo rather than claiming Done for work that did not happen. That open -> Todo transition is exactly the correction I had to apply by hand to #582 and #688 earlier today.

Verified: no live `gh issue close` remains, the mutation binds $TARGET_STATUS, `bash -n` clean, and the branch simulated both ways — closed gives Done, open gives Todo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant