H1 drift-flush: ef-core-migration SKILL +Mig 51/52 rows + count 50->52 (5 cites), skills/README + root CLAUDE.md gotcha 64->65 + schema pending 32-52. H2 P1 GAP: cicd-monitor L1 byte-exact sed move Run #286->#232 -> archive/2026-06.md (incl #291 forensic [gotcha #65] + #383); baseline + 6 runs #289-#295 kept; essentials Mig 52 + bundle-live #295. Reliability fix (25KB auto-inject cap). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
57 KiB
CI/CD Monitor — Archive 2026-06 (L2 COLD, read-on-demand)
Curated S66 (2026-06-16) from L1 MEMORY.md to keep L1 < ~35KB. Older run-records (S62 #286 06-13 -> S29 #232) moved here VERBATIM. L1 retains the 6 current-session 06-16 deploys (#289-#295). Note: #291 (06-16 FAIL, CS7036) full forensic detail lives here; its lesson = canonical gotcha #65 + summarized inline in the L1 #292 entry, so not orphaned. #383 entry (was tagged VI-TRI-LAC in L1 FIFO) now correctly archived.
-
2026-06-13 S62 Run #286 (run_number 286, id400) sha=
7926c21PASS ~4m41s (PE "vượt ngân sách" → SOFT-WARNING: gỡ chặn số âm — CROSS-STACK 1 BE validator-rule-removal + 2 FE PeDetailTabs ×2 + 1 test flip, NO migration): Push79ef8da..7926c214 files: BEPurchaseEvaluationFeatures.cs(gỡ 1 FluentValidation ruleExpectedRemainingAmount >= 0trongAdjustPurchaseEvaluationBudgetCommandValidator) +PeDetailTabs.tsx×2 app (allowNegative row8 + banner "Vượt ngân sách") +PeWorkItemBudgetTests.cs(flip 1 test)..cs+.tsx→ full pipeline RAN. GITEA_TOKEN+PROD_DB_PW empty → anon Gitea API + DB pw từ prodappsettings.Production.json→ConnectionStrings.Default. Run IN-PROGRESS first poll (running 11:15) — correctly did NOT FAIL/verify-bundle-mid-flight (anti-pattern #3), polled iter5 status=success (started 11:14:00 → success 11:18:41 ≈4m41s). CI gate (both test proj pre-deploy ⟹ status=success ⟹ test gate 263 baseline (45 Domain + 218 Infra) passed;tasksendpoint reports terminal asstatus:success,conclusionempty — trust success). Bundle ROTATE BOTH (load-bearing FE×2, verified AFTER status=success +re-confirm STABLE no transient — anti-pattern#3): adminDsGZlNzT→0xKYGhhf+ userDTL_bjzQ→C81ZdG9G✓ both touched (FE changed both apps). Title "Solutions ERP · Admin" preserved. Health live+ready 200/200 + admin/eoffice root 200. Smoke: PE unauth 401 (auth gate real) + control/api/zzz-not-a-route404 (routing live, 401 not catch-all). NO migration — prod__EFMigrationsHistorytop =20260612173224_ReplaceBudgetModuleWithPeWorkItemBudgets(= S61 "Mig 50", Budget→PeWorkItemBudgets replace) == repo HEAD, GIỮ NGUYÊN ✓ (commit 0 migration files; repo 50 mig .cs total). sys.tables(excl mighist)=88 (S61 replace-mig DROPPED Budget tables 93→88; convention/count shift from S61 NOT this commit — FE+validator-only cannot alter schema). 0 regression. LESSON: validator-rule-removal (negative-allow soft-warning) = internal handler-pipeline behavior — cannot curl-assert "now accepts negative ExpectedRemainingAmount" without authed multi-step adjust flow → rely on +flip PeWorkItemBudgetTests in CI gate 263 passing + bundle-rotate-both (FE banner shipped). Table count 88 (not 93) is S61 Budget-replace aftermath, not regression — always cross-ref what the COMMIT touched vs ambient schema state. Tag[s62, run286, pass, pe-budget-soft-warning, allow-negative, cross-stack, bundle-rotate-both, no-mig, test263, tables88-s61-aftermath]. -
2026-06-12 S60 Run #283 (run_number 283) sha=
37122f0PASS ~5m (PE guard 4-thông-tin mục 3 khi gửi duyệt + bypass người-soạn-trong-chuỗi-duyệt + rename heading "Đơn vị NCC/TP được chọn" — CROSS-STACK 1 BE service + 2 FE PeDetailTabs ×2 + 1 NEW test file): Push792c030..37122f07 files:PurchaseEvaluationWorkflowService.cs(BE submit-guard + drafter-bypass) +PeDetailTabs.tsx×2 app +PeSubmitGuardAndBypassTests.cs(NEW, +14 → 240→254 expected) + 3 agent-memory.md(harvest-curator/investigator-codebase/test-specialist —.claude/agent-memory/**matches**/*.mdglob → ignored, but.cs+.tsxpresent ⟹ whole-range builds, Discovery #3). GITEA_TOKEN+PROD_DB_PW empty → anon Gitea API + DB pw từ prodappsettings.Production.json→ConnectionStrings.Default. Run IN-PROGRESS first poll (running 11:55) — correctly did NOT FAIL, polled iter5 status=success (started ~11:54 → success 11:59:26 ≈5m). CI gate (both test proj pre-deploy ⟹ status=success ⟹ test gate 254 passed;tasksendpoint reports terminal asstatus:success,conclusionempty — trust success). Bundle ROTATE BOTH (load-bearing, verified AFTER status=success — anti-pattern#3): adminB1DtNT9C→akytoBnc+ userD6uF3Mln→BzSdQmN0✓ both touched (FE changed both apps). Brand1F7DC1preserved both HTML. Health live+ready 200/200 + admin/eoffice root 200. Smoke: PE unauth 401 + contracts unauth 401 + control/api/zzz-not-a-route404 (auth gates real, routing live). NO migration — prod__EFMigrationsHistorytop = Mig 49AddWorkItemToPurchaseEvaluation== repo, GIỮ NGUYÊN ✓ (PE.MaPhieu col, not Code). sys.tables(excl mighist)=92 (convention diff vs narrative-93, no new table — col/logic-only). DATA INTACT (no-touch verify, sqlcmd): PE_count=3 · PE/2026/A/001 EXISTS (=1, phiếu UAT thật giữ nguyên ✓) · Suppliers=23 · WorkItems=71 — counts vs S59 (PE was 1 #275, Suppliers 22 #278) GREW from legit ongoing-UAT (this commit = FE+BE-service, NO DbInitializer/seed change → cannot resurrect/wipe; growth is user activity not deploy-induced). 0 regression. LESSON (cross-stack submit-guard + drafter-bypass = ship-proof via run-success + test 254 + bundle-rotate-both + PE-data-preserved; the guard/bypass logic is internal handler behavior — cannot curl-assert "block submit when mục-3 incomplete" or "skip drafter in chain" without authed multi-step flow → rely on +14 PeSubmitGuardAndBypassTests in CI gate passing). SSH→sqlcmd viaiconv UTF-16LE|base64→powershell -EncodedCommand(nested bash→ssh→PS strips$vars/mangles quotes); PE code column =MaPhieuNOTCode. Tag[s60, run283, pass, pe-submit-guard, drafter-bypass-in-chain, cross-stack, bundle-rotate-both, no-mig, test254, pe-a001-preserved]. ↳đợt2 (14:14): Run #284 (run_number 284, id398) sha=6db195dPASS ~4m31s — GỠ hành động "Từ chối" khỏi quy trình PE (chỉ còn Duyệt/Trả lại; CROSS-STACK DomainPurchaseEvaluationPolicy.cs+ InfraPurchaseEvaluationWorkflowService.csguard + FEPeWorkflowPanel.tsx×2 app + 2 NEW testPurchaseEvaluationPolicyTests/PurchaseEvaluationWorkflowServiceGuardTests, +2 → 254→256 expected: 59 Domain + 197 Infra). Push37122f0..6db195d6 files (.cs+.tsx → full pipeline). Tokens empty → anon Gitea API + prod appsettings DB pwConnectionStrings.Default. Run IN-PROGRESS first poll (running 14:31) — correctly did NOT FAIL, polled iter5 status=success (14:30:51→14:35:22 ≈4m31s; CI both-proj-pre-deploy ⟹ success ⟹ 256-gate passed,conclusionempty trust success). Bundle ROTATE BOTH (verified AFTER status=success — anti#3): adminakytoBnc→DSvM8h3A+ userBzSdQmN0→Cs2Tt5n6✓ both touched. Health live+ready 200/200 + admin/eoffice root 200 + PE unauth 401 + control /api/zzz-not-a-route 404. NO migration — prod top=Mig 49AddWorkItemToPurchaseEvaluation==repo GIỮ ✓. sys.tables(excl mighist)=92. DATA INTACT: PE_count=4 (grew from 3 @#283 — legit ongoing-UAT; BE-policy+FE-only NO seed change → cannot resurrect/wipe) · PE/2026/A/001 EXISTS (=1 phiếu UAT thật giữ ✓). 0 regression. LESSON: "Từ chối"-removal = internal policy/handler behavior, cannot curl-assert "reject action gone" without authed multi-step flow → rely on +2 PolicyTests/GuardTests in CI gate passing. Tag[s60-dot2, run284, pass, pe-remove-reject-action, cross-stack, bundle-rotate-both, no-mig, test256, pe-a001-preserved]. -
2026-06-11 S59-CLOSE Run #280 (run_number 280) sha=
69997daPASS ~4m24s (FINAL đóng sổ session — FE-only ×2 PeDetailTabs+PeHeaderForm bỏ ô "Tên ngân sách" manual budget UAT vòng4): Pushf21c55d..69997da4.tsx(PeDetailTabs+PeHeaderForm ×2 app). Run #279 (id393) sha=f21c55d(NCC table-fixed UAT vòng3) =cancelled@18:22:33 — supersede-BENIGN: #280 push @18:22:34 (1s gap → Gitea concurrency-cancel in-flight) +git merge-base --is-ancestor f21c55d 69997da=TRUE ✓ (f21c55dpreserved trong HEAD, ships via #280 — verified diff f21c55d→69997da chỉ +4 PeDetail/Header file, không re-touch 12 file vòng3). Tokens empty → anon Gitea API + prod appsettings DB. Poll iter4 status=success (18:22:34→18:26:58). Bundle ROTATE BOTH FINAL (verified AFTER success +re-confirm STABLE no transient — anti#3): adminBSh2fG2X→BKy_8OO9+ userD22KfpPc→XcZ6PRyA✓ session-close hash, brand1F7DC1+"Solutions ERP" preserved ×2. Health live+ready 200/200 + admin/eoffice root 200 + PE unauth 401 + control 404. NO migration (FE-only, Mig 49 held). LESSON (mirror Run #385 supersede-chain): same-SHAcancelledmid-flight = concurrency-supersede bởi newer push (1s HEAD-move), KHÔNG build/deploy-fault → ancestor-check TRUE = benign, verify prod qua SUCCESSFUL run #280 (NOT cancelled #279), KHÔNG escalate. Tag[s59-close, run280-pass, run279-cancelled-benign, supersede-chain, fe-budget-name-remove-x2, bundle-rotate-both-FINAL, no-mig]. ↳FINAL-v2 (tối):80b64dd(Run #281 cancelled-BENIGN) gỡ "Điều khoản thanh toán" 3-form ×2 → superseded bởi792c030Run #282 PASS ~4m (UAT vòng6 bỏ nút "+Thêm hạng mục" PeDetailTabs ×2). Ancestor 80b64dd⊂792c030=TRUE ✓ (792c030chỉ re-touch PeDetailTabs, KHÔNG đụng PeHeaderForm/PeWorkspaceCreateView → paymentTerms-removal survives). Verify qua #282-success. Bundle ROTATE BOTH ĐÓNG-SỔ-THẬT (AFTER success +re-confirm STABLE no transient): adminBKy_8OO9→B1DtNT9C+ userXcZ6PRyA→D6uF3Mln✓, brand1F7DC1ok. Health live+ready 200/200 + 2 FE root 200. NO mig (FE-only). Lần thứ 3 liên tiếp supersede-chain (#279/#281 cancelled-benign) — pattern stable. -
2026-06-11 Run #278 (run_number 278) sha=
9c330d2PASS ~3m45s (S59-đợt6 CROSS-STACK — BE SuppliersController POST hạ[Authorize(Roles="Admin,CatalogManager")]→ class-level[Authorize]any-auth (anh chốt quick-add NCC đi-thầu phát sinh liên tục), PUT/DELETE GIỮ khóa Admin+CatalogManager; FE×2 PeDetailTabs AddSupplierDialog SearchableSelect+quick-create+upload-multi + PeWorkflowPanel ẩn Trả-lại/Từ-chối khi drafterUserId==currentUser): Pushfaed59f..9c330d25 files: 4 FE.tsx(PeDetailTabs+PeWorkflowPanel ×2 app) +SuppliersController.cs..cs+.tsx→ full pipeline RAN. GITEA_TOKEN+PROD_DB_PW empty → anon Gitea API + DB pw từ prod appsettings.Production.json→ConnectionStrings.Default(vrapp/buKL3...). Run IN-PROGRESS first poll (running) — polled iter6 status=success. Bundle ROTATE BOTH (load-bearing FE×2, verified AFTER status=success +re-confirm stable ×2 NO transient — anti-pattern#3): adminex7Tc92G→BSh2fG2X+ userDzUeSk96→D22KfpPc✓ both touched. Brand1F7DC1+"Solutions ERP" preserved. Health live+ready 200/200 + admin/eoffice root 200. NO migration — prod__EFMigrationsHistorytop = Mig 49AddWorkItemToPurchaseEvaluation== repo ✓. ★ AUTHZ PROBE 4-điểm (the change-point — asymmetric POST-open/DELETE-locked verify) ALL PASS: (a) unauth POST /api/suppliers (no token) = 401 ✓ (vẫn phải login, KHÔNG anonymous — class[Authorize]giữ); (b1) nv.test (Drafter non-admin) POST{code:ZZCICD-TEST,type:1}= 201 ✓ idbc64c0c0-...(quick-add mở OK); (b2) nv.test DELETE same-id CÙNG token = 403 ✓ (Sửa/Xóa vẫn khóa Admin+CatalogManager — method-level attr giữ); cleanup admin DELETE = 204 + GET = 404 ✓ (probe gỡ sạch). Spot sqlcmd ground-truth: WorkItems active=71 HELD ✓ (no resurrect) + Suppliers active=22 ✓ (==pre-probe; DELETE là SOFTIsDeleted=1→ active count về 22, total=23 với 1 tombstone ZZCICDIsDeleted=1— by-design audit, KHÔNG leak: list/GET ẩn nó). ⚠️ API/api/supplierslist trả 20 (paginated/filtered default page — KHÔNG authoritative, dùng sqlcmd cho count thật). Test gate (CI both proj pre-deploy ⟹ success=passed). 0 regression. LESSON: cross-stack authz-relax verify = probe CẢ asymmetry — (i) unauth vẫn 401 (relax ≠ anonymous), (ii) target-role action mở (201), (iii) SIBLING action vẫn locked (403 same token), (iv) cleanup soft-delete → active-count về baseline + tombstone total+1 (soft-delete ≠ rác nếu list/GET ẩn). API list-count KHÔNG tin (pagination) → sqlcmdWHERE IsDeleted=0cho count thật. Tag[s59-dot6, run278, pass, supplier-post-authz-relax, asymmetric-probe-401-201-403, soft-delete-cleanup, bundle-rotate-both, no-mig, wi71-held]. -
2026-06-11 Run #277 (run_number 277) sha=
faed59fPASS ~4m09s (S59-đợt5 FE-only ×2 — NEW ui/SearchableSelect combobox gõ-lọc-bỏ-dấu + PeWorkspaceCreateView/PeHeaderForm Hạng mục+Dự án combobox + auto-fill Địa điểm từ Project.Location + PeDetailTabs paymentTerms Textarea; UAT 4-điểm screenshot 16:40): Pushc869d26..faed59f8 files all.tsx(4 fe-admin + 4 fe-user, NEW SearchableSelect mirror ×2) → pipeline RAN. Tokens empty → anon API + prod appsettings pw. Run IN-PROGRESS first poll (running 17:40) — polled iter5 status=success (17:40:18→17:44:27). Bundle ROTATE BOTH (verified AFTER success +re-confirm stable NO transient — anti-pattern#3): adminBBA0KSWu→ex7Tc92G+ userDzdTI18G→DzUeSk96✓ both apps touched. Brand1F7DC1preserved both HTML. Health live+ready 200/200 + admin/eoffice root 200. NO migration (FE-only). Spot DB: WorkItems active=71 HELD (==#276 ✓ no resurrect — FE-only no restart risk) + PE=1 (info-only UAT leftover unchanged, NOT regression). Test gate (CI both proj pre-deploy ⟹ success=passed). 0 regression. LESSON: FE-only follow-up of a data-session needs only light WorkItems=71+PE re-confirm (no infra re-audit). SSH→sqlcmd pw-read: nested bash→ssh→PS strips$vars→ useiconv UTF-16LE|base64→powershell -EncodedCommand. Tag[s59-dot5, run277, pass, fe-searchableselect-x2, bundle-rotate-both, no-mig, wi71-held]. -
2026-06-11 Run #276 (run_number 276) sha=
c869d26PASS ~4m33s (S59-đợt4 FINAL — rename 71 WorkItems theo format PMH anh Kiệt FDC: BE DbInitializer seed-tuple mới MAT-n/SUB-n/MEP-SUB-n/MEP-EQU-n + FE×2 sort numeric, SQL rename ran TAY prod TRƯỚC push giữ Id): Pushbbd1554..c869d269 files: 6 FE (PeHeaderForm+PeWorkspaceCreateView+PurchaseEvaluationsListPage×2 app) +DbInitializer.cs+s59-rename-workitems-pmh.sql+ generated.md..cs+.tsx→ full pipeline RAN. GITEA_TOKEN+PROD_DB_PW empty → anon API + prod appsettings pwConnectionStrings.Default. Run IN-PROGRESS first poll (running 17:14) — polled iter5 status=success (17:14:14→17:18:47). Bundle ROTATE BOTH (3 FE file both apps, verified AFTER success +re-confirm stable NO transient — anti-pattern#3): adminDuU7OTym→BBA0KSWu+ userDWyeTzf3→DzdTI18G✓ both reachable 200, brand1F7DC1+title "Solutions ERP" preserved. Health live+ready 200/200 + admin/eoffice root 200 + PE unauth 401 + control 404. NO migration — prod top=Mig 49AddWorkItemToPurchaseEvaluation==repo ✓. ★ RISK-POINT CLEARED (app restart ran SeedRealMasterDataAsync w/ NEW tuples — rename SQL ALREADY took → seed found all 71 new codes exist → added 0, NOT 142): WorkItems=ĐÚNG 71 (142=FAIL averted) + old VT-/TP-/TB-=0 ✓ + new MAT-/SUB-/MEP-=71 ✓ + spotMEP-SUB-1="1 MEP Sub MEP (Full)" EXACT ✓ + sample MAT-1/SUB-1/MEP-SUB-9/MEP-EQU-16 all present. PE=1 (info-only, UAT leftover A/001 — not resurrect). Test gate 240 (CI both proj pre-deploy ⟹ success=passed). 0 regression. LESSON: rename-via-prod-SQL + seed-tuple-change verify = (a) target count EXACT (double = idempotent-seed re-added because SQL rename didn't take), (b) old-prefix=0 + new-prefix=full-count, (c) spot Code→Name exact match. Idempotent UNGATED seed re-runs on every restart → if hand-SQL rename succeeded BEFORE deploy, seed finds new codes present → adds 0 (safe); if rename failed → seed ADDS duplicates = 2× count = critical FAIL. Tag[s59-dot4, run276, pass, workitems-rename-pmh, bundle-rotate-both, no-mig, count-71-no-dup]. -
2026-06-11 Run #275 (run_number 275) sha=
bbd1554PASS ~3m44s (S59-đợt3 BE-only DbInitializer GỠ seed 15 WorkItems demo — chị Trà Sol chốt giữ đúng 71 mã PMH +scripts/s59-wipe-demo-workitems.sqlran TAY prod TRƯỚC push 86→71): Push0eafcd3..bbd15542 filesDbInitializer.cs+ wipe-sql ONLY, NO FE/Mig..cs→ full pipeline RAN. GITEA_TOKEN+PROD_DB_PW empty → anon API + prod appsettings pwConnectionStrings.Default. Run IN-PROGRESS first poll (running 16:57) — polled iter6 status=success (16:57:41→17:01:25). Bundle FROZEN adminDuU7OTym+ userDWyeTzf3(== #274 UNCHANGED ✓ CORRECT BE-only — verified AFTER status=success, no FE leak). NO migration — prod__EFMigrationsHistorytop = Mig 49AddWorkItemToPurchaseEvaluation== repo ✓. Health live+ready 200/200 + admin/eoffice root 200. ★ RESURRECT-VERIFY (risk point — app recycle post-deploy did NOT re-seed demo WorkItems, seed-block removal HELD): WorkItems=71 (ACTIVE=71 INACTIVE=0 DELETED=0 — hard-wipe not soft) + 4 categories EXACT: MEP 9 / Thầu phụ-Xây dựng 30 / Thiết bị 16 / Vật tư-Xây dựng 16 ✓ + demo-codes DAO-MONG/SON-NUOC/VC-PHE-THAI = 0 ✓ (SeedRealMasterDataAsync idempotent re-ran, added 0 — 71 codes all exist). ⚠️ PARTIAL item 5 — PE=1 không phải 0: 1 rowPE/2026/A/001Phase=10 created 09:46:42 UTC = 16:46 chiều local (CreatedAt lưu UTC — em main annotate S59-end kẻo đọc nhầm timeline; sau wipe Run #273 ~15:36 local, là phiếu UAT thật user tạo buổi test chiều, KHÔNG do deploy resurrect — BE-only bundle-frozen, DbInitializer KHÔNG seed transactional PE). INFO-flag, NOT deploy-fail. Test gate 240 (CI both proj pre-deploy ⟹ success=passed). 0 regression. LESSON: seed-removal verify (mirror wipe-verify #273) = (a) target table count exact + category breakdown + demo-code spot-check 0 AFTER recycle (idempotent real-seed re-runs but adds 0), (b) ACTIVE/DELETED split proves hard-wipe vs soft-delete. PE=1 leftover-UAT ≠ regression: check CreatedAt timestamp vs wipe-time — pre-wipe-then-new-create is legit UAT activity, only assert PE=0 if no UAT happened between wipe and deploy. Tag[s59-dot3, run275, pass-partial, be-seed-removal, workitems-71-no-resurrect, bundle-frozen, no-mig, pe1-uat-leftover]. -
2026-06-11 Run #273 (run_number 273) sha=
56882acPASS ~3m34s (S59 FE×2 PE-list tree regroup "Dự án(Năm)→Hạng mục→Phiếu" bỏ tầng NCC + prod data WIPE): Push1577927..56882ac3 files:PurchaseEvaluationsListPage.tsx×2 app (SHA256 mirror identical, Panel-1 tree drop NCC tier) +scripts/s59-wipe-testing-data.sql(ran TAY prod TRƯỚC push, NOT in pipeline)..tsxpresent → pipeline RAN. ⚠️ GITEA_TOKEN+PROD_DB_PASSWORD empty → anon Gitea API (works, public) + read DB pw from prodappsettings.Production.json→ConnectionStrings.Default. Run IN-PROGRESS first poll (running 15:36) — polled iter5 status=success (15:36:26→15:40:00). Bundle ROTATE BOTH (load-bearing, verified AFTER success +6s stable NO transient — anti-pattern#3): adminDMm9rtNA→R9uGRxvw+ userBUkOMn_Y→DikfX1RD✓ both apps touched. Brand1F7DC1preserved both HTML. Health live+ready 200/200 + admin/eoffice root 200. NO migration — prod top=Mig 49AddWorkItemToPurchaseEvaluation==repo ✓. sys.tables(excl mighist)=92. ★ WIPE-VERIFY (the risk point — app restart post-deploy did NOT resurrect demo data, DemoSeed:Disabled gate HELD): PE=0 · Contracts=0 · Notifications=0 · PESeq=0 (all wiped clean, stayed clean post-recycle) + infra preserved: ApprovalWorkflows=7 all IsActive=1 · Projects=70 · WorkItems=86 · Users=55 — ALL counts EXACT match expected. Test gate 240 (CI both proj pre-deploy ⟹ success=passed). 0 regression. LESSON: post-wipe deploy verify = confirm both halves — (a) demo/transactional tables stay 0 after app-pool recycle (gate held, no re-seed) AND (b) infra/master tables (AW/Projects/WorkItems/Users) untouched (wipe was surgical, not nuke). Count-exact on both sides = PASS. Tag[s59, run273, pass, fe-list-regroup-x2, bundle-rotate-both, prod-wipe-verify, no-mig]. -
2026-06-11 Run #274 (run_number 274) sha=
0eafcd3PASS ~4m51s (S59-đợt2 FE×2 PE-list tree 4-tầng "Năm>Dự án>Hạng mục>Phiếu" — follow-up Run #273 đổi từ 2-tầng-gộp-label sang 4-tầng explicit): Push56882ac..0eafcd32 filesPurchaseEvaluationsListPage.tsx×2 app ONLY (SHA256 mirror identical95d524ee)..tsx→ pipeline RAN. GITEA_TOKEN+PROD_DB_PW empty → anon API + prod appsettings pw. Run IN-PROGRESS first poll (running 16:37) — polled iter6 status=success (16:37:06→16:41:57). Bundle ROTATE BOTH (verified AFTER success +re-confirm stable NO transient — anti-pattern#3): adminR9uGRxvw→DuU7OTym+ userDikfX1RD→DWyeTzf3✓ both touched. Health live+ready 200/200 + admin/eoffice root 200. NO migration (FE-only). Spot-check PE=0 held post-deploy (FE-only no restart-resurrection risk; wipe gate still HELD from #273). Test gate 240 (CI both proj pre-deploy ⟹ success=passed). 0 regression. LESSON: FE-only follow-up of a wipe-session needs only light PE=0 re-confirm (no full infra re-audit) — restart risk already cleared #273. Tag[s59-dot2, run274, pass, fe-list-4tier-x2, bundle-rotate-both, no-mig, pe-zero-held]. -
2026-06-11 Run #385→#386 SUPERSEDE-CHAIN sha=
ea793a4CANCELLED(benign)→shipped-via3ebaf84#386 PASS ~4m25s (S58 brand-accent polish x2 app then PE-workitem-merge): Target push6e53e33..ea793a48 files FE polish CẢ 2 app (Layout/TopBar/PageHeader/DataTable each — stripe đỉnh + logo-zone tint + PageHeader accent bar + thead brand-50/60), NO BE/Mig. Run #385 (run_number 271) status=cancelled@14:14:22 — NOT a fail: superseded by newer push3ebaf84(#386 run_number 272) landed @14:14:31 (Gitea concurrency-guard cancels in-flight same-branch run). HEAD moved ea793a4→3ebaf84. Verifiedea793a4IS ancestor of3ebaf84+ the 8 polish files NOT re-touched by3ebaf84→ polish PRESERVED in tree, ships via #386. #386 adds 4 PE files (PeHeaderForm/PeWorkspaceCreateView ×2 app, anh Kiệt FDC 14:06 — gộp Tên gói thầu=chọn Hạng mục) → both apps rebuilt anyway. Polled #386 to status=success(started 14:14:31→14:18:56). Bundle ROTATE BOTH (load-bearing, verified AFTER #386 success — anti-pattern #3): adminCP4CB1ym→DMm9rtNA(cssvMtY6u47→DDlKud5i) + userCKjwqnGL→BUkOMn_Y(cssCV0H5hnq→BgAUPcnL) ✓ both touched → both rotate. Brand preserved both apps:1F7DC1in HTML +Be Vietnam Pro+1f7dc1in CSS bundle; BONUS polish landed:brand-50/brand-60Tailwind classes present in BOTH CSS bundles (thead/tint/accent shipped). Health live+ready 200/200 + admin/eoffice root 200. NO migration — prod__EFMigrationsHistorytop = Mig 49AddWorkItemToPurchaseEvaluation== repo, GIỮ NGUYÊN ✓ (neitherea793a4nor3ebaf84has Mig). Smoke PE+contracts unauth=401 + control/api/zzz-not-a-route=404 (auth gates real). Test gate (CI both proj pre-deploy ⟹ #386 success=passed). Prior today #382/#383/#384 all PASS. LESSON (cancelled ≠ fail — supersede-chain verify): a same-SHA run flipping tocancelledmid-flight is almost always Gitea concurrency-supersede by a newer push, NOT a build/deploy fault → MUST (1) check tasks list for newer run + HEAD movement, (2)git merge-base --is-ancestorconfirm target commit preserved in new HEAD, (3)git diff target..newHEAD -- <target-files>empty ⟹ target changes survive, (4) verify prod via the SUCCESSFUL superseding run not the cancelled one. Do NOT report FAIL/escalate on a benign supersede-cancel. Tag[s58, run385-cancelled-benign, run386-pass, supersede-chain, brand-polish-x2, bundle-rotate-both, no-mig]. -
2026-06-11 Run #384 (run_number 270) sha=
e959f72PASS ~4m30s (S58 FE-USER visual redesign density-first per AI_INFRA UI/UX guide — keep brand #1F7DC1/Be Vietnam Pro/slate; FE-USER-ONLY, ZERO BE/Mig/fe-admin): Push6c5fd26..e959f721 commit 16 files: 14 fe-user (index.csstokens + 6 ui primitives Button/Dialog/Input/Label/Select/Textarea + 6 shell DataTable/EmptyState/Layout/PageHeader/PhaseBadge/TopBar + LoginPage) + 2 broadcasts.md. NO fe-admin, NO.cs, NO Mig..tsx/.csspresent → NOT docs-skip, pipeline RAN. ⚠️ GITEA_TOKEN empty both shells → unauth public API (200, no token needed). Run IN-PROGRESS at first poll (status=running 13:51) — correctly did NOT FAIL, polled iter6 status=success (started 13:51:18 → 13:55:48). ASYMMETRIC bundle (load-bearing) PASS: user ROTATEBmZ3VHnm→CKjwqnGL(redesign shipped, verified AFTER status=success, stable on +recheck no transient) + admin FROZENCP4CB1ym(=#382 UNCHANGED ✓ scope-correct, NO fe-admin leak — mirror Run #378 asymmetric fe-admin-only logic, inverted). user.jsHEAD 200 app/js 1.47MB + CSS rotateindex-CV0H5hnq.css200 63KB. Brand preserved:1F7DC1in HTML +Be Vietnam Pro+1f7dc1in CSS bundle ✓; title "Solutions ERP". Health live+ready 200/200 + admin/eoffice root 200. NO migration — prod__EFMigrationsHistorytop = Mig 49AddWorkItemToPurchaseEvaluation== repo, GIỮ NGUYÊN ✓. sys.tables(excl mighist)=92 (FE-only no new table). Smoke PE unauth=401 + control/api/zzz=404 (auth gates real). Test gate 240 (CI both proj pre-deploy ⟹ success=passed). 0 regression. Prior today #382(5998163lock-fix)+#383(6c5fd26hide-modules) both PASS as noted. LESSON (single-app FE-USER redesign — asymmetric verify, inverse of #378): PASS criteria asymmetric — user hash MUST rotate (ship-proof) AND admin hash MUST stay frozen (scope-proof, no accidental fe-admin redeploy). admin-unchanged is POSITIVE here. Visual-only CSS-token+className redesign rotates bundle exactly like logic change (Vite content-hash byte-sensitive). SSH→sqlcmd<>/NOT LIKE '__%'quoting traps:<mangled by PS redirect (use!=/CONCAT-CHAR),_is LIKE-wildcard (escape'[_][_]%'). Tag[s58, run384, pass, fe-user-only-redesign, asymmetric-bundle-verify, no-mig, brand-preserved]. -
2026-06-16 S? Run #291 (run_number 291, id405) sha=
8c8179c❌ FAIL ~64s (TEST-GATE COMPILE BREAK — Department.ParentId phân cấp cây tổ chức, BE Mig + FE-admin picker; DEPLOY DID NOT RUN, prod UNCHANGED @baseline): Pushc98030f..8c8179c2 commits:0f44d97BE (Mig20260616032402_AddDepartmentParentId= AddColumnParentId Guid? nullable+ CreateIndexIX_Departments_ParentId, NO new table;GET /api/departments/tree; Create/Update nhận parentId —CreateDepartmentCommandrecord signature CHANGED to(string,string,Guid?,string?,Guid?)+5th positional ParentId,UpdateDepartmentCommand+6th) +8c8179cFE-admin DepartmentsPage picker "Phòng cha". Tokens empty → anon Gitea + prod-appsettings DB pw. Task #291 status=failure created 10:41:14 → updated 10:42:18 = ~64s (far < ~3min normal → early-stage fail, NOT deploy stage). Anon API can't reach/tasks/{id}+/logs(404 — need auth) + WebFetch Actions UI JS-rendered (empty) → reproduced FAIL locally (anti-pattern #2 no-speculate):dotnet build SolutionErp.slnx -c Release→ error CS7036tests/SolutionErp.Infrastructure.Tests/Application/MasterCatalogFilteredUniqueTests.cs(63,25): "no argument given that corresponds to the required parameter 'ParentId' of CreateDepartmentCommand". Root cause: spec-change miss — commit addedParentIdas REQUIRED positional param but the gotcha#57 filtered-unique test line 63 still calls old 4-argnew CreateDepartmentCommand("DUP1","Phòng ban mới", null, null)(needs 5). grepnew CreateDepartmentCommand\(repo-wide = ONLY this 1 broken call site; UpdateDepartmentCommand has 0 test call site (compiles). Test gate runs BEFORE build/deploy → compile-fail in test proj ⟹ wholedotnet build slnx(incl tests) fails ⟹ deploy never ran. Prod CONFIRMED untouched @ baselinec98030f(Run #290): admin bundleDRob3iVl(FROZEN=baseline ✓ NOT rotated — picker NOT shipped) · userDxK3fCfh(FROZEN=baseline ✓ correct, fe-user untouched) · health api live+ready 200/200 + admin/eoffice root 200 · prod__EFMigrationsHistorytop =20260612173224_ReplaceBudgetModuleWithPeWorkItemBudgets(Mig 50) —AddDepartmentParentIdNOT applied ✓ (deploy didn't run, DbInitializer never fired). All 4 post-deploy KEY checks correctly N/A (no ship). ESCALATE em-main: fix = updateMasterCatalogFilteredUniqueTests.cs:63to pass 5th arg (e.g...., null, null, null)) — CLAUDE.md §7 "spec change = update test cũ + code chung commit" violated; re-push → re-verify deploy. READ-only, did NOT fix. LESSON: short-duration (~60s)failureon a BE/FE commit = test-gate or BE-build compile break, NOT deploy/transient — when anon API blocks logs,dotnet build SolutionErp.slnxlocally reproduces exact CS error + line; a record-constructor positional-param ADD silently breaks every un-updated call site (grepnew <Command>\(to enumerate). FAIL ⟹ deploy gated ⟹ verify prod = STILL baseline (bundles frozen + mig NOT applied) rather than skipping post-deploy entirely. Tag[s?, run291, FAIL, test-gate-compile-break, CS7036-CreateDepartmentCommand-5th-param, dept-parentid-tree, deploy-did-not-run, prod-unchanged-baseline, bundle-frozen-both, mig-not-applied, escalate-fix-test-line63]. -
2026-06-11 Run #382 (run_number 268) sha=
5998163PASS ~3m31s (S58 FIX the Run #381 lock NO-OP — DbInitializer.cs ONLY, BE-only, NO Mig/FE): Pushdd117b7..59981631 commit 1 fileDbInitializer.cs(+28/-5). Fix: (1)LockDemoSampleUsersAsyncunion +20 UAT-matrix prod email ({act,equ,fin,hra,pm,qs}.{nv,pp,tp}@+bod.{1,2}@) into prior 14 named-person = 34-email list; (2)DemoUserPassword11→12 chars (User@123456→User@1234567) fixing silent CreateAsync-fail vs prodRequiredLength=12(S56 helpdesk-inert root cause)..cspresent → full pipeline RAN. Poll iter5 status=success (started 12:58:06 → 13:01:37). Bundle FROZEN adminCP4CB1ym+ userBmZ3VHnm(= #381 UNCHANGED ✓ CORRECT for BE-only, verified AFTER status=success — NOT ship-fail). NO migration — prod__EFMigrationsHistorytop = Mig 49AddWorkItemToPurchaseEvaluation== repo, GIỮ NGUYÊN ✓. sys.tables=93 unchanged. Health live/ready 200 + admin/eoffice root 200. THE FIX VERIFIED prod (Users table — note: custom Identity table nameUsersNOTAspNetUsers): total 55 users · 21 active · 34 inactive==34 locked-future (== lock-list size exactly). 12-sample UAT-matrix allactive=0 locked=1(#381 NO-OP now RESOLVED — these exist in prod + got locked ✓). Named-person 14/14 found+locked (CREATED this startup via 12-char pw fix + locked same run). Must-stay-active 6/6 admin·catalog.manager·nv.test·chuong.phan@solution.com.vn(typo-domain)·nv.cao+nv.truong ALLactive=1(IT helpdesk pool ALIVE — S56 ops-pending RESOLVED by pw fix, created this startup not in lock-list). 5 new real staff (thanh.lethanh/anh.nguyen/tring.le/truong.le/long.nguyen) all CREATED+active=1✓ (12-char pw passes RequiredLength=12). Smoke nv.test login OK (token 477) + GET /api/menus 200 + /purchase-evaluations 200. 0 regression. LESSON: lock-by-email NO-OP (#381) was a DATA-mismatch not code-bug → S58 reconciled email-list to actual prod population (UAT-matrix created via admin UI, never in seed) + the 11-vs-12 pw bug was a SECOND latent cause silently blocking ALL non-existing-user CREATE on prod (RequiredLength=12) — same fix resurrected 16 named + 5 staff + helpdesk pool. Verify lock-fix = dump Users cohorts (active/inactive split + named exact-IN), NOT just total count. Tag[s58, run382, pass, fix-lock-noop, pw-11to12, be-only-bundle-frozen]. -
2026-06-11 Run #381 (run_number 267) sha=
dd117b7PASS+1PARTIAL ~4m25s (S57bis PE gắn WorkItem Mig 49 + all-role Pe perm + menu Cá nhân regroup + lock-14-demo-user — cross-stack BE+FE×2+Mig+test, +12 PeWorkItemGuardTests→240): 2-commit push: prev17b23a4(governance+hmw.js → Run #380 cancelled, superseded — correct, no FE/BE contract change) thendd117b7(PRODUCT, Run 381 = the deciding run). 26 files: Mig 4920260611044424_AddWorkItemToPurchaseEvaluation(3-file, PE.WorkItemId Guid? loose-Guid NO physical FK +IX_PurchaseEvaluations_WorkItemId) + DomainPurchaseEvaluation.cs+ Config + Features + DbInitializer (perm +LockDemoSampleUsersAsync+ menu regroup) + MenuKeys + 3 master controllers (write-lock Admin/CatMgr) + FE×2 (PeDetailTabs/PeHeaderForm/PeWorkspaceCreateView/menuKeys/types). Run IN-PROGRESS at first check (status=running 12:14) — polled to terminal (12:14:16→12:18:41 ≈4m25s success). ⚠️ poll-grep gotcha:"status"field sits AFTER"display_title"in tasks JSON →[^}]*"display_title"regex cut before status (showed blank all 10 iters); final FULL-object parse\{"id":381,...deploy.yml[^}]*\}confirmed status=success. Bundle ROTATE BOTH admin4SUwDLD8→CP4CB1ym+ userXdKzt9LL→BmZ3VHnm(PE in both apps ✓ shipped, verified AFTER status=success). Mig 49 applied prod (__EFMigrationsHistorytop = AddWorkItem... ✓ + WorkItemId col=1 + IX=1). sys.tables=93 (col-only, no delta). Health live/ready 200 + admin/eoffice 200. Perm seed STRONG: Pe_ CanCreate=1 = 130 rows across 13 roles* (was 3-role → all-role open landed); PeWf%=0 + AwV2%=2 (designer stays admin-only ✓ no leak). Menu regroup ✓: Personal root@30 · Off_ChamCong→Personal@1 · Hrm_Config→Master@25 (spec said keyHrmConfig, real key has underscoreHrm_Config— verify by ParentKey/Order NOT literal Key) · Contracts@31 · Hrm_Dashboard→Hrm@1. Smoke PE unauth 401 (/purchase-evaluations + /catalogs/work-items) vs control 404 (auth real). WorkItems VT/TP/MEP/TB=71. ⚠️ PARTIAL item 7 — lock-14-users is a prod NO-OP:LockDemoSampleUsersAsyncSHIPPED+RAN but its 14 hardcoded emails (bod.huynh@,pm.nguyen@,fin.do@,qs.hoang@...) DON'T EXIST in prod — real demo set uses dept.position schemebod.1@/bod.2@/pm.{nv,pp,tp}@/fin.{nv,pp,tp}@/qs.{nv,pp,tp}@(34 users ALL active, INACTIVE_TOTAL=0). Each FindByEmail→null→locked=0. Guardnv.cao/nv.truongalso absent (-1, vacuously safe); catalog.manager+admin confirmed active. NOT a deploy fail (code correct) — email list stale vs this DB seed. Escalated em main: reconcile lock-list to actual*.{nv,pp,tp}@scheme OR confirm named-person legacy users were ever seeded. LESSON: lock/deactivate-by-email assertion returning 0/-1⟹ ALWAYS dump actualUsersset before scoring FAIL — code may have run as no-op against mismatched data, NOT broken. Tag[s57bis, run381, pass-partial, mig49-pe-workitem, allrole-perm-130, lock-noop-email-mismatch]. -
2026-06-09 Run #379 (run_number 265) sha=
a20cde8PASS ~4m20s (S56 GOLIVE-HARDEN BE fixes — LeaveBalance concurrency + ItTicket authz-order + DocxRenderer null-guard + tests, ZERO FE/Mig): Pushbef5825..a20cde81 commit 13 files: 3 BELeaveOtApprovalFeatures.cs(atomic ExecuteUpdate + Serializable tx vs lost-update) +WorkflowAppsFeatures.cs(authz reorder Forbidden-before-NotFound) +DocxRenderer.cs(null-guard) + 4 test files (+12 → 216→228) + 6 agent-memory.md..cs+test present → NOT docs-skip, full pipeline RAN. Run IN-PROGRESS at first check (status=running 17:51) — correctly did NOT FAIL, polled to terminal (started 17:51:45 → updated 17:56:05 ≈4m20s status=success iter5). Bundle FROZEN admin4SUwDLD8+ userXdKzt9LL(= #378, UNCHANGED ✓ CORRECT for BE-only — NOT ship-fail, mirror Run #243/#368; verified pre-deploy + post-success + +5s re-confirm, NO transient, NO unexpected rotation). NO migration — prod__EFMigrationsHistorytop =20260609020759_AddProjectMasterFields(Mig 48) == repo latest, GIỮ NGUYÊN ✓ (BE-logic-only, schema untouched). sys.tables=93 unchanged. Health live+ready 200/200 + admin/eoffice root 200. Smoke changed-area endpoints (all gated, none crash):GET /it-tickets/assignable-staffunauth=401 ·PUT /it-tickets/{guid}/assignunauth+body=401 (authz-reorder fix live, route wired) ·GET /leave-balances/myunauth=401 (concurrency fix dll deployed) · control fake/it-tickets/zzz-not-a-route=404 (proves 401s are real auth gates not catch-all). 0 regression. Ship-proof for BE-only no-contract-change = run success + test 228 + Mig 48 unchanged + bundle frozen + health 200 (no observable API delta — fixes are internal handler logic: atomic tx / exception order / null-guard; cannot curl-assert lost-update fix, rely on +12 tests passing in CI gate). Tag[s56, run379, pass, golive-harden, be-only-bundle-frozen, no-mig]. -
2026-06-09 (S56 pre-golive verify — NO deploy, read-only audit): Re-verified prod truth at golive gate (HEAD
bef5825docs-only → prod correctly = Run #378). build SolutionErp.slnx 0-err + fe-admin/fe-user npm build 0-TS each + test 216 (58D+158I) exact. Prod health live+ready 200; admin root serves4SUwDLD8/ eofficeXdKzt9LL(== baseline, NO drift).__EFMigrationsHistorytop = Mig 48 == repo; 92 tables. Master-data prod spot: Projects=70 (62 real+8 demo), CAL01.Investor=N'Công ty TNHH Calofic' exact, WorkItems real=71 (VT16/TP30/MEP9/TB16) of 86, Suppliers 3/3. LESSON — local-vs-prod FE hash divergence is EXPECTED, not ship-fail: fresh localnpm buildproduces a DIFFERENT content-hash than CI-built prod artifact (node_modules/timestamp inputs not byte-reproducible) → load-bearing check isprod-hash == documented-baseline, NOT== my-local-rebuild. Don't false-alarm on local≠prod when HEAD unchanged. Tag [s56, pre-golive-verify, prod-truth-pass, local-vs-prod-hash-lesson]. -
2026-06-09 Run #378 (run_number 264) sha=
7feb53ePASS ~4m24s (S55 Phase-1 FE-Admin VISUAL redesign density-first design-system NAMGROUP-ref keep brand #1F7DC1 — FE-ADMIN-ONLY, ZERO BE/Mig/fe-user): Push84fa638..7feb53e1 commit 15 files: 13 fe-admin (index.cssdesign tokens + 6 ui primitives Button/Dialog/Input/Label/Select/Textarea + 6 shell DataTable/EmptyState/Layout/PageHeader/PhaseBadge/TopBar + DashboardPage) + 2 agent-memory.md(frontend-designer/reviewer). NO fe-user, NO.cs, NO Mig..tsx/.csspresent → NOT docs-skip, pipeline RAN. Run IN-PROGRESS at first check (status=running 11:51) — correctly did NOT FAIL, polled to terminal (started 11:51:06 → updated 11:55:30 ≈4m24s status=success; updated_at froze 11:55:30 across 3 poll iters = terminal signal before status field parsed). THE KEY PROOF — admin bundle ROTATEB-d6893W→4SUwDLD8(✓ redesign shipped, verified AFTER status=success; pre-success snapshot 11:51 still showed OLDB-d6893W= anti-pattern #3 timing confirmed AGAIN; re-confirm +3s post-success = stable4SUwDLD8, NO transient this run). fe-user bundle UNCHANGEDXdKzt9LL(= #377; untouched ✓ NOT ship-fail — correct, no fe-user file in commit). Admin root 200 text/html + serves<title>Solutions ERP · Admin</title>+<div id="root">(app loads ✓). NO migration — prod__EFMigrationsHistorytop =20260609020759_AddProjectMasterFields(Mig 48) == repo latest, GIỮ NGUYÊN ✓ (FE-only, BE/Domain untouched). Health live+ready 200/200 (both pre- and post-deploy). Test gate 216 (CI both proj pre-deploy ⟹ success=passed;tasksendpoint reports terminal asstatus:success,conclusionNOT populated — trust CI conclusion). 0 regression. LESSON (single-app FE redesign — asymmetric bundle verify): when ONLY fe-admin changes, the PASS criteria is asymmetric — admin hash MUST rotate (proof shipped) AND user hash MUST stay frozen (proof scope-correct, no accidental fe-user redeploy). User-unchanged is a POSITIVE signal here (mirror of BE-only Run #243/#368 where admin+user both stay frozen). Visual-only redesign (CSS tokens + className) rotates bundle exactly like logic change — Vite content-hash byte-sensitive. Status-grep gotcha: greedy.*?regex failed to isolate"status"field mid-poll → usegrep -oE '\\{"id":378,[^}]*\\}'to capture full object then sub-grep status. Tag[s55, run378, pass, fe-admin-only-redesign, asymmetric-bundle-verify, no-mig]. -
2026-06-09 Run #377 (run_number 263) sha=
69cb393PASS ~4m33s (S55 HMW-P4 real master-data seed from Excel + Project +4 cols Mig 48 — cross-stack BE+FE×2+Mig+seed): Pushf8640d6..69cb3931 commit 18 files: Mig 4820260609020759_AddProjectMasterFields(3-file) + DomainProject.cs(+Year/Investor/Location/Package nullable) +ProjectConfiguration.cs+ AppProjectFeatures.cs+DbInitializer.csNEWSeedRealMasterDataAsync(UNGATED, per-code idempotent) + FE×2master/ProjectsPage.tsx+types/master.ts+ 1 testMasterCatalogFilteredUniqueTests.cs+ 4 agent-memory .md..cs+.tsx+Mig present → full pipeline RAN. Run was IN-PROGRESS at first check (status=running 09:28) — correctly did NOT FAIL, polled to terminal (started 09:27:19 → updated 09:31:52 ≈4m33s status=success). ⚠️jqNOT in Bash-tool bash (env is bash not PS despite shell=PowerShell env-line) — parse JSON viagrep -oE '\"id\":377[^}]*'fallback; the working first call only usedhead -cnot jq. Bundle ROTATE adminDmjI8Cmn→B-d6893W+ userYxL_MljK→XdKzt9LL(BOTH changed ✓ FE shipped both apps, verified AFTER status=success; pre-success snapshot 09:28 still showed OLD DmjI8Cmn/YxL_MljK = anti-pattern #3 timing confirmed again; re-confirm +3s post-success = stable, no transient). Mig 48 applied prod (__EFMigrationsHistorytop =...AddProjectMasterFields✓ +COL_LENGTH('Projects','Investor')EXISTS). THE KEY CHECK — real master-data landed (4/4 spot PASS): Projects spot6 (APVN01/ZOTE01/CAL01/MIDEA01/SAM01/TLB01)=6 · WorkItems VT-/TP-/MEP-/TB-=71 · Suppliers (TRUONGGIANG/TANPHU/TGN)=3 ·CAL01.Investor=EXACT match N'Công ty TNHH Calofic' (console showedC<EFBFBD>ng= sqlcmd codepage mangle ofô, NOT data corruption — confirmed viaWHERE Investor=N'...'EXACT). Totals: Projects=70 (62 real + 8 demo coexist ✓ ungated seed idempotent), WorkItems=86, 5 Projects carry Investor / 23 carry Year (Excel sparse-fill, only some rows enriched — expected). Health live+ready 200/200.GET /api/projectsunauth=401 (route wired, auth gates ✓). 0 regression. LESSON (ungated prod seed verify = count spot-checks NOT schema):SeedRealMasterDataAsyncruns unconditionally on every prod startup (NOT insideif(!demoSeedDisabled)— correct per gotcha #51 INFRASTRUCTURE-seed rule); verify = sqlcmd COUNT spot-checks of real Codes + N-literal EXACT match for unicode fields (console codepage will mangle Vietnamese diacritics → always re-assert via=N'...', never trust raw sqlcmd console render). Tag[s55, run377, pass, mig48-master-fields, real-seed-ungated, sqlcmd-codepage-lesson]. -
2026-06-08 Run #376 (run_number 262) sha=
ca4b602PASS ~4m18s (S54 IT-staff self-reassign ticket — authz Admin-OR-IT + scoped capability endpoint, cross-stack, NO migration): Push18d397f..ca4b6021 commit 13 files: BEWorkflowAppsFeatures.cs(NEWGetAssignableItStaffQuerycapability +AssignItTicketHandlerauthz Admin-OR-IT) +ItTicketsController.cs(NEWGET /it-tickets/assignable-staff+/assignLOWERED Authorize-Roles) + FE×2ItTicketsPage.tsx(SHA256-identical) +workflowApps.ts×2 (+2 type) +ItTicketReassignAuthzTests.cs(+13 → 203→216) + 6 agent-memory.md..cs+.tsxpresent → NOT docs-skip, full pipeline RAN. Poll iter5 status=success (started 16:12:23 → updated 16:16:41 ≈4m18s). Bundle ROTATE adminDfCfHUE9→DmjI8Cmn+ user_3S0BPJ2→YxL_MljK(BOTH changed ✓ FE shipped, verified AFTER status=success; pre-deploy iter0 still showed OLD DfCfHUE9/_3S0BPJ2 — correct timing anti-pattern #3). NO migration — prod__EFMigrationsHistorytop =...FilterMasterCatalogUniqueIndexesByIsDeleted(Mig 47) == repo latest, GIỮ NGUYÊN ✓ (DepartmentId reuse). sys.tables=93 stable (no new table). Test gate 216 (CI both proj pre-deploy ⟹ success=passed; grep undercounts InlineData — trust CI). Health live+ready 200 + admin/eoffice root 200. Smoke NEW endpoint:GET /api/it-tickets/assignable-staffunauth=401 (route wired, [Authorize] gates) ·PUT /api/it-tickets/{guid}/assignunauth bare=411 then WITH body-d '{}'=401 (IIS demands Content-Length before auth eval; 411 is pre-auth Length-check NOT routing-miss) · control fake route/it-tickets/zzz=404 (proves 401s are real auth gates not catch-all). 0 regression. LESSON (411 vs 401 on bodyless PUT/POST): unauth bodyless PUT/POST to a JSON-body endpoint returns 411 Length Required from IIS BEFORE the [Authorize] filter runs — NOT a 404/route-miss. Re-send with-d '{}'to force auth eval → real 401. Consistent w/ Run #367PUT /adjust=411+ #364POST /approve=411(same pattern, now explained). Tag[s54, run376, pass, it-reassign-authz, no-mig, 411-precheck-lesson]. -
2026-06-08 Run #371 (run_number 257) sha=
30a99aaPASS ~4m18s (S50 HMW-Wave2 P11-C Vehicle+Driver catalogs Mig 44 + gotcha #57 filtered-unique 3 HRM catalog Mig 45 — BE+FE×2+2Mig+tests): Pushf8179c5..30a99aa1 commit 28 files: BE DomainVehicle.cs/Driver.cs+ AppHrmConfigFeatures.cs+IApplicationDbContext +HrmConfigsController+ 5 Config (Driver/Vehicle/LeaveType/OtPolicy/ShiftPattern) + DbContext + DbInitializer + MenuKeys + Mig44/45 (6 files) + FE×2 (HrmConfigsPage/Layout/menuKeys/hrm-config.ts) +HrmConfigFilteredUniqueTests.cs(+5 test → 181→186). All BE/FE/Mig, none in paths-ignore → CI ran. Poll iter3 status=success (started 10:32:58 → 10:37:16). Bundle ROTATE adminDPPTx2Kw→Cg9mvltU+ userCjoUEsoV→YgqDvsqr(BOTH changed ✓ FE shipped, verified AFTER status=success). NEW LESSON (timing trap): pre-success snapshot showed transientCVbyotwa/BBlyMlJH(intermediate FE copy mid-deploy, NOT final) → re-verify post-success gave realCg9mvltU/YgqDvsqr. Confirms anti-pattern #3 + Run #242 lesson: NEVER trust bundle hash until status=success; mid-deploy can show a 3rd transient hash. Mig 44+45 auto-applied prod (__EFMigrationsHistorytop2 = FilterHrmCatalog... + AddVehicleAndDriver...). Vehicles+Drivers tables EXIST; sys.tables=92 (was 90 +2, narrative-93 = convention diff, NOT missing). gotcha #57 LIVE — all 5 idx filtered: IX_{Vehicles,Drivers,LeaveTypes,ShiftPatterns,OtPolicies}_Code ALLis_unique=1 filter=([IsDeleted]=(0))(3 HRM ones LeaveType/Shift/OtPolicy were NULL pre-Mig45 → now filtered = proof applied). Health live+ready 200 + admin/eoffice index 200. New endpointGET /api/hrm-configs/{vehicles,drivers}unauth=401 (route wired, no crash) + admin auth=200 seed 2/catalog (vehicles XE-01/XE-02, drivers TX-01/TX-02 ✓ DbInitializer infra seed ran). 0 regression. Tag[s50, run371, pass, p11c-vehicle-driver, mig44-45, gotcha57-filtered-5idx]. -
2026-06-03 Run #369 (run_number 255) sha=
350b2bfPASS ~4m13s (S48 FE-only login subtitle a11ytext-slate-500→600, ZERO BE/Mig): Push range7bbfa5a..350b2bf2 commits:009dd94DOCS/GOVERNANCE-only (9 files: STATUS/HANDOFF + 3 adap-reports + error-ledger + session-log + frontend-designer MEMORY + session-end.md cmd — ALL.md/.claude/**) +350b2bfCODE 2 filesfe-{admin,user}/src/pages/LoginPage.tsx(1-line each, slate-500→600 subtitle contrast). Mixed push:.tsxpresent → NOT path-filter skipped, full pipeline RAN (gotcha #41 Discovery #3 — ≥1 non-ignored file in range ⟹ whole range builds; docs commit alone would skip but.tsxoverrides). Poll iter5 status=success (started 00:06:33 → 00:10:46). Bundle ROTATE adminKrjvg_3j→DPPTx2Kw+ user6sNStgxa→CjoUEsoV(BOTH changed ✓ FE shipped — verified AFTER status=success; pre-deploy snapshot iter0 still showed OLDKrjvg_3j/6sNStgxa, correct timing per anti-pattern #3). NO migration — repo 43 == prod__EFMigrationsHistory43, latest both...FilterHolidayUniqueIndexByIsDeleted(Mig 43 unchanged, BE/Domain untouched ✓). Health live+ready 200 + admin/eoffice index 200. Test gate 181 (CI both proj pre-deploy ⟹ success=passed). 0 regression. NEW LESSON: smallest possible FE change (1-line className) still rotates bundle hash — Vite content-hash sensitive to any source byte; mixed docs+tsx push is the canonical case where docs-only-skip does NOT apply. Tag[s48, run369, pass, fe-only-a11y, mixed-push-not-skipped]. -
2026-06-01 Run #368 (run_number 254) sha=
0c5a014PASS ~4m20s (S45 Mig 43 filter Holiday UNIQUE by IsDeleted + 3 HRM test gaps — BE+tests ONLY, ZERO FE): Push rangedbbed15..0c5a0142 commits:051b62bTests +27 (HrmConfigHolidayTests + EmployeeSatelliteTests + AuthorizePolicyRegressionTests-ext → baseline 154→181) +0c5a014Mig 4320260601064128_FilterHolidayUniqueIndexByIsDeleted(drops+recreatesIX_Holidays_Year_Dateas filtered UNIQUEWHERE [IsDeleted]=0, was unfiltered) + HolidayConfiguration.cs edit + Case-7 test flip. 7 files, all BE+tests, none in paths-ignore → CI ran. Poll iter4 status=success (started 13:43:47 → 13:48:07). Bundle hashes UNCHANGED adminKrjvg_3j+ user6sNStgxa(= #367) — CORRECT for BE-only push, NOT ship-fail (Run #243 precedent; ship-proof = Mig 43 applied, not bundle rotate). Mig 43 auto-applied prod (history top =...FilterHolidayUniqueIndexByIsDeleted✓). THE FIX VERIFIED prod:IX_Holidays_Year_Date | unique=1 | filter=([IsDeleted]=(0))— filter_definition non-NULL = filtered UNIQUE live (soft-deleted holidays no longer collide on UNIQUE). Health live+ready 200 Healthy.Holidaystable exists, 10 rows, 2 named idx (PK + filtered UNIQUE). Prod tables=90-by-sys.tables (index-only change, NO new table — consistent #364 delta). NEW LESSON: filtered-index migration verify = checksys.indexes.filter_definitionnon-NULL (NOT just mig-history row); index-only mig = bundle unchanged + table-count unchanged both EXPECTED. Tag[s45, run368, pass, mig43-filtered-index, be-only-bundle-unchanged]. -
2026-05-30 Run #367 (run_number 253) sha=
82d7fcfPASS ~4m08s (S42 P11-B LeaveBalance business logic, Mig 42): Code commit 22 files (4 BE: DomainLeaveBalance.cs+ AppLeaveBalanceFeatures.cs/LeaveOtApprovalFeaturesdeduction hook +LeaveBalancesController+ IApplicationDbContext + DbContext + Config + Mig42 3-file + 2 FEWorkflowAppDetailPage×2 +workflowApps.ts×2 + 2 tests + 4 agent-memory .md). Started 11:11:40 → success iter4 11:15:48. Bundle rotate adminBU8FTBRi→Krjvg_3j+ usertepE4jvR→6sNStgxa(both changed ✓ FE shipped, verified AFTER status=success — pre-deploy snapshot still showed old hash, correct timing). Mig 4220260530034336_AddLeaveBalancesauto-applied prod (tables 90→91,LeaveBalancesEXISTS). Schema ✓: UserId/LeaveTypeId/Year/EntitledDays/UsedDays/AdjustmentDays decimal + AuditableEntity soft-delete. UNIQUEIX_LeaveBalances_UserId_LeaveTypeId_Year+ FK→LeaveTypes del=NO_ACTION (=Restrict) ✓. New endpoint smoke:GET /api/leave-balances/myunauth=401 (route live not 404) + admin auth=200 lazy-default 5 LeaveTypes (ANNUAL12/COMPASSIONATE3/MATERNITY180/SICK30/UNPAID0, all Used=0,remainingDays=entitled ✓ DTO shape has remainingDays/entitledDays) +?year=2026admin route 401 unauth +PUT /adjust=411 (route reg). health live/ready 200 Healthy. NO seed gate concern (plain table, lazy DTO — Stage 4.6 N/A). 0 regression. Note: prev run #366 (ffb2062docs STATUS update) was a CODE-path push w/ status=success — NOT docs-only-skipped (commit touched only .md but Gitea still ran since prior range?); actually #366 display_title is Docs but ran full → confirms agent-memory .md NOT in paths-ignore (.claude/skills/**ignored,.claude/agent-memory/**NOT). Tag[s42, run367, pass, p11b-leavebalance, mig42]. -
2026-05-30 Run #365 sha=
75df04ePASS ~4m05s (S42 P11-A fix workflow picker 2-bug + SetWorkflow endpoint, NO mig): 11 files BE+FE×2+test. Bundle rotate adminBLA09-qv→6D4k-aRi+ userCXvejOE-→DkME-974. +4PUT /api/{leave,ot,travel,vehicle-bookings}/{id}/workflowunauth=401. Test 144. NAMING RECONCILE: use real Gitea task id (#364=e7b66cd mem-labeled "#250"). Tag[s42, run365, pass, p11a-setworkflow]. -
2026-05-30 Run #364 (mem #250) sha=
e7b66cdPASS ~4m07s (S42 P11-A wire ApproveV2+LevelOpinions 4 WorkflowApps): 1 commit BE+FE×2+Mig41+Tests. Status=success iter3. Bundle rotate admincWAXid0q→BLA09-qv+ userCX79e2kZ→CXvejOE-. Mig 41 auto-applied prod (latest=20260530021936_WireWorkflowAppsApprovalV2). Tables 84→90 (+5: Leave/Ot/Travel/VehicleRequest LevelOpinions + WorkflowAppCodeSequences — ALL EXIST). 4 new endpoint smoke 200 auth (leave/ot/travel/vehicle-requests) + unauth 401 (route exists) + POST .../approve=411 (route reg). health live/ready 200. Stage 4.6 seed gate PASS (gotcha #51): 4 WF seeded prod despite DemoSeed:Disabled — QT-NP/OT/CT/XE-V2-001 AppType=5/6/7/9, verified call-site L142-145 OUTSIDEif(!demoSeedDisabled)gate. Test gate 141 (CI runs both proj pre-deploy). Note: table count 90 vs spec-expected 89 = baseline-count diff, NOT missing table (all 5 present). Stale doc drift deploy.yml comments "54/17 test" (cosmetic, flag em main). Tag[s42, run250, pass, p11a-approvev2-workflowapps]. -
2026-05-28 Run #247 sha=
e54a22dPASS 3m25s (S38 SKELETON 5-plan combo Mig 39+40 dual): Push 1 commit megaDomain+App+Infra+Api+FE×2. ALL PASS. Bundle rotate adminCGueDk22→cWAXid0q+ userCEt0QRgX→CX79e2kZ. Mig 39+40 dual auto-applied startup (90830→90839). 6 endpoint smoke 200 (leave/ot/travel/vehicle/it-tickets/hr-dashboardtotalEmployees=33 male=17 female=16). 6 new tables + 8 menu seeded. 0 regression. Fastest S38 deploy. Tag[s38, run247, pass, skeleton-combo]. -
Archived Run #246 (S37 Proposal Mig 37+38 —
/api/proposals200 + QT-DX-V2-001 AppType=4 seed + Stage 4.6 INFRASTRUCTURE-gated correct gotcha #51) + #359/#243/#242/#241/#240 + S35/S36 startup →archive/2026-05-q4.md+ gitd2f52ba(S40 curate): Run #359 G-O2 Meeting Mig 36 · #243 HrmConfig BE 16 endpoint (BE-only bundle unchanged anti-pattern verify) · #242 FE inline forms 5 satellite · #241 Mig 35 HRM foundation · #240 satellite CRUD. Discovery #7 path-filter eval/** + #8 collectionproj_*. KEY absorbed in essentials/Stage sections above. -
[⚠️ VỊ TRÍ LẠC — entry MỚI 2026-06-11, thuộc FIFO slot giữa #384/#382 phía trên nhưng ghi lạc vào khu archive-zone này; curate-L2 ĐỪNG archive nhầm (H2 S58 P2 flagged); relocate khi curate] 2026-06-11 Run #383 (run_number 269) sha=
6c5fd26PASS ~4m25s (S58b TẠM ẨN HRM/Văn phòng số/Cá nhân khỏi non-Admin + Danh mục xuống cuối — BE-only seed, NO Mig/FE): Push2aefb31..6c5fd261 fileDbInitializer.cs(+61/-5): NEWRevokeTemporarilyHiddenModulesAsync(set 4 CRUD=false MỌI role TRỪ Admin trênHrm%+Off%+Personal, idempotent, KHÔNG xóa row) +SeedAllRolesReviewReadPermissionsAsyncscope THU HẸP còn Master/Catalogs/Pe_* + menuMasterOrder 20→80..cspresent → full pipeline RAN. Run IN-PROGRESS at first check (status=running 13:36) — correctly did NOT FAIL, polled to terminal (started 13:36:15 → success 13:40:40 iter5). Bundle FROZEN adminCP4CB1ym+ userBmZ3VHnm(= Run #382 UNCHANGED ✓ CORRECT BE-only — verified AFTER status=success, NOT ship-fail). NO Mig — prod__EFMigrationsHistorytop = Mig 49AddWorkItemToPurchaseEvaluation== repo, GIỮ NGUYÊN ✓. Health live/ready 200 + admin/eoffice root 200. 6 prod sqlcmd ALL PASS exact (DB SolutionErp, custom tablesMenuItems/Permissions/Roles): MasterOrder=80 ✓ · HiddenReadNonAdmin=0 ✓ (revoke landed,Hrm%+Off%+Personalall CRUD=false non-Admin) · HiddenReadAdmin=29 (>0, Dev est 28, Admin GIỮ ✓) · PeCreateNonAdmin=120 (Pe_* untouched ✓) · MasterReadNonAdmin=48 (Master still visible ✓). Menu-tree smoke (gotcha #44 dual-role): nv.test/api/menus/me200 → keys = Master/Suppliers/Projects/Departments + Catalogs/Catalog* + all Pe_DuyetNcc*/Pe_DuyetNccPhuongAn* — ZERO Hrm/Hrm_/Off/Off_/Personal ✓; admin counter-check VẪN CÒN Hrm/Hrm_Config*/Off/Off_*/Personal + Contracts/Budgets/System ✓ (revoke scoped non-Admin only). 0 regression. LESSON (seed-only permission-revoke verify = sqlcmd matrix + dual-role menu-tree, NOT bundle/endpoint): RevokeTemporarilyHiddenModulesAsync runs UNCONDITIONALLY on startup (NOT gated — correct, it's a permission-correction not demo-seed); verify = COUNT(CanRead non-Admin)=0 for revoked-prefix + COUNT Admin>0 (kept) + COUNT untouched-scope (Pe/Master) unchanged +/api/menus/mekey-set diff between regular-user (modules gone) and admin (modules present). FE has NO PermissionGuard per-route (commit note) → direct-URL still renders trang, mức "tạm ẩn" = menu hide + permission matrix only; acceptable pre-golive. Tag[s58b, run383, pass, revoke-hidden-modules, master-order-80, be-only-bundle-frozen, no-mig, dual-role-menutree]. -
Archived Run #232 (S29 gotcha #51 catch — SeedSampleContractWorkflowV2 nested in demoSeedDisabled → empty V2 dropdown, hoist fix) →
archive/2026-05-q4.md+ git. Smart Friend ROI 4× cumulative (S22 #44 + S25 #48 + S29 ApplicableType + S29 DemoSeed).