Consumer migration to glimmung phases-v1 (glimmung#69) #177

Closed
opened 2026-05-02 02:03:57 -07:00 by romaine-life-app[bot] · 0 comments
romaine-life-app[bot] commented 2026-05-02 02:03:57 -07:00 (Migrated from github.com)

Glimmung's phases-v1 schema is live in production. The ambience consumer was migrated first (see ambience#133). Spirelens is up next when ready.

Changes required in .github/workflows/issue-agent.yaml

  1. Branch resolution. Currently issue-$ISSUE-agent-$RUN-$ATTEMPT (line ~492). Change to glimmung/$($env:GLIMMUNG_RUN_ID) where GLIMMUNG_RUN_ID is sourced from inputs.run_id. Same branch reused across verify-loop retries and PR-feedback recycle dispatches; the agent force-pushes back to it.

  2. Drop gh pr create. The PR-open step at line ~745+ (PR-via-REST POST). Glimmung opens the PR after the verify phase ADVANCEs. Drop the entire step. Triage-mode commenting (force-push outcome) stays.

  3. Pair with a Cosmos flip. After the YAML lands, run a Cosmos upsert to set pr.enabled=true on spirelens/issue-agent's workflow doc:

    doc = await c.read_item(item="issue-agent", partition_key="spirelens")
    doc["pr"]["enabled"] = True
    await c.upsert_item(doc)
    

Reference

  • glimmung#69 — full design + grilling-session context
  • glimmung#70 — schema + runtime PR
  • ambience#133 — pattern this should mirror (Ambience's YAML is bash; spirelens's is PowerShell, but the structural changes are 1:1)

Out of scope

  • Multi-phase orchestration (test-plan/implementation/verify as separate glimmung phases) is a follow-up tracked under glimmung#69's follow-up #2.

Test plan

  • Trigger a fresh dispatch on a low-stakes spirelens issue.
  • Verify branch is glimmung/<run_id>, no gh pr create step runs, glimmung opens the PR after ADVANCE.
  • PR-feedback signal still re-dispatches via glimmung's PR-primitive recycle.
Glimmung's phases-v1 schema is live in production. The ambience consumer was migrated first (see ambience#133). Spirelens is up next when ready. ## Changes required in `.github/workflows/issue-agent.yaml` 1. **Branch resolution.** Currently `issue-$ISSUE-agent-$RUN-$ATTEMPT` (line ~492). Change to `glimmung/$($env:GLIMMUNG_RUN_ID)` where `GLIMMUNG_RUN_ID` is sourced from `inputs.run_id`. Same branch reused across verify-loop retries and PR-feedback recycle dispatches; the agent force-pushes back to it. 2. **Drop `gh pr create`.** The PR-open step at line ~745+ (PR-via-REST POST). Glimmung opens the PR after the verify phase ADVANCEs. Drop the entire step. Triage-mode commenting (force-push outcome) stays. 3. **Pair with a Cosmos flip.** After the YAML lands, run a Cosmos upsert to set `pr.enabled=true` on `spirelens/issue-agent`'s workflow doc: ```python doc = await c.read_item(item="issue-agent", partition_key="spirelens") doc["pr"]["enabled"] = True await c.upsert_item(doc) ``` ## Reference - glimmung#69 — full design + grilling-session context - glimmung#70 — schema + runtime PR - ambience#133 — pattern this should mirror (Ambience's YAML is bash; spirelens's is PowerShell, but the structural changes are 1:1) ## Out of scope - Multi-phase orchestration (test-plan/implementation/verify as separate glimmung phases) is a follow-up tracked under glimmung#69's follow-up #2. ## Test plan - [ ] Trigger a fresh dispatch on a low-stakes spirelens issue. - [ ] Verify branch is `glimmung/<run_id>`, no `gh pr create` step runs, glimmung opens the PR after ADVANCE. - [ ] PR-feedback signal still re-dispatches via glimmung's PR-primitive recycle.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens#177
No description provided.