pi-mono/packages/chord/test
Mario Zechner a92283056d fix(chord): Delta's tracker holds its one open change without a WeakRef
Chord and Durable change a document one transaction at a time, so a tracker registered a WeakRef per
change for competitors that never existed on their hot path. The WeakRef targets survived scavenges
and V8 could pretenure every overlay context into old space (47.5 MB promoted against 2 MB in a
tracker loop). The tracker now keeps its open change in a plain field and moves it into the weak
registry only when a second change opens; stale semantics are unchanged. A draft dropped without
prepare or abort stays referenced until the tracker's next change or adopt (at most one per tracker).
`stored` and `rawNodes` are created on first use.
2026-10-27 23:46:11 +00:00
..
delta-benchmark feat(chord): make immutable delta tracker canonical 2026-09-24 15:07:12 +02:00
delta-tracker fix(chord): Delta's tracker holds its one open change without a WeakRef 2026-10-27 23:46:11 +00:00
fixtures feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
sqlite fix(chord): bound the Node SQLite driver's prepared-statement cache 2026-10-27 11:28:28 +00:00
awaiting.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
bindings.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
boundary.test.ts fix: chord boundary test allows pi-telemetry, the dependency of Context.telemetry 2026-10-18 20:43:39 +00:00
cluster.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
context.test.ts feat: Durable storage adopt callback inside the commit, watch types in Chord, explicit watch retirement 2026-10-22 10:52:59 +00:00
contract.test.ts feat(chord): init for state, typed principals, contract placement (protocol 3) 2026-10-14 11:55:26 +00:00
delta-append-text.test.ts feat(chord,durable): appendText for cheap string appends; Durable partial commits append instead of reassigning 2026-10-24 08:21:41 +00:00
delta-apply-immutable.test.ts perf(chord): cheaper container copies in Delta's tracker and applyImmutable 2026-10-24 16:56:53 +00:00
delta-clone.test.ts feat(chord): make immutable delta tracker canonical 2026-09-24 15:07:12 +02:00
delta-diff.test.ts feat(chord): replace the facet and service runtime with the chord2 host runtime 2026-10-12 10:41:59 +00:00
delta-op-text-retention.test.ts fix(ai,chord,durable,coding-agent): parse streamed tool-call arguments incrementally (fixes #9265) 2026-10-24 08:00:07 +00:00
delta-pending.test.ts fix(chord): give the PendingOps fuzz tests room on loaded CI runners 2026-10-24 09:48:13 +00:00
delta-traversal.bench.ts feat(chord): optimize immutable batch application 2026-09-25 00:09:50 +02:00
delta.test.ts feat(chord): make immutable delta tracker canonical 2026-09-24 15:07:12 +02:00
flow-units.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
flow.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
generations.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
host-objects-reload.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
host.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
hydration.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
json.test.ts feat(durable): add transactional sessions and documents 2026-09-24 22:24:04 +02:00
link.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
links-review.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
loader.test.ts feat(chord): init for state, typed principals, contract placement (protocol 3) 2026-10-14 11:55:26 +00:00
manager.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
output-skip.test.ts feat(chord,durable): move OutputBuffer and Progress to @earendil-works/chord/output 2026-10-15 09:59:46 +00:00
output.test.ts fix(durable): review fixes for sleeping tasks and host timers 2026-10-17 23:38:18 +00:00
placement.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
principals.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
provider-cost.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
readiness.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
reload.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
replicated-state-delivery.test.ts feat(chord): replace the facet and service runtime with the chord2 host runtime 2026-10-12 10:41:59 +00:00
replicated-state.test.ts feat(chord): replace the facet and service runtime with the chord2 host runtime 2026-10-12 10:41:59 +00:00
requests.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
review.test.ts fix(chord): remote references refuse a foreign ctx 2026-10-15 06:25:18 +00:00
state-diff.test.ts feat(chord): replace the facet and service runtime with the chord2 host runtime 2026-10-12 10:41:59 +00:00
state-draft.test.ts refactor(chord): name things after the concepts; object variants; link protocol version; object lifetimes 2026-10-14 05:34:14 +00:00
state-fuzz.test.ts feat(chord): make immutable delta tracker canonical 2026-09-24 15:07:12 +02:00
state-init.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
state-value.test.ts feat(chord): make immutable delta tracker canonical 2026-09-24 15:07:12 +02:00
state.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
telemetry-sqlite-store.test.ts feat(chord): SqliteExecutor.runCounted resolves with the rows a statement changed 2026-10-27 08:54:53 +00:00
telemetry-sqlite.test.ts feat: SQLite telemetry store in Chord, shared TelemetryStore and trace renderer 2026-10-19 16:50:11 +00:00
tutorial.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
types.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
variants.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00
watch.test.ts feat(chord,durable): failures are watch calls; one vocabulary for watches, observers and reports 2026-10-27 20:38:08 +00:00
websocket.test.ts feat(chord): references hydrate their state before use (protocol 4) 2026-10-14 14:29:58 +00:00