Repository navigation
Adopt the relay logging standard - #82
Merged
Merged
Conversation
4 tasks
Part of #81 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Owner
Author
|
merge-check: merged. issue, approved, base, ci, contract, review, proof, owner |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #81
Adds
LogLine.swift(stderr JSON writer, trace ID,RELAY_LOG_LEVEL, 30-minute debug window) and onetool.callline per call in thetools/callbranch. 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(statuserror/denied), notinfo, 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,
testTraceIDswent red, restored byte for byteReal-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