π debug(l6): expose claude -p output to CI logs (#116)#117
Merged
Conversation
First L6 run on dev (run 24963880924) failed because all 4 wired flows
produced 0 trajectory rows + 0 tokens. The runner suppressed claude's
stdout (`>/dev/null`) so we had no diagnostic info.
This PR:
1. Strips `>/dev/null` redirect from all 16 flow scripts so claude's
output flows to CI logs
2. Updates l6_run_claude to wrap output with [claude] prefix on stderr
3. Adds pre-flight diagnostics in run-l6.sh that test claude in
isolation BEFORE the flow tests:
a. `claude --version` (binary present?)
b. `claude -p "say hello in one word"` (basic auth works in -p mode?)
c. `claude --plugin-dir <root> -p "say hi in one word"` (plugin
loads in -p mode, no bro engagement?)
After CI runs this, we'll see which layer breaks. Common possibilities:
- Auth: token wasn't recognized in -p mode
- -p mode: doesn't engage @bro persona trigger
- Plugin loading: --plugin-dir incompatible with -p
- MCP: server didn't spawn in -p mode
Cost: still ~$0 if all layers fail (no tokens consumed). Up to ~$0.30
if pre-flight succeeds and flows run.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ZaxShen
added a commit
that referenced
this pull request
May 20, 2026
β¦dev' π fix(tests): HOME isolation for session-log-capture silent no-op test (#117) See merge request trustmybot/plugin!36
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.
Diagnostic PR for #116. Doesn't fix the L6 failure β gathers info to identify which layer breaks.
Problem (#116)
First L6 run on dev produced 0 trajectory rows + 0 tokens for all 4 wired flows. Runner suppressed claude's output via `>/dev/null` β we have no idea what claude was doing.
What this PR adds
What we expect to learn
After CI runs this on dev, the logs will show:
Each finding has a different fix.
Cost
~$0 if any pre-flight fails (no completion). ~$0.30 if all 3 pre-flights succeed + 4 wired flows run.
After this
Based on the diagnostic output, follow-up PR (or comment on #116) to fix the broken layer. May lead to:
π€ Generated with Claude Code