Repository navigation
Conversation
Every nightly sweep posted the same forty-odd uncapped pools on the same six chains, most of them owned by someone else, so the post was long and said nothing new after the first night. The sweep now remembers which uncapped pools it has posted, in a file under AUDIT_STATE_DIR (a Railway volume on the scheduled service). A pool is named in Slack the first run it is seen uncapped, whoever owns it; after that it is only counted in a one-line total. The file is rewritten each run to the pools uncapped now, so a pool that is capped and later uncapped is new again, and a chain the run could not read keeps its previous entries. A chain that could not be read is still always posted, as one line with its reason. Nothing new and nothing unreadable means no post at all. The first run with a state file records a baseline and posts the totals only. Unset AUDIT_STATE_DIR treats every pool as new. Exit codes are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TEE2vGbGJPRMNNsZdNTZps
Contributor
Author
|
Closing without merging. Deciding what gets posted to Slack is internal ops work, not protocol code, so it's moving to the scheduled job's own repo. The Generated by Claude Code |
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.
Why
The nightly pool cap sweep posts the same ~40 uncapped pools on the same six chains to Slack every run. Most of them belong to other owners, and the list never changes, so after the first night the post is mostly noise.
What changes
In the
AUDIT_NETWORKSsweep inpackages/contracts/scripts/deploy-chain.sh:$AUDIT_STATE_DIR/pool-cap-audit-seen.txt, one<network> <pool>line each.AUDIT_STATE_DIRshould point at a Railway volume on the scheduled service.Total: 38 uncapped pool(s) across 6 chain(s).nothing new since the last post; Slack skipped (...).AUDIT_STATE_DIR, every uncapped pool is treated as new each run, in the shorter format.Testing
I ran the sweep block locally with a stub
yarnthat returns canned audit output and a stubcurlthat captures the Slack payload:AUDIT_STATE_DIRbash -npasses.Rollout
After merge, bump
CONTRACTS_REFinworker-agents/chain-deployer/Dockerfile. Thepool-cap-auditservice already has a volume at/dataandAUDIT_STATE_DIR=/dataset.🤖 Generated with Claude Code
https://claude.ai/code/session_01TEE2vGbGJPRMNNsZdNTZps
Generated by Claude Code