S186 GPT Context Reset — Điều 38 Information Unit First
S186 GPT Context Reset — Điều 38 Information Unit First
Date: 2026-04-28
Correction / Re-anchor
The current work is not primarily an agent-permission project. It is the production implementation path for Điều 38 Text as Code, specifically the doctrine that miếng thông tin / information unit is the center.
TAC / Gate A/B/C / G8/G11 are implementation gates for the broader goal: SQL-izing formerly NoSQL/text-only knowledge into PostgreSQL-governed units, metadata, components, BOM, publications, review/change-set, and traceability.
Core problem being solved
Previous KB approach stored large text documents. As information grew and edits became complex, details could no longer connect reliably because they remained plain text. Điều 38 is prioritized to move from document-centric KB to PG-governed information units.
Correct overall goal
Build a PostgreSQL-first Text-as-Code substrate where every governance/knowledge object can be decomposed into managed units:
- text units / information units;
- segmentation rules;
- metadata profiles;
- component catalog;
- BOM / publication assembly;
- lifecycle vocab/config;
- review and change-set approval;
- checker/DOT validation;
- Directus surface and role-governed access.
Documents re-read / re-anchored
knowledge/dev/laws/dieu38-trien-khai/HOW-TO-READ.mdknowledge/dev/laws/dieu38-trien-khai/LSL-01-information-unit-first.mdknowledge/dev/laws/luat-sua-luat/LSL-01-v0.4-patch-note.mdknowledge/dev/laws/luat-sua-luat/OR-kieu-c-doctrine-amendment-note.mdknowledge/dev/laws/dieu38-appendix-01-objectives.mdknowledge/dev/laws/dieu38-trien-khai/C1-text-unit-operating-model.mdknowledge/dev/laws/dieu38-trien-khai/C1A-segmentation-operating-model.mdknowledge/dev/laws/dieu38-trien-khai/C2-metadata-governance-operating-model.mdknowledge/dev/laws/dieu38-trien-khai/C3-component-bom-operating-model.mdknowledge/dev/laws/dieu38-trien-khai/P5-schema-draft-v0-2.mdknowledge/dev/laws/dieu38-trien-khai/P5b-component-bom-schema-draft-v0-2.mdknowledge/dev/laws/dieu38-trien-khai/P6-checker-dot-design-v0-2.mdknowledge/dev/laws/dieu38-trien-khai/P8-implementation-design-plan-v0-1.mdknowledge/dev/laws/dieu38-trien-khai/P9-production-ddl-collection-gate-design.mdknowledge/dev/laws/dieu38-trien-khai/index.md
Working mental model
Large KB document = old monolith.
Điều 38 target = split monolith into atoms and assemblies:
- Atom: text/information unit.
- Identity and birth: unit/component born through Birth Gate.
- Shape: segmentation and metadata profile.
- Assembly: component + BOM + publication.
- Change: unit-level review + change-set approval.
- Control: checker/DOT rules validate invariants.
- Warehouse: PostgreSQL is SSOT; Directus is gateway/surface.
- Operations: production gates deploy schema, collections, seed, roles, and approvals.
Current status remains
Production Gate A DDL is PASS, but DROP guard repair is/was in-flight. Gate B/C/G8B/G11 remain blocked until repair PASS review.
Guardrail for future GPT responses
When discussing S186/P9, avoid reducing the work to "agent control". Always frame it as Điều 38 Text-as-Code implementation for SQL-governed information units, where agent/TAC gates are the operational deployment path.