feat: plan 16 P1 complete (SEC-07 approval + SEC-10 agent identity)

- SEC-07 (M-08): real approval verification via approval-verify.sh in enforced mode
  (CASAN_PROFILE=prod / CASAN_APPROVAL_STRICT=1) for control-plane `set` (sensitive
  keys), kill-switch `clear`, and self-improve (inherits control-plane). A bare or
  forged approval string is now denied; dev mode stays backward-compatible.
- SEC-10 (M-05): non-spoofable agent identity. tool-registry-gate least-privilege no
  longer trusts CASAN_AGENT env in enforced mode (CASAN_IDENTITY_STRICT=1) — the
  caller must present a signed token (agent-identity-sign.sh) bound to agent id +
  run id, verified against agent-identities.registry. Blocks env spoofing + replay.

Verify: SEC+integrity gate 18/0, run-casan4 0-FAIL, adversarial 44/44 (H2 intact),
control-plane 9/0, h5-approval 12/0, c7-incident 15/0, self-improve 7/0, track-c 29/0.

Plan-16 P0 + P1 now complete; remaining: P2 (SEC-12/13/14/15/22..30).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
thanhnv
2026-07-06 22:31:57 +09:00
co-authored by Claude Opus 4.8
parent e70f0815ab
commit 3432ae59e1
11 changed files with 295 additions and 10 deletions
@@ -1,3 +1 @@
Èâ4ª,’FN»>¦2Û<eºO\¡é¼¤âu¤gB%}ºIB˜€uâ�Û1îÛü°Än[·cÙ7­€†·‰ô ×|q¿h¹bÔÆl3 “¾­ ¿ÔÃÇn9xZ=ª…¦¹±² !%W±ÀµbÎ3|±UÔLu}š…Üœþè™;P(Üø�±ŸúÀ»Y‰*¼±æmüÇÀÒ¤ö�ÀÌ�ðÀŠE›uNŸ"rT[e"¢^”àŒÞyáû0dÌ-¥
:z2™JœÂT"-çϱ;´{E…õóªåÕÌwØQ:q¬ž[ÁÎù]#QÀ·`ñ5N–Qx�
ýsÑyŸ¢ðÜÊ’*3Ýb
�Bָ��ק³מ�‘wvם‏»ָ«4״ה4"ק.=nN;␍ֹ'�b™A(װBֺdiS�Rq±�ס3‎¥\V×ַָp²כֽw¬'שwצ-¦ב�kֵ�¯Xoֿ€×Ru­™�n~רמ�|�C-O°}´�lםS% z��j�תG�Tז`�e]V־™␍�¯­שיה¯f₪³_}ףקכױK¼t!‏<קB␍q hה1ך₪E‎הל`z“iס´whיס�?ְִֵ¿~ִmCַ/…׃cֲבQ ׂ¨�‘]¹¶s�yb‏„�„¥'�ֹ2ץו4עZx?»^קמ_×הֳWײO