Skip to content

fix(ticket-draft): offer GitHub Issues on origin when no tracker is recorded - #138

Merged
mmaclay merged 1 commit into
mainfrom
fix/130-ticket-draft-unrecorded-github
Nov 16, 2026
Merged

mmaclay merged 1 commit into
mainfrom
fix/130-ticket-draft-unrecorded-github

Conversation

@mmaclay

@mmaclay mmaclay commented Nov 16, 2026

Copy link
Copy Markdown
Member

Origin: #130
Sandbox: tracker-gh-ticket-draft-unrecorded-ask (Haiku, one run per side): fails on main, passes on the branch. --check --repeat 2 not yet run.
Canary: not yet run; a week owed, since this opens a route to GitHub issue writes

ticket-draft decides whether to file a GitHub issue or a Jira ticket from the standard's recorded tracker. In a repository that has never run /lasp-dev:onboard, nothing is recorded, and a request for a GitHub issue was answered with "this repository's tracker is not GitHub Issues", offering only Jira or Stop. That was false, and it blocked filing an issue on a repository whose issues plainly live on GitHub; it happened on this repository (#130). Once this merges, an unrecorded tracker is never called "not GitHub Issues": with a github.com origin, the skill asks once whether to use GitHub Issues there and files on that repository on a yes.

How it decides

  • Unrecorded, origin on github.com: "Tracker looks like GitHub Issues on <owner>/<repo>; use it?", with Use GitHub Issues (recommended), Draft it as a Jira ticket or Stop. It asks rather than assumes, because a repository hosted on GitHub can track its work in Jira.
  • Unrecorded, origin elsewhere or missing: says no tracker is recorded and names /lasp-dev:onboard, with Jira or Stop.
  • A recorded kind other than github: unchanged.

The answer holds for the run only. Remembering it belongs to #102 (settings detected first, overrides stored), so the question comes back each session until a tracker is recorded.

Making the GitHub path work without a recorded tracker

source-reader and using-github/issues.md each decided GitHub by reading the profile themselves, so a confirmed run would still have sent their reads to Jira.

  • github.md now fixes the issues' repository once and passes Tracker: github <owner/repo> to every source-reader task in the run, including settle's and reformat's ticket reads and the read-back.
  • source-reader takes that line over the profile's location.
  • issues.md counts a tracker the person confirmed as GitHub's.
  • With no tracker recorded, no role has a label. A move into a role is skipped and said in one line, and the closing line names /lasp-dev:onboard rather than /lasp-dev:work <n>: work treats a number as an issue only when github is recorded.

The approval record and hooks/issue-gate.sh are unchanged; they compare owner/repo only.

Testing

Three tracker-github scenarios run with no standard:

  • -unrecorded-ask is the one that separates main from the branch.
  • -unrecorded files end to end on origin's repository with no labels. It passes on main too, since main files there once a turn tells it to.
  • -unrecorded-other-origin failed on both sides on wording: Haiku said "no issue tracker is recorded". Its pattern was loosened after the run and has not been rerun.

The Jira-recorded request, the recorded GitHub new and refine paths, and the gate's declined, blanket and standing-answer paths pass on both sides. tests/test_sandbox.py lists the three scenarios, because the pack test enumerates every scenario id.

🤖 Generated with Claude Code. AI assistance level: 5/5 (not read by a person).

…ecorded

- ticket-draft, asked for a GitHub issue with no tracker recorded and
  origin on github.com, asks whether to use GitHub Issues on origin's
  repository (Use / Draft it as a Jira ticket / Stop) and on yes runs
  github.md for that run; nothing is recorded
- with no tracker recorded and origin elsewhere or missing, it says no
  tracker is recorded and names /lasp-dev:onboard; only a recorded kind
  other than github is called "not GitHub Issues"
- github.md defines the issues' repository once and passes
  `Tracker: github <owner/repo>` to every source-reader task, settle's
  and reformat's ticket reads and the read-back included; with no
  tracker recorded, label steps are skipped and the closing line names
  /lasp-dev:onboard in place of /lasp-dev:work
- source-reader treats a caller's Tracker: line as a GitHub tracker
  whose repository overrides issue_tracker.location; it and issues.md
  read an unrecorded role label as none
- three tracker-github scenarios with no standard: the question, the
  filing on origin's repository, and a non-github.com origin
- ticket-draft 1.12.0, using-github 1.3.0

Closes #130

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mmaclay mmaclay self-assigned this Nov 16, 2026
@mmaclay
mmaclay marked this pull request as ready for review November 16, 2026 23:00
@mmaclay
mmaclay merged commit 116697e into main Nov 16, 2026
1 check passed
@mmaclay
mmaclay deleted the fix/130-ticket-draft-unrecorded-github branch November 16, 2026 23:00
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