Skip to content

Adopt the relay logging standard - #82

Merged
barelyworkingcode merged 3 commits into
mainfrom
feat/81-logging
Oct 4, 2026
Merged

barelyworkingcode merged 3 commits into
mainfrom
feat/81-logging

Conversation

@barelyworkingcode

@barelyworkingcode barelyworkingcode commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Closes #81

Adds LogLine.swift (stderr JSON writer, trace ID, RELAY_LOG_LEVEL, 30-minute debug window) and one tool.call line per call in the tools/call branch. Reads _meta.trace_id (kept if valid, else new); adds nothing to result _meta; logs the tool name only.

Decision: a failed or denied call logs at warn (status error / denied), not info, because the standard says status and level agree. Issue criteria 7 and 9 say "info"; the standard wins.

Fix attempts: 1 review round of fixes. Tokens: about 650k across subagents.

Review: approve (round 2, default model, no blocking findings)
Break-and-restore: trace ID validation weakened, testTraceIDs went red, restored byte for byte
Real-app check: head macMCP behind relay main d1b3c39: mail_list_accounts trace_id 64c09b6f0b5aef4f5fbd5b31aceeca53 appears in relay.log (bridge.request) and the macMCP service log mcp/macmcp.log (tool.call, status ok); relay devboxverify api phase pass=137 fail=0 incl. acme-tools-through-bridge and tool-call-audited

🤖 Generated with Claude Code

barelyworkingcode and others added 2 commits October 4, 2026 16:24
…all line

Part of #81

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Part of #81

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Part of #81

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@barelyworkingcode
barelyworkingcode merged commit e6c233d into main Oct 4, 2026
2 checks passed
@barelyworkingcode
barelyworkingcode deleted the feat/81-logging branch October 4, 2026 23:37
@barelyworkingcode

Copy link
Copy Markdown
Owner Author

merge-check: merged. issue, approved, base, ci, contract, review, proof, owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopt the relay logging standard

1 participant