Knowledge Hubบทที่ 04
Runtime · maw

ทีม งาน และ worktree · Teams and Worktrees

ทีมที่ดีเริ่มจาก isolation: แต่ละงานเข้าถูก repo ถูก context และจบด้วยคนที่มี authority ตรวจ · Good teams start with isolation: the right repo, the right context, and review by the authority that owns the merge.

Three-layer pattern

LayerOwnerResponsibility
L1Oracle paneHuman comms, review, merge, deploy decisions
L2maw workon paneProject-scoped orchestration and PR assembly
L3OMX/Codex workerBounded implementation slice, commit, DONE signal

Fresh context beats warm drift

ความรู้หลัง 6 มิถุนายนชัดเจน: warm standing workers ทำให้ context bleed เพราะ session เก่าอาจอยู่ผิด repo ทางแก้คือ per-task worktree + fresh session + project-scope injection

The post-2026-06-06 lesson is clear: warm standing workers cause context bleed because an old session may sit in the wrong repo. The fix is per-task worktree, fresh session, and project-scope injection.

Strategy: SOLO or TEAM

server knowledge ทำให้ routing เป็น binary: งานเล็กใน 1-2 ไฟล์และไม่ต้อง research คือ SOLO; งานที่มีหลาย concern, test surface, หรือ uncertainty คือ TEAM ไม่ควรมีครึ่งกลางที่โตจนคุมไม่ได้

The routing model is binary: a small 1-2 file task with no research is SOLO; multiple concerns, test surfaces, or uncertainty means TEAM. Avoid a middle lane that grows until it cannot be controlled.

Merge authority

คนที่เขียนงานใน worktree ไม่ merge งานตัวเอง · A worktree author does not merge its own work.

หลักนี้ลด self-review และทำให้ L1 เห็นหลักฐานก่อนส่งต่อให้ผู้ใช้หรือ deploy.

This reduces self-review and makes L1 inspect evidence before reporting to the user or deploying.