KB-1DA0

Task Orchestration Template v1.0

3 min read Revision 1
ssottemplatetask-orchestrationprocess

Task Orchestration Template v1.0

Copy template này khi tạo task mới. Điền {placeholder}. Rules + References đã có sẵn.


# TASK-{NNN}: {Tên ngắn}

**Status:** draft → active → review → done
**Priority:** critical / high / normal
**Assigned:** CLI Điều hành (soạn) → CLI Thực thi (code)
**Session:** S{NNN}

## Description
{Mô tả 1-2 câu}

## Targets
- [ ] Target 1
- [ ] Target 2

## Rules (auto-populated)
Checklist bắt buộc — link tới SSOT gốc:
- §0-AV: PG→Directus→Nuxt — search_knowledge("operating rules SSOT")
- §0-AU: Dynamic tối đa, cấm hardcode
- §0-AW: Automation checklist (3 câu) — MỌI mission
- §0-AI: Dual-trigger (cron + on-demand)
- §0-AF: Evidence từ production URL
- §0-AO: MERGE ≠ DONE
- Assembly First: PG→Directus→Nuxt→Code
- Anti-patterns: search_knowledge("anti-patterns SSOT")
{Thêm rules đặc thù cho task}

## Fixed References (KHÔNG đổi giữa các task)
- OR: knowledge/dev/ssot/operating-rules.md
- Mission Template: knowledge/dev/ssot/mission-template.md
- Tech Debt: OR section NỢ KỸ THUẬT
- Anti-patterns: knowledge/dev/ssot/anti-patterns.md
- Điều 26: knowledge/dev/architecture/dieu26-new-registries-counting-law-draft.md
- Hiến pháp: search_knowledge("hiến pháp kiến trúc")

## Prompt
{CLI Điều hành soạn — prompt cho CLI Thực thi}

## Reports
{CLI Thực thi ghi sau khi triển khai}

## Verify
{CLI Điều hành đánh giá report}

## Tech Debt (nếu có)
{Vấn đề chưa OK → ghi TD-NNN, chuyển backlog}

Hướng dẫn sử dụng

  1. Tạo task mới: Copy template trên → điền Description + Targets + Prompt
  2. Rules + References: ĐÃ CÓ SẴN — không cần nhớ ghi lại
  3. Workflow: draft → Điều hành soạn prompt → active → Thực thi code → review → Điều hành đánh giá → done
  4. Comments: Dùng CommentModule (M-001) trên task — mỗi tab_scope = 1 section
  5. Mapping Directus fields:
    • name = TASK-{NNN}: {Tên}
    • content_targets = Targets
    • content_rules = Rules
    • content_prompt = Prompt
    • content_reports = Reports
    • content_verify = Verify
    • content_plan = Description + Tech Debt