kiro-spec-engine 1.47.28 → 1.47.30
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/docs/331-poc-dual-track-integration-guide.md +1 -2
- package/docs/331-poc-weekly-delivery-checklist.md +0 -1
- package/docs/README.md +2 -0
- package/docs/command-reference.md +44 -15
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.json +156 -0
- package/docs/handoffs/evidence/ontology/moqui-template-baseline-2026-02-17-232922.md +24 -0
- package/docs/moqui-capability-matrix.md +1 -1
- package/docs/moqui-template-core-library-playbook.md +89 -0
- package/docs/zh/README.md +6 -0
- package/lib/commands/scene.js +4 -4
- package/package.json +2 -1
|
@@ -22,11 +22,10 @@
|
|
|
22
22
|
npx kse auto handoff run --manifest ../331-poc/docs/handoffs/handoff-manifest.json --json
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
需要提高成功率门槛时:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
npx kse auto handoff run --manifest ../331-poc/docs/handoffs/handoff-manifest.json \
|
|
29
|
-
--require-ontology-validation \
|
|
30
29
|
--min-spec-success-rate 95 \
|
|
31
30
|
--max-risk-level medium \
|
|
32
31
|
--json
|
package/docs/README.md
CHANGED
|
@@ -91,6 +91,7 @@ Detailed technical documentation:
|
|
|
91
91
|
- **[Multi-Repository Management Guide](multi-repo-management-guide.md)** - Managing multiple Git repositories
|
|
92
92
|
- **[Value Observability Guide](value-observability-guide.md)** - KPI snapshot, baseline, trend, and gate evidence workflow
|
|
93
93
|
- **[Scene Runtime Guide](scene-runtime-guide.md)** - Scene template engine, quality pipeline, ontology, and Moqui ERP integration
|
|
94
|
+
- **[Moqui Template Core Library Playbook](moqui-template-core-library-playbook.md)** - Default-gated intake flow for absorbing Moqui capabilities into KSE templates
|
|
94
95
|
- **[331-poc Dual-Track Integration Guide](331-poc-dual-track-integration-guide.md)** - Handoff contract and integration playbook between 331-poc and kse
|
|
95
96
|
- **[331-poc Adaptation Roadmap](331-poc-adaptation-roadmap.md)** - Ongoing KSE-side adaptation backlog and rollout phases
|
|
96
97
|
- **[Multi-Agent Coordination Guide](multi-agent-coordination-guide.md)** - Multi-agent parallel coordination for concurrent development
|
|
@@ -187,6 +188,7 @@ Detailed technical documentation:
|
|
|
187
188
|
|
|
188
189
|
### Scene Runtime
|
|
189
190
|
- [Scene Runtime Guide](scene-runtime-guide.md)
|
|
191
|
+
- [Moqui Template Core Library Playbook](moqui-template-core-library-playbook.md)
|
|
190
192
|
- [331-poc Dual-Track Integration Guide](331-poc-dual-track-integration-guide.md)
|
|
191
193
|
- [331-poc Adaptation Roadmap](331-poc-adaptation-roadmap.md)
|
|
192
194
|
- [Scene Template Engine](command-reference.md#scene-template-engine)
|
|
@@ -516,14 +516,14 @@ kse auto schema migrate --json # dry-run by default
|
|
|
516
516
|
kse auto schema migrate --apply --json # apply schema_version migration
|
|
517
517
|
kse auto schema migrate --only close-loop-session,batch-session --apply --json
|
|
518
518
|
|
|
519
|
-
# Dual-track handoff integration (
|
|
520
|
-
kse auto handoff plan --manifest
|
|
521
|
-
kse auto handoff plan --manifest
|
|
522
|
-
kse auto handoff queue --manifest
|
|
523
|
-
kse auto handoff template-diff --manifest
|
|
524
|
-
kse auto handoff run --manifest
|
|
525
|
-
kse auto handoff run --manifest
|
|
526
|
-
kse auto handoff run --manifest
|
|
519
|
+
# Dual-track handoff integration (generic external project -> kse)
|
|
520
|
+
kse auto handoff plan --manifest docs/handoffs/handoff-manifest.json --json
|
|
521
|
+
kse auto handoff plan --manifest docs/handoffs/handoff-manifest.json --strict --out .kiro/reports/handoff-plan.json --json
|
|
522
|
+
kse auto handoff queue --manifest docs/handoffs/handoff-manifest.json --out .kiro/auto/handoff-goals.lines --json
|
|
523
|
+
kse auto handoff template-diff --manifest docs/handoffs/handoff-manifest.json --json
|
|
524
|
+
kse auto handoff run --manifest docs/handoffs/handoff-manifest.json --json
|
|
525
|
+
kse auto handoff run --manifest docs/handoffs/handoff-manifest.json --min-spec-success-rate 95 --max-risk-level medium --json
|
|
526
|
+
kse auto handoff run --manifest docs/handoffs/handoff-manifest.json --continue-from latest --continue-strategy auto --json
|
|
527
527
|
kse auto handoff regression --session-id latest --json
|
|
528
528
|
kse auto handoff regression --session-id latest --window 5 --json
|
|
529
529
|
kse auto handoff regression --session-id latest --format markdown --out .kiro/reports/handoff-regression.md --json
|
|
@@ -836,10 +836,11 @@ kse scene template-render --package scene-erp --values '{"entity_name":"Order"}'
|
|
|
836
836
|
### Scene Package Batch Publish
|
|
837
837
|
|
|
838
838
|
```bash
|
|
839
|
-
# Publish scene package templates from a handoff manifest
|
|
839
|
+
# Publish scene package templates from a handoff manifest
|
|
840
|
+
# Defaults: completed specs only + ontology validation required + ontology batch gate (avg>=70, valid-rate>=100%)
|
|
840
841
|
kse scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --json
|
|
841
842
|
|
|
842
|
-
#
|
|
843
|
+
# Optional convenience preset for 331-style path conventions (manifest/docs fallback paths)
|
|
843
844
|
kse scene package-publish-batch --from-331 --json
|
|
844
845
|
|
|
845
846
|
# Preview batch publish plan without writing template files
|
|
@@ -855,22 +856,22 @@ kse scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json -
|
|
|
855
856
|
kse scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --manifest-spec-path handoff.spec_items --json
|
|
856
857
|
|
|
857
858
|
# Tighten per-spec ontology semantic quality threshold before publish
|
|
858
|
-
kse scene package-publish-batch --
|
|
859
|
+
kse scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --ontology-min-score 70 --json
|
|
859
860
|
|
|
860
861
|
# Persist ontology/publish batch report for governance tracking
|
|
861
|
-
kse scene package-publish-batch --
|
|
862
|
+
kse scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --dry-run --ontology-report-out .kiro/reports/scene-package-ontology-batch.json --json
|
|
862
863
|
|
|
863
864
|
# Enforce batch-level ontology portfolio gate (average score + valid-rate)
|
|
864
|
-
kse scene package-publish-batch --
|
|
865
|
+
kse scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --dry-run --ontology-min-average-score 60 --ontology-min-valid-rate 90 --json
|
|
865
866
|
|
|
866
867
|
# Emergency bypass (not recommended): disable ontology validation requirement
|
|
867
868
|
kse scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --no-require-ontology-validation --json
|
|
868
869
|
|
|
869
870
|
# Export ontology remediation task draft markdown
|
|
870
|
-
kse scene package-publish-batch --
|
|
871
|
+
kse scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --dry-run --ontology-task-out .kiro/reports/scene-package-ontology-task-draft.md --json
|
|
871
872
|
|
|
872
873
|
# Export ontology remediation queue lines (directly consumable by close-loop-batch)
|
|
873
|
-
kse scene package-publish-batch --
|
|
874
|
+
kse scene package-publish-batch --manifest docs/handoffs/handoff-manifest.json --dry-run --ontology-task-queue-out .kiro/auto/ontology-remediation.lines --json
|
|
874
875
|
```
|
|
875
876
|
|
|
876
877
|
### Scene Package Ontology Backfill Batch
|
|
@@ -889,6 +890,34 @@ kse scene package-ontology-backfill-batch --from-331 --include 62-00-moqui-full-
|
|
|
889
890
|
kse scene package-ontology-backfill-batch --from-331 --dry-run --out-report .kiro/reports/scene-package-ontology-backfill-report.json --json
|
|
890
891
|
```
|
|
891
892
|
|
|
893
|
+
### Moqui Template Baseline Scorecard
|
|
894
|
+
|
|
895
|
+
```bash
|
|
896
|
+
# Score Moqui/ERP templates in the local template library (default filter: moqui|erp)
|
|
897
|
+
npm run report:moqui-baseline
|
|
898
|
+
|
|
899
|
+
# Score all scene templates instead of Moqui/ERP subset
|
|
900
|
+
node scripts/moqui-template-baseline-report.js --include-all --json
|
|
901
|
+
|
|
902
|
+
# Customize score thresholds and output paths
|
|
903
|
+
node scripts/moqui-template-baseline-report.js \
|
|
904
|
+
--min-score 75 \
|
|
905
|
+
--min-valid-rate 100 \
|
|
906
|
+
--out .kiro/reports/moqui-template-baseline.json \
|
|
907
|
+
--markdown-out .kiro/reports/moqui-template-baseline.md \
|
|
908
|
+
--json
|
|
909
|
+
|
|
910
|
+
# Compare with a previous baseline and fail CI on portfolio gate fail
|
|
911
|
+
node scripts/moqui-template-baseline-report.js \
|
|
912
|
+
--compare-with .kiro/reports/release-evidence/moqui-template-baseline-prev.json \
|
|
913
|
+
--fail-on-portfolio-fail \
|
|
914
|
+
--json
|
|
915
|
+
```
|
|
916
|
+
|
|
917
|
+
Release workflow default:
|
|
918
|
+
- Publishes `moqui-template-baseline.json` + `moqui-template-baseline.md` as release assets.
|
|
919
|
+
- Enforces baseline portfolio gate by default (`KSE_MOQUI_BASELINE_ENFORCE` defaults to `true` when unset).
|
|
920
|
+
|
|
892
921
|
### Moqui ERP Integration
|
|
893
922
|
|
|
894
923
|
```bash
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mode": "moqui-template-baseline",
|
|
3
|
+
"generated_at": "2026-02-17T15:29:22.909Z",
|
|
4
|
+
"template_root": ".kiro\\templates\\scene-packages",
|
|
5
|
+
"filter": {
|
|
6
|
+
"include_all": false,
|
|
7
|
+
"match": "(moqui|erp)"
|
|
8
|
+
},
|
|
9
|
+
"baseline": {
|
|
10
|
+
"min_score": 70,
|
|
11
|
+
"min_valid_rate_percent": 100
|
|
12
|
+
},
|
|
13
|
+
"summary": {
|
|
14
|
+
"total_templates": 4,
|
|
15
|
+
"scoped_templates": 3,
|
|
16
|
+
"avg_score": 100,
|
|
17
|
+
"valid_rate_percent": 100,
|
|
18
|
+
"baseline_passed": 3,
|
|
19
|
+
"baseline_failed": 0,
|
|
20
|
+
"portfolio_passed": true
|
|
21
|
+
},
|
|
22
|
+
"templates": [
|
|
23
|
+
{
|
|
24
|
+
"template_id": "kse.scene--erp-inventory-reserve-adjust--0.1.0",
|
|
25
|
+
"template_path": ".kiro\\templates\\scene-packages\\kse.scene--erp-inventory-reserve-adjust--0.1.0",
|
|
26
|
+
"contract_path": ".kiro\\templates\\scene-packages\\kse.scene--erp-inventory-reserve-adjust--0.1.0\\scene-package.json",
|
|
27
|
+
"ontology": {
|
|
28
|
+
"valid": true,
|
|
29
|
+
"error_count": 0
|
|
30
|
+
},
|
|
31
|
+
"semantic": {
|
|
32
|
+
"score": 100,
|
|
33
|
+
"level": "high",
|
|
34
|
+
"metrics": {
|
|
35
|
+
"entity_count": 4,
|
|
36
|
+
"relation_count": 4,
|
|
37
|
+
"business_rule_total": 2,
|
|
38
|
+
"business_rule_mapped": 2,
|
|
39
|
+
"business_rule_unmapped": 0,
|
|
40
|
+
"business_rule_passed": 2,
|
|
41
|
+
"business_rule_failed": 0,
|
|
42
|
+
"business_rule_mapping_rate_percent": 100,
|
|
43
|
+
"business_rule_pass_rate_percent": 100,
|
|
44
|
+
"decision_total": 2,
|
|
45
|
+
"decision_resolved": 2,
|
|
46
|
+
"decision_pending": 0,
|
|
47
|
+
"decision_undecided": 0,
|
|
48
|
+
"decision_automated": 2,
|
|
49
|
+
"decision_resolved_rate_percent": 100
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"baseline": {
|
|
53
|
+
"flags": {
|
|
54
|
+
"graph_valid": true,
|
|
55
|
+
"score_passed": true,
|
|
56
|
+
"entity_coverage": true,
|
|
57
|
+
"relation_coverage": true,
|
|
58
|
+
"business_rule_coverage": true,
|
|
59
|
+
"business_rule_closed": true,
|
|
60
|
+
"decision_coverage": true,
|
|
61
|
+
"decision_closed": true,
|
|
62
|
+
"baseline_passed": true
|
|
63
|
+
},
|
|
64
|
+
"gaps": []
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"template_id": "kse.scene--erp-order-fulfillment-workflow--0.1.0",
|
|
69
|
+
"template_path": ".kiro\\templates\\scene-packages\\kse.scene--erp-order-fulfillment-workflow--0.1.0",
|
|
70
|
+
"contract_path": ".kiro\\templates\\scene-packages\\kse.scene--erp-order-fulfillment-workflow--0.1.0\\scene-package.json",
|
|
71
|
+
"ontology": {
|
|
72
|
+
"valid": true,
|
|
73
|
+
"error_count": 0
|
|
74
|
+
},
|
|
75
|
+
"semantic": {
|
|
76
|
+
"score": 100,
|
|
77
|
+
"level": "high",
|
|
78
|
+
"metrics": {
|
|
79
|
+
"entity_count": 5,
|
|
80
|
+
"relation_count": 6,
|
|
81
|
+
"business_rule_total": 2,
|
|
82
|
+
"business_rule_mapped": 2,
|
|
83
|
+
"business_rule_unmapped": 0,
|
|
84
|
+
"business_rule_passed": 2,
|
|
85
|
+
"business_rule_failed": 0,
|
|
86
|
+
"business_rule_mapping_rate_percent": 100,
|
|
87
|
+
"business_rule_pass_rate_percent": 100,
|
|
88
|
+
"decision_total": 2,
|
|
89
|
+
"decision_resolved": 2,
|
|
90
|
+
"decision_pending": 0,
|
|
91
|
+
"decision_undecided": 0,
|
|
92
|
+
"decision_automated": 2,
|
|
93
|
+
"decision_resolved_rate_percent": 100
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"baseline": {
|
|
97
|
+
"flags": {
|
|
98
|
+
"graph_valid": true,
|
|
99
|
+
"score_passed": true,
|
|
100
|
+
"entity_coverage": true,
|
|
101
|
+
"relation_coverage": true,
|
|
102
|
+
"business_rule_coverage": true,
|
|
103
|
+
"business_rule_closed": true,
|
|
104
|
+
"decision_coverage": true,
|
|
105
|
+
"decision_closed": true,
|
|
106
|
+
"baseline_passed": true
|
|
107
|
+
},
|
|
108
|
+
"gaps": []
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"template_id": "kse.scene--erp-order-query-read--0.1.0",
|
|
113
|
+
"template_path": ".kiro\\templates\\scene-packages\\kse.scene--erp-order-query-read--0.1.0",
|
|
114
|
+
"contract_path": ".kiro\\templates\\scene-packages\\kse.scene--erp-order-query-read--0.1.0\\scene-package.json",
|
|
115
|
+
"ontology": {
|
|
116
|
+
"valid": true,
|
|
117
|
+
"error_count": 0
|
|
118
|
+
},
|
|
119
|
+
"semantic": {
|
|
120
|
+
"score": 100,
|
|
121
|
+
"level": "high",
|
|
122
|
+
"metrics": {
|
|
123
|
+
"entity_count": 4,
|
|
124
|
+
"relation_count": 4,
|
|
125
|
+
"business_rule_total": 2,
|
|
126
|
+
"business_rule_mapped": 2,
|
|
127
|
+
"business_rule_unmapped": 0,
|
|
128
|
+
"business_rule_passed": 2,
|
|
129
|
+
"business_rule_failed": 0,
|
|
130
|
+
"business_rule_mapping_rate_percent": 100,
|
|
131
|
+
"business_rule_pass_rate_percent": 100,
|
|
132
|
+
"decision_total": 2,
|
|
133
|
+
"decision_resolved": 2,
|
|
134
|
+
"decision_pending": 0,
|
|
135
|
+
"decision_undecided": 0,
|
|
136
|
+
"decision_automated": 2,
|
|
137
|
+
"decision_resolved_rate_percent": 100
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"baseline": {
|
|
141
|
+
"flags": {
|
|
142
|
+
"graph_valid": true,
|
|
143
|
+
"score_passed": true,
|
|
144
|
+
"entity_coverage": true,
|
|
145
|
+
"relation_coverage": true,
|
|
146
|
+
"business_rule_coverage": true,
|
|
147
|
+
"business_rule_closed": true,
|
|
148
|
+
"decision_coverage": true,
|
|
149
|
+
"decision_closed": true,
|
|
150
|
+
"baseline_passed": true
|
|
151
|
+
},
|
|
152
|
+
"gaps": []
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Moqui Template Baseline Report
|
|
2
|
+
|
|
3
|
+
- Generated at: 2026-02-17T15:29:22.909Z
|
|
4
|
+
- Template root: .kiro\templates\scene-packages
|
|
5
|
+
- Filter: (moqui|erp)
|
|
6
|
+
- Baseline thresholds: score>=70, valid-rate>=100%
|
|
7
|
+
|
|
8
|
+
## Summary
|
|
9
|
+
|
|
10
|
+
- Total templates scanned: 4
|
|
11
|
+
- Templates in scope: 3
|
|
12
|
+
- Avg score: 100
|
|
13
|
+
- Ontology valid-rate: 100%
|
|
14
|
+
- Baseline passed: 3
|
|
15
|
+
- Baseline failed: 0
|
|
16
|
+
- Portfolio pass: yes
|
|
17
|
+
|
|
18
|
+
## Templates
|
|
19
|
+
|
|
20
|
+
| Template | Score | Graph | Baseline | Gaps |
|
|
21
|
+
| --- | ---: | --- | --- | --- |
|
|
22
|
+
| kse.scene--erp-inventory-reserve-adjust--0.1.0 | 100 | valid | pass | none |
|
|
23
|
+
| kse.scene--erp-order-fulfillment-workflow--0.1.0 | 100 | valid | pass | none |
|
|
24
|
+
| kse.scene--erp-order-query-read--0.1.0 | 100 | valid | pass | none |
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Moqui Template Core Library Playbook
|
|
2
|
+
|
|
3
|
+
This playbook defines a generic (project-agnostic) path to absorb Moqui capabilities into the KSE core template library.
|
|
4
|
+
|
|
5
|
+
## Objectives
|
|
6
|
+
|
|
7
|
+
- Turn Moqui business capabilities into reusable `scene-package` templates.
|
|
8
|
+
- Enforce ontology quality as a default gate (no project-specific flags required).
|
|
9
|
+
- Keep evidence output stable for release and regression review.
|
|
10
|
+
|
|
11
|
+
## Default Gate Baseline
|
|
12
|
+
|
|
13
|
+
KSE defaults already enforce the baseline below:
|
|
14
|
+
|
|
15
|
+
- `kse auto handoff run`: ontology validation is required by default.
|
|
16
|
+
- `kse scene package-publish-batch`:
|
|
17
|
+
- ontology validation required by default
|
|
18
|
+
- batch ontology gate defaults:
|
|
19
|
+
- average ontology score `>= 70`
|
|
20
|
+
- ontology valid-rate `>= 100%`
|
|
21
|
+
|
|
22
|
+
Emergency bypass exists but is not recommended:
|
|
23
|
+
|
|
24
|
+
- `--no-require-ontology-validation`
|
|
25
|
+
|
|
26
|
+
## One-Shot Intake Flow
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# 0) Generate template baseline scoreboard (Moqui/ERP templates by default)
|
|
30
|
+
node scripts/moqui-template-baseline-report.js --json
|
|
31
|
+
|
|
32
|
+
# 0.1) CI/release mode: compare against previous baseline and enforce portfolio gate
|
|
33
|
+
node scripts/moqui-template-baseline-report.js \
|
|
34
|
+
--compare-with .kiro/reports/release-evidence/moqui-template-baseline-prev.json \
|
|
35
|
+
--fail-on-portfolio-fail \
|
|
36
|
+
--json
|
|
37
|
+
|
|
38
|
+
# 1) Handoff close-loop
|
|
39
|
+
kse auto handoff run --manifest docs/handoffs/handoff-manifest.json --json
|
|
40
|
+
|
|
41
|
+
# 2) Publish templates from scene packages (with default ontology gates)
|
|
42
|
+
kse scene package-publish-batch \
|
|
43
|
+
--manifest docs/handoffs/handoff-manifest.json \
|
|
44
|
+
--json
|
|
45
|
+
|
|
46
|
+
# 3) Persist ontology publish evidence for governance/review
|
|
47
|
+
kse scene package-publish-batch \
|
|
48
|
+
--manifest docs/handoffs/handoff-manifest.json \
|
|
49
|
+
--dry-run \
|
|
50
|
+
--ontology-report-out .kiro/reports/scene-package-ontology-batch.json \
|
|
51
|
+
--json
|
|
52
|
+
|
|
53
|
+
# 4) Validate registry + package gate
|
|
54
|
+
kse scene package-registry --template-dir .kiro/templates/scene-packages --strict --json
|
|
55
|
+
kse scene package-gate-template --out .kiro/templates/scene-package-gate-policy.json --profile three-layer --force --json
|
|
56
|
+
kse scene package-gate --registry .kiro/templates/scene-packages/registry.json --policy .kiro/templates/scene-package-gate-policy.json --strict --json
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Evidence Contract
|
|
60
|
+
|
|
61
|
+
Required artifacts for each intake batch:
|
|
62
|
+
|
|
63
|
+
- `.kiro/reports/moqui-template-baseline.json`
|
|
64
|
+
- `.kiro/reports/moqui-template-baseline.md`
|
|
65
|
+
- `.kiro/reports/handoff-runs/<session>.json`
|
|
66
|
+
- `.kiro/reports/scene-package-ontology-batch.json`
|
|
67
|
+
- `.kiro/templates/scene-packages/registry.json`
|
|
68
|
+
- gate output/evidence linked from release notes or handoff summary
|
|
69
|
+
|
|
70
|
+
## Minimum Semantic Coverage
|
|
71
|
+
|
|
72
|
+
Each accepted template should include ontology semantics for:
|
|
73
|
+
|
|
74
|
+
- entity model
|
|
75
|
+
- relation graph
|
|
76
|
+
- business rules
|
|
77
|
+
- decision logic
|
|
78
|
+
|
|
79
|
+
If any area is weak, export remediation queue lines and feed back to close-loop:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
kse scene package-publish-batch \
|
|
83
|
+
--manifest docs/handoffs/handoff-manifest.json \
|
|
84
|
+
--dry-run \
|
|
85
|
+
--ontology-task-queue-out .kiro/auto/ontology-remediation.lines \
|
|
86
|
+
--json
|
|
87
|
+
|
|
88
|
+
kse auto close-loop-batch .kiro/auto/ontology-remediation.lines --format lines --json
|
|
89
|
+
```
|
package/docs/zh/README.md
CHANGED
|
@@ -172,6 +172,12 @@
|
|
|
172
172
|
- Ontology 图、Action Abstraction、Data Lineage、Agent Hints
|
|
173
173
|
- Moqui ERP 连接、发现、模板提取
|
|
174
174
|
|
|
175
|
+
### [Moqui Template Core Library Playbook](../moqui-template-core-library-playbook.md)
|
|
176
|
+
**Moqui 能力核心库化执行清单(英文)** - 默认门禁、批处理吸收链路、证据合同
|
|
177
|
+
- 不依赖 331 特参的通用 intake 流程
|
|
178
|
+
- Ontology 与 scene-package 默认门禁
|
|
179
|
+
- remediation 队列回灌闭环
|
|
180
|
+
|
|
175
181
|
### [331-poc 双轨协同对接手册](../331-poc-dual-track-integration-guide.md)
|
|
176
182
|
**331-poc 与 kse 协同执行指南** - 交接契约、接入命令链、主从闭环验收
|
|
177
183
|
- 331 深化成果输入约束
|
package/lib/commands/scene.js
CHANGED
|
@@ -424,8 +424,8 @@ function registerSceneCommands(program) {
|
|
|
424
424
|
.option('--require-ontology-validation', 'Require ontology graph validation before publish (default: enabled)')
|
|
425
425
|
.option('--no-require-ontology-validation', 'Allow publish when ontology graph validation fails (not recommended)')
|
|
426
426
|
.option('--ontology-min-score <number>', 'Minimum ontology semantic quality score (0-100)')
|
|
427
|
-
.option('--ontology-min-average-score <number>', `Minimum ontology average score for selected batch (0-100, default
|
|
428
|
-
.option('--ontology-min-valid-rate <number>', `Minimum ontology graph-valid rate for selected batch (0-100, default
|
|
427
|
+
.option('--ontology-min-average-score <number>', `Minimum ontology average score for selected batch (0-100, default: ${SCENE_PACKAGE_BATCH_DEFAULT_ONTOLOGY_MIN_AVERAGE_SCORE})`)
|
|
428
|
+
.option('--ontology-min-valid-rate <number>', `Minimum ontology graph-valid rate for selected batch (0-100, default: ${SCENE_PACKAGE_BATCH_DEFAULT_ONTOLOGY_MIN_VALID_RATE})`)
|
|
429
429
|
.option('--ontology-report-out <path>', 'Write ontology/publish batch report JSON to file')
|
|
430
430
|
.option('--ontology-task-out <path>', 'Write ontology remediation task draft markdown to file')
|
|
431
431
|
.option('--ontology-task-queue-out <path>', 'Write ontology remediation queue lines for close-loop-batch')
|
|
@@ -1227,10 +1227,10 @@ function normalizeScenePackagePublishBatchOptions(options = {}) {
|
|
|
1227
1227
|
? null
|
|
1228
1228
|
: Number(options.ontologyMinScore),
|
|
1229
1229
|
ontologyMinAverageScore: options.ontologyMinAverageScore === undefined || options.ontologyMinAverageScore === null || options.ontologyMinAverageScore === ''
|
|
1230
|
-
?
|
|
1230
|
+
? SCENE_PACKAGE_BATCH_DEFAULT_ONTOLOGY_MIN_AVERAGE_SCORE
|
|
1231
1231
|
: Number(options.ontologyMinAverageScore),
|
|
1232
1232
|
ontologyMinValidRate: options.ontologyMinValidRate === undefined || options.ontologyMinValidRate === null || options.ontologyMinValidRate === ''
|
|
1233
|
-
?
|
|
1233
|
+
? SCENE_PACKAGE_BATCH_DEFAULT_ONTOLOGY_MIN_VALID_RATE
|
|
1234
1234
|
: Number(options.ontologyMinValidRate),
|
|
1235
1235
|
ontologyReportOut: options.ontologyReportOut ? String(options.ontologyReportOut).trim() : undefined,
|
|
1236
1236
|
ontologyTaskOut: options.ontologyTaskOut ? String(options.ontologyTaskOut).trim() : undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kiro-spec-engine",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.30",
|
|
4
4
|
"description": "kiro-spec-engine (kse) - A CLI tool and npm package for spec-driven development with AI coding assistants. NOT the Kiro IDE desktop application.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"test:skip-audit": "node scripts/check-skip-allowlist.js",
|
|
35
35
|
"test:watch": "npx jest --watch",
|
|
36
36
|
"coverage": "npx jest --coverage",
|
|
37
|
+
"report:moqui-baseline": "node scripts/moqui-template-baseline-report.js --json",
|
|
37
38
|
"prepublishOnly": "npm run test:full && npm run test:skip-audit",
|
|
38
39
|
"publish:manual": "npm publish --access public",
|
|
39
40
|
"install-global": "npm install -g .",
|