issue-agent: migrate to glimmung lease dispatch #152
No reviewers
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens!152
Loading…
Reference in a new issue
No description provided.
Delete branch "glimmung-migration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Replaces the home-grown
issue-agent.ymllock +issue-agent-worker.ymldispatch chain with glimmung as the entry point. Glimmung's webhook (glimmung.romaine.life/v1/webhook/github) receives the GitHubissuesevent, acquires a host venue from its Cosmos store via optimistic-CAS, and firesworkflow_dispatchagainst this workflow withlease_id+host+issue_number. The lock now lives in glimmung'shostscontainer, not in a workflow holding a runner.Changes
.github/workflows/issue-agent.yml— the home-grown lock wrapper. Replaced by glimmung's optimistic-CAS on thehostdoc..github/workflows/issue-agent-worker.yml→issue-agent.yaml— this is now the canonical entry point glimmung dispatches to.lease_id,host,issue_number(+ informationalissue_title,gh_event,gh_action). Dropsroute_label,lock_run_id,dispatch_token.routejob step: verify the glimmung lease viaGET /v1/lease/{id}?project=spirelens. Assertstate=activeandhost=inputs.hostbefore any host-pinned phase runs. Capability auth — lease ID is a 128-bit ULID, possessing it is the proof.routerunner-label resolution is now deterministic: glimmung supplies the route label asinputs.host, this job derives theissue-agent-sts2-*resource label from its suffix and emitsruns_onfor each phase. No round-robin, no issue-label mutation, nogh apicalls inside the route job.test-plan,implementation, andverification.implementationadditionally forks a background loop posting every 60s through the 30-min phase.workflow_run.completedwebhook handler (subscribed to "Workflow runs" on the GitHub App) releases the lease automatically when this workflow finishes — including cancellation, runner-died, etc. The 1h TTL sweep is the ultimate backstop.Operator setup (one-time)
https://glimmung.romaine.life/v1/webhook/github(already configured per earlier conversation).spirelens(github_reponelsong6/spirelens), workflowissue-agent(filenameissue-agent.yaml, trigger_labelissue-agent, requirements{\"apps\":[\"sts2\"]}), hosts named to match the existing runner route labels (issue-agent-runner-nelsonpc-user,issue-agent-runner-nelsonlaptop). Already done.What stays unchanged
claim-issueandrelease-issuejobs (label-flipping for human visibility).Test plan
issue-agentlabel. Confirm: