Skip to content

Hermetic canonical-memory agent-tools case expires its fixed “fresh” fixture #10423

Closed

Description

@Git-on-my-level

backend/testing/e2e/test_canonical_memory_pipeline.py::TestSurfaceDefaultAccessMatrix::test_surface_excludes_archive_and_respects_grants[agent_tools] now fails deterministically in the Backend Hermetic E2E workflow (including a failed-job retry on PR #10422): the test seeds fresh-short at the fixed NOW = 2026-06-24, while the production agent-tools path calls read_canonical_memories, which evaluates short-term expiry against the real wall clock; on 2026-07-23 the short-term fixture is filtered and only coffee long term remains. Running this case alone also exposes an existing order dependency: without an earlier client fixture, tool_memories_service.firestore_db is not rebound to fake_firestore and attempts a real Firestore read. Evidence: https://github.com/BasedHardware/omi/actions/runs/30036304928. The hermetic test should control the reader clock and bind its datastore explicitly so it is date- and order-independent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions