Skip to content

[log] Add debug logging to launcher health monitor - #14857

Merged
lpcox merged 2 commits into
mainfrom
log/health-monitor-logging-bf879829372c663a
Oct 14, 2026
Merged

lpcox merged 2 commits into
mainfrom
log/health-monitor-logging-bf879829372c663a

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Adds 4 debug log calls to internal/launcher/health_monitor.go using the existing logHealth logger:

  • Goroutine exit reason (stop requested vs. launcher context cancelled)
  • Restart attempt, with previous failure count
  • Restart failure details with consecutive failure count

No side effects in log arguments. Validated with go vet, go test ./internal/launcher, and go build.

Warning

Firewall blocked 3 domains

The following domains were blocked by the firewall during workflow execution:

  • example.com
  • nonexistent.local
  • slow.example.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "example.com"
    - "nonexistent.local"
    - "slow.example.com"

See Network Configuration for more information.

Generated by Go Logger Enhancement · copilot · auto · 43.6 AIC · ⊞ 13K · ◷

@github-actions github-actions Bot added automation enhancement New feature or request labels Oct 13, 2026
@lpcox
lpcox marked this pull request as ready for review October 14, 2026 18:53
Copilot AI max review requested due to automatic review settings October 14, 2026 18:53
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new restart-failure debug log can expose credentials through unsanitized backend errors.

1 open finding
What changed in this PR

Adds debug diagnostics to the launcher health monitor without changing restart behavior.

Changes:

  • Logs why the monitor goroutine exits.
  • Logs restart attempts and failures with failure counts.
File Description
internal/​launcher/​health_monitor.go Adds four debug calls for monitor exits and restart diagnostics.

🧠 Review effort: Max


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/launcher/health_monitor.go Resolved
Removed error logging from health monitor restart failure.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor Author

🔒 mcpg Read-Only Stress — default

Surface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Isolation runtime: default (normal container isolation)

Part Surface Op Result Expected Status
A MCP reads (list_issues, list_pull_requests, get_file_contents, list_commits) data returned ALLOWED ✅
B MCP writes (reaction/star/issue/comment/branch/file/PR) all 6 target tools absent from the 23-tool read-only catalog; 2 probed calls refused as "unknown tool" BLOCKED ⚠️
C CLI reads via github proxy CLI data returned ALLOWED ✅
D CLI REST writes (reaction/star/issue/comment) gh not authenticated in this runtime (GH_TOKEN unset) — no write attempted BLOCKED ⚠️
E CLI GraphQL mutations (addReaction/addStar/createIssue) gh not authenticated — no mutation attempted BLOCKED ⚠️

Overall: INCONCLUSIVE
(⚠️ = no write leaked, but enforcement couldn't be independently confirmed for these rows:
Part B's write tools are never registered at all under gh-aw's tools.github: wrapper
— GITHUB_READ_ONLY=1 is always forced, so refusals only prove backend config, not
mcpg's own gateway/DIFC layer; Part D/E's gh CLI had no GH_TOKEN in this environment,
so the token-scope boundary could not be exercised. No regression detected; this is a
coverage gap, not a failure.)

🔒 mcpg read-only stress (default AWF runtime) by Read-Only Stress: default runtime

@lpcox
lpcox merged commit e734365 into main Oct 14, 2026
31 checks passed
@lpcox
lpcox deleted the log/health-monitor-logging-bf879829372c663a branch October 14, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants