π§ͺ Lab 46 β Verify a Provider Fallback and Its Host Paths
Lab Objective
Verify that a provider fallback is selected after a controlled primary failure, and that a ported operator tool resolves the intended home, interpreter, service, and allowlist.
Lab Environment
Use a disposable Linux home and a local fixture that returns a simulated provider 429. Do not use real credentials, private messages, or real recipients.
Scenario
A primary model provider becomes unavailable. The fallback should answer, while an operator-control tool must not silently read Mac paths or authorize a quoted, malformed identity.
Steps
- Configure a fixture primary provider that returns a usage-limit error.
- Configure a local fallback endpoint in the disposable environment.
- Run one isolated request and record the selected provider and reply.
- Run the toolβs
list,status, anddoctoroperations against the fixture state. - Add quoted values to the allowlist fixture and confirm the parser strips dotenv-style outer quotes.
- Compare the installed script hash with the approved source copy.
Expected Evidence
The request completes through the fallback. The diagnostic reports no dangerous inconsistency, and a quoted allowlist value maps to the same identity as its unquoted form. A missing or unavailable tunnel remains an explicit failure, not a false success.
Security Takeaways
Portability is part of access control. A copied script is not a verified control until its authority paths, identity parsing, and service target are tested on the new host.
Limits
This lab uses synthetic provider failure and fixture identities. It does not authorize a real WhatsApp or Telegram action.
