Skip to content

[log] Add debug logging to launcher session launch - #16299

Merged
lpcox merged 2 commits into
mainfrom
log/launcher-session-launch-565f3a310f751af7
Nov 11, 2026
Merged

lpcox merged 2 commits into
mainfrom
log/launcher-session-launch-565f3a310f751af7

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Adds 5 debug log calls to internal/launcher/launcher.go using the existing logLauncher logger: launcher-closed rejection, session launch failure, session pool insertion, stdio launch start, and startup timeout. Arguments are side-effect free.

Validation: go vet/go test ./internal/launcher and go build pass.

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 (Claude Sonnet 5.5) · ~49 AIC · ⊞ 6.5K · ◷

@github-actions github-actions Bot added automation enhancement New feature or request labels Nov 10, 2026
@lpcox
lpcox marked this pull request as ready for review November 10, 2026 23:49
Copilot AI adaptive review requested due to automatic review settings November 10, 2026 23:49

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

A moderate active issue remains because the new debug log emits backend errors without launcher-context redaction, risking disclosure of sensitive data.

1 open issue
What changed in this PR

Adds debug-level observability around stateful stdio session launches in the launcher package using the existing logger, without changing launch behavior.

Changes:

  • Logs rejected launches when the launcher is closed.
  • Logs session launch failures and successful session-pool insertion.
  • Logs stdio launch initiation and startup timeout events.
File Description
internal/​launcher/​launcher.go Adds five debug log calls covering session rejection, launch failures, session-pool insertion, stdio launch initiation, and startup timeouts.

Review effort: Lite (auto)

Comment thread internal/launcher/launcher.go Resolved
@github-actions

This comment has been minimized.

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 (add_issue_comment, star_repository, issue_write, create_branch, create_or_update_file, create_pull_request) all 6 absent from 23-tool catalog ("Unknown command") BLOCKED ⚠️
C CLI reads via github proxy data returned ALLOWED ✅
D CLI REST writes via gh api not tested BLOCKED ⚠️
E CLI GraphQL mutations via gh api graphql not tested BLOCKED ⚠️

Overall: INCONCLUSIVE

⚠️ Part B: all 6 targeted write tools were absent from the gateway's exposed catalog (only 23 read-only tools registered, consistent with gh-aw's GITHUB_READ_ONLY=1 backend launch). This confirms backend/toolset read-only configuration but does not independently exercise mcpg's own DIFC/guard write-blocking layer, since no write-capable tool call ever reached it.

⚠️ Parts D/E: gh auth status reported no authenticated host ("You are not logged into any GitHub hosts"), so REST/GraphQL write attempts via gh could not be executed in this run — the token-scope boundary was not exercised.

No writes leaked in any part that was reachable (no reaction/star/issue/comment/branch/file/PR created).

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

@lpcox
lpcox merged commit 6cc6826 into main Nov 11, 2026
28 of 30 checks passed
@lpcox
lpcox deleted the log/launcher-session-launch-565f3a310f751af7 branch November 11, 2026 18:28
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