KB-4144
Branch D — Mock Data Generation Result
3 min read Revision 1
ai-workspaceui-previewmock-datacanvasnodemow2026-05-29
Branch D — Mock Data Generation Result
Output: …/ui-preview/mow/unified-canvas/v1/mock-data.json (18,963 bytes, JSON-valid).
Source: Component 3 (CanvasNode / CanvasContext) of the spec. No user input requested.
Coverage (all required dimensions present)
- Tiers T6→T1 — each with a
CanvasContext(breadcrumb deepening T6→T1) +CanvasNode[]. - Normal state — default
active_tier = T3(Chuyên môn → Nhiệm vụ/Workflow), template view. - Proposal mode state —
states.proposalwithsample_proposals[](oneedit, oneadd) matchingdot_mow_design_propose_changeshape (target_node_id, change_type, proposed_data, reason, iu_ref, status=pending). - Instance state —
node_instance_overridesexercising the full 9-state enum (created/assigned/in_progress/waiting_for_approval/completed/overdue) + SLA traffic lights (green/yellow/red/blue/orange) + assignee avatars + progress_ratio. - Large / governance-alert state — freeze active, 1/2 approvals (Đ32/37), and a
large_scale_demo(47 children, +44 overflow) for scale handling. - Node/card fields — full canonical contract: id, code, title, tier, parent_id, order_index, status, traffic_light, child_count, child_preview (≤3), automation_level, workflow_ref, task_type_ref, iu_ref, proposal_count, permission_actions, instance_data.
- Traffic-light examples — green/yellow/red/gray on T2 nodes; legend embedded.
- permission_actions examples —
[view],[view,propose],[view,propose,admin]. - No production secrets — all ids are fabricated UUID-shaped strings; content is illustrative HR workflow.
Domain content (faithful to PHU-LUC-A ground truth)
Thương mại quốc tế → Incomex Sài Gòn → Nhân sự → Tuyển dụng → Tuyển sinh → NV01 Tiếp nhận / NV02 Sàng lọc / NV03 Phỏng vấn / NV04 Thu hồ sơ / NV05 Đào tạo / NV06 Xuất cảnh → T01–T03.
Caveat (logged, not silent)
Mock is illustrative, not backend-verified. The CanvasNode→PG column mapping (reuse-first, no new
tables) is deferred to the live PG survey — see mock-data-contract.md and the master pack Branch H.