KB-2DFF rev 21
Context Pack: Current Sprint
6 min read Revision 21
Context Pack: Current Sprint
Load this pack to understand what's happening NOW and what's next.
Last Updated: 2026-03-02 (OPS-SPEC-SLIM ✅ HOÀN THÀNH — 19 ops, 7 cols, PR #409→#412)
Current Phase: WEB INTEGRATION — "Cắm là chạy"
Mục tiêu tổng
Nuxt ↔ Agency OS ↔ Directus ↔ Agent Data hoạt động liền mạch, TUYỆT ĐỐI KHÔNG CODE MỚI. Hạn chế cả config bằng code. Ưu tiên:
- Tận dụng tối đa tính năng sẵn có của Directus, Agency OS, Nuxt
- Kết nối bên ngoài (Larkbase, nhúng ảnh/video/forms, Kestra, Chatwood, email) dùng công cụ Directus + KHÔNG CODE MỚI
- Thêm trang, tổ chức thông tin, sửa schema → giao Agents xử lý + CICD
- Nếu BẮT BUỘC code mới → xin phép User → phê duyệt → mới thực hiện
Nguyên tắc "Assembly First" tuyệt đối
- Config > Flows > Extension có sẵn > Code mới (chỉ khi 1-3 fail + User OK)
- MỌI tích hợp dùng MỨC ĐẦY ĐỦ NHẤT có sẵn của Directus + Agency OS + Nuxt
Completed — Infrastructure Foundation
| Phase | Mô tả | Kết quả |
|---|---|---|
| WEB-70 | VPS hardening, 89 collections, 90 docs | ✅ |
| WEB-83→87 | Event system, Vector Search First, MCP HTTP, enforcement | ✅ INFRASTRUCTURE TRUSTED |
| WEB-88→88G | Planning infra, CommentModule v1, Checkpoint 4 bảng Directus | ✅ |
| MCP-FORTRESS | TD-032→035 resolved, VPS hardened, backups+monitoring | ✅ |
| SEC-CLEAN | TD-036→038 resolved, credentials secured | ✅ |
| CONN-FINAL | OPS Proxy 23 collections, 75 DOT tools VPS, 20/20 tests | ✅ |
| CONN-FIX | Env var fix, nginx fix, 37/37 endpoint tests, config map SSOT | ✅ |
| CONN-CLOSE | GPT write confirmed, Docker mem limits, OPS spec expanded (PR #407/#408) | ✅ |
| GEMINI-CONNECT + SECURE | Agent #6 connected + envsubst template injection secured | ✅ |
| AGENT-SELFTEST | 4/6 agents self-tested: Desktop 19/19, Gemini 19/19, Codex 19/19, GPT 15/15 | ✅ |
Kết quả hiện tại: 6 agents connected, 90+ docs, 282+ vectors, 0 orphans. OPS-SPEC-SLIM ✅ HOÀN THÀNH (19 ops, 7 cols). Connection Dashboard v1.3.
✅ Hoàn thành — OPS-SPEC-SLIM
MISSION: OPS-SPEC-SLIM — ✅ HOÀN THÀNH
Vấn đề: GPT Actions giới hạn 30 ops/spec. Spec Full (23 collections, ~105 ops) VƯỢT giới hạn.
Kết quả: Spec Council — 7 collections, 19 ops — GPT tự chủ điều hành. 37% headroom.
| Việc | Trạng thái |
|---|---|
| Tạo spec Council ban đầu (4 cols, 14 ops) | ✅ PR #409 |
| Bổ sung pages/navigation/globals (7 cols, 17 ops) | ✅ PR #410 |
| v3: PATCH tasks + POST ai_tasks (19 ops) | ✅ PR #411+#412 |
| GPT Actions import spec Council | ⏳ User manual — SẴN SÀNG |
| GPT re-import Agent Data spec | ⏳ User manual |
| GPT self-verify CRUD 19 ops | ⏳ Sau import |
7 Collections trong spec Council:
| Collection | Operations | Mục đích |
|---|---|---|
| tasks | GET list, GET by id, PATCH | Đọc + cập nhật nhiệm vụ |
| task_comments | GET, POST, PATCH, DELETE | Comment, phản biện, thảo luận |
| ai_tasks | GET list, GET by id, PATCH, POST | Điều hành + tạo agent tasks |
| posts | GET list, GET by id, POST, PATCH | Soạn kế hoạch, bài viết |
| pages | GET list | Đọc cấu trúc trang |
| navigation | GET list | Đọc menu |
| globals | GET list | Đọc cấu hình chung |
Chi tiết bảng Nhiệm vụ → Endpoint: search_knowledge("connection dashboard") → Mục 2.3
Tiếp theo — Ưu tiên
Ưu tiên 1: GPT Import + Self-verify
- User import spec Council vào GPT Actions:
https://ops.incomexsaigoncorp.vn/openapi-council.json - User re-import Agent Data spec:
https://vps.incomexsaigoncorp.vn/api/openapi.json - GPT self-verify CRUD 19 ops
Ưu tiên 2: Claude Code CLI selftest
- Agent thực thi chính chưa tự selftest (verified gián tiếp qua missions)
- Dùng prompt selftest đã soạn (S 93)
Ưu tiên 3: Web Integration Sprint
- WEB-88H: Fix CommentModule render + Tạo trang Modules
- Directus Schema & Content: Public permissions cho Nuxt SSR
- Agency OS ↔ Directus: Collections alignment, Blog/Jobs/Pages/Forms
- L1 Checkpoint decision: Directus Flow không đủ → cần phương án
Ưu tiên 4: External Integrations (Directus-first)
- Larkbase, Kestra, Chatwood, Email — dùng Directus webhook/flow
- Nhúng ảnh/video/forms — CMS rich text + Directus file management
Blockers / Key Decisions
| Item | Status |
|---|---|
| TD-019: Branch protection (paid plan) | ACCEPTED RISK |
| TD-049: lint không required check | ⚠️ PARTIAL — chờ paid plan |
| TD-026: L1 Checkpoint external service | Chờ User chốt phương án |
| TD-040: Uptime Kuma nginx proxy | ⚠️ PARTIAL — port secured, proxy deferred |
Agent Readiness (2026-03-02)
| # | Agent | Agent Data | Directus | Selftest | Role |
|---|---|---|---|---|---|
| 1 | Claude Desktop | ✅ STDIO→HTTP (11) | ✅ STDIO (10) | ✅ 19/19 | Điều hành |
| 2 | Claude AI (web) | ✅ STDIO→HTTP (11) | ✅ STDIO (10) | ✅ shared | Điều hành |
| 3 | Claude Code CLI | ✅ HTTP MCP (11) | ✅ STDIO (10) | ❌ Chưa | Thực thi chính |
| 4 | Codex CLI | ✅ HTTP MCP (9) | ✅ OPS Proxy (10) | ✅ 19/19 | Thực thi phụ |
| 5 | GPT | ✅ REST (9) | ⚠️ OPS Proxy (19 ops deployed, chờ import) | ⚠️ Chờ import | Soạn thảo, điều hành |
| 6 | Gemini CLI | ✅ HTTP MCP (11) | ✅ STDIO (10) | ✅ 19/19 | Giám sát kỹ thuật |
SSOT chi tiết: search_knowledge("connection dashboard")