Skip to content

test: cover RFC 0001 on the real host; squad_metrics reports provider quota - #94

Merged
AlexMKX merged 2 commits into
masterfrom
test/rfc-0001-e2e
Nov 20, 2026
Merged

AlexMKX merged 2 commits into
masterfrom
test/rfc-0001-e2e

Conversation

@AlexMKX

@AlexMKX AlexMKX commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Resolves the open questions of RFC 0001 and ties the integration suite to it.

RFC 0001

  • OQ-001 (verify the lead's protocol): no. ASM-001 says it is not verified by tests or evaluations.
  • OQ-002 (quota for providers without headers): yes. New FR-047: squad_metrics ends with each requested provider's rate-limit usage last seen in this process, with its age, or unknown (no rate-limit headers seen from this provider).
  • Correction: OpenCode 2.1.3 retries a retryable provider error at most 10 times and caps an announced wait at 15 minutes. The RFC, ADR-0007, README and src/rate-limit-guard.js said the host waited without a cap; that was OpenCode 1.
  • DEF-002 now lists only what the real-host suite still does not cover, with the reason where the harness cannot reach it.

Integration tests

Every integration test's name now starts with the requirements it verifies. New, all on the real host with TestLLM, offline:

File Requirements
roster.test.js FR-014, FR-015, FR-017, FR-018, FR-020, FR-023, FR-024
bootstrap.test.js FR-029 to FR-033
guard-errors.test.js FR-034, FR-035, FR-037
tools.test.js FR-040, FR-041, FR-043, FR-044, FR-047
model-data.test.js FR-028
squad-review.test.js (added) FR-003: redirect and write refused for a drill

Unit 375, integration 31 (was 14). Lint, knip, typecheck pass.

Mutation

Each change below makes the named test fail:

Disabled Fails
the guard's retry veto FR-034 (the child does not end)
the revision check FR-017
"unknown" in the quota block FR-047
a timestamp in the bootstrap FR-030
taking over a held lock FR-024
the [TASK OUTCOME] note FR-043
keeping dropped models in model_data.json FR-028

🤖 Generated with Claude Code

…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>
Comment thread tests-integration/tools.test.js Fixed
… writer (CodeQL)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AlexMKX
AlexMKX merged commit f327163 into master Nov 20, 2026
7 checks passed
@AlexMKX AlexMKX mentioned this pull request Nov 20, 2026
@AlexMKX
AlexMKX deleted the test/rfc-0001-e2e branch November 20, 2026 09:55
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.

2 participants