7 Commits

Author SHA1 Message Date
69669f12ec One test per finding in the second review pass 2026-10-06 06:28:01 +08:00
910ddfde42 Harden Sigil: tests/test_hardening.py 2026-10-06 06:28:01 +08:00
2f5b24e8f9 Harden Sigil: tests/helpers.py 2026-10-06 06:28:01 +08:00
0c2fcd91f0 probe 2026-10-06 06:28:01 +08:00
da20d6c539 Harden Sigil: tests/test_viewcodes.py 2026-10-06 06:28:01 +08:00
4487f15b9e Harden Sigil: tests/test_sessions.py 2026-10-06 06:28:01 +08:00
f4a044f1d6 Sigil: agent identity for the new internet
Replace passcode identity with Ed25519 challenge-response.

- Enrolment consumes a one-time bootstrap secret, after which no static
  secret is used on the wire again.
- Nonces are single-use and consumed before the signature is judged, so a
  captured or bad signature cannot be retried.
- Sessions are short-lived, scoped, and typed agent vs human_via_agent.
- Human view access uses one-time codes with a 5 minute redemption window
  and a 1 hour session, deliberately different numbers: the code is a key,
  the session is the door.
- Invariant: only an agent signature may act as an agent. Enforced and tested.
- Append-only audit trail.

54 tests, covering refusals rather than only the happy path.

Reference implementation, not reviewed or hardened. See README Status.
2026-10-06 06:28:01 +08:00