dsh-compaction-weave 0.0.0-stage → 0.3.4

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 (92) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/LICENSE +21 -0
  3. package/README.en.md +145 -0
  4. package/README.md +148 -2
  5. package/cordis.patch.yml +19 -0
  6. package/docs/architecture.md +84 -0
  7. package/docs/benchmarks/published-0.3.2-rc.1-tests.json +576 -0
  8. package/docs/benchmarks/rc2-documentation.json +41 -0
  9. package/docs/benchmarks/rc2-linux-tests.json +590 -0
  10. package/docs/benchmarks/rc2-live-and-cost.json +746 -0
  11. package/docs/benchmarks/rc3-host-compatibility.json +2314 -0
  12. package/docs/benchmarks/rc4-tests.json +617 -0
  13. package/docs/benchmarks/review35-compression.json +117 -0
  14. package/docs/benchmarks/v0.3.2-live-four-way.json +3495 -0
  15. package/docs/benchmarks/v0.3.2-tests.json +590 -0
  16. package/docs/configuration.md +131 -0
  17. package/docs/development.md +95 -0
  18. package/docs/en/architecture.md +75 -0
  19. package/docs/en/configuration.md +131 -0
  20. package/docs/en/development.md +92 -0
  21. package/docs/en/feedback.md +47 -0
  22. package/docs/en/principles.md +235 -0
  23. package/docs/en/testing.md +368 -0
  24. package/docs/en/troubleshooting.md +60 -0
  25. package/docs/feedback.md +47 -0
  26. package/docs/images/principles-context.en.svg +77 -0
  27. package/docs/images/principles-context.zh.svg +77 -0
  28. package/docs/images/principles-pipeline.en.svg +93 -0
  29. package/docs/images/principles-pipeline.zh.svg +93 -0
  30. package/docs/images/principles-recovery.en.svg +46 -0
  31. package/docs/images/principles-recovery.zh.svg +46 -0
  32. package/docs/principles.md +235 -0
  33. package/docs/test-results.json +634 -0
  34. package/docs/testing.md +358 -0
  35. package/docs/troubleshooting.md +60 -0
  36. package/lib/abort.js +13 -0
  37. package/lib/action-state.js +60 -0
  38. package/lib/atomic-replace.js +18 -0
  39. package/lib/attachments.js +76 -0
  40. package/lib/audit-reject.js +161 -0
  41. package/lib/audit.js +939 -0
  42. package/lib/cache-policy.js +71 -0
  43. package/lib/client.js +696 -0
  44. package/lib/command-compact.js +38 -0
  45. package/lib/command-heartbeat.js +61 -0
  46. package/lib/config.js +596 -0
  47. package/lib/constraint-scope.js +37 -0
  48. package/lib/continuation-budget.js +69 -0
  49. package/lib/continuation-pending.js +57 -0
  50. package/lib/continuation-progress.js +46 -0
  51. package/lib/continuation.js +287 -0
  52. package/lib/engine-entry.js +103 -0
  53. package/lib/engine.js +2485 -0
  54. package/lib/failure-diagnostics.js +220 -0
  55. package/lib/history-source.js +74 -0
  56. package/lib/history.js +712 -0
  57. package/lib/idle-compaction.js +64 -0
  58. package/lib/index.js +611 -0
  59. package/lib/instruction-source.js +163 -0
  60. package/lib/journal.js +164 -0
  61. package/lib/manual-error.js +179 -0
  62. package/lib/memory-policy.js +383 -0
  63. package/lib/meter.js +387 -0
  64. package/lib/observation-mask.js +390 -0
  65. package/lib/proactive.js +108 -0
  66. package/lib/progress-facts.js +347 -0
  67. package/lib/progress-state.js +30 -0
  68. package/lib/prompt.js +194 -0
  69. package/lib/reconstruct.js +72 -0
  70. package/lib/reference-input.js +107 -0
  71. package/lib/region.js +972 -0
  72. package/lib/source-provenance.js +58 -0
  73. package/lib/source-recovery.js +22 -0
  74. package/lib/source-refs.js +137 -0
  75. package/lib/state.js +46 -0
  76. package/lib/storage-path.js +42 -0
  77. package/lib/summary-budget.js +187 -0
  78. package/lib/summary-config.js +308 -0
  79. package/lib/summary-progress.js +56 -0
  80. package/lib/summary-retry.js +27 -0
  81. package/lib/summary-timeout.js +68 -0
  82. package/lib/summary.js +476 -0
  83. package/lib/tools.js +341 -0
  84. package/lib/transaction-host.js +252 -0
  85. package/lib/transaction.js +285 -0
  86. package/lib/validate.js +503 -0
  87. package/lib/version.js +3 -0
  88. package/lib/window.js +120 -0
  89. package/lib/work-report.js +55 -0
  90. package/locale/en.json +6 -0
  91. package/locale/zh.json +6 -0
  92. package/package.json +71 -4
