Skip to content

Report content-free memory reader compatibility failures - #84

Closed
jsflax wants to merge 2 commits into
mainfrom
fix/reader-incompatibility-diagnostics
Closed

jsflax wants to merge 2 commits into
mainfrom
fix/reader-incompatibility-diagnostics

Conversation

@jsflax

@jsflax jsflax commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

A compatibility refusal currently reports only that a memory graph cannot be displayed. Emit one content-free stderr diagnostic at the rejecting schema, Memory or Edge guard, identifying a fixed check, field, reason and value category. Keep the existing error case, user-facing text, public signatures, scalar-only admission and field-read order unchanged.

The diagnostic includes no stored content, UUID value, path, SQL, dynamic schema name or reflected type name. It adds no query, retry, checkpoint or migration, and does not use the desktop hook log. An internal task-local sink permits isolated assertions without changing the public API.

Six new test declarations expand to seven cases covering fixed diagnostic categories, unchanged refusals, successful decoding, the public reader's schema/Memory/Edge guards, and paged reads with ordinary writer services retained. The retained-writer case makes two committed reads with a write between them; it does not claim arbitrary simultaneous-write snapshot consistency.

Validation at 2f3b646309c07a10dfe57c6a83b0494652b4c729: Linux attempt 1 passed, with 104 Swift Testing declarations / 112 expanded cases in 22 suites. All six new diagnostic declarations passed, including both parameterized date cases (seven expanded cases). The existing reader suite (five tests) and store suite (six tests) also passed. No runtime framework skips were reported.

Coverage correction: AgentMemoryReaderQueryErrorTests is excluded on Linux by its canImport(SQLite3) guard; its three parameterized cases did not execute. Native CI compiles these test files but its runtime filter omits EngramLatticeTests, so focused macOS runtime qualification of all four reader/store suites remains outstanding. Native attempt 1 also passed at this exact head, with every workflow step successful. Its broad runtime filter reports 797 passing declarations / 891 expanded passing cases and 14 skipped declarations (811 declarations in its summary). The daemon case skipped there passed in the later isolated process. Force preparation passed 10 cases; ledger timing, ledger diagnostics, daemon recovery and each of two statement budgets passed one case each in separate processes. Four benchmark early-return messages remain recorded separately; framework pass markers do not qualify those benchmark bodies.

The native release products built, all seven MCP lifecycle/contending-access cases passed, and source/dependency integrity checks passed. The plugin matrix reports 1,158 tests including one skip, with no failures or errors. These categories and repeated focused selections are not combined into a unique test total.

Both changed Swift files pass syntax parsing and diff checks. No local compile or runtime was run. No workflow or dependency changes were made.

This change adds observability, not a repair of the underlying compatibility refusal. The iOS subprocess correction in #83 remains separate. No workflow or dependency requirement changes.

At original head afe26ad64e5a3733c4966c99eb4d28e054403933, Linux attempt 1 and native attempt 1 failed before Swift runtime tests began (zero executed, no framework skips). Three throwing calls inside Swift Testing assertions did not make the enclosing task-local closure infer as throwing. The test-only follow-up evaluates those same calls in local bindings before the unchanged equality assertions; product source is unchanged. Native release-product and seven MCP case checks still passed in their separately scheduled steps. Original attempts and logs are preserved; neither was rerun.

jsflax and others added 2 commits November 15, 2026 08:12
Identify the required schema or decoded field that fails compatibility without logging stored values. Preserve reader errors, admission order and public APIs, and cover refusal categories and reads with retained writers.

Co-Authored-By: Codex <noreply@openai.com>
Make the task-local closure infer its throwing behavior before Swift Testing expands the value assertions. Keep the same decode calls, expected values and empty-diagnostic check.

Co-Authored-By: Codex <noreply@openai.com>
@jsflax

jsflax commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

Consolidated in #88 (content-free structured AgentMemoryReader compatibility diagnostics).

@jsflax jsflax closed this Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant