flow-comet 1.7.0 → 1.8.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/.flow-comet/skills/flow-comet/INSTALLED_VERSION +1 -1
- package/.flow-comet/skills/flow-comet/SKILL.md +16 -14
- package/.flow-comet/skills/flow-comet/reference/commit-discipline.md +1 -1
- package/.flow-comet/skills/flow-comet/reference/decision-points.md +5 -5
- package/.flow-comet/skills/flow-comet/reference/dirty-worktree.md +1 -1
- package/.flow-comet/skills/flow-comet/reference/entry-detail.md +9 -9
- package/.flow-comet/skills/flow-comet/reference/fix-loop.md +4 -4
- package/.flow-comet/skills/flow-comet/reference/init-detection.md +1 -1
- package/.flow-comet/skills/flow-comet/reference/platform-facts.md +2 -2
- package/.flow-comet/skills/flow-comet/reference/post-archive-handoff.md +264 -0
- package/.flow-comet/skills/flow-comet/reference/recovery.md +1 -1
- package/.flow-comet/skills/flow-comet/reference/replan.md +1 -1
- package/.flow-comet/skills/flow-comet/scripts/comet-check.mjs +1 -0
- package/.flow-comet/skills/flow-comet/scripts/comet-hook-guard.mjs +270 -30
- package/.flow-comet/skills/flow-comet/scripts/items/a.mjs +25 -8
- package/.flow-comet/skills/flow-comet/scripts/items/b.mjs +41 -38
- package/.flow-comet/skills/flow-comet/scripts/items/c.mjs +11 -9
- package/.flow-comet/skills/flow-comet/scripts/items/e.mjs +2 -2
- package/.flow-comet/skills/flow-comet/scripts/items/f.mjs +1 -1
- package/.flow-comet/skills/flow-comet/scripts/items/h.mjs +112 -53
- package/.flow-comet/skills/flow-comet/scripts/items/k.mjs +357 -3
- package/.flow-comet/skills/flow-comet/scripts/items/l.mjs +24 -1
- package/.flow-comet/skills/flow-comet/scripts/items/m.mjs +2 -2
- package/.flow-comet/skills/flow-comet/scripts/items/n.mjs +9 -10
- package/.flow-comet/skills/flow-comet/scripts/lib/ac-coverage.mjs +8 -8
- package/.flow-comet/skills/flow-comet/scripts/lib/fix-loop-node.mjs +4 -15
- package/.flow-comet/skills/flow-comet/scripts/lib/guard-evidence-gates.mjs +79 -107
- package/.flow-comet/skills/flow-comet/scripts/lib/guard-gates.mjs +183 -232
- package/.flow-comet/skills/flow-comet/scripts/lib/guard-routing.mjs +91 -14
- package/.flow-comet/skills/flow-comet/scripts/lib/guard-template-fidelity.mjs +20 -32
- package/.flow-comet/skills/flow-comet/scripts/lib/guard-uidesign.mjs +10 -19
- package/.flow-comet/skills/flow-comet/scripts/lib/state-commands-admin.mjs +27 -17
- package/.flow-comet/skills/flow-comet/scripts/lib/state-commands-flow.mjs +240 -87
- package/.flow-comet/skills/flow-comet/scripts/lib/state-commands-recovery.mjs +15 -22
- package/.flow-comet/skills/flow-comet/scripts/lib/state-determine.mjs +11 -4
- package/.flow-comet/skills/flow-comet/scripts/lib/state-io.mjs +192 -24
- package/.flow-comet/skills/flow-comet/scripts/lib/state-skillmarkers.mjs +55 -44
- package/.flow-comet/skills/flow-comet/scripts/lib/system-fixtures.mjs +2 -4
- package/.flow-comet/skills/flow-comet/scripts/lib/test-assertions.mjs +0 -3
- package/.flow-comet/skills/flow-comet/scripts/lib/test-fixtures.mjs +191 -17
- package/.flow-comet/skills/flow-comet/scripts/lib/test-helpers.mjs +3 -0
- package/.flow-comet/skills/flow-comet/scripts/lib/text-anchor-checks.mjs +23 -5
- package/.flow-comet/skills/flow-comet/scripts/lib/wave-projection.mjs +10 -11
- package/.flow-comet/skills/flow-comet/scripts/protocol-utils.mjs +40 -3
- package/.flow-comet/skills/flow-comet/scripts/route-node.mjs +12 -5
- package/.flow-comet/skills/flow-comet/scripts/scenarios/a.mjs +193 -111
- package/.flow-comet/skills/flow-comet/scripts/scenarios/b.mjs +314 -57
- package/.flow-comet/skills/flow-comet/scripts/scenarios/c.mjs +311 -216
- package/.flow-comet/skills/flow-comet/scripts/scenarios/d.mjs +33 -62
- package/.flow-comet/skills/flow-comet/scripts/scenarios/e.mjs +188 -91
- package/.flow-comet/skills/flow-comet/scripts/scenarios/f.mjs +94 -37
- package/.flow-comet/skills/flow-comet/scripts/scenarios/g.mjs +36 -27
- package/.flow-comet/skills/flow-comet/scripts/scenarios/h.mjs +285 -9
- package/.flow-comet/skills/flow-comet/scripts/scenarios/i.mjs +2 -6
- package/.flow-comet/skills/flow-comet/scripts/scenarios/j.mjs +5 -15
- package/.flow-comet/skills/flow-comet/scripts/scenarios/k.mjs +6 -5
- package/.flow-comet/skills/flow-comet/scripts/scenarios/l.mjs +40 -36
- package/.flow-comet/skills/flow-comet/scripts/scenarios/m.mjs +2 -2
- package/.flow-comet/skills/flow-comet/scripts/scenarios/n.mjs +346 -25
- package/.flow-comet/skills/flow-comet/scripts/state-schema.mjs +0 -2
- package/.flow-comet/skills/flow-comet/scripts/workflow-handoff.mjs +41 -54
- package/.flow-comet/skills/flow-comet-archive/SKILL.md +33 -11
- package/.flow-comet/skills/flow-comet-change/SKILL.md +1 -1
- package/.flow-comet/skills/flow-comet-design/SKILL.md +5 -3
- package/.flow-comet/skills/flow-comet-dev/SKILL.md +2 -2
- package/.flow-comet/skills/flow-comet-execute/SKILL.md +11 -11
- package/.flow-comet/skills/flow-comet-integration/SKILL.md +10 -4
- package/.flow-comet/skills/flow-comet-plan/GUIDANCE.md +1 -1
- package/.flow-comet/skills/flow-comet-plan/SKILL.md +8 -8
- package/.flow-comet/skills/flow-comet-review/SKILL.md +8 -8
- package/.flow-comet/skills/flow-comet-subagent-execute/GUIDANCE.md +1 -1
- package/.flow-comet/skills/flow-comet-subagent-execute/SKILL.md +14 -14
- package/.flow-comet/skills/flow-comet-task/SKILL.md +3 -2
- package/.flow-comet/skills/flow-comet-ui-design/SKILL.md +2 -2
- package/.flow-comet/skills/flow-comet-verify/SKILL.md +1 -1
- package/README.md +2 -2
- package/package.json +1 -1
- package/scripts/dsh-bridge.mjs +238 -21
|
@@ -18,12 +18,6 @@ import {
|
|
|
18
18
|
} from '../lib/test-helpers.mjs';
|
|
19
19
|
import {
|
|
20
20
|
CHANGE_ID,
|
|
21
|
-
REPO_ROOT,
|
|
22
|
-
SCRIPTS_DIR,
|
|
23
|
-
SIDE_CONTEXT_SCAN,
|
|
24
|
-
SIDE_EVOLVE,
|
|
25
|
-
SIDE_HEALTH,
|
|
26
|
-
SKILL_PROTOCOL_FILE,
|
|
27
21
|
contextInitModule,
|
|
28
22
|
copyEngineTree,
|
|
29
23
|
engineConsumersOf,
|
|
@@ -33,14 +27,22 @@ import {
|
|
|
33
27
|
handoffFor,
|
|
34
28
|
hasNamedImport,
|
|
35
29
|
makeTmp,
|
|
30
|
+
REPO_ROOT,
|
|
36
31
|
requireModuleExport,
|
|
37
32
|
runSideScript,
|
|
38
|
-
|
|
33
|
+
SCRIPTS_DIR,
|
|
34
|
+
SIDE_CONTEXT_SCAN,
|
|
35
|
+
SIDE_EVOLVE,
|
|
36
|
+
SIDE_HEALTH,
|
|
37
|
+
SKILL_PROTOCOL_FILE,
|
|
39
38
|
skillsRootForScriptsDir,
|
|
39
|
+
skillTreeDocFiles,
|
|
40
40
|
stateSchemaModule,
|
|
41
|
+
strictSummary,
|
|
41
42
|
timeSingleSourceConsumerProblems,
|
|
42
43
|
timeUtilsModule,
|
|
43
44
|
treeFingerprint,
|
|
45
|
+
writeAllNodeDeclarationMarkers,
|
|
44
46
|
writeNodeDeclarationMarkers,
|
|
45
47
|
} from '../lib/test-fixtures.mjs';
|
|
46
48
|
import {
|
|
@@ -98,13 +100,14 @@ export const ENTRIES = [
|
|
|
98
100
|
writeState(dir, st);
|
|
99
101
|
writeFile(dir, '.specs/' + CHANGE_ID + '/TASK.md',
|
|
100
102
|
'# TASK\n\n<task id="T01" parallel="false" status="done"><action>串行任务已完成但缺 SUMMARY</action><write_files>src/t1.mjs</write_files><verify>node --check src/t1.mjs</verify></task>\n');
|
|
103
|
+
writeFile(dir, '.specs/' + CHANGE_ID + '/T01-SUMMARY.md', strictSummary('T01'));
|
|
101
104
|
const res = runGuard(['exit', 'execute', '--apply'], dir);
|
|
102
105
|
assertExit(res, 1);
|
|
103
106
|
assertOut(res, 'BLOCKED');
|
|
104
|
-
assertOut(res, 'task-summaries');
|
|
105
107
|
assertOut(res, 'EMPTY-EXIT 未生效');
|
|
106
108
|
assertNotOut(res, '豁免已生效');
|
|
107
109
|
// 反向子锚:全并行 change 时豁免仍生效,且输出被跳过项清单(补既有全 parallel 通过锚)
|
|
110
|
+
writeNodeDeclarationMarkers(dir, 'execute');
|
|
108
111
|
writeFile(dir, '.specs/' + CHANGE_ID + '/TASK.md',
|
|
109
112
|
'# TASK\n\n<task id="P01" parallel="true" status="pending"><action>并行任务</action><write_files>src/p1.mjs</write_files><verify>node --check src/p1.mjs</verify></task>\n');
|
|
110
113
|
const resParallel = runGuard(['exit', 'execute', '--apply'], dir);
|
|
@@ -682,7 +685,7 @@ export const ENTRIES = [
|
|
|
682
685
|
writeNodeDeclarationMarkers(dir, 'design', { frontend: true });
|
|
683
686
|
// 正例:前端(「视觉调性」段在场且未标注不适用)+ 工件齐备 + 真实声明
|
|
684
687
|
writeDesignExitFixture(dir, {
|
|
685
|
-
|
|
688
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: true, declareUiDesign: true,
|
|
686
689
|
});
|
|
687
690
|
const positive = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
688
691
|
assertExit(positive, 0);
|
|
@@ -691,7 +694,7 @@ export const ENTRIES = [
|
|
|
691
694
|
|
|
692
695
|
// 负例 A:前端缺 UI-DESIGN.md → BLOCKED + 两条恢复路径
|
|
693
696
|
writeDesignExitFixture(dir, {
|
|
694
|
-
|
|
697
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: false, declareUiDesign: true,
|
|
695
698
|
});
|
|
696
699
|
const missingArtifact = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
697
700
|
assertExit(missingArtifact, 1);
|
|
@@ -700,7 +703,7 @@ export const ENTRIES = [
|
|
|
700
703
|
|
|
701
704
|
// 负例 B:工件齐备但缺 `required-skill:design.flow-comet-ui-design` → BLOCKED(出口不再自动补写)
|
|
702
705
|
writeDesignExitFixture(dir, {
|
|
703
|
-
|
|
706
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: true, declareUiDesign: false,
|
|
704
707
|
});
|
|
705
708
|
const missingDeclaration = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
706
709
|
assertExit(missingDeclaration, 1);
|
|
@@ -709,21 +712,20 @@ export const ENTRIES = [
|
|
|
709
712
|
|
|
710
713
|
// 越界:非前端(「视觉调性」段标注不适用)→ 可见跳过,不要求工件、也不要求该声明
|
|
711
714
|
writeDesignExitFixture(dir, {
|
|
712
|
-
|
|
715
|
+
visualTone: VISUAL_TONE_NOT_APPLICABLE, uiDesign: false, declareUiDesign: false,
|
|
713
716
|
});
|
|
714
717
|
const nonFrontend = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
715
718
|
assertExit(nonFrontend, 0);
|
|
716
719
|
assertOut(nonFrontend, 'UI-DESIGN: skipped(非前端)');
|
|
717
720
|
assertOut(nonFrontend, 'ALL CHECKS PASSED');
|
|
718
721
|
|
|
719
|
-
//
|
|
722
|
+
// 同构缺件(无任何新旧标记字段)→ 同判 BLOCKED(单轨,无渐进侧)
|
|
720
723
|
writeDesignExitFixture(dir, {
|
|
721
|
-
|
|
724
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: false, declareUiDesign: true,
|
|
722
725
|
});
|
|
723
726
|
const legacy = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
724
|
-
assertExit(legacy,
|
|
725
|
-
assertOut(legacy, '
|
|
726
|
-
assertOut(legacy, '旧 change 渐进不阻断');
|
|
727
|
+
assertExit(legacy, 1);
|
|
728
|
+
assertOut(legacy, 'BLOCKED: design 出口缺 UI-DESIGN.md');
|
|
727
729
|
},
|
|
728
730
|
},
|
|
729
731
|
|
|
@@ -820,11 +822,14 @@ export const ENTRIES = [
|
|
|
820
822
|
});
|
|
821
823
|
assertTrue(pointerStripped.some((problem) => problem.includes('指针不在场')),
|
|
822
824
|
'抽掉各册指针未被判违规: ' + JSON.stringify(pointerStripped));
|
|
823
|
-
// 行为口径的散文锚:非前端可见跳过 +
|
|
825
|
+
// 行为口径的散文锚:非前端可见跳过 + 同一形态一个判级(与 285 的行为断言同源)。
|
|
826
|
+
// 分级双轨已退役:正向锚单轨表述,负向锚旧「旧 change 渐进 WARN」措辞零残留——两侧共守,
|
|
827
|
+
// 回流即红(旧锁要求「旧 change」在场,等于给已退役的分级背书)。
|
|
824
828
|
const uiDesignSkill = fs.readFileSync(texts['flow-comet-ui-design/SKILL.md'], 'utf8');
|
|
825
829
|
assertTrue(uiDesignSkill.includes('UI-DESIGN: skipped(非前端)'), 'ui-design 技能缺非前端跳过口径');
|
|
826
|
-
assertTrue(uiDesignSkill.includes('
|
|
827
|
-
|
|
830
|
+
assertTrue(uiDesignSkill.includes('同一形态一个判级'), 'ui-design 技能缺单轨判级口径(同一形态一个判级)');
|
|
831
|
+
assertTrue(!/旧\s*change[^。\n]{0,24}(WARN|渐进)/.test(uiDesignSkill),
|
|
832
|
+
'ui-design 技能残留旧分级口径(旧 change 渐进 WARN 应零残留)');
|
|
828
833
|
},
|
|
829
834
|
},
|
|
830
835
|
|
|
@@ -856,7 +861,7 @@ export const ENTRIES = [
|
|
|
856
861
|
assertOut(setRes, 'CONFIG: last_evolve_at = ' + baseline);
|
|
857
862
|
|
|
858
863
|
// ② 真实 init 换 change——跨 change 的全部动作就是这一步(不碰 writeState)
|
|
859
|
-
const secondInit = runStateWithProtocol(dir, ['init', CHANGE_ID + '-2', '--init-skip']);
|
|
864
|
+
const secondInit = runStateWithProtocol(dir, ['init', CHANGE_ID + '-2', '--init-skip', '--replace', CHANGE_ID, '--reason', '验证跨 change 保留演化基线']);
|
|
860
865
|
assertExit(secondInit, 0);
|
|
861
866
|
const state = JSON.parse(readStateBytes(dir));
|
|
862
867
|
assertEqual(state.activeChange, CHANGE_ID + '-2', 'init 后 activeChange');
|
|
@@ -894,7 +899,7 @@ export const ENTRIES = [
|
|
|
894
899
|
// 负例:协议删掉该绑定 → 前端判据成立且缺件也不再拦(门随绑定退场)
|
|
895
900
|
writeUiDesignBindingVariant(dir, 'absent');
|
|
896
901
|
writeDesignExitFixture(dir, {
|
|
897
|
-
|
|
902
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: false, declareUiDesign: true,
|
|
898
903
|
});
|
|
899
904
|
const absent = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
900
905
|
assertExit(absent, 0);
|
|
@@ -906,7 +911,7 @@ export const ENTRIES = [
|
|
|
906
911
|
// 越界:绑定缺席时 design 的另一 guarded 绑定(flow-comet-design)仍由出口自动补写——
|
|
907
912
|
// 零真实声明也放行,证明自动补语义只在登记表命中的绑定上改道
|
|
908
913
|
writeDesignExitFixture(dir, {
|
|
909
|
-
|
|
914
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: true, declareUiDesign: false, declareDesign: false,
|
|
910
915
|
});
|
|
911
916
|
const otherBindings = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
912
917
|
assertExit(otherBindings, 0);
|
|
@@ -915,7 +920,7 @@ export const ENTRIES = [
|
|
|
915
920
|
// 正例:协议写回 guarded 绑定 → 同一夹具、同一 change 立刻恢复拦截(与既有语义逐字一致)
|
|
916
921
|
writeUiDesignBindingVariant(dir, 'guarded');
|
|
917
922
|
writeDesignExitFixture(dir, {
|
|
918
|
-
|
|
923
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: false, declareUiDesign: true,
|
|
919
924
|
});
|
|
920
925
|
const guardedInPlace = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
921
926
|
assertExit(guardedInPlace, 1);
|
|
@@ -924,7 +929,7 @@ export const ENTRIES = [
|
|
|
924
929
|
|
|
925
930
|
// 恢复:补齐工件 + 真实声明 → 出口放行(恢复路径未被键控改动波及)
|
|
926
931
|
writeDesignExitFixture(dir, {
|
|
927
|
-
|
|
932
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: true, declareUiDesign: true,
|
|
928
933
|
});
|
|
929
934
|
const recovered = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
930
935
|
assertExit(recovered, 0);
|
|
@@ -943,7 +948,7 @@ export const ENTRIES = [
|
|
|
943
948
|
// 负例:等级调回 advisory → 缺工件 + 零真实声明也放行(自动补写保持原语义)
|
|
944
949
|
writeUiDesignBindingVariant(dir, 'advisory');
|
|
945
950
|
writeDesignExitFixture(dir, {
|
|
946
|
-
|
|
951
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: false, declareUiDesign: false,
|
|
947
952
|
});
|
|
948
953
|
const advisory = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
949
954
|
assertExit(advisory, 0);
|
|
@@ -954,7 +959,7 @@ export const ENTRIES = [
|
|
|
954
959
|
|
|
955
960
|
// 越界:同一节点的另一 guarded 绑定零真实声明仍放行(自动补语义未被本次键控改道)
|
|
956
961
|
writeDesignExitFixture(dir, {
|
|
957
|
-
|
|
962
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: false, declareUiDesign: false, declareDesign: false,
|
|
958
963
|
});
|
|
959
964
|
const otherBindings = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
960
965
|
assertExit(otherBindings, 0);
|
|
@@ -963,7 +968,7 @@ export const ENTRIES = [
|
|
|
963
968
|
// 正例:等级写回 guarded → 缺件与缺声明双拦截同时回来
|
|
964
969
|
writeUiDesignBindingVariant(dir, 'guarded');
|
|
965
970
|
writeDesignExitFixture(dir, {
|
|
966
|
-
|
|
971
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: false, declareUiDesign: true,
|
|
967
972
|
});
|
|
968
973
|
const guardedInPlace = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
969
974
|
assertExit(guardedInPlace, 1);
|
|
@@ -972,7 +977,7 @@ export const ENTRIES = [
|
|
|
972
977
|
|
|
973
978
|
// 恢复:补齐工件 + 真实声明 → 放行
|
|
974
979
|
writeDesignExitFixture(dir, {
|
|
975
|
-
|
|
980
|
+
visualTone: VISUAL_TONE_APPLICABLE, uiDesign: true, declareUiDesign: true,
|
|
976
981
|
});
|
|
977
982
|
const recovered = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
978
983
|
assertExit(recovered, 0);
|
|
@@ -991,7 +996,7 @@ export const ENTRIES = [
|
|
|
991
996
|
writeNodeDeclarationMarkers(dir, 'design', { frontend: true });
|
|
992
997
|
// 负例:自然句子(标记词在行首且后接「于」,句内再出现一次)→ 判据仍是前端 ⇒ 缺件 BLOCKED
|
|
993
998
|
writeDesignExitFixture(dir, {
|
|
994
|
-
|
|
999
|
+
visualTone: VISUAL_TONE_NATURAL_SENTENCE, uiDesign: false, declareUiDesign: true,
|
|
995
1000
|
});
|
|
996
1001
|
const naturalSentence = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
997
1002
|
assertExit(naturalSentence, 1);
|
|
@@ -1002,7 +1007,7 @@ export const ENTRIES = [
|
|
|
1002
1007
|
// 负例(结构形态的越界面):子维度字段 `- 暗色主题:不适用` 是结构形态但主体不是本 change
|
|
1003
1008
|
// 的适用性 ⇒ 仍判前端(标签表把可误伤的字段形态挡在外面)
|
|
1004
1009
|
writeDesignExitFixture(dir, {
|
|
1005
|
-
|
|
1010
|
+
visualTone: VISUAL_TONE_SUBDIMENSION_FIELD, uiDesign: false, declareUiDesign: true,
|
|
1006
1011
|
});
|
|
1007
1012
|
const subDimensionField = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
1008
1013
|
assertExit(subDimensionField, 1);
|
|
@@ -1011,7 +1016,6 @@ export const ENTRIES = [
|
|
|
1011
1016
|
|
|
1012
1017
|
// 越界:标记出现在「视觉调性」段之外的独立行 → 不参与判据(判据限段内)
|
|
1013
1018
|
writeDesignExitFixture(dir, {
|
|
1014
|
-
newChange: true,
|
|
1015
1019
|
visualTone: VISUAL_TONE_APPLICABLE,
|
|
1016
1020
|
changeTail: '\n## 范围排除(Out of Scope)\n\n不适用。\n',
|
|
1017
1021
|
uiDesign: false,
|
|
@@ -1024,7 +1028,7 @@ export const ENTRIES = [
|
|
|
1024
1028
|
|
|
1025
1029
|
// 正例 A:独立行(带括注理由)→ 可见跳过 + 回显命中片段
|
|
1026
1030
|
writeDesignExitFixture(dir, {
|
|
1027
|
-
|
|
1031
|
+
visualTone: VISUAL_TONE_NOT_APPLICABLE, uiDesign: false, declareUiDesign: false,
|
|
1028
1032
|
});
|
|
1029
1033
|
const standalone = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
1030
1034
|
assertExit(standalone, 0);
|
|
@@ -1034,7 +1038,7 @@ export const ENTRIES = [
|
|
|
1034
1038
|
|
|
1035
1039
|
// 正例 B:字段值位(`- 适用性:不适用(…)`)→ 同样判非前端(结构形态之二,非行首)
|
|
1036
1040
|
writeDesignExitFixture(dir, {
|
|
1037
|
-
|
|
1041
|
+
visualTone: VISUAL_TONE_FIELD_MARKER, uiDesign: false, declareUiDesign: false,
|
|
1038
1042
|
});
|
|
1039
1043
|
const fieldValue = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
1040
1044
|
assertExit(fieldValue, 0);
|
|
@@ -1044,7 +1048,7 @@ export const ENTRIES = [
|
|
|
1044
1048
|
|
|
1045
1049
|
// 正例 C:行首形态(标记 + 破折号理由,非独立行)→ 同样判非前端
|
|
1046
1050
|
writeDesignExitFixture(dir, {
|
|
1047
|
-
|
|
1051
|
+
visualTone: VISUAL_TONE_LINE_HEAD_MARKER, uiDesign: false, declareUiDesign: false,
|
|
1048
1052
|
});
|
|
1049
1053
|
const lineHead = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
1050
1054
|
assertExit(lineHead, 0);
|
|
@@ -1054,7 +1058,7 @@ export const ENTRIES = [
|
|
|
1054
1058
|
|
|
1055
1059
|
// 恢复:把调性段改成结构形态(标注路径)→ 同一 change 放行,命中片段一并回显
|
|
1056
1060
|
writeDesignExitFixture(dir, {
|
|
1057
|
-
|
|
1061
|
+
visualTone: VISUAL_TONE_NOT_APPLICABLE, uiDesign: false, declareUiDesign: false,
|
|
1058
1062
|
});
|
|
1059
1063
|
const recovered = runGuardWithProtocol(dir, ['exit', 'design']);
|
|
1060
1064
|
assertExit(recovered, 0);
|
|
@@ -915,7 +915,7 @@ export const ENTRIES = [
|
|
|
915
915
|
|
|
916
916
|
// ② 段缺席(CONTEXT 不含 intel-scan 段)→ 无可比对面 → 零提示
|
|
917
917
|
writeFile(dir, '.specs/CONTEXT.md', contextFixtureText({ intelSection: false }));
|
|
918
|
-
const noSection = runStateWithProtocol(dir, ['init', CHANGE_ID + '-no-section']);
|
|
918
|
+
const noSection = runStateWithProtocol(dir, ['init', CHANGE_ID + '-no-section', '--replace', CHANGE_ID, '--reason', '验证段缺席零误报']);
|
|
919
919
|
assertExit(noSection, 0);
|
|
920
920
|
assertNotOut(noSection, 'INIT-NOTICE');
|
|
921
921
|
|
|
@@ -923,7 +923,7 @@ export const ENTRIES = [
|
|
|
923
923
|
// 写入」长期不可见);占位词元之后的说明不参与判定(类别由词元决定)
|
|
924
924
|
writeFile(dir, '.specs/CONTEXT.md',
|
|
925
925
|
contextFixtureText().replace(INTEL_FIELD_VALUE, '(待扫描)'));
|
|
926
|
-
const placeholder = runStateWithProtocol(dir, ['init', CHANGE_ID + '-placeholder']);
|
|
926
|
+
const placeholder = runStateWithProtocol(dir, ['init', CHANGE_ID + '-placeholder', '--replace', CHANGE_ID + '-no-section', '--reason', '验证占位取值不静默']);
|
|
927
927
|
assertExit(placeholder, 0);
|
|
928
928
|
assertOut(placeholder, 'INIT-NOTICE');
|
|
929
929
|
assertOut(placeholder, '段内取值不是合法时间戳');
|