Skip to content
SprecherEast
Issue 1300

process: make the issue and board steps run by themselves, at session start and at filing

Back to our plan
Done
ciprocesstoolingpriority: highready

Problem

In plain words: the steps for filing an issue, claiming it and moving its card are written down, but nothing makes a session follow them at the moment they matter. An issue filed straight through the API can skip the form's sections and is only flagged afterwards, nothing records that a duplicate search was done, and after a claim, a pull request or a merge nobody reads the card's history to confirm the board did what the rules say. The owner should not have to remind a session of any of this.

Cause (checked): the issue check warns after filing and the pull request gate runs when a PR opens, but between them the only guard is the session remembering to open the filing checklist and the project-tracking skill. The session hooks cover forbidden commands and edits, not filing. The wrapped skill checks the merge and the deploy, not the card.

Existing work compared: #145 and #609 make code and pull request rules mechanical; #1114 covers the pull request description; #453 closes gaps in the Bash hook for forbidden commands; #969 and #971 added the issue check and the filing checklist, which stay as they are. None puts a check at the moment of filing, at session start, or on the card history, so this is new work and extends none of them. It builds on the issue-policy rules (#969) and the Bash hook (#446).

Owner decision

Summary of the owner's decision (2026-11-18, Claude session, voice and text): when he asks for a fix, an agent must follow the written process by itself, including the board moves and the issue and pull request templates, so he never has to repeat it. Where a mechanical check can enforce a step, prefer it to the agent's memory, and the fix goes through the same process it enforces.

Proposed fix

  1. At session start, a hook adds a short reminder to the session: read the filing checklist before filing, claim by assigning, never move a card by hand, check the duplicates, and read the card history after each claim, pull request and merge.
  2. At filing, the Bash hook checks an issue that an agent is about to create through the API with the same issue-policy rules the issue check uses, plus a recorded duplicate search, and refuses it with the rule IDs and fixes when something is missing. The issue form gets the matching section.
  3. After each step, the project-tracking skill and the wrapped skill read the card's history (who changed its status, and when) and compare it with the board rules, instead of only its final column.
  4. The generated filing checklist and the session-start token budget stay in step.

Acceptance criteria

  • Not done: A new session shows the process reminder before any work, and the session-start token budget check still passes.
  • Not done: An issue created through the API without a required section, or without a duplicate-search record, is refused by the hook with the failing rule IDs; a complete one is allowed. Tests are in .claude/hooks/.
  • Not done: Commands that only add labels, comments, links or fields on an existing issue are not affected.
  • Not done: The issue forms and the filing checklist name the duplicate-search record.
  • Not done: project-tracking and wrapped say how to read a card's history and what the rules expect to see.
  • Not done: The knowledge and process docs describe the change in the same pull request.

Files likely touched

  • .claude/hooks/ and .claude/settings.json
  • .github/ISSUE_TEMPLATE/, .github/scripts/issue-policy.mjs (exports only, if needed)
  • .agents/skills/project-tracking/SKILL.md, .agents/skills/wrapped/SKILL.md
  • docs/process/filing-checklist.md (generated), docs/process/issue-and-pr-checks.md

Must not touch

  • The rules the issue check and the pull request gate apply today (this adds a hook in front of them)
  • src/ and the deploy workflow

Open questions

None.

Area

tooling, ci

Priority

high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab