docs(adr): record credential transport decision (ADR 0041)
Summary
Records the accepted credential transport decision before any code: before agent-device sends a first-party credential to an operator-configured URL, the URL must use https: or loopback http:. 0.21.x warns on a failing URL; 0.22 refuses.
- Adds
docs/adr/0041-credential-transport.mdand its index row. 0040 is taken on the 0.22 branch. - The ADR holds the review rules (finding criteria, reproduction scripts).
docs/agents/security.mdgets one pointer line, becausedocs/agentsis at its 40 kB context budget; one sentence there is tightened to make room.
Supersedes the approach of #5150 (closed). The 0.21.x warning and the user-facing website section ship in a separate PR on main; the refusal ships on the 0.22 branch.
Validation
Tested SHA: e2ef8e5ce5. Docs only, so runtime tests do not apply. No local gates ran; CI owns validation and is pending. OXC ignores Markdown.
Security
No runtime change: this PR does not alter how credentials are sent.
The decision covers a passive or active party on a link that is not TLS or loopback. It excludes a party that reads TLS traffic, controls the operator's own server, or runs as the same uid. AGENT_DEVICE_ALLOW_INSECURE_TRANSPORT=1 is the only override. It adds no redirect handling; existing redirect rules stay.
🤖 Generated with Claude Code

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.