bastion agent 0.1.17
ci / personal-data (push) Successful in 3s
ci / test (push) Successful in 45s
ci / reproducible (push) Successful in 3s

This commit is contained in:
Privatae
2026-10-29 21:42:06 +00:00
parent e3074f50b0
commit 3ae3a2841c
22 changed files with 226 additions and 81 deletions
+8 -2
View File
@@ -123,12 +123,18 @@ class DoctrineTests(unittest.TestCase):
def test_host_catalog_needs_seal(self):
doc = with_(FULL, stages=["walk", "extract", "sanitize", "chunk", "embed", "catalog"],
grants=None, sink={"catalog": "host", "vectors": "local", "plaintext": "never"})
self.assertTrue(any("unsealed" in e for e in errors_of(doc)))
errs = errors_of(doc)
self.assertTrue(any("sink: catalog 'host' requires the 'seal' stage" in e for e in errs))
# serve's replies are never sealed, so the message must not claim that
# nothing leaves, or is served, unsealed
self.assertFalse(any("unsealed" in e for e in errs), errs)
def test_grant_needs_seal(self):
doc = with_(FULL, stages=["walk", "extract", "sanitize", "chunk", "embed", "catalog"],
sink={"catalog": "local", "vectors": "local", "plaintext": "never"})
self.assertTrue(any("grants: any grant requires the 'seal'" in e for e in errors_of(doc)))
errs = errors_of(doc)
self.assertTrue(any("grants: any grant requires the 'seal'" in e for e in errs))
self.assertFalse(any("unsealed" in e for e in errs), errs)
def test_grant_search_needs_mask_search(self):
doc = with_(FULL, mask=["read", "index", "summarize"])