dsh-wiki-notes 1.3.0 → 1.4.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 (23) hide show
  1. package/README.md +104 -24
  2. package/docs/README.md +70 -0
  3. package/docs//345/245/221/347/272/246-stage0/knowledge-gateway.v1.schema.json +1180 -0
  4. package/docs//345/245/221/347/272/246-stage0/samples/_verify_probe.json +46 -0
  5. package/docs//345/245/221/347/272/246-stage0/samples/context.cq-shenlun.json +612 -0
  6. package/docs//345/245/221/347/272/246-stage0/samples/verify.context-corrupt.json +20 -0
  7. package/docs//345/245/221/347/272/246-stage0/samples/verify.context-expired.json +20 -0
  8. package/docs//345/245/221/347/272/246-stage0/samples/verify.fabricated-quote.json +31 -0
  9. package/docs//345/245/221/347/272/246-stage0/samples/verify.right-with-limit.json +14 -0
  10. package/docs//345/245/221/347/272/246-stage0/samples/verify.scope-mismatch.json +27 -0
  11. package/docs//345/245/221/347/272/246-stage0/samples/verify.wrong-five.json +43 -0
  12. package/docs//345/245/221/347/272/246-stage0//350/247/202/345/257/237/346/234/237/346/226/271/346/241/210.md +81 -0
  13. package/docs//345/245/221/347/272/246-stage0//351/230/266/346/256/2650-/345/256/241/350/256/241/344/270/216/345/245/221/347/272/246.md +204 -0
  14. package/docs//345/245/221/347/272/246-stage0//351/230/266/346/256/2651-/346/225/260/345/200/274/345/210/244/346/215/256/344/270/216/345/274/225/346/223/216/347/212/266/346/200/201.md +107 -0
  15. package/docs//345/245/221/347/272/246-stage0//351/230/266/346/256/2652-/345/277/253/347/205/247/344/270/216TTL.md +84 -0
  16. package/docs//345/245/221/347/272/246-stage0//351/230/266/346/256/2653-/346/224/257/346/214/201/345/216/237/345/233/240.md +98 -0
  17. package/docs//345/245/221/347/272/246-stage0//351/230/266/346/256/2654-/346/217/222/344/273/266/346/216/245/345/205/245.md +143 -0
  18. package/docs//345/245/221/347/272/246-stage0//351/230/266/346/256/2655-/350/247/202/345/257/237/351/227/255/347/216/257/344/270/216/345/256/236/346/210/230/351/252/214/346/224/266.md +109 -0
  19. package/lib/bridge.js +210 -0
  20. package/lib/client.js +1 -1
  21. package/lib/config.js +59 -0
  22. package/lib/index.js +268 -4
  23. package/package.json +2 -2
