feat: verbose structured logging with [cron]/[job]/[spawn]/[mcp] prefixes#107
Merged
Conversation
…ixes - [cron]: all cron:xxx messages renamed; new [cron] fired event at start of fire() includes id, schedule, intervalMs, prompt[:200]; registered event for each cron at startup - [job]: all job:xxx messages renamed; [job] created now includes task[:200] and branch; [job] running includes pid; [job] done includes duration_seconds and output_lines; [job] failed includes exit_code - [spawn]: new [spawn] subprocess started (pid, cwd, driver) and [spawn] subprocess exited (exit_code) events around every driver.spawn() call - [mcp]: all tool:xxx messages renamed to [mcp] xxx via bulk sed - Startup summary: [cc-agent] started with version+namespace, job status counts, and cron count/registered events after cronEngine.start() All 143 tests pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
cron:xxxmessages renamed to[cron] xxx; new[cron] firedevent at start offire()with id, schedule, intervalMs, and prompt[:200];[cron] registeredevent for each cron at startupjob:xxxmessages renamed;[job] createdadds task[:200] and branch;[job] runningadds pid;[job] doneadds duration_seconds and output_lines;[job] failedadds exit_code[spawn] subprocess started(pid, cwd, driver — no token logged) and[spawn] subprocess exited(exit_code) events around every driver.spawn() calltool:xxxlog messages renamed to[mcp] xxxvia bulk replacement[cc-agent] startedwith version+namespace, per-status job counts, and cron count + per-cron[cron] registeredevents aftercronEngine.start()All 143 existing tests pass.
Example log output:
Test plan
npx vitest run src/cron.test.ts src/agent.test.ts src/index.test.ts— 143 tests passgit diff --stagedreviewed — all changes match stated intent, no out-of-scope modifications🤖 Generated with Claude Code