@twinsearth/ai-prison-dsh-plugin 1.9.2 → 1.9.3
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 +32 -0
- package/README.md +2 -2
- package/bin/linux-amd64/aiprison +0 -0
- package/bin/linux-arm64/aiprison +0 -0
- package/bin/macos-amd64/aiprison +0 -0
- package/bin/macos-arm64/aiprison +0 -0
- package/bin/windows-amd64/aiprison.exe +0 -0
- package/bin/windows-arm64/aiprison.exe +0 -0
- package/docs/SUPPLY-CHAIN.md +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@twinsearth/ai-prison-dsh-plugin` are recorded here.
|
|
4
4
|
|
|
5
|
+
## [1.9.3] — 2026-11-25
|
|
6
|
+
|
|
7
|
+
### Fixed — ledger repair is now byte-exact and crash-safe
|
|
8
|
+
|
|
9
|
+
- `repair-tail` keeps the `\n` that terminates the last committed record, so a
|
|
10
|
+
repaired segment is byte-identical to its pre-tear state and stays appendable.
|
|
11
|
+
1.9.2 dropped that newline, which turned a 7-byte torn tail into a
|
|
12
|
+
53,323 → 53,322 B file whose last record had no terminator, and reported
|
|
13
|
+
"removed 7 bytes" while the file had actually lost 8.
|
|
14
|
+
- The repair rewrite is published through a temp file plus atomic rename instead
|
|
15
|
+
of `O_TRUNC` in place. A crash during repair can no longer widen a few torn
|
|
16
|
+
bytes into a fully truncated segment; a leftover `.seg-*.tmp` is discarded on
|
|
17
|
+
the next open.
|
|
18
|
+
- `segmentForSeq` now names the segment that actually holds the failing sequence
|
|
19
|
+
(the last segment whose start is ≤ seq). Multi-segment ledgers no longer blame
|
|
20
|
+
`seg-0000000000.log` for a fault that happened in a later segment.
|
|
21
|
+
|
|
22
|
+
### Tests
|
|
23
|
+
|
|
24
|
+
- New `internal/store/repair_test.go`:
|
|
25
|
+
`TestRepairTornTailRestoresExactBytes` (restores the exact bytes, keeps the
|
|
26
|
+
trailing newline, leaves no temp file, stays appendable and re-verifies),
|
|
27
|
+
`TestRepairTornTailLongerTail`, and `TestIntegrityErrorNamesTheRightSegment`
|
|
28
|
+
(fails against the 1.9.2 attribution logic, passes after the fix).
|
|
29
|
+
|
|
30
|
+
### Packaging
|
|
31
|
+
|
|
32
|
+
- CLI stays at **1.0.9** (same feature set); the bundled six-platform binaries
|
|
33
|
+
are rebuilt against this release, so `aiprison version -v` reports a
|
|
34
|
+
different `commit:` than the 1.9.2 build and the two builds stay
|
|
35
|
+
distinguishable.
|
|
36
|
+
|
|
5
37
|
## [1.9.2] — 2026-11-25
|
|
6
38
|
|
|
7
39
|
### Fixed — data safety and platform truth
|
package/README.md
CHANGED
|
@@ -111,8 +111,8 @@ library, `CGO_ENABLED=0`, no module downloads) and are not committed to git.
|
|
|
111
111
|
|
|
112
112
|
### Per-platform packaging (size)
|
|
113
113
|
|
|
114
|
-
The published npm tarball carries all six CLIs (6.
|
|
115
|
-
each binary 2.
|
|
114
|
+
The published npm tarball carries all six CLIs (6.8 MB packed, 16.1 MB unpacked;
|
|
115
|
+
each binary 2.6–2.8 MB). For a single-machine deployment, build a platform-lite
|
|
116
116
|
tarball that keeps only one `bin/<platform>-<arch>/` tree:
|
|
117
117
|
|
|
118
118
|
```bash
|
package/bin/linux-amd64/aiprison
CHANGED
|
Binary file
|
package/bin/linux-arm64/aiprison
CHANGED
|
Binary file
|
package/bin/macos-amd64/aiprison
CHANGED
|
Binary file
|
package/bin/macos-arm64/aiprison
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/SUPPLY-CHAIN.md
CHANGED
|
@@ -86,7 +86,7 @@ node dsh-plugin/scripts/pack-platform.mjs --platform windows --arch amd64
|
|
|
86
86
|
|
|
87
87
|
| Channel | Artifact | Size |
|
|
88
88
|
|---|---|---|
|
|
89
|
-
| npm | one tarball with all six `bin/<platform>-<arch>/` trees | 6.
|
|
89
|
+
| npm | one tarball with all six `bin/<platform>-<arch>/` trees | 6.8 MB tgz (16.1 MB unpacked; each binary 2.6–2.8 MB) |
|
|
90
90
|
| GitHub Release | the same all-platform tarball **plus six lite tarballs** `<name>-<version>-<platform>-<arch>.tgz` | ~1.4–1.6 MB each |
|
|
91
91
|
| GitHub Release | `SHA256SUMS` covering the full tarball **and** the six lite ones | — |
|
|
92
92
|
| GitHub Release | artifact attestation over all tarballs + `SHA256SUMS` | — |
|
|
@@ -102,9 +102,9 @@ npm install ./twinsearth-ai-prison-dsh-plugin-<version>-windows-amd64.tgz
|
|
|
102
102
|
|
|
103
103
|
Measured with 1.7.2: windows-amd64 1.56 MB, windows-arm64 1.40 MB,
|
|
104
104
|
macos-amd64 1.52 MB, macos-arm64 1.41 MB, linux-amd64 1.50 MB, linux-arm64 1.37 MB
|
|
105
|
-
(six lite tarballs total about 8.8 MB compressed). The 1.9.
|
|
106
|
-
tarball is 6.
|
|
107
|
-
not the same bytes as one all-platform tarball.
|
|
105
|
+
(six lite tarballs total about 8.8 MB compressed). The 1.9.3 all-platform npm
|
|
106
|
+
tarball is 6.76 MB compressed / 16.09 MB unpacked (51 entries), so the six lite
|
|
107
|
+
tarballs are not the same bytes as one all-platform tarball.
|
|
108
108
|
|
|
109
109
|
**Not done yet (needs a decision):** splitting the npm package itself into a
|
|
110
110
|
meta-package plus six `@twinsearth/ai-prison-cli-<platform>` optional
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twinsearth/ai-prison-dsh-plugin",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
4
4
|
"description": "AI Prison for DSH: eight governance tools wrapping the aiprison CLI (levels, status, watchdog status, demo, drill, inspect, verify, repair-tail) plus a panel for the L0–L5 matrix and the audit-chain state. The CLI ships bundled for Windows, macOS and Linux; every capability-removal backend stays simulated.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|