Skip to content

docs: correct the unified-log guidance in CLAUDE.md - #110

Merged
mrmidi merged 1 commit into
mrmidi:mainfrom
deweydb:docs/claude-md-unified-log
Sep 15, 2026
Merged

mrmidi merged 1 commit into
mrmidi:mainfrom
deweydb:docs/claude-md-unified-log

Conversation

@deweydb

@deweydb deweydb commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

CLAUDE.md: correct the unified-log guidance

CLAUDE.md says the agent's Bash sandbox "cannot read the unified log" because log show returns zero lines. That was a misdiagnosis: zsh has a log builtin that shadows /usr/bin/log, so a bare log show … is swallowed and every predicate looks empty. Calling /usr/bin/log by absolute path works, so the instruction to hand traces to the user isn't needed.

The PR keeps the two gotchas that are real:

  • Dext lines surface as process == "kernel", not under the dext's own process name.
  • Levels below Default need --info --debug.

It also adds the inverse lesson: a silent dext is evidence. Grep for the guaranteed LogConfig initialized line for each instance, and check /Library/Logs/DiagnosticReports/net.mrmidi.ASFW.ASFWDriver-*.ips early. A crashed dext restarts degraded while ioreg still shows its services active, which makes the failure look like a bug in whatever layer you're working on.

Docs only.

🤖 Generated with Claude Code

The "agent's Bash sandbox cannot read the unified log" rule was a
misdiagnosis that cost real debugging time this session. zsh has a `log`
builtin that shadows /usr/bin/log, so a bare `log show` is swallowed and
every predicate looks empty. Calling /usr/bin/log by absolute path works
fine, so the instruction to hand traces to the user is unnecessary.

Record the two gotchas that are real: dext lines surface as process
"kernel" rather than the dext's own process name (filtering on the latter
returns nothing while the driver is logging), and sub-Default levels need
--info --debug.

Also record the inverse lesson: silence from a dext is a finding. Grep for
the guaranteed "LogConfig initialized" line per instance, and read the
crash reports early -- a crashed dext restarts degraded while ioreg still
shows its services matched and active, which disguises the failure as a
bug in whatever layer you were working on.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
(cherry picked from commit cecd77a7bd8f53112b606d5419649d7608ee8b24)
@mrmidi
mrmidi merged commit e3ff4c9 into mrmidi:main Sep 15, 2026
2 checks passed
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.

2 participants