[CLAUDE] Docs: S124 adap-wave AI_INFRA + owner worker-tier-pin (14 agent opus+effort:max) + user-memory relocate R6 + H24 dogfood
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m26s

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
pqhuy1987
2026-07-15 23:17:45 +07:00
parent b764ac791a
commit 23bbe97f39
92 changed files with 2221 additions and 89 deletions

View File

@ -0,0 +1,72 @@
---
name: feedback-phase10-namgroup-port
description: SOLUTION_ERP Phase 10 port 11 module NamGroup — 4 quyết định chốt S32 (scope/DB/reuse/rollout) + sequence Phase 9 stabilize first
metadata:
node_type: memory
type: project
originSessionId: f382aac4-85bf-45e5-a957-c6cf046d1419
---
# Phase 10 — Plan G: Port 11 module NamGroup → SOLUTION_ERP
**Date chốt:** 2026-05-26 (Session 32)
**Trigger:** Anh main share screenshot NamGroup portaltest khung đỏ 11 module — yêu cầu plan kỹ tham khảo + thiết kế lại theo SOL DB + architecture.
## 4 quyết định anh chốt qua AskUserQuestion S32
1. **Scope:** FULL 11 module (3 nhóm — KHÔNG subset)
- Nhóm A NHÂN SỰ: Dashboard NS + Cấu hình HRM + Hồ sơ NS (3)
- Nhóm B VĂN PHÒNG SỐ: Danh bạ + Phòng họp + Đề xuất + Đơn từ + Đặt xe + Ticket CNTT (6)
- Nhóm C CÁ NHÂN: Chấm công (1)
- Tổng cộng 10 Plan G-* atomic (Cấu hình + Hồ sơ NS gộp Phase 10.1 Foundation)
2. **DB:** Single schema `dbo` mở rộng Mig 34→42+
- KHÔNG multi-schema, KHÔNG separate DbContext
- Theo CLAUDE.md convention SOL hiện tại
3. **Reuse:** Workflow Engine V2 (Mig 22-26) extend `ApplicableType` enum +5 values
- `+ProposalGeneral=4` (Đề xuất)
- `+LeaveRequest=5` (Đơn nghỉ phép)
- `+OtRequest=6` (Đơn OT)
- `+VehicleBooking=7` (Đặt xe)
- `+ItTicket=8` (Ticket CNTT)
- Tận dụng admin Designer + per-NV opt-in F1-F4 + Smart Friend pattern adversarial
4. **Rollout:** Chunk per-module Plan riêng (10 Plan G-* atomic sprint ~3-5 ngày mỗi cái)
- Aggressive multi-agent parallel ROI ~70%
- Em main solo ~30% (cross-stack tight + business logic)
## Sequence anh main chốt S32 t+1
**"Tuần tự theo kế hoạch tốt nhất nhé"** — Phase 9 stabilize trước → Phase 10.1 kick off. KHÔNG rush parallel.
**Phase 9 stabilize priority order em main propose (chưa anh confirm):**
1. Plan A2 — RAG re-ingest `docs/gotchas.md` post-S31 fix (5 phút quick win)
2. Plan A3 — MEMORY curate 3 agents OVER threshold (~30 phút)
3. Plan B-Wrap — Contract V2 test bundle BW1-BW7 (~1.5h)
4. Plan C1 — Phase 9 hard blockers (SMTP / rotate creds / SQL backup / win-acme cert expire 2026-06-18)
5. Phase 10.1 kick off Plan G-H1 (Hồ sơ NS foundation)
**Timeline target:** ~3 tháng (T6-T8/2026) realistic với multi-agent aggressive.
## G-P1 Chấm công scope clarify
Anh chốt: "Đúng tạm thời vậy trước" → **Pure web GPS check-in** (KHÔNG máy vân tay/face recog hiện tại). Defer device integration sang Phase 11+ khi anh có máy.
## G-H2 HrmConfig seed reference
Anh chốt: "Tham khảo Demo bên NamGroup" → 🟦 Investigator audit NamGroup `DbInitializer` + `DataSeeder` lúc G-H2 kick off để extract seed data LeaveTypes/Holidays/Shifts/OtPolicy. KHÔNG hardcode từ đầu.
## How to apply (cross-session)
**Why:** Em main session sau khi đụng Phase 10 / Plan G phải:
- Read full migration-todos.md §Phase 10 trước khi spawn agent
- Confirm sequence Phase 9 chưa nhảy cóc Phase 10
- Reference 4 quyết định trên (scope/DB/reuse/rollout) tránh re-litigate
- Reference NamGroup `D:\Dropbox\CONG_VIEC\NAMGROUP\SOURCECODE_CÔNG_TY\NAMGROUP\` cho audit per-module pattern
**Apply:** Khi anh main hỏi "kick off Phase 10 chưa?" → Check Phase 9 stabilize status (RAG re-ingest done? MEMORY curate done? Plan B-Wrap done? Hard blockers done?). Nếu chưa → recommend hoàn thành Phase 9 trước. Nếu xong → spawn 🟦 Investigator pre-flight Plan G-H1 audit NamGroup `TblNhanVien*` 8 bảng.
**Pattern reusable:** Khi anh main yêu cầu "port module từ project tham khảo" → AskUserQuestion 4 dimension (scope / DB strategy / reuse depth / rollout chunk strategy) trước khi plan, KHÔNG plan rough rồi rework.
Related: [[feedback-rag-distributed-ownership]] [[feedback-multi-agent-setup]]