skill-family-engineering-kit 0.2.0 → 0.2.1

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/CHANGELOG.zh-CN.md +21 -0
  3. package/NOTICE +10 -0
  4. package/README.md +157 -55
  5. package/README.zh-CN.md +207 -0
  6. package/candidate/index.mjs +4 -0
  7. package/candidate/profile-bundle.mjs +268 -0
  8. package/candidate/projection-bundle-cli.mjs +22 -0
  9. package/docs/404.html +1434 -408
  10. package/docs/agents/architecture-routing/index.html +1944 -0
  11. package/docs/agents/capability-catalog.en.json +1561 -0
  12. package/docs/agents/capability-catalog.json +934 -0
  13. package/docs/agents/capability-catalog.schema.json +179 -0
  14. package/docs/agents/capability-catalog.zh-CN.json +1561 -0
  15. package/docs/agents/index.html +1914 -0
  16. package/docs/architecture/index.html +1706 -497
  17. package/docs/assets/javascripts/lunr/tinyseg.js +2 -2
  18. package/docs/assets/javascripts/lunr/wordcut.js +37 -37
  19. package/docs/en/agents/architecture-routing/index.html +1944 -0
  20. package/docs/en/agents/index.html +1925 -0
  21. package/docs/en/architecture/index.html +2187 -0
  22. package/docs/en/examples-and-fixtures/index.html +1888 -0
  23. package/docs/en/help/index.html +2035 -0
  24. package/docs/en/index.html +1895 -0
  25. package/docs/en/licensing/index.html +1917 -0
  26. package/docs/en/migration/index.html +2334 -0
  27. package/docs/en/quickstart/index.html +1919 -0
  28. package/docs/en/recipes/adapter-text-closure/index.html +2000 -0
  29. package/docs/en/recipes/adopt-existing-repository/index.html +1986 -0
  30. package/docs/en/recipes/deterministic-human-report/index.html +1998 -0
  31. package/docs/en/recipes/domain-schema-validation/index.html +2007 -0
  32. package/docs/en/recipes/durable-local-state/index.html +2009 -0
  33. package/docs/en/recipes/host-profile-integration/index.html +2001 -0
  34. package/docs/en/recipes/index.html +1876 -0
  35. package/docs/en/recipes/safe-filesystem-and-atomic-write/index.html +1994 -0
  36. package/docs/en/reference/api/index.html +1917 -0
  37. package/docs/en/reference/compatibility/index.html +1990 -0
  38. package/docs/en/reference/failure-and-side-effect-matrix/index.html +2216 -0
  39. package/docs/examples-and-fixtures/index.html +1871 -0
  40. package/docs/git-lifecycle/index.html +1508 -482
  41. package/docs/help/index.html +1655 -554
  42. package/docs/index.html +1479 -450
  43. package/docs/integration/audit/failure-evidence/index.html +1488 -462
  44. package/docs/integration/audit/independence/index.html +1513 -487
  45. package/docs/integration/audit/index.html +1514 -488
  46. package/docs/integration/audit/mutation-taxonomy/index.html +1548 -522
  47. package/docs/integration/audit/version-compatibility/index.html +1489 -463
  48. package/docs/licensing/index.html +1917 -0
  49. package/docs/migration/index.html +1678 -586
  50. package/docs/public/status/index.html +1542 -516
  51. package/docs/quickstart/index.html +1589 -539
  52. package/docs/recipes/adapter-text-closure/index.html +2000 -0
  53. package/docs/recipes/adopt-existing-repository/index.html +1986 -0
  54. package/docs/recipes/deterministic-human-report/index.html +1998 -0
  55. package/docs/recipes/domain-schema-validation/index.html +2007 -0
  56. package/docs/recipes/durable-local-state/index.html +2009 -0
  57. package/docs/recipes/host-profile-integration/index.html +2001 -0
  58. package/docs/recipes/index.html +1876 -0
  59. package/docs/recipes/safe-filesystem-and-atomic-write/index.html +1994 -0
  60. package/docs/reference/api/contracts/index.html +2532 -0
  61. package/docs/reference/api/engineering-kit/index.html +2551 -0
  62. package/docs/reference/api/harness/index.html +2608 -0
  63. package/docs/reference/api/index.html +1857 -0
  64. package/docs/reference/compatibility/index.html +1990 -0
  65. package/docs/reference/failure-and-side-effect-matrix/index.html +2216 -0
  66. package/docs/search/search_index.json +1 -1
  67. package/docs/setup/index.html +1494 -468
  68. package/docs/sitemap.xml +152 -0
  69. package/package.json +14 -4
  70. package/release-notes/0.2.1.yaml +23 -0
