สรุปบทเรียนจาก CACM: เลิกหลงกับ “agent chat” สู่สถาปัตยกรรมแบบมีรัฐ (stateful) ที่ลดต้นทุนโทเคน เพิ่มความปลอดภัย และทำให้การเรียนรู้เข้าถึงได้
Sripatum University (SPU) เผยแพร่ Tech Insight สำหรับสายเทค ชวนทีมพัฒนาและนักศึกษาเลิกยึดติดกับภาพลวงตาว่า “AI agents คุยกันเอง” แล้วหันมาวางระบบให้เหมือนงานวิศวกรรมจริงจังที่ตรวจสอบได้และสเกลได้ SPU สรุปสาระสำคัญจากบทความ “AI Agents Can’t Talk” โดย Abhilash Pakalapati (เผยแพร่บน Communications of the ACM, 9 พ.ย. 2026) เพื่อช่วยให้ทุกคนเข้าถึงองค์ความรู้เชิงสถาปัตยกรรมได้ง่ายขึ้น โดยไม่ต้องลองผิดลองถูกที่เปลืองงบและเวลา
ประเด็นหลักที่ควรรู้
– LLM คือฟังก์ชันเติมข้อความไร้สถานะ ไม่ได้ “สนทนา” แบบเรียลไทม์ สิ่งที่ดูเหมือนคุยกันคือการส่งต่อผลลัพธ์แบบ RPC ผ่านมิดเดิลแวร์/คิวข้อความ
– “Agent chat” ทำให้โทเคนบวมแบบไม่มีประสิทธิภาพ ทุกเทิร์นต้องอ่านประวัติเดิมซ้ำหลายรอบ ค่าคำนวณสูงขึ้น หน่วงเวลา และไม่ได้ช่วยเหตุผลเชิงลึกเสมอไป
– การยัดประวัติการสนทนาที่ยาวและไม่ได้คัดกรองเข้าสู่ context window ทำให้ drift/hallucination สะสม เสี่ยงวงจรล้มเหลวแบบ echo chamber
แนวทางสถาปัตยกรรมที่ใช้ได้จริง
– แทน “คุยกัน” ให้ใช้ “จัดการสถานะอย่างชัดเจน”: Agent A เขียนผลลัพธ์ที่ผ่านการตรวจสอบลง state store/DB แล้วจบวงจร Agent B ถูกสตาร์ตใหม่และดึงเฉพาะคีย์ข้อมูลที่จำเป็น ลดการปนเปื้อนบริบทและคุมต้นทุนโทเคนให้เติบเส้นตรง
– ใช้สคีมาที่เคร่งครัดและ guardrails เชิงกำหนดนิยม: ตรวจสคีมา-ยืนยันสิทธิ์-กำหนดขอบเขตการรันก่อนทุกฮันด์ออฟ
– โปรโตคอลมาตรฐานช่วยลดความเปราะบาง: เช่น Model Context Protocol (MCP) และ Agent2Agent (A2A) ที่เน้นสคีมา ความสามารถของเครื่องมือ และ state ที่ควบคุมได้ มากกว่าภาษาเสรี
มิติความปลอดภัยและการสังเกตการณ์
– Zero-trust ต่อ payload ระหว่างเอเจนต์ ป้องกัน prompt injection/poisoning/privilege escalation ด้วยการตรวจสคีมาและสิทธิ์ทุกครั้ง
– เปลี่ยน “แชตที่อ่านยาก” เป็น “เรียกใช้งานแบบ API/ธุรกรรมสถานะ” เพื่อได้ลอกรายการที่กำหนดได้ วัดผลได้ และดีบักง่ายด้วยเครื่องมือ SRE มาตรฐาน
สิ่งที่ทีมพัฒนาและนักศึกษานำไปใช้ได้ทันที
– แยก Planner/Executor และส่งผ่านผลลัพธ์แบบ JSON ตามสคีมาเดียว
– เก็บสถานะกลางใน KV/DB พร้อมชนิดข้อมูลชัดเจน ไม่ส่งประวัติยาวเป็นภาษาธรรมชาติ
– ตั้งชั้น Guardrail: schema validation + auth + policy ก่อน invoke โมเดลทุกครั้ง
– วัดต้นทุนโทเคนต่อทาสก์แทนต่อเทิร์น และจำกัดความยาว context อย่างมีวินัย
– บันทึก telemetry เชิงโครงสร้างเพื่อรีไทร่อัตโนมัติและหาจุดล้มเหลวได้รวดเร็ว
ทำไมเรื่องนี้ช่วย “เปิดการเข้าถึงการเรียนรู้”
SPU ตั้งใจย่อยความรู้เชิงสถาปัตยกรรมให้เข้าใจง่ายและนำไปใช้ได้จริง ช่วยให้นักศึกษาและผู้พัฒนาที่กำลังสร้างระบบ multi-agent ลดรอบทดลองที่ซับซ้อนและต้นทุนสูง เข้าถึงแนวปฏิบัติที่ผ่านการกลั่นกรองได้ทันที พร้อมต่อยอดสู่เวิร์กโฟลว์ที่ปลอดภัย ตรวจสอบได้ และพร้อมโปรดักชัน
อ้างอิง: AI Agents Can’t Talk, Abhilash Pakalapati, Communications of the ACM, 9 Nov 2026
From “agent chat” to stateful architecture: SPU distills CACM lessons to cut token costs, harden security, and expand learning access
Sripatum University (SPU) releases a concise Tech Insight for engineers and students, demystifying the myth that “AI agents talk to each other” and reframing multi-agent design as rigorous, production-grade engineering. Drawing from Abhilash Pakalapati’s “AI Agents Can’t Talk” (Communications of the ACM, Nov 9, 2026), SPU translates complex architecture principles into practical guidance that’s easy to access and immediately usable.
Key takeaways
– LLMs are stateless text-completion functions; what seems like agent “dialogue” is RPC-style handoffs via middleware/message queues.
– Natural-language negotiations inflate tokens and latency without guaranteeing deeper reasoning; every turn reprocesses long histories.
– Appending uncurated chat logs into context windows causes drift and compounding hallucinations—echo chambers that fail at scale.
Architectural patterns that work
– Replace chat with explicit state management: Agent A writes validated, typed results to a state store/DB and exits; Agent B starts clean and pulls only required fields. This prevents context contamination and keeps token costs linear.
– Enforce deterministic guardrails: strict schemas, authorization, and execution boundaries at every handoff.
– Embrace standards: Model Context Protocol (MCP) and Agent2Agent (A2A) focus on schemas, tool capabilities, and controlled state—rather than free-form language.
Security and observability
– Treat every inter-agent payload with zero-trust to block prompt injection, data poisoning, and privilege escalation.
– Prefer typed API calls/state transactions over unstructured chat to obtain deterministic logs, metrics, and clear failure points for SRE workflows.
Action now for teams and students
– Separate planner/executor; serialize outputs as schema-validated JSON.
– Centralize state in KV/DB with strict typing; avoid long NL histories.
– Add a guardrail layer: schema validation + auth + policy before model calls.
– Track token cost per task and cap context length with discipline.
– Capture structured telemetry to enable auto-retries and fast root cause analysis.
Why this broadens learning access
By translating advanced architecture guidance into an accessible, actionable brief, SPU helps students and builders avoid costly guesswork and move faster toward secure, production-ready multi-agent workflows.
Source: AI Agents Can’t Talk, Abhilash Pakalapati, Communications of the ACM, Nov 9, 2026
ที่มา:


