Skip to content

The agent that grows with you

test: trim salvaged #99763 to the two invariant-pinning tests

Teknium9b84a98e29a2
diff --git a/apps/desktop/src/store/session.test.ts b/apps/desktop/src/store/session.test.ts
index 479c7bfc522..0a8de8e2203 100644
--- a/apps/desktop/src/store/session.test.ts
+++ b/apps/desktop/src/store/session.test.ts
@@ -380,13 +380,6 @@ describe('lineageAliases across a deep compression chain', () => {
expect(lineageAliases('tip', rows).sort()).toEqual(['mid', 'root', 'tip'])
expect(sessionMatchesStoredId(rows[0], 'mid')).toBe(true)
})
-
- it('keeps the root/tip pairing for gateways without the field', () => {
- const rows = [session({ _lineage_root_id: 'root', id: 'tip' })]
-
- expect(lineageAliases('tip', rows).sort()).toEqual(['root', 'tip'])
- expect(lineageAliases('unknown', rows)).toEqual(['unknown'])
- })
})
describe('resolveComposerSessionKey', () => {
diff --git a/tests/test_hermes_state.py b/tests/test_hermes_state.py
index b0abbd37a5b..e9bd3823f6b 100644
--- a/tests/test_hermes_state.py
+++ b/tests/test_hermes_state.py
@@ -2752,18 +2752,6 @@ class TestCompressionChainProjection:
assert db.get_compression_tip("mid1") == "tip1"
assert db.get_compression_tip("tip1") == "tip1"
- def test_get_compression_chain_lists_every_segment(self, db):
- """Root-first order, intermediates included; a chainless id is its
- own one-element chain."""
- import time as _time
- self._build_compression_chain(db, _time.time() - 3600)
- assert db.get_compression_chain("root1") == ["root1", "mid1", "tip1"]
- assert db.get_compression_chain("mid1") == ["mid1", "tip1"]
- assert db.get_compression_chain("tip1") == ["tip1"]
- db.create_session("solo_chain", "cli")
- db._conn.commit()
- assert db.get_compression_chain("solo_chain") == ["solo_chain"]
-
def test_list_serves_full_lineage_ids_for_projected_rows(self, db):
"""The projected tip row must carry every chain id. Root and tip
alone are not enough client-side: a persisted tile or route can hold