@@ -0,0 +1,2216 @@
1
+
2
+ <!doctype html>
3
+ <html lang="zh" class="no-js">
4
+ <head>
5
+
6
+ <meta charset="utf-8">
7
+ <meta name="viewport" content="width=device-width,initial-scale=1">
8
+
9
+ <meta name="description" content="Skill Family 生命周期公共工程基础设施父工作区">
10
+
11
+
12
+
13
+ <link rel="canonical" href="https://ifoohoo.github.io/skill-family-engineering-kit/en/reference/failure-and-side-effect-matrix/">
14
+
15
+
16
+ <link rel="prev" href="../compatibility/">
17
+
18
+
19
+ <link rel="next" href="../api/">
20
+
21
+
22
+
23
+
24
+
25
+ <link rel="icon" href="../../../assets/images/favicon.png">
26
+ <meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.7.7">
27
+
28
+
29
+
30
+ <title>English · Failures and side effects - Skill Family Foundation</title>
31
+
32
+
33
+
34
+ <link rel="stylesheet" href="../../../assets/stylesheets/main.ec1eaa64.min.css">
35
+
36
+
37
+ <link rel="stylesheet" href="../../../assets/stylesheets/palette.ab4e12ef.min.css">
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+ <script>__md_scope=new URL("../../..",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
51
+
52
+
53
+
54
+
55
+
56
+ </head>
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+ <body dir="ltr" data-md-color-scheme="default" data-md-color-primary="indigo" data-md-color-accent="indigo">
67
+
68
+
69
+ <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
70
+ <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
71
+ <label class="md-overlay" for="__drawer"></label>
72
+ <div data-md-component="skip">
73
+
74
+
75
+ <a href="#Failure-and-Side-Effect-Matrix" class="md-skip">
76
+ 跳转至
77
+ </a>
78
+
79
+ </div>
80
+ <div data-md-component="announce">
81
+
82
+ </div>
83
+
84
+
85
+
86
+
87
+
88
+
89
+ <header class="md-header md-header--shadow" data-md-component="header">
90
+ <nav class="md-header__inner md-grid" aria-label="页眉">
91
+ <a href="../../.." title="Skill Family Foundation" class="md-header__button md-logo" aria-label="Skill Family Foundation" data-md-component="logo">
92
+
93
+
94
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54"/></svg>
95
+
96
+ </a>
97
+ <label class="md-header__button md-icon" for="__drawer">
98
+
99
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z"/></svg>
100
+ </label>
101
+ <div class="md-header__title" data-md-component="header-title">
102
+ <div class="md-header__ellipsis">
103
+ <div class="md-header__topic">
104
+ <span class="md-ellipsis">
105
+ Skill Family Foundation
106
+ </span>
107
+ </div>
108
+ <div class="md-header__topic" data-md-component="header-topic">
109
+ <span class="md-ellipsis">
110
+
111
+ English · Failures and side effects
112
+
113
+ </span>
114
+ </div>
115
+ </div>
116
+ </div>
117
+
118
+
119
+ <form class="md-header__option" data-md-component="palette">
120
+
121
+
122
+
123
+
124
+ <input class="md-option" data-md-color-media="(prefers-color-scheme: light)" data-md-color-scheme="default" data-md-color-primary="indigo" data-md-color-accent="indigo" aria-label="切换到深色模式" type="radio" name="__palette" id="__palette_0">
125
+
126
+ <label class="md-header__button md-icon" title="切换到深色模式" for="__palette_1" hidden>
127
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a4 4 0 0 0-4 4 4 4 0 0 0 4 4 4 4 0 0 0 4-4 4 4 0 0 0-4-4m0 10a6 6 0 0 1-6-6 6 6 0 0 1 6-6 6 6 0 0 1 6 6 6 6 0 0 1-6 6m8-9.31V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12z"/></svg>
128
+ </label>
129
+
130
+
131
+
132
+
133
+
134
+ <input class="md-option" data-md-color-media="(prefers-color-scheme: dark)" data-md-color-scheme="slate" data-md-color-primary="indigo" data-md-color-accent="indigo" aria-label="切换到浅色模式" type="radio" name="__palette" id="__palette_1">
135
+
136
+ <label class="md-header__button md-icon" title="切换到浅色模式" for="__palette_0" hidden>
137
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6a6 6 0 0 1 6 6 6 6 0 0 1-6 6m8-9.31V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12z"/></svg>
138
+ </label>
139
+
140
+
141
+ </form>
142
+
143
+
144
+
145
+ <script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
146
+
147
+
148
+
149
+
150
+
151
+ <label class="md-header__button md-icon" for="__search">
152
+
153
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
154
+ </label>
155
+ <div class="md-search" data-md-component="search" role="dialog">
156
+ <label class="md-search__overlay" for="__search"></label>
157
+ <div class="md-search__inner" role="search">
158
+ <form class="md-search__form" name="search">
159
+ <input type="text" class="md-search__input" name="query" aria-label="搜索" placeholder="搜索" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
160
+ <label class="md-search__icon md-icon" for="__search">
161
+
162
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
163
+
164
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"/></svg>
165
+ </label>
166
+ <nav class="md-search__options" aria-label="查找">
167
+
168
+ <button type="reset" class="md-search__icon md-icon" title="清空当前内容" aria-label="清空当前内容" tabindex="-1">
169
+
170
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
171
+ </button>
172
+ </nav>
173
+
174
+ </form>
175
+ <div class="md-search__output">
176
+ <div class="md-search__scrollwrap" tabindex="0" data-md-scrollfix>
177
+ <div class="md-search-result" data-md-component="search-result">
178
+ <div class="md-search-result__meta">
179
+ 正在初始化搜索引擎
180
+ </div>
181
+ <ol class="md-search-result__list" role="presentation"></ol>
182
+ </div>
183
+ </div>
184
+ </div>
185
+ </div>
186
+ </div>
187
+
188
+
189
+
190
+ </nav>
191
+
192
+ </header>
193
+
194
+ <div class="md-container" data-md-component="container">
195
+
196
+
197
+
198
+
199
+
200
+
201
+ <main class="md-main" data-md-component="main">
202
+ <div class="md-main__inner md-grid">
203
+
204
+
205
+
206
+ <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
207
+ <div class="md-sidebar__scrollwrap">
208
+ <div class="md-sidebar__inner">
209
+
210
+
211
+
212
+
213
+ <nav class="md-nav md-nav--primary" aria-label="导航栏" data-md-level="0">
214
+ <label class="md-nav__title" for="__drawer">
215
+ <a href="../../.." title="Skill Family Foundation" class="md-nav__button md-logo" aria-label="Skill Family Foundation" data-md-component="logo">
216
+
217
+
218
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54"/></svg>
219
+
220
+ </a>
221
+ Skill Family Foundation
222
+ </label>
223
+
224
+ <ul class="md-nav__list" data-md-scrollfix>
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+ <li class="md-nav__item">
233
+ <a href="../../.." class="md-nav__link">
234
+
235
+
236
+
237
+ <span class="md-ellipsis">
238
+
239
+
240
+ 中文 · 首页
241
+
242
+
243
+
244
+ </span>
245
+
246
+
247
+
248
+ </a>
249
+ </li>
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+ <li class="md-nav__item">
260
+ <a href="../../../setup/" class="md-nav__link">
261
+
262
+
263
+
264
+ <span class="md-ellipsis">
265
+
266
+
267
+ 中文 · 安装与环境
268
+
269
+
270
+
271
+ </span>
272
+
273
+
274
+
275
+ </a>
276
+ </li>
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+ <li class="md-nav__item">
287
+ <a href="../../../quickstart/" class="md-nav__link">
288
+
289
+
290
+
291
+ <span class="md-ellipsis">
292
+
293
+
294
+ 中文 · 快速开始
295
+
296
+
297
+
298
+ </span>
299
+
300
+
301
+
302
+ </a>
303
+ </li>
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+ <li class="md-nav__item">
314
+ <a href="../../../git-lifecycle/" class="md-nav__link">
315
+
316
+
317
+
318
+ <span class="md-ellipsis">
319
+
320
+
321
+ 中文 · Git 生命周期指南
322
+
323
+
324
+
325
+ </span>
326
+
327
+
328
+
329
+ </a>
330
+ </li>
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+ <li class="md-nav__item">
341
+ <a href="../../../help/" class="md-nav__link">
342
+
343
+
344
+
345
+ <span class="md-ellipsis">
346
+
347
+
348
+ 中文 · 能力与诊断
349
+
350
+
351
+
352
+ </span>
353
+
354
+
355
+
356
+ </a>
357
+ </li>
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+ <li class="md-nav__item">
368
+ <a href="../../../architecture/" class="md-nav__link">
369
+
370
+
371
+
372
+ <span class="md-ellipsis">
373
+
374
+
375
+ 中文 · 架构边界
376
+
377
+
378
+
379
+ </span>
380
+
381
+
382
+
383
+ </a>
384
+ </li>
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+ <li class="md-nav__item">
395
+ <a href="../../../public/status/" class="md-nav__link">
396
+
397
+
398
+
399
+ <span class="md-ellipsis">
400
+
401
+
402
+ 中文 · 公开状态
403
+
404
+
405
+
406
+ </span>
407
+
408
+
409
+
410
+ </a>
411
+ </li>
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+ <li class="md-nav__item">
422
+ <a href="../../../migration/" class="md-nav__link">
423
+
424
+
425
+
426
+ <span class="md-ellipsis">
427
+
428
+
429
+ 中文 · 存量采用与迁移
430
+
431
+
432
+
433
+ </span>
434
+
435
+
436
+
437
+ </a>
438
+ </li>
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+ <li class="md-nav__item">
449
+ <a href="../../../licensing/" class="md-nav__link">
450
+
451
+
452
+
453
+ <span class="md-ellipsis">
454
+
455
+
456
+ 中文 · 许可与署名
457
+
458
+
459
+
460
+ </span>
461
+
462
+
463
+
464
+ </a>
465
+ </li>
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+ <li class="md-nav__item">
476
+ <a href="../../../agents/" class="md-nav__link">
477
+
478
+
479
+
480
+ <span class="md-ellipsis">
481
+
482
+
483
+ 中文 · 智能体入口
484
+
485
+
486
+
487
+ </span>
488
+
489
+
490
+
491
+ </a>
492
+ </li>
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+ <li class="md-nav__item">
503
+ <a href="../../../agents/architecture-routing/" class="md-nav__link">
504
+
505
+
506
+
507
+ <span class="md-ellipsis">
508
+
509
+
510
+ 中文 · 架构路由
511
+
512
+
513
+
514
+ </span>
515
+
516
+
517
+
518
+ </a>
519
+ </li>
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+ <li class="md-nav__item">
530
+ <a href="../../../reference/compatibility/" class="md-nav__link">
531
+
532
+
533
+
534
+ <span class="md-ellipsis">
535
+
536
+
537
+ 中文 · 兼容性
538
+
539
+
540
+
541
+ </span>
542
+
543
+
544
+
545
+ </a>
546
+ </li>
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+ <li class="md-nav__item">
557
+ <a href="../../../reference/failure-and-side-effect-matrix/" class="md-nav__link">
558
+
559
+
560
+
561
+ <span class="md-ellipsis">
562
+
563
+
564
+ 中文 · 失败与副作用
565
+
566
+
567
+
568
+ </span>
569
+
570
+
571
+
572
+ </a>
573
+ </li>
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+ <li class="md-nav__item">
584
+ <a href="../../../reference/api/" class="md-nav__link">
585
+
586
+
587
+
588
+ <span class="md-ellipsis">
589
+
590
+
591
+ 中文 · API 参考
592
+
593
+
594
+
595
+ </span>
596
+
597
+
598
+
599
+ </a>
600
+ </li>
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+ <li class="md-nav__item">
611
+ <a href="../../../reference/api/contracts/" class="md-nav__link">
612
+
613
+
614
+
615
+ <span class="md-ellipsis">
616
+
617
+
618
+ 中文 · Contracts API
619
+
620
+
621
+
622
+ </span>
623
+
624
+
625
+
626
+ </a>
627
+ </li>
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+ <li class="md-nav__item">
638
+ <a href="../../../reference/api/harness/" class="md-nav__link">
639
+
640
+
641
+
642
+ <span class="md-ellipsis">
643
+
644
+
645
+ 中文 · Harness API
646
+
647
+
648
+
649
+ </span>
650
+
651
+
652
+
653
+ </a>
654
+ </li>
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+
664
+ <li class="md-nav__item">
665
+ <a href="../../../reference/api/engineering-kit/" class="md-nav__link">
666
+
667
+
668
+
669
+ <span class="md-ellipsis">
670
+
671
+
672
+ 中文 · Engineering Kit API
673
+
674
+
675
+
676
+ </span>
677
+
678
+
679
+
680
+ </a>
681
+ </li>
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+ <li class="md-nav__item">
692
+ <a href="../../../examples-and-fixtures/" class="md-nav__link">
693
+
694
+
695
+
696
+ <span class="md-ellipsis">
697
+
698
+
699
+ 中文 · 样例与 Fixture
700
+
701
+
702
+
703
+ </span>
704
+
705
+
706
+
707
+ </a>
708
+ </li>
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+ <li class="md-nav__item">
719
+ <a href="../../../recipes/" class="md-nav__link">
720
+
721
+
722
+
723
+ <span class="md-ellipsis">
724
+
725
+
726
+ 中文 · Recipes
727
+
728
+
729
+
730
+ </span>
731
+
732
+
733
+
734
+ </a>
735
+ </li>
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+ <li class="md-nav__item">
746
+ <a href="../../../recipes/adopt-existing-repository/" class="md-nav__link">
747
+
748
+
749
+
750
+ <span class="md-ellipsis">
751
+
752
+
753
+ 中文 · 采用存量仓库
754
+
755
+
756
+
757
+ </span>
758
+
759
+
760
+
761
+ </a>
762
+ </li>
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+ <li class="md-nav__item">
773
+ <a href="../../../recipes/safe-filesystem-and-atomic-write/" class="md-nav__link">
774
+
775
+
776
+
777
+ <span class="md-ellipsis">
778
+
779
+
780
+ 中文 · 安全文件系统与原子写
781
+
782
+
783
+
784
+ </span>
785
+
786
+
787
+
788
+ </a>
789
+ </li>
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+ <li class="md-nav__item">
800
+ <a href="../../../recipes/adapter-text-closure/" class="md-nav__link">
801
+
802
+
803
+
804
+ <span class="md-ellipsis">
805
+
806
+
807
+ 中文 · Adapter 文本闭包
808
+
809
+
810
+
811
+ </span>
812
+
813
+
814
+
815
+ </a>
816
+ </li>
817
+
818
+
819
+
820
+
821
+
822
+
823
+
824
+
825
+
826
+ <li class="md-nav__item">
827
+ <a href="../../../recipes/deterministic-human-report/" class="md-nav__link">
828
+
829
+
830
+
831
+ <span class="md-ellipsis">
832
+
833
+
834
+ 中文 · 确定性人类报告
835
+
836
+
837
+
838
+ </span>
839
+
840
+
841
+
842
+ </a>
843
+ </li>
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+ <li class="md-nav__item">
854
+ <a href="../../../recipes/durable-local-state/" class="md-nav__link">
855
+
856
+
857
+
858
+ <span class="md-ellipsis">
859
+
860
+
861
+ 中文 · 持久本地状态
862
+
863
+
864
+
865
+ </span>
866
+
867
+
868
+
869
+ </a>
870
+ </li>
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+ <li class="md-nav__item">
881
+ <a href="../../../recipes/host-profile-integration/" class="md-nav__link">
882
+
883
+
884
+
885
+ <span class="md-ellipsis">
886
+
887
+
888
+ 中文 · 宿主 Profile 集成
889
+
890
+
891
+
892
+ </span>
893
+
894
+
895
+
896
+ </a>
897
+ </li>
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+
907
+ <li class="md-nav__item">
908
+ <a href="../../../recipes/domain-schema-validation/" class="md-nav__link">
909
+
910
+
911
+
912
+ <span class="md-ellipsis">
913
+
914
+
915
+ 中文 · 领域 Schema 校验
916
+
917
+
918
+
919
+ </span>
920
+
921
+
922
+
923
+ </a>
924
+ </li>
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+ <li class="md-nav__item">
935
+ <a href="../../" class="md-nav__link">
936
+
937
+
938
+
939
+ <span class="md-ellipsis">
940
+
941
+
942
+ English · Home
943
+
944
+
945
+
946
+ </span>
947
+
948
+
949
+
950
+ </a>
951
+ </li>
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+ <li class="md-nav__item">
962
+ <a href="../../quickstart/" class="md-nav__link">
963
+
964
+
965
+
966
+ <span class="md-ellipsis">
967
+
968
+
969
+ English · Quickstart
970
+
971
+
972
+
973
+ </span>
974
+
975
+
976
+
977
+ </a>
978
+ </li>
979
+
980
+
981
+
982
+
983
+
984
+
985
+
986
+
987
+
988
+ <li class="md-nav__item">
989
+ <a href="../../help/" class="md-nav__link">
990
+
991
+
992
+
993
+ <span class="md-ellipsis">
994
+
995
+
996
+ English · Capabilities and diagnostics
997
+
998
+
999
+
1000
+ </span>
1001
+
1002
+
1003
+
1004
+ </a>
1005
+ </li>
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+ <li class="md-nav__item">
1016
+ <a href="../../architecture/" class="md-nav__link">
1017
+
1018
+
1019
+
1020
+ <span class="md-ellipsis">
1021
+
1022
+
1023
+ English · Architecture
1024
+
1025
+
1026
+
1027
+ </span>
1028
+
1029
+
1030
+
1031
+ </a>
1032
+ </li>
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+ <li class="md-nav__item">
1043
+ <a href="../../migration/" class="md-nav__link">
1044
+
1045
+
1046
+
1047
+ <span class="md-ellipsis">
1048
+
1049
+
1050
+ English · Migration
1051
+
1052
+
1053
+
1054
+ </span>
1055
+
1056
+
1057
+
1058
+ </a>
1059
+ </li>
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+ <li class="md-nav__item">
1070
+ <a href="../../licensing/" class="md-nav__link">
1071
+
1072
+
1073
+
1074
+ <span class="md-ellipsis">
1075
+
1076
+
1077
+ English · Licensing
1078
+
1079
+
1080
+
1081
+ </span>
1082
+
1083
+
1084
+
1085
+ </a>
1086
+ </li>
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+
1095
+
1096
+ <li class="md-nav__item">
1097
+ <a href="../../agents/" class="md-nav__link">
1098
+
1099
+
1100
+
1101
+ <span class="md-ellipsis">
1102
+
1103
+
1104
+ English · Agent entry
1105
+
1106
+
1107
+
1108
+ </span>
1109
+
1110
+
1111
+
1112
+ </a>
1113
+ </li>
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+ <li class="md-nav__item">
1124
+ <a href="../../agents/architecture-routing/" class="md-nav__link">
1125
+
1126
+
1127
+
1128
+ <span class="md-ellipsis">
1129
+
1130
+
1131
+ English · Architecture routing
1132
+
1133
+
1134
+
1135
+ </span>
1136
+
1137
+
1138
+
1139
+ </a>
1140
+ </li>
1141
+
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+ <li class="md-nav__item">
1151
+ <a href="../compatibility/" class="md-nav__link">
1152
+
1153
+
1154
+
1155
+ <span class="md-ellipsis">
1156
+
1157
+
1158
+ English · Compatibility
1159
+
1160
+
1161
+
1162
+ </span>
1163
+
1164
+
1165
+
1166
+ </a>
1167
+ </li>
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+ <li class="md-nav__item md-nav__item--active">
1180
+
1181
+ <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+ <label class="md-nav__link md-nav__link--active" for="__toc">
1188
+
1189
+
1190
+
1191
+ <span class="md-ellipsis">
1192
+
1193
+
1194
+ English · Failures and side effects
1195
+
1196
+
1197
+
1198
+ </span>
1199
+
1200
+
1201
+
1202
+ <span class="md-nav__icon md-icon"></span>
1203
+ </label>
1204
+
1205
+ <a href="./" class="md-nav__link md-nav__link--active">
1206
+
1207
+
1208
+
1209
+ <span class="md-ellipsis">
1210
+
1211
+
1212
+ English · Failures and side effects
1213
+
1214
+
1215
+
1216
+ </span>
1217
+
1218
+
1219
+
1220
+ </a>
1221
+
1222
+
1223
+
1224
+ <nav class="md-nav md-nav--secondary" aria-label="目录">
1225
+
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+ <label class="md-nav__title" for="__toc">
1232
+ <span class="md-nav__icon md-icon"></span>
1233
+ 目录
1234
+ </label>
1235
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
1236
+
1237
+ <li class="md-nav__item">
1238
+ <a href="#Contracts-Pure-Function-Layer" class="md-nav__link">
1239
+ <span class="md-ellipsis">
1240
+
1241
+ Contracts (Pure-Function Layer)
1242
+
1243
+ </span>
1244
+ </a>
1245
+
1246
+ </li>
1247
+
1248
+ <li class="md-nav__item">
1249
+ <a href="#Harness-Mechanism-Layer-Contained" class="md-nav__link">
1250
+ <span class="md-ellipsis">
1251
+
1252
+ Harness (Mechanism Layer, Contained)
1253
+
1254
+ </span>
1255
+ </a>
1256
+
1257
+ </li>
1258
+
1259
+ <li class="md-nav__item">
1260
+ <a href="#Engineering-Kit-Engineering-Command-Layer" class="md-nav__link">
1261
+ <span class="md-ellipsis">
1262
+
1263
+ Engineering Kit (Engineering Command Layer)
1264
+
1265
+ </span>
1266
+ </a>
1267
+
1268
+ </li>
1269
+
1270
+ <li class="md-nav__item">
1271
+ <a href="#Residual-State-Collection" class="md-nav__link">
1272
+ <span class="md-ellipsis">
1273
+
1274
+ Residual-State Collection
1275
+
1276
+ </span>
1277
+ </a>
1278
+
1279
+ </li>
1280
+
1281
+ <li class="md-nav__item">
1282
+ <a href="#What-the-Caller-Should-Do-After-Failure" class="md-nav__link">
1283
+ <span class="md-ellipsis">
1284
+
1285
+ What the Caller Should Do After Failure
1286
+
1287
+ </span>
1288
+ </a>
1289
+
1290
+ </li>
1291
+
1292
+ </ul>
1293
+
1294
+ </nav>
1295
+
1296
+ </li>
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+
1305
+
1306
+ <li class="md-nav__item">
1307
+ <a href="../api/" class="md-nav__link">
1308
+
1309
+
1310
+
1311
+ <span class="md-ellipsis">
1312
+
1313
+
1314
+ English · API reference
1315
+
1316
+
1317
+
1318
+ </span>
1319
+
1320
+
1321
+
1322
+ </a>
1323
+ </li>
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+ <li class="md-nav__item">
1334
+ <a href="../../examples-and-fixtures/" class="md-nav__link">
1335
+
1336
+
1337
+
1338
+ <span class="md-ellipsis">
1339
+
1340
+
1341
+ English · Examples and fixtures
1342
+
1343
+
1344
+
1345
+ </span>
1346
+
1347
+
1348
+
1349
+ </a>
1350
+ </li>
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+
1360
+ <li class="md-nav__item">
1361
+ <a href="../../recipes/" class="md-nav__link">
1362
+
1363
+
1364
+
1365
+ <span class="md-ellipsis">
1366
+
1367
+
1368
+ English · Recipes
1369
+
1370
+
1371
+
1372
+ </span>
1373
+
1374
+
1375
+
1376
+ </a>
1377
+ </li>
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+ <li class="md-nav__item">
1388
+ <a href="../../recipes/adopt-existing-repository/" class="md-nav__link">
1389
+
1390
+
1391
+
1392
+ <span class="md-ellipsis">
1393
+
1394
+
1395
+ English · Adopt an existing repository
1396
+
1397
+
1398
+
1399
+ </span>
1400
+
1401
+
1402
+
1403
+ </a>
1404
+ </li>
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+ <li class="md-nav__item">
1415
+ <a href="../../recipes/safe-filesystem-and-atomic-write/" class="md-nav__link">
1416
+
1417
+
1418
+
1419
+ <span class="md-ellipsis">
1420
+
1421
+
1422
+ English · Safe filesystem and atomic write
1423
+
1424
+
1425
+
1426
+ </span>
1427
+
1428
+
1429
+
1430
+ </a>
1431
+ </li>
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+ <li class="md-nav__item">
1442
+ <a href="../../recipes/adapter-text-closure/" class="md-nav__link">
1443
+
1444
+
1445
+
1446
+ <span class="md-ellipsis">
1447
+
1448
+
1449
+ English · Adapter text closure
1450
+
1451
+
1452
+
1453
+ </span>
1454
+
1455
+
1456
+
1457
+ </a>
1458
+ </li>
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+ <li class="md-nav__item">
1469
+ <a href="../../recipes/deterministic-human-report/" class="md-nav__link">
1470
+
1471
+
1472
+
1473
+ <span class="md-ellipsis">
1474
+
1475
+
1476
+ English · Deterministic human report
1477
+
1478
+
1479
+
1480
+ </span>
1481
+
1482
+
1483
+
1484
+ </a>
1485
+ </li>
1486
+
1487
+
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+
1495
+ <li class="md-nav__item">
1496
+ <a href="../../recipes/durable-local-state/" class="md-nav__link">
1497
+
1498
+
1499
+
1500
+ <span class="md-ellipsis">
1501
+
1502
+
1503
+ English · Durable local state
1504
+
1505
+
1506
+
1507
+ </span>
1508
+
1509
+
1510
+
1511
+ </a>
1512
+ </li>
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+ <li class="md-nav__item">
1523
+ <a href="../../recipes/host-profile-integration/" class="md-nav__link">
1524
+
1525
+
1526
+
1527
+ <span class="md-ellipsis">
1528
+
1529
+
1530
+ English · Host Profile integration
1531
+
1532
+
1533
+
1534
+ </span>
1535
+
1536
+
1537
+
1538
+ </a>
1539
+ </li>
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+ <li class="md-nav__item">
1550
+ <a href="../../recipes/domain-schema-validation/" class="md-nav__link">
1551
+
1552
+
1553
+
1554
+ <span class="md-ellipsis">
1555
+
1556
+
1557
+ English · Domain Schema validation
1558
+
1559
+
1560
+
1561
+ </span>
1562
+
1563
+
1564
+
1565
+ </a>
1566
+ </li>
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+ <li class="md-nav__item">
1577
+ <a href="../../../integration/audit/" class="md-nav__link">
1578
+
1579
+
1580
+
1581
+ <span class="md-ellipsis">
1582
+
1583
+
1584
+ 审计集成 · 入口
1585
+
1586
+
1587
+
1588
+ </span>
1589
+
1590
+
1591
+
1592
+ </a>
1593
+ </li>
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+
1600
+
1601
+
1602
+
1603
+ <li class="md-nav__item">
1604
+ <a href="../../../integration/audit/mutation-taxonomy/" class="md-nav__link">
1605
+
1606
+
1607
+
1608
+ <span class="md-ellipsis">
1609
+
1610
+
1611
+ 审计集成 · 变异分类学
1612
+
1613
+
1614
+
1615
+ </span>
1616
+
1617
+
1618
+
1619
+ </a>
1620
+ </li>
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+
1629
+
1630
+ <li class="md-nav__item">
1631
+ <a href="../../../integration/audit/independence/" class="md-nav__link">
1632
+
1633
+
1634
+
1635
+ <span class="md-ellipsis">
1636
+
1637
+
1638
+ 审计集成 · 独立性证明
1639
+
1640
+
1641
+
1642
+ </span>
1643
+
1644
+
1645
+
1646
+ </a>
1647
+ </li>
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+ <li class="md-nav__item">
1658
+ <a href="../../../integration/audit/version-compatibility/" class="md-nav__link">
1659
+
1660
+
1661
+
1662
+ <span class="md-ellipsis">
1663
+
1664
+
1665
+ 审计集成 · 版本兼容
1666
+
1667
+
1668
+
1669
+ </span>
1670
+
1671
+
1672
+
1673
+ </a>
1674
+ </li>
1675
+
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+ <li class="md-nav__item">
1685
+ <a href="../../../integration/audit/failure-evidence/" class="md-nav__link">
1686
+
1687
+
1688
+
1689
+ <span class="md-ellipsis">
1690
+
1691
+
1692
+ 审计集成 · 失败证据与 AUD 码
1693
+
1694
+
1695
+
1696
+ </span>
1697
+
1698
+
1699
+
1700
+ </a>
1701
+ </li>
1702
+
1703
+
1704
+
1705
+ </ul>
1706
+ </nav>
1707
+ </div>
1708
+ </div>
1709
+ </div>
1710
+
1711
+
1712
+
1713
+ <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
1714
+ <div class="md-sidebar__scrollwrap">
1715
+ <div class="md-sidebar__inner">
1716
+
1717
+
1718
+ <nav class="md-nav md-nav--secondary" aria-label="目录">
1719
+
1720
+
1721
+
1722
+
1723
+
1724
+
1725
+ <label class="md-nav__title" for="__toc">
1726
+ <span class="md-nav__icon md-icon"></span>
1727
+ 目录
1728
+ </label>
1729
+ <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
1730
+
1731
+ <li class="md-nav__item">
1732
+ <a href="#Contracts-Pure-Function-Layer" class="md-nav__link">
1733
+ <span class="md-ellipsis">
1734
+
1735
+ Contracts (Pure-Function Layer)
1736
+
1737
+ </span>
1738
+ </a>
1739
+
1740
+ </li>
1741
+
1742
+ <li class="md-nav__item">
1743
+ <a href="#Harness-Mechanism-Layer-Contained" class="md-nav__link">
1744
+ <span class="md-ellipsis">
1745
+
1746
+ Harness (Mechanism Layer, Contained)
1747
+
1748
+ </span>
1749
+ </a>
1750
+
1751
+ </li>
1752
+
1753
+ <li class="md-nav__item">
1754
+ <a href="#Engineering-Kit-Engineering-Command-Layer" class="md-nav__link">
1755
+ <span class="md-ellipsis">
1756
+
1757
+ Engineering Kit (Engineering Command Layer)
1758
+
1759
+ </span>
1760
+ </a>
1761
+
1762
+ </li>
1763
+
1764
+ <li class="md-nav__item">
1765
+ <a href="#Residual-State-Collection" class="md-nav__link">
1766
+ <span class="md-ellipsis">
1767
+
1768
+ Residual-State Collection
1769
+
1770
+ </span>
1771
+ </a>
1772
+
1773
+ </li>
1774
+
1775
+ <li class="md-nav__item">
1776
+ <a href="#What-the-Caller-Should-Do-After-Failure" class="md-nav__link">
1777
+ <span class="md-ellipsis">
1778
+
1779
+ What the Caller Should Do After Failure
1780
+
1781
+ </span>
1782
+ </a>
1783
+
1784
+ </li>
1785
+
1786
+ </ul>
1787
+
1788
+ </nav>
1789
+ </div>
1790
+ </div>
1791
+ </div>
1792
+
1793
+
1794
+
1795
+ <div class="md-content" data-md-component="content">
1796
+
1797
+ <article class="md-content__inner md-typeset">
1798
+
1799
+
1800
+
1801
+
1802
+
1803
+ <blockquote>
1804
+ <p><a href="../../../reference/failure-and-side-effect-matrix/">简体中文</a></p>
1805
+ </blockquote>
1806
+ <h1 id="Failure-and-Side-Effect-Matrix">Failure and Side-Effect Matrix<a class="headerlink" href="#Failure-and-Side-Effect-Matrix" title="Permanent link">&para;</a></h1>
1807
+ <p>This page lists, per public entry point, read/write, spawn, Git, network, residual state, and stable error codes. It serves callers judging risk before integrating, and is the human-readable projection of the <code>sideEffects</code> and <code>failureSemantics</code> fields in <code>capability-catalog.json</code>. All facts are based on the real implementation and negative tests.</p>
1808
+ <blockquote>
1809
+ <p>Symbol convention: read = reads the filesystem; write = writes the filesystem; spawn = launches a subprocess; Git = reads/writes Git; network = accesses a remote; residual = state still left on disk/in-process after the call ends.</p>
1810
+ </blockquote>
1811
+ <h2 id="Contracts-Pure-Function-Layer">Contracts (Pure-Function Layer)<a class="headerlink" href="#Contracts-Pure-Function-Layer" title="Permanent link">&para;</a></h2>
1812
+ <table>
1813
+ <thead>
1814
+ <tr>
1815
+ <th>Entry</th>
1816
+ <th>read</th>
1817
+ <th>write</th>
1818
+ <th>spawn</th>
1819
+ <th>Git</th>
1820
+ <th>network</th>
1821
+ <th>residual state</th>
1822
+ <th>stable error code</th>
1823
+ </tr>
1824
+ </thead>
1825
+ <tbody>
1826
+ <tr>
1827
+ <td><code>validateDocument</code></td>
1828
+ <td>no</td>
1829
+ <td>no</td>
1830
+ <td>no</td>
1831
+ <td>no</td>
1832
+ <td>no</td>
1833
+ <td>none (compile cache memory-resident only)</td>
1834
+ <td><code>SFC1001</code>/<code>SFC1002</code>/<code>SFC1006</code></td>
1835
+ </tr>
1836
+ <tr>
1837
+ <td><code>compileSchema</code> / <code>detectDialect</code></td>
1838
+ <td>no</td>
1839
+ <td>no</td>
1840
+ <td>no</td>
1841
+ <td>no</td>
1842
+ <td>no</td>
1843
+ <td>none</td>
1844
+ <td><code>SFC1006</code>/<code>SFC1012</code></td>
1845
+ </tr>
1846
+ <tr>
1847
+ <td><code>loadRegistry</code> / <code>findSchemaByObject</code> / <code>findProtocol</code></td>
1848
+ <td>no</td>
1849
+ <td>no</td>
1850
+ <td>no</td>
1851
+ <td>no</td>
1852
+ <td>no</td>
1853
+ <td>none</td>
1854
+ <td><code>SFC1003</code>/<code>SFC1004</code></td>
1855
+ </tr>
1856
+ <tr>
1857
+ <td><code>runChecks</code> / <code>collectUnresolvedRefs</code></td>
1858
+ <td>no</td>
1859
+ <td>no</td>
1860
+ <td>no</td>
1861
+ <td>no</td>
1862
+ <td>no</td>
1863
+ <td>none</td>
1864
+ <td><code>SFC1002</code>–<code>SFC1010</code></td>
1865
+ </tr>
1866
+ <tr>
1867
+ <td><code>verifyAllFixtures</code> / <code>verifyFixture</code></td>
1868
+ <td>no</td>
1869
+ <td>no</td>
1870
+ <td>no? no</td>
1871
+ <td>no</td>
1872
+ <td>no</td>
1873
+ <td>none</td>
1874
+ <td><code>SFC1010</code></td>
1875
+ </tr>
1876
+ <tr>
1877
+ <td><code>ERROR_CODES</code> / <code>stableError</code></td>
1878
+ <td>no</td>
1879
+ <td>no</td>
1880
+ <td>no</td>
1881
+ <td>no</td>
1882
+ <td>no</td>
1883
+ <td>none</td>
1884
+ <td>frozen registry, no additions</td>
1885
+ </tr>
1886
+ </tbody>
1887
+ </table>
1888
+ <p>Contracts are all pure functions, with no file/Git/network/process side effects; error objects contain <code>stableError</code> and <code>details.kind</code> for easy caller classification.</p>
1889
+ <h2 id="Harness-Mechanism-Layer-Contained">Harness (Mechanism Layer, Contained)<a class="headerlink" href="#Harness-Mechanism-Layer-Contained" title="Permanent link">&para;</a></h2>
1890
+ <table>
1891
+ <thead>
1892
+ <tr>
1893
+ <th>Entry</th>
1894
+ <th>read</th>
1895
+ <th>write</th>
1896
+ <th>spawn</th>
1897
+ <th>Git</th>
1898
+ <th>network</th>
1899
+ <th>residual state</th>
1900
+ <th>stable error code</th>
1901
+ </tr>
1902
+ </thead>
1903
+ <tbody>
1904
+ <tr>
1905
+ <td><code>validateContractDocument</code></td>
1906
+ <td>no</td>
1907
+ <td>no</td>
1908
+ <td>no</td>
1909
+ <td>no</td>
1910
+ <td>no</td>
1911
+ <td>none (validator cache in memory)</td>
1912
+ <td><code>SFC</code> validation failure</td>
1913
+ </tr>
1914
+ <tr>
1915
+ <td><code>resolveContained</code> / <code>readFileContained</code></td>
1916
+ <td>yes (read-only)</td>
1917
+ <td>no</td>
1918
+ <td>no</td>
1919
+ <td>no</td>
1920
+ <td>no</td>
1921
+ <td>none</td>
1922
+ <td><code>SFC2004</code> (<code>path-traversal</code>/<code>symlink-escape</code>/<code>realpath-escape</code>)</td>
1923
+ </tr>
1924
+ <tr>
1925
+ <td><code>writeFileAtomic</code></td>
1926
+ <td>no</td>
1927
+ <td>yes (contained)</td>
1928
+ <td>no</td>
1929
+ <td>no</td>
1930
+ <td>no</td>
1931
+ <td>failed rollback temp file</td>
1932
+ <td><code>SFC2004</code> (<code>atomic-write-failed</code>)</td>
1933
+ </tr>
1934
+ <tr>
1935
+ <td><code>TemporaryWorkspace</code> / <code>withTemporaryWorkspace</code></td>
1936
+ <td>no</td>
1937
+ <td>yes (temp directory)</td>
1938
+ <td>no</td>
1939
+ <td>no</td>
1940
+ <td>no</td>
1941
+ <td>temp directory cleaned on exit</td>
1942
+ <td><code>SFC2004</code> (<code>workspace-disposed</code>)</td>
1943
+ </tr>
1944
+ <tr>
1945
+ <td><code>computeResourceClosure</code> / <code>digestBytes</code></td>
1946
+ <td>no</td>
1947
+ <td>no</td>
1948
+ <td>no</td>
1949
+ <td>no</td>
1950
+ <td>no</td>
1951
+ <td>none</td>
1952
+ <td><code>SFC</code> (declaration/content violation)</td>
1953
+ </tr>
1954
+ <tr>
1955
+ <td><code>parseRequest</code> / <code>processRequest</code></td>
1956
+ <td>no</td>
1957
+ <td>no</td>
1958
+ <td>no</td>
1959
+ <td>no</td>
1960
+ <td>no</td>
1961
+ <td>none (pure-function pipeline)</td>
1962
+ <td><code>SFC2004</code></td>
1963
+ </tr>
1964
+ <tr>
1965
+ <td><code>validateReportModel</code> / <code>renderReportMarkdown</code> / <code>buildBinding</code> / <code>checkReport</code></td>
1966
+ <td>no</td>
1967
+ <td>no</td>
1968
+ <td>no</td>
1969
+ <td>no</td>
1970
+ <td>no</td>
1971
+ <td>none (pure function)</td>
1972
+ <td><code>SFC3001</code>/<code>SFC3002</code>/<code>SFC3003</code></td>
1973
+ </tr>
1974
+ <tr>
1975
+ <td><code>buildAdapterClosure</code> / <code>verifyAdapterBuildManifest</code></td>
1976
+ <td>no</td>
1977
+ <td>no</td>
1978
+ <td>no</td>
1979
+ <td>no</td>
1980
+ <td>no</td>
1981
+ <td>none</td>
1982
+ <td><code>SFC2004</code> (<code>missing-resource</code>)</td>
1983
+ </tr>
1984
+ <tr>
1985
+ <td><code>materializeAdapterBuild</code></td>
1986
+ <td>no</td>
1987
+ <td>yes (contained, sibling + rename)</td>
1988
+ <td>no</td>
1989
+ <td>no</td>
1990
+ <td>no</td>
1991
+ <td>none (atomic rename)</td>
1992
+ <td><code>SFC2004</code></td>
1993
+ </tr>
1994
+ <tr>
1995
+ <td><code>probeVersionVector</code></td>
1996
+ <td>no</td>
1997
+ <td>no</td>
1998
+ <td>default no (requires explicit <code>--allow-host-spawn</code>)</td>
1999
+ <td>no</td>
2000
+ <td>no</td>
2001
+ <td>none</td>
2002
+ <td><code>SFC2004</code></td>
2003
+ </tr>
2004
+ <tr>
2005
+ <td><code>openStateStore</code> / <code>appendEvent</code> / <code>readEvents</code> / <code>writeSnapshot</code></td>
2006
+ <td>yes</td>
2007
+ <td>yes (event/snapshot/lock files)</td>
2008
+ <td>no</td>
2009
+ <td>no</td>
2010
+ <td>no</td>
2011
+ <td>event log + lock file</td>
2012
+ <td><code>SFC2004</code> (<code>store-locked</code>/chain broken)</td>
2013
+ </tr>
2014
+ <tr>
2015
+ <td><code>inspectStateStoreLock</code> / <code>recoverStateStoreLock</code></td>
2016
+ <td>yes</td>
2017
+ <td>yes (recovery write-lock only)</td>
2018
+ <td>no</td>
2019
+ <td>no</td>
2020
+ <td>no</td>
2021
+ <td>lock file (monotonic fencing)</td>
2022
+ <td><code>SFC2004</code></td>
2023
+ </tr>
2024
+ </tbody>
2025
+ </table>
2026
+ <p>Harness's <code>HARNESS_EXCLUSIONS</code> explicitly excludes release-state, remote-network-access, business-semantics, workflow-orchestration, model-calls, git-writes.</p>
2027
+ <h2 id="Engineering-Kit-Engineering-Command-Layer">Engineering Kit (Engineering Command Layer)<a class="headerlink" href="#Engineering-Kit-Engineering-Command-Layer" title="Permanent link">&para;</a></h2>
2028
+ <table>
2029
+ <thead>
2030
+ <tr>
2031
+ <th>Entry</th>
2032
+ <th>read</th>
2033
+ <th>write</th>
2034
+ <th>spawn</th>
2035
+ <th>Git</th>
2036
+ <th>network</th>
2037
+ <th>residual state</th>
2038
+ <th>stable error code / exit code</th>
2039
+ </tr>
2040
+ </thead>
2041
+ <tbody>
2042
+ <tr>
2043
+ <td><code>scaffoldTarget</code></td>
2044
+ <td>no</td>
2045
+ <td>yes (contained skeleton, atomic + contained)</td>
2046
+ <td>no</td>
2047
+ <td>no</td>
2048
+ <td>no</td>
2049
+ <td>none (no half-product on failure)</td>
2050
+ <td><code>SFC2004</code> (<code>target-not-empty</code>)</td>
2051
+ </tr>
2052
+ <tr>
2053
+ <td><code>planAdoption</code> / <code>buildHandoffDraft</code></td>
2054
+ <td>yes</td>
2055
+ <td>no</td>
2056
+ <td>no</td>
2057
+ <td>read-only probe</td>
2058
+ <td>no</td>
2059
+ <td>none (stdout output)</td>
2060
+ <td><code>SFC</code> completion false</td>
2061
+ </tr>
2062
+ <tr>
2063
+ <td><code>runProjection</code></td>
2064
+ <td>yes (reads manifest)</td>
2065
+ <td>yes (managed path, two-phase)</td>
2066
+ <td>no</td>
2067
+ <td>no</td>
2068
+ <td>no</td>
2069
+ <td>none (zero write/rollback on failure)</td>
2070
+ <td><code>SFC2004</code> (<code>unauthorized-path</code>/<code>handwritten-overwrite</code>/<code>conflict-drift</code>)</td>
2071
+ </tr>
2072
+ <tr>
2073
+ <td><code>runChecks</code> (<code>check</code>)</td>
2074
+ <td>yes</td>
2075
+ <td>no</td>
2076
+ <td>no</td>
2077
+ <td>read-only allowlist</td>
2078
+ <td>no</td>
2079
+ <td>none</td>
2080
+ <td>exit code 1 (findings) / 2 (mechanism)</td>
2081
+ </tr>
2082
+ <tr>
2083
+ <td><code>renderReportAction</code> / <code>checkReportAction</code></td>
2084
+ <td>yes</td>
2085
+ <td>only <code>--out</code>/<code>--binding</code></td>
2086
+ <td>no</td>
2087
+ <td>no</td>
2088
+ <td>no</td>
2089
+ <td>default stdout only</td>
2090
+ <td><code>SFC3001</code>/<code>SFC3002</code>/<code>SFC3003</code></td>
2091
+ </tr>
2092
+ <tr>
2093
+ <td><code>probeGitState</code> / <code>probeGitFacts</code></td>
2094
+ <td>yes</td>
2095
+ <td>no</td>
2096
+ <td>no</td>
2097
+ <td>read-only allowlist</td>
2098
+ <td>no</td>
2099
+ <td>none</td>
2100
+ <td><code>SFC</code> (over-privileged parameter refused)</td>
2101
+ </tr>
2102
+ <tr>
2103
+ <td><code>describeHost</code> / <code>probeHost</code> / <code>buildHostAdapter</code> / <code>planHost</code></td>
2104
+ <td>yes</td>
2105
+ <td>build writes (contained)</td>
2106
+ <td>probe default no</td>
2107
+ <td>no</td>
2108
+ <td>no</td>
2109
+ <td>none</td>
2110
+ <td><code>SFC2004</code>; apply stably refused</td>
2111
+ </tr>
2112
+ <tr>
2113
+ <td><code>loadLicensingProfile</code> / <code>generateLicenseContent</code> etc.</td>
2114
+ <td>no</td>
2115
+ <td>no (pure-function generation)</td>
2116
+ <td>no</td>
2117
+ <td>no</td>
2118
+ <td>no</td>
2119
+ <td>none</td>
2120
+ <td><code>SFC</code> (illegal Profile)</td>
2121
+ </tr>
2122
+ <tr>
2123
+ <td><code>checkIdentityDrift</code> / <code>validateIdentityAgainstProfile</code></td>
2124
+ <td>yes</td>
2125
+ <td>no</td>
2126
+ <td>no</td>
2127
+ <td>no</td>
2128
+ <td>no</td>
2129
+ <td>none</td>
2130
+ <td>findings</td>
2131
+ </tr>
2132
+ <tr>
2133
+ <td><code>cliMain</code> / <code>runCommand</code></td>
2134
+ <td>per command</td>
2135
+ <td>per command</td>
2136
+ <td>per command</td>
2137
+ <td>per command</td>
2138
+ <td>no</td>
2139
+ <td>per command</td>
2140
+ <td>exit code 0/1/2</td>
2141
+ </tr>
2142
+ </tbody>
2143
+ </table>
2144
+ <p>Kit's <code>FORBIDDEN_SIDE_EFFECTS</code> includes git-init/commit/push/tag, publish, remote-write; <code>REFUSED_MUTATION_FLAGS</code> (including <code>--apply</code>) are refused at the CLI entry point.</p>
2145
+ <h2 id="Residual-State-Collection">Residual-State Collection<a class="headerlink" href="#Residual-State-Collection" title="Permanent link">&para;</a></h2>
2146
+ <ul>
2147
+ <li>Atomic write: on failure, rolls back the temp file, leaving no half-product in the target directory.</li>
2148
+ <li>Temporary workspaces are cleaned on exit, including exception paths.</li>
2149
+ <li>State store: the event log is the sole authority, and the snapshot is a derived cache; a crash-left lock requires the caller, outside Foundation, to confirm the old writer has terminated before explicitly recovering; no silent lock-stealing.</li>
2150
+ <li>Projection: any validation failure rejects wholesale, zero writes; overwriting an existing file requires declaring the <code>expect.sha256</code> pre-state.</li>
2151
+ <li>adopt-plan / check: structurally read-only, byte-level zero change before and after running.</li>
2152
+ </ul>
2153
+ <h2 id="What-the-Caller-Should-Do-After-Failure">What the Caller Should Do After Failure<a class="headerlink" href="#What-the-Caller-Should-Do-After-Failure" title="Permanent link">&para;</a></h2>
2154
+ <ul>
2155
+ <li>Validation failure (<code>SFC1001</code>/<code>SFC2002</code>/<code>SFC2003</code>): check whether the input satisfies the target Schema or parameter contract; do not retry a registration that has been frozen-refused.</li>
2156
+ <li>Containment failure (<code>SFC2004</code> + <code>path-traversal</code>, etc.): confirm whether the root directory and path are out of bounds; do not cram business-selection rules into Foundation.</li>
2157
+ <li>State-lock conflict (<code>store-locked</code>): outside Foundation, confirm the old writer has terminated, then call recovery with the exactly-matching owner/fencing.</li>
2158
+ <li>check findings (exit code 1): address the findings; Kit does not auto-fix.</li>
2159
+ </ul>
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+
2166
+
2167
+
2168
+
2169
+
2170
+
2171
+
2172
+
2173
+ </article>
2174
+ </div>
2175
+
2176
+
2177
+ <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
2178
+ </div>
2179
+
2180
+ </main>
2181
+
2182
+ <footer class="md-footer">
2183
+
2184
+ <div class="md-footer-meta md-typeset">
2185
+ <div class="md-footer-meta__inner md-grid">
2186
+ <div class="md-copyright">
2187
+
2188
+
2189
+ Made with
2190
+ <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
2191
+ Material for MkDocs
2192
+ </a>
2193
+
2194
+ </div>
2195
+
2196
+ </div>
2197
+ </div>
2198
+ </footer>
2199
+
2200
+ </div>
2201
+ <div class="md-dialog" data-md-component="dialog">
2202
+ <div class="md-dialog__inner md-typeset"></div>
2203
+ </div>
2204
+
2205
+
2206
+
2207
+
2208
+
2209
+ <script id="__config" type="application/json">{"annotate": null, "base": "../../..", "features": [], "search": "../../../assets/javascripts/workers/search.2c215733.min.js", "tags": null, "translations": {"clipboard.copied": "\u5df2\u590d\u5236", "clipboard.copy": "\u590d\u5236", "search.result.more.one": "\u5728\u8be5\u9875\u4e0a\u8fd8\u6709 1 \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.more.other": "\u5728\u8be5\u9875\u4e0a\u8fd8\u6709 # \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.none": "\u6ca1\u6709\u627e\u5230\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.one": "\u627e\u5230 1 \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.other": "# \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.placeholder": "\u952e\u5165\u4ee5\u5f00\u59cb\u641c\u7d22", "search.result.term.missing": "\u7f3a\u5c11", "select.version": "\u9009\u62e9\u5f53\u524d\u7248\u672c"}, "version": null}</script>
2210
+
2211
+
2212
+ <script src="../../../assets/javascripts/bundle.d7400e89.min.js"></script>
2213
+
2214
+
2215
+ </body>
2216
+ </html>