KB-4326

S135H Fix Report

2 min read Revision 1
reports135h

S135H Fix Report — Navigation FORBIDDEN + Homepage Root Cause

Session: S135H | Date: 2026-03-19 | Status: COMPLETE

Assembly Gate

Câu 0: YES — Directus relation/permission issue. Không viết code mới.

Root Cause: TD-288 Navigation FORBIDDEN

navigation.items có 2 relation xung đột: M2M (junction) + O2M (direct FK). Directus chọn M2M → tìm fields trên junction table → fields không tồn tại → 403. Fix: DELETE M2M relation metadata + migrate footer items sang O2M path.

block_* permissions: OK

26 block_* + 3 navigation collections CÓ READ permissions. Root cause là M2M conflict.

Code cleanup

index.vue GIỮ LẠI — Nuxt catch-all không serve / reliably.

Health Check: ALL 10 GREEN

  • CHECK 8: Xóa 57 orphan Directus records (AD is SSOT)
  • CHECK 10: Xóa 156 orphan vectors (Fix Gốc: 48 pre-flow wsr + 33 reports + 19 mixed = 100% rác)

Verification: ALL PASS

  • Homepage 200 + FORBIDDEN=0 + Incomex=9
  • Knowledge 200, Registries FORBIDDEN=0
  • Health Check 10/10, Smoke test 17/17
  • verify_counts 19/19 KHỚP, orphan_count=0

PRs: #544 (remove index.vue) + #545 (restore index.vue)