@@ -0,0 +1,46 @@
1
+ [
2
+ {
3
+ "answer": "wrong-five",
4
+ "ok": false,
5
+ "raw_violations": [
6
+ {
7
+ "rule": "weak_evidence.review_flag_missing"
8
+ }
9
+ ],
10
+ "mapped": [
11
+ {
12
+ "type": "review_flag_missing",
13
+ "rule": "weak_evidence.review_flag_missing"
14
+ }
15
+ ]
16
+ },
17
+ {
18
+ "answer": "right-with-limit",
19
+ "ok": true,
20
+ "raw_violations": [],
21
+ "mapped": []
22
+ },
23
+ {
24
+ "answer": "fabricated-quote",
25
+ "ok": false,
26
+ "raw_violations": [
27
+ {
28
+ "rule": "weak_evidence.review_flag_missing"
29
+ },
30
+ {
31
+ "rule": "provenance.fabricated_quote",
32
+ "quote": "申论五道题满分一百分必须全部答完"
33
+ }
34
+ ],
35
+ "mapped": [
36
+ {
37
+ "type": "review_flag_missing",
38
+ "rule": "weak_evidence.review_flag_missing"
39
+ },
40
+ {
41
+ "type": "fabricated_quote",
42
+ "rule": "provenance.fabricated_quote"
43
+ }
44
+ ]
45
+ }
46
+ ]
@@ -0,0 +1,612 @@
1
+ {
2
+ "kind": "context",
3
+ "contract_version": "1.0",
4
+ "plugin_version": "1.3.0",
5
+ "bridge_version": "0.1.0",
6
+ "pipeline_version": "2026-11-05",
7
+ "request_id": "req_SAMPLE0001",
8
+ "context_id": "ctx_SAMPLE0001",
9
+ "query": "重庆 申论 考几道题",
10
+ "plan": {
11
+ "original_query": "重庆 申论 考几道题",
12
+ "query_units": [
13
+ {
14
+ "id": "Q0",
15
+ "query": "重庆 申论 考几道题",
16
+ "query_variant": "original",
17
+ "slot": "numeric",
18
+ "anchors": [
19
+ "重庆",
20
+ "申论"
21
+ ]
22
+ },
23
+ {
24
+ "id": "Q1",
25
+ "query": "重庆 申论 考",
26
+ "query_variant": "decomposed",
27
+ "slot": "numeric",
28
+ "parent": "Q0",
29
+ "anchors": [
30
+ "重庆",
31
+ "申论"
32
+ ]
33
+ }
34
+ ],
35
+ "anchors": [
36
+ {
37
+ "text": "重庆",
38
+ "kind": "region",
39
+ "constraint": true
40
+ },
41
+ {
42
+ "text": "申论",
43
+ "kind": "subject",
44
+ "constraint": false
45
+ }
46
+ ],
47
+ "has_constraint_anchor": true,
48
+ "max_units": 3
49
+ },
50
+ "engines": {
51
+ "requested": "both",
52
+ "search": {
53
+ "status": "ok",
54
+ "candidates": 14,
55
+ "queries_run": 2
56
+ },
57
+ "wiki_recall": {
58
+ "status": "ok",
59
+ "candidates": 10,
60
+ "queries_run": 2
61
+ }
62
+ },
63
+ "status": {
64
+ "retrieval": "weak_only",
65
+ "support": "partial",
66
+ "stage": "ok",
67
+ "degraded": false,
68
+ "degraded_sources": []
69
+ },
70
+ "evidence": [
71
+ {
72
+ "page": "综合-syntheses/申论.md",
73
+ "title": "申论",
74
+ "page_type": "综合",
75
+ "status": "存疑",
76
+ "sources": "13",
77
+ "source_relation": "related",
78
+ "evidence_grade": "weak",
79
+ "retrieval_mode": "fallback",
80
+ "matched": {
81
+ "tier": 7,
82
+ "fields": "标题+别名+标签+正文",
83
+ "terms": [
84
+ "几道",
85
+ "申论",
86
+ "考几",
87
+ "考几道题",
88
+ "道题",
89
+ "重庆"
90
+ ],
91
+ "missing_terms": [],
92
+ "matched_query": "重庆 申论 考几道题",
93
+ "variant": "coverage"
94
+ },
95
+ "found_by": [
96
+ {
97
+ "query_id": "Q0",
98
+ "unit_query": "重庆 申论 考几道题",
99
+ "unit_variant": "original",
100
+ "engine": "search.py",
101
+ "rank": 1,
102
+ "tier": 7
103
+ },
104
+ {
105
+ "query_id": "Q1",
106
+ "unit_query": "重庆 申论 考",
107
+ "unit_variant": "decomposed",
108
+ "engine": "search.py",
109
+ "rank": 1,
110
+ "tier": 7
111
+ },
112
+ {
113
+ "query_id": "Q0",
114
+ "unit_query": "重庆 申论 考几道题",
115
+ "unit_variant": "original",
116
+ "engine": "wiki_recall",
117
+ "rank": 2,
118
+ "tier": "unknown"
119
+ },
120
+ {
121
+ "query_id": "Q1",
122
+ "unit_query": "重庆 申论 考",
123
+ "unit_variant": "decomposed",
124
+ "engine": "wiki_recall",
125
+ "rank": 2,
126
+ "tier": "unknown"
127
+ }
128
+ ],
129
+ "provenance": [
130
+ {
131
+ "engine": "search.py",
132
+ "rank": 1,
133
+ "query_id": "Q0",
134
+ "score": 87
135
+ },
136
+ {
137
+ "engine": "search.py",
138
+ "rank": 1,
139
+ "query_id": "Q1",
140
+ "score": 120
141
+ },
142
+ {
143
+ "engine": "wiki_recall",
144
+ "rank": 2,
145
+ "query_id": "Q0",
146
+ "score": 237
147
+ },
148
+ {
149
+ "engine": "wiki_recall",
150
+ "rank": 2,
151
+ "query_id": "Q1",
152
+ "score": 298
153
+ }
154
+ ],
155
+ "supports": [
156
+ {
157
+ "slot": "numeric",
158
+ "quote_support": "conditional",
159
+ "support_confidence": "low",
160
+ "needs_review": true,
161
+ "note": "有条件支持:页面与该槽位只算相关、不是直接对应",
162
+ "section": "考什么",
163
+ "quote": "- **卷面(国考口径)**:180 分钟 5 题 = 4 道小题约 70 分 + 大作文 30 分;目标 70 分(小题得分率 80%、作文 70%)。**重庆省考是另一套规格**:4 题 / 150 分钟 / 作文…",
164
+ "page": "综合-syntheses/申论.md",
165
+ "relation": "related",
166
+ "method": null,
167
+ "values": null
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "page": "概念-concepts/重庆申论考情.md",
173
+ "title": "重庆申论考情",
174
+ "page_type": "概念",
175
+ "status": "演进中",
176
+ "sources": "4",
177
+ "source_relation": "related",
178
+ "evidence_grade": "weak",
179
+ "retrieval_mode": "fallback",
180
+ "matched": {
181
+ "tier": 7,
182
+ "fields": "标题+别名+标签+正文",
183
+ "terms": [
184
+ "几道",
185
+ "申论",
186
+ "考几",
187
+ "考几道题",
188
+ "道题",
189
+ "重庆"
190
+ ],
191
+ "missing_terms": [],
192
+ "matched_query": "重庆 申论 考几道题",
193
+ "variant": "coverage"
194
+ },
195
+ "found_by": [
196
+ {
197
+ "query_id": "Q0",
198
+ "unit_query": "重庆 申论 考几道题",
199
+ "unit_variant": "original",
200
+ "engine": "search.py",
201
+ "rank": 3,
202
+ "tier": 7
203
+ },
204
+ {
205
+ "query_id": "Q1",
206
+ "unit_query": "重庆 申论 考",
207
+ "unit_variant": "decomposed",
208
+ "engine": "search.py",
209
+ "rank": 3,
210
+ "tier": 7
211
+ },
212
+ {
213
+ "query_id": "Q0",
214
+ "unit_query": "重庆 申论 考几道题",
215
+ "unit_variant": "original",
216
+ "engine": "wiki_recall",
217
+ "rank": 1,
218
+ "tier": "unknown"
219
+ },
220
+ {
221
+ "query_id": "Q1",
222
+ "unit_query": "重庆 申论 考",
223
+ "unit_variant": "decomposed",
224
+ "engine": "wiki_recall",
225
+ "rank": 1,
226
+ "tier": "unknown"
227
+ }
228
+ ],
229
+ "provenance": [
230
+ {
231
+ "engine": "search.py",
232
+ "rank": 3,
233
+ "query_id": "Q0",
234
+ "score": 70
235
+ },
236
+ {
237
+ "engine": "search.py",
238
+ "rank": 3,
239
+ "query_id": "Q1",
240
+ "score": 120
241
+ },
242
+ {
243
+ "engine": "wiki_recall",
244
+ "rank": 1,
245
+ "query_id": "Q0",
246
+ "score": 342
247
+ },
248
+ {
249
+ "engine": "wiki_recall",
250
+ "rank": 1,
251
+ "query_id": "Q1",
252
+ "score": 513
253
+ }
254
+ ],
255
+ "supports": [
256
+ {
257
+ "slot": "numeric",
258
+ "quote_support": "conditional",
259
+ "support_confidence": "low",
260
+ "needs_review": true,
261
+ "note": "有条件支持:页面与该槽位只算相关、不是直接对应",
262
+ "section": "(开头)",
263
+ "quote": "> 定义:重庆市公务员考试(省考)申论科的卷面规格。**4 题 / 150 分钟 / 100 分**,分申论1(市级机关综合管理)、申论2(区县乡镇)、申论3(行政执法)三套卷,三卷题量结构一致,都是\"三小题 + 一篇…",
264
+ "page": "概念-concepts/重庆申论考情.md",
265
+ "relation": "related",
266
+ "method": null,
267
+ "values": null
268
+ },
269
+ {
270
+ "slot": "numeric",
271
+ "quote_support": "conditional",
272
+ "support_confidence": "low",
273
+ "needs_review": true,
274
+ "note": "有条件支持:页面与该槽位只算相关、不是直接对应",
275
+ "section": "历史沿革(旧口径警戒)",
276
+ "quote": "- 所以\"执法卷不考大作文\"是 2021–2022 年的旧口径。2026-02 仍有机考机构文章这样写(如\"上岸鸭\"《重庆省考申论题型及题量分布》),与真题不符。**取材优先 2023 年及以后**,2021–2022…",
277
+ "page": "概念-concepts/重庆申论考情.md",
278
+ "relation": "related",
279
+ "method": null,
280
+ "values": null
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "page": "对比-comparisons/行政执法卷与综合管理卷对比.md",
286
+ "title": "行政执法卷与综合管理卷对比",
287
+ "page_type": "对比",
288
+ "status": "演进中",
289
+ "sources": "3",
290
+ "source_relation": "related",
291
+ "evidence_grade": "weak",
292
+ "retrieval_mode": "fallback",
293
+ "matched": {
294
+ "tier": 7,
295
+ "fields": "别名+标签+正文",
296
+ "terms": [
297
+ "几道",
298
+ "申论",
299
+ "考几",
300
+ "考几道题",
301
+ "道题",
302
+ "重庆"
303
+ ],
304
+ "missing_terms": [],
305
+ "matched_query": "重庆 申论 考几道题",
306
+ "variant": "coverage"
307
+ },
308
+ "found_by": [
309
+ {
310
+ "query_id": "Q0",
311
+ "unit_query": "重庆 申论 考几道题",
312
+ "unit_variant": "original",
313
+ "engine": "search.py",
314
+ "rank": 5,
315
+ "tier": 7
316
+ },
317
+ {
318
+ "query_id": "Q1",
319
+ "unit_query": "重庆 申论 考",
320
+ "unit_variant": "decomposed",
321
+ "engine": "search.py",
322
+ "rank": 5,
323
+ "tier": 7
324
+ },
325
+ {
326
+ "query_id": "Q0",
327
+ "unit_query": "重庆 申论 考几道题",
328
+ "unit_variant": "original",
329
+ "engine": "wiki_recall",
330
+ "rank": 5,
331
+ "tier": "unknown"
332
+ },
333
+ {
334
+ "query_id": "Q1",
335
+ "unit_query": "重庆 申论 考",
336
+ "unit_variant": "decomposed",
337
+ "engine": "wiki_recall",
338
+ "rank": 4,
339
+ "tier": "unknown"
340
+ }
341
+ ],
342
+ "provenance": [
343
+ {
344
+ "engine": "search.py",
345
+ "rank": 5,
346
+ "query_id": "Q0",
347
+ "score": 68
348
+ },
349
+ {
350
+ "engine": "search.py",
351
+ "rank": 5,
352
+ "query_id": "Q1",
353
+ "score": 110
354
+ },
355
+ {
356
+ "engine": "wiki_recall",
357
+ "rank": 5,
358
+ "query_id": "Q0",
359
+ "score": 111
360
+ },
361
+ {
362
+ "engine": "wiki_recall",
363
+ "rank": 4,
364
+ "query_id": "Q1",
365
+ "score": 172
366
+ }
367
+ ],
368
+ "supports": []
369
+ },
370
+ {
371
+ "page": "资料-sources/申论·资料摘要.md",
372
+ "title": "申论·资料摘要",
373
+ "page_type": "资料",
374
+ "status": "演进中",
375
+ "sources": "10",
376
+ "source_relation": "clue",
377
+ "evidence_grade": "weak",
378
+ "retrieval_mode": "fallback",
379
+ "matched": {
380
+ "tier": 7,
381
+ "fields": "标题+别名+标签+正文",
382
+ "terms": [
383
+ "几道",
384
+ "申论",
385
+ "考几",
386
+ "考几道题",
387
+ "道题",
388
+ "重庆"
389
+ ],
390
+ "missing_terms": [],
391
+ "matched_query": "重庆 申论 考几道题",
392
+ "variant": "coverage"
393
+ },
394
+ "found_by": [
395
+ {
396
+ "query_id": "Q0",
397
+ "unit_query": "重庆 申论 考几道题",
398
+ "unit_variant": "original",
399
+ "engine": "search.py",
400
+ "rank": 2,
401
+ "tier": 7
402
+ },
403
+ {
404
+ "query_id": "Q1",
405
+ "unit_query": "重庆 申论 考",
406
+ "unit_variant": "decomposed",
407
+ "engine": "search.py",
408
+ "rank": 2,
409
+ "tier": 7
410
+ },
411
+ {
412
+ "query_id": "Q0",
413
+ "unit_query": "重庆 申论 考几道题",
414
+ "unit_variant": "original",
415
+ "engine": "wiki_recall",
416
+ "rank": 3,
417
+ "tier": "unknown"
418
+ },
419
+ {
420
+ "query_id": "Q1",
421
+ "unit_query": "重庆 申论 考",
422
+ "unit_variant": "decomposed",
423
+ "engine": "wiki_recall",
424
+ "rank": 3,
425
+ "tier": "unknown"
426
+ }
427
+ ],
428
+ "provenance": [
429
+ {
430
+ "engine": "search.py",
431
+ "rank": 2,
432
+ "query_id": "Q0",
433
+ "score": 70
434
+ },
435
+ {
436
+ "engine": "search.py",
437
+ "rank": 2,
438
+ "query_id": "Q1",
439
+ "score": 120
440
+ },
441
+ {
442
+ "engine": "wiki_recall",
443
+ "rank": 3,
444
+ "query_id": "Q0",
445
+ "score": 177
446
+ },
447
+ {
448
+ "engine": "wiki_recall",
449
+ "rank": 3,
450
+ "query_id": "Q1",
451
+ "score": 223
452
+ }
453
+ ],
454
+ "supports": [
455
+ {
456
+ "slot": "numeric",
457
+ "quote_support": "clue",
458
+ "support_confidence": "low",
459
+ "needs_review": true,
460
+ "note": null,
461
+ "section": "元信息",
462
+ "quote": "- **卷面(国考口径,勿套省考)**:180 分钟 5 题(4 小题约 70 分 + 作文 30 分)/ 目标 70 分(小题 80%、作文 70%);重庆省考是 4 题 / 150 分钟 / 作文 40 分,见 […",
463
+ "page": "资料-sources/申论·资料摘要.md",
464
+ "relation": "clue",
465
+ "method": null,
466
+ "values": null
467
+ }
468
+ ]
469
+ }
470
+ ],
471
+ "evidence_items": [
472
+ {
473
+ "evidence_id": "E001",
474
+ "slot": "numeric",
475
+ "quote": "- **卷面(国考口径)**:180 分钟 5 题 = 4 道小题约 70 分 + 大作文 30 分;目标 70 分(小题得分率 80%、作文 70%)。**重庆省考是另一套规格**:4 题 / 150 分钟 / 作文…",
476
+ "page_count": 1,
477
+ "engine_count": 2,
478
+ "provenance": [
479
+ {
480
+ "page": "综合-syntheses/申论.md",
481
+ "section": "考什么"
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "evidence_id": "E002",
487
+ "slot": "numeric",
488
+ "quote": "> 定义:重庆市公务员考试(省考)申论科的卷面规格。**4 题 / 150 分钟 / 100 分**,分申论1(市级机关综合管理)、申论2(区县乡镇)、申论3(行政执法)三套卷,三卷题量结构一致,都是\"三小题 + 一篇…",
489
+ "page_count": 1,
490
+ "engine_count": 2,
491
+ "provenance": [
492
+ {
493
+ "page": "概念-concepts/重庆申论考情.md",
494
+ "section": "(开头)"
495
+ }
496
+ ]
497
+ },
498
+ {
499
+ "evidence_id": "E003",
500
+ "slot": "numeric",
501
+ "quote": "- 所以\"执法卷不考大作文\"是 2021–2022 年的旧口径。2026-02 仍有机考机构文章这样写(如\"上岸鸭\"《重庆省考申论题型及题量分布》),与真题不符。**取材优先 2023 年及以后**,2021–2022…",
502
+ "page_count": 1,
503
+ "engine_count": 2,
504
+ "provenance": [
505
+ {
506
+ "page": "概念-concepts/重庆申论考情.md",
507
+ "section": "历史沿革(旧口径警戒)"
508
+ }
509
+ ]
510
+ },
511
+ {
512
+ "evidence_id": "E004",
513
+ "slot": "numeric",
514
+ "quote": "1. [2025 重庆申论一卷真题](https://www.aipta.com/article/10282.html) — 3 道概括/分析题 + 作文\"聚·变\"。",
515
+ "page_count": 1,
516
+ "engine_count": 2,
517
+ "provenance": [
518
+ {
519
+ "page": "概念-concepts/重庆申论考情.md",
520
+ "section": "依据"
521
+ }
522
+ ]
523
+ }
524
+ ],
525
+ "missing": [],
526
+ "unresolved": [],
527
+ "conflicts": [],
528
+ "conflict_status": "none_detected",
529
+ "metrics": {
530
+ "query_unit_count": 2,
531
+ "candidate_count": 9,
532
+ "candidate_rows": 24,
533
+ "readable_count": 9,
534
+ "evidence_count": 5,
535
+ "required_slot_count": 1,
536
+ "supported_slot_count": 1,
537
+ "claims_checked": 4
538
+ },
539
+ "answer": {
540
+ "policy": {
541
+ "conditional": {
542
+ "enabled": true,
543
+ "require_note": true,
544
+ "require_provenance": true,
545
+ "note_must_stay_with_claim": true
546
+ },
547
+ "insufficient": {
548
+ "allow_supported_facts": true,
549
+ "forbid_unsupported_conclusions": true,
550
+ "must_disclose_missing_slots": true,
551
+ "forbid_model_memory_fill": true,
552
+ "forbid_cross_year_region_transfer": true
553
+ },
554
+ "partial": {
555
+ "answer_supported_slots_only": true,
556
+ "must_disclose_unanswered_slots": true
557
+ },
558
+ "recorded_unresolved": {
559
+ "preserve_all_claims": true,
560
+ "forbid_arbitration": true,
561
+ "require_uncertainty_disclosure": true
562
+ },
563
+ "table_evidence": {
564
+ "preserve_source_type": true,
565
+ "require_ledger_qualification_when_applicable": true
566
+ },
567
+ "provenance": {
568
+ "require_traceability": true,
569
+ "forbid_fabricated_quotes": true
570
+ }
571
+ },
572
+ "constraints": {
573
+ "supported_claims_only": true,
574
+ "must_disclose_gaps": true,
575
+ "must_preserve_sources": true,
576
+ "allow_inference": false
577
+ },
578
+ "contract_text": "回答约束(违反即视为答错):\n- 证据只到「有条件支持」:结论必须带上限制说明,不能说成确定事实。\n- 条件性证据:用到时必须把 note 限制说明写在同一句/同一段里。\n- 结论所依赖的证据检索较弱/待复核:回答里要标注「需复核」。\n- 引用必须是页面原文子串;你的概括不能包装成引文。"
579
+ },
580
+ "observe_id": null,
581
+ "timing_ms": {
582
+ "total": null,
583
+ "plan": null,
584
+ "retrieve": null,
585
+ "read": null,
586
+ "extract": null,
587
+ "policy": null,
588
+ "observe": null
589
+ },
590
+ "support_reason": {
591
+ "primary": "conditional_evidence_only",
592
+ "primary_label": "只有条件性证据",
593
+ "reasons": [
594
+ {
595
+ "code": "conditional_evidence_only",
596
+ "label": "只有条件性证据",
597
+ "detail": "命中的证据带条件限制,不能当无条件的结论使用",
598
+ "slots": [
599
+ "numeric"
600
+ ]
601
+ },
602
+ {
603
+ "code": "scope_gap",
604
+ "label": "部分证据因适用范围或时间口径不同而不可比",
605
+ "detail": "4 组同槽位证据因适用范围或时间口径不同而不可比",
606
+ "slots": [
607
+ "numeric"
608
+ ]
609
+ }
610
+ ]
611
+ }
612
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "kind": "verify",
3
+ "contract_version": "1.0",
4
+ "context_id": "ctx_SAMPLE_CORRUPT",
5
+ "violations": [],
6
+ "notices": [],
7
+ "timing_ms": {
8
+ "total": 1.0
9
+ },
10
+ "status": "context_corrupt",
11
+ "error": {
12
+ "code": "E_CONTEXT_CORRUPT",
13
+ "message": "快照损坏,无法作为核验依据",
14
+ "retryable": false,
15
+ "stage": "snapshot",
16
+ "detail": "payload 校验失败(内容被改动或写入不完整)"
17
+ },
18
+ "snapshot_created": null,
19
+ "_note": "payload 被改动:sha256 校验失败,明确报 corrupt,不冒充 not_found"
20
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "kind": "verify",
3
+ "contract_version": "1.0",
4
+ "context_id": "ctx_SAMPLE_EXPIRED",
5
+ "violations": [],
6
+ "notices": [],
7
+ "timing_ms": {
8
+ "total": 8.4
9
+ },
10
+ "status": "context_expired",
11
+ "error": {
12
+ "code": "E_CONTEXT_EXPIRED",
13
+ "message": "快照已过期(创建于 2026-11-05T06:20:59+0800,有效期 1 秒)",
14
+ "retryable": true,
15
+ "stage": "snapshot",
16
+ "detail": null
17
+ },
18
+ "snapshot_created": "2026-11-05T06:20:59+0800",
19
+ "_note": "快照过期:必须让调用方重新取上下文,而不是拿旧证据继续核验"
20
+ }