Repository navigation
Conversation
- Delete tests/test_tally.py (live HTTP/DNS calls against api.tally.xyz) - Drop timelock key tests already covered by test_alert_protocol_keys.py - Drop get_contract_label tests duplicating test_address_resolver.py - Replace weak KNOWN_SELECTORS sanity checks with a keccak integrity check - Read LLM default models from _PROVIDER_DEFAULTS instead of hardcoding them - Drop registry/config assertions that restate pegged assets, Morpho, timelocks - Merge per-severity alert emoji/silence and dispatch skip tests - Remove unused utils/tenderly/alerts_with_timelock.json Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- api/README.md now points to deploy/alerts-api.md instead of a stale copy - CONTRIBUTING: fix utils/logger.py and utils/http_client.py paths, Python 3.12+, SQLite-backed cache - CLAUDE.md: defer setup/style to CONTRIBUTING, use uv run, add test command - README: add 3Jane and Stablecoins, link monitoring site as source of truth - Dispatch doc: point to DISPATCHABLE_PROTOCOLS instead of a stale table - Timelock README: replace drifted address table and duplicate how-to with pointers, drop broken detils.md links, fix relative paths; SKILL.md absorbs the extra notes Co-Authored-By: Claude Opus 5.5 <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
Removes tests that duplicate other tests, only restate config, or make real network calls. Fixes or merges docs that had fallen out of sync with the code.
Tests: rebased on main (#414). 1752 passed / 6 skipped → 1724 passed / 4 skipped (30 fewer tests; the 2 fewer skips were Tally tests). The suite still runs in about 13s.
Tests
tests/test_tally.py. It made real DNS/HTTP calls toapi.tally.xyzon every CI run and loaded.env, which goes against the "tests never make real calls" rule inconftest.py.test_timelock_alerts.py;test_alert_protocol_keys.pychecks every timelock key.get_contract_labelbackend-order tests intest_source_context.py; it's a thin wrapper andtest_address_resolver.pycovers the same order.KNOWN_SELECTORSchecks (not empty /0xprefix / has parentheses) with one test that recomputes every selector from its signature._PROVIDER_DEFAULTS, and the test still checks thatanthropicgets the Anthropic provider.test_alert.py); merged the LOW and MEDIUM dispatch-skip tests (test_dispatch.py).utils/tenderly/alerts_with_timelock.json; nothing references it.Docs
api/README.md: was a stale copy ofdeploy/alerts-api.md(no/v1/monitoring); it now points there.CONTRIBUTING.md: fixed nonexistentutils/logging.pyandutils/http.py(nowlogger.pyandhttp_client.py) and the cache description (SQLite, not files).README.md: adds the missing 3Jane and Stablecoins entries and links to the monitoring site as the source of truth.deploy/emergency-dispatch-demo.md: replaced the out-of-date protocol table (7 listed vs. many more in code) with a pointer toDISPATCHABLE_PROTOCOLS.protocols/timelock/README.md:TIMELOCK_LIST.SKILL.md; it now links there.detils.mdand fixed relative paths.protocols/timelock/SKILL.md: takes over the useful notes from the README (chain registration, bot-token fallback,ALERT_HISTORY_PROTOCOLS) and fixes script paths.Left as-is on purpose
test_morpho_v2_decoders.py: each tests a different decoder branch.swiss_knife,source_contextandcalldata: each checks that module's own rule for which errors are temporary and shouldn't be cached.Follow-up
protocols/timelock/SKILL.mdis not loaded by Claude Code from its current location. It needs to move to.claude/skills/add-timelock-monitoring/SKILL.md; I didn't have permission to write there in this session.Test plan
uv run pytest tests/: 1724 passed, 4 skippeduv run ruff check .,uv run ruff format --check .,uv run ty check🤖 Generated with Claude Code