IRIS Controller v0.6.5
Evidence-first five-step execution controller, packaged as a Codex/MCP plugin.
Five steps (gated, in order)
- แนวคิด
- ออกแบบ
- ทำงานจริง
- ส่งผล
- ตรวจสอบบนพื้นที่ ChatGPT
Each step uses CHECK → DO → VERIFY. Failure is retained with error/checkpoint/audit records, corrected/retried, and verified again. Delivery requires all five steps PASS plus final expected-vs-actual verification VERIFIED → status DELIVERED.
Runtime
Python / FastAPI (REST) + MCP stdio server / SQLite. The controller preserves evidence, errors, checkpoints, audit records and verifications.
Database path: IRIS_DB_PATH environment variable (fallback: runtime/data/iris.db).
Install dependencies
pip install -r runtime/requirements.txt
Run as MCP server (for Codex Plugin Creator / Claude Desktop)
The plugin ships .mcp.json which launches:
python runtime/mcp_server.py
Tools exposed: health, create_work, run_step, final_verify,
get_work_status, add_evidence, list_evidence.
Run REST API (optional, for direct HTTP use)
uvicorn runtime.main:app --reload --port 8000
Endpoints: GET /, GET /health, GET /structure, POST /work,
GET /work/{id}, POST /work/{id}/step/{1..5}, POST /work/{id}/verify,
GET /evidence, POST /evidence.
Test
python -m pytest tests/ -v
Package structure (Codex plugin)
iris-controller/
├── .codex-plugin/plugin.json # required manifest (OpenAI Codex)
├── plugin.json # agent-plugins.org manifest (cross-host)
├── .mcp.json # MCP server launch config
├── skills/iris/SKILL.md # agent instructions
├── runtime/
│ ├── mcp_server.py # MCP stdio server (entry point)
│ ├── main.py # FastAPI REST (optional)
│ ├── controller.py # 5-step gated workflow engine
│ ├── database.py # SQLite (IRIS_DB_PATH aware)
│ ├── model.py # step definitions + status enum
│ ├── verify.py # expected-vs-actual helper
│ └── requirements.txt
├── tests/ # unit + MCP + API tests
└── docs/
v0.6.5 changelog (fixed from v0.6.2)
- Fixed:
requirements.txtwas a broken Markdown table → now valid pip format. - Fixed:
database.pynow readsIRIS_DB_PATHenv var (test isolation works). - Added:
runtime/mcp_server.py— real MCP stdio server with 7 tools. - Fixed: MCP
final_verifynow persists MISMATCH into verifications/audit/errors/checkpoints (parity with REST). - Fixed: MCP
run_stepaccepts realexpected+actual(not derived from a status flag). - Fixed: MCP tools return structured errors (
status:ERROR+error_type+message), never raw exceptions. - Fixed:
defaultPromptis now a list[str] per OpenAI spec (was a bare string). - Added:
.mcp.json+mcpServersfield in both manifests. - Added:
tests/test_mcp.pyandtests/test_api.py(E2E coverage). - Version aligned across all manifests, README and runtime to 0.6.5.