11 Commits

Author SHA1 Message Date
01a8f5bbe2 Harden Sigil: sigil/viewcodes.py 2026-10-05 21:24:48 +08:00
a3c6c8d5c6 Harden Sigil: sigil/store.py 2026-10-05 21:24:45 +08:00
128a8db763 Harden Sigil: sigil/sessions.py 2026-10-05 21:24:43 +08:00
854db7c6a7 Harden Sigil: sigil/keys.py 2026-10-05 21:24:40 +08:00
995920321a Harden Sigil: sigil/identity.py 2026-10-05 21:24:38 +08:00
f720814b56 Harden Sigil: sigil/errors.py 2026-10-05 21:24:35 +08:00
05e376f5a2 Harden Sigil: sigil/__init__.py 2026-10-05 21:24:33 +08:00
e894d838a5 Harden Sigil: sigil.py 2026-10-05 21:24:31 +08:00
57c07758ce Harden Sigil: DESIGN.md 2026-10-05 21:24:28 +08:00
a3dbdb4812 Harden Sigil: README.md 2026-10-05 21:24:19 +08:00
4d9e101f54 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-05 20:43:50 +08:00