René's URL Explorer Experiment


Title: muse-proxy: signal-killed runs report 'muse exec exited with code null', and #673's empty-stderr terminal-state fallback is untested · Issue #674 · developing-today/code · GitHub

Open Graph Title: muse-proxy: signal-killed runs report 'muse exec exited with code null', and #673's empty-stderr terminal-state fallback is untested · Issue #674 · developing-today/code

X Title: muse-proxy: signal-killed runs report 'muse exec exited with code null', and #673's empty-stderr terminal-state fallback is untested · Issue #674 · developing-today/code

Description: Finding PR #673 (fixing #672) reworked bin/muse-proxy.mjs's failure handling so failure is judged by the authoritative terminal state, and — when stderr is empty — the error detail names that terminal state instead of the misleading muse...

Open Graph Description: Finding PR #673 (fixing #672) reworked bin/muse-proxy.mjs's failure handling so failure is judged by the authoritative terminal state, and — when stderr is empty — the error detail names that termi...

X Description: Finding PR #673 (fixing #672) reworked bin/muse-proxy.mjs's failure handling so failure is judged by the authoritative terminal state, and — when stderr is empty — the error detail names that t...

Opengraph URL: https://github.com/developing-today/code/issues/674

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"muse-proxy: signal-killed runs report 'muse exec exited with code null', and #673's empty-stderr terminal-state fallback is untested","articleBody":"## Finding\n\nPR #673 (fixing #672) reworked `bin/muse-proxy.mjs`'s failure handling so failure is judged by the authoritative terminal state, and — when stderr is empty — the error detail names that terminal state instead of the misleading `muse exec exited with code 0`. The fallback expression it left behind (current `main`, `bin/muse-proxy.mjs:404-409`) has two remaining gaps in the same spot:\n\n```js\nconst failed = terminalState ? terminalState !== 'completed' : code !== 0;\nif (failed) {\n  const stderrLine = stderrTail.trim().split('\\n').pop();\n  const fallback = terminalState && terminalState !== 'completed'\n    ? `muse run terminated with state '${terminalState}'`\n    : `muse exec exited with code ${code}`;\n```\n\n### 1. Signal-killed runs report `muse exec exited with code null`\n\nThe close handler is `child.on('close', (code, signal) => …)` (line 367), but `signal` is never used. When the child dies by signal (OOM `SIGKILL`, `SIGTERM`, …), Node reports `code === null`, the run correctly counts as failed (`code !== 0`), but with empty stderr the detail becomes the literal string `muse exec exited with code null` — the same class of misleading detail #673 set out to eliminate for the terminal-state case.\n\nReproduced on current main (`4a91edc3`, merge of #673) with a stub `muse` that kills itself and prints nothing:\n\n```sh\n#!/bin/sh\nkill -9 $$\n```\n\n- Non-stream: `500 {\"error\":{\"message\":\"Muse execution failed: muse exec exited with code null\"}}`\n- Stream: SSE error event with the same `code null` message, then `data: [DONE]`\n\n### 2. The empty-stderr terminal-state fallback added by #673 has no test coverage\n\nBoth failure stubs added by #671/#673 emit a stderr line (`stub muse: run failed midway`, `stub muse: crashed midway`), and the #672 test only asserts `/Muse execution failed: stub muse:/` — so the `stderrLine` is always what satisfies the assertion and the new fallback string is never exercised.\n\nVerified by ablation in a scratch copy: reverting **only** the fallback-detail lines to the pre-#673 form (`stderrTail… || \\`muse exec exited with code ${code}\\``), while keeping #673's failure predicate, still passes the full suite 4/4 (`node --test bin/muse-proxy.test.mjs`). The behaviour itself works today — a stub emitting `run.terminal.failed` with **no** stderr returns `Muse execution failed: muse run terminated with state 'failed'` in both modes — but nothing pins it, so a future refactor can silently regress it back to `exited with code 0`.\n\n## Evidence\n\n- PR #673: https://github.com/developing-today/code/pull/673 (commit `df1dd2502d98b2a7bf435e7a2789f49965354dbe`, merged in `4a91edc359063734da7d0b8a8dedbd2d49591216`), diff hunk changing the failure predicate and detail fallback in `bin/muse-proxy.mjs`.\n- Current main: `bin/muse-proxy.mjs:367` (close handler signature `(code, signal)`), `:404-409` (predicate + fallback quoted above).\n- Tests: `bin/muse-proxy.test.mjs` — `FAILPARTIAL`/`CRASHPARTIAL` stubs (lines 32-43) both write to stderr; the #672 test's error assertions (lines 175, 188) match only the stderr text.\n- Live repro of both the `code null` message and the working-but-untested terminal-state message, run against current main as described above.\n\n## Why it matters\n\nThis proxy is the OpenAI-compatible surface other tools drive `muse exec` through; when a run dies, the error detail is often the *only* diagnostic a client (or a human reading its logs) gets. `exited with code null` sends debugging in the wrong direction (a signal kill — e.g. OOM — looks like a corrupt message), and the one fallback #673 deliberately improved can regress unnoticed because no test reaches it.\n\n## Acceptance criteria\n\n- [ ] A run terminated by a signal with empty stderr and no terminal event produces an error detail that names the signal (e.g. `muse exec terminated by signal SIGKILL`) instead of `exited with code null`, in both stream (SSE error frame + `[DONE]`) and non-stream (500) modes.\n- [ ] A stub mode that emits a non-`completed` terminal event with **empty** stderr is added to `bin/muse-proxy.test.mjs`, asserting the detail names the terminal state (e.g. `terminated with state 'failed'`) in both modes.\n- [ ] A stub mode whose child dies by signal (e.g. `kill -9 $$`) with empty stderr is added, asserting the signal-naming detail in both modes.\n- [ ] `node --test bin/muse-proxy.test.mjs` passes, and ablating either fallback branch makes exactly the new assertions fail.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-23T17:41:50Z","url":"https://github.com/developing-today/code/issues/674"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3ebc15b6-459f-e92f-8648-24f3b5db7b95
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8EE8:29C715:AE60CC:E1ED45:6B0638A5
html-safe-nonce97a22d8c17f6f4b3bff5873540e1c8f704ae3ef6d803a0654241b32f3406f313
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUU4OjI5QzcxNTpBRTYwQ0M6RTFFRDQ1OjZCMDYzOEE1IiwidmlzaXRvcl9pZCI6Ijc0NzMxMzA2NzYwNjY1OTcwMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac80afd534a9e656a5bc29f19c23896754f644a811041d7ad8d12ceaa49de15372
hovercard-subject-tagissue:6002658338
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/674/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4d0f1da5ef3d2257cca9e8653474ebeb7522f29ea36876a2ec3bd5376e1a4a27/developing-today/code/issues/674
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4d0f1da5ef3d2257cca9e8653474ebeb7522f29ea36876a2ec3bd5376e1a4a27/developing-today/code/issues/674
og:image:altFinding PR #673 (fixing #672) reworked bin/muse-proxy.mjs's failure handling so failure is judged by the authoritative terminal state, and — when stderr is empty — the error detail names that termi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonedcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0f38f5735226749ec5e08a8649dce4cb2613d9ad
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/674#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F674
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F674
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/674
Reloadhttps://github.com/developing-today/code/issues/674
Reloadhttps://github.com/developing-today/code/issues/674
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests158 (158)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/674
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/674
#675https://github.com/developing-today/code/pull/675
muse-proxy: signal-killed runs report 'muse exec exited with code null', and #673's empty-stderr terminal-state fallback is untestedhttps://github.com/developing-today/code/issues/674#top
#675https://github.com/developing-today/code/pull/675
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/674#issue-6002658338
#673https://github.com/developing-today/code/pull/673
#672https://github.com/developing-today/code/issues/672
#673https://github.com/developing-today/code/pull/673
#673https://github.com/developing-today/code/pull/673
#673https://github.com/developing-today/code/pull/673
#671https://github.com/developing-today/code/pull/671
#673https://github.com/developing-today/code/pull/673
#672https://github.com/developing-today/code/issues/672
#673https://github.com/developing-today/code/pull/673
fix(muse-proxy): surface runs that fail after partial output as errors (#672) #673https://github.com/developing-today/code/pull/673
fix(muse-proxy): surface runs that fail after partial output as errors (#672) #673https://github.com/developing-today/code/pull/673
muse-proxy: a run that fails after producing partial output is reported as a successful 'stop' — failure is masked whenever any content exists #672https://github.com/developing-today/code/issues/672
#673https://github.com/developing-today/code/pull/673
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 23, 2026https://github.com/developing-today/code/issues/674#event-34076839790
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#675https://github.com/developing-today/code/pull/675
on Oct 23, 2026https://github.com/developing-today/code/issues/674#event-34078545789
https://github.com/apps/developing-today-fleet
developing-today-fleethttps://github.com/apps/developing-today-fleet
on Nov 24, 2026https://github.com/developing-today/code/issues/674#issuecomment-7124556861
developing.today fleethttps://kaneo.security.cab
PR #675 — fix(muse-proxy): name the killing signal in empty-stderr failure detailhttps://github.com/developing-today/code/pull/675
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/674
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/674
dezren39https://github.com/dezren39
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.