Feedback Loop Architecture (Stage 4: Test)

Feedback Loop Architecture (Stage 4: Test) A workflow diagram generated by Archify. 01 / Engineer & Governance 02 / Claude Code Iteration 03 / Toolchain & Test Guard TDD Test Ingestion Self-Correction Loop Visual & Evidence Bug Report / Task · reproduce prompt · Engineer & Governance › TDD Test Ingestion Bug Report / Task reproduce prompt Done with Evidence · PR ready with test logs · Engineer & Governance › Visual & Evidence · approval ready Done with Evidence PR ready with test logs approval ready Write Failing Test · confirm test fails · Claude Code Iteration › TDD Test Ingestion · TDD first Write Failing Test confirm test fails TDD first Implement Fix · edit source code · Claude Code Iteration › Self-Correction Loop · agent iterate Implement Fix edit source code agent iterate Visual Loop Check · screenshot diff vs mock · Claude Code Iteration › Visual & Evidence · 2-3 rounds Visual Loop Check screenshot diff vs mock 2-3 rounds Test Guard Hook · block test file edits · Toolchain & Test Guard › TDD Test Ingestion · immutable test Test Guard Hook block test file edits immutable test Local Toolchain · make test / build / lint · Toolchain & Test Guard › Self-Correction Loop · exit non-zero Local Toolchain make test / build / lint exit non-zero prompt commit test lock test edits run verify fail: auto-retry all green UI diff adjust visual pass Legend User UI Agent logic Policy Tool action

Self-Correction Contract

  • • Claude chay test va sua code lien tuc den khi pass hoan toan
  • • Test Guard Hook khoa file test, ngan agent ha thap tieu chuan

Proof Over Assertion

  • • Dinh nghia done bat buoc kem terminal log nguyen van
  • • Visual check lap 2-3 vong giup UI dat do chuan xac pixel-perfect