opencode-self-improvement 0.33.0 → 0.33.1
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.
|
@@ -20,6 +20,11 @@ The live store carries repeated rows — superseded snapshots, cursor rows diffe
|
|
|
20
20
|
4. It treated differing numeric facts as duplicates: short tokens are dropped, so "DB 3" and "DB 4" share identical token sets and the older row was suppressed even at threshold 1.
|
|
21
21
|
- Default-ON followed the same rule as ADR 0001: a quality fix behind an opt-in flag is not a fix.
|
|
22
22
|
- Evidence: live-store replay published in the #409 record (§17) and PR #426. The replay's off-arm must set `OPENCODE_MEMORY_DEDUP=0` explicitly — with default-ON, an unset arm measures nothing.
|
|
23
|
+
- Re-measured 2026-11-19 over the window a repository actually reads — its own rows plus rows carrying no repository stamp (`bun bench/runners/dedup-live-replay.ts`; written up in the [live dedup replay](https://github.com/abogartz/opencode-self-improvement/blob/main/bench/dedup-live-results.md), whose counts are a dated snapshot because the store drifts). The scan neither confirms nor refutes 0.8: among the repository's own active rows no pair reaches the threshold, and once superseded history is included every candidate has a superseded side. It found two other things, and they are the useful part. Near-identical rows can stay active together: the write gate's duplicate check is exact and keyed by type, while this pass compares across types, so identical prose filed as two types lands twice and stays active. This pass is therefore not redundant with the gate. And the pass is inert on the repository's own rows because of its guards, not because the store is clean: of the pairs the pre-`fc59b84` rule would have suppressed, the dropped-chunk guard stops nearly all and the content floor the rest.
|
|
24
|
+
- Known limitation, from that same replay: 0.8 suppresses a pair that is not a copy. Two active rows naming two different build commands in one scope score 0.824 and pass every guard. Ranking favors recency and the pass keeps the first-ranked row of a clash, so the survivor is the newer, narrower command and the plain build command is what disappears from the reader's view. The threshold trades that against crowding; where a scope holds parallel short facts, it costs real information.
|
|
25
|
+
- Raising the default was evaluated on 2026-11-19 and rejected. The pair worth releasing scores 0.8235; the changed-fact pair pinned in `test/dedupe-tool.test.ts` — the same runbook sentence with `friday` replaced by `monday` — scores 0.8333. Any threshold separating them must sit in a window one hundredth wide, which is a constant fitted to two observations, and 0.9 releases both and removes the recency rule above. The two rows have the same shape: one sentence, one long token swapped out. Whether that swap replaced a fact or added one is not visible in a token overlap, so this is not a threshold problem.
|
|
26
|
+
- The dropped-chunk guard, not the threshold, decides what this pass ever sees. Two rows differing by a timestamp have different dropped fragments and are never compared, so the cursor rows this record names as the motivation are exempt, while prose carrying no short fragments at all is compared and can be suppressed on shape alone.
|
|
27
|
+
|
|
23
28
|
|
|
24
29
|
## Addition groups
|
|
25
30
|
|
|
@@ -21,7 +21,7 @@ Run it when you want to know whether the suite still has teeth — after changin
|
|
|
21
21
|
|
|
22
22
|
### Bench artifacts stay out of git
|
|
23
23
|
|
|
24
|
-
Raw sweep output is regenerable measurement data, and it was the largest tracked content in the repository. It is not committed (#232). A clone carries the published summaries — `bench/RESULTS.md
|
|
24
|
+
Raw sweep output is regenerable measurement data, and it was the largest tracked content in the repository. It is not committed (#232). A clone carries the published summaries — `bench/RESULTS.md` and the `bench/*-results.md` files — and the inputs those summaries are rebuilt from. History is not rewritten: the old blobs stay in earlier revisions, so this shrinks new checkouts, not the archive.
|
|
25
25
|
|
|
26
26
|
| Artifact | How to get it back |
|
|
27
27
|
| --- | --- |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-self-improvement",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Durable memory for opencode: remember facts, decisions, and commands across sessions, plus a one-command per-repo setup (/repo-init).",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"exports": {
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"bench:recall": "bun bench/runners/recall-quality.ts",
|
|
68
68
|
"bench:write": "bun bench/runners/write-latency.ts",
|
|
69
69
|
"bench:availability": "bun bench/runners/availability-policy-compare.ts",
|
|
70
|
+
"bench:dedup": "bun bench/runners/dedup-live-replay.ts",
|
|
70
71
|
"sweep:test": "bun scripts/test-sweep.ts",
|
|
71
72
|
"memory-view": "bun run src/viewer/server.ts",
|
|
72
73
|
"format": "biome format --write",
|
package/src/recall/dedupe.ts
CHANGED
|
@@ -173,9 +173,11 @@ function sameDroppedChunks(a: Memory, b: Memory): boolean {
|
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
175
|
* A row's own tokens: built DIRECTLY from the content and keyword fields.
|
|
176
|
-
* Never from `haystack()` — the identifier tokenizer splits a
|
|
177
|
-
*
|
|
178
|
-
*
|
|
176
|
+
* Never from `haystack()` — the identifier tokenizer splits a multi-word scope
|
|
177
|
+
* into its parts, and those parts stand in for content. Any delimiter does it:
|
|
178
|
+
* `auth_token_refresh_policy` and `auth-token-refresh-policy` both yield
|
|
179
|
+
* auth/token/refresh/policy, so a store holding no underscore is not exempt.
|
|
180
|
+
* Deleting only the whole scope/type strings leaves those words standing in
|
|
179
181
|
* for content: two unrelated non-Latin rows in one scope then share a
|
|
180
182
|
* Jaccard-1 metadata vocabulary, clear MIN_CONTENT on scope tokens alone,
|
|
181
183
|
* and dedup hides one.
|