Matlamat / Goal
Audit folder outputs anda dengan senarai semak ISO/CMMI-lite, bangkitkan CAPA bagi ketidakpatuhan dan draf Laporan Ringkasan Ujian D14/D16 dengan cadangan keluaran.
Audit your outputs folder against the ISO/CMMI-lite checklist, raise CAPA for non-conformities and draft the D14/D16 Test Summary with a release recommendation.
Peraturan data: guna data sintetik ShopFast sahaja. Model percuma dihoskan di luar negara. Output AI ialah draf yang mesti disemak manusia.
Langkah demi langkah dengan tangkapan skrin sebenar
Jalankan /audit dalam mod Plan pada RTM dan kes ujian. Ia memaparkan pematuhan, ketidakpatuhan (NC Major dan Minor) dan bukti.
Run /audit in Plan mode on the RTM and test cases. It prints conformities, non-conformities (NC Major and Minor) and evidence.
/audit outputs/m02-rtm.csv dan outputs/m04-testcases.csv

Tekan Tab untuk tukar ke Build dan minta pembantu menyimpan audit. AI membaca dokumen dahulu dan mungkin berhenti seketika pada Preparing write. Apabila dialog Permission required muncul, baca pratonton dan pilih Allow once.
Press Tab to switch to Build and ask the assistant to save the audit. The AI reads the documents first and may pause at Preparing write. When the Permission required dialog appears, read the preview and choose Allow once.
Simpan hasil audit di atas ke outputs/m07-audit.md dengan pautan ../../references/.

Allow once. Audit disimpan sebagai bukti dalam outputs/m07-audit.md.
Allow once. The audit is saved as evidence in outputs/m07-audit.md.
Allow once (Enter)

Jalankan /capa pada fail audit yang disimpan. AI membaca dokumen dahulu dan mungkin berhenti seketika pada Preparing write. Apabila dialog Permission required muncul, baca pratonton dan pilih Allow once.
Run /capa on the saved audit file. The AI reads the documents first and may pause at Preparing write. When the Permission required dialog appears, read the preview and choose Allow once.
/capa semua NC dalam outputs/m07-audit.md

Allow once. Setiap NC mendapat punca akar (5 Mengapa), pembetulan, pencegahan, pemilik dan tarikh.
Allow once. Each NC gets root cause (5 Whys), correction, prevention, owner and date.
Allow once (Enter)

Jalankan /test-summary dengan tempoh ujian dan binaan. AI membaca dokumen dahulu dan mungkin berhenti seketika pada Preparing write. Apabila dialog Permission required muncul, baca pratonton dan pilih Allow once.
Run /test-summary with the test period and build. The AI reads the documents first and may pause at Preparing write. When the Permission required dialog appears, read the preview and choose Allow once.
/test-summary Ujian sistem 14 hingga 15 September 2026, binaan 1.0.0, penguji 4 orang

Allow once. Baca cadangan, kemudian putuskan sebagai pasukan.
Allow once. Read the recommendation, then decide as a team.
Allow once (Enter)

Semakan manusia / Human check
- Setiap ketidakpatuhan memetik bukti (fail dan baris)
Each non-conformity cites evidence (file and line) - Kriteria keluar menggunakan angka KRISAv2 Bab 6 6.8 (95% lulus, severity 1 dan 2 ditutup)
Exit criteria use KRISAv2 Bab 6 6.8 numbers (95% pass, severity 1 and 2 closed) - Keputusan keluaran dibuat dan ditandatangani oleh manusia
The release decision is made and signed by a person
Contoh output sebenar
Jawapan AI berbeza setiap larian. Bandingkan struktur dan semak kandungan.
Jika ada masalah / Troubleshooting
| Masalah | Tindakan |
|---|---|
| opencode is not recognised | Close and reopen PowerShell so PATH refreshes. Still failing: powershell -ExecutionPolicy Bypass -File .\setup\install-opencode.ps1 -Portable |
| Scripts are disabled on this system | Set-ExecutionPolicy -Scope CurrentUser RemoteSigned, or run opencode.cmd instead of opencode |
| The model is slow or stops | Wait up to 2 minutes. Press Esc to interrupt, then send the prompt again. Try another free model with /models |
| Permission required dialog | Read the preview. Choose Allow once for files in outputs/. Reject anything outside the lab folder |
| File or command not found | Check the status bar path ends with \lab. Commands and @files are relative to the lab folder |
| Answer uses Indonesian words or dashes | Reply: Ikut AGENTS.md peraturan 1 dan 14, tulis semula dalam Bahasa Melayu Malaysia |
| Network or proxy error | $env:HTTPS_PROXY = "http://proxy:port" and $env:NO_PROXY = "localhost,127.0.0.1" before starting opencode |
| Port 3000 already in use | $env:PORT = 3001 before npm start, and use http://localhost:3001 |