Important: Solve this task using only the repository, files, documentation, tests, and tools available in…
Important: Solve this task using only the repository, files, documentation, tests, and tools available in…: a task in LegoFlow-SWE (Harbor dataset). Symptoms - When an OAuth token lacks the required model.request scope, modelAuth.getApiKeyForModel() still returns a credential. Subsequent provider…
The task
**Symptoms** - When an OAuth token lacks the required `model.request` scope, `modelAuth.getApiKeyForModel()` still returns a credential. Subsequent provider calls fail with a 401 Unauthorized, but the compaction engine does **not** detect or log this failure. - No fallback to legacy authentication from…
Part of Lego-X/LegoFlow-SWE.