Document pinned CLI origin and redirect rejection contract

Merged
SI
5d ago
+25-11

Result

Document the canonical CLI default and GET/POST redirect rejection from exact CLI source 213de5156491e109c6b7243af4c8c17876370d93 (recoupable/cli#34). Explicitly distinguish this source contract from npm publication and the installed client: setting the origin alone does not add redirect protection to old versions.

The existing guide workflow pins that CLI revision and runs its published-command guard, configuration/guide default assertion, and native-fetch loopback redirect tests. Historical CLI guide snapshot remains unchanged. Generated manifest and llms-full are included.

Qualification and sequencing

Independent authored-change review passed. Docs generation/check, 164 tests, types and lint pass; 31 cross-repo CLI guide/config/redirect checks pass with fake credentials only. Local production build and exact-head CI evidence are retained in the coordinator handoff.

Keep this PR draft until CLI34 source is accepted and coordinator chooses publication sequence. No CLI merge, npm publish, installed-artifact claim, replacement client or Context actor request is authorized here. Root owns merges. No broad guide rewrite, API source-pin refresh or credentials/settings change.

Final diagnostic correction: manual non-following fetch rejects 3xx with a fixed safe message, preserves original network failures and existing HTTP/API errors, and exposes no request or redirect details. Independent exact-commit review passed. Docs pins CLI 213de5156491e109c6b7243af4c8c17876370d93; final-head CI is distinct from earlier green results.