Drop heartbeats, migrate to pwsh, post-#157 staleness, escape PR title #159
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!159
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/issue-agent-pwsh-and-cleanup"
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?
Bundle of cleanup from a process review. Five files; the workflow change is the substantive one.
Post-#157 staleness
docs/pull-only-workflow.md(deleted in #157, link was 404). Rewrite the "Storage" paragraph from the integer-version framing (v1 / v2 / v16, "schema versioned") to the structural shape detector that #157 actually shipped.RunData_V15WithoutWeakApplied_DeserializesWithZeroDefault→RunData_FromOlderShapeWithoutWeakApplied_DeserializesWithZeroDefault. #157's body says it renamed the same-shaped tests in BagOfMarbles / Pocketwatch / Orichalcum away fromV17/V16/…framing; Red Mask was missed. Test logic is unchanged — still pins the missing-field-defaults-to-zero deserializer behavior.issue-agent-blocked/issue-agent-complete/issue-agent-pr-openfrom the labels lists. Grep confirms no workflow ever applies them; the docs claimed they were "applied by the workflow."issue-agent.yaml
powershell→pwsheverywhereEvery
shell: powershell -NoProfile -ExecutionPolicy Bypass -File {0}becomesshell: pwsh. PowerShell 7+ is already a documented runner prereq and installed on the active hosts. This kills two real bug classes:Out-File -Encoding utf8writes BOM-free in pwsh but writes a UTF-8 BOM in WinPS 5.1, which would corrupt$GITHUB_OUTPUT/$GITHUB_ENVparsing on first append.Standardmode (default everywhere except Windows) handles quoted args correctly; WinPS 5.1's Legacy parser mangles strings containing", backticks, or unbalanced braces.Also bumped explicit intent:
Out-File -Encoding utf8→-Encoding utf8NoBOM(and same for theSet-Content/Add-ContentJSON / log writers). pwsh'sutf8already means BOM-free, but the explicit name matches the intent and survives any future regression.Heartbeats deleted
Glimmung releases the lease on the
workflow_run.completedwebhook plus therelease-glimmung-leasejob (the explicit fast-path). The heartbeat steps (synchronous + background) added nothing on the happy path and introduced a leak (backgroundpowershell.exewas never killed on a self-hosted runner) plus a fail-fast bug (synchronous heartbeat 502 would kill the whole phase before any work ran).This depends on Glimmung's
lease_default_ttl_secondsbeing raised so a long-tail workflow (~85 min worst case =max(test-plan, implementation) + verificationplus build/prep/screenshot overhead) fits comfortably under TTL with no heartbeats. Sibling PR innelsong6/glimmungwill bump the value before this lands.gh pr create→gh apiThe "Create pull request" step previously passed
$title(sourced from the LLM'spr_title) directly togh pr create --title $title. Even on pwsh withStandardarg passing this would be fragile if the title ever needed unusual escaping. Switched to building a JSON payload withConvertTo-Jsonand callinggh api --method POST repos/<slug>/pulls --input payload.json. JSON encodes everything correctly. (gh pr createhas--body-filebut no--title-file, otherwise that would have been the one-line fix.)Risk
lease_default_ttl_secondsbeing raised before this lands on a long-tail run. Coordinate with the corresponding glimmung change.gh apiPR creation hits the same REST endpointgh pr createcalls internally, with the same scopes.html_urlandnumbercome straight from the response JSON.