dsh-completion-guard 0.5.2 → 0.6.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/CHANGELOG.md +329 -0
- package/CHANGELOG.zh-CN.md +113 -0
- package/README.md +97 -6
- package/README.zh-CN.md +56 -6
- package/dist/domain/index.d.ts +2 -2
- package/dist/domain/index.js +2 -2
- package/dist/{domain-RuX9l07o.js → domain-COehX7MB.js} +2914 -410
- package/dist/{index-BTaiOcE-.d.ts → index-BJPVGdg9.d.ts} +503 -2
- package/dist/index.d.ts +127 -3
- package/dist/index.js +925 -30
- package/docs/ARCHITECTURE.md +88 -0
- package/docs/LOCAL_ACCEPTANCE.md +112 -0
- package/docs/NEXT_VERSION_REPAIR_NOTES.md +81 -0
- package/docs/PORTING_NOTES.md +36 -2
- package/docs/SEMANTIC_COMPATIBILITY.md +123 -0
- package/docs/distribution.md +5 -3
- package/docs/upstream-deltas.json +90 -9
- package/package.json +2 -2
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"ledgerVersion": "2",
|
|
3
3
|
"description": "Current, evidence-bounded delta ledger for behavior shared between codex-context-guard and dsh-completion-guard. It separates aligned behavior, partial host-native equivalents, missing shared behavior, and Codex-only lifecycle features.",
|
|
4
|
-
"updatedAt": "2026-09-
|
|
4
|
+
"updatedAt": "2026-09-14",
|
|
5
5
|
"source": {
|
|
6
6
|
"product": "codex-context-guard",
|
|
7
|
-
"currentRelease": "v0.
|
|
8
|
-
"currentReleaseHead": "
|
|
9
|
-
"alignedReference": "v0.10.0",
|
|
10
|
-
"alignedReferenceHead": "e4fccf690bcbc2be79d0b8d42a1a269f87072120"
|
|
7
|
+
"currentRelease": "v0.13.9",
|
|
8
|
+
"currentReleaseHead": "1575c41d318b4c348387532110526f4a63801f07",
|
|
9
|
+
"alignedReference": "v0.10.0 (historical evidence alignment)",
|
|
10
|
+
"alignedReferenceHead": "e4fccf690bcbc2be79d0b8d42a1a269f87072120",
|
|
11
|
+
"sharedPlanTarget": "codex-context-guard v0.14.0 (not implemented upstream)",
|
|
12
|
+
"upstreamMainAtAudit": {
|
|
13
|
+
"commit": "ce667adefd716f829fb1fb070b3089e789ed74c3",
|
|
14
|
+
"verifiedBy": "live `git ls-remote origin refs/heads/main` on 2026-09-14 plus the local checkout contents",
|
|
15
|
+
"canonicalV2Fixture": "absent: the upstream tree contains only context_guard_semantics_v1.{json,schema.json} and digest_v3"
|
|
16
|
+
}
|
|
11
17
|
},
|
|
12
18
|
"target": {
|
|
13
19
|
"product": "dsh-completion-guard",
|
|
14
|
-
"currentRelease": "v0.
|
|
15
|
-
"currentReleaseHead": "
|
|
20
|
+
"currentRelease": "v0.6.0",
|
|
21
|
+
"currentReleaseHead": "not recorded here: the 0.6.0 source candidate is not yet frozen into an artifact, so no commit SHA is asserted in this ledger",
|
|
16
22
|
"implementationBaseline": "ffc6fe9e1246a815f0bb630943c59d14b6505716",
|
|
17
|
-
"host": "DSH 0.1.5-rc.1 / Cordis 4.0.2 (registry-derived cohort; native audit pending)"
|
|
23
|
+
"host": "DSH 0.1.5-rc.2 || 0.1.5-rc.1 / Cordis 4.0.2 (registry-derived cohort; native audit pending for 0.6.0)"
|
|
18
24
|
},
|
|
19
|
-
"alignmentClaim": "DSH 0.
|
|
25
|
+
"alignmentClaim": "DSH 0.6.0 implements the C01-C12 shared contract of the paired 0.6.0/0.14.0 plans and covers it with production-chain tests. It does NOT claim core alignment with Codex Context Guard: the v2 conformance fixture exists only as a DSH-authored candidate because the upstream has not landed a frozen v2 specification, so the canonical mirror and the cross-language parity comparison remain open. The v1 fixtures, the digest-v3 vectors, and the frozen digest domains are unchanged.",
|
|
20
26
|
"dispositions": [
|
|
21
27
|
"aligned",
|
|
22
28
|
"partial-equivalent",
|
|
@@ -139,6 +145,81 @@
|
|
|
139
145
|
"tests/domain/portable-semantics.test.ts",
|
|
140
146
|
"tests/domain/v051-dsh015-adaptation.test.ts"
|
|
141
147
|
]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"capability": "trusted-answer-delivery",
|
|
151
|
+
"introducedBy": "shared C03 (0.6.0 / 0.14.0 plan)",
|
|
152
|
+
"disposition": "aligned",
|
|
153
|
+
"targetRelease": "dsh-completion-guard v0.6.0",
|
|
154
|
+
"plainLanguage": "A question or explanation is closed only by the host's own record of a normally completed turn whose final assistant message was not interrupted; delivery never implies correctness or execution.",
|
|
155
|
+
"implementation": "domain/delivery.ts derives the fact from assistant/message + turn/end; deriveProjection applies it to information-slot items of that turn's owning unit and its delegated sub-units.",
|
|
156
|
+
"tests": [
|
|
157
|
+
"tests/domain/v060-units-delivery.test.ts",
|
|
158
|
+
"tests/domain/v060-portable-v2.test.ts"
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"capability": "work-unit-required-descendant-closure",
|
|
163
|
+
"introducedBy": "shared C04 (0.6.0 / 0.14.0 plan)",
|
|
164
|
+
"disposition": "aligned",
|
|
165
|
+
"targetRelease": "dsh-completion-guard v0.6.0",
|
|
166
|
+
"plainLanguage": "Tasks are grouped into derived units; a delegated child unit's open work is required by the parent's closure, a sibling switch never blocks the newer task, and an ancestor's prohibition or unsatisfied condition still governs a descendant's matching action.",
|
|
167
|
+
"implementation": "domain/work-unit.ts derives the lineage; domain/closure.ts owns the closure, the ancestor constraints, and the certifier's pre-evidence refusal. Units are derived, never persisted.",
|
|
168
|
+
"tests": [
|
|
169
|
+
"tests/domain/v060-unit-closure.test.ts",
|
|
170
|
+
"tests/domain/v030-certificate.test.ts"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"capability": "proof-capability-matrix-v2",
|
|
175
|
+
"introducedBy": "shared C09 (0.6.0 / 0.14.0 plan)",
|
|
176
|
+
"disposition": "partial-equivalent",
|
|
177
|
+
"targetRelease": "dsh-completion-guard v0.6.0",
|
|
178
|
+
"plainLanguage": "Five new proof kinds bind a current subject, a declared source, and a real operation. Tool success is only an execution fact, a visual readback needs an actual read, and a cohort with no producer reports unavailability instead of passing.",
|
|
179
|
+
"implementation": "domain/proof.ts adds the v2 manifest in the new ccg.proofManifest.v2 domain and a capability matrix over DSH host surfaces. There is no Codex-side v2 counterpart yet, so the shared vocabulary is only frozen on the DSH side.",
|
|
180
|
+
"tests": [
|
|
181
|
+
"tests/domain/v060-proof-v2.test.ts",
|
|
182
|
+
"tests/domain/v060-strict-policy.test.ts"
|
|
183
|
+
],
|
|
184
|
+
"dshOnlyReason": "The upstream Python implementation has not been extended with the v2 kinds; the shared fixture that would pin them does not exist upstream."
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"capability": "explicit-release-single-use-ticket",
|
|
188
|
+
"introducedBy": "shared C10 (0.6.0 / 0.14.0 plan)",
|
|
189
|
+
"disposition": "partial-equivalent",
|
|
190
|
+
"targetRelease": "dsh-completion-guard v0.6.0",
|
|
191
|
+
"plainLanguage": "A release contract is adopted only by an explicit root command; each operation spends one reservation written before the effect and settled afterwards from a trusted readback; wrong candidate, wrong ref, expiry, consumption, replay, in-flight retries, unresolved targets and opaque runners are refused before any effect.",
|
|
192
|
+
"implementation": "domain/release.ts holds the state machine; the runtime persists contracts, reservations and settlements through the plugin-notice channel; the Guard-owned action tool consults the gate before its first probe. Only npm_publish has a Guard execution surface, so the coverage report marks the other five categories unprotectable.",
|
|
193
|
+
"tests": [
|
|
194
|
+
"tests/domain/v060-release-migration.test.ts",
|
|
195
|
+
"tests/tools/evidence.test.ts"
|
|
196
|
+
],
|
|
197
|
+
"dshOnlyReason": "Codex reuses its own release adapter and PreToolUse hook; the DSH record shapes and the protectable surface set are host-specific and are deliberately not claimed to be equivalent."
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"capability": "unified-reason-classes-and-migration-report",
|
|
201
|
+
"introducedBy": "shared C12 (0.6.0 / 0.14.0 plan)",
|
|
202
|
+
"disposition": "aligned",
|
|
203
|
+
"targetRelease": "dsh-completion-guard v0.6.0",
|
|
204
|
+
"plainLanguage": "Every diagnosis carries one of seven frozen classes beside its exact reason code, and the session reports which rule set is in force, which obligations keep their pre-0.6.0 rules, and what a rollback requires.",
|
|
205
|
+
"implementation": "domain/reason-class.ts holds the mapping table; domain/diagnostics.ts attaches the class; domain/migration.ts states the rule set, preserved domains, and the snapshot precondition.",
|
|
206
|
+
"tests": [
|
|
207
|
+
"tests/domain/v060-release-migration.test.ts",
|
|
208
|
+
"tests/domain/v050-diagnosis.test.ts"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"capability": "shared-v2-fixture-freeze-and-cross-language-parity",
|
|
213
|
+
"introducedBy": "shared P0 plan section 4/5 (0.6.0 / 0.14.0 plan)",
|
|
214
|
+
"disposition": "not-implemented",
|
|
215
|
+
"targetRelease": "open",
|
|
216
|
+
"plainLanguage": "The platform-neutral v2 conformance fixture is not frozen upstream, so this repository ships a DSH-authored candidate instead of a byte mirror and has not compared the Python and TypeScript projections on the v2 input family.",
|
|
217
|
+
"implementation": "tests/fixtures/conformance/context_guard_semantics_v2.candidate.json declares fixtureVersion 2.0.0-candidate.1 and status dsh-candidate; UPSTREAM_PIN.json still pins only the unchanged v1 mirrors.",
|
|
218
|
+
"tests": [
|
|
219
|
+
"tests/domain/v060-portable-v2.test.ts",
|
|
220
|
+
"tests/domain/v060-v2-runner-independence.test.ts"
|
|
221
|
+
],
|
|
222
|
+
"dshOnlyReason": "Only the upstream repository can land the canonical v2 specification, schema and reference projection. Until it does, mirroring and parity cannot be established honestly."
|
|
142
223
|
}
|
|
143
224
|
]
|
|
144
225
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-completion-guard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "A task-contract and completion-certification layer for DeepSeek Harness.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"hooks",
|
|
114
114
|
"typescript"
|
|
115
115
|
],
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "cc5cbc6d408664172d9383de7c83c55ec6dfd602"
|
|
117
117
|
}
|