WP-ADM-AGENT-GATE-02 — Catalog WP trên Dashboard Agent
Domain: D-DOCS · D-CMS (feature-flags) · Surface: ADM · Status: IMP · Date: 2026-08-18
Mục đích
OWNER không gõ mã WP tay: Duyệt → Agent (AI) → bấm chip catalog → Lưu duyệt (hoặc double-click / «Duyệt WP đề xuất») → nhắn agent «tiếp».
Luồng
- Dashboard → sidebar Duyệt → Agent (AI)
- Catalog WP (
docs/references/agent-wp-catalog.json) - Bấm chip để ghi mã · Lưu duyệt
- Agent Cursor đọc
approvedWptrongagent-owner-gate.json
API
GET /api/v1/feature-flags/agent-wp-catalog(public)PATCH /api/v1/feature-flags/admin/agent-gate(ADMIN JWT) — giữ từ GATE-01
Files
docs/references/agent-wp-catalog.jsonapi/src/modules/feature-flags/feature-flags.service.tsapi/src/modules/feature-flags/feature-flags.controller.tsdashboard/src/modules/agent/AgentModule.tsxdashboard/src/shared/api.ts
Verify
- Login ADMIN → Agent (AI) thấy chip catalog.
- Bấm
WP-FIGMA-SOC-PIXEL-03→ Lưu duyệt → fileapprovedWpđổi. - Agent «tiếp» chỉ làm WP đó.