GPT Review — File 14 rev3 Description Policy Write Path Corrected
GPT Review — File 14 rev3 Description Policy Write Path Corrected
Date: 2026-05-04 Reviewer: GPT-5.5 Thinking / Incomex Hội đồng AI Reviewed:
knowledge/dev/laws/dieu44-trien-khai/design/14-description-policy-endpoint-and-execution-design-pack.mdrev 3
Verdict
PASS — conceptual correction accepted. Still no runtime execution approval.
File 14 rev3 now correctly states the deployed description write path:
- Source entity
descriptioncolumns exist and are the current place to write descriptions. - Gemini/Agent enrichment has used Directus REST API to write descriptions directly to source entities.
- Provenance can move from PROV-DOT to PROV-AI.
entity_enrichmentis a planned master/mirror upgrade, not the current deployed write path.description_policyis a routing/enforcement layer, not a content store.
This resolves User's concern.
What is now correct
The model is now four-layered and accurate:
- Current deployed direct source-entity description write path.
- Future planned
entity_enrichmentmaster/mirror system, currently absent. description_policyas routing/enforcement policy.- IU structured-exempt rows using structured metadata instead of per-row free-text description.
Law / Constitution check
No blocker conflict in the design direction.
- Đ3: source-entity description and enrichment guide remain valid today; future §2.7 enrichment master is recognized separately.
- Đ4: birth guard behavior remains a design target, not changed yet.
- Đ43/H11: policy filtering is still needed before Pack 2B.
- Đ35/Đ36: no DOT/runtime mutation yet.
- Đ44: Pack 2B remains closed.
- Điều 20/NT15: design-before-execution respected.
Decision on option direction
GPT accepts Option 1 as the preferred policy endpoint direction, not yet as execution approval:
collection_registry.description_policyfor policy/routing.- Current direct write path remains source entity
descriptioncolumns. - Future
entity_enrichmentmaster remains separate and can consumedescription_policylater.
Option 3 (dot_config JSON) remains a fallback if User rejects DDL, but it is not preferred.
Important caution before execution
File 14 rev3 is still a design pack, not an execution prompt. Before any runtime change, Opus must create a concrete execution pack that includes exact SQL, rollback, smoke tests, law/doc patch plan, and STOP conditions.
Directive to Opus/Ocus
Prepare one consolidated execution design pack, not runtime execution:
knowledge/dev/laws/dieu44-trien-khai/design/15-description-policy-option1-execution-pack.md
Purpose: turn file 14 rev3 into an exact, reviewable implementation pack for Option 1. Do not execute.
Required contents:
-
Inputs and controlling docs:
- file 14 rev3;
- agent investigation report;
- entity_enrichment preflight report;
- Đ3/Đ4/Đ43/H11 docs;
- description-enrichment-guide.
-
Final scope:
- add policy field to
collection_registry; - seed policy values;
- amend
fn_description_birth_guardspec; - amend H11a/H11b query specs;
- guide/law wording drafts;
- no Pack 2B/IU rows.
- add policy field to
-
Exact DDL proposal:
ALTER TABLE collection_registry ADD COLUMN description_policy ...;- CHECK constraint;
- Directus field registration method must use legal DOT/tool if one exists, or STOP if unclear.
-
Seed table:
- required_detailed collections;
- structured_exempt collections;
- unclassified default;
- include rationale per group;
- verify that listed collections exist before update.
-
Function amendment spec:
- exact
pg_get_functiondefcurrent-source capture step; - exact intended diff/pseudocode;
- Tier B early return only for
structured_exempt; - behavior for
required_detailedunchanged; - behavior for
unclassifiedmust be explicit. Suggested: do not exempt; warn/discover, not silently pass.
- exact
-
H11 amendment spec:
- H11a filters required_detailed only OR handles unclassified separately;
- H11b behavior after policy;
- baseline before/after comparison.
-
Current write path compatibility:
- Gemini/Agent direct source-entity updates remain valid;
- description_policy only affects routing/health/birth guard;
- no claim that enrichment master is deployed.
-
Entity Enrichment Master compatibility:
- future
entity_enrichmentcan consumedescription_policy; - no deploy of entity_enrichment in this pack.
- future
-
Smoke tests:
- DDL column visible;
- seed counts;
- H11 baseline before/after;
- insert/update behavior for Tier A/Tier B test cases, with rollback/cleanup;
- verify no IU rows created.
-
Rollback/compensation:
- revert function;
- revert H11 query docs;
- drop column if needed;
- rollback Directus field registration if added;
- preserve audit trail.
- STOP conditions:
- existing
description_policycolumn already exists with incompatible semantics; - Directus registration mechanism unclear;
- function source differs from expected;
- H11 executor differs from KB query docs;
- any write path requires raw SQL where DOT/legal tool exists;
- unexpected IU rows or Pack 2B activity.
- Decision request:
- User/GPT approve execution pack or revise;
- do not dispatch Claude Code until approved.
Hard boundaries
- Do not execute DDL.
- Do not patch laws/docs yet.
- Do not edit function/trigger.
- Do not create IU rows.
- Do not open Pack 2B.
- Do not deploy entity_enrichment.
Next after file 15
GPT/User review file 15. If approved, then and only then prepare a Claude Code execution prompt.