graphcore-kernel 0.2.5__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 (407) hide show
  1. {graphcore_kernel-0.2.5/graphcore_kernel.egg-info → graphcore_kernel-0.3.0}/PKG-INFO +4 -1
  2. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/mcp_server.py +10 -9
  3. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/render.py +9 -0
  4. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/tests/test_frontend.py +35 -8
  5. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/tests/test_mcp_contract.py +4 -3
  6. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/tests/test_server.py +1 -1
  7. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/tools.py +23 -33
  8. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/AGENT_FRONTEND_TDD.md +27 -14
  9. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/__init__.py +2 -1
  10. graphcore_kernel-0.3.0/graphcore/public/live_testing.py +37 -0
  11. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/test_settings.py +2 -1
  12. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/testing.py +2 -0
  13. graphcore_kernel-0.3.0/graphcore/registry/app_requirements.py +162 -0
  14. graphcore_kernel-0.3.0/graphcore/testing/live/__main__.py +63 -0
  15. graphcore_kernel-0.3.0/graphcore/testing/live/asgi.py +23 -0
  16. graphcore_kernel-0.3.0/graphcore/testing/live/client.py +246 -0
  17. graphcore_kernel-0.3.0/graphcore/testing/live/issuer.py +45 -0
  18. graphcore_kernel-0.3.0/graphcore/testing/live/operations.py +56 -0
  19. graphcore_kernel-0.3.0/graphcore/testing/live/patching.py +278 -0
  20. graphcore_kernel-0.3.0/graphcore/testing/live/scenario.py +173 -0
  21. graphcore_kernel-0.3.0/graphcore/testing/live/settings.py +52 -0
  22. graphcore_kernel-0.3.0/graphcore/testing/live/stack.py +259 -0
  23. graphcore_kernel-0.3.0/graphcore/testing/live/tests/fixture_app/__init__.py +1 -0
  24. graphcore_kernel-0.3.0/graphcore/testing/live/tests/fixture_app/apps.py +7 -0
  25. graphcore_kernel-0.3.0/graphcore/testing/live/tests/patch_targets.py +22 -0
  26. graphcore_kernel-0.3.0/graphcore/testing/live/tests/test_client.py +147 -0
  27. graphcore_kernel-0.3.0/graphcore/testing/live/tests/test_issuer.py +34 -0
  28. graphcore_kernel-0.3.0/graphcore/testing/live/tests/test_patching.py +108 -0
  29. graphcore_kernel-0.3.0/graphcore/testing/live/tests/test_scenario.py +133 -0
  30. graphcore_kernel-0.3.0/graphcore/testing/live/tests/test_settings.py +58 -0
  31. graphcore_kernel-0.3.0/graphcore/testing/live/tests/test_stack.py +69 -0
  32. graphcore_kernel-0.3.0/graphcore/testing/live/urls.py +4 -0
  33. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/testing/runner.py +18 -1
  34. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/testing/settings.py +6 -2
  35. graphcore_kernel-0.3.0/graphcore/testing/tests/test_settings_for_apps.py +155 -0
  36. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/public_api_manifest.py +3 -0
  37. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_packaging.py +16 -0
  38. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_public_api_boundaries.py +14 -0
  39. graphcore_kernel-0.3.0/graphcore/transport/tests/__init__.py +0 -0
  40. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/tests/test_in_process_mcp.py +4 -4
  41. graphcore_kernel-0.3.0/graphcore/types/tests/__init__.py +0 -0
  42. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0/graphcore_kernel.egg-info}/PKG-INFO +4 -1
  43. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore_kernel.egg-info/SOURCES.txt +23 -0
  44. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore_kernel.egg-info/requires.txt +4 -0
  45. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/pyproject.toml +7 -1
  46. graphcore_kernel-0.2.5/graphcore/testing/tests/test_settings_for_apps.py +0 -50
  47. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/LICENSE +0 -0
  48. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/NOTICE +0 -0
  49. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/README.md +0 -0
  50. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/__init__.py +0 -0
  51. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/__init__.py +0 -0
  52. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/api.py +0 -0
  53. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/base/__init__.py +0 -0
  54. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/base/views.py +0 -0
  55. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/changes.py +0 -0
  56. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/client.py +0 -0
  57. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/context.py +0 -0
  58. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/errors.py +0 -0
  59. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/loading.py +0 -0
  60. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/registry.py +0 -0
  61. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/server.py +0 -0
  62. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/signatures.py +0 -0
  63. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/testing.py +0 -0
  64. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/tests/__init__.py +0 -0
  65. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/tests/fakes.py +0 -0
  66. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/agent_frontend/tests/test_loading.py +0 -0
  67. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/__init__.py +0 -0
  68. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/graph_api.py +0 -0
  69. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/predicate_codec.py +0 -0
  70. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/tests/__init__.py +0 -0
  71. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/tests/test_changed_entities.py +0 -0
  72. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/tests/test_get_by_key.py +0 -0
  73. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/tests/test_graph_api.py +0 -0
  74. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/tests/test_graph_api_access.py +0 -0
  75. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/tests/test_graph_api_grants.py +0 -0
  76. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/tests/test_predicate_codec.py +0 -0
  77. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/tests/test_strategy_tokens.py +0 -0
  78. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/api/tests/test_subtree_query.py +0 -0
  79. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/apps.py +0 -0
  80. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/__init__.py +0 -0
  81. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/README.md +0 -0
  82. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/__init__.py +0 -0
  83. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/authenticator.py +0 -0
  84. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/onboarding.py +0 -0
  85. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/principals.py +0 -0
  86. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/resource_metadata.py +0 -0
  87. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/service_accounts.py +0 -0
  88. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/strategy_tokens.py +0 -0
  89. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/testing.py +0 -0
  90. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/tests/__init__.py +0 -0
  91. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/tests/test_authenticator.py +0 -0
  92. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/tests/test_onboarding.py +0 -0
  93. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/tests/test_service_accounts.py +0 -0
  94. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authn/users.py +0 -0
  95. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/__init__.py +0 -0
  96. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/access_port.py +0 -0
  97. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/adapter/__init__.py +0 -0
  98. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/adapter/default_access_adapter.py +0 -0
  99. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/adapter/tests/__init__.py +0 -0
  100. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/adapter/tests/test_default_adapter.py +0 -0
  101. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/adapter/tests/test_entity_write_hooks.py +0 -0
  102. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/adapter/tests/test_group_types.py +0 -0
  103. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/adapter/tests/test_sync_support.py +0 -0
  104. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/defaults.py +0 -0
  105. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/kernel_policy.py +0 -0
  106. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/kernel_writes.py +0 -0
  107. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/lookups.py +0 -0
  108. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/policy.py +0 -0
  109. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/__init__.py +0 -0
  110. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_can_contain.py +0 -0
  111. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_contained_by.py +0 -0
  112. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_creation.py +0 -0
  113. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_delete_permission.py +0 -0
  114. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_granted_to_me.py +0 -0
  115. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_integration.py +0 -0
  116. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_invites.py +0 -0
  117. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_kernel_policy.py +0 -0
  118. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_lockout.py +0 -0
  119. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_policy.py +0 -0
  120. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_primitives.py +0 -0
  121. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/auth/authz/tests/test_principal_creation.py +0 -0
  122. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/bootstrap/__init__.py +0 -0
  123. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/bootstrap/deployment.py +0 -0
  124. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/bootstrap/manifests.py +0 -0
  125. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/bootstrap/signals.py +0 -0
  126. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/bootstrap/tests/__init__.py +0 -0
  127. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/bootstrap/tests/test_deployment_seed.py +0 -0
  128. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/broadcast/__init__.py +0 -0
  129. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/broadcast/broadcaster.py +0 -0
  130. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/broadcast/channels.py +0 -0
  131. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/broadcast/tests/__init__.py +0 -0
  132. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/broadcast/tests/test_broadcaster.py +0 -0
  133. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/celery.py +0 -0
  134. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/ARCHITECTURE_PRINCIPLES.md +0 -0
  135. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/AUTHORIZATION_TECHNICAL_TDD.md +0 -0
  136. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/ENTITY_REFERENCE_TDD.md +0 -0
  137. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/GRAPHAPI_FRONT_DOOR.md +0 -0
  138. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/MANIFEST_TDD.md +0 -0
  139. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/RUNTIME.md +0 -0
  140. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/SCHEDULING_TDD.md +0 -0
  141. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/STRATEGY_EXECUTION_TDD.md +0 -0
  142. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/VIEW_ENTITY_TDD.md +0 -0
  143. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/VIEW_SYSTEM_TDD.md +0 -0
  144. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/__init__.py +0 -0
  145. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/doc_topics.py +0 -0
  146. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/docs_discovery.py +0 -0
  147. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/docs/public_api.py +0 -0
  148. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/__init__.py +0 -0
  149. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/Entity.py +0 -0
  150. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/__init__.py +0 -0
  151. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/deployment/Deployment.py +0 -0
  152. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/deployment/__init__.py +0 -0
  153. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/grant/Grant.py +0 -0
  154. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/grant/__init__.py +0 -0
  155. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/group/Group.py +0 -0
  156. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/group/README.md +0 -0
  157. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/group/__init__.py +0 -0
  158. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/invite/Invite.py +0 -0
  159. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/invite/__init__.py +0 -0
  160. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/request_template/RequestTemplate.py +0 -0
  161. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/request_template/__init__.py +0 -0
  162. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/request_template/tests/__init__.py +0 -0
  163. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/request_template/tests/test_request_template.py +0 -0
  164. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/service_account/ServiceAccount.py +0 -0
  165. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/service_account/__init__.py +0 -0
  166. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/strategy_request/StrategyRequest.py +0 -0
  167. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/strategy_request/__init__.py +0 -0
  168. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/strategy_request/tests/__init__.py +0 -0
  169. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/strategy_request/tests/test_strategy_request_entity.py +0 -0
  170. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/tests/__init__.py +0 -0
  171. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/tests/test_declared_fields.py +0 -0
  172. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/tests/test_display_name.py +0 -0
  173. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/tests/test_entity.py +0 -0
  174. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/tests/test_grant_group_entities.py +0 -0
  175. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/tests/test_key_field.py +0 -0
  176. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/tests/test_write_once_fields.py +0 -0
  177. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/user/User.py +0 -0
  178. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/user/__init__.py +0 -0
  179. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/user/tests/__init__.py +0 -0
  180. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/user/tests/test_user_entity.py +0 -0
  181. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/view/View.py +0 -0
  182. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/view/__init__.py +0 -0
  183. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/view/position.py +0 -0
  184. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/view/tests/__init__.py +0 -0
  185. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/view/tests/test_position.py +0 -0
  186. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/entity/view/tests/test_view_entity.py +0 -0
  187. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/BaseStrategy.py +0 -0
  188. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/DeploymentStrategies.py +0 -0
  189. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/GrantStrategies.py +0 -0
  190. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/GroupStrategies.py +0 -0
  191. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/InviteStrategies.py +0 -0
  192. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/RequestTemplateStrategies.py +0 -0
  193. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/ViewStrategies.py +0 -0
  194. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/__init__.py +0 -0
  195. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/runner.py +0 -0
  196. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/session.py +0 -0
  197. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/tests/BaseStrategyTest.py +0 -0
  198. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/tests/__init__.py +0 -0
  199. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/tests/test_BaseStrategies.py +0 -0
  200. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/tests/test_grant_strategies.py +0 -0
  201. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/tests/test_group_strategies.py +0 -0
  202. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/tests/test_runner.py +0 -0
  203. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/tests/test_strategy_locks.py +0 -0
  204. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/tests/test_utils.py +0 -0
  205. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/domain/strategy/tests/test_view_strategies.py +0 -0
  206. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/errors.py +0 -0
  207. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/README.md +0 -0
  208. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/StrategyExecutorService.py +0 -0
  209. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/__init__.py +0 -0
  210. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/dispatcher.py +0 -0
  211. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/environments/__init__.py +0 -0
  212. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/environments/attempt.py +0 -0
  213. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/environments/celery.py +0 -0
  214. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/environments/in_process.py +0 -0
  215. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/local_session.py +0 -0
  216. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/redis_run_events.py +0 -0
  217. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/requests.py +0 -0
  218. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/run_events.py +0 -0
  219. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/strategy_context.py +0 -0
  220. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/tasks.py +0 -0
  221. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/tests/__init__.py +0 -0
  222. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/tests/contract.py +0 -0
  223. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/tests/support.py +0 -0
  224. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/tests/test_dispatchers.py +0 -0
  225. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/tests/test_executor.py +0 -0
  226. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/tests/test_local_session.py +0 -0
  227. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/tests/test_locks.py +0 -0
  228. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/tests/test_reconcile_runs.py +0 -0
  229. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/tests/test_run_events.py +0 -0
  230. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/execution/tests/test_strategy_context.py +0 -0
  231. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/gateway/__init__.py +0 -0
  232. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/gateway/remote.py +0 -0
  233. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/gateway/tests/__init__.py +0 -0
  234. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/gateway/tests/test_remote.py +0 -0
  235. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/EntityService.py +0 -0
  236. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/__init__.py +0 -0
  237. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/entity_cache.py +0 -0
  238. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/__init__.py +0 -0
  239. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/test_EntityService.py +0 -0
  240. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/test_EntityService_list.py +0 -0
  241. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/test_EntityService_model_resolution.py +0 -0
  242. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/test_EntityService_referrers.py +0 -0
  243. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/test_EntityService_routing.py +0 -0
  244. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/test_declared_freeze.py +0 -0
  245. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/test_dependent_on.py +0 -0
  246. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/test_engine_is_type_agnostic.py +0 -0
  247. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/test_engine_resolves_read_permission.py +0 -0
  248. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/test_entity_cache.py +0 -0
  249. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/graph/tests/test_null_entity_cache.py +0 -0
  250. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/__init__.py +0 -0
  251. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/commands/__init__.py +0 -0
  252. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/commands/dev_reset.py +0 -0
  253. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/commands/graphcore_createadmin.py +0 -0
  254. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/commands/graphcore_manifest_apply.py +0 -0
  255. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/commands/graphcore_policy.py +0 -0
  256. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/commands/graphcore_status.py +0 -0
  257. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/tests/__init__.py +0 -0
  258. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/tests/test_createadmin.py +0 -0
  259. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/tests/test_manifest_apply.py +0 -0
  260. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/tests/test_policy_command.py +0 -0
  261. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/management/tests/test_status_command.py +0 -0
  262. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/manifest/__init__.py +0 -0
  263. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/manifest/apply.py +0 -0
  264. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/manifest/codec.py +0 -0
  265. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/manifest/configure.py +0 -0
  266. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/manifest/manifest.py +0 -0
  267. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/manifest/record.py +0 -0
  268. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/manifest/registry.py +0 -0
  269. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/manifest/tests/__init__.py +0 -0
  270. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/manifest/tests/test_apply.py +0 -0
  271. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/manifest/tests/test_manifest.py +0 -0
  272. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/manifest/tests/test_record.py +0 -0
  273. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/migrations/0001_initial.py +0 -0
  274. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/migrations/0002_invite.py +0 -0
  275. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/migrations/0003_entity_key.py +0 -0
  276. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/migrations/__init__.py +0 -0
  277. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/models.py +0 -0
  278. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/ENTITY_REPOSITORY_TECHNICAL_TDD.md +0 -0
  279. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/__init__.py +0 -0
  280. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/__init__.py +0 -0
  281. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/backends.py +0 -0
  282. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/bindings.py +0 -0
  283. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/cache.py +0 -0
  284. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/compiler.py +0 -0
  285. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/identity.py +0 -0
  286. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/models.py +0 -0
  287. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/repository.py +0 -0
  288. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/tests/__init__.py +0 -0
  289. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/tests/test_backends.py +0 -0
  290. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/tests/test_compiler.py +0 -0
  291. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/tests/test_migration_entity_key.py +0 -0
  292. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/tests/test_repository.py +0 -0
  293. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/tests/test_shared_column.py +0 -0
  294. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/tests/test_threads.py +0 -0
  295. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/tests/test_update_shape.py +0 -0
  296. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/django/threads.py +0 -0
  297. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/repository.py +0 -0
  298. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/tests/__init__.py +0 -0
  299. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/tests/contract.py +0 -0
  300. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/tests/evaluate.py +0 -0
  301. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/tests/fixtures.py +0 -0
  302. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/tests/memory.py +0 -0
  303. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/tests/test_memory_repository.py +0 -0
  304. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/persistence/tests/test_query_types.py +0 -0
  305. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/agent_frontend.py +0 -0
  306. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/api.py +0 -0
  307. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/apps.py +0 -0
  308. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/auth/__init__.py +0 -0
  309. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/auth/grants.py +0 -0
  310. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/auth/onboarding.py +0 -0
  311. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/auth/perms.py +0 -0
  312. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/auth/policy.py +0 -0
  313. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/auth/roles.py +0 -0
  314. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/auth/subjects.py +0 -0
  315. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/entities/__init__.py +0 -0
  316. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/errors.py +0 -0
  317. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/execution.py +0 -0
  318. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/manifests.py +0 -0
  319. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/persistence/__init__.py +0 -0
  320. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/persistence/django.py +0 -0
  321. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/scheduling.py +0 -0
  322. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/public/strategies/__init__.py +0 -0
  323. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/EntityDirectory.py +0 -0
  324. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/README.md +0 -0
  325. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/StrategyDirectory.py +0 -0
  326. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/TYPE_METADATA_PLACEMENT.md +0 -0
  327. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/__init__.py +0 -0
  328. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/app_discovery.py +0 -0
  329. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/decorators.py +0 -0
  330. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/discovery.py +0 -0
  331. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/registry.py +0 -0
  332. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/tests/__init__.py +0 -0
  333. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/tests/test_agent_frontend_discovery.py +0 -0
  334. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/tests/test_app_config.py +0 -0
  335. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/tests/test_discovery.py +0 -0
  336. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/tests/test_entity_directory_storage.py +0 -0
  337. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/tests/test_import_package.py +0 -0
  338. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/tests/test_principal_flag.py +0 -0
  339. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/registry/tests/test_strategy_directory.py +0 -0
  340. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/routes/__init__.py +0 -0
  341. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/routes/tests/__init__.py +0 -0
  342. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/routes/tests/test_routes.py +0 -0
  343. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/runtime.py +0 -0
  344. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/scheduling/__init__.py +0 -0
  345. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/scheduling/beat_scheduler.py +0 -0
  346. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/scheduling/beat_tasks.py +0 -0
  347. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/scheduling/scheduler.py +0 -0
  348. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/scheduling/tests/__init__.py +0 -0
  349. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/scheduling/tests/contract.py +0 -0
  350. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/scheduling/tests/memory.py +0 -0
  351. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/scheduling/tests/test_beat_scheduler.py +0 -0
  352. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/scheduling/tests/test_memory_scheduler.py +0 -0
  353. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/scheduling/tests/test_ticks.py +0 -0
  354. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tasks.py +0 -0
  355. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/test_settings.py +0 -0
  356. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/testing/__init__.py +0 -0
  357. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/testing/case.py +0 -0
  358. {graphcore_kernel-0.2.5/graphcore/testing/tests → graphcore_kernel-0.3.0/graphcore/testing/live}/__init__.py +0 -0
  359. {graphcore_kernel-0.2.5/graphcore → graphcore_kernel-0.3.0/graphcore/testing/live}/tests/__init__.py +0 -0
  360. {graphcore_kernel-0.2.5/graphcore/transport → graphcore_kernel-0.3.0/graphcore/testing/tests}/__init__.py +0 -0
  361. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/testing/tests/agent_view_fixture.py +0 -0
  362. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/testing/tests/test_case_and_runner.py +0 -0
  363. {graphcore_kernel-0.2.5/graphcore/transport → graphcore_kernel-0.3.0/graphcore}/tests/__init__.py +0 -0
  364. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/ids.py +0 -0
  365. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/memory_runtime.py +0 -0
  366. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/runs.py +0 -0
  367. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_app_discovery.py +0 -0
  368. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_composition_boundaries.py +0 -0
  369. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_docs_discovery.py +0 -0
  370. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_no_print.py +0 -0
  371. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_public_api_contract.py +0 -0
  372. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_public_api_docs.py +0 -0
  373. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_runtime.py +0 -0
  374. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_shared_type_boundaries.py +0 -0
  375. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_shared_types.py +0 -0
  376. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/tests/test_test_settings.py +0 -0
  377. {graphcore_kernel-0.2.5/graphcore/types/tests → graphcore_kernel-0.3.0/graphcore/transport}/__init__.py +0 -0
  378. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/agent_asgi.py +0 -0
  379. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/agent_client.py +0 -0
  380. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/channel_layer.py +0 -0
  381. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/consumers.py +0 -0
  382. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/routing.py +0 -0
  383. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/tests/test_agent_client.py +0 -0
  384. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/tests/test_api_views.py +0 -0
  385. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/tests/test_channel_layer.py +0 -0
  386. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/tests/test_consumers.py +0 -0
  387. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/tests/test_resource_metadata.py +0 -0
  388. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/urls.py +0 -0
  389. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/transport/views.py +0 -0
  390. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/__init__.py +0 -0
  391. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/access.py +0 -0
  392. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/api.py +0 -0
  393. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/entities.py +0 -0
  394. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/entity_id.py +0 -0
  395. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/execution.py +0 -0
  396. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/identity.py +0 -0
  397. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/keys.py +0 -0
  398. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/onboarding.py +0 -0
  399. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/query.py +0 -0
  400. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/schedules.py +0 -0
  401. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/strategy.py +0 -0
  402. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/types/tests/test_entity_id.py +0 -0
  403. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore/urls.py +0 -0
  404. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore_kernel.egg-info/dependency_links.txt +0 -0
  405. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore_kernel.egg-info/entry_points.txt +0 -0
  406. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/graphcore_kernel.egg-info/top_level.txt +0 -0
  407. {graphcore_kernel-0.2.5 → graphcore_kernel-0.3.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphcore-kernel
3
- Version: 0.2.5
3
+ Version: 0.3.0
4
4
  Summary: GraphCore platform kernel (entities, strategies, transport, auth)
5
5
  Author: GraphCore
6
6
  License-Expression: Apache-2.0
@@ -30,6 +30,9 @@ Requires-Dist: django-redis<8,>=7.0; extra == "redis"
30
30
  Requires-Dist: channels-redis<5,>=4.3; extra == "redis"
31
31
  Provides-Extra: server
32
32
  Requires-Dist: uvicorn[standard]<1,>=0.34; extra == "server"
33
+ Provides-Extra: live
34
+ Requires-Dist: graphcore-kernel[redis,server]; extra == "live"
35
+ Requires-Dist: websockets<18,>=13; extra == "live"
33
36
  Dynamic: license-file
34
37
 
35
38
  # graphcore-kernel (backend)
@@ -1,4 +1,4 @@
1
- """The MCP server: four fixed tools over a `Frontend`, whichever transport reaches it.
1
+ """The MCP server: three fixed tools over a `Frontend`, whichever transport reaches it.
2
2
  It holds the protocol's tool definitions and instructions, and nothing about a transport."""
3
3
  from __future__ import annotations
4
4
 
@@ -20,10 +20,12 @@ Every place is a Markdown page: its content, its address, a version, and a Tools
20
20
  - open(at): read a place. Addresses look like /, /notes, or an entity id gc://<backend>/<local>,
21
21
  which is the address of that entity's place. A route with an entity in it holds its full id:
22
22
  /notes/gc://<backend>/<local>/history.
23
- - call(at, tool, params): run a tool listed under that place's Tools. Pass seen_version
24
- (the version you last read) so a write based on out-of-date content is refused.
23
+ - call(at, tool, params): run a tool listed under that place's Tools. A tool the place does not
24
+ list runs too when it is a strategy of the entity at that address (or, at a place with no
25
+ entity, of the deployment), named as tools are, such as create_entity; the result then says
26
+ listed: false. Pass seen_version (the version you last read) so a write based on
27
+ out-of-date content is refused.
25
28
  - find(type, predicate): list entities of a type, optionally filtered by field equality.
26
- - act(strategy, target, params): run a strategy directly when no place lists it as a tool.
27
29
  Reads and writes run as the user you connected as.
28
30
  """
29
31
  WEB_INSTRUCTIONS = """\
@@ -57,7 +59,10 @@ def build_server(
57
59
  async def find(type: str, ctx: Context, predicate: Optional[dict[str, Any]] = None, limit: int = 25) -> str:
58
60
  return await _guard(tools.find)(fe, principal_of(ctx), type, predicate, limit)
59
61
 
60
- @mcp.tool(description="Run a tool listed at a place. Pass seen_version to refuse the write if the place changed.")
62
+ @mcp.tool(description=(
63
+ "Run a tool at a place: one its Tools list, or else a strategy of the entity it shows. "
64
+ "Pass seen_version to refuse the write if the place changed."
65
+ ))
61
66
  async def call(
62
67
  at: str, tool: str, ctx: Context, params: Optional[dict[str, Any]] = None,
63
68
  seen_version: Optional[str] = None,
@@ -73,8 +78,4 @@ def build_server(
73
78
  structured_content={'result': out.text},
74
79
  )
75
80
 
76
- @mcp.tool(description='Run a strategy by name, optionally on a target address or entity id.')
77
- async def act(strategy: str, ctx: Context, target: Optional[str] = None, params: Optional[dict[str, Any]] = None) -> str:
78
- return await _guard(tools.act)(fe, principal_of(ctx), strategy, target, params)
79
-
80
81
  return mcp
@@ -6,6 +6,7 @@ from typing import Any, Optional
6
6
 
7
7
  from graphcore.agent_frontend import signatures
8
8
  from graphcore.agent_frontend.api import AgentView, ToolSpec
9
+ from graphcore.agent_frontend.base.views import deployment_tools, type_tools
9
10
  from graphcore.agent_frontend.client import GraphClient
10
11
  from graphcore.agent_frontend.context import (
11
12
  DEFAULT_QUERY_MAX, Context, Placement, Reads, label_of, normalized, to_agent, to_route,
@@ -140,6 +141,14 @@ async def _tools(fe: Frontend, ctx: Context, view: AgentView, entity: Any) -> li
140
141
  return list(resolved.values())
141
142
 
142
143
 
144
+ async def unlisted_tools(fe: Frontend, principal: Principal, rendered: Rendered) -> list[ResolvedTool]:
145
+ """What the built-in view would list at `rendered`: every strategy of its entity's type,
146
+ or, at a place with no entity, the deployment's untargeted strategies."""
147
+ view =AgentView('unlisted', _placeholder, tools=type_tools if rendered.entity is not None else deployment_tools)
148
+ ctx = Context(principal, rendered.address, rendered.entity, fe.client, Reads(), fe.registry, fe.query_max, fe.web_url)
149
+ return await _tools(fe, ctx, view, rendered.entity)
150
+
151
+
143
152
  def _resolve(fe: Frontend, address: str) -> tuple[str, str, dict]:
144
153
  """`address`, in any form, as its route, as the agent writes it, and resolved."""
145
154
  route = normalized(to_route(address))
@@ -538,11 +538,36 @@ class ToolTests(unittest.TestCase):
538
538
  with self.assertRaises(AgentError):
539
539
  run(tools.find(self.fe, PRINCIPAL, 'Nope'))
540
540
 
541
- def test_act(self):
542
- out = run(tools.act(self.fe, PRINCIPAL, 'CreateNote', None, {'title': 'New'}))
543
- self.assertIn('"ok":true', out)
544
- with self.assertRaises(AgentError):
545
- run(tools.act(self.fe, PRINCIPAL, 'Nope', None, {}))
541
+ def test_call_runs_a_strategy_of_the_entity_its_place_does_not_list(self):
542
+ @agent_view('notes.note', default_for=['t.Note'])
543
+ async def note(ctx, entity):
544
+ return ['A note']
545
+ self.fe.registry.add(view_of(note))
546
+ self.assertEqual(run(render(self.fe, PRINCIPAL, 'gc://bbbbbbbbbb/000000000002')).tools, [])
547
+ for name in ('rename', 'Rename'):
548
+ out = json.loads(run(tools.call(self.fe, PRINCIPAL, 'gc://bbbbbbbbbb/000000000002', name, {'name': 'Y'})).text)
549
+ self.assertEqual((out['tool'], out['listed']), ('rename', False))
550
+ self.assertEqual(self.client.executed, [('Rename', 'gc://bbbbbbbbbb/000000000002', {'name': 'Y'})] * 2)
551
+
552
+ def test_a_listed_tool_says_nothing_about_being_listed(self):
553
+ out = json.loads(run(tools.call(self.fe, PRINCIPAL, 'gc://bbbbbbbbbb/000000000002', 'rename', {'name': 'Y'})).text)
554
+ self.assertNotIn('listed', out)
555
+
556
+ def test_call_at_a_place_with_no_entity_runs_a_strategy_of_the_deployment(self):
557
+ out = json.loads(run(tools.call(self.fe, PRINCIPAL, '/notes', 'create_note', {'title': 'New'})).text)
558
+ self.assertEqual((out['ok'], out['listed']), (True, False))
559
+ self.assertEqual(self.client.executed, [('CreateNote', None, {'title': 'New'})])
560
+
561
+ def test_an_unknown_tool_names_the_tools_here_and_points_to_home(self):
562
+ with self.assertRaises(AgentError) as cm:
563
+ run(tools.call(self.fe, PRINCIPAL, 'gc://bbbbbbbbbb/000000000002', 'create_note', {'title': 'New'}))
564
+ self.assertEqual(cm.exception.code, 'UnknownTool')
565
+ self.assertIn('tools here: rename', cm.exception.message)
566
+ self.assertIn('listed at /', cm.exception.message)
567
+ with self.assertRaises(AgentError) as cm:
568
+ run(tools.call(self.fe, PRINCIPAL, '/', 'nope', {}))
569
+ self.assertNotIn('listed at /', cm.exception.message)
570
+ self.assertEqual(self.client.executed, [])
546
571
 
547
572
  def test_open_with_version(self):
548
573
  r = run(render(self.fe, PRINCIPAL, 'gc://bbbbbbbbbb/000000000002'))
@@ -735,7 +760,7 @@ class AddressRenderTests(unittest.TestCase):
735
760
  for out in (text, entity, found):
736
761
  self.assertNotIn('/e/', out.replace('http://h/app/e/', ''))
737
762
 
738
- def test_call_and_act_take_a_target_and_a_place_in_every_form(self):
763
+ def test_call_takes_a_target_and_a_place_in_every_form(self):
739
764
  async def any_target(ctx, entity):
740
765
  return [strategy_tool('Rename', name='rename_any')]
741
766
 
@@ -748,13 +773,15 @@ class AddressRenderTests(unittest.TestCase):
748
773
  return []
749
774
  self.registry.add(view_of(v))
750
775
  self.registry.add(view_of(tab))
776
+ self.client.by_type['t.Folder'] = ['Rename']
751
777
  forms = (ID, f'/e/{PAIR}', f'/notes/{ID}/tab', f'/notes/{PAIR}/tab')
752
778
  for target in forms:
753
779
  out = json.loads(run(tools.call(self.fe, PRINCIPAL, target, 'rename_any',
754
780
  {'target': target, 'name': 'X'})).text)
755
781
  self.assertEqual(out['address'], to_agent(to_route(target), ID))
756
- run(tools.act(self.fe, PRINCIPAL, 'Rename', target, {'name': 'Y'}))
782
+ # Not listed at the place, so it runs as a strategy of the entity the address holds.
783
+ run(tools.call(self.fe, PRINCIPAL, target, 'rename', {'name': 'Y'}))
757
784
  self.assertEqual([t for _, t, _ in self.client.executed], [ID] * 2 * len(forms))
758
785
  with self.assertRaises(AgentError) as cm:
759
- run(tools.act(self.fe, PRINCIPAL, 'Rename', '/nope/x', {'name': 'Y'}))
786
+ run(tools.call(self.fe, PRINCIPAL, ID, 'rename_any', {'target': '/nope/x', 'name': 'Y'}))
760
787
  self.assertEqual(cm.exception.code, 'NotFound')
@@ -80,7 +80,7 @@ class McpContractTests(SimpleTestCase):
80
80
  async with transport() as (list_tools, _):
81
81
  lists.append(await list_tools())
82
82
  self.assertEqual(lists[0], lists[1])
83
- self.assertEqual({tool['name'] for tool in lists[0]}, {'open', 'find', 'call', 'act'})
83
+ self.assertEqual({tool['name'] for tool in lists[0]}, {'open', 'find', 'call'})
84
84
 
85
85
  async def test_open(self):
86
86
  result = await self._both('open', {'at': 'gc://bbbbbbbbbb/000000000001'})
@@ -100,9 +100,10 @@ class McpContractTests(SimpleTestCase):
100
100
  result = await self._both('call', {'at': 'gc://bbbbbbbbbb/000000000001', 'tool': 'look'})
101
101
  self.assertEqual([c['type'] for c in result['content']], ['text', 'image'])
102
102
 
103
- async def test_act(self):
104
- result = await self._both('act', {'strategy': 'Rename', 'target': 'gc://bbbbbbbbbb/000000000001', 'params': {'name': 'x'}})
103
+ async def test_call_with_a_tool_the_place_does_not_list(self):
104
+ result = await self._both('call', {'at': 'gc://bbbbbbbbbb/000000000001', 'tool': 'rename', 'params': {'name': 'x'}})
105
105
  self.assertFalse(result.get('isError'))
106
+ self.assertIn('"listed":false', result['content'][0]['text'])
106
107
 
107
108
 
108
109
  class _Recording(FakeGraphClient):
@@ -90,7 +90,7 @@ class McpServerTests(SimpleTestCase):
90
90
  self.assertEqual(init.status_code, 200, init.text)
91
91
  self.assertEqual(init.json()['result']['serverInfo']['name'], 'graphcore')
92
92
  tools = (await self.rpc('tools/list')).json()['result']['tools']
93
- self.assertEqual({t['name'] for t in tools}, {'open', 'find', 'call', 'act'})
93
+ self.assertEqual({t['name'] for t in tools}, {'open', 'find', 'call'})
94
94
 
95
95
  async def initialize(self):
96
96
  init = await self.rpc('initialize', {
@@ -1,4 +1,4 @@
1
- """The four generic tools, as plain async functions over a `Frontend`."""
1
+ """The three generic tools, as plain async functions over a `Frontend`."""
2
2
  from __future__ import annotations
3
3
 
4
4
  import json
@@ -12,7 +12,7 @@ from graphcore.agent_frontend import changes
12
12
  from graphcore.agent_frontend.api import Image
13
13
  from graphcore.agent_frontend.context import Context, Reads, label_of, normalized, to_route
14
14
  from graphcore.agent_frontend.errors import AgentError
15
- from graphcore.agent_frontend.render import Frontend, ResolvedTool, render
15
+ from graphcore.agent_frontend.render import Frontend, Rendered, ResolvedTool, render, unlisted_tools
16
16
  from graphcore.errors import InvalidRequest, NotFound
17
17
  from graphcore.types.entity_id import is_entity_id
18
18
  from graphcore.types.identity import Principal
@@ -128,6 +128,15 @@ async def _strategy_token(
128
128
  }
129
129
 
130
130
 
131
+ def _unknown(tool: str, rendered: Rendered) -> str:
132
+ names = ', '.join(t.name for t in rendered.tools) or 'none'
133
+ scope = f"a strategy of {rendered.entity.entity_type_id}" if rendered.entity is not None else "a strategy of the deployment"
134
+ message = f"{tool!r} is not a tool at {rendered.address} or {scope}; tools here: {names}"
135
+ if rendered.address != '/':
136
+ message += ". Tools that need no entity, such as creating a top-level one, are listed at /"
137
+ return message
138
+
139
+
131
140
  async def call(
132
141
  fe: Frontend, principal: Principal, at: str, tool: str, params: Optional[dict] = None,
133
142
  seen_version: Optional[str] = None, execute_url: str = '',
@@ -143,9 +152,13 @@ async def call(
143
152
  f"{rendered.version}. Open it again, then retry.",
144
153
  )
145
154
  chosen = next((t for t in rendered.tools if t.name == tool), None)
155
+ unlisted = {} if chosen else {'listed': False}
156
+ if chosen is None:
157
+ chosen = next((
158
+ t for t in await unlisted_tools(fe, principal, rendered) if tool in (t.name, t.spec.strategy)
159
+ ), None)
146
160
  if chosen is None:
147
- names = ', '.join(t.name for t in rendered.tools) or 'none'
148
- raise AgentError('UnknownTool', f"{tool!r} is not a tool at {rendered.address}; tools: {names}")
161
+ raise AgentError('UnknownTool', _unknown(tool, rendered))
149
162
  schema = chosen.full_schema()
150
163
  try:
151
164
  jsonschema.validate(params, schema)
@@ -164,7 +177,7 @@ async def call(
164
177
  if chosen.spec.from_shell:
165
178
  result = await _strategy_token(fe, principal, chosen.spec.strategy, target, execute_url)
166
179
  return CallResult(_json({
167
- 'ok': True, 'tool': chosen.name, 'result': result, 'address': rendered.address,
180
+ 'ok': True, 'tool': chosen.name, 'result': result, **unlisted, 'address': rendered.address,
168
181
  'version': rendered.version, 'note': "nothing ran yet; run it from your shell as `how` says",
169
182
  }))
170
183
  ctx = Context(principal, rendered.address, rendered.entity, fe.client, Reads(), fe.registry, fe.query_max, fe.web_url)
@@ -175,8 +188,8 @@ async def call(
175
188
 
176
189
  if chosen.read_only:
177
190
  return CallResult(_json({
178
- 'ok': True, 'tool': chosen.name, 'result': result, **_ran(request_id), 'address': rendered.address,
179
- 'version': rendered.version,
191
+ 'ok': True, 'tool': chosen.name, 'result': result, **_ran(request_id), **unlisted,
192
+ 'address': rendered.address, 'version': rendered.version,
180
193
  }), tuple(images))
181
194
 
182
195
  try:
@@ -186,35 +199,12 @@ async def call(
186
199
  if exc.code != 'NotFound':
187
200
  raise
188
201
  return CallResult(_json({
189
- 'ok': True, 'tool': chosen.name, 'result': result, **_ran(request_id), 'address': None,
202
+ 'ok': True, 'tool': chosen.name, 'result': result, **_ran(request_id), **unlisted, 'address': None,
190
203
  'note': f"ran {chosen.name}; {rendered.address} no longer exists or is not readable",
191
204
  }), tuple(images))
192
205
  changed = await changes.diff(fe.client, principal, rendered.reads, snapshots, after.reads)
193
206
  return CallResult(_json({
194
- 'ok': True, 'tool': chosen.name, 'result': result, **_ran(request_id), 'address': after.address,
195
- 'version': after.version, **changed, 'note': changes.note(chosen.name, changed),
207
+ 'ok': True, 'tool': chosen.name, 'result': result, **_ran(request_id), **unlisted,
208
+ 'address': after.address, 'version': after.version, **changed, 'note': changes.note(chosen.name, changed),
196
209
  }), tuple(images))
197
210
 
198
-
199
- async def act(
200
- fe: Frontend, principal: Principal, strategy: str, target: Optional[str] = None,
201
- params: Optional[dict] = None,
202
- ) -> str:
203
- params = params or {}
204
- info = fe.client.strategy_info().get(strategy)
205
- if info is None:
206
- raise AgentError('UnknownStrategy', f"{strategy!r} is not a registered strategy")
207
- try:
208
- jsonschema.validate(params, info.get('schema') or {})
209
- except jsonschema.ValidationError as exc:
210
- raise AgentError('InvalidRequest', f"{exc.message}; schema: {_json(info.get('schema'))}")
211
- try:
212
- target_id = await _target_id(fe, target) if target else None
213
- ctx = Context(principal, '/', None, fe.client, Reads(), fe.registry, fe.query_max, fe.web_url)
214
- outcome = await ctx.run(strategy, target_id, params)
215
- except NotFound as exc:
216
- raise AgentError('NotFound', str(exc))
217
- return _json({
218
- 'ok': True, 'strategy': strategy, 'result': outcome.get('ret_val') or {},
219
- **_ran(outcome.get('strategy_request_id')),
220
- })
@@ -53,8 +53,8 @@ with its own agent view) or **compact** (one line: label, type, address).
53
53
  strategy executions as one tool.
54
54
  - **Tool signature**: a view tool written compactly in a render:
55
55
  `review_document(doc: entity, verdict: approve|reject, note?: str)`.
56
- - **Generic tools**: the four MCP tools the endpoint exposes: `open`,
57
- `find`, `call`, `act`.
56
+ - **Generic tools**: the three MCP tools the endpoint exposes: `open`,
57
+ `find`, `call`.
58
58
 
59
59
 
60
60
 
@@ -73,8 +73,8 @@ strategy executions as one tool.
73
73
  render. Each placement is rendered by the agent view resolved for it,
74
74
  registered or default.
75
75
  5. **Curation without lock-in.** A view may show a subset and offer
76
- operations; `find` and `act` still reach everything the user may read
77
- and do.
76
+ operations; `find` and `call`, which runs a strategy a view leaves out,
77
+ still reach everything the user may read and do.
78
78
  6. **No new authority.** Agent views, operations, and defaults confer no
79
79
  access. Every read and write passes through `GraphAPI` as the user.
80
80
  7. **Stateless.** The server holds nothing between calls. Every call names
@@ -110,7 +110,7 @@ use.
110
110
 
111
111
  | Layer | Holds | Code |
112
112
  |---|---|---|
113
- | Application core | `Frontend` and `open`, `find`, `call`, `act`, reaching the graph through the `GraphClient` port | `agent_frontend/render.py`, `tools.py` |
113
+ | Application core | `Frontend` and `open`, `find`, `call`, reaching the graph through the `GraphClient` port | `agent_frontend/render.py`, `tools.py` |
114
114
  | MCP server | The protocol adapter: tool definitions and instructions. Told by its transport who is calling | `agent_frontend/mcp_server.py` (`build_server`) |
115
115
  | HTTP transport | Streamable HTTP, bearer authentication, CORS. The caller is the token's principal | `agent_frontend/server.py` (`create_app`), `transport/agent_asgi.py` |
116
116
  | In-process transport | The MCP SDK's memory transport. The caller is passed in | `graphcore.public.agent_frontend.connect` |
@@ -144,8 +144,8 @@ sign in).
144
144
  - `connect(principal)` returns the SDK's `Client` on a server bound to that
145
145
  principal, for a strategy that drives the tools from inside a kernel process.
146
146
  A holder depends only on `Client`, so another MCP server is another client. It
147
- adds no capability: reads are scoped to the principal, and `call` and `act`
148
- submit strategy requests the principal owns, which run in their own strategy
147
+ adds no capability: reads are scoped to the principal, and `call` submits
148
+ strategy requests the principal owns, which run in their own strategy
149
149
  contexts. There is no shell in process, so a strategy-token tool reports that
150
150
  it is unavailable.
151
151
  - Both transports pass one contract suite with identical results
@@ -162,13 +162,26 @@ The endpoint exposes exactly these tools.
162
162
  | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
163
163
  | `open(at, version?)` | Returns the render at `at`. With `version`, the render also states whether the address changed since that version. | Read on the address's entity, when it has one; every read the render makes. |
164
164
  | `find(type, predicate?, limit?)` | Runs the access-scoped typed query. Returns matches compactly: label, type, address. | The kernel's read scoping of `list_entities`. |
165
- | `call(at, tool, params, seen_version?)` | Resolves the view at `at`, checks that `tool` is one of its view tools, and runs it. | Each strategy execution, as the user. |
166
- | `act(strategy, target?, params)` | Runs any registered strategy, outside any view. | The strategy's invocation and persistence checks. |
165
+ | `call(at, tool, params, seen_version?)` | Resolves the view at `at` and runs `tool`: one of its view tools, or else a strategy the view does not list (below). | Each strategy execution, as the user. |
167
166
 
168
167
 
169
- `open` and `find` read; `call` and `act` write. `call` is the curated path;
170
- `act` is the escape hatch that keeps a view from locking the agent out of
171
- anything, as typing a URL bypasses a page's buttons.
168
+ `open` and `find` read; `call` writes. `call` looks for `tool` in order:
169
+
170
+ 1. A view tool the place lists, by its name: the curated path, with the
171
+ view's names, fixed targets and guidance.
172
+ 2. Otherwise, what the base views would list at the address: for an
173
+ address that holds an entity, a strategy of the entity's type, run on
174
+ it (`type_tools`); for one with no entity, an untargeted strategy on the
175
+ deployment's allowlist (`deployment_tools`). The tool is named by its
176
+ snake_case tool name or by the strategy's own name.
177
+
178
+ The second step keeps a view from locking the agent out of anything, as
179
+ typing a URL bypasses a page's buttons. Its result carries `listed: false`,
180
+ so the agent knows it went outside what the view offers. A strategy reached
181
+ this way is not a shell tool: one a view offers only from a shell
182
+ (`from_shell`) runs here with its parameters inline. An unknown tool's error
183
+ lists the place's tools and, away from `/`, says that tools needing no
184
+ entity are listed at `/`.
172
185
 
173
186
  A result that ran one strategy names its request as `request_id`, and a refusal
174
187
  names it in the error text. An operation tool's result has no `request_id`,
@@ -237,7 +250,7 @@ address passes through. Identifiers are recognized by `ENTITY_ID_RE`.
237
250
  identifier's two segments become the identifier. A route with no entity is
238
251
  unchanged.
239
252
 
240
- `open`, `call`'s `at` and `target`, and `act`'s `target` accept either form,
253
+ `open` and `call`'s `at` and `target` accept either form,
241
254
  so an agent or app holding a route-form address still works; only output
242
255
  changed form. The `web:` link is always the route form, since a browser URL
243
256
  never carries `gc://`.
@@ -496,7 +509,7 @@ The agent frontend performs no checks and skips none:
496
509
  - Renders, including every placement, are built from `GraphAPI` reads,
497
510
  which refuse what the user may not read. A render cannot place an entity
498
511
  the user cannot open.
499
- - `call` and `act` run strategies through `GraphAPI` as the user.
512
+ - `call` runs strategies through `GraphAPI` as the user.
500
513
  - An operation's steps are checked one by one; a refused step raises, and
501
514
  the operation reports the refusal.
502
515
 
@@ -5,6 +5,7 @@ Import the capability you need directly: ``graphcore.public.apps``,
5
5
  ``graphcore.public.entities``, ``graphcore.public.strategies``,
6
6
  ``graphcore.public.persistence``, ``graphcore.public.scheduling``,
7
7
  ``graphcore.public.execution``,
8
- ``graphcore.public.api``, ``graphcore.public.errors``, or
8
+ ``graphcore.public.api``, ``graphcore.public.errors``,
9
+ ``graphcore.public.testing``, ``graphcore.public.live_testing``, or
9
10
  ``graphcore.public.auth.{perms,roles,subjects,policy,grants}``.
10
11
  """
@@ -0,0 +1,37 @@
1
+ """Spec tests for app authors: Given/When/Then scenarios in an app's own
2
+ vocabulary, run against a live stack of the app - a real web process, a
3
+ Celery worker, Redis and Postgres - through the HTTP API, the WebSocket and
4
+ `/mcp`, as every client reaches it.
5
+
6
+ An app's `specs/` package holds its vocabulary, a `Dsl`:
7
+
8
+ from graphcore.public.live_testing import Actor, Dsl, strategy
9
+
10
+ class NoteActor(Actor):
11
+ async def creates_a_note(self, name):
12
+ outcome = await self.execute_one(strategy('CreateNote', name=name))
13
+ return outcome['ret_val']['note_id']
14
+
15
+ class NotesDsl(Dsl):
16
+ actor_class = NoteActor
17
+
18
+ and `test_*.py` modules of scenarios that use nothing else:
19
+
20
+ from graphcore.public.live_testing import scenario
21
+
22
+ @scenario('R1', 'An owner creates a note')
23
+ async def _(n: NotesDsl):
24
+ ana = n.as_('Ana')
25
+ note = await ana.creates_a_note('Roadmap')
26
+ assert (await ana.get(note))['name'] == 'Roadmap'
27
+
28
+ `Dsl.patch` is `unittest.mock.patch` for the stack's processes, for the
29
+ outside services a strategy calls.
30
+
31
+ `python -m graphcore.testing.live notes` starts the stack and runs them;
32
+ see `graphcore docs distro/spec-tests`.
33
+ """
34
+ from graphcore.testing.live.client import HttpError, Socket, eventually, strategy
35
+ from graphcore.testing.live.scenario import Actor, Dsl, scenario
36
+
37
+ __all__ = ['Actor', 'Dsl', 'HttpError', 'Socket', 'eventually', 'scenario', 'strategy']
@@ -7,7 +7,8 @@
7
7
 
8
8
  and its tests run with
9
9
  `python -m django test notes --settings=notes.test_settings`. They get the
10
- kernel's own test settings plus the app, on the database `GRAPHCORE_TEST_DB`
10
+ kernel's own test settings plus the app and the graphcore apps its
11
+ `pyproject.toml` lists as dependencies, on the database `GRAPHCORE_TEST_DB`
11
12
  names (`postgresql`, the default, or `sqlite`) and a test database of their
12
13
  own. Inside a project, `graphcore test` uses the project's settings instead.
13
14
  """
@@ -23,6 +23,8 @@ principal, as an agent does over `/mcp`:
23
23
 
24
24
  A project enables app test discovery with
25
25
  ``TEST_RUNNER = 'graphcore.public.testing.GraphCoreTestRunner'``.
26
+ The runner refuses to start while one of the project's apps imports another
27
+ graphcore app that its `pyproject.toml` does not list as a dependency.
26
28
 
27
29
  A deployment that replaces a port from its ``GRAPHCORE_RUNTIME_FACTORY``
28
30
  proves its implementation with that port's contract:
@@ -0,0 +1,162 @@
1
+ """Which graphcore apps an app requires, read from what the app declares:
2
+ the `pyproject.toml` beside its source, or its installed distribution's
3
+ metadata when there is no source checkout."""
4
+ from __future__ import annotations
5
+
6
+ import ast
7
+ import re
8
+ import sys
9
+ import tomllib
10
+ from importlib.util import find_spec
11
+ from pathlib import Path
12
+ from typing import Optional
13
+
14
+ from graphcore.registry import app_discovery
15
+
16
+ _REQUIREMENT_NAME = re.compile(r"[A-Za-z0-9][A-Za-z0-9._-]*")
17
+
18
+
19
+ def _normalized(distribution: str) -> str:
20
+ return re.sub(r"[-_.]+", "-", distribution).lower()
21
+
22
+
23
+ def _project(backend: Path) -> dict:
24
+ try:
25
+ with open(backend / "pyproject.toml", "rb") as handle:
26
+ return tomllib.load(handle).get("project", {})
27
+ except (OSError, tomllib.TOMLDecodeError):
28
+ return {}
29
+
30
+
31
+ def _source_backend(app: str) -> Optional[Path]:
32
+ """``<apps>/<name>/backend`` when ``app`` is imported from a source
33
+ checkout with its ``pyproject.toml``, else None."""
34
+ try:
35
+ spec = find_spec(app)
36
+ except (ImportError, ValueError):
37
+ return None
38
+ if spec is None or not spec.origin:
39
+ return None
40
+ backend = Path(spec.origin).resolve().parents[1]
41
+ return backend if (backend / "pyproject.toml").is_file() else None
42
+
43
+
44
+ class _Apps:
45
+ """The graphcore apps visible from here: installed distributions, and the
46
+ apps beside any app read from source."""
47
+
48
+ def __init__(self):
49
+ self.installed = {
50
+ ep.value: ep for ep in app_discovery._installed(app_discovery.APP_ENTRY_POINT_GROUP)
51
+ if ep.dist is not None
52
+ }
53
+ self.labels = {_normalized(ep.dist.name): label for label, ep in self.installed.items()}
54
+ self.sources: dict[str, Path] = {}
55
+
56
+ def _learn_siblings(self, backend: Path) -> None:
57
+ for sibling in sorted(backend.parent.parent.glob("*/backend")):
58
+ project = _project(sibling)
59
+ declared = project.get("entry-points", {}).get(app_discovery.APP_ENTRY_POINT_GROUP, {})
60
+ for label in declared.values():
61
+ if project.get("name"):
62
+ self.labels.setdefault(_normalized(project["name"]), label)
63
+ self.sources.setdefault(label, sibling)
64
+
65
+ def requirements(self, app: str) -> list[str]:
66
+ backend = self.sources.get(app) or _source_backend(app)
67
+ if backend is not None:
68
+ self._learn_siblings(backend)
69
+ project = _project(backend)
70
+ optional = project.get("optional-dependencies", {})
71
+ return [*project.get("dependencies", []),
72
+ *(f'{requirement}; extra == "{extra}"' for extra, listed in optional.items() for requirement in listed)]
73
+ return list(self.installed[app].dist.requires or []) if app in self.installed else []
74
+
75
+ def required_apps(self, app: str, extras: bool = False) -> list[str]:
76
+ """The apps ``app`` names in its requirements. A requirement under an
77
+ extra counts only with ``extras``: it is installed only when asked for."""
78
+ required = []
79
+ for requirement in self.requirements(app):
80
+ spec, _, marker = requirement.partition(";")
81
+ name = _REQUIREMENT_NAME.match(spec.strip())
82
+ label = self.labels.get(_normalized(name.group())) if name else None
83
+ if label and label != app and (extras or "extra" not in marker):
84
+ required.append(label)
85
+ return required
86
+
87
+ def make_importable(self, app: str) -> None:
88
+ backend = self.sources.get(app)
89
+ if backend is not None and str(backend) not in sys.path and find_spec(app) is None:
90
+ sys.path.insert(0, str(backend))
91
+
92
+
93
+ def app_dependencies(app: str) -> list[str]:
94
+ """The graphcore apps ``app`` requires, directly or through another app,
95
+ each after the apps it requires itself. An app required from the same
96
+ ``apps/`` directory is put on ``sys.path``."""
97
+ apps = _Apps()
98
+ seen = {app}
99
+ ordered: list[str] = []
100
+
101
+ def visit(label: str) -> None:
102
+ for required in apps.required_apps(label):
103
+ if required not in seen:
104
+ seen.add(required)
105
+ apps.make_importable(required)
106
+ visit(required)
107
+ ordered.append(required)
108
+
109
+ visit(app)
110
+ return ordered
111
+
112
+
113
+ def _is_type_checking(test: ast.expr) -> bool:
114
+ return (isinstance(test, ast.Name) and test.id == "TYPE_CHECKING") or (
115
+ isinstance(test, ast.Attribute) and test.attr == "TYPE_CHECKING")
116
+
117
+
118
+ def _imported_roots(path: Path) -> set[str]:
119
+ """The top-level packages ``path`` imports at runtime: an import under
120
+ ``if TYPE_CHECKING:`` never runs. A file that does not parse imports
121
+ nothing here; running it reports the error."""
122
+ try:
123
+ tree = ast.parse(path.read_text(), filename=str(path))
124
+ except (SyntaxError, ValueError):
125
+ return set()
126
+ typing_only = {
127
+ id(inner) for node in ast.walk(tree) if isinstance(node, ast.If) and _is_type_checking(node.test)
128
+ for statement in node.body for inner in ast.walk(statement)
129
+ }
130
+ roots = set()
131
+ for node in ast.walk(tree):
132
+ if id(node) in typing_only:
133
+ continue
134
+ if isinstance(node, ast.Import):
135
+ roots.update(alias.name.split(".")[0] for alias in node.names)
136
+ elif isinstance(node, ast.ImportFrom) and node.module and not node.level:
137
+ roots.add(node.module.split(".")[0])
138
+ return roots
139
+
140
+
141
+ def undeclared_app_imports(app: str, backend: Optional[Path] = None) -> list[tuple[str, str]]:
142
+ """``(file, other app)`` for each graphcore app that ``app``'s source
143
+ imports without naming it in its ``pyproject.toml`` dependencies. Such an
144
+ app works in a project that happens to install the other one, and breaks
145
+ when tested or installed on its own. ``backend`` is the app's
146
+ ``<apps>/<name>/backend``, found by importing it when not given; empty
147
+ for an app with no source checkout."""
148
+ backend = backend or _source_backend(app)
149
+ if backend is None:
150
+ return []
151
+ apps = _Apps()
152
+ apps.sources[app] = backend
153
+ declared = set(apps.required_apps(app, extras=True))
154
+ owners = {}
155
+ for label in {*apps.installed, *apps.sources} - {app, "graphcore"}:
156
+ owners[label] = owners[app_discovery.agent_frontend_module(label)] = label
157
+ found = []
158
+ for package in (backend / app, backend / app_discovery.agent_frontend_module(app)):
159
+ for path in sorted(package.rglob("*.py")) if package.is_dir() else []:
160
+ for other in sorted({owners[root] for root in _imported_roots(path) if root in owners} - declared):
161
+ found.append((str(path.relative_to(backend)), other))
162
+ return found