Repository navigation
Conversation
Reads follow the link to its target; a save's atomic rename replaces the link itself with a regular file holding the whole graph, and the link's former target is left byte-for-byte unchanged. Characterization only, no behavior change. POSIX only, like the other symlink tests in the suite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
… cannot read Which line shapes are skipped, which of them log to stderr and which do not, that every save keeps them and they count toward MEMORY_MAX_FILE_BYTES, that no tool reaches them, and that the fix is a hand edit with the clients stopped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
Adds protocol-level characterization tests for the sibling faces of rules already pinned elsewhere: delete_relations' exact match also rejects a space-padded relation type; entity identity is case-sensitive while search_nodes is case-insensitive; and observationCount agrees with delete_observations on the next read. Each request names every item once. Test-only; no behavior change. Proposed by @reservoir-cmyk in #5645. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
create_entities pushed the requested entities unchanged, so a string repeated within one entity's observations was stored twice, unlike add_observations (#5201), and delete_observations then reported deleting more than it was asked to. Dedupe each new entity's observations in place: skippedEntityNames tells created entities apart by identity, so mapped copies would report every entity as skipped. Closes #5653 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
create_relations returned a bare empty list for a relation that already exists, so an agent could not tell "already there" from "nothing happened". Mirror create_entities: list the skipped relations (existing, or repeated earlier in the same call) in an optional `skipped` field of structuredContent, add a text notice naming them, and say so in the tool description and README. Closes #5654 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
delete_relations and delete_observations compared the number of stored records removed with the raw request length, so a relation or observation listed twice reported "Deleted 1 of 2 ... The rest matched nothing" although both items matched the same record. Both now count distinct requested items: (from, to, relationType) for relations, keyed collision-free by JSON-encoding the three fields, and (entityName, observation) pairs for observations. The methods count distinct requested items that matched rather than records removed, so a requested item stored twice counts once and the message can never read "Deleted 2 of 1". The response shape and wording are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
… file's directory is missing When the directory holding MEMORY_FILE_PATH did not exist, reads reported an empty graph while every write failed with a raw ENOENT naming the internal .lock file. The README already promises that the server creates the memory file but not the directories above it, so keep that and make reads and writes agree: both now fail with one error naming the memory file and its directory, and pointing at MEMORY_FILE_PATH. A missing file in an existing directory is still an empty graph. Closes #5689 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
Two processes clearing the same crash-left guard could remove a live guard a third took in between. The clearer now renames the guard aside, compares it with the file it judged (whose handle stays open, so its inode cannot be reused), and links a live guard back exclusively. The comment above guardPathOf() states the gap that remains. Closes #5624 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
The six KnowledgeGraphManager write methods matched each requested item against the loaded graph (and against earlier items in the same batch) by linear scan. They now build a Set or Map once per call: relation keys are JSON.stringify of the (from, to, relationType) tuple, which no separator in an entity name can collide, and name lookups keep the first entity of a name, as Array.prototype.find did. Behavior is unchanged. A new test checks a seeded run of 300 random writes, step by step, against a reference model holding the old scanning code, and pins separator-bearing relation keys, a hand-edited file with two same-named entities, and create_entities' skipped report. Refs #5693 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
… of racing it "keeps a lock held longer than staleMs fresh" held a lock for 400 ms with staleMs 100, so the heartbeat refreshed it every 50 ms, and a waiter judged its age against the real clock. When a refresh landed more than 50 ms late (a slow runner's disk or scheduler), the waiter saw a live lock older than staleMs and broke it. Delaying each heartbeat utimes by 120 ms reproduces the CI order [long start, waiter, long end] every time. The heartbeat itself is sound: production keeps a 15 s margin (staleMs 30 s, a beat every 15 s). The test now fakes Date and the heartbeat's interval only. It advances the clock one beat at a time, waits for that beat's refresh to land and for the waiter to look at the lock again, and holds the lock for four times staleMs before releasing it. Timeouts stay real, so the waiter retries on its own. Closes #5680 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
… and stop HTTP servers before a hand edit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
A path component that is a file made writes report the missing directory, but reads still returned Node's raw ENOTDIR. Reads now run the same directory check on ENOTDIR, and keep the original error if it passes. The tests cover every tool for that case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
Review of #5715: a heartbeat that stopped refreshing left the test waiting until Vitest's timeout, which skips the test's finally, so the fake timers and the blocked lock holder outlived it. Each wait now gives up after 10 s of real time with an error that names what it waited for. The finally releases the holder and settles both lock operations, and afterEach restores real timers for a test that times out anyway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
…d conflicts deleteObservations and deleteRelations keep #5693's Set lookups and take #5655's distinct-item counting; the duplicate relationKey helper #5655 added is dropped in favour of #5693's identical one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
…0 directory Windows ignores POSIX mode bits, so the passthrough test saw no EACCES there and failed on the Windows CI leg. Make fs.stat reject instead, which holds on every platform and needs no skip for root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
…ph-path-tests' into v2/chore/5696-memory-v2.7.0-rollup
…e-tests' into v2/chore/5696-memory-v2.7.0-rollup
…dable-lines' into v2/chore/5696-memory-v2.7.0-rollup
…es-dedupe' into v2/chore/5696-memory-v2.7.0-rollup
…ons-skipped' into v2/chore/5696-memory-v2.7.0-rollup
…ed-items' into v2/chore/5696-memory-v2.7.0-rollup
…t-test' into v2/chore/5696-memory-v2.7.0-rollup
…ace' into v2/chore/5696-memory-v2.7.0-rollup
…s' into v2/chore/5696-memory-v2.7.0-rollup
…t-dir' into v2/chore/5696-memory-v2.7.0-rollup
…ations' skipped report The separator test compared the whole structuredContent, so it failed once #5654 reports the in-batch repeat as skipped. The lookup is what it tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
…emory-v2.7.0-rollup
🦋 Changeset detectedLatest commit: 3e272dd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
| Tools | Prompts | Resources | Resource templates | |
|---|---|---|---|---|
| Base | 9 | 0 | 1 | 0 |
| Head | 9 | 0 | 1 | 0 |
tools
--- base/tools.json
+++ target/tools.json
- tools[create_relations].description: "Create multiple new relations between entities in the knowledge graph. Relations should be in active..."
+ tools[create_relations].description: "Create multiple new relations between entities in the knowledge graph. Relations should be in active..."
+ tools[create_relations].outputSchema.properties.skipped: {"items":{"additionalProperties":false,"properties":{"from":{"description":"The name of the entity where the relation starts","type":"string"},"relationType":{"description":"The type of the relation",...Updated by this run for 3e272ddb822cad43be6dfec5d4fc8e6308caf8d0.
|
| Tools | Prompts | Resources | Resource templates | |
|---|---|---|---|---|
| Base | 3 | 0 | 0 | 0 |
| Head | 3 | 0 | 0 | 0 |
Updated by this run for 11ec86de2d65768bfbd8b6e1f9ff6216adaad3b1.
|
| Tools | Prompts | Resources | Resource templates | |
|---|---|---|---|---|
| Base | 1 | 0 | 0 | 0 |
| Head | 1 | 0 | 0 | 0 |
Updated by this run for 11ec86de2d65768bfbd8b6e1f9ff6216adaad3b1.
|
| Tools | Prompts | Resources | Resource templates | |
|---|---|---|---|---|
| Base | 16 | 0 | 0 | 1 |
| Head | 16 | 0 | 0 | 1 |
Updated by this run for 11ec86de2d65768bfbd8b6e1f9ff6216adaad3b1.
|
| Tools | Prompts | Resources | Resource templates | |
|---|---|---|---|---|
| Base | 14 | 2 | 0 | 0 |
| Head | 14 | 2 | 0 | 0 |
Updated by this run for 11ec86de2d65768bfbd8b6e1f9ff6216adaad3b1.
|
| Tools | Prompts | Resources | Resource templates | |
|---|---|---|---|---|
| Base | 1 | 1 | 0 | 0 |
| Head | 1 | 1 | 0 | 0 |
Updated by this run for 11ec86de2d65768bfbd8b6e1f9ff6216adaad3b1.
|
Closing without merging, as planned. CI is green at 3e272dd, which merges all ten #5696 PRs onto the current |
Part of #5696
Temporary rollup: do not merge. This PR merges all ten memory v2.7.0 PRs onto
v2/main, so CI can show that they work together. It will be closed, not merged, once CI is green. The constituent PRs are then merged one by one. No Copilot review is requested here; each constituent PR already had its own review.Conflicts found while building this rollup were fixed in the constituent PRs, not here:
createEntities,deleteObservationsanddeleteRelations. It now merges both, so fix(memory): store a repeated observation once in create_entities #5707 and fix(memory): count a repeated delete request item once #5711 merge before perf(memory): index the write tools' lookups with Set and Map #5724.create_relations' whole result and broke once fix(memory): report relations create_relations skipped #5708 reported the in-batch repeat asskipped. It now asserts only the created relations (toMatchObject).npm run local:gateexited 0 on this branch.🤖 Generated with Claude Code