Claim GitHub Issue: $ARGUMENTS
Claim exactly one canonical org/repo#<number> reference. This is the reusable direct-session counterpart of lisa-github-build-intake Phase 3b.
Resolve merged
.github.org,.github.repo, optional.github.queueRepo, andgithub.labels.buildvalues from local-over-global config. Resolve current-repository identity independently usingrepo-scope-split/config-resolution(.repo->.github.repo->git remote get-url originbasename). The queue repository defaults to<github.org>/<github.repo>; it is only the tracker storage/scan target and never replaces current-repository identity. Resolve the ready and claimed roles from config (defaultsstatus:readyandstatus:in-progress); do not hardcode lifecycle decisions.Require the ref's
org/repoto equal the resolved queue repository. Invokelisa-github-read-issue <ref>immediately before mutation. When the queue repository differs from the current repository, require exactly the current-repository scope (repo:<current>); reject an unlabeled issue,repo:<other>, or an ambiguous multi-repo leaf. Also reject a closed issue, an active blocker, any issue with open child work, or a childless Epic perrepo-scope-splitandleaf-only-lifecycle.Inspect the live build lifecycle labels:
- Already claimed, review, environment-done, or another configured later non-terminal role -> preserve it and set
claim_outcome: reused. - Ready or no build lifecycle label -> run
gh issue edit <number> --repo <org>/<repo>, remove ready when present, and add claimed. This is the idempotency lock. - Terminal label/state -> reject; completed work cannot be rebound as new work.
- Already claimed, review, environment-done, or another configured later non-terminal role -> preserve it and set
If and only if the issue is unassigned, add
@me; leave every existing assignee untouched.Post the stable marker comment once, deduped against all existing comments:
[lisa-tracker-claim] Claimed by Lisa. Starting implementation.Invoke
lisa-github-read-issue <ref>again. Success requires the issue to remain open, leaf/current-repo (including the explicitrepo:<current>proof for an umbrella queue), and in claimed or a later non-terminal role. If the relabel or verification fails, return failure and do not authorize a binding.Return
tracker_provider: github, canonicalwork_item_ref: <org>/<repo>#<number>,claim_outcome: claimed|reused, assignee outcome, and the post-write status evidence.
Never create an issue here. Never call GitHub for a configured Jira or Linear project.