Repository navigation
main's CI is green: the canary expects memory.get's served fields, the analyzer shapes carry the new schema dump, and the coalescer windows test does not race its timers - #350
Merged
Conversation
zlareb1
force-pushed
the
fix/main-red-served-fields
branch
from
November 7, 2026 10:51
db6765d to
1b7a1ad
Compare
…alyzer shapes carry the new schema dump main's integration part 2 and isolation gates failed on test_payment_and_identity_numbers_are_labelled_on_write: memory.get now answers served_count and last_served_at (None without include_recall_breakdown), and the test compares every field. tests/analyzer/test_corpus.py failed too: schemas/schema.sql gained migration 084, so its shape hash in tests/analyzer/shapes.txt moved. The test lists the two fields; shapes.txt is regenerated with python -m tests.analyzer.corpus --write (one hash). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…s are out, so a slow runner cannot close them first The test checked that windows existed after gathering 200 direct sets; when those took longer than the 10 ms window, every timer had already closed its window and the precondition failed. It now counts the windows one loop turn after the sets start, before any timer can run. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
fix/main-red-served-fields
branch
from
November 7, 2026 11:06
1b7a1ad to
681ddc2
Compare
9 tasks done
…le's other tests do Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
2 tasks done
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
...
Why
main's CI has three failures in four jobs:pytest integration part 2 of 4andpytest integration isolation gates:tests/integration/test_sensitivity_high_canary.py::test_payment_and_identity_numbers_are_labelled_on_write(5 cases) comparesmemory.get's answer field by field. The inspector's Last recalled counts every agent read that served a memory #311 addedserved_countandlast_served_attoMemoryGetOutput; both areNoneunless the call setsinclude_recall_breakdown. The diff the job prints:Left contains 2 more items: {'last_served_at': None, 'served_count': None}.tests/analyzer/test_corpus.py::test_shapes_file_matches_builders:statement shapes changed: 1 new, 1 gone. The one shape isschemas/schema.sqlitself, whose hash moved when migration 084 was added;tests/analyzer/shapes.txtwas not regenerated.pytest unit part 6:tests/unit/test_sdk_set_coalescer.py::test_windows_of_many_identities_do_not_pile_upfails withassert co._windows/assert {}. The test sends 200 sets, one per session, so each opens its own window and goes out as a directmemory.set, and it checked that windows existed aftergather.gatherreturns only after every direct set has come back, and each window's timer closes it 10 ms after it opened; when the 200 sets take longer than that, as on a loaded runner, every window is already closed. A 20 ms fakememory.setreproduces it every time.The canary now lists the two fields with the reason they are
None, andshapes.txtis regenerated withpython -m tests.analyzer.corpus --write: one line, the schema dump's hash. The coalescer test counts the windows one loop turn after the sets start, when every set has opened its window and no timer can have run, then gathers them; its final check, that every window ends at its time, is unchanged.The three are in one PR because each red job would block the others' fix from a green run.
Scope and risk
Three test files; no server or SDK code.
Compatibility, rollout and rollback
Tests
tests/integration/test_sensitivity_high_canary.pyandtests/integration/test_served_reads.pyagainst a server from this branch (migrated through 084): 16 passed.tests/unit/test_sdk_set_coalescer.py: 46 passed; the test with a 20 ms fakememory.setfails onmainand passes here.tests/analyzer/test_corpus.py -k "shapes_file or every_axis": 3 passed; it fails onmainas quoted above.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code; the CI logs and the regenerated shape were checked by hand.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.main; no merged migration is edited.frontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code