> Agent-ready spec from Diff of the Day (2026-12-03, idea 2). Give this file to your coding agent (Claude Code, Codex, Cursor) and ask it to build the P0 requirements first.

# Spec: Key exchange probe for your own hosts

## Problem Statement
The joint statement asks organizations to move to the algorithms in the NIST standards as soon as possible. It names no algorithm and gives no deadline. A small team does not know which key exchange its own servers negotiate now, so it cannot tell where to start.

## Goals
- Record the negotiated key exchange for each host in a list.
- Mark each host with a status from a name list that the user controls.
- Produce one table that sorts the hosts by status.
- Finish a scan of 50 hosts in under 10 minutes.

## Non-Goals
- Claims about which algorithm is safe: the statement names none, so the user supplies the list.
- Testing other people's servers: scan only hosts that you own.
- Changing server configuration: the tool only reads.

## User Stories
- As an operator, I want to see the negotiated key exchange per host so that I know where to look first.
- As a security lead, I want a table that I can give to a team so that the work has an owner.
- Edge case: when a host does not answer, the tool marks it unreachable and goes on.

## Requirements
### P0
- [ ] Read hosts and ports from a text file. Accept: each line gives one result row.
- [ ] Record the negotiated key exchange for TLS hosts. Accept: the row shows protocol version and group name.
- [ ] Read the list of names that count as listed. Accept: a host is marked listed only when its name is on the list.
### P1
- [ ] Record the key exchange offered by SSH hosts. Accept: the row shows the chosen method.
- [ ] Write a table in Markdown sorted by status. Accept: unknown and classic hosts come first.
### P2
- [ ] Compare two scans. Accept: the output lists hosts whose status changed.

## Success Metrics
- 100% of hosts in the file have a row.
- Every row has a status of unknown, classic, listed or unreachable.
- The first review finds the 5 hosts to look at first.

## Open Questions
- Which names should be on your list, and who reads the NIST standards to write it?
- Do your tunnels and VPN need a separate check?

## Timeline
- First hour: file reader and TLS probe.
- Second hour: SSH probe and name list.
- Third hour: table output and a first scan.

## Agent Instructions
- Stack: your usual scripting language and the TLS and SSH clients on your machine.
- Build order: file reader, TLS probe, name list, SSH probe, table.
- Safety: scan only your own hosts, use a low rate, and never store keys or secrets.
- Done when: all P0 acceptance checks pass and one real scan gives a table.

## Sources
- Joint statement on post-quantum cryptography, https://www.anthropic.com/news/joint-statement-post-quantum-cryptography
- Jason Donenfeld on the WireGuard list, https://lists.zx2c4.com/pipermail/wireguard/2026-December/009817.html