Skip to content

Commit 50a79ce

Browse files
committed
chore(vendor): re-sync the Interchange set and @intX deps to 0.5.0
Every published @intx/* dependency moves 0.3.0 -> 0.5.0 (root dependencies and devDependencies, plus the published-package entries inside the vendored manifests) and all eleven vendored Interchange paths re-sync to upstream aa7b78ee, the peel of tag v0.5.0, recorded as a SHA because the released npm metadata ships an empty gitHead. All forty-one entries across the five PATCHES.md ledgers re-adjudicate to KEEP (32 inference, 4 types, 3 agent, 1 storage-isogit, 1 tools-posix); store.ts is the one patched file upstream drift touched and goes through a three-way merge. The adopted storage-isogit durability rewrite adds reads-before-write to every session-record checkpoint: +1,000 .git readFile, +400 worktree readFile and +200 worktree stat per 200 turns, against -200 .git/index writes. Those are counted operations, not timings, so the CI session-store perf baseline moves with the branch and is re-recorded here from the head arm; the four failing counters, the cause and the accepted trade are disclosed in docs/VENDORING.md rather than rounded away. bin/vendor-patch-diff now prints the shape of each divergence (files, +, -) so the per-ledger numbers quoted in PATCHES.md come from repo tooling; the five re-sync sections quote its current output.
1 parent 2aab820 commit 50a79ce

28 files changed

Lines changed: 2480 additions & 178 deletions

‎bin/vendor-patch-diff‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,35 @@ for i in "${!WORK_NAMES[@]}"; do
207207

208208
# Unified diff of source only. diff exits 1 on differences — that is success
209209
# for this tool (we expect patches). Exit 2 is a real error.
210+
#
211+
# The diff is captured so the run also prints its own shape (files touched,
212+
# added and removed lines). Each PATCHES.md re-sync section quotes exactly
213+
# these three numbers as the proof that a sync carried every patch across, so
214+
# they must come from this tool rather than from a hand-tallied scratch diff.
215+
diff_out="$TMP/diff-$i.txt"
210216
set +e
211-
diff -ruN "$pristine_src" "$vendor_src"
217+
diff -ruN "$pristine_src" "$vendor_src" > "$diff_out"
212218
code=$?
213219
set -e
220+
cat "$diff_out"
214221
if [[ $code -eq 0 ]]; then
215222
echo "(no source differences)"
216223
elif [[ $code -eq 1 ]]; then
217224
OVERALL=1
225+
counts="$(
226+
awk '
227+
/^[+][+][+] / { next }
228+
/^--- / { next }
229+
/^[+]/ { plus++; next }
230+
/^-/ { minus++; next }
231+
/^diff / { files++ }
232+
/^Only in / { files++ }
233+
END { printf "%d %d %d", files + 0, plus + 0, minus + 0 }
234+
' "$diff_out"
235+
)"
236+
read -r changed plus minus <<<"$counts"
237+
echo
238+
echo "# local divergence: $changed files, $plus +, $minus -"
218239
else
219240
echo "error: diff failed for $name (exit $code)" >&2
220241
exit 1

‎bun.lock‎

Lines changed: 23 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/VENDORING.md‎

Lines changed: 213 additions & 31 deletions
Large diffs are not rendered by default.

‎package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,18 @@
9494
"@corbits/xai-provider": "0.1.3",
9595
"@intx/agent": "workspace:*",
9696
"@intx/authz": "workspace:*",
97-
"@intx/crypto": "0.3.0",
97+
"@intx/crypto": "0.5.0",
9898
"@intx/harness": "workspace:*",
9999
"@intx/inference": "workspace:*",
100100
"@intx/log": "workspace:*",
101-
"@intx/mail-memory": "0.3.0",
101+
"@intx/mail-memory": "0.5.0",
102102
"@intx/mailbox": "workspace:*",
103103
"@intx/mime": "workspace:*",
104104
"@intx/storage-isogit": "workspace:*",
105-
"@intx/tools-lsp": "0.3.0",
105+
"@intx/tools-lsp": "0.5.0",
106106
"@intx/tools-posix": "workspace:*",
107107
"@intx/types": "workspace:*",
108-
"@intx/workflow-host": "0.3.0",
108+
"@intx/workflow-host": "0.5.0",
109109
"@modelcontextprotocol/sdk": "^1.32.1",
110110
"@opentui/core": "0.6.6",
111111
"@opentui/keymap": "0.6.6",
@@ -119,7 +119,7 @@
119119
},
120120
"devDependencies": {
121121
"@corbits/evals": "^0.1.2",
122-
"@intx/inference-testing": "0.3.0",
122+
"@intx/inference-testing": "0.5.0",
123123
"@types/bun": "1.4.3",
124124
"knip": "^6.41.0",
125125
"oxfmt": "^0.73.0",

‎scripts/results/session-store-perf-baseline.json‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,51 +10,51 @@
1010
],
1111
"contextStorePerf": {
1212
"turnCount": 200,
13-
"wallMs": 814,
13+
"wallMs": 824,
1414
"loadedTurns": 250,
15-
"totalFsOps": 15936,
16-
"gitPathFsOps": 7717,
15+
"totalFsOps": 17540,
16+
"gitPathFsOps": 8721,
1717
"fsOps": {
18-
"readFile": 7878,
19-
"mkdir": 246,
20-
"writeFile": 1274,
21-
"stat": 2580,
18+
"readFile": 9278,
19+
"mkdir": 248,
20+
"writeFile": 1276,
21+
"stat": 2780,
2222
"lstat": 3148,
2323
"readdir": 611,
2424
"access": 1,
2525
"open": 198
2626
},
2727
"gitPathFsOpsByName": {
2828
"stat": 679,
29-
"mkdir": 240,
30-
"writeFile": 1268,
29+
"mkdir": 242,
30+
"writeFile": 1270,
3131
"lstat": 1067,
32-
"readFile": 4463
32+
"readFile": 5463
3333
},
3434
"perTurn": {
35-
"wallMs": 4.07,
36-
"fsOps": 79.68
35+
"wallMs": 4.12,
36+
"fsOps": 87.7
3737
}
3838
},
3939
"turnPersistenceCensus": {
4040
"flow": "coalesced",
4141
"turnCount": 200,
42-
"wallMs": 696,
42+
"wallMs": 691,
4343
"loadedTurns": 800,
44-
"totalWriteOps": 2097,
45-
"gitPathWriteOps": 1687,
44+
"totalWriteOps": 1901,
45+
"gitPathWriteOps": 1491,
4646
"byName": {
47-
"mkdir": 251,
48-
"writeFile": 1646,
47+
"mkdir": 253,
48+
"writeFile": 1448,
4949
"appendFile": 200
5050
},
5151
"gitByPath": {
52-
"mkdir": 245,
53-
"writeFile": 1442
52+
"mkdir": 247,
53+
"writeFile": 1244
5454
},
5555
"perTurn": {
56-
"wallMs": 3.48,
57-
"writeOps": 10.48
56+
"wallMs": 3.46,
57+
"writeOps": 9.51
5858
},
5959
"persistCalls": {
6060
"writePrompt": 200,

‎vendor/intx-agent/PATCHES.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ upstream files `authoring.ts` (authoring-only subpath barrel) and the
4040
imports `./authoring` at its new pin). Upstream also deleted no vendored
4141
files and changed `testing/` not at all.
4242

43+
### 2026-10-19 re-sync to `aa7b78ee` (npm `0.5.0`, CL-10918)
44+
45+
`git diff --name-only 4cc6972 aa7b78ee -- packages/agent` lists only
46+
`package.json`, whose single changed line is upstream's own `version` field —
47+
a field this repo deliberately does not mirror (the `0.2.2` placeholder, per
48+
`docs/VENDORING.md`). The tree is therefore unchanged by this release, and
49+
`bin/vendor-patch-diff` prints the same shape as the pre-sync tree — 4 files,
50+
382 +, 2 −: nothing absorbed, nothing lost.
51+
52+
- **`agent-ts-resume-error-seq` — KEEP.** `aa7b78ee` still never reads the
53+
durable error sequence back when building an agent, so a rebuilt agent would
54+
still restart `errorSeq` at 0.
55+
- **`agent-ts-duplicate-error-flush` — KEEP.** Upstream `flushErrors` still
56+
treats `Duplicate error record:` as a flush failure.
57+
- **`testing-audit-noop-ts-load-errors` — KEEP.** Follows the `AuditStore`
58+
contract patch in `vendor/intx-types`; that contract is still local.
59+
4360
## agent-ts-resume-error-seq
4461

4562
`agent.ts` — `createAgent` resumes `errorSeq` from `auditStore.loadErrors`

‎vendor/intx-harness/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@intx/types": "workspace:*"
1717
},
1818
"devDependencies": {
19-
"@intx/inference-testing": "0.3.0",
19+
"@intx/inference-testing": "0.5.0",
2020
"@intx/mime": "workspace:*",
2121
"@intx/storage-isogit": "workspace:*",
2222
"arktype": "catalog:"

‎vendor/intx-inference/PATCHES.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,30 @@ copied verbatim.
230230
diff (1324 + / 230 − for this package), i.e. no patch content lost and
231231
no unledgered divergence gained.
232232

233+
### 2026-10-19 re-sync to `aa7b78ee` (npm `0.5.0`, CL-10918)
234+
235+
`git diff --name-only 4cc6972 aa7b78e -- packages/inference` in the upstream
236+
monorepo lists `packages/inference/package.json` only: the release commit
237+
bumps the upstream `version` field and touches no source. The vendored tree
238+
therefore needs no re-carried content, and `bin/vendor-patch-diff` prints the
239+
identical +/− line multiset as before the sync (20 files, 1432 +, 235 −), i.e. no
240+
patch content lost and no unledgered divergence gained. Every entry above re-ratifies
241+
unchanged; none is upstream-absorbed (re-grepped against `aa7b78e`:
242+
`isStreamTerminal`, `isPollOnlyPendingBatch`, `ephemeralTurns`, `loadErrors`,
243+
`turnsRevision`/`deepFreeze`, `isCommitting`, `MAX_LINE_LENGTH`, and the
244+
`role`/`tool_calls` null-delta tolerances are all still absent upstream).
245+
246+
- `package.json`: the two published-npm `@intx/*` entries (`@intx/log`
247+
dependency, `@intx/mime` devDependency) move `0.3.0` → `0.5.0`, the first
248+
release that carries the exports those entries consume. `@intx/types` stays
249+
`workspace:` so the coupled trio resolves to one source tree, and the local
250+
`version: 0.2.2` placeholder stays per `docs/VENDORING.md`.
251+
- New seam kept in mind for the next sync: `0.4.0` gained
252+
`ProviderAdapter.manifest`/`CompletionRequest.signal`, which upstream's
253+
`provider/inference-dependencies.ts` consumes from `@intx/types`
254+
(`adapter-manifest.ts`) rather than from this package's barrel — unchanged
255+
at `0.5.0`, so the vendored `index.ts` needs no new alias.
256+
233257
## adapter-ts-stream-terminal-detector
234258

235259
`adapter.ts` — Adds `StreamTerminalDetector`/`ProviderAdapter.isStreamTerminal`.

‎vendor/intx-inference/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
}
2323
},
2424
"dependencies": {
25-
"@intx/log": "0.3.0",
25+
"@intx/log": "0.5.0",
2626
"@intx/types": "workspace:*",
2727
"arktype": "catalog:"
2828
},
2929
"devDependencies": {
30-
"@intx/mime": "0.3.0"
30+
"@intx/mime": "0.5.0"
3131
}
3232
}

‎vendor/intx-mailbox/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
},
1212
"dependencies": {
13-
"@intx/crypto": "0.3.0",
13+
"@intx/crypto": "0.5.0",
1414
"@intx/log": "workspace:*",
1515
"@intx/mime": "workspace:*",
1616
"@intx/types": "workspace:*",

0 commit comments

Comments
 (0)