Repository navigation
test(e2e): characterization matrix for the nine untested tools, viewer routes, and the compaction hook (#241) - #243
Merged
Conversation
…r routes, and the compaction hook (#241) - e2e/characterization.test.ts: real-host scenarios pinning the current host-facing contract of memory_update, memory_undo, memory_export, memory_import, memory_decay, memory_consolidate, memory_merge_review, memory_evidence and memory_init - including the fail-closed paths (ambiguous and unmatched selectors, empty-reason and ghost-survivor merge reviews, export containment rejects, missing and header-vouch-less imports, impossible evidence dates) and a final-store row audit in every scenario. One scenario races two real hosts against one shared store and pins atomic appends plus lock cleanup. - e2e/viewer.test.ts: the real viewer server over raw HTTP against an isolated store - page, /api/data, edit/delete/block/unblock/restore-entry, schema and audit-reason rejections, the 404 route, and the rebinding-Host, cross-origin and content-type guards. - e2e/compaction.test.ts: session.compaction over the service host proves the durable-memory anchor rides into the summarizer request - the README claim now has a receipt. - e2e/coverage.test.ts: mechanical gate - every registered tool must have a scripted call and every registered event hook an @covers-tagged scenario; tags cannot rot, and MEMORY_TOOLS is pinned to the registration set. - harness: MEMORY_TOOLS was missing memory_update (14 tools are registered).
abogartz
force-pushed
the
test/e2e-241-characterization
branch
from
November 1, 2026 17:54
ce1793a to
d9be220
Compare
|
🎉 This PR is included in version 0.15.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #241.
What lands
memory_update,memory_undo(list → check-refuses → merge-restores),memory_export,memory_import,memory_decay(dry-run default vs explicit apply),memory_consolidate,memory_merge_review,memory_evidence,memory_init(scripts→gate, idempotent at same head)./api/data, edit/delete/block/unblock/restore-entry, plus the DNS-rebinding Host 403, cross-origin 403, and text/plain 415 guards.session.compactionhook on a service host via the host's ownPOST /api/session/:id/compact: the provider request log proves the durable-memory anchor rides into the summarizer. The README's memory-aware-compaction claim now has an e2e receipt.src/index.ts; every tool must have a scriptedcall()in the suite, every event hook an@covers hook:-tagged scenario, tags referencing unregistered hooks fail, andMEMORY_TOOLSis pinned to the registration set.MEMORY_TOOLSwas missingmemory_update: the load smoke verified 13 of 14 registered tools.Skeptical-review answers (not happy-path-only)
exports/(refused, no existence oracle), import of a missing file, import of a hand-written open row (downgraded to settled, then blocked as ungrounded), malformed import line tally, impossible-but-well-shaped evidence date, viewer schema rejects (bad ts, empty audit reason, empty body) and the JSON 404.superseded_bypointer identity,status=opensurvival, exact-once placement after the merge restore (proving merge is a deliberate superset, not a rollback), refused calls writing nothing, and zero\.lockresidue after the race.concurrency.test.ts,lock*.test.ts,scenarios-consistency.test.ts) — nondeterministic host interleavings cannot be characterized without becoming flake factories.Known residual gaps (deliberate)
memory_consolidate's propose path needs replayed recorded reads to produce a plan; that logic is unit-pinned. The e2e pins the read-only, writes-nothing, honest-nonecontract.Host findings captured
POST /api/session/:id/compactaccepts{}/{delivery};idmust be amsg_*anchor — a UUID 400s withExpected a string starting with "msg_".Gates
tscclean · biome exit 0 · unit 842 pass / 12 skip / 0 fail · e2e 30 pass / 0 fail (8 files, 28.7s).