feat: Gateway Guardian v4 + Smart Session Archiver#6
Merged
Conversation
From Everclaw v0.9.3-v0.9.4: Gateway Guardian v4 (scripts/gateway-guardian.sh): - Billing-aware escalation — classifies errors as billing vs transient - Proactive Venice DIEM credit monitoring - Signal notifications on billing exhaustion/recovery - Four-stage restart escalation with nuclear reinstall Smart Session Archiver (scripts/session-archive.sh): - Size-triggered archiving (default 10MB threshold) - Prevents dashboard 'Page Unresponsive' from large session histories - Protects active sessions, guardian probe, keeps 5 most recent - --check/--force/--verbose modes - JSON output for cron consumption Updated architecture diagram in README.
profbernardoj
added a commit
that referenced
this pull request
Feb 23, 2026
From Everclaw v0.9.3-v0.9.4: Gateway Guardian v4 (scripts/gateway-guardian.sh): - Billing-aware escalation — classifies errors as billing vs transient - Proactive Venice DIEM credit monitoring - Signal notifications on billing exhaustion/recovery - Four-stage restart escalation with nuclear reinstall Smart Session Archiver (scripts/session-archive.sh): - Size-triggered archiving (default 10MB threshold) - Prevents dashboard 'Page Unresponsive' from large session histories - Protects active sessions, guardian probe, keeps 5 most recent - --check/--force/--verbose modes - JSON output for cron consumption Updated architecture diagram in README.
profbernardoj
pushed a commit
that referenced
this pull request
Feb 23, 2026
From Everclaw v0.9.3-v0.9.4: Gateway Guardian v4 (scripts/gateway-guardian.sh): - Billing-aware escalation — classifies errors as billing vs transient - Proactive Venice DIEM credit monitoring - Signal notifications on billing exhaustion/recovery - Four-stage restart escalation with nuclear reinstall Smart Session Archiver (scripts/session-archive.sh): - Size-triggered archiving (default 10MB threshold) - Prevents dashboard 'Page Unresponsive' from large session histories - Protects active sessions, guardian probe, keeps 5 most recent - --check/--force/--verbose modes - JSON output for cron consumption Updated architecture diagram in README.
profbernardoj
pushed a commit
that referenced
this pull request
Feb 25, 2026
From Everclaw v0.9.3-v0.9.4: Gateway Guardian v4 (scripts/gateway-guardian.sh): - Billing-aware escalation — classifies errors as billing vs transient - Proactive Venice DIEM credit monitoring - Signal notifications on billing exhaustion/recovery - Four-stage restart escalation with nuclear reinstall Smart Session Archiver (scripts/session-archive.sh): - Size-triggered archiving (default 10MB threshold) - Prevents dashboard 'Page Unresponsive' from large session histories - Protects active sessions, guardian probe, keeps 5 most recent - --check/--force/--verbose modes - JSON output for cron consumption Updated architecture diagram in README.
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.
What
Adds two scripts from Everclaw v0.9.3-v0.9.4:
Gateway Guardian v4 (
scripts/gateway-guardian.sh)Billing-aware self-healing watchdog. Classifies inference errors as billing vs transient — billing errors trigger backoff + notification instead of useless restarts. Includes proactive Venice DIEM credit monitoring, Signal notifications, and four-stage restart escalation.
Smart Session Archiver (
scripts/session-archive.sh)Size-triggered session archiver that prevents the OpenClaw dashboard from choking on large session histories. At ~17MB (134+ sessions), browsers hit 'Page Unresponsive' because the DOM renderer can't handle thousands of chat elements. The archiver monitors directory size and moves old sessions to archive/ when it exceeds 10MB (configurable).
Why
Testing
Checklist