Repository navigation
Routines: upkeep runs log only failures and recoveries (0.4.4) - #11
Merged
Merged
Conversation
Every routine run wrote a session entry, so an upkeep job on a 30-minute schedule (brain sync) added 48 near-identical entries a day and buried the real sessions. Routines now take log: always | failures | never. Upkeep routines default to failures: the first failed run and the run that recovers are logged; quiet successes and repeat failures aren't. Prompt and shell routines keep logging every run. The run's state still records the latest outcome and its full output stays in the raw log on the machine. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Problem
Every routine run wrote a session entry. An upkeep job on a 30-minute schedule, such as brain sync, added 48 near-identical "Routine: Brain sync" entries a day and buried the real sessions.
Fix
log:setting:always,failuresornever.failures: Brainium logs the first failed run and the run that recovers (marked Recovered). Quiet successes and repeat failures aren't logged.always.docs/TEAMS-AND-ROUTINES.mddocuments the setting.Tests
npm test: 54/54 pass. A new test covers the ok/ok/fail/fail/ok/ok sequence,log: always, and rejecting an invalid value.🤖 Generated with Claude Code