KB-3E29 rev 3

IU-0 Pilot Round 1 — READ-ONLY Execution Prompt

6 min read Revision 3
iu-0pilotround-1execution-promptreadonlysimulations191

IU-0 Pilot Round 1 — READ-ONLY Execution Prompt

Trạng thái: PROMPT TEMPLATE — chưa dispatch, chờ User/GPT approve Phiên: S191 (2026-05-03) Parent: 08-iu0-pilot-planning-pack.md Gate: G-Pilot-1 PASS (GPT confirmed 08c) Input: 08a rev 2 (candidate slices) + 08b rev 1 (walkthrough scenarios)


1. Mục đích prompt

Prompt này dành cho Agent (Codex/CLI) chạy READ-ONLY simulation trên 2 scenario từ 08b. Agent chỉ đọc KB, ước lượng metrics, và upload report. Agent KHÔNG tạo dữ liệu mới, KHÔNG sửa file hiện có.


2. Hard boundaries — Agent PHẢI tuân thủ

# CẤM Lý do
HB-1 KHÔNG tạo IU row, unit_version, edge, profile JSONB Chưa có IU table, chưa mở P44-6
HB-2 KHÔNG tạo Qdrant collection mới VG-1..9 + GR-9
HB-3 KHÔNG tạo outbox job Outbox chưa tồn tại
HB-4 KHÔNG viết DDL/code/migration/trigger GR-2
HB-5 KHÔNG sửa 07/07b/07c/08/08a/08b/08c GR-4 + scope
HB-6 KHÔNG sửa P38-XC (04) hoặc bất kỳ design doc nào GR-4
HB-7 KHÔNG đụng production_documents GR-5 + VG-1
HB-8 KHÔNG dispatch sub-agent Scope = 1 prompt
HB-9 KHÔNG mở P44-6 GR-3

Ngoại lệ ghi duy nhất được phép: tạo mới đúng 1 report tại path output đã chỉ định (§4); không sửa bất kỳ tài liệu hiện có nào.

Vi phạm bất kỳ HB nào = STOP ngay, không tiếp tục.


3. Prompt cho Agent

# IU-0 Pilot Round 1 — READ-ONLY Simulation

## Vai trò
Bạn là Agent thực hiện READ-ONLY simulation cho IU-0 pilot round 1.
Bạn CHỈ ĐƯỢC ĐỌC tài liệu từ KB. KHÔNG tạo/sửa/xoá bất cứ gì, ngoại lệ ghi duy nhất: tạo mới đúng 1 report tại path output đã chỉ định; không sửa bất kỳ tài liệu hiện có nào.

## Input files (đọc từ KB)
1. knowledge/dev/laws/dieu44-trien-khai/design/07-iu0-index-and-core.md
2. knowledge/dev/laws/dieu44-trien-khai/design/04-information-unit-profile-schema.md
3. knowledge/dev/laws/dieu44-trien-khai/design/08a-iu0-pilot-round1-candidate-slices.md
4. knowledge/dev/laws/dieu44-trien-khai/design/08b-iu0-pilot-round1-walkthrough-pack.md

## Nhiệm vụ

### Task 1: Verify candidate slice boundaries
Đọc IU-0 07 và P38-XC 04 thực tế. Với mỗi candidate slice từ 08a:
- Đếm chars thực tế của section.
- So sánh với ước lượng trong 08a.
- Flag sections >4000 chars (split candidate).
- Flag sections <300 chars (merge candidate).
- Ghi bảng: canonical_address | chars thực tế | chars ước lượng | delta | recommendation

### Task 2: Simulate Scenario A (simple edit)
Đọc slice `IU-0.§2` từ file 07.
- Đếm chars thực tế.
- Tính tokens ước lượng (chars / 4).
- So sánh với full file tokens.
- Ghi: read tokens, edit tokens (estimated), savings %.
- Verify MUP 15 elements có thể fill từ content hiện tại (Y/N per element).

### Task 3: Simulate Scenario B (cross-ref edit)
Đọc slice `P38-XC.§5` từ file 04.
Đọc slice `IU-0.§3` từ file 07 (cross-ref read-only).
- Đếm chars thực tế mỗi slice.
- Tính tokens.
- So sánh với full file tokens (P38-XC + IU-0).
- Ghi savings.
- Verify cross-ref: IU-0 §3 invariants list có match P38-XC §5 invariants?
- Flag bất kỳ inconsistency nào.

### Task 4: MUP placeholder validation
Với 2 representative slices (IU-0.§2, P38-XC.§5):
- Kiểm 15 elements từ 08a checklist.
- Ghi Y/N: element có thể fill từ content hiện tại hay cần data chưa tồn tại.
- Ghi observation nếu element cần giả định (vd unit_kind = design_doc_section chưa chốt APR).

## Output
Upload 1 report vào:
knowledge/dev/laws/dieu44-trien-khai/reports/iu0-pilot-round1-readonly-simulation-report.md

Report gồm:
- Task 1: Slice boundary verification table
- Task 2: Scenario A metrics
- Task 3: Scenario B metrics + cross-ref consistency
- Task 4: MUP validation table
- Summary: H1-H4 hypothesis preliminary verdict
- Observations / risks discovered

## HARD STOP
Sau khi upload report: DỪNG. Không execute pilot thật. Không tạo unit/table/collection.
Không sửa bất kỳ file nào ngoài report mới.
Report path phải nằm trong reports/ (KHÔNG phải design/).

4. Expected output

Item Path
Simulation report knowledge/dev/laws/dieu44-trien-khai/reports/iu0-pilot-round1-readonly-simulation-report.md

Report chứa: boundary verification, 2 scenario metrics, MUP validation, H1-H4 preliminary verdict, observations.


5. Post-report flow

Step Action Ai
1 Agent upload report Agent (Codex/CLI)
2 Opus review report Opus
3 GPT review report GPT
4 User approve/reject User
5 Nếu approve → G-Pilot-2 scope decision User/GPT

Agent KHÔNG tự mở G-Pilot-2. Report là output cuối cùng của prompt này.


6. Checklist trước dispatch

# Check
1 G-Pilot-1 confirmed PASS (GPT)
2 User approve dispatch prompt
3 Agent có read access KB
4 Agent có write access reports/
5 HB-1..9 embedded trong prompt

Chưa dispatch. Chờ User/GPT approve checklist §6.


READ-ONLY Execution Prompt | S191 | Gate: G-Pilot-1 PASS | Chờ User/GPT approve dispatch

Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/design/08d-iu0-pilot-round1-readonly-execution-prompt.md