Skip to content

tri now add: --refs cites an issue without closing it (Refs #141) - #2649

Merged
gHashTag merged 2 commits into
masterfrom
w699-now-refs
Aug 24, 2026
Merged

tri now add: --refs cites an issue without closing it (Refs #141)#2649
gHashTag merged 2 commits into
masterfrom
w699-now-refs

Conversation

@gHashTag

Copy link
Copy Markdown
Owner

tri now add had exactly one issue flag: --closes N, stamping (Closes #N) — and GitHub acts on that word.

LOOP-RULES R11 bans autoclosing a long-lived tracking issue. So an entry that had to cite one had three options, all bad:

option why it failed
--closes autocloses the tracking issue — the banned thing
hand-edit the generated file the exact drift this command exists to prevent
cite nothing the entry loses its anchor

All three were taken at least once, including by me, twice in this campaign.

--refs N stamps (Refs #N): the citation without the side effect.

Measured, not asserted

  • conflicts_with = "closes" — verified by running it: exit 2, no file written. Declaring a conflict and enforcing one are different claims.
  • The suffix moved into issue_suffix(), separate from the writer, so it is testable without a filesystem. Two tests: Refs must not contain the string Closes, and --closes must still autoclose.

Closes and Refs differ by nothing a reviewer reliably notices in a diff, and only one of them closes an issue — so the test asserts the absence of the dangerous word, not just the presence of the right one.

Self-demonstrating

This PR's own NOW entry is the flag's first use, citing #141 — the now-coordination anchor, which must never be autoclosed. Before this change, writing that entry correctly was not possible with the command.

Refs #141

`--closes N` stamps "(Closes #N)", and GitHub acts on that word.
LOOP-RULES R11 bans autoclosing a long-lived tracking issue, so an entry
that had to cite one could only autoclose it (banned), hand-edit the
generated file (the drift this command exists to prevent), or cite
nothing. All three were taken at least once.

`--refs N` stamps "(Refs #N)": the citation without the side effect. It
conflicts_with "closes" -- an entry carrying both says two different
things about one issue, and clap refuses it for free (verified: exit 2,
no file written).

The suffix moves into `issue_suffix()`, separate from the writer so it is
testable without a filesystem. `Closes` and `Refs` differ by nothing a
reviewer reliably notices in a diff, and only one of them closes an issue.
@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-24 02:19:33 UTC

Summary

Status Count
Total Open PRs 3
PRs with Failing Checks 2
PRs with All Checks Green 1
READY 0
FAILING 2
PENDING 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e6333575ec10 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@github-actions

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-24 02:32:01 UTC

Summary

Status Count
Total Open PRs 2
PRs with Failing Checks 1
PRs with All Checks Green 1
READY 0
FAILING 1
PENDING 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=e6333575ec10 != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@github-actions

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@gHashTag
gHashTag merged commit 21b7694 into master Aug 24, 2026
32 of 33 checks passed
@gHashTag
gHashTag deleted the w699-now-refs branch August 24, 2026 02:43
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