Repository navigation
test: cover RFC 0001 on the real host; squad_metrics reports provider quota - #94
Merged
Merged
Conversation
…orts quota Integration tests now name the RFC 0001 requirement they verify. New real-host tests cover the roster contract (stale revision, deletion guard, subagent refusal, unreadable squad.json, a held lock, the one-time import), the bootstrap (one stable block, no clock, messages untouched, none for squad agents, squad-draft when empty), the guard on provider errors, squad_metrics offline, squad_session on a truncated child, squad_compact, the model_data.json refresh and a drill's redirect. OQ-002 resolved: squad_metrics lists each provider's last seen quota, or unknown when no response carried quota headers (FR-047). OQ-001 resolved: the lead's protocol stays an untested assumption. OpenCode 2.1.3 caps an announced retry wait at 15 minutes and retries at most 10 times; the RFC, ADR-0007, README and the guard's header said it waited without a cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… writer (CodeQL) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Resolves the open questions of RFC 0001 and ties the integration suite to it.
RFC 0001
squad_metricsends with each requested provider's rate-limit usage last seen in this process, with its age, orunknown (no rate-limit headers seen from this provider).src/rate-limit-guard.jssaid the host waited without a cap; that was OpenCode 1.Integration tests
Every integration test's name now starts with the requirements it verifies. New, all on the real host with TestLLM, offline:
roster.test.jsbootstrap.test.jsguard-errors.test.jstools.test.jsmodel-data.test.jssquad-review.test.js(added)Unit 375, integration 31 (was 14). Lint, knip, typecheck pass.
Mutation
Each change below makes the named test fail:
[TASK OUTCOME]note🤖 Generated with Claude Code