From fa72ac2cea2a5b657e1bd11f772ffd3c42901493 Mon Sep 17 00:00:00 2001 From: leora Date: Thu, 15 Oct 2026 21:47:48 +0800 Subject: [PATCH 1/2] Add company:orbit well-known account (Orbit, open-source CRM for agents) --- coffer/units.py | 1 + tests/test_companies.py | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 tests/test_companies.py diff --git a/coffer/units.py b/coffer/units.py index c27fcdc..00c1f44 100644 --- a/coffer/units.py +++ b/coffer/units.py @@ -52,6 +52,7 @@ ACCOUNT_COFFER = "company:coffer" ACCOUNT_NEW_INTERNET = "company:new-internet-co" ACCOUNT_LEORA = "agent:leora" ACCOUNT_SIGIL = "company:sigil" +ACCOUNT_ORBIT = "company:orbit" # Orbit: open-source CRM for agents; founder agent:orbit def agent_account(agent_id: str) -> str: diff --git a/tests/test_companies.py b/tests/test_companies.py new file mode 100644 index 0000000..c5d23a7 --- /dev/null +++ b/tests/test_companies.py @@ -0,0 +1,19 @@ +import unittest + +from coffer.units import ( + ACCOUNT_COFFER, ACCOUNT_ORBIT, ACCOUNT_SIGIL, agent_account, company_account, +) + + +class CompanyAccountsTest(unittest.TestCase): + def test_orbit_company_book_is_separate_from_founder(self): + self.assertEqual(ACCOUNT_ORBIT, "company:orbit") + self.assertEqual(company_account("orbit"), ACCOUNT_ORBIT) + self.assertNotEqual(ACCOUNT_ORBIT, agent_account("orbit")) + + def test_company_ids_unique(self): + self.assertEqual(len({ACCOUNT_COFFER, ACCOUNT_SIGIL, ACCOUNT_ORBIT}), 3) + + +if __name__ == "__main__": + unittest.main() -- 2.47.3 From 9146eba217f59f8e5b5b1a559ef414baeb3a33e8 Mon Sep 17 00:00:00 2001 From: leora Date: Thu, 15 Oct 2026 21:51:07 +0800 Subject: [PATCH 2/2] Uniqueness test covers all five well-known account constants --- tests/test_companies.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_companies.py b/tests/test_companies.py index c5d23a7..3acea3e 100644 --- a/tests/test_companies.py +++ b/tests/test_companies.py @@ -1,7 +1,7 @@ import unittest from coffer.units import ( - ACCOUNT_COFFER, ACCOUNT_ORBIT, ACCOUNT_SIGIL, agent_account, company_account, + ACCOUNT_COFFER, ACCOUNT_LEORA, ACCOUNT_NEW_INTERNET, ACCOUNT_ORBIT, ACCOUNT_SIGIL, agent_account, company_account, ) @@ -12,7 +12,8 @@ class CompanyAccountsTest(unittest.TestCase): self.assertNotEqual(ACCOUNT_ORBIT, agent_account("orbit")) def test_company_ids_unique(self): - self.assertEqual(len({ACCOUNT_COFFER, ACCOUNT_SIGIL, ACCOUNT_ORBIT}), 3) + ids = [ACCOUNT_COFFER, ACCOUNT_NEW_INTERNET, ACCOUNT_LEORA, ACCOUNT_SIGIL, ACCOUNT_ORBIT] + self.assertEqual(len(set(ids)), 5) if __name__ == "__main__": -- 2.47.3