egzoscore 0.2.0__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. {egzoscore-0.2.0 → egzoscore-0.3.0}/CHANGELOG.md +299 -0
  2. egzoscore-0.3.0/CONTRIBUTING.md +55 -0
  3. egzoscore-0.3.0/PKG-INFO +183 -0
  4. egzoscore-0.3.0/README.md +135 -0
  5. egzoscore-0.3.0/SECURITY.md +37 -0
  6. {egzoscore-0.2.0 → egzoscore-0.3.0}/pyproject.toml +36 -2
  7. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/__init__.py +1 -1
  8. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/_ids.py +5 -0
  9. egzoscore-0.3.0/src/egzos/_term.py +109 -0
  10. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/_types.py +103 -2
  11. egzoscore-0.3.0/src/egzos/api/addresses.py +102 -0
  12. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/api/app.py +313 -84
  13. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/api/blobs.py +2 -1
  14. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/api/throttle.py +3 -2
  15. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/authz/presence.py +9 -2
  16. egzoscore-0.3.0/src/egzos/backends/base.py +192 -0
  17. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/backends/postgres.py +386 -9
  18. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/backends/sqlite.py +151 -9
  19. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/cli/__init__.py +16 -5
  20. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/container.py +66 -2
  21. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/identity.py +34 -12
  22. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/mcp/http.py +10 -5
  23. egzoscore-0.3.0/src/egzos/mcp/server.py +825 -0
  24. egzoscore-0.3.0/src/egzos/mcp/wire.py +165 -0
  25. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/model.py +6 -1
  26. egzoscore-0.3.0/src/egzos/places.py +54 -0
  27. egzoscore-0.3.0/src/egzos/serving.py +56 -0
  28. egzoscore-0.3.0/src/egzos/store/blobs.py +298 -0
  29. egzoscore-0.3.0/src/egzos/store/deleted.py +304 -0
  30. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/store/items.py +16 -14
  31. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/store/nodes.py +62 -0
  32. egzoscore-0.3.0/src/egzos/store/objects.py +281 -0
  33. egzoscore-0.3.0/src/egzos/store/uploads.py +826 -0
  34. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/trust.py +105 -8
  35. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/app.py +25 -2
  36. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/templates/_shell.html +3 -3
  37. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/templates/_window.html +1 -1
  38. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/templates/error.html +1 -1
  39. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/templates/home.html +3 -3
  40. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/templates/item.html +9 -9
  41. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/templates/pending.html +6 -6
  42. egzoscore-0.2.0/.claude/agents/README.md +0 -90
  43. egzoscore-0.2.0/.claude/agents/a1p-planner.md +0 -124
  44. egzoscore-0.2.0/.claude/agents/a1r-reviewer.md +0 -130
  45. egzoscore-0.2.0/.claude/agents/a2-conformance.md +0 -122
  46. egzoscore-0.2.0/.claude/agents/a3-doorman.md +0 -106
  47. egzoscore-0.2.0/.claude/agents/a3-ledger.md +0 -94
  48. egzoscore-0.2.0/.claude/agents/a3-store.md +0 -101
  49. egzoscore-0.2.0/.claude/agents/a3-trust.md +0 -116
  50. egzoscore-0.2.0/.claude/agents/a5-dinghy.md +0 -104
  51. egzoscore-0.2.0/.claude/agents/a6-adversary.md +0 -167
  52. egzoscore-0.2.0/.claude/agents/haiku-mechanic.md +0 -94
  53. egzoscore-0.2.0/.github/ISSUE_TEMPLATE/config.yml +0 -5
  54. egzoscore-0.2.0/.github/ISSUE_TEMPLATE/contract-change.yml +0 -37
  55. egzoscore-0.2.0/.github/ISSUE_TEMPLATE/design-gap.yml +0 -34
  56. egzoscore-0.2.0/.github/ISSUE_TEMPLATE/governance.yml +0 -40
  57. egzoscore-0.2.0/.github/ISSUE_TEMPLATE/plan-request.yml +0 -29
  58. egzoscore-0.2.0/.github/ISSUE_TEMPLATE/task.yml +0 -43
  59. egzoscore-0.2.0/.github/OWNERSHIP.yml +0 -161
  60. egzoscore-0.2.0/.github/PULL_REQUEST_TEMPLATE.md +0 -28
  61. egzoscore-0.2.0/.github/dependabot.yml +0 -15
  62. egzoscore-0.2.0/.github/labels.yml +0 -97
  63. egzoscore-0.2.0/.github/release-requirements.txt +0 -29
  64. egzoscore-0.2.0/.github/scripts/README.md +0 -134
  65. egzoscore-0.2.0/.github/scripts/check_ownership.py +0 -535
  66. egzoscore-0.2.0/.github/scripts/file_advisory.sh +0 -125
  67. egzoscore-0.2.0/.github/scripts/gh_issue.sh +0 -98
  68. egzoscore-0.2.0/.github/scripts/post_review_comment.sh +0 -47
  69. egzoscore-0.2.0/.github/workflows/a1p-planner.yml +0 -239
  70. egzoscore-0.2.0/.github/workflows/a1r-review.yml +0 -384
  71. egzoscore-0.2.0/.github/workflows/a2-conformance.yml +0 -535
  72. egzoscore-0.2.0/.github/workflows/a6-adversary.yml +0 -830
  73. egzoscore-0.2.0/.github/workflows/core-queue.yml +0 -343
  74. egzoscore-0.2.0/.github/workflows/labels-sync.yml +0 -63
  75. egzoscore-0.2.0/.github/workflows/nightly-integration.yml +0 -309
  76. egzoscore-0.2.0/.github/workflows/ownership-check.yml +0 -107
  77. egzoscore-0.2.0/.github/workflows/release.yml +0 -70
  78. egzoscore-0.2.0/.github/workflows/stale.yml +0 -42
  79. egzoscore-0.2.0/.github/workflows/tests.yml +0 -87
  80. egzoscore-0.2.0/CLAUDE.md +0 -165
  81. egzoscore-0.2.0/CONTRIBUTING.md +0 -49
  82. egzoscore-0.2.0/PKG-INFO +0 -135
  83. egzoscore-0.2.0/README.md +0 -104
  84. egzoscore-0.2.0/SECURITY.md +0 -41
  85. egzoscore-0.2.0/adversarial/README.md +0 -51
  86. egzoscore-0.2.0/adversarial/conftest.py +0 -51
  87. egzoscore-0.2.0/adversarial/test_capability_scope_approval_acts.py +0 -97
  88. egzoscore-0.2.0/adversarial/test_ghsa_2478_6jv5_83ff.py +0 -89
  89. egzoscore-0.2.0/adversarial/test_ghsa_9g46_638p_v4xm.py +0 -167
  90. egzoscore-0.2.0/adversarial/test_ghsa_9gxm_mm8f_q49j.py +0 -64
  91. egzoscore-0.2.0/adversarial/test_ghsa_c3gg_hwx9_473g.py +0 -100
  92. egzoscore-0.2.0/adversarial/test_ghsa_m955_fr24_frwq.py +0 -129
  93. egzoscore-0.2.0/adversarial/test_ghsa_wf2m_wg6h_v6wf.py +0 -220
  94. egzoscore-0.2.0/adversarial/test_injected_yes.py +0 -46
  95. egzoscore-0.2.0/adversarial/test_mvp_boundaries.py +0 -499
  96. egzoscore-0.2.0/adversarial/test_staging_retention.py +0 -47
  97. egzoscore-0.2.0/adversarial/test_testpaths_reciprocal.py +0 -44
  98. egzoscore-0.2.0/adversarial/test_xfail_finding_contract.py +0 -160
  99. egzoscore-0.2.0/docs/README.md +0 -22
  100. egzoscore-0.2.0/docs/build/README.md +0 -58
  101. egzoscore-0.2.0/docs/build/REVIEW-DECISIONS.md +0 -288
  102. egzoscore-0.2.0/docs/build/egzos-build-plan-v1.2.txt +0 -364
  103. egzoscore-0.2.0/docs/build/egzos-decisions-v0.6-amendments.txt +0 -369
  104. egzoscore-0.2.0/docs/build/egzos-decisions-v0.7-amendments.txt +0 -747
  105. egzoscore-0.2.0/docs/build/instruments/README.md +0 -124
  106. egzoscore-0.2.0/docs/build/instruments/audit_specs.py +0 -562
  107. egzoscore-0.2.0/docs/build/instruments/check_keys.py +0 -235
  108. egzoscore-0.2.0/docs/build/instruments/check_sync.py +0 -76
  109. egzoscore-0.2.0/docs/build/instruments/selftest.py +0 -278
  110. egzoscore-0.2.0/scripts/demo.sh +0 -69
  111. egzoscore-0.2.0/scripts/mcp_client_probe.py +0 -63
  112. egzoscore-0.2.0/spec/README.md +0 -58
  113. egzoscore-0.2.0/spec/contracts/README.md +0 -66
  114. egzoscore-0.2.0/spec/contracts/authorization-server.md +0 -1948
  115. egzoscore-0.2.0/spec/contracts/capabilities.md +0 -214
  116. egzoscore-0.2.0/spec/contracts/container.md +0 -403
  117. egzoscore-0.2.0/spec/contracts/context-item.md +0 -139
  118. egzoscore-0.2.0/spec/contracts/events.md +0 -267
  119. egzoscore-0.2.0/spec/contracts/identity.md +0 -572
  120. egzoscore-0.2.0/spec/contracts/rest.md +0 -1004
  121. egzoscore-0.2.0/spec/contracts/storage.md +0 -621
  122. egzoscore-0.2.0/spec/design/DESIGN-PRINCIPLES.md +0 -87
  123. egzoscore-0.2.0/spec/design/DESIGN-SOURCES.md +0 -432
  124. egzoscore-0.2.0/spec/design/README.md +0 -103
  125. egzoscore-0.2.0/spec/design/brand/BRAND.md +0 -480
  126. egzoscore-0.2.0/spec/design/brand/app/chief-proxy.svg +0 -1
  127. egzoscore-0.2.0/spec/design/brand/app/egzos-forge.svg +0 -2
  128. egzoscore-0.2.0/spec/design/brand/badge/badge-dark-violet.svg +0 -2
  129. egzoscore-0.2.0/spec/design/brand/badge/badge-dark.svg +0 -2
  130. egzoscore-0.2.0/spec/design/brand/badge/badge-light.svg +0 -2
  131. egzoscore-0.2.0/spec/design/brand/banner/readme-header-dark.svg +0 -2
  132. egzoscore-0.2.0/spec/design/brand/banner/readme-header-light.svg +0 -2
  133. egzoscore-0.2.0/spec/design/brand/banner/social-preview.svg +0 -2
  134. egzoscore-0.2.0/spec/design/brand/lockup/horizontal-dark.svg +0 -2
  135. egzoscore-0.2.0/spec/design/brand/lockup/horizontal.svg +0 -2
  136. egzoscore-0.2.0/spec/design/brand/lockup/inline/horizontal-nav.svg +0 -5
  137. egzoscore-0.2.0/spec/design/brand/lockup/inline/horizontal.svg +0 -2
  138. egzoscore-0.2.0/spec/design/brand/lockup/inline/stacked.svg +0 -2
  139. egzoscore-0.2.0/spec/design/brand/lockup/stacked-dark.svg +0 -2
  140. egzoscore-0.2.0/spec/design/brand/lockup/stacked.svg +0 -2
  141. egzoscore-0.2.0/spec/design/brand/mark/favicon.svg +0 -5
  142. egzoscore-0.2.0/spec/design/brand/mark/inline/pending-32.svg +0 -2
  143. egzoscore-0.2.0/spec/design/brand/mark/inline/pending-64.svg +0 -2
  144. egzoscore-0.2.0/spec/design/brand/mark/inline/pending-flat.svg +0 -5
  145. egzoscore-0.2.0/spec/design/brand/mark/inline/slice-32.svg +0 -1
  146. egzoscore-0.2.0/spec/design/brand/mark/inline/slice-64.svg +0 -1
  147. egzoscore-0.2.0/spec/design/brand/mark/inline/slice-flat.svg +0 -1
  148. egzoscore-0.2.0/spec/design/brand/mark/inline/whole-32.svg +0 -1
  149. egzoscore-0.2.0/spec/design/brand/mark/inline/whole-64.svg +0 -1
  150. egzoscore-0.2.0/spec/design/brand/mark/inline/whole-flat.svg +0 -1
  151. egzoscore-0.2.0/spec/design/brand/mark/pending-32-dark.svg +0 -2
  152. egzoscore-0.2.0/spec/design/brand/mark/pending-32.svg +0 -2
  153. egzoscore-0.2.0/spec/design/brand/mark/pending-64-dark.svg +0 -2
  154. egzoscore-0.2.0/spec/design/brand/mark/pending-64.svg +0 -2
  155. egzoscore-0.2.0/spec/design/brand/mark/pending-flat-dark.svg +0 -5
  156. egzoscore-0.2.0/spec/design/brand/mark/pending-flat.svg +0 -5
  157. egzoscore-0.2.0/spec/design/brand/mark/slice-32-dark.svg +0 -1
  158. egzoscore-0.2.0/spec/design/brand/mark/slice-32.svg +0 -1
  159. egzoscore-0.2.0/spec/design/brand/mark/slice-64-dark.svg +0 -1
  160. egzoscore-0.2.0/spec/design/brand/mark/slice-64.svg +0 -1
  161. egzoscore-0.2.0/spec/design/brand/mark/slice-flat-dark.svg +0 -1
  162. egzoscore-0.2.0/spec/design/brand/mark/slice-flat.svg +0 -1
  163. egzoscore-0.2.0/spec/design/brand/mark/whole-32-dark.svg +0 -1
  164. egzoscore-0.2.0/spec/design/brand/mark/whole-32.svg +0 -1
  165. egzoscore-0.2.0/spec/design/brand/mark/whole-64-dark.svg +0 -1
  166. egzoscore-0.2.0/spec/design/brand/mark/whole-64.svg +0 -1
  167. egzoscore-0.2.0/spec/design/brand/mark/whole-flat-dark.svg +0 -1
  168. egzoscore-0.2.0/spec/design/brand/mark/whole-flat.svg +0 -1
  169. egzoscore-0.2.0/spec/design/brand/mcp/icons.json +0 -34
  170. egzoscore-0.2.0/spec/design/brand/pipeline/check.py +0 -159
  171. egzoscore-0.2.0/spec/design/brand/pipeline/fonts/.gitignore +0 -2
  172. egzoscore-0.2.0/spec/design/brand/pipeline/manifest.json +0 -82
  173. egzoscore-0.2.0/spec/design/brand/pipeline/orb.py +0 -361
  174. egzoscore-0.2.0/spec/design/brand/pipeline/outline.py +0 -109
  175. egzoscore-0.2.0/spec/design/brand/pipeline/render.py +0 -294
  176. egzoscore-0.2.0/spec/design/brand/pipeline/requirements.txt +0 -9
  177. egzoscore-0.2.0/spec/design/brand/pwa/apple-touch-icon.svg +0 -2
  178. egzoscore-0.2.0/spec/design/brand/pwa/head.html +0 -7
  179. egzoscore-0.2.0/spec/design/brand/pwa/manifest-icons.json +0 -22
  180. egzoscore-0.2.0/spec/design/brand/pwa/maskable-dark.svg +0 -2
  181. egzoscore-0.2.0/spec/design/brand/pwa/maskable-light.svg +0 -2
  182. egzoscore-0.2.0/spec/design/brand/terminal/header-8-ascii.txt +0 -8
  183. egzoscore-0.2.0/spec/design/brand/terminal/header-8-blocks.txt +0 -8
  184. egzoscore-0.2.0/spec/design/brand/terminal/slice-16-blocks.txt +0 -15
  185. egzoscore-0.2.0/spec/design/brand/terminal/splash-16-ascii.txt +0 -16
  186. egzoscore-0.2.0/spec/design/brand/terminal/splash-16-blocks.txt +0 -16
  187. egzoscore-0.2.0/spec/design/brand/terminal/splash-16-braille.txt +0 -16
  188. egzoscore-0.2.0/spec/design/brand/terminal/whole-16-blocks.txt +0 -16
  189. egzoscore-0.2.0/spec/design/brand/wordmark/inline/wordmark.svg +0 -1
  190. egzoscore-0.2.0/spec/design/brand/wordmark/wordmark-dark.svg +0 -1
  191. egzoscore-0.2.0/spec/design/brand/wordmark/wordmark.svg +0 -1
  192. egzoscore-0.2.0/spec/design/consent.md +0 -416
  193. egzoscore-0.2.0/spec/design/lifeboat.md +0 -431
  194. egzoscore-0.2.0/spec/design/step-up-tap-and-pending-approval.md +0 -546
  195. egzoscore-0.2.0/spec/design/tokens.css +0 -356
  196. egzoscore-0.2.0/src/egzos/_term.py +0 -33
  197. egzoscore-0.2.0/src/egzos/backends/base.py +0 -91
  198. egzoscore-0.2.0/src/egzos/mcp/server.py +0 -287
  199. egzoscore-0.2.0/src/egzos/store/blobs.py +0 -120
  200. egzoscore-0.2.0/src/egzos/store/objects.py +0 -143
  201. egzoscore-0.2.0/src/egzos/store/uploads.py +0 -369
  202. egzoscore-0.2.0/tests/_types/test_as_vocabularies.py +0 -74
  203. egzoscore-0.2.0/tests/_types/test_container_shapes.py +0 -239
  204. egzoscore-0.2.0/tests/_types/test_event_vocabulary.py +0 -135
  205. egzoscore-0.2.0/tests/_types/test_exports.py +0 -44
  206. egzoscore-0.2.0/tests/_types/test_rest_door.py +0 -41
  207. egzoscore-0.2.0/tests/_types/test_storage_protocols.py +0 -147
  208. egzoscore-0.2.0/tests/_types/test_throttle_rates.py +0 -93
  209. egzoscore-0.2.0/tests/api/authenticator.py +0 -75
  210. egzoscore-0.2.0/tests/api/test_agents.py +0 -562
  211. egzoscore-0.2.0/tests/api/test_blob_grant.py +0 -437
  212. egzoscore-0.2.0/tests/api/test_confirm.py +0 -385
  213. egzoscore-0.2.0/tests/api/test_credentials.py +0 -298
  214. egzoscore-0.2.0/tests/api/test_door.py +0 -520
  215. egzoscore-0.2.0/tests/api/test_grants.py +0 -369
  216. egzoscore-0.2.0/tests/api/test_terminal_routes.py +0 -683
  217. egzoscore-0.2.0/tests/api/test_terminal_token.py +0 -356
  218. egzoscore-0.2.0/tests/api/test_throttle.py +0 -89
  219. egzoscore-0.2.0/tests/api/test_tombstone.py +0 -339
  220. egzoscore-0.2.0/tests/api/test_upload.py +0 -431
  221. egzoscore-0.2.0/tests/authz/test_authz_presence_live.py +0 -40
  222. egzoscore-0.2.0/tests/authz/test_authz_values.py +0 -60
  223. egzoscore-0.2.0/tests/cli/test_link.py +0 -155
  224. egzoscore-0.2.0/tests/cli/test_rm.py +0 -124
  225. egzoscore-0.2.0/tests/conformance/test_brand_pipeline.py +0 -46
  226. egzoscore-0.2.0/tests/conformance/test_contract_tables.py +0 -643
  227. egzoscore-0.2.0/tests/conformance/test_testpaths.py +0 -271
  228. egzoscore-0.2.0/tests/conftest.py +0 -9
  229. egzoscore-0.2.0/tests/fixtures/README.md +0 -12
  230. egzoscore-0.2.0/tests/governance/test_check_ownership.py +0 -517
  231. egzoscore-0.2.0/tests/governance/test_file_advisory.py +0 -310
  232. egzoscore-0.2.0/tests/governance/test_gh_issue.py +0 -143
  233. egzoscore-0.2.0/tests/governance/test_salvage.py +0 -179
  234. egzoscore-0.2.0/tests/governance/test_workflows.py +0 -1032
  235. egzoscore-0.2.0/tests/human_tap.py +0 -40
  236. egzoscore-0.2.0/tests/ledger/test_ledger_principal_none.py +0 -86
  237. egzoscore-0.2.0/tests/ledger/test_terminal_attribution.py +0 -152
  238. egzoscore-0.2.0/tests/mcp/test_mcp_http.py +0 -410
  239. egzoscore-0.2.0/tests/store/conftest.py +0 -268
  240. egzoscore-0.2.0/tests/store/test_atomic.py +0 -183
  241. egzoscore-0.2.0/tests/store/test_backend_agnostic.py +0 -91
  242. egzoscore-0.2.0/tests/store/test_blob_store.py +0 -97
  243. egzoscore-0.2.0/tests/store/test_chain.py +0 -97
  244. egzoscore-0.2.0/tests/store/test_container_state.py +0 -118
  245. egzoscore-0.2.0/tests/store/test_item_store.py +0 -98
  246. egzoscore-0.2.0/tests/store/test_items.py +0 -99
  247. egzoscore-0.2.0/tests/store/test_nul.py +0 -81
  248. egzoscore-0.2.0/tests/store/test_objects_only.py +0 -123
  249. egzoscore-0.2.0/tests/store/test_postgres_only.py +0 -169
  250. egzoscore-0.2.0/tests/store/test_s3_only.py +0 -71
  251. egzoscore-0.2.0/tests/store/test_state_confirm.py +0 -77
  252. egzoscore-0.2.0/tests/store/test_state_grant.py +0 -56
  253. egzoscore-0.2.0/tests/store/test_state_identity.py +0 -111
  254. egzoscore-0.2.0/tests/store/test_state_throttle.py +0 -151
  255. egzoscore-0.2.0/tests/store/test_state_upload.py +0 -74
  256. egzoscore-0.2.0/tests/store/test_uploads.py +0 -215
  257. egzoscore-0.2.0/tests/test_answers.py +0 -146
  258. egzoscore-0.2.0/tests/test_cli_usage.py +0 -106
  259. egzoscore-0.2.0/tests/test_command_name.py +0 -112
  260. egzoscore-0.2.0/tests/test_connect.py +0 -205
  261. egzoscore-0.2.0/tests/test_freeze_rules.py +0 -362
  262. egzoscore-0.2.0/tests/test_home_binding.py +0 -464
  263. egzoscore-0.2.0/tests/test_lifeboat.py +0 -801
  264. egzoscore-0.2.0/tests/test_presence.py +0 -369
  265. egzoscore-0.2.0/tests/test_serving_and_init.py +0 -199
  266. egzoscore-0.2.0/tests/test_skeleton.py +0 -244
  267. egzoscore-0.2.0/tests/test_smoke.py +0 -16
  268. egzoscore-0.2.0/tests/test_term.py +0 -22
  269. egzoscore-0.2.0/tests/test_tokens.py +0 -74
  270. egzoscore-0.2.0/tests/trust/test_auth_revoke.py +0 -75
  271. egzoscore-0.2.0/tests/trust/test_confirm_terminal.py +0 -128
  272. egzoscore-0.2.0/tests/trust/test_identity_grants.py +0 -387
  273. egzoscore-0.2.0/tests/trust/test_identity_verify.py +0 -347
  274. egzoscore-0.2.0/tests/trust/test_principal_ids.py +0 -169
  275. egzoscore-0.2.0/tests/trust/test_quarantine.py +0 -56
  276. egzoscore-0.2.0/tests/trust/test_terminals.py +0 -274
  277. egzoscore-0.2.0/tests/web/test_pending_scope.py +0 -99
  278. egzoscore-0.2.0/tests/web/test_same.py +0 -67
  279. egzoscore-0.2.0/tests/web/test_template_headers.py +0 -59
  280. {egzoscore-0.2.0 → egzoscore-0.3.0}/.gitignore +0 -0
  281. {egzoscore-0.2.0 → egzoscore-0.3.0}/LICENSE +0 -0
  282. {egzoscore-0.2.0 → egzoscore-0.3.0}/NOTICE +0 -0
  283. {egzoscore-0.2.0 → egzoscore-0.3.0}/TRADEMARKS.md +0 -0
  284. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/_signals.py +0 -0
  285. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/api/__init__.py +0 -0
  286. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/auth.py +0 -0
  287. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/authz/__init__.py +0 -0
  288. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/authz/values.py +0 -0
  289. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/backends/__init__.py +0 -0
  290. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/binding.py +0 -0
  291. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/cli/__main__.py +0 -0
  292. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/confirm.py +0 -0
  293. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/ledger.py +0 -0
  294. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/mcp/__init__.py +0 -0
  295. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/py.typed +0 -0
  296. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/resolver.py +0 -0
  297. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/store/__init__.py +0 -0
  298. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/store/autotitle.py +0 -0
  299. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/store/find.py +0 -0
  300. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/__init__.py +0 -0
  301. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/static/htmx.LICENSE +0 -0
  302. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/static/htmx.min.js +0 -0
  303. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/static/lifeboat.css +0 -0
  304. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/static/lifeboat.js +0 -0
  305. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/strings.py +0 -0
  306. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/templates/_manifest_row.html +0 -0
  307. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/templates/base.html +0 -0
  308. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/templates/notfound.html +0 -0
  309. {egzoscore-0.2.0 → egzoscore-0.3.0}/src/egzos/web/tokens.css +0 -0
