Repository navigation
Conversation
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>
Owner
Author
|
Consolidated in #88 (content-free structured AgentMemoryReader compatibility diagnostics). |
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.
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:
AgentMemoryReaderQueryErrorTestsis excluded on Linux by itscanImport(SQLite3)guard; its three parameterized cases did not execute. Native CI compiles these test files but its runtime filter omitsEngramLatticeTests, 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.