ai-developer-skill-os 10.1.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/AGENTS.md +13 -0
- package/.agents/LICENSE +21 -21
- package/.agents/docs/ARCHITECTURE.md +56 -120
- package/.agents/docs/GOVERNANCE.md +3 -3
- package/.agents/docs/SPEC.md +137 -60
- package/.agents/docs/VERSIONING.md +25 -57
- package/.agents/docs/adr/0005-v10-platform-consolidation.md +50 -0
- package/.agents/docs/schemas/learning.schema.yml +22 -57
- package/.agents/docs/schemas/skill.schema.yml +116 -161
- package/.agents/docs/schemas/workflow.schema.yml +51 -26
- package/.agents/docs/skill-classification.md +1 -1
- package/.agents/registry/graph.json +171 -77
- package/.agents/registry/index.yaml +68 -35
- package/.agents/rules/coding.md +1 -1
- package/.agents/rules/command-safety.md +1 -1
- package/.agents/rules/global.md +1 -1
- package/.agents/rules/prompt-compiler.md +1 -1
- package/.agents/rules/safety.md +1 -1
- package/.agents/rules/security.md +1 -1
- package/.agents/rules/skill-quality.md +18 -3
- package/.agents/skills/_template/SKILL.md +238 -88
- package/.agents/skills/qk-api-data-discovery/SKILL.md +176 -190
- package/.agents/skills/qk-api-data-discovery/references/bronze-record-format.md +47 -0
- package/.agents/skills/qk-api-data-discovery/references/data-contract-yaml.md +72 -0
- package/.agents/skills/qk-api-data-discovery/references/discovery-report-template.md +110 -0
- package/.agents/skills/qk-backend-data/SKILL.md +150 -1
- package/.agents/skills/qk-bug-resolution/SKILL.md +153 -1
- package/.agents/skills/qk-bug-resolution/evals/scorecard.yaml +1 -1
- package/.agents/skills/qk-code-cleaner/SKILL.md +150 -1
- package/.agents/skills/qk-code-review/SKILL.md +195 -1
- package/.agents/skills/qk-code-review/evals/scorecard.yaml +1 -1
- package/.agents/skills/qk-code-review/references/ai/{v8-schema-validation.md → schema-validation.md} +2 -2
- package/.agents/skills/qk-code-review/references/cross-cutting/async-concurrency-patterns.md +515 -515
- package/.agents/skills/qk-code-review/references/cross-cutting/error-handling-principles.md +492 -492
- package/.agents/skills/qk-code-review/references/cross-cutting/n-plus-one-queries.md +309 -309
- package/.agents/skills/qk-code-review/references/cross-cutting/sql-injection-prevention.md +307 -307
- package/.agents/skills/qk-code-review/references/cross-cutting/xss-prevention.md +263 -263
- package/.agents/skills/qk-code-review/references/languages/angular.md +768 -768
- package/.agents/skills/qk-code-review/references/languages/c.md +890 -890
- package/.agents/skills/qk-code-review/references/languages/cpp.md +893 -893
- package/.agents/skills/qk-code-review/references/languages/css-less-sass.md +661 -661
- package/.agents/skills/qk-code-review/references/languages/django.md +985 -985
- package/.agents/skills/qk-code-review/references/languages/fastapi.md +580 -580
- package/.agents/skills/qk-code-review/references/languages/go.md +993 -993
- package/.agents/skills/qk-code-review/references/languages/java.md +409 -409
- package/.agents/skills/qk-code-review/references/languages/java8.md +586 -586
- package/.agents/skills/qk-code-review/references/languages/kotlin.md +1018 -1018
- package/.agents/skills/qk-code-review/references/languages/nestjs.md +593 -593
- package/.agents/skills/qk-code-review/references/languages/php.md +684 -684
- package/.agents/skills/qk-code-review/references/languages/python.md +1073 -1073
- package/.agents/skills/qk-code-review/references/languages/qt.md +757 -757
- package/.agents/skills/qk-code-review/references/languages/react.md +871 -871
- package/.agents/skills/qk-code-review/references/languages/ruby.md +964 -964
- package/.agents/skills/qk-code-review/references/languages/rust.md +846 -846
- package/.agents/skills/qk-code-review/references/languages/svelte.md +1064 -1064
- package/.agents/skills/qk-code-review/references/languages/swift.md +936 -936
- package/.agents/skills/qk-code-review/references/languages/typescript.md +1016 -1016
- package/.agents/skills/qk-code-review/references/languages/vue.md +924 -924
- package/.agents/skills/qk-code-review/references/languages/zig.md +440 -440
- package/.agents/skills/qk-devops-release/SKILL.md +150 -1
- package/.agents/skills/qk-feature-delivery/SKILL.md +153 -1
- package/.agents/skills/qk-feature-delivery/evals/scorecard.yaml +1 -1
- package/.agents/skills/qk-orchestrator/SKILL.md +187 -2
- package/.agents/skills/qk-orchestrator/evals/scorecard.yaml +1 -1
- package/.agents/skills/qk-orchestrator/references/routing-table.md +1 -1
- package/.agents/skills/qk-product-spec/SKILL.md +150 -1
- package/.agents/skills/qk-prompt-compiler/SKILL.md +188 -65
- package/.agents/skills/qk-ui-engineer/SKILL.md +150 -1
- package/.agents/workflows/_schema.yml +146 -146
- package/.agents/workflows/bug-resolution.yml +155 -121
- package/.agents/workflows/code-review.yml +127 -93
- package/.agents/workflows/context-discovery.yml +128 -94
- package/.agents/workflows/documentation.yml +124 -90
- package/.agents/workflows/feature-delivery.yml +158 -124
- package/.agents/workflows/production-release.yml +207 -173
- package/.agents/workflows/prompt-compilation.yml +126 -0
- package/.agents/workflows/refactor.yml +136 -102
- package/.agents/workflows/security-audit.yml +149 -115
- package/.agents/workflows/shared/quality-gate.yml +3 -1
- package/.agents/workflows/skin-governance.yml +149 -115
- package/.agents/workflows/spec-driven-development.yml +78 -71
- package/CHANGELOG.md +61 -0
- package/README.md +3 -3
- package/bin/install.js +38 -51
- package/package.json +68 -74
- package/tooling/build-registry.js +226 -208
- package/tooling/run-aar.js +55 -126
- package/tooling/sync-versions.js +2 -2
- package/tooling/validate-graph.js +100 -87
- package/tooling/validate-skills.js +32 -14
- package/.agents/docs/decisions/ADR-001-v8-migration.md +0 -58
- package/.agents/docs/decisions/ADR-002-workflow-separation.md +0 -50
- package/.agents/docs/decisions/ADR-003-registry-generated.md +0 -54
- package/.agents/docs/decisions/ADR-008-skill-boundary-review.md +0 -27
- package/.agents/registry/capability-graph.yml +0 -390
- package/.agents/registry/skills-index.yml +0 -305
- package/.agents/skills/_template/capability.yaml +0 -34
- package/.agents/skills/_template/evals/scorecard.yaml +0 -19
|
@@ -1,173 +1,207 @@
|
|
|
1
|
-
name: production-release
|
|
2
|
-
version:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
- "
|
|
15
|
-
- "
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
- "Chạy npm run test:
|
|
34
|
-
- "Chạy npm run
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
- "
|
|
52
|
-
- "
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
- "
|
|
70
|
-
- "
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
|
|
87
|
-
- "
|
|
88
|
-
- "Kiểm tra
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
- "
|
|
106
|
-
- "
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
- "
|
|
124
|
-
- "
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
-
|
|
140
|
-
|
|
141
|
-
- "Kiểm tra
|
|
142
|
-
- "Verify
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
|
|
162
|
-
-
|
|
163
|
-
|
|
164
|
-
-
|
|
165
|
-
|
|
166
|
-
- "
|
|
167
|
-
- "
|
|
168
|
-
- "
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
1
|
+
name: production-release
|
|
2
|
+
version: 10.2.0
|
|
3
|
+
platforms: [antigravity, claude, opencode]
|
|
4
|
+
runtime_version: 1
|
|
5
|
+
description: "Chuẩn bị release production với 8-gate checklist bắt buộc — không pass gate = không deploy."
|
|
6
|
+
|
|
7
|
+
owner:
|
|
8
|
+
type: engineering
|
|
9
|
+
maintained_by: qk-team
|
|
10
|
+
|
|
11
|
+
verification_profile: release-safety
|
|
12
|
+
|
|
13
|
+
triggers:
|
|
14
|
+
- "release production"
|
|
15
|
+
- "deploy production"
|
|
16
|
+
- "chuẩn bị release"
|
|
17
|
+
- "kiểm tra release"
|
|
18
|
+
|
|
19
|
+
ide_binding:
|
|
20
|
+
slash_command: "/release"
|
|
21
|
+
aliases: ["/deploy", "/prod-release"]
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- id: gate_1_validation
|
|
25
|
+
name: "Gate 1: Validation Gate"
|
|
26
|
+
purpose: "Đảm bảo qk-code-review đã pass trước khi release"
|
|
27
|
+
required: true
|
|
28
|
+
skip_if: null
|
|
29
|
+
inputs: []
|
|
30
|
+
outputs:
|
|
31
|
+
- validation_result
|
|
32
|
+
actions:
|
|
33
|
+
- "Chạy npm run test:registry"
|
|
34
|
+
- "Chạy npm run lint"
|
|
35
|
+
- "Chạy npm run test:agent"
|
|
36
|
+
- "Chạy npm run test:graph"
|
|
37
|
+
exit_on_fail: FAILED
|
|
38
|
+
human_checkpoint:
|
|
39
|
+
condition: "any validation gate fails"
|
|
40
|
+
message: "Validation gate thất bại. Fix trước khi tiếp tục."
|
|
41
|
+
|
|
42
|
+
- id: gate_2_capability
|
|
43
|
+
name: "Gate 2: Capability Integrity"
|
|
44
|
+
purpose: "Kiểm tra tất cả capability.yaml hợp lệ và không trùng lặp"
|
|
45
|
+
required: true
|
|
46
|
+
skip_if: null
|
|
47
|
+
inputs: []
|
|
48
|
+
outputs:
|
|
49
|
+
- capability_check
|
|
50
|
+
actions:
|
|
51
|
+
- "Validate tất cả capability.yaml files có schema_version: 1"
|
|
52
|
+
- "Kiểm tra không có capability.yaml trùng id"
|
|
53
|
+
- "Verify mỗi skill có SKILL.md tương ứng"
|
|
54
|
+
- "Verify mỗi SKILL.md có capability.yaml tương ứng"
|
|
55
|
+
exit_on_fail: FAILED
|
|
56
|
+
human_checkpoint:
|
|
57
|
+
condition: "capability.yaml missing or invalid"
|
|
58
|
+
message: "Một số capability.yaml bị thiếu hoặc không hợp lệ."
|
|
59
|
+
|
|
60
|
+
- id: gate_3_registry
|
|
61
|
+
name: "Gate 3: Registry Consistency"
|
|
62
|
+
purpose: "Kiểm tra registry files nhất quán với filesystem"
|
|
63
|
+
required: true
|
|
64
|
+
skip_if: null
|
|
65
|
+
inputs: []
|
|
66
|
+
outputs:
|
|
67
|
+
- registry_check
|
|
68
|
+
actions:
|
|
69
|
+
- "Chạy node tooling/build-registry.js"
|
|
70
|
+
- "So sánh index.yaml với filesystem实际"
|
|
71
|
+
- "Kiểm tra graph.json không có cycles"
|
|
72
|
+
- "Kiểm tra không có orphan nodes"
|
|
73
|
+
exit_on_fail: FAILED
|
|
74
|
+
human_checkpoint:
|
|
75
|
+
condition: "registry inconsistency detected"
|
|
76
|
+
message: "Registry không nhất quán với filesystem."
|
|
77
|
+
|
|
78
|
+
- id: gate_4_workflows
|
|
79
|
+
name: "Gate 4: Workflow Validation"
|
|
80
|
+
purpose: "Kiểm tra tất cả workflow files hợp lệ"
|
|
81
|
+
required: true
|
|
82
|
+
skip_if: null
|
|
83
|
+
inputs: []
|
|
84
|
+
outputs:
|
|
85
|
+
- workflow_check
|
|
86
|
+
actions:
|
|
87
|
+
- "Validate tất cả workflow YAML files có schema hợp lệ"
|
|
88
|
+
- "Kiểm tra mỗi workflow có steps, triggers, exit_codes"
|
|
89
|
+
- "Verify mỗi skill reference workflow tồn tại"
|
|
90
|
+
- "Kiểm tra không có workflow reference đến internal"
|
|
91
|
+
exit_on_fail: FAILED
|
|
92
|
+
human_checkpoint:
|
|
93
|
+
condition: "workflow validation fails"
|
|
94
|
+
message: "Một hoặc nhiều workflow không hợp lệ."
|
|
95
|
+
|
|
96
|
+
- id: gate_5_security
|
|
97
|
+
name: "Gate 5: Security Scan"
|
|
98
|
+
purpose: "Quét bảo mật trước khi release"
|
|
99
|
+
required: true
|
|
100
|
+
skip_if: null
|
|
101
|
+
inputs: []
|
|
102
|
+
outputs:
|
|
103
|
+
- security_report
|
|
104
|
+
actions:
|
|
105
|
+
- "Chạy npm audit --production"
|
|
106
|
+
- "grep_search cho secrets, tokens, API keys trong code"
|
|
107
|
+
- "Kiểm tra không có hardcoded credentials"
|
|
108
|
+
- "Verify .env files không bị commit"
|
|
109
|
+
exit_on_fail: FAILED
|
|
110
|
+
human_checkpoint:
|
|
111
|
+
condition: "critical or high security issues found"
|
|
112
|
+
message: "Có vấn đề bảo mật nghiêm trọng. Cần fix trước khi release."
|
|
113
|
+
|
|
114
|
+
- id: gate_6_size
|
|
115
|
+
name: "Gate 6: Bundle & Size Check"
|
|
116
|
+
purpose: "Kiểm tra kích thước bundle và dependencies"
|
|
117
|
+
required: true
|
|
118
|
+
skip_if: null
|
|
119
|
+
inputs: []
|
|
120
|
+
outputs:
|
|
121
|
+
- size_report
|
|
122
|
+
actions:
|
|
123
|
+
- "Chạy npm run build (production mode)"
|
|
124
|
+
- "Kiểm tra bundle size trong giới hạn"
|
|
125
|
+
- "Kiểm tra không có devDependencies trong production"
|
|
126
|
+
- "Verify tree-shaking hoạt động đúng"
|
|
127
|
+
exit_on_fail: FAILED
|
|
128
|
+
human_checkpoint:
|
|
129
|
+
condition: "bundle size exceeds limit"
|
|
130
|
+
message: "Bundle size vượt hạn chế. Cần tối ưu trước khi deploy."
|
|
131
|
+
|
|
132
|
+
- id: gate_7_changelog
|
|
133
|
+
name: "Gate 7: Changelog & Documentation"
|
|
134
|
+
purpose: "Kiểm tra CHANGELOG.md và documentation đã cập nhật"
|
|
135
|
+
required: true
|
|
136
|
+
skip_if: null
|
|
137
|
+
inputs: []
|
|
138
|
+
outputs:
|
|
139
|
+
- docs_check
|
|
140
|
+
actions:
|
|
141
|
+
- "Kiểm tra CHANGELOG.md có entry cho version này"
|
|
142
|
+
- "Verify README.md phản ánh đúng capabilities hiện tại"
|
|
143
|
+
- "Kiểm tra SKILL.md descriptions không bị encoding issues"
|
|
144
|
+
- "Verify capability.yaml descriptions chính xác"
|
|
145
|
+
exit_on_fail: PARTIAL
|
|
146
|
+
human_checkpoint:
|
|
147
|
+
condition: "changelog missing or docs outdated"
|
|
148
|
+
message: "CHANGELOG hoặc documentation chưa cập nhật. Cần fix trước khi release."
|
|
149
|
+
|
|
150
|
+
- id: gate_8_report
|
|
151
|
+
name: "Gate 8: Release Report"
|
|
152
|
+
purpose: "Tạo báo cáo release có signed kết quả tất cả gates"
|
|
153
|
+
required: true
|
|
154
|
+
skip_if: null
|
|
155
|
+
inputs:
|
|
156
|
+
- validation_result
|
|
157
|
+
- capability_check
|
|
158
|
+
- registry_check
|
|
159
|
+
- workflow_check
|
|
160
|
+
- security_report
|
|
161
|
+
- size_report
|
|
162
|
+
- docs_check
|
|
163
|
+
outputs:
|
|
164
|
+
- release_report
|
|
165
|
+
actions:
|
|
166
|
+
- "Tổng hợp tất cả gate results"
|
|
167
|
+
- "Generate structured release report"
|
|
168
|
+
- "Include evidence format cho mỗi gate"
|
|
169
|
+
- "Record exit code và timestamp"
|
|
170
|
+
- "Sign report với qk-team key"
|
|
171
|
+
exit_on_fail: FAILED
|
|
172
|
+
|
|
173
|
+
escalation:
|
|
174
|
+
max_retries: 1
|
|
175
|
+
on_failure: "Report which gates failed and exact fix required. Do NOT deploy."
|
|
176
|
+
|
|
177
|
+
# ── V10.2 Additions ──────────────────────────────
|
|
178
|
+
# Confidence Model
|
|
179
|
+
# | Level | Condition | Action |
|
|
180
|
+
# |--------|------------------------|--------------|
|
|
181
|
+
# | HIGH | Step inputs provided | Proceed |
|
|
182
|
+
# | MEDIUM | Some assumptions needed | Note assumptions |
|
|
183
|
+
# | LOW | Insufficient evidence | EXIT: BLOCKED|
|
|
184
|
+
#
|
|
185
|
+
# Exit Codes
|
|
186
|
+
# | Code | Meaning | When |
|
|
187
|
+
# |---------|-------------------------------|-------------------------|
|
|
188
|
+
# | SUCCESS | Step completed and verified | All criteria met |
|
|
189
|
+
# | PARTIAL | Step done with minor gaps | Some checks skipped |
|
|
190
|
+
# | BLOCKED | Missing precondition | Ask user |
|
|
191
|
+
# | FAILED | Step failed after max retries | Report error |
|
|
192
|
+
#
|
|
193
|
+
# Evidence Format:
|
|
194
|
+
# [SEVERITY] step_id: [step-name]
|
|
195
|
+
# Reason: [why this matters]
|
|
196
|
+
# Confidence: [HIGH|MEDIUM|LOW]
|
|
197
|
+
# Fix: [suggestion]
|
|
198
|
+
#
|
|
199
|
+
# Compliance:
|
|
200
|
+
# Runtime Standard: 11/11
|
|
201
|
+
# Frontmatter Complete: yes
|
|
202
|
+
# References Valid: yes
|
|
203
|
+
# Decision Trees: PASS
|
|
204
|
+
# Thresholds Defined: PASS
|
|
205
|
+
# schema_version: 10.2.0
|
|
206
|
+
# runtime_version: 1
|
|
207
|
+
# platforms: [antigravity, claude, opencode]
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
name: prompt-compilation
|
|
2
|
+
version: 10.2.0
|
|
3
|
+
platforms: [antigravity, claude, opencode]
|
|
4
|
+
runtime_version: 1
|
|
5
|
+
description: "Pipeline biên dịch prompt tự nhiên thành Compiled Execution Prompt với 4 cổng kiểm soát."
|
|
6
|
+
|
|
7
|
+
owner:
|
|
8
|
+
type: engineering
|
|
9
|
+
maintained_by: qk-team
|
|
10
|
+
|
|
11
|
+
verification_profile: spec-driven
|
|
12
|
+
|
|
13
|
+
triggers:
|
|
14
|
+
- "viết prompt"
|
|
15
|
+
- "compile prompt"
|
|
16
|
+
- "chuẩn hóa prompt"
|
|
17
|
+
- "prompt compiler"
|
|
18
|
+
|
|
19
|
+
ide_binding:
|
|
20
|
+
slash_command: "/compile-prompt"
|
|
21
|
+
aliases: ["/prompt", "/cp"]
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- id: understand
|
|
25
|
+
name: "Hiểu yêu cầu"
|
|
26
|
+
purpose: "Nhận diện mục tiêu cốt lõi từ câu lệnh tự nhiên"
|
|
27
|
+
required: true
|
|
28
|
+
outputs:
|
|
29
|
+
- actual_goal
|
|
30
|
+
- implied_requirements
|
|
31
|
+
actions:
|
|
32
|
+
- "Phân tích câu lệnh user để xác định Actual Goal"
|
|
33
|
+
- "Xác định scope ban đầu"
|
|
34
|
+
min_confidence: HIGH
|
|
35
|
+
|
|
36
|
+
- id: compile
|
|
37
|
+
name: "Biên dịch Compiled Prompt"
|
|
38
|
+
purpose: "Tạo Execution Prompt minh bạch với 9 thành phần"
|
|
39
|
+
required: true
|
|
40
|
+
outputs:
|
|
41
|
+
- compiled_prompt
|
|
42
|
+
- prompt_delta
|
|
43
|
+
- change_budget
|
|
44
|
+
actions:
|
|
45
|
+
- "Sinh Role, Objective, Context, Source of Truth"
|
|
46
|
+
- "Xác định IN-SCOPE và OUT-OF-SCOPE"
|
|
47
|
+
- "Tính Complexity (L0-L4) và Risk (R0-R4)"
|
|
48
|
+
human_checkpoint:
|
|
49
|
+
condition: "Complexity >= L3 hoặc Risk >= R2"
|
|
50
|
+
message: "Compiled Prompt có complexity/risk cao. Xác nhận trước khi thực thi."
|
|
51
|
+
|
|
52
|
+
- id: gate_check
|
|
53
|
+
name: "Gateway Check"
|
|
54
|
+
purpose: "Xác nhận qua 4 cổng kiểm soát"
|
|
55
|
+
required: true
|
|
56
|
+
outputs:
|
|
57
|
+
- quality_gate_result
|
|
58
|
+
- risk_gate_result
|
|
59
|
+
- budget_gate_result
|
|
60
|
+
- scope_gate_result
|
|
61
|
+
actions:
|
|
62
|
+
- "Prompt Quality Gate: 8 tiêu chí hợp đồng"
|
|
63
|
+
- "Risk Gate: Complexity + Risk assessment"
|
|
64
|
+
- "Change Budget: Files ≤ 5, Dependencies = 0"
|
|
65
|
+
- "Scope Expansion Gate: Không có bành trướng"
|
|
66
|
+
exit_on_fail: BLOCKED
|
|
67
|
+
|
|
68
|
+
- id: execute
|
|
69
|
+
name: "Thực thi"
|
|
70
|
+
purpose: "Chạy theo Compiled Prompt đã approved"
|
|
71
|
+
required: true
|
|
72
|
+
outputs:
|
|
73
|
+
- execution_results
|
|
74
|
+
- changed_files
|
|
75
|
+
actions:
|
|
76
|
+
- "Thực thi theo compiled prompt"
|
|
77
|
+
- "Monitor scope expansion trong quá trình thực thi"
|
|
78
|
+
exit_on_fail: PARTIAL
|
|
79
|
+
|
|
80
|
+
- id: evidence_report
|
|
81
|
+
name: "Evidence Gate & Report"
|
|
82
|
+
purpose: "Xác minh bằng chứng và báo cáo kết quả"
|
|
83
|
+
required: true
|
|
84
|
+
outputs:
|
|
85
|
+
- claim_level
|
|
86
|
+
- execution_report
|
|
87
|
+
actions:
|
|
88
|
+
- "CLAIM LEVEL <= EVIDENCE LEVEL check"
|
|
89
|
+
- "Generate Execution Report"
|
|
90
|
+
exit_on_fail: FAILED
|
|
91
|
+
|
|
92
|
+
escalation:
|
|
93
|
+
max_retries: 2
|
|
94
|
+
on_failure: "Recompile prompt with expanded scope and ask user CONFIRM"
|
|
95
|
+
|
|
96
|
+
# ── V10.2 Additions ──────────────────────────────
|
|
97
|
+
# Confidence Model
|
|
98
|
+
# | Level | Condition | Action |
|
|
99
|
+
# |--------|------------------------|--------------|
|
|
100
|
+
# | HIGH | Step inputs provided | Proceed |
|
|
101
|
+
# | MEDIUM | Some assumptions needed | Note assumptions |
|
|
102
|
+
# | LOW | Insufficient evidence | EXIT: BLOCKED|
|
|
103
|
+
#
|
|
104
|
+
# Exit Codes
|
|
105
|
+
# | Code | Meaning | When |
|
|
106
|
+
# |---------|-------------------------------|-------------------------|
|
|
107
|
+
# | SUCCESS | Step completed and verified | All criteria met |
|
|
108
|
+
# | PARTIAL | Step done with minor gaps | Some checks skipped |
|
|
109
|
+
# | BLOCKED | Missing precondition | Ask user |
|
|
110
|
+
# | FAILED | Step failed after max retries | Report error |
|
|
111
|
+
#
|
|
112
|
+
# Evidence Format:
|
|
113
|
+
# [SEVERITY] step_id: [step-name]
|
|
114
|
+
# Reason: [why this matters]
|
|
115
|
+
# Confidence: [HIGH|MEDIUM|LOW]
|
|
116
|
+
# Fix: [suggestion]
|
|
117
|
+
#
|
|
118
|
+
# Compliance:
|
|
119
|
+
# Runtime Standard: 11/11
|
|
120
|
+
# Frontmatter Complete: yes
|
|
121
|
+
# References Valid: yes
|
|
122
|
+
# Decision Trees: PASS
|
|
123
|
+
# Thresholds Defined: PASS
|
|
124
|
+
# schema_version: 10.2.0
|
|
125
|
+
# runtime_version: 1
|
|
126
|
+
# platforms: [antigravity, claude, opencode]
|