@@ -7,6 +7,305 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.0] — files through the MCP door, and a place for deleted bytes (2026-11-28)
11
+
12
+ ### Added
13
+
14
+ - **An agent's kept bytes are bounded** (`rest.md` §4.4 item 1, §4.6, §4.7; `container.md` §8;
15
+ #405): `blobs.agent_kept_max_bytes` (default 1 GiB; an admin may change it) bounds what the
16
+ uploads one agent opened keep, counted per agent across its registrations, under the lock with
17
+ the open. An open past it answers `429` `too_many_bytes`, the tools' `too_many_bytes`; one whose
18
+ size alone passes it is the `400` of a size past `upload_max_bytes`, and `egzos_upload_open`'s
19
+ `too_big` names the smaller limit. `GET /v1/limits` and `egzos_limits` serve it.
20
+ - **The MCP door's upload tools** (`rest.md` §4.7; #405): `egzos_upload_open` answers `put_url`
21
+ on the door's public origin, or, where none can be given, opens nothing; `egzos_upload_address`
22
+ and `egzos_upload_discard` take only the caller's own upload. The file tools' descriptions name
23
+ the limits in force when the list is served. `egzos_upload_finish` saves the file once its bytes
24
+ arrived at `put_url`; an agent's file stays staged until its person decides on it. Each upload
25
+ tool appends what its route appends, nothing more.
26
+ - **An upload's address delivers its bytes at the door** (`rest.md` §2 items 5
27
+ and 7, §3, §4.4 item 2a; #405): a `PUT /v1/uploads/{id}` with no `Authorization` header and any
28
+ of the address's parameters is read as an address, with no bearer, and checks 1 to 6 run before
29
+ a byte of the body is read, each answering §3's one refusal. A malformed or forged address is
30
+ counted by the throttle and tallied under `forged`; one refused at checks 3 to 6 appends
31
+ `context.fetch` with the check and the upload's id, attributed to its opener, and counts in the
32
+ opener's bucket, and while that bucket holds its addresses are refused unspent and untraced.
33
+ Check 4 spends the address. The transfer is then admitted, read and staged as a bearer `PUT`'s
34
+ is, with its answers and `upload.put` entries, attributed to the opener, and cut off 900 seconds
35
+ after the address's `expires_at`; an upload whose hour passes meanwhile still gets its bytes,
36
+ counted against its person's 16 again where it held no slot before them. A discard ends a
37
+ running transfer's read within a second where it reaches the door reading it, and at its last
38
+ step or its cut-off where it reaches another, the read held until then; that transfer is
39
+ refused as check 5 refuses, and where that step finds the store busy, answers busy and has its
40
+ mark cleared at a later step. An opener granted in its address's own second is the one it
41
+ named. A `PUT` that carries the header is answered as before. `POST /v1/uploads` now answers
42
+ `put_url`, on the container's public origin and never a forwarded header's, and
43
+ `put_expires_at`, 900 seconds on; where the key signs nothing the upload still opens, with
44
+ neither. `POST /v1/uploads/{id}/address`, with no body and no query, hands its opener a fresh
45
+ address, appending nothing, while the upload is its own, live with 900 seconds left, its bytes
46
+ not arrived, and `remember` is still held on its scope; any other case is §3's one refusal and
47
+ §4's probe. An earlier address stays good.
48
+ - **The schema step for the place for deleted bytes** (`storage.md` §3.7, §4, v0.7 §AN; #405):
49
+ `upgrade_schema` gives a postgres schema made before it the place's objects, as the owner from
50
+ outside the container, each part under the container's write lock, saying what it made and how
51
+ long it held; run again it changes nothing, and it refuses where another role would hold anything
52
+ on them. `downgrade_schema` takes them away until the first record or an agent's kept file. A new
53
+ schema, and every sqlite open, has them already. Nothing reads them yet. The undo refuses,
54
+ dropping nothing, where a relation of another kind holds one of the step's names; an index of
55
+ its name is dropped whatever its definition. A sqlite open makes again a place index held with
56
+ another definition, keeping every record.
57
+ - **Detection and the indexed lookups of the place for deleted bytes** (`storage.md` §2, §3.4,
58
+ §3.8, §4; #405): `deleted_ready` says whether a store holds every object the place needs, by
59
+ definition, valid and granted, and logs the missing piece by kind. `items_naming` (every item
60
+ naming an address) and `upload_of` (an item's upload) read their index, or raise `NotIndexed`
61
+ and read nothing. Nothing calls them yet. Every index of the place orders its text byte-wise,
62
+ on Postgres too, and `upload_of` and `copy_entry` compare the same way.
63
+ - **The record of a deleted address, and who made a copy** (`storage.md` §3.8, §4; #405): one
64
+ record per address, replaced in place and never deleted, read back as written; the records due
65
+ and those not settled are read from their own indexes, the records due by time, then address.
66
+ `copy_entry` finds the `item.copy` a copy starts with from the chain's index, and `agent_copy`
67
+ reads an agent's copy from it alone: a
68
+ `client` principal, an `agent:` actor and the person its grant acted for. A copy a person made,
69
+ approved or confirmed, or a client container `Token` made, is not an agent's. Nothing calls them
70
+ yet.
71
+ - **What holds an address, and which removed file is an agent's** (`storage.md` §4; #405):
72
+ `held` reads (c) from the place's lookups alone, `agent_file` walks a removed item's chain of
73
+ sources for (a) and (b), and `deletable` asks both, keeping the bytes, with one log line naming
74
+ the kind of error, where any of it cannot be read. `agent_kept` reads the opener as the uploads'
75
+ own count does, its recorded actor that agent's own; the schema step's undo refuses as before. A
76
+ copy a failed `egzos_add_file` left is now kept by exactly what storage.md §4 says holds an
77
+ address, where the place is there. The postgres lookups name the container's own schema.
78
+ - **A removed agent's file sends its bytes to the place for deleted bytes** (`storage.md` §4,
79
+ `rest.md` §4, `events.md` §1; #405): where a person removes an agent's kept file that no person
80
+ promoted and nothing else holds its address, at the door or with `egzos rm`, the bytes are
81
+ copied whole to `deleted/<hash>` in the removal's own step, recorded with a `purge_after` 30 days
82
+ after it, and `blob.delete` is appended. Bytes the promoted store lost, or that do not hash to
83
+ their address, move nothing; a copy that fails answers busy and writes nothing; a lookup that
84
+ fails keeps the bytes and the removal lands. The answer is the same either way. On postgres,
85
+ nothing moves until the owner's schema step has run.
86
+ - **The promoted copy of a removed agent's file goes after the removal commits** (`storage.md`
87
+ §4; #405): in a short block under the lock, the copy in the promoted store is deleted where
88
+ nothing holds its address by then and its copy in `deleted/` is there, and the record is marked
89
+ settled whether it went or was kept; nothing is appended. A write of the same bytes before that
90
+ block keeps them. Where that block fails, the lock busy, a lookup or the store's delete, it is
91
+ logged, the record stays not settled for the pass to come, the removal still answers as it did,
92
+ and work queued after it still runs. On postgres, once the owner's schema step has run.
93
+ - **Removed agents' bytes are deleted for good at the first open 30 days after their latest
94
+ removal** (`storage.md` §4, `events.md`; #405): at every open a pass settles each record not
95
+ settled, then marks each record whose `purge_after` has passed purged, appends `blob.purge` with
96
+ the remover's actor and principal and the latest `blob.delete`'s `seq`, and deletes its copy from
97
+ `deleted/` after the COMMIT, unless a removal since has kept it. Each record is taken in a short
98
+ block of its own; a record that cannot be settled is never purged, and one that fails is left for
99
+ the next pass, logged once a run by kind; a list that cannot be read ends the run, logged once. A
100
+ container says once an open that the place is not ready. The copies no record names are later
101
+ work. On postgres, once the owner's schema step has run.
102
+ - **The pass for deleted bytes runs every 12 hours while a door runs** (`storage.md` §4; #405):
103
+ the REST door, with `/mcp`, and the lifeboat run the pass on their own event loop as a task of
104
+ its own, each time 12 hours have gone by on the wall clock, a machine's sleep counted, so a
105
+ container that stays up deletes removed agents' bytes 30 days on without a reopen.
106
+ It lets the door's other work run after each record's blocks, never inside one; one container
107
+ runs one pass at a time; a pass that fails is logged by kind and runs again at the next turn; the
108
+ door's end cancels it between records. A delete after a purge's COMMIT that does not take the
109
+ lock in time now ends the pass after its record, as the lock not taken does anywhere in it. Where the place is not ready it does nothing, said once
110
+ an open. The stdio door does not run it yet. On postgres, once the owner's schema step has run.
111
+ - **A removal checks its bytes a piece at a time** (`storage.md` §4; #405): a removal that sends
112
+ an agent's kept file's bytes to the place for deleted bytes checks them in its step a piece at a
113
+ time, holding none of them in memory. No answer or entry changes.
114
+ - **A terminal may say what kind of machine it is** (`rest.md` §4.3, `identity.md` §8; #394):
115
+ `POST /v1/terminals` takes an optional `machine` line beside the name, held to the name's rule
116
+ and kept as the terminal's own claim. A terminal that gave one is listed with it
117
+ (`GET /v1/terminals`); the confirm that registers it shows the line and is bound to it; and
118
+ nothing is decided on it.
119
+ - **Renaming, in the contract** (`rest.md` §4.5–§4.6, v0.7 §AK; #404, #360): a person renames an
120
+ item (`PATCH /v1/items/{id}`; a verified or promoted item with the confirm) or a project or a
121
+ thread (`PATCH /v1/scopes/{id}`; the container's admin's act, with the confirm: its id stays, a
122
+ path names whatever bears the name now, nothing redirects from an old name, and the name it frees
123
+ may be borne by a place anyone covering a parent makes, a person or an agent, so a client keeps
124
+ ids; a path beneath the place shows its new name at once, and so that it was renamed
125
+ and when, as the Chief decided). A confirm on an item, an
126
+ approve of a proposal that names it included, is bound to the item's version, scope and trust
127
+ status, and a rename moves the version in the same step as its write; the item rename is served
128
+ only where both hold. A proposal's paths are shown from its ids as they stand, and the place
129
+ rename is served only so. A place's name, on any surface, holds no `/`, no `:`, and no control,
130
+ line-break or bidirectional-control character, and is never `*`. `GET /v1/limits` says which of
131
+ these a container serves, with its upload limits. Removing a place follows in its own change. Not
132
+ running until the code lands.
133
+ - **A place's name keeps its shape where it is made** (`rest.md` §4.5, `container.md` §2, v0.7
134
+ §AK): `POST /v1/scopes`, `egzoscore mk` and `NodeService.create` refuse a name that is empty,
135
+ longer than 255 characters, `*`, or holds a `/`, a `:`, a control, line- or paragraph-separator,
136
+ bidirectional-control character or lone surrogate (the door with `400` before any lookup, `mk`
137
+ with `invalid_request`); pure capture writes `/` and `:` as `-`, drops those characters, keeps
138
+ 40, and names a thread left with nothing, or only `*`, by its item's id. Names given before stay.
139
+ - **`GET /v1/limits`** (`rest.md` §4.6, v0.7 §AK; #360): any valid token, an agent's included, reads
140
+ the contract's version (`"1.1"`), the words for what this door serves beyond release 0.2.0
141
+ (`terminals.machine` today) and the upload limits (`upload_max_bytes`, `inline_max_bytes`,
142
+ `uploads_held_max`), as one `context.fetch` with `read: limits`; a parameter is `400`.
143
+ - **An agent's terms at the door** (`rest.md` §4.3, v0.7 §AM; #377): on `POST /v1/agents` a scope
144
+ is `"*"` alone or has the form of a node id and is read as an id alone (`"*"` beside another
145
+ entry, a path tail or any other string is `400`); the first leg answers `terms` beside
146
+ `registers`, and `replaces` where a live registration of that client already serves the caller,
147
+ each also on its `context.fetch`; the challenge is bound to both, so a registration that appears,
148
+ ends or changes between the legs is `mismatch`; the second leg finds each place again by its id
149
+ under the lock and registers nothing where one is gone; and `identity.grant` carries
150
+ `details.replaces`.
151
+ - **`GET /v1/grant`** (`rest.md` §4.3, §4.6, v0.7 §AM; #377): a person signed in through this
152
+ container's own client reads their own grant, `{"grant": {"capabilities", "scopes"}}`, each scope
153
+ a node id that exists or `"*"`, and nothing of any other grant; an agent, a container `Token` and
154
+ a registered terminal's token get the one refusal and its probe; a parameter is `400` to every
155
+ caller alike; one `context.fetch` with `read: grant`. It lands after every rule it needs, and
156
+ `GET /v1/limits` now names `grants.own`.
157
+ - **An agent gets what its person ticks, in the contract** (`rest.md` §4.3, §4.6, `identity.md`
158
+ §3a, §4, §5, §8, v0.7 §AM; #377): an agent registration's capabilities and places, or the whole
159
+ container as one choice of its own, are the person's own choice on the consent page, within their
160
+ grant; the provider's own scopes give nothing here. `GET /v1/grant` serves a signed-in person
161
+ their own grant (their capabilities and the node ids their grant names), so the page can list
162
+ what is theirs to give; `GET /v1/limits` names `grants.own` where it is served. An agent chosen
163
+ for again replaces what it had, and its first leg is to show what is replaced. The page tells the
164
+ person in fixed words that the agent signs in to this cloud as them within what they tick and can
165
+ read their account's record at the sign-in provider; the consent page approves an agent only
166
+ while two dated records of the operator's stand: that the identity project gives an agent's token
167
+ nothing more, and that a live test at the provider passed against the release it runs. The door
168
+ checks neither. Place names on the choose step are drawn as untrusted display, and the step waits
169
+ on §4.5's rule on a place's name. The door already refuses terms wider than the person's grant,
170
+ before the confirm and again inside it, and binds the confirm to the terms. The read, the terms
171
+ the first leg says it bound, and what a registration replaces are not running until their code
172
+ lands, which they do together and only after §4.5's rule on a place's name runs.
173
+
174
+ - **`egzos_places`** (`rest.md` §4.1 item 5; #415): an agent lists the places it may use over MCP,
175
+ as `GET /v1/scopes` lists them, so it can find a place's exact name and path before it saves or
176
+ fetches. With no `under`, an agent given particular places is shown every one of them.
177
+ - **`egzos_limits`, and each file named on `egzos_fetch`** (`rest.md` §4.6, §4.7, v0.7 §AL;
178
+ #405): an agent reads `GET /v1/limits`' answer over MCP, appending the same read; each block
179
+ `egzos_fetch` serves names its writer (`by`) and, for a file, its `name`, `mime`, `size` and
180
+ `sha256`, keys `GET /v1/fetch` already serves the same caller; and every tool reads an argument
181
+ by its exact JSON type, so a `"5"`, a `5.0` or a `true` is never an integer and a null, a list or
182
+ an object never a string: `invalid_request`, before any lookup.
183
+ - **`egzos_get`, with a one-time download address** (`rest.md` §4.7, §6, `context-item.md` §3,
184
+ v0.7 §AL; #405): an agent reads one item by its id over MCP as `GET /v1/items/{id}` serves it,
185
+ one block and one read, and an item it may not read answers as an absent one. A file whose bytes
186
+ do not ride inline carries `download`, Trust's grant written on the container's public origin:
187
+ good once, for five minutes. Over stdio with no `identity.origin` no grant is asked for, an
188
+ agent's file is served with no `download` until its person promotes it, and `egzos_fetch` still
189
+ carries none.
190
+ - **File names, and an agent's uploads with no bytes yet** (`rest.md` §4.4 item 1, §4.6, v0.7 §AL;
191
+ #405): an upload's open refuses a name holding a control, line-separator or bidi-control
192
+ character with `400`, before any lookup, and the owner's local add of a file does the same. An
193
+ agent's upload holds no slot of its person's 16 until its bytes arrive; an agent holds at most 4
194
+ such uploads, a 5th open answering `429` `too_many_uploads`, and its bytes are refused with that
195
+ `429` while its person holds 16, the upload staying open to try again. `GET /v1/limits` and
196
+ `egzos_limits` name the 4 as `agent_uploads_held_max`.
197
+ - **`egzos_add_file`, a small file in one call** (`rest.md` §4.4, §4.6, §4.7, v0.7 §AL, §AN; #405):
198
+ an agent saves a file of up to 131,072 bytes, carried in the call as standard base64, as the
199
+ upload routes' open, bytes and item in one step under their checks; malformed base64 is
200
+ `invalid_request`, a larger file `too_big`, and a failed call leaves no upload, item or entry,
201
+ and no bytes but those an item holds. Until keep runs, an agent's file is staged and holds one
202
+ of its person's 16; the limits name `file_call_max_bytes`.
203
+
204
+ - **Files through the MCP door, in the contract** (`rest.md` §4.4, §4.6, §4.7, v0.7 §AL; #405): an
205
+ agent saves a file of up to 128 KiB in one call (`egzos_add_file`), or a file of any kind up to
206
+ the upload limit through `egzos_upload_open`, a single-use address its own code sends the bytes
207
+ to (`PUT /v1/uploads/{id}` with no bearer; a fresh one from `POST /v1/uploads/{id}/address`), and
208
+ `egzos_upload_finish`; it reads a file back with `egzos_get`, which carries a one-time download
209
+ address, while `egzos_fetch` names an artifact's file and its writer and mints none; and
210
+ `egzos_limits` serves it the limits in force. An approved agent's file is kept at once in a place
211
+ its terms cover, the agent's and unverified, within a per-agent bound
212
+ (`blobs.agent_kept_max_bytes`, 1 GiB by default; `too_many_bytes` past it); an agent's upload
213
+ whose bytes have not arrived holds no slot of its person's 16, and an agent holds at most 4 such. A file's name holds no control,
214
+ line-separator or bidi-control character. No tool makes a place. Not running until the code
215
+ lands.
216
+
217
+ - **A place for deleted bytes, in the contract** (`storage.md` §4, `rest.md` §4.4, `events.md`
218
+ §1–§2, `container.md` §8, v0.7 §AN; #405): when a person removes an agent's kept file that no
219
+ person promoted, and nothing else holds its bytes, they go to a place no read path reaches, are
220
+ kept there 30 days, and are then deleted for good, with `blob.delete` and `blob.purge` on the
221
+ chain. A person's own files and copies, promoted files and staged bytes keep their rules. A `PUT`
222
+ refused during a running transfer, and a stalled transfer cut off, now leave their own trace
223
+ (`receiving`, `stalled`). Not running until the code lands.
224
+
225
+ - **The blob stores keep the place for deleted bytes** (`storage.md` §4, v0.7 §AN; #405): the
226
+ home's blob directory and an object store keep `deleted/<hash>` beside `sha256/` and `staging/`,
227
+ can copy promoted bytes there whole and delete them from there alone; `get` and `exists` never
228
+ read it. Nothing moves bytes there yet. Answers and entries are unchanged.
229
+
230
+ ### Changed
231
+
232
+ - **A refusal's trace keeps a name only where it is short plain text** (`rest.md` §4; `events.md` §1;
233
+ #405): the `context.fetch` a refused call appends carries the id or reference it gave, as given,
234
+ where that is text of 1 to 1024 characters with no tab, no newline and no character the door
235
+ writes as its escape; any other is written as `(name not kept)`, so the entry stays bounded, at
236
+ every route, every tool, the address route and a grant's redemption. No answer changes.
237
+ - **A blob lands whole and is served only as its address says** (`storage.md` §3.6, §4; #405): the
238
+ home's blob directory writes each blob under a name of its own, flushes it to disk and renames it
239
+ into place, so no reader meets a part-written file, and a crash of the process, or a power loss
240
+ on a disk that keeps a flush, leaves the address as it was or whole and at most a copy the first
241
+ open an hour or more later deletes;
242
+ a `put` over a file of another size at its address writes the blob whole again; bytes that no
243
+ longer hash to their address are never served. A local add of a file writes its bytes inside the
244
+ step that records the item. Answers and entries are unchanged.
245
+ - **An upload's bytes are staged outside the lock** (`rest.md` §4.4 item 2a, `storage.md` §3.6, §4;
246
+ #405): a `PUT` to `/v1/uploads/{id}` is hashed and written on a worker thread under a name of the
247
+ transfer's own before the container's write lock is taken. Its answers and entries are unchanged.
248
+ - **Each upload transfer is admitted before its body is read** (`rest.md` §4.4 item 2; #405): one
249
+ body at a time per opener, two per person, one for a person's agents together, else `429`
250
+ `too_many_transfers`; a second `PUT` while one runs is `400` (`receiving`); one still reading
251
+ 1800 seconds after admission is cut off (`stalled`). The reads are counted from the upload
252
+ records that hold a mark alone (`list_uploads(receiving=True)`, `storage.md` §3.4); the
253
+ open-time sweep leaves a transfer's own copy a minute past its mark's time; bodies are hashed
254
+ and written on two workers of the door's own; and staged bytes of another size at an address
255
+ are replaced when a transfer's copy settles there. On Postgres the owner's schema step
256
+ (`upgrade_schema`) also makes the index those reads are counted through, and `downgrade_schema`
257
+ drops it; when the door ends, the next run's workers are in place before the old ones shut down.
258
+ - **The upload's readings, settled** (`rest.md` §2, §4.4, §4.7, `storage.md` §3.5, §4, `events.md`
259
+ §1; a note under v0.7 §AN): an agent's bytes are refused while its person holds 16, counted at
260
+ admission and again when they are recorded; each transfer is admitted before its body is read,
261
+ one at a time per opener, two per person and one for the person's agents together
262
+ (`too_many_transfers`), and a bearer transfer is cut off 1800 seconds after admission; an
263
+ address's last step does not re-check the upload's hour, and its check 6 refuses an opener
264
+ granted again since its issue; `size` is signed only as its decimal string; bytes staged before
265
+ the lock carry a name of the transfer's own; spent records are kept at least 900 seconds. Not
266
+ running until the code lands, but where marked.
267
+
268
+ - **The provider's scopes, corrected** (`rest.md` §4.3; a note under v0.7 §AM): the sign-in provider
269
+ accepts a fifth scope word, `offline_access`, beside `openid`, `email`, `profile` and `phone`. It
270
+ decides nothing a client receives: the provider hands a client a refresh token with or without
271
+ it. The consent page no longer refuses an authorization for naming it, and its fixed words now
272
+ say that an approved agent stays signed in to this cloud, with no end date of its own, until its
273
+ person or an admin ends its access.
274
+ - **The MCP tools say and do what the contract says** (`rest.md` §3, §4.1): a tool call carrying
275
+ an argument the tool does not define answers `invalid_request` before any lookup, as a malformed
276
+ call does; `egzos_remember` takes the kinds `POST /v1/items` takes from a body, so never
277
+ `artifact`; and the three descriptions and the server's instructions say how a place is named
278
+ (`Music/drafts`, names exactly as they are, or an id), where a call starts without one, what
279
+ comes back, and the size limit.
280
+
281
+ ### Fixed
282
+
283
+ - **Request strings must be well-formed Unicode** (`rest.md` §3): the REST door, the MCP tools and
284
+ the CLI refuse a string anywhere in a request that holds a surrogate code point outside a pair,
285
+ as they refuse U+0000 (`400 invalid_request` before any lookup, `invalid_request` in a tool's
286
+ error result), standard input to `egzoscore add -` included.
287
+ - **MCP answers escape control and format characters, as the REST door does** (`rest.md` §4.4
288
+ item 1, §4.7): every MCP tool answer writes each control, format (zero-width, soft hyphen, U+FEFF,
289
+ tag characters and the rest), line- and paragraph-separator character inside its strings as its
290
+ JSON escape, so a title, a tag, a body, a file's name or a place's name reads back to the same
291
+ value and none of those characters reaches a reader raw. The zero-width non-joiner and joiner
292
+ (U+200C, U+200D) keep their characters, as Persian, Indic scripts and emoji sequences need them;
293
+ printable text, accents, CJK and emoji included, keeps its characters. A call to a tool the door
294
+ does not have is answered `Unknown tool`, without the name it was sent. Every other message the
295
+ door sends over stdio and `/mcp` (an echoed id, a protocol error and its data) escapes the same
296
+ characters, `prompts/get`, `resources/read` and a method the door does not have are answered
297
+ `Unknown prompt`, `Unknown resource` and `Method not found` without the name, uri or method, and
298
+ the door's log lines show those characters as escapes. The same class, which now also takes
299
+ every invisible character (Default_Ignorable_Code_Point: variation selectors, Hangul fillers,
300
+ U+034F, the whole tag block) but the text and emoji presentation selectors U+FE0E and U+FE0F, is
301
+ what the command line prints as escapes, in words and with `--json`, with the presence page's
302
+ error line, and the message, traceback and stack of every `mcp` and `egzos` log record are
303
+ escaped on whichever handler they reach. The presence page, where a person confirms an act, and
304
+ the lifeboat's pages (`egzoscore web`) draw the same class as escapes in every value that came
305
+ from an item, a file, a place, a proposal, a token's name or a request (a surrogate held in
306
+ stored text, which the lifeboat drew as U+FFFD, now shows as its escape too), while a link, a
307
+ form action and a form value keep their characters, so each leads and submits what it did.
308
+
10
309
  ## [0.2.0] — the door opens, and the package becomes egzoscore (2026-11-15)
11
310
 
12
311
  ### Added
@@ -0,0 +1,55 @@
1
+ # Contributing to egzos
2
+
3
+ Thank you for taking an interest in egzos. This page says what help the project can take today, and how to build and test it.
4
+
5
+ ## Issues and security reports
6
+
7
+ Issues are welcome from anyone. Open one at https://github.com/Egzos/egzos/issues/new/choose and pick the bug report or the question form.
8
+
9
+ A security weakness never goes in a public issue. Report it privately as described in [SECURITY.md](SECURITY.md).
10
+
11
+ ## Code changes
12
+
13
+ The code is published under the PolyForm Strict License 1.0.0, which lets you use it for noncommercial purposes but grants no right to change it or to distribute it. For that reason, pull requests from outside the project cannot be accepted without a written agreement with the maintainer first. If you have a change in mind, open an issue that describes it, and the maintainer will answer there.
14
+
15
+ ## How the project is built
16
+
17
+ egzos is written with AI agents, under one maintainer. Every change to `main` goes through a pull request and must pass five automated checks: the test suite, a check of which paths the change may touch and how large it is, and three automated reviews.
18
+
19
+ ## Running the tests
20
+
21
+ You need Python 3.11 or newer; check with `python3 --version`. On macOS the system Python is older, so install a newer one first (for example with Homebrew or uv).
22
+
23
+ ```
24
+ git clone https://github.com/Egzos/egzos.git
25
+ cd egzos
26
+ python3 -m venv .venv
27
+ . .venv/bin/activate
28
+ pip install -e ".[dev]"
29
+ ruff check .
30
+ pytest
31
+ ```
32
+
33
+ On macOS, some tests of the shell scripts under `.github/scripts` fail, because they need GNU `realpath`, which macOS does not ship; continuous integration runs on Linux, where they pass.
34
+
35
+ Continuous integration runs `ruff check .` and `pytest -q` on Linux under Python 3.12, then `pytest -q` again under Python 3.11. Both runs install the `postgres` extra, and a PostgreSQL 17 database runs beside them for the PostgreSQL cases. Those cases run only when `EGZOS_TEST_POSTGRES` names a database you can create schemas in, for example:
36
+
37
+ ```
38
+ pip install -e ".[dev,postgres]"
39
+ EGZOS_TEST_POSTGRES=postgresql://postgres:password@localhost:5432/egzos pytest
40
+ ```
41
+
42
+ ## Conventions
43
+
44
+ Every Python file starts with these two lines (after the `#!` line, if it has one):
45
+
46
+ ```
47
+ # Copyright 2026 Ali Sasanian
48
+ # SPDX-License-Identifier: LicenseRef-PolyForm-Strict-1.0.0
49
+ ```
50
+
51
+ The contracts under `spec/contracts/` describe the data shapes and interfaces the code must keep. They are frozen: they change only by a recorded decision, never as part of an unrelated change.
52
+
53
+ ## License
54
+
55
+ Versions up to and including 0.1.0 were released under Apache-2.0; later versions are under the PolyForm Strict License 1.0.0 (see [LICENSE](LICENSE)). The egzos name and mark are not covered by any licence grant; see [TRADEMARKS.md](TRADEMARKS.md).
@@ -0,0 +1,183 @@
1
+ Metadata-Version: 2.5
2
+ Name: egzoscore
3
+ Version: 0.3.0
4
+ Summary: MCP-first, CLI-first personal context layer
5
+ Project-URL: Homepage, https://egzos.io
6
+ Project-URL: Source, https://github.com/Egzos/egzos
7
+ Project-URL: Issues, https://github.com/Egzos/egzos/issues
8
+ Project-URL: Changelog, https://github.com/Egzos/egzos/blob/main/CHANGELOG.md
9
+ Project-URL: Security, https://github.com/Egzos/egzos/security/policy
10
+ Author: Ali Sasanian
11
+ License: LicenseRef-PolyForm-Strict-1.0.0
12
+ License-File: LICENSE
13
+ License-File: NOTICE
14
+ Keywords: agent-memory,ai-agents,cli,context,mcp,model-context-protocol
15
+ Classifier: Development Status :: 3 - Alpha
16
+ Classifier: Environment :: Console
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: License :: Other/Proprietary License
19
+ Classifier: Operating System :: MacOS
20
+ Classifier: Operating System :: POSIX :: Linux
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Topic :: Utilities
26
+ Requires-Python: >=3.11
27
+ Requires-Dist: fastapi>=0.115
28
+ Requires-Dist: jinja2>=3.1
29
+ Requires-Dist: mcp>=2.3
30
+ Requires-Dist: pyjwt[crypto]>=2.10
31
+ Requires-Dist: typer>=0.27.2
32
+ Requires-Dist: uvicorn>=0.30
33
+ Requires-Dist: webauthn>=3.0
34
+ Provides-Extra: dev
35
+ Requires-Dist: httpx2>=2.10; extra == 'dev'
36
+ Requires-Dist: httpx>=0.27; extra == 'dev'
37
+ Requires-Dist: opendal<0.48,>=0.47.12; extra == 'dev'
38
+ Requires-Dist: pytest>=8; extra == 'dev'
39
+ Requires-Dist: pyyaml>=6; extra == 'dev'
40
+ Requires-Dist: ruff<0.17,>=0.16; extra == 'dev'
41
+ Provides-Extra: embed
42
+ Requires-Dist: onnxruntime; extra == 'embed'
43
+ Provides-Extra: objects
44
+ Requires-Dist: opendal<0.48,>=0.47.12; extra == 'objects'
45
+ Provides-Extra: postgres
46
+ Requires-Dist: psycopg[binary]<4,>=3.2; extra == 'postgres'
47
+ Description-Content-Type: text/markdown
48
+
49
+ <p align="center">
50
+ <img alt="egzos. The Unified OS for all of your agentic workflows." src="https://raw.githubusercontent.com/Egzos/egzos/main/docs/assets/readme-header.svg" width="100%">
51
+ </p>
52
+
53
+ <p align="center">
54
+ <a href="https://egzos.io">egzos.io</a> · <a href="https://egzos.io/#demo">Demo</a> · <a href="https://www.npmjs.com/package/egzos">Cloud command line</a> · <a href="https://github.com/Egzos/egzos/tree/main/spec/contracts">Contracts</a> · <a href="https://github.com/Egzos/egzos/blob/main/CHANGELOG.md">Changelog</a> · <a href="https://github.com/Egzos/egzos/blob/main/SECURITY.md">Security</a>
55
+ </p>
56
+
57
+ <p align="center">
58
+ <a href="https://pypi.org/project/egzoscore/"><img alt="PyPI version" src="https://img.shields.io/pypi/v/egzoscore?style=flat-square&color=0E2A47"></a>
59
+ <a href="https://pypi.org/project/egzoscore/"><img alt="Python 3.11 or newer" src="https://img.shields.io/badge/python-3.11%2B-0E2A47?style=flat-square"></a>
60
+ <a href="https://github.com/Egzos/egzos/blob/main/LICENSE"><img alt="License: PolyForm Strict 1.0.0" src="https://img.shields.io/badge/license-PolyForm%20Strict%201.0.0-0E2A47?style=flat-square"></a>
61
+ <a href="https://github.com/Egzos/egzos/actions/workflows/tests.yml"><img alt="Tests" src="https://img.shields.io/github/actions/workflow/status/Egzos/egzos/tests.yml?branch=main&label=tests&style=flat-square"></a>
62
+ </p>
63
+
64
+ **All of your memories, at your fingertips, or your agents', whichever you decide.**
65
+
66
+ egzos is an MCP-first, CLI-first personal context layer. Your files, notes and rules live in your own container, on your machines and in your cloud. Agents connect over MCP, locals over the shell, and a move or copy that lets someone new see something asks you first.
67
+
68
+ It is for people who work with AI agents, such as coding assistants, and want those agents to read and add to their notes, preferences and rules.
69
+
70
+ This repository is the core: the container itself (a database and a folder that hold your items), its command `egzoscore`, and its MCP server (MCP, the Model Context Protocol, is the common way for AI agents to call tools). It is source-available under the PolyForm Strict License 1.0.0, free to read, run and check for noncommercial use, and it is not open source (see [License](https://github.com/Egzos/egzos#license)).
71
+
72
+ ## Quickstart
73
+
74
+ egzoscore needs Python 3.11 or newer and runs on macOS and Linux. [uv](https://docs.astral.sh/uv/) fetches a suitable Python for you if your system one is older (macOS ships 3.9).
75
+
76
+ ```bash
77
+ curl -LsSf https://astral.sh/uv/install.sh | sh # once (or: brew install uv); then open a new terminal
78
+ uv tool install egzoscore # or, with Python 3.11+: pipx install egzoscore
79
+
80
+ egzoscore init # your container at ~/.egzos, and your owner token (the key with every right in it)
81
+ printf '# Notes\nCommit messages: imperative mood, under 72 characters.\n' > notes.md
82
+ egzoscore add ./notes.md # a file; it lands unverified until you promote it
83
+ egzoscore add "Prefer imperative commit messages" --kind preference --key commit.style
84
+ egzoscore find commit # numbered results, newest first
85
+ ```
86
+
87
+ `find` numbers what it found, so later commands can name a result by its number until the next `find`:
88
+
89
+ ```text
90
+ %1 preference unverified user:self/inbox:inbox/thread:Prefer imperative commit messages “Prefer imperative commit messages”
91
+ %2 artifact unverified user:self/inbox:inbox/thread:Notes “Notes”
92
+ ```
93
+
94
+ Make a place of your own, move the preference into it, and read the place the way an agent would:
95
+
96
+ ```bash
97
+ egzoscore mk project health
98
+ egzoscore mv %1 project:health
99
+ egzoscore fetch project:health
100
+ ```
101
+
102
+ ```text
103
+ scope user:self/project:health
104
+ chain: user:self/project:health [serve-unverified] → user:self [verified-only] → global [verified-only]
105
+ 01M8JRSB9A9FFXKVDZRA4GMRJD preference unverified @user:self/project:health key=commit.style
106
+ “Prefer imperative commit messages”
107
+ ```
108
+
109
+ The chain is this place and every place above it, innermost first. A project serves items you have not yet verified (rules excepted: they are served only once verified); your personal root and `global` serve only verified ones.
110
+
111
+ ```bash
112
+ egzoscore trust pending # what waits for you to promote it
113
+ egzoscore trust approve %2 # promote one (mark it verified, a person-only act): a one-time confirm page opens in your browser
114
+ egzoscore audit verify # walk the record of everything above
115
+ ```
116
+
117
+ ## Use it from an agent
118
+
119
+ Agents reach the container over MCP. Run this in a terminal (it will not print its secret into a pipe or a script):
120
+
121
+ ```bash
122
+ egzoscore connect # mints a client token for Claude Code, prints the line that registers it
123
+ egzoscore connect --apply # or registers it for you
124
+ ```
125
+
126
+ `connect` mints a client token for Claude Code, its default client, with the role contributor unless you pass `--role` (a contributor may read and write new items, nothing more), and prints the `claude mcp add` line that registers `egzoscore serve --mcp` as an MCP server. The server refuses to run on your owner token, so an agent never holds yours. Any other MCP client that can start a local command works the same way: `egzoscore token create --client my-agent --role contributor` prints a token, and `egzoscore serve --mcp` reads it from `EGZOS_TOKEN`.
127
+
128
+ The agent then has eleven tools (version 0.2.0 served the first three only):
129
+
130
+ - `egzos_fetch` reads your context for a place: the chain of places above it and the items the token may see.
131
+ - `egzos_remember` writes a new item. It lands unverified, in the inbox or a place you name, until you promote it.
132
+ - `egzos_inbox` lists what was captured and not yet placed or promoted.
133
+ - Read: `egzos_places` lists the places the agent may use, `egzos_get` reads one item by its id, and `egzos_limits` reports the limits in force.
134
+ - Write: `egzos_add_file` saves a file of up to 128 KiB carried in the call.
135
+ - Large files: `egzos_upload_open`, `egzos_upload_address`, `egzos_upload_finish` and `egzos_upload_discard` move a file of up to 100 MiB through a one-time upload address. They work only when the container names a public address (`identity.origin`); a fresh local container names none, so through `egzoscore connect` the agent saves files with `egzos_add_file`, up to 128 KiB.
136
+
137
+ ## What is inside
138
+
139
+ <p align="center">
140
+ <img alt="Inside the core: the container, six capabilities, one door, the ledger, the confirm." src="https://raw.githubusercontent.com/Egzos/egzos/main/docs/assets/inside.svg" width="100%">
141
+ </p>
142
+
143
+ **The container.** Everything lives in places: threads, projects, teams, orgs and exos (a branch beside your org tree that inherits nothing from it), which you make when you need them (`egzoscore mk`); your personal root, the inbox and `global` come with every container. A place holds items of seven kinds: memories, preferences, rules, skills, files (kind `artifact`), integrations and aliases, stored in a SQLite file and a folder under `~/.egzos`. A container can instead keep its state in Postgres (`EGZOS_DATABASE_URL`, extra `egzoscore[postgres]`) and, beside Postgres, its files in an S3-compatible store (extra `egzoscore[objects]`).
144
+
145
+ **Six capabilities.** A token carries capabilities, not a role name: `fetch` (read), `remember` (write new items), `organize` (move and structure), `publish` (ask to widen who can see), `curate` (quarantine) and `admin` (tokens, settings and making the higher places). Promoting an item and saying yes to a widening are for a person only: no token can do them, an admin token included.
146
+
147
+ **One door.** The command `egzoscore`, MCP over stdio (`egzoscore serve --mcp`) and over HTTP at `/mcp`, the REST door (an HTTP interface) at `/v1/` (`egzoscore serve --http`), and the lifeboat, a local web page for search, items and the pending queue (`egzoscore web`) served on 127.0.0.1 only, all reach the same container and check the same capabilities. `egzoscore serve --mcp` refuses your owner token, and the lifeboat takes only yours. At the REST door, a place that does not exist, one the token does not cover and one it may not act on all get the same answer, `404 {"error":"not_found"}`, so a refusal does not reveal what exists.
148
+
149
+ **The ledger.** Every read, write, move, approval and denial is an entry in a hash chain, and `egzoscore audit tail` shows the latest ones. `egzoscore audit verify` walks the chain from its first entry and fails at the first break; the chain is hashed, not signed.
150
+
151
+ **The confirm.** Anything that would let someone new see an item waits for your yes. On your own machine, such a move is parked as a proposal, and `egzoscore trust approve` opens a one-time page on 127.0.0.1 with a two-step confirm button. At the HTTP door the yes is Face ID, Touch ID or Windows Hello, from a passkey registered there; a plain button is offered only to a person who has registered none, and only while the setting `confirm.allow_button` is on.
152
+
153
+ ## The core and egzos.io
154
+
155
+ In this repository:
156
+
157
+ - The container: the store, the trust rules and the ledger.
158
+ - The command `egzoscore`, the MCP server, the REST door and the lifeboat.
159
+ - The contracts in [spec/contracts](https://github.com/Egzos/egzos/tree/main/spec/contracts): written specifications of how the container behaves, which the code is checked against.
160
+
161
+ [egzos.io](https://egzos.io) is the hosted product: the app and hosted containers. It is kept in a private repository.
162
+
163
+ The command line for your egzos cloud (an egzos container hosted for you) is a separate program, `egzos`, under the MIT licence. Install it with `npm install -g egzos` ([npm page](https://www.npmjs.com/package/egzos)); it signs you in with `egzos login` and works against a cloud, as in `egzos ls cloud:`. (`egzos` on PyPI is this package's old name; install `egzoscore` from PyPI and `egzos` from npm.)
164
+
165
+ ## Status
166
+
167
+ egzos is early software. The latest release is on [PyPI](https://pypi.org/project/egzoscore/), and the [changelog](https://github.com/Egzos/egzos/blob/main/CHANGELOG.md) says what each release holds and what the main branch has added since. Not built yet: export and import of a container, sync between places, and semantic search (search today matches the text you type anywhere in an item, not its meaning).
168
+
169
+ ## How it is built
170
+
171
+ egzos is written with AI agents, under one maintainer. A change can merge only when five required checks pass: the test suite, a path-ownership check, a review against the contracts, a design review of changes to the interface, and an adversarial security review of changes marked as touching security, which also sweeps main every night. The contracts in [spec/contracts](https://github.com/Egzos/egzos/tree/main/spec/contracts) are what the code is checked against. See [CONTRIBUTING.md](https://github.com/Egzos/egzos/blob/main/CONTRIBUTING.md).
172
+
173
+ ## Security
174
+
175
+ Report a vulnerability privately at https://github.com/Egzos/egzos/security/advisories/new, never in a public issue. See [SECURITY.md](https://github.com/Egzos/egzos/blob/main/SECURITY.md).
176
+
177
+ ## License
178
+
179
+ The core is licensed under the [PolyForm Strict License 1.0.0](https://github.com/Egzos/egzos/blob/main/LICENSE).
180
+
181
+ In short: you may use egzos for any noncommercial purpose (personal use, research, hobby projects, noncommercial organizations), but not distribute it, change it or build on it, and not use it commercially without a separate licence from the copyright holder. For a commercial licence, [open an issue](https://github.com/Egzos/egzos/issues/new/choose). Versions up to and including 0.1.0 were released under Apache-2.0.
182
+
183
+ The egzos name and marks are not part of any licence grant; see [TRADEMARKS.md](https://github.com/Egzos/egzos/blob/main/TRADEMARKS.md).