scene-capability-engine 3.6.44 → 3.6.46
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/CHANGELOG.md +25 -0
- package/bin/scene-capability-engine.js +36 -2
- package/docs/command-reference.md +5 -0
- package/docs/releases/README.md +2 -0
- package/docs/releases/v3.6.45.md +18 -0
- package/docs/releases/v3.6.46.md +23 -0
- package/docs/zh/releases/README.md +2 -0
- package/docs/zh/releases/v3.6.45.md +18 -0
- package/docs/zh/releases/v3.6.46.md +23 -0
- package/lib/workspace/collab-governance-audit.js +575 -0
- package/package.json +4 -2
- package/scripts/auto-strategy-router.js +231 -0
- package/scripts/capability-mapping-report.js +339 -0
- package/scripts/check-branding-consistency.js +140 -0
- package/scripts/check-sce-tracking.js +54 -0
- package/scripts/check-skip-allowlist.js +94 -0
- package/scripts/errorbook-registry-health-gate.js +172 -0
- package/scripts/errorbook-release-gate.js +132 -0
- package/scripts/failure-attribution-repair.js +317 -0
- package/scripts/git-managed-gate.js +464 -0
- package/scripts/interactive-approval-event-projection.js +400 -0
- package/scripts/interactive-approval-workflow.js +829 -0
- package/scripts/interactive-authorization-tier-evaluate.js +413 -0
- package/scripts/interactive-change-plan-gate.js +225 -0
- package/scripts/interactive-context-bridge.js +617 -0
- package/scripts/interactive-customization-loop.js +1690 -0
- package/scripts/interactive-dialogue-governance.js +842 -0
- package/scripts/interactive-feedback-log.js +253 -0
- package/scripts/interactive-flow-smoke.js +238 -0
- package/scripts/interactive-flow.js +1059 -0
- package/scripts/interactive-governance-report.js +1112 -0
- package/scripts/interactive-intent-build.js +707 -0
- package/scripts/interactive-loop-smoke.js +215 -0
- package/scripts/interactive-moqui-adapter.js +304 -0
- package/scripts/interactive-plan-build.js +426 -0
- package/scripts/interactive-runtime-policy-evaluate.js +495 -0
- package/scripts/interactive-work-order-build.js +552 -0
- package/scripts/matrix-regression-gate.js +167 -0
- package/scripts/moqui-core-regression-suite.js +397 -0
- package/scripts/moqui-lexicon-audit.js +651 -0
- package/scripts/moqui-matrix-remediation-phased-runner.js +865 -0
- package/scripts/moqui-matrix-remediation-queue.js +852 -0
- package/scripts/moqui-metadata-extract.js +1340 -0
- package/scripts/moqui-rebuild-gate.js +167 -0
- package/scripts/moqui-release-summary.js +729 -0
- package/scripts/moqui-standard-rebuild.js +1370 -0
- package/scripts/moqui-template-baseline-report.js +682 -0
- package/scripts/npm-package-runtime-asset-check.js +221 -0
- package/scripts/problem-closure-gate.js +441 -0
- package/scripts/release-asset-integrity-check.js +216 -0
- package/scripts/release-asset-nonempty-normalize.js +166 -0
- package/scripts/release-drift-evaluate.js +223 -0
- package/scripts/release-drift-signals.js +255 -0
- package/scripts/release-governance-snapshot-export.js +132 -0
- package/scripts/release-ops-weekly-summary.js +934 -0
- package/scripts/release-risk-remediation-bundle.js +315 -0
- package/scripts/release-weekly-ops-gate.js +423 -0
- package/scripts/state-migration-reconciliation-gate.js +110 -0
- package/scripts/state-storage-tiering-audit.js +337 -0
- package/scripts/steering-content-audit.js +393 -0
- package/scripts/symbol-evidence-locate.js +366 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.6.46] - 2026-03-13
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Added `scripts/npm-package-runtime-asset-check.js` and the `npm run gate:npm-runtime-assets` release gate to verify that every runtime `scripts/*.js` file is present in the npm pack dry-run payload before publish.
|
|
14
|
+
- Added Spec `123-00-npm-package-runtime-asset-integrity` with requirements, design, tasks, and deliverables to formalize the npm runtime asset integrity fix.
|
|
15
|
+
- Added unit coverage for runtime script discovery, pack payload parsing, missing-script detection, and pack execution failure reporting.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Fixed npm package publish contents by including the root `scripts/` directory in the package `files` allowlist, so installed `sce` tarballs no longer crash on missing runtime assets such as `scripts/git-managed-gate.js`.
|
|
19
|
+
- Fixed the new runtime asset gate on Windows by executing `npm pack --json --dry-run` through a shell-compatible path and raising the output buffer ceiling for large package manifests.
|
|
20
|
+
|
|
21
|
+
## [3.6.45] - 2026-03-13
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
- Added collaboration governance auditing via `lib/workspace/collab-governance-audit.js` and the new `sce workspace collab-governance-audit` command to check collaboration Git boundaries, runtime-state tracking drift, multi-agent config presence/validity, legacy `.kiro*` references, and steering boundary hygiene.
|
|
25
|
+
- Added Spec `122-00-sce-collab-governance-audit` with requirements, design, tasks, and a dogfooded delivery manifest to formalize the new co-work governance capability.
|
|
26
|
+
- Added unit/integration coverage for collaboration governance drift scenarios, including missing ignore rules, tracked runtime files, legacy naming references, and strict CLI failure behavior.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- Expanded the repository `.gitignore` collaboration boundary rules to cover coordination logs, machine identity, spec lock directories, `tasks.md.lock`, and steering lock/pending runtime files.
|
|
30
|
+
- Seeded `.sce/config/multi-agent.json` as the canonical project-level multi-agent config baseline for governance auditing and future co-work enablement.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
- Removed `.sce/steering/CURRENT_CONTEXT.md` from Git tracking so the repository now conforms to its own runtime/personal-state governance boundary.
|
|
34
|
+
|
|
10
35
|
## [3.6.44] - 2026-03-13
|
|
11
36
|
|
|
12
37
|
### Fixed
|
|
@@ -34,6 +34,7 @@ const {
|
|
|
34
34
|
} = require('../lib/workspace/legacy-kiro-migrator');
|
|
35
35
|
const { auditSceTracking } = require('../lib/workspace/sce-tracking-audit');
|
|
36
36
|
const { auditSpecDeliverySync } = require('../lib/workspace/spec-delivery-audit');
|
|
37
|
+
const { auditCollabGovernance } = require('../lib/workspace/collab-governance-audit');
|
|
37
38
|
const { applyTakeoverBaseline } = require('../lib/workspace/takeover-baseline');
|
|
38
39
|
|
|
39
40
|
const i18n = getI18n();
|
|
@@ -170,7 +171,9 @@ function isLegacyMigrationAllowlistedCommand(args) {
|
|
|
170
171
|
|
|
171
172
|
if (command === 'workspace') {
|
|
172
173
|
const subcommand = args[commandIndex + 1];
|
|
173
|
-
return subcommand === 'legacy-scan'
|
|
174
|
+
return subcommand === 'legacy-scan'
|
|
175
|
+
|| subcommand === 'legacy-migrate'
|
|
176
|
+
|| subcommand === 'collab-governance-audit';
|
|
174
177
|
}
|
|
175
178
|
|
|
176
179
|
return false;
|
|
@@ -198,7 +201,7 @@ function isTakeoverAutoApplySkippedCommand(args) {
|
|
|
198
201
|
}
|
|
199
202
|
|
|
200
203
|
const subcommand = args[commandIndex + 1];
|
|
201
|
-
return subcommand === 'takeover-audit';
|
|
204
|
+
return subcommand === 'takeover-audit' || subcommand === 'collab-governance-audit';
|
|
202
205
|
}
|
|
203
206
|
|
|
204
207
|
/**
|
|
@@ -784,6 +787,37 @@ workspaceCmd
|
|
|
784
787
|
console.log(chalk.gray(`Conflict files: ${report.conflict_files}`));
|
|
785
788
|
});
|
|
786
789
|
|
|
790
|
+
workspaceCmd
|
|
791
|
+
.command('collab-governance-audit')
|
|
792
|
+
.description('Audit collaboration governance boundaries, runtime git hygiene, and legacy naming drift')
|
|
793
|
+
.option('--json', 'Output in JSON format')
|
|
794
|
+
.option('--strict', 'Exit non-zero when collaboration governance violations are found')
|
|
795
|
+
.action(async (options) => {
|
|
796
|
+
const report = await auditCollabGovernance(process.cwd());
|
|
797
|
+
|
|
798
|
+
if (options.json) {
|
|
799
|
+
console.log(JSON.stringify(report, null, 2));
|
|
800
|
+
} else if (report.passed) {
|
|
801
|
+
console.log(chalk.green('✓ Collaboration governance audit passed.'));
|
|
802
|
+
console.log(chalk.gray(`Missing ignore rules: ${report.summary.missing_gitignore_rules}`));
|
|
803
|
+
console.log(chalk.gray(`Legacy references: ${report.summary.legacy_reference_count}`));
|
|
804
|
+
if (report.warnings.length > 0) {
|
|
805
|
+
report.warnings.forEach((item) => console.log(chalk.gray(` - ${item}`)));
|
|
806
|
+
}
|
|
807
|
+
} else {
|
|
808
|
+
console.log(chalk.red('✖ Collaboration governance audit failed.'));
|
|
809
|
+
report.violations.forEach((item) => console.log(chalk.gray(` - ${item}`)));
|
|
810
|
+
if (report.warnings.length > 0) {
|
|
811
|
+
console.log(chalk.yellow('Warnings:'));
|
|
812
|
+
report.warnings.forEach((item) => console.log(chalk.gray(` - ${item}`)));
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
if (!report.passed && options.strict) {
|
|
817
|
+
process.exitCode = 1;
|
|
818
|
+
}
|
|
819
|
+
});
|
|
820
|
+
|
|
787
821
|
workspaceCmd
|
|
788
822
|
.command('delivery-audit')
|
|
789
823
|
.description('Audit spec delivery manifests against git tracking and upstream sync state')
|
|
@@ -347,6 +347,11 @@ sce workspace legacy-migrate --dry-run --json
|
|
|
347
347
|
sce workspace tracking-audit
|
|
348
348
|
sce workspace tracking-audit --json
|
|
349
349
|
|
|
350
|
+
# Audit collaboration governance boundaries and legacy naming drift
|
|
351
|
+
sce workspace collab-governance-audit
|
|
352
|
+
sce workspace collab-governance-audit --json
|
|
353
|
+
sce workspace collab-governance-audit --strict
|
|
354
|
+
|
|
350
355
|
# Audit takeover baseline drift (non-mutating)
|
|
351
356
|
sce workspace takeover-audit
|
|
352
357
|
sce workspace takeover-audit --json
|
package/docs/releases/README.md
CHANGED
|
@@ -9,6 +9,8 @@ This directory stores release-facing documents:
|
|
|
9
9
|
## Archived Versions
|
|
10
10
|
|
|
11
11
|
- [Release checklist](../release-checklist.md)
|
|
12
|
+
- [v3.6.46 release notes](./v3.6.46.md)
|
|
13
|
+
- [v3.6.45 release notes](./v3.6.45.md)
|
|
12
14
|
- [v3.6.44 release notes](./v3.6.44.md)
|
|
13
15
|
- [v3.6.43 release notes](./v3.6.43.md)
|
|
14
16
|
- [v3.6.42 release notes](./v3.6.42.md)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# v3.6.45 Release Notes
|
|
2
|
+
|
|
3
|
+
Release date: 2026-03-13
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
|
|
7
|
+
- Added `sce workspace collab-governance-audit` to convert collaboration governance drift into an executable audit, covering `.gitignore` boundaries, runtime-state tracking, `multi-agent.json`, legacy `.kiro*` references, and `.sce/steering/` boundary hygiene.
|
|
8
|
+
- Brought the repository itself into compliance by extending the collaboration ignore rules, seeding `.sce/config/multi-agent.json`, and removing `.sce/steering/CURRENT_CONTEXT.md` from Git tracking while preserving the local file.
|
|
9
|
+
|
|
10
|
+
## Verification
|
|
11
|
+
|
|
12
|
+
- `npx jest tests/unit/workspace/collab-governance-audit.test.js tests/integration/workspace-collab-governance-audit-cli.integration.test.js --runInBand`
|
|
13
|
+
- `node bin/sce.js workspace collab-governance-audit --strict`
|
|
14
|
+
|
|
15
|
+
## Release Notes
|
|
16
|
+
|
|
17
|
+
- This patch is intentionally audit-first. It adds a reusable governance gate for co-work drift, rather than introducing auto-migration or hidden cross-machine sync behavior.
|
|
18
|
+
- The shipped baseline now reflects the intended runtime boundary: collaboration runtime files stay local, while shared config and specs remain versioned.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# v3.6.46 Release Notes
|
|
2
|
+
|
|
3
|
+
Release date: 2026-03-13
|
|
4
|
+
|
|
5
|
+
## Highlights
|
|
6
|
+
|
|
7
|
+
- Fixed the npm package publish surface so the root `scripts/` directory is included in the released tarball again.
|
|
8
|
+
- Added `npm run gate:npm-runtime-assets`, which inspects `npm pack --json --dry-run` output and blocks publish if any runtime `scripts/*.js` file would be missing from the package.
|
|
9
|
+
- Hardened the new gate for Windows by running `npm pack` through a shell-compatible path and increasing the command output buffer for the repository's large manifest.
|
|
10
|
+
|
|
11
|
+
## Verification
|
|
12
|
+
|
|
13
|
+
- `npx jest tests/unit/scripts/npm-package-runtime-asset-check.test.js --runInBand`
|
|
14
|
+
- `node scripts/npm-package-runtime-asset-check.js --json`
|
|
15
|
+
- `npm pack --json --dry-run`
|
|
16
|
+
- Installed the packed `scene-capability-engine-3.6.46.tgz` into a clean temp project and verified:
|
|
17
|
+
- `node node_modules/scene-capability-engine/bin/scene-capability-engine.js --version`
|
|
18
|
+
- `node node_modules/scene-capability-engine/bin/scene-capability-engine.js workspace delivery-audit --json`
|
|
19
|
+
|
|
20
|
+
## Release Notes
|
|
21
|
+
|
|
22
|
+
- This release fixes the broken runtime asset packaging observed in `3.6.44` and `3.6.45`. The failure mode was a missing `scripts/git-managed-gate.js`, but the underlying defect affected the full root `scripts/` runtime surface.
|
|
23
|
+
- For already-installed `3.6.44` or `3.6.45`, the smallest emergency patch is to restore `scripts/git-managed-gate.js` into the installed package. `3.6.46` is the proper fix and should replace those versions.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# v3.6.45 发布说明
|
|
2
|
+
|
|
3
|
+
发布日期:2026-03-13
|
|
4
|
+
|
|
5
|
+
## 重点变化
|
|
6
|
+
|
|
7
|
+
- 新增 `sce workspace collab-governance-audit`,把协作治理漂移变成可执行审计,覆盖 `.gitignore` 边界、运行态文件误入 Git、`multi-agent.json`、遗留 `.kiro*` 引用,以及 `.sce/steering/` 核心区治理。
|
|
8
|
+
- 同步把仓库自身基线校正到合规状态:补齐协作 ignore 规则、落地 `.sce/config/multi-agent.json`,并将 `.sce/steering/CURRENT_CONTEXT.md` 从 Git 跟踪中移除但保留本地文件。
|
|
9
|
+
|
|
10
|
+
## 验证
|
|
11
|
+
|
|
12
|
+
- `npx jest tests/unit/workspace/collab-governance-audit.test.js tests/integration/workspace-collab-governance-audit-cli.integration.test.js --runInBand`
|
|
13
|
+
- `node bin/sce.js workspace collab-governance-audit --strict`
|
|
14
|
+
|
|
15
|
+
## 发布说明
|
|
16
|
+
|
|
17
|
+
- 这个补丁版刻意采用 audit-first 策略:先把 co-work 治理漂移显式化并形成可复用门禁,而不是直接引入自动迁移或隐式同步。
|
|
18
|
+
- 本次发版后的仓库基线与能力目标一致:协作运行态文件留在本地,共享配置和 spec 继续纳入版本化治理。
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# v3.6.46 发布说明
|
|
2
|
+
|
|
3
|
+
发布日期:2026-03-13
|
|
4
|
+
|
|
5
|
+
## 重点变化
|
|
6
|
+
|
|
7
|
+
- 修复 npm 包发布内容,重新把根目录 `scripts/` 一并纳入 tarball,避免安装后的 `sce` 因缺少运行时脚本而崩溃。
|
|
8
|
+
- 新增 `npm run gate:npm-runtime-assets`,基于 `npm pack --json --dry-run` 检查所有运行时 `scripts/*.js` 是否都会进入发布包,缺失时直接阻断发布。
|
|
9
|
+
- 加固了该门禁在 Windows 下的执行路径,避免 `npm pack` 命令解析和大体积输出导致误判。
|
|
10
|
+
|
|
11
|
+
## 验证
|
|
12
|
+
|
|
13
|
+
- `npx jest tests/unit/scripts/npm-package-runtime-asset-check.test.js --runInBand`
|
|
14
|
+
- `node scripts/npm-package-runtime-asset-check.js --json`
|
|
15
|
+
- `npm pack --json --dry-run`
|
|
16
|
+
- 将打出的 `scene-capability-engine-3.6.46.tgz` 安装到全新临时工程后验证:
|
|
17
|
+
- `node node_modules/scene-capability-engine/bin/scene-capability-engine.js --version`
|
|
18
|
+
- `node node_modules/scene-capability-engine/bin/scene-capability-engine.js workspace delivery-audit --json`
|
|
19
|
+
|
|
20
|
+
## 发布说明
|
|
21
|
+
|
|
22
|
+
- 这次补丁修复的是 `3.6.44` 与 `3.6.45` 中已经暴露的 npm 运行时缺件问题。表面报错是 `scripts/git-managed-gate.js` 缺失,但根因是整个根级 `scripts/` 运行时面没有被发布进去。
|
|
23
|
+
- 对已经安装的 `3.6.44` 或 `3.6.45`,最小应急补丁是补回安装目录中的 `scripts/git-managed-gate.js`;`3.6.46` 才是完整的正式修复版本。
|