Skip to content

Routines: upkeep runs log only failures and recoveries (0.4.4) - #11

Merged
moderniselife merged 1 commit into
mainfrom
fix/routine-log-noise
Nov 23, 2026
Merged

moderniselife merged 1 commit into
mainfrom
fix/routine-log-noise

Conversation

@moderniselife

Copy link
Copy Markdown
Owner

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

  • Routines take a new log: setting: always, failures or never.
  • Upkeep routines default to failures: Brainium logs the first failed run and the run that recovers (marked Recovered). Quiet successes and repeat failures aren't logged.
  • Prompt and shell routines still default to always.
  • Run state and the raw log on the machine still keep every run.
  • docs/TEAMS-AND-ROUTINES.md documents 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

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]>
@moderniselife
moderniselife merged commit ba6be89 into main Nov 23, 2026
5 checks passed
@moderniselife
moderniselife deleted the fix/routine-log-noise branch November 23, 2026 21:22
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.

1 participant