@@ -0,0 +1,117 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "measuredDate": "2026-11-11",
4
+ "timeZone": "Asia/Shanghai",
5
+ "pluginVersion": "0.3.1-review.35",
6
+ "model": "DeepSeek V4.1 Flash",
7
+ "provider": "DeepSeek official API",
8
+ "usageSource": "Official SSE usage; inputTokens is total input, including cached and cache-creation tokens.",
9
+ "sampleSelection": {
10
+ "run": "replication",
11
+ "generations": [
12
+ 1,
13
+ 2,
14
+ 3,
15
+ 4
16
+ ],
17
+ "beforePhase": "warmup-2",
18
+ "afterPhase": "incremental-1",
19
+ "successfulCompactions": 4,
20
+ "incrementalCompactions": 3,
21
+ "consolidations": 1,
22
+ "failedCompactionsIncluded": false,
23
+ "summaryGenerationCostIncluded": false
24
+ },
25
+ "formulas": {
26
+ "inputReductionPercent": "100 * (beforeInputTokens - afterInputTokens) / beforeInputTokens",
27
+ "meanInputReductionPercent": "arithmetic mean of the four unrounded per-compaction input reduction percentages",
28
+ "meanInputRetainedPercent": "100 - meanInputReductionPercent",
29
+ "weightedInputReductionPercent": "100 * (sum(beforeInputTokens) - sum(afterInputTokens)) / sum(beforeInputTokens)"
30
+ },
31
+ "samples": [
32
+ {
33
+ "generation": 1,
34
+ "mode": "incremental",
35
+ "before": {
36
+ "inputTokens": 58838,
37
+ "cacheReadTokens": 58624,
38
+ "uncachedTokens": 214,
39
+ "cacheCreationTokens": 0
40
+ },
41
+ "after": {
42
+ "inputTokens": 19778,
43
+ "cacheReadTokens": 7168,
44
+ "uncachedTokens": 12610,
45
+ "cacheCreationTokens": 0
46
+ },
47
+ "inputReductionPercent": 66.38566912539515,
48
+ "inputRetainedPercent": 33.614330874604846
49
+ },
50
+ {
51
+ "generation": 2,
52
+ "mode": "incremental",
53
+ "before": {
54
+ "inputTokens": 78559,
55
+ "cacheReadTokens": 78336,
56
+ "uncachedTokens": 223,
57
+ "cacheCreationTokens": 0
58
+ },
59
+ "after": {
60
+ "inputTokens": 32242,
61
+ "cacheReadTokens": 13696,
62
+ "uncachedTokens": 18546,
63
+ "cacheCreationTokens": 0
64
+ },
65
+ "inputReductionPercent": 58.95823521175168,
66
+ "inputRetainedPercent": 41.04176478824832
67
+ },
68
+ {
69
+ "generation": 3,
70
+ "mode": "incremental",
71
+ "before": {
72
+ "inputTokens": 91046,
73
+ "cacheReadTokens": 90880,
74
+ "uncachedTokens": 166,
75
+ "cacheCreationTokens": 0
76
+ },
77
+ "after": {
78
+ "inputTokens": 44812,
79
+ "cacheReadTokens": 26112,
80
+ "uncachedTokens": 18700,
81
+ "cacheCreationTokens": 0
82
+ },
83
+ "inputReductionPercent": 50.78092392856358,
84
+ "inputRetainedPercent": 49.21907607143642
85
+ },
86
+ {
87
+ "generation": 4,
88
+ "mode": "consolidation",
89
+ "before": {
90
+ "inputTokens": 103827,
91
+ "cacheReadTokens": 103680,
92
+ "uncachedTokens": 147,
93
+ "cacheCreationTokens": 0
94
+ },
95
+ "after": {
96
+ "inputTokens": 2187,
97
+ "cacheReadTokens": 0,
98
+ "uncachedTokens": 2187,
99
+ "cacheCreationTokens": 0
100
+ },
101
+ "inputReductionPercent": 97.89361148834118,
102
+ "inputRetainedPercent": 2.106388511658821
103
+ }
104
+ ],
105
+ "aggregates": {
106
+ "meanInputReductionPercent": 68.5046099385129,
107
+ "meanInputRetainedPercent": 31.4953900614871,
108
+ "meanIncrementalInputReductionPercent": 58.70827608857014,
109
+ "beforeInputTokens": 332270,
110
+ "afterInputTokens": 99019,
111
+ "weightedInputReductionPercent": 70.199235561441
112
+ },
113
+ "sourceSha256": {
114
+ "requestLedgerCsv": "46319cddf905f9bed3ebda2ec44f0cbe305ce2bfac1386a2e52bfc16176e3df2",
115
+ "completeReportMarkdown": "9107f5ef0f73ee4ccc14230439b9616297e7f77243b46217ff9d625056d51a41"
116
+ }
117
+ }