rootsign 0.3.1__tar.gz → 0.4.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 (384) hide show
  1. rootsign-0.4.0/.gitattributes +3 -0
  2. {rootsign-0.3.1 → rootsign-0.4.0}/.github/workflows/ci.yml +182 -8
  3. {rootsign-0.3.1 → rootsign-0.4.0}/.github/workflows/release.yml +1 -1
  4. rootsign-0.4.0/CLAUDE.md +90 -0
  5. {rootsign-0.3.1 → rootsign-0.4.0}/CONTRIBUTING.md +14 -14
  6. rootsign-0.4.0/NOTICE +6 -0
  7. rootsign-0.4.0/PKG-INFO +163 -0
  8. rootsign-0.4.0/README.md +101 -0
  9. {rootsign-0.3.1 → rootsign-0.4.0}/SECURITY.md +4 -3
  10. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-003-framework-contract-tests.md +3 -1
  11. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-006-redaction-contract.md +23 -0
  12. rootsign-0.4.0/docs/demo.gif +0 -0
  13. rootsign-0.4.0/docs/framework-support.md +8 -0
  14. rootsign-0.4.0/docs/ingest-spec-v1.md +8 -0
  15. {rootsign-0.3.1 → rootsign-0.4.0}/docs/releases/v0.3.1.md +23 -0
  16. rootsign-0.4.0/docs/releases/v0.4.0.md +142 -0
  17. rootsign-0.4.0/docs/site/docs.json +96 -0
  18. rootsign-0.4.0/docs/site/guides/batching.mdx +121 -0
  19. rootsign-0.4.0/docs/site/guides/cloud-and-sync.mdx +188 -0
  20. rootsign-0.4.0/docs/site/guides/decision-capture.mdx +151 -0
  21. rootsign-0.4.0/docs/site/guides/evidence-bundles.mdx +170 -0
  22. rootsign-0.4.0/docs/site/guides/human-approval.mdx +201 -0
  23. rootsign-0.4.0/docs/site/guides/postgres.mdx +157 -0
  24. rootsign-0.4.0/docs/site/guides/redaction.mdx +175 -0
  25. rootsign-0.4.0/docs/site/guides/verify.mdx +207 -0
  26. rootsign-0.4.0/docs/site/guides/without-init.mdx +193 -0
  27. rootsign-0.4.0/docs/site/how-it-works.mdx +156 -0
  28. rootsign-0.4.0/docs/site/images/evidence-report-approval.png +0 -0
  29. rootsign-0.4.0/docs/site/images/evidence-report.png +0 -0
  30. rootsign-0.4.0/docs/site/index.mdx +66 -0
  31. rootsign-0.4.0/docs/site/integrations/crewai.mdx +208 -0
  32. rootsign-0.4.0/docs/site/integrations/langgraph.mdx +249 -0
  33. rootsign-0.4.0/docs/site/integrations/mcp.mdx +259 -0
  34. rootsign-0.4.0/docs/site/integrations/python.mdx +112 -0
  35. rootsign-0.4.0/docs/site/logo/favicon.png +0 -0
  36. rootsign-0.4.0/docs/site/quickstart.mdx +206 -0
  37. rootsign-0.4.0/docs/site/reference/cli-rootsign-admin.mdx +215 -0
  38. rootsign-0.4.0/docs/site/reference/cli-rootsign.mdx +277 -0
  39. rootsign-0.4.0/docs/site/reference/configuration.mdx +185 -0
  40. rootsign-0.4.0/docs/site/reference/errors.mdx +239 -0
  41. rootsign-0.4.0/docs/site/reference/evidence-bundle.mdx +309 -0
  42. rootsign-0.3.1/docs/ingest-spec-v1.md → rootsign-0.4.0/docs/site/reference/ingest-spec-v1.mdx +75 -69
  43. rootsign-0.4.0/docs/site/reference/python-api.mdx +381 -0
  44. rootsign-0.4.0/docs/site/resources/changelog.mdx +144 -0
  45. rootsign-0.4.0/docs/site/resources/design-decisions.mdx +28 -0
  46. rootsign-0.4.0/docs/site/resources/framework-support.mdx +46 -0
  47. rootsign-0.4.0/docs/site/resources/roadmap.mdx +33 -0
  48. rootsign-0.4.0/docs/site/resources/security.mdx +76 -0
  49. rootsign-0.4.0/docs/site/videos/evidence-bundle.mp4 +0 -0
  50. rootsign-0.4.0/docs/site/videos/human-approval.mp4 +0 -0
  51. rootsign-0.4.0/docs/site/videos/quickstart.mp4 +0 -0
  52. rootsign-0.4.0/docs/videos/evidence-bundle-1.tape +32 -0
  53. rootsign-0.4.0/docs/videos/evidence-bundle-2.tape +36 -0
  54. rootsign-0.4.0/docs/videos/human-approval.tape +69 -0
  55. rootsign-0.4.0/docs/videos/quickstart.tape +95 -0
  56. rootsign-0.4.0/docs/videos/render.sh +50 -0
  57. rootsign-0.4.0/docs/videos/report_scroll.py +153 -0
  58. rootsign-0.4.0/docs/videos/settings.tape +11 -0
  59. rootsign-0.4.0/docs/videos/stage.py +131 -0
  60. {rootsign-0.3.1 → rootsign-0.4.0}/examples/README.md +9 -6
  61. rootsign-0.4.0/examples/crewai-jsonl/README.md +52 -0
  62. rootsign-0.4.0/examples/crewai-jsonl/crew.py +101 -0
  63. {rootsign-0.3.1 → rootsign-0.4.0}/examples/langgraph-invoice-agent/README.md +4 -4
  64. rootsign-0.4.0/examples/langgraph-jsonl/README.md +46 -0
  65. rootsign-0.4.0/examples/langgraph-jsonl/agent.py +104 -0
  66. rootsign-0.4.0/examples/mcp-proxy/README.md +37 -0
  67. rootsign-0.4.0/examples/mcp-proxy/demo.py +106 -0
  68. rootsign-0.4.0/examples/mcp-proxy/proxy.py +37 -0
  69. {rootsign-0.3.1 → rootsign-0.4.0}/examples/quickstart-jsonl/README.md +20 -15
  70. {rootsign-0.3.1 → rootsign-0.4.0}/pyproject.toml +7 -5
  71. rootsign-0.4.0/rootsign/_cli_db.py +100 -0
  72. rootsign-0.4.0/rootsign/_migrations/versions/0006_decision_reasoning_depth.py +35 -0
  73. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/cli.py +84 -20
  74. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/errors.py +33 -4
  75. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/ingest/handler.py +2 -1
  76. rootsign-0.4.0/rootsign/mcp/proxy.py +329 -0
  77. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/mcp/server.py +1 -1
  78. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/models/decision.py +3 -0
  79. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/replay.py +6 -2
  80. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/schemas/decision.py +1 -0
  81. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/__init__.py +4 -3
  82. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/buffered_client.py +75 -21
  83. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/cli.py +196 -32
  84. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/client.py +55 -12
  85. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/config.py +8 -1
  86. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/context.py +3 -6
  87. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/decorator.py +201 -35
  88. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/export.py +66 -3
  89. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/facade.py +67 -4
  90. rootsign-0.4.0/rootsign/sdk/frameworks/__init__.py +29 -0
  91. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/frameworks/crewai.py +9 -0
  92. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/frameworks/langgraph.py +19 -0
  93. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/redaction.py +38 -2
  94. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/registration.py +42 -4
  95. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/report.py +21 -3
  96. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/session.py +114 -31
  97. rootsign-0.4.0/scripts/demo_live.py +268 -0
  98. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/cloud/test_http_transport.py +1 -1
  99. rootsign-0.4.0/tests/contract/crewai/test_docs_and_example.py +75 -0
  100. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/crewai/test_tool_interception.py +1 -1
  101. rootsign-0.4.0/tests/contract/langgraph/test_docs_and_example.py +83 -0
  102. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/langgraph/test_tool_interception.py +1 -1
  103. rootsign-0.4.0/tests/contract/mcp/test_docs_and_example.py +82 -0
  104. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/mcp/test_proxy_hitl.py +7 -1
  105. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/mcp/test_proxy_interception.py +8 -1
  106. rootsign-0.4.0/tests/contract/mcp/test_proxy_real_server.py +178 -0
  107. {rootsign-0.3.1 → rootsign-0.4.0}/tests/fixtures/evidence_bundle_v1.json +2 -1
  108. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/LICENSE +121 -0
  109. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/README.md +260 -0
  110. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/SHA256SUMS +30 -0
  111. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v1-contiguous-tamper/bundle/evidence-00000001-0005-4000-8000-000000000001/manifest.json +21 -0
  112. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v1-contiguous-tamper/bundle/evidence-00000001-0005-4000-8000-000000000001/redaction.json +12 -0
  113. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v1-contiguous-tamper/bundle/evidence-00000001-0005-4000-8000-000000000001/sync-receipt.json +41 -0
  114. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v1-contiguous-tamper/bundle/evidence-00000001-0005-4000-8000-000000000001/timeline.json +57 -0
  115. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v1-contiguous-tamper/bundle/evidence-00000001-0005-4000-8000-000000000001/verification.json +54 -0
  116. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v1-contiguous-tamper/expected.json +56 -0
  117. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v1-contiguous-tamper/spool/receipts/00000001-0005-4000-8000-000000000001.sync.json +41 -0
  118. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v1-contiguous-tamper/spool/sessions/00000001-0005-4000-8000-000000000001.jsonl +4 -0
  119. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v1-contiguous-tamper/transcript.json +45 -0
  120. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v2-sequence-gap/bundle/evidence-00000002-0005-4000-8000-000000000001/manifest.json +21 -0
  121. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v2-sequence-gap/bundle/evidence-00000002-0005-4000-8000-000000000001/redaction.json +12 -0
  122. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v2-sequence-gap/bundle/evidence-00000002-0005-4000-8000-000000000001/sync-receipt.json +29 -0
  123. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v2-sequence-gap/bundle/evidence-00000002-0005-4000-8000-000000000001/timeline.json +57 -0
  124. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v2-sequence-gap/bundle/evidence-00000002-0005-4000-8000-000000000001/verification.json +51 -0
  125. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v2-sequence-gap/expected.json +50 -0
  126. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v2-sequence-gap/spool/synced/00000002-0005-4000-8000-000000000001.jsonl +4 -0
  127. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v2-sequence-gap/spool/synced/receipts/00000002-0005-4000-8000-000000000001.sync.json +29 -0
  128. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v2-sequence-gap/transcript.json +42 -0
  129. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v3-duplicates-and-hard-failure/bundle/evidence-00000003-0005-4000-8000-000000000001/manifest.json +21 -0
  130. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v3-duplicates-and-hard-failure/bundle/evidence-00000003-0005-4000-8000-000000000001/redaction.json +12 -0
  131. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v3-duplicates-and-hard-failure/bundle/evidence-00000003-0005-4000-8000-000000000001/sync-receipt.json +87 -0
  132. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v3-duplicates-and-hard-failure/bundle/evidence-00000003-0005-4000-8000-000000000001/timeline.json +81 -0
  133. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v3-duplicates-and-hard-failure/bundle/evidence-00000003-0005-4000-8000-000000000001/verification.json +77 -0
  134. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v3-duplicates-and-hard-failure/expected.json +96 -0
  135. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v3-duplicates-and-hard-failure/spool/receipts/00000003-0005-4000-8000-000000000001.sync.json +87 -0
  136. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v3-duplicates-and-hard-failure/spool/sessions/00000003-0005-4000-8000-000000000001.jsonl +6 -0
  137. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/v3-duplicates-and-hard-failure/transcript.json +106 -0
  138. rootsign-0.4.0/tests/fixtures/sync-receipt/v1.1/verify_vectors.py +776 -0
  139. rootsign-0.4.0/tests/integration/test_buffered_postgres_session.py +77 -0
  140. rootsign-0.4.0/tests/integration/test_cli_database_errors.py +163 -0
  141. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_dead_spool.py +50 -12
  142. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_decision_ingest.py +30 -0
  143. rootsign-0.4.0/tests/integration/test_docs_site_approval.py +164 -0
  144. rootsign-0.4.0/tests/integration/test_docs_site_cli_reference.py +137 -0
  145. rootsign-0.4.0/tests/integration/test_docs_site_postgres.py +170 -0
  146. rootsign-0.4.0/tests/integration/test_docs_site_without_init.py +167 -0
  147. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_export_sources.py +13 -0
  148. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_facade_implicit_tracers.py +8 -1
  149. rootsign-0.4.0/tests/integration/test_held_call_own_transaction.py +59 -0
  150. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_mcp_proxy.py +8 -1
  151. rootsign-0.4.0/tests/integration/test_refused_records_warn_postgres.py +44 -0
  152. rootsign-0.4.0/tests/integration/test_register_agent.py +131 -0
  153. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_show_hn_quickstart.py +8 -7
  154. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_verify_cli.py +49 -3
  155. rootsign-0.4.0/tests/support/docs_pages.py +107 -0
  156. rootsign-0.4.0/tests/support/http_endpoints.py +82 -0
  157. {rootsign-0.3.1 → rootsign-0.4.0}/tests/support/mock_ingest_store.py +1 -1
  158. rootsign-0.4.0/tests/support/receipt_vectors.py +490 -0
  159. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_admin_cli.py +41 -0
  160. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_buffered_client.py +103 -1
  161. rootsign-0.4.0/tests/unit/test_cli_db.py +58 -0
  162. rootsign-0.4.0/tests/unit/test_cli_help_text.py +59 -0
  163. rootsign-0.4.0/tests/unit/test_cloud_404_spools.py +90 -0
  164. rootsign-0.4.0/tests/unit/test_cloud_session_agent_id.py +79 -0
  165. rootsign-0.4.0/tests/unit/test_decision_validation.py +96 -0
  166. rootsign-0.4.0/tests/unit/test_docs_site_batching.py +374 -0
  167. rootsign-0.4.0/tests/unit/test_docs_site_cli_reference.py +525 -0
  168. rootsign-0.4.0/tests/unit/test_docs_site_cloud.py +267 -0
  169. rootsign-0.4.0/tests/unit/test_docs_site_config_errors.py +621 -0
  170. rootsign-0.4.0/tests/unit/test_docs_site_decision_capture.py +314 -0
  171. rootsign-0.4.0/tests/unit/test_docs_site_formats.py +395 -0
  172. rootsign-0.4.0/tests/unit/test_docs_site_guides.py +332 -0
  173. rootsign-0.4.0/tests/unit/test_docs_site_overhead.py +39 -0
  174. rootsign-0.4.0/tests/unit/test_docs_site_python.py +57 -0
  175. rootsign-0.4.0/tests/unit/test_docs_site_python_api.py +345 -0
  176. rootsign-0.4.0/tests/unit/test_docs_site_quickstart.py +131 -0
  177. rootsign-0.4.0/tests/unit/test_docs_site_redaction_and_approval.py +205 -0
  178. rootsign-0.4.0/tests/unit/test_docs_site_resources.py +226 -0
  179. rootsign-0.4.0/tests/unit/test_docs_site_videos.py +117 -0
  180. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_export_bundle.py +139 -0
  181. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_export_golden.py +2 -0
  182. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_export_report.py +39 -0
  183. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_facade.py +48 -8
  184. rootsign-0.4.0/tests/unit/test_hitl_cloud.py +121 -0
  185. rootsign-0.4.0/tests/unit/test_hitl_jsonl.py +218 -0
  186. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_http_ingest_client.py +96 -1
  187. rootsign-0.4.0/tests/unit/test_mcp_proxy_reply.py +61 -0
  188. rootsign-0.4.0/tests/unit/test_readme.py +72 -0
  189. rootsign-0.4.0/tests/unit/test_redaction_positional.py +178 -0
  190. rootsign-0.4.0/tests/unit/test_refused_records_warn.py +127 -0
  191. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_sdk_config.py +1 -1
  192. rootsign-0.4.0/tests/unit/test_session_open_fails_closed.py +151 -0
  193. rootsign-0.4.0/tests/unit/test_settings_read_at_init.py +184 -0
  194. rootsign-0.4.0/tests/unit/test_sync_receipt_vectors.py +514 -0
  195. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_sync_receipts.py +70 -0
  196. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_trace_hitl.py +4 -3
  197. rootsign-0.4.0/tests/unit/test_verify_cli_local.py +115 -0
  198. rootsign-0.4.0/tests/unit/test_wrap_tools_rejects_non_tools.py +53 -0
  199. {rootsign-0.3.1 → rootsign-0.4.0}/uv.lock +236 -194
  200. rootsign-0.3.1/NOTICE +0 -10
  201. rootsign-0.3.1/PKG-INFO +0 -574
  202. rootsign-0.3.1/README.md +0 -510
  203. rootsign-0.3.1/docs/demo.gif +0 -0
  204. rootsign-0.3.1/docs/demo.tape +0 -65
  205. rootsign-0.3.1/docs/framework-support.md +0 -156
  206. rootsign-0.3.1/rootsign/mcp/proxy.py +0 -188
  207. rootsign-0.3.1/rootsign/sdk/frameworks/__init__.py +0 -6
  208. rootsign-0.3.1/scripts/demo_for_gif.py +0 -79
  209. rootsign-0.3.1/tests/integration/test_register_agent.py +0 -66
  210. rootsign-0.3.1/tests/unit/test_hitl_jsonl.py +0 -99
  211. {rootsign-0.3.1 → rootsign-0.4.0}/.env.example +0 -0
  212. {rootsign-0.3.1 → rootsign-0.4.0}/.github/CLA_SIGNED.md +0 -0
  213. {rootsign-0.3.1 → rootsign-0.4.0}/.github/CODEOWNERS +0 -0
  214. {rootsign-0.3.1 → rootsign-0.4.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  215. {rootsign-0.3.1 → rootsign-0.4.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  216. {rootsign-0.3.1 → rootsign-0.4.0}/.github/ISSUE_TEMPLATE/framework_integration.yml +0 -0
  217. {rootsign-0.3.1 → rootsign-0.4.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  218. {rootsign-0.3.1 → rootsign-0.4.0}/.github/dependabot.yml +0 -0
  219. {rootsign-0.3.1 → rootsign-0.4.0}/.gitignore +0 -0
  220. {rootsign-0.3.1 → rootsign-0.4.0}/.vscode/settings.json +0 -0
  221. {rootsign-0.3.1 → rootsign-0.4.0}/CLA.md +0 -0
  222. {rootsign-0.3.1 → rootsign-0.4.0}/CONTRIBUTORS.md +0 -0
  223. {rootsign-0.3.1 → rootsign-0.4.0}/LICENSE +0 -0
  224. {rootsign-0.3.1 → rootsign-0.4.0}/alembic.ini +0 -0
  225. {rootsign-0.3.1 → rootsign-0.4.0}/docker-compose.yml +0 -0
  226. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-001-hash-canonical-spec.md +0 -0
  227. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-002-transport-agnostic-client.md +0 -0
  228. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-004-langgraph-interception-strategy.md +0 -0
  229. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-005-crewai-interception-strategy.md +0 -0
  230. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-007-hitl-checkpoint-design.md +0 -0
  231. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-008-decision-capture.md +0 -0
  232. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-009-buffered-ingest-client.md +0 -0
  233. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-010-mcp-interception-strategy.md +0 -0
  234. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-011-jsonl-local-backend.md +0 -0
  235. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-012-init-facade-contextvar-session.md +0 -0
  236. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-013-http-ingest-client-spool.md +0 -0
  237. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-014-export-evidence-bundle.md +0 -0
  238. {rootsign-0.3.1 → rootsign-0.4.0}/docs/adr/ADR-015-sync-receipts.md +0 -0
  239. {rootsign-0.3.1 → rootsign-0.4.0}/docs/evidence-report-approval.png +0 -0
  240. {rootsign-0.3.1 → rootsign-0.4.0}/docs/evidence-report.png +0 -0
  241. {rootsign-0.3.1 → rootsign-0.4.0}/docs/releases/v0.1.0.md +0 -0
  242. {rootsign-0.3.1 → rootsign-0.4.0}/docs/releases/v0.1.1.md +0 -0
  243. {rootsign-0.3.1 → rootsign-0.4.0}/docs/releases/v0.1.2.md +0 -0
  244. {rootsign-0.3.1 → rootsign-0.4.0}/docs/releases/v0.1.3.md +0 -0
  245. {rootsign-0.3.1 → rootsign-0.4.0}/docs/releases/v0.1.4.md +0 -0
  246. {rootsign-0.3.1 → rootsign-0.4.0}/docs/releases/v0.1.5.md +0 -0
  247. {rootsign-0.3.1 → rootsign-0.4.0}/docs/releases/v0.2.0.md +0 -0
  248. {rootsign-0.3.1 → rootsign-0.4.0}/docs/releases/v0.3.0.md +0 -0
  249. {rootsign-0.3.1 → rootsign-0.4.0}/docs/rootsign-logo.png +0 -0
  250. {rootsign-0.3.1 → rootsign-0.4.0}/examples/docker-compose.yml +0 -0
  251. {rootsign-0.3.1 → rootsign-0.4.0}/examples/langgraph-invoice-agent/.env.example +0 -0
  252. {rootsign-0.3.1 → rootsign-0.4.0}/examples/langgraph-invoice-agent/agent.py +0 -0
  253. {rootsign-0.3.1 → rootsign-0.4.0}/examples/langgraph-invoice-agent/pyproject.toml +0 -0
  254. {rootsign-0.3.1 → rootsign-0.4.0}/examples/langgraph-invoice-agent/verify.sh +0 -0
  255. {rootsign-0.3.1 → rootsign-0.4.0}/examples/quickstart-jsonl/quickstart.py +0 -0
  256. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/__init__.py +0 -0
  257. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/_migrations/__init__.py +0 -0
  258. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/_migrations/env.py +0 -0
  259. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/_migrations/script.py.mako +0 -0
  260. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/_migrations/versions/0001_initial_schema.py +0 -0
  261. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/_migrations/versions/0002_approval_parent_id.py +0 -0
  262. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/_migrations/versions/0003_action_timed_out.py +0 -0
  263. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/_migrations/versions/0004_approval_action_unique.py +0 -0
  264. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/_migrations/versions/0005_agents_name_env_unique.py +0 -0
  265. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/_version.py +0 -0
  266. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/chain_state.py +0 -0
  267. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/config.py +0 -0
  268. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/crud/__init__.py +0 -0
  269. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/crud/action.py +0 -0
  270. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/crud/agent.py +0 -0
  271. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/crud/approval.py +0 -0
  272. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/crud/base.py +0 -0
  273. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/crud/decision.py +0 -0
  274. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/crud/incident.py +0 -0
  275. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/crud/policy.py +0 -0
  276. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/crud/session.py +0 -0
  277. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/database.py +0 -0
  278. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/hashing.py +0 -0
  279. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/ingest/__init__.py +0 -0
  280. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/ingest/idempotency.py +0 -0
  281. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/ingest/schemas.py +0 -0
  282. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/mcp/__init__.py +0 -0
  283. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/models/__init__.py +0 -0
  284. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/models/action.py +0 -0
  285. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/models/agent.py +0 -0
  286. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/models/approval.py +0 -0
  287. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/models/incident.py +0 -0
  288. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/models/policy.py +0 -0
  289. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/models/session.py +0 -0
  290. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/schemas/__init__.py +0 -0
  291. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/schemas/action.py +0 -0
  292. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/schemas/agent.py +0 -0
  293. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/schemas/approval.py +0 -0
  294. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/schemas/incident.py +0 -0
  295. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/schemas/policy.py +0 -0
  296. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/schemas/session.py +0 -0
  297. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/_async_bridge.py +0 -0
  298. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/chain.py +0 -0
  299. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/hashing.py +0 -0
  300. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/hitl.py +0 -0
  301. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/jsonl_client.py +0 -0
  302. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/jsonl_registry.py +0 -0
  303. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/loss_ledger.py +0 -0
  304. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/receipt.py +0 -0
  305. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/sdk/spool.py +0 -0
  306. {rootsign-0.3.1 → rootsign-0.4.0}/rootsign/verdict.py +0 -0
  307. {rootsign-0.3.1 → rootsign-0.4.0}/scripts/demo_verify_chain.py +0 -0
  308. {rootsign-0.3.1 → rootsign-0.4.0}/scripts/generate_hash_vectors.py +0 -0
  309. {rootsign-0.3.1 → rootsign-0.4.0}/scripts/init_test_db.sql +0 -0
  310. {rootsign-0.3.1 → rootsign-0.4.0}/tests/__init__.py +0 -0
  311. {rootsign-0.3.1 → rootsign-0.4.0}/tests/conftest.py +0 -0
  312. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/__init__.py +0 -0
  313. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/cloud/__init__.py +0 -0
  314. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/crewai/__init__.py +0 -0
  315. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/langgraph/__init__.py +0 -0
  316. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/mcp/__init__.py +0 -0
  317. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/mcp/test_server.py +0 -0
  318. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/no_extras/__init__.py +0 -0
  319. {rootsign-0.3.1 → rootsign-0.4.0}/tests/contract/no_extras/test_packaging_isolation.py +0 -0
  320. {rootsign-0.3.1 → rootsign-0.4.0}/tests/fixtures/hash_vectors.json +0 -0
  321. {rootsign-0.3.1 → rootsign-0.4.0}/tests/fixtures/redaction_vectors.json +0 -0
  322. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/__init__.py +0 -0
  323. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_approval_concurrency.py +0 -0
  324. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_approve_cli.py +0 -0
  325. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_buffered_client.py +0 -0
  326. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_crewai_integration.py +0 -0
  327. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_cross_backend_hash.py +0 -0
  328. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_crud.py +0 -0
  329. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_decision_capture.py +0 -0
  330. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_export_cli_postgres.py +0 -0
  331. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_facade_postgres.py +0 -0
  332. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_ingest.py +0 -0
  333. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_jsonl_buffered.py +0 -0
  334. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_kill_network.py +0 -0
  335. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_langgraph_integration.py +0 -0
  336. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_mcp_server.py +0 -0
  337. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_payload_binding.py +0 -0
  338. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_relationships.py +0 -0
  339. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_sdk_smoke.py +0 -0
  340. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_session_context_manager.py +0 -0
  341. {rootsign-0.3.1 → rootsign-0.4.0}/tests/integration/test_verdict_parity.py +0 -0
  342. {rootsign-0.3.1 → rootsign-0.4.0}/tests/performance/__init__.py +0 -0
  343. {rootsign-0.3.1 → rootsign-0.4.0}/tests/performance/_bench.py +0 -0
  344. {rootsign-0.3.1 → rootsign-0.4.0}/tests/performance/test_benchmarks.py +0 -0
  345. {rootsign-0.3.1 → rootsign-0.4.0}/tests/performance/test_langgraph_benchmarks.py +0 -0
  346. {rootsign-0.3.1 → rootsign-0.4.0}/tests/performance/test_roundtrip_benchmark.py +0 -0
  347. {rootsign-0.3.1 → rootsign-0.4.0}/tests/performance/test_verify_benchmarks.py +0 -0
  348. {rootsign-0.3.1 → rootsign-0.4.0}/tests/support/__init__.py +0 -0
  349. {rootsign-0.3.1 → rootsign-0.4.0}/tests/support/session_files.py +0 -0
  350. {rootsign-0.3.1 → rootsign-0.4.0}/tests/support/spool_tree.py +0 -0
  351. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/__init__.py +0 -0
  352. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/conftest.py +0 -0
  353. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_action_record_decision_id.py +0 -0
  354. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_action_sequence_counter.py +0 -0
  355. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_chain.py +0 -0
  356. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_chain_state.py +0 -0
  357. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_config_guard.py +0 -0
  358. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_context.py +0 -0
  359. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_crewai_tracer.py +0 -0
  360. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_crud_approval.py +0 -0
  361. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_emit_action_record_json_safe.py +0 -0
  362. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_emit_approval_record.py +0 -0
  363. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_emit_decision_record.py +0 -0
  364. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_errors.py +0 -0
  365. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_export_check.py +0 -0
  366. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_export_cli.py +0 -0
  367. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_hashing.py +0 -0
  368. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_hitl.py +0 -0
  369. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_idempotency_bounds.py +0 -0
  370. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_ingest_client.py +0 -0
  371. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_input_payload_override.py +0 -0
  372. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_jsonl_client.py +0 -0
  373. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_jsonl_registry.py +0 -0
  374. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_langgraph_tracer.py +0 -0
  375. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_log_injection.py +0 -0
  376. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_record_loss_ladder.py +0 -0
  377. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_redaction.py +0 -0
  378. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_redaction_pii.py +0 -0
  379. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_replay.py +0 -0
  380. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_schemas.py +0 -0
  381. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_sdk_hashing.py +0 -0
  382. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_session_buffered_flush.py +0 -0
  383. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_spool_sync.py +0 -0
  384. {rootsign-0.3.1 → rootsign-0.4.0}/tests/unit/test_verdict.py +0 -0
@@ -0,0 +1,3 @@
1
+ # Conformance vectors are hashed byte-for-byte (SHA256SUMS, spool_file_sha256,
2
+ # bundle manifests). Never let a checkout rewrite their line endings.
3
+ tests/fixtures/sync-receipt/** -text
@@ -63,6 +63,32 @@ jobs:
63
63
  # run `ruff format .` — that is the intended prompt, not a bug.
64
64
  run: ruff format --check --diff .
65
65
 
66
+ docs-site:
67
+ # The Mintlify docs site in docs/site/ deploys from main on every push, so
68
+ # a broken docs.json or a dead internal link would go live unreviewed.
69
+ # `mint validate` builds the site; `mint broken-links` checks every
70
+ # root-relative link. Code samples are checked separately, by
71
+ # tests/unit/test_docs_site_quickstart.py, which runs them.
72
+ #
73
+ # mint is pinned for the same reason ruff is: a floating CLI can start
74
+ # failing a PR that touched nothing under docs/site/.
75
+ name: Docs site (mint)
76
+ runs-on: ubuntu-latest
77
+ defaults:
78
+ run:
79
+ working-directory: docs/site
80
+ steps:
81
+ - uses: actions/checkout@v7
82
+ - uses: actions/setup-node@v7
83
+ with:
84
+ node-version: '22'
85
+ - name: Install the Mintlify CLI
86
+ run: npm install -g mint@4.3.48
87
+ - name: mint validate
88
+ run: mint validate
89
+ - name: mint broken-links
90
+ run: mint broken-links
91
+
66
92
  unit-tests:
67
93
  name: Unit tests (Python ${{ matrix.python-version }})
68
94
  runs-on: ubuntu-latest
@@ -165,12 +191,25 @@ jobs:
165
191
  # job intentionally runs WITHOUT a Postgres service. The
166
192
  # ROOTSIGN_SKIP_DB_BOOTSTRAP env var tells the session-autouse fixture
167
193
  # in tests/conftest.py to skip alembic / DB connect at session start.
168
- name: LangGraph contract (langgraph ~=${{ matrix.langgraph-version }})
194
+ #
195
+ # Each row pins a real minor with a three-part `~=X.Y.0`. A two-part
196
+ # `~=0.1` means ">=0.1, <1.0", so the old '0.1' and '0.2' rows both
197
+ # installed 0.6.11 and the 0.1.x / 0.2.x claims were never tested. The
198
+ # "Check installed version" step fails the job if a row ever resolves
199
+ # outside its line again.
200
+ #
201
+ # 0.2.x is the oldest line that passes (0.1.x pulls a Pydantic v1
202
+ # langchain-core); 0.6.x is the last 0.x; 1.x is what `rootsign[langgraph]`
203
+ # resolves to today.
204
+ name: LangGraph contract (langgraph ${{ matrix.line }})
169
205
  runs-on: ubuntu-latest
170
206
  strategy:
171
207
  fail-fast: false
172
208
  matrix:
173
- langgraph-version: ['0.1', '0.2']
209
+ include:
210
+ - { line: '0.2.x', spec: '~=0.2.0', prefix: '0.2.' }
211
+ - { line: '0.6.x', spec: '~=0.6.0', prefix: '0.6.' }
212
+ - { line: '1.x', spec: '~=1.0', prefix: '1.' }
174
213
  env:
175
214
  ROOTSIGN_SKIP_DB_BOOTSTRAP: '1'
176
215
  steps:
@@ -179,7 +218,12 @@ jobs:
179
218
  with:
180
219
  python-version: '3.12'
181
220
  - name: Install with langgraph extra
182
- run: pip install -e '.[dev,langgraph]' "langgraph~=${{ matrix.langgraph-version }}"
221
+ run: pip install -e '.[dev,langgraph]' "langgraph${{ matrix.spec }}"
222
+ - name: Check installed version
223
+ run: |
224
+ v=$(python -c "import importlib.metadata as m; print(m.version('langgraph'))")
225
+ echo "langgraph $v"
226
+ case "$v" in ${{ matrix.prefix }}*) ;; *) echo "::error::expected langgraph ${{ matrix.line }}, got $v"; exit 1 ;; esac
183
227
  - name: Contract tests
184
228
  run: pytest tests/contract/langgraph/ -v
185
229
 
@@ -193,12 +237,22 @@ jobs:
193
237
  # crewai 1.6.1 had all 13 contract tests green — the ADR-005
194
238
  # heuristic (name + _run callable) survives 1.x's BaseTool refactor
195
239
  # because we never imported the class, only the shape.
196
- name: CrewAI contract (crewai ~=${{ matrix.crewai-version }})
240
+ #
241
+ # Rows pin real lines with `~=X.Y.0`, for the same reason as the langgraph
242
+ # job: the old '0.28' and '0.40' rows both installed 0.203.2. 0.95.x is the
243
+ # oldest release that installs next to rootsign AND imports on Python 3.12:
244
+ # 0.28.x pins typer<0.10 (rootsign needs >=0.12), 0.40 was never published,
245
+ # and everything up to 0.86 imports pkg_resources, which 3.12 environments
246
+ # no longer ship.
247
+ name: CrewAI contract (crewai ${{ matrix.line }})
197
248
  runs-on: ubuntu-latest
198
249
  strategy:
199
250
  fail-fast: false
200
251
  matrix:
201
- crewai-version: ['0.28', '0.40', '1.0']
252
+ include:
253
+ - { line: '0.95.x', spec: '~=0.95.0', prefix: '0.95.' }
254
+ - { line: '0.203.x', spec: '~=0.203.0', prefix: '0.203.' }
255
+ - { line: '1.x', spec: '~=1.0', prefix: '1.' }
202
256
  env:
203
257
  ROOTSIGN_SKIP_DB_BOOTSTRAP: '1'
204
258
  steps:
@@ -207,7 +261,12 @@ jobs:
207
261
  with:
208
262
  python-version: '3.12'
209
263
  - name: Install with crewai extra
210
- run: pip install -e '.[dev,crewai]' "crewai~=${{ matrix.crewai-version }}"
264
+ run: pip install -e '.[dev,crewai]' "crewai${{ matrix.spec }}"
265
+ - name: Check installed version
266
+ run: |
267
+ v=$(python -c "import importlib.metadata as m; print(m.version('crewai'))")
268
+ echo "crewai $v"
269
+ case "$v" in ${{ matrix.prefix }}*) ;; *) echo "::error::expected crewai ${{ matrix.line }}, got $v"; exit 1 ;; esac
211
270
  - name: Contract tests
212
271
  run: pytest tests/contract/crewai/ -v
213
272
 
@@ -221,8 +280,19 @@ jobs:
221
280
  # Installs the mcp extra (fastapi + uvicorn + mcp + httpx). Lazy imports in
222
281
  # rootsign/mcp/* mean the core SDK still imports without it (verified by a
223
282
  # test in tests/contract/mcp/), but the proxy itself needs fastapi to run.
224
- name: MCP proxy contract tests
283
+ #
284
+ # Two rows: the newest 1.x, and the extra's floor. mcp 1.9 to 1.21 fail to
285
+ # import next to pydantic 2.14+, so the floor is 1.22 and this row keeps it
286
+ # honest. The newest row keeps the bare job name, because branch
287
+ # protection requires "MCP proxy contract tests" by that name.
288
+ name: MCP proxy contract tests${{ matrix.suffix }}
225
289
  runs-on: ubuntu-latest
290
+ strategy:
291
+ fail-fast: false
292
+ matrix:
293
+ include:
294
+ - { line: 'newest 1.x', spec: '', prefix: '1.', suffix: '' }
295
+ - { line: '1.22.x', spec: '~=1.22.0', prefix: '1.22.', suffix: ' (mcp 1.22.x)' }
226
296
  env:
227
297
  ROOTSIGN_SKIP_DB_BOOTSTRAP: '1'
228
298
  steps:
@@ -231,7 +301,12 @@ jobs:
231
301
  with:
232
302
  python-version: '3.12'
233
303
  - name: Install with mcp extra
234
- run: pip install -e '.[dev,mcp]'
304
+ run: pip install -e '.[dev,mcp]' "mcp${{ matrix.spec }}"
305
+ - name: Check installed version
306
+ run: |
307
+ v=$(python -c "import importlib.metadata as m; print(m.version('mcp'))")
308
+ echo "mcp $v"
309
+ case "$v" in ${{ matrix.prefix }}*) ;; *) echo "::error::expected mcp ${{ matrix.line }}, got $v"; exit 1 ;; esac
235
310
  - name: Contract tests
236
311
  run: pytest tests/contract/mcp/ -v
237
312
 
@@ -410,3 +485,102 @@ jobs:
410
485
  # The python -c checks above ARE the authoritative bare-install gate;
411
486
  # the guard-rail + subprocess isolation tests run in the unit-tests job
412
487
  # (full env, where the subprocess blocker simulates the missing stack).
488
+
489
+ locked-deps-tests:
490
+ # Every other test job resolves with `pip install -e`, which ignores
491
+ # uv.lock and installs whatever is newest. So a lockfile-only PR (every
492
+ # Dependabot PR) went green without anyone running the versions it locks —
493
+ # #54 did exactly that. This job installs the lockfile itself and runs the
494
+ # whole suite against it. `--locked` also fails the job if pyproject.toml
495
+ # changed without a matching `uv lock`.
496
+ name: Locked dependencies tests (uv.lock)
497
+ runs-on: ubuntu-latest
498
+ services:
499
+ timescaledb:
500
+ image: timescale/timescaledb:latest-pg16
501
+ env:
502
+ POSTGRES_DB: rootsign_dev
503
+ POSTGRES_USER: rootsign
504
+ POSTGRES_PASSWORD: rootsign
505
+ ports: ['5432:5432']
506
+ options: >-
507
+ --health-cmd pg_isready
508
+ --health-interval 5s
509
+ --health-timeout 5s
510
+ --health-retries 10
511
+ env:
512
+ DATABASE_URL: postgresql+asyncpg://rootsign:rootsign@localhost:5432/rootsign_dev
513
+ DATABASE_URL_SYNC: postgresql+psycopg2://rootsign:rootsign@localhost:5432/rootsign_dev
514
+ TEST_DATABASE_URL: postgresql+asyncpg://rootsign:rootsign@localhost:5432/rootsign_test
515
+ TEST_DATABASE_URL_SYNC: postgresql+psycopg2://rootsign:rootsign@localhost:5432/rootsign_test
516
+ # Use setup-python's interpreter; never let uv fetch its own.
517
+ UV_PYTHON_DOWNLOADS: never
518
+ steps:
519
+ - uses: actions/checkout@v7
520
+ - uses: actions/setup-python@v7
521
+ with:
522
+ python-version: '3.12'
523
+ - name: Install uv
524
+ run: pip install "uv==0.13.6"
525
+ - name: Install every extra from uv.lock
526
+ run: |
527
+ uv sync --locked --all-extras --python 3.12
528
+ echo "$PWD/.venv/bin" >> "$GITHUB_PATH"
529
+ - name: Bootstrap rootsign_test
530
+ run: |
531
+ PGPASSWORD=rootsign psql -h localhost -U rootsign -d rootsign_dev \
532
+ -c "CREATE DATABASE rootsign_test OWNER rootsign;" || true
533
+ PGPASSWORD=rootsign psql -h localhost -U rootsign -d rootsign_test \
534
+ -c "CREATE EXTENSION IF NOT EXISTS timescaledb;"
535
+ - name: alembic upgrade head
536
+ run: alembic upgrade head
537
+ - name: Full suite against the locked versions
538
+ # Benchmarks stay opt-in, as everywhere else.
539
+ #
540
+ # PYTHONFAULTHANDLER: this job (the only one with every extra
541
+ # installed) segfaulted during interpreter shutdown, after every test
542
+ # had passed, on most runs of #76-#78 and never on main. Any
543
+ # faulthandler instrumentation made it pass 10 of 10, so no stack was
544
+ # ever captured (issue #79). Armed here, a recurrence
545
+ # prints every thread's stack instead of a bare exit 139.
546
+ env:
547
+ PYTHONFAULTHANDLER: "1"
548
+ run: python -m pytest tests/ -m 'not benchmark'
549
+
550
+ dependency-audit:
551
+ # Scans every package in uv.lock against OSV. Dependabot only alerts once
552
+ # a vulnerable version is on main; this catches one a PR is about to add —
553
+ # #54 fixed its two alerts but locked httpx2 2.3.0, with four advisories.
554
+ #
555
+ # This job can turn red with no code change, when a new advisory lands
556
+ # against a package already locked. Fix by upgrading it. If the risk is
557
+ # accepted instead, dismiss the Dependabot alert AND add its GHSA ID below
558
+ # with the reason, so the two ledgers stay in step. A GHSA ID also
559
+ # suppresses its PYSEC alias.
560
+ #
561
+ # `uv audit` is experimental, hence the exact uv pin.
562
+ name: Dependency audit (uv.lock)
563
+ runs-on: ubuntu-latest
564
+ steps:
565
+ - uses: actions/checkout@v7
566
+ - uses: actions/setup-python@v7
567
+ with:
568
+ python-version: '3.12'
569
+ - name: Install uv
570
+ run: pip install "uv==0.13.6"
571
+ - name: uv audit
572
+ run: |
573
+ ignores=(
574
+ # chromadb 1.1.1, via crewai: no upstream fix exists. Dependabot
575
+ # alerts #2 (not_used), #35, #36, #37 (tolerable_risk).
576
+ GHSA-f4j7-r4q5-qw2c
577
+ GHSA-xph7-9rjv-w5fr
578
+ GHSA-2wm9-hf6c-p5cr
579
+ GHSA-36p7-vc44-83pf
580
+ # json-repair 0.25.2: crewai pins it, so the fix is unreachable.
581
+ # Dependabot alert #16 (tolerable_risk).
582
+ GHSA-xf7x-x43h-rpqh
583
+ )
584
+ args=()
585
+ for id in "${ignores[@]}"; do args+=(--ignore "$id"); done
586
+ uv audit --frozen --preview-features audit-command "${args[@]}"
@@ -54,4 +54,4 @@ jobs:
54
54
  # the `rootsign` project — anyone able to move that branch could
55
55
  # publish a release under our name. SHA below == tag v1.14.2.
56
56
  # Bump deliberately; verify the new SHA against the release tag.
57
- uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
57
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
@@ -0,0 +1,90 @@
1
+ # CLAUDE.md
2
+
3
+ This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+ ## NEVER commit or push project/sprint artifacts
6
+
7
+ Sprint plans, agent guides, internal audits, memory snapshots, and similar working documents **must stay local**. They are gitignored as a backstop, but the rule is the rule regardless of whether `.gitignore` catches a given filename:
8
+
9
+ - `AGENTS*.md`, `AGENTS_Phase*.md`, `RootSign_Phase*.{md,docx}`, `ProvidexAI_Phase*.{md,docx}`
10
+ - `MEMORY.md` and anything under a `memory/` directory
11
+ - `rootsign_review.md` and other founder-run audit artifacts
12
+
13
+ If a new artifact like this gets created during a session, treat it as local-only by default. Do not `git add`, do not stage, do not include in commits. If a `git add -A` / `git add .` would sweep one in, switch to per-file staging. If a similar file pattern appears that isn't already gitignored, add the pattern to `.gitignore` in the same change.
14
+
15
+ **Why:** these documents contain unreleased product strategy, audit findings, and pre-decision context. A Sprint 4 history-rewrite was needed once to scrub an accidentally-tracked sprint plan — the gitignore patterns added in commit 128cec5 exist as a mechanical backstop. The rule is to never need that backstop.
16
+
17
+ ## Where the code actually lives
18
+
19
+ The Python project is `phase0/` (this directory). The parent `turbo/` is just a workspace wrapper. All paths below are relative to `phase0/`.
20
+
21
+ ## Dev environment
22
+
23
+ CONTRIBUTING.md has the full setup. The non-obvious bits:
24
+
25
+ - **Always run `python -m pytest`, never bare `pytest`.** A brew-installed `pytest` shadows the venv binary and silently runs under the system interpreter — produces `ModuleNotFoundError: sqlalchemy` and similar.
26
+ - **Even unit tests need a running database.** `tests/conftest.py` has a session-scoped `_bootstrap_test_db` fixture that runs alembic before any test collection. Start the DB first: `rootsign-admin start-db` (or `docker-compose up -d db` in-repo).
27
+ - **Schema bootstrap:** `rootsign-admin init` applies migrations. Idempotent. `--reset` drops and recreates the public schema after a confirmation prompt; `--yes` skips the prompt (CI, scripts), so be careful with it.
28
+ - **Single test:** `python -m pytest tests/integration/test_show_hn_quickstart.py::TestShowHNQuickstart::test_readme_quickstart_end_to_end -v`
29
+ - **Test markers:** `integration` and `benchmark` are declared in `pyproject.toml`. Performance suite at `tests/performance/` is opt-in via `-m benchmark`.
30
+ - **Coverage gate:** `fail_under = 85` in `pyproject.toml`. CI enforces it. New code expected at ≥90% per CONTRIBUTING.
31
+ - **Lint:** `ruff check .` and `ruff format .` before pushing.
32
+
33
+ ## Two CLIs — do not flip them
34
+
35
+ Naming is locked (sprint plan Flag, do not re-derive):
36
+
37
+ | Surface | Entry point | Commands |
38
+ |---|---|---|
39
+ | **User CLI** `rootsign` | `rootsign.sdk.cli:app` | `verify`, `approve`, `approve --list` |
40
+ | **Operator CLI** `rootsign-admin` | `rootsign.cli:app` | `start-db`, `stop-db`, `init`, `status` |
41
+
42
+ `rootsign approve <id>` is a developer workflow on the user CLI. `rootsign-admin replay-pending` (when it lands) is a privileged schema-level operation on the operator CLI. Decorator is `@rootsign.trace`, never `@providex.trace`. Package is `rootsign`, never `providex`.
43
+
44
+ ## Big-picture architecture
45
+
46
+ **Hash chain (per-session, tamper-evident).** Each `Action` row carries `prev_action_hash` linking to the previous action in its session. `compute_action_self_hash` in `rootsign/hashing.py` is the **frozen canonical spec** — ADR-001 governs it, and CONTRIBUTING refuses to merge changes without a new ADR. Never re-implement it (the local-verify path got this wrong once and silently broke; see commit 128cec5). `self_hash` deliberately excludes `input_redacted`/`output_redacted` — the chain proves hash integrity, not payload-to-hash binding (an open pre-Phase-2 audit item).
47
+
48
+ **Ingest path.** SDK constructs an envelope → `IngestClient.handle(envelope)` → `IngestHandler` validates and routes by `event_type` → CRUD writes. `LocalIngestClient` is the in-process v0.1.0 path. `HttpIngestClient` is the Phase 2 hosted-backend path. Failure isolation rule (ADR-002): ingest **never raises into the decorated tool**; failures log at WARNING and the tool returns normally.
49
+
50
+ **HiTL checkpoint (ADR-007 — locked design).** `require_approval=True` on `@rootsign.trace` inserts an `ACTION_RECORD` with `authorization_status='pending'` and a reserved sequence number at submission time, then waits on `HiTLCheckpoint` (async poll loop). On approval: tool runs. Timeout: status becomes `'timed_out'` (terminal, distinct from `'human_rejected'`) and an Approval row is written with `approver_type='timeout_auto_rejected'`. **APPROVAL_RECORD rows are NOT in the hash chain** — they're a separate entity queried independently. The poll loop opens its own `AsyncSession` per cycle (`session_factory=AsyncSessionLocal`), never the caller's.
51
+
52
+ **Storage.** PostgreSQL 16 + TimescaleDB 2.x. The `actions` table is a **hypertable partitioned by `timestamp`**, which has hard consequences for any code joining against it (see below).
53
+
54
+ **Migrations.** Live in `rootsign/_migrations/` so they ship inside the wheel. `rootsign-admin init` resolves the directory via `importlib.resources.files("rootsign") / "_migrations"` and builds `alembic.config.Config` programmatically — no `alembic.ini` lookup, no cwd assumption. Developers running `alembic` directly from repo root work via the root-level `alembic.ini` whose `script_location` points at the same directory.
55
+
56
+ ## Test invariants (binding rules)
57
+
58
+ These were locked in the Sprint 3/4 plans because each one traces to a specific incident. Audit any new SDK or test code against them.
59
+
60
+ 1. **`_emit_action_record` and `_emit_approval_record` are keyword-only.** No positional args.
61
+ 2. **AsyncSession loop binding:**
62
+ - Tool calls in async tests use `await tool.ainvoke({...})` — never `tool._run(...)` or sync `tool.invoke(...)`.
63
+ - CLI tests in async use `await asyncio.to_thread(runner.invoke, app, [...])` — never bare `runner.invoke(...)`. Typer's runner does `asyncio.run()` internally and crashes inside an already-running loop.
64
+ 3. **`seeded_agent` (commits) for HiTL / CLI / `asyncio.to_thread` tests.** `registered_agent` uses SAVEPOINT rollback — its data is invisible to the poll loop's per-cycle session, the `to_thread` CLI runner, and the timeout recorder.
65
+ 4. **HiTL design is locked (ADR-007).** Don't re-derive it in code.
66
+ 5. **Hypertable-safe Action lookups.** Single-column `action_id` lookups are forbidden. Two valid two-column forms:
67
+ - `(action_id, action_timestamp)` — canonical chain-link form (`CRUDApproval.create_with_chain_link`, HiTL CLI / poll-loop paths). Prunes chunks on the partition column.
68
+ - `(session_id, action_id)` — `CRUDApproval.create_with_action_status_update` (ingest path). `ApprovalRecordPayload` doesn't carry `action_timestamp`; switching would require an envelope-schema bump.
69
+ 6. **`tests/integration/test_show_hn_quickstart.py` is the launch gate.** It runs the quickstart (README and `docs/site/quickstart.mdx`) end-to-end on the default JSONL backend (instrument → verify → export, then tamper), and the same flow on PostgreSQL verified by session ID. It must stay green.
70
+
71
+ ## Two approval-record write paths
72
+
73
+ - **`_emit_approval_record`** in `rootsign/sdk/decorator.py` has one call site: the JSONL backend's inline approval prompt (`_emit_hitl_action_sync`), which writes the APPROVAL_RECORD through the IngestClient with `required=True`, so a held tool never runs if the record is not stored (#77). The PostgreSQL HiTL path (`rootsign approve`, the poll loop) writes APPROVAL_RECORD rows directly via `CRUDApproval.create_with_chain_link` (single source of truth there); re-emitting via the IngestClient would hit the terminal-state guard and warn for no semantic gain. The helper is also the hook Phase 2's `HttpIngestClient` will use; don't delete it or its tests.
74
+
75
+ ## Authoritative context
76
+
77
+ When changing anything in the SDK, HiTL, or hashing paths:
78
+
79
+ - `docs/adr/ADR-001` — canonical hash spec (frozen)
80
+ - `docs/adr/ADR-002` — ingest failure isolation
81
+ - `docs/adr/ADR-006` — redaction contract
82
+ - `docs/adr/ADR-007` — HiTL checkpoint design
83
+ - `AGENTS_Phase1_Sprint4.md` — sprint plan with naming contract, six binding flags, ADR-007 summary, the launch review checklist. **Gitignored**, so absent from fresh clones; it's a working doc for whoever's driving the sprint.
84
+ - `rootsign_review.md` — pre-launch audit findings. Also gitignored. High-severity items were fixed in commit 128cec5; the remainder is the Pre-Phase-2 backlog (concurrency on approvals, payload→hash binding at verify, HiTL classification edge cases, CLI polish).
85
+
86
+ ## Conventions
87
+
88
+ - **Commits:** `type(scope): short description` (see CONTRIBUTING). Recent history matches: `fix(packaging):`, `fix(security):`, `feat(sdk):`, `docs:`. Body explains *why*, references file:line, and includes a `Co-Authored-By` trailer when relevant.
89
+ - **Branches:** `feat/`, `fix/`, `test/`, `docs/` prefixes.
90
+ - **Hard "no":** mock-based integration tests (real PG+TimescaleDB only), sync SQLAlchemy outside Alembic, changing `compute_action_self_hash` without a new ADR, silently swallowing ingest failures (must log at WARNING), committing/pushing project or sprint artifacts (see top section).
@@ -7,7 +7,7 @@ RootSign is the open-source agent capture layer of the Providex AI Agent Account
7
7
  ## Before you contribute
8
8
 
9
9
  - **Code of Conduct.** RootSign adopts the [Contributor Covenant v2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/) as its code of conduct. By participating in this project (issues, PRs, discussions, Discord), you agree to uphold its standards. Report unacceptable behavior to `info@getprovidex.com`.
10
- - Sign the [CLA](CLA.md) (automated — you'll be prompted on your first PR)
10
+ - Sign the [CLA](CLA.md) (automated: you'll be prompted on your first PR)
11
11
  - Check the issue tracker for existing discussion before opening a new issue
12
12
 
13
13
  ## Development setup
@@ -27,15 +27,15 @@ python -m pytest -m benchmark -v # performance budgets (opt-in — see n
27
27
  >
28
28
  > The package's `requires-python` is `>=3.11,<3.15`, but the `[crewai]` extra currently lacks wheels for 3.13/3.14 so installs of `'.[crewai]'` on those versions fail with `No matching distribution found`. Bump the recommendation only after upstream ships matching wheels.
29
29
  >
30
- > **Always invoke pytest as `python -m pytest`.** If you `brew install`-ed pytest, the system binary will resolve ahead of the venv's pytest on PATH and run under the system Python — which does not see your venv's site-packages and will fail with confusing `ModuleNotFoundError` (typically on `sqlalchemy` first). `python -m pytest` always uses the venv's interpreter.
30
+ > **Always invoke pytest as `python -m pytest`.** If you `brew install`-ed pytest, the system binary will resolve ahead of the venv's pytest on PATH and run under the system Python, which does not see your venv's site-packages and will fail with confusing `ModuleNotFoundError` (typically on `sqlalchemy` first). `python -m pytest` always uses the venv's interpreter.
31
31
  >
32
32
  > **Note on unit tests:** The session-scoped `_bootstrap_test_db` fixture in `tests/conftest.py` runs alembic against the test DB before any test (including unit tests). Bring `docker-compose up -d db` up first.
33
33
  >
34
- > **Performance benchmarks are opt-in.** Everything under `tests/performance/` is marked `benchmark` and is **skipped** by a default `python -m pytest` run; pass `-m benchmark` to execute it. These tests assert wall-clock budgets, so they are the most hardware-sensitive part of the suite — `test_1000_actions_under_2_seconds` has only ~1.36x headroom on a developer laptop. They are deliberately kept out of every CI gating job: a timing budget that reddens `main` for reasons unrelated to the diff teaches people to ignore red. Run them locally (or on purpose in CI) when touching the ingest, hashing, or verify paths.
34
+ > **Performance benchmarks are opt-in.** Everything under `tests/performance/` is marked `benchmark` and is **skipped** by a default `python -m pytest` run; pass `-m benchmark` to execute it. These tests assert wall-clock budgets, so they are the most hardware-sensitive part of the suite: `test_1000_actions_under_2_seconds` has only ~1.36x headroom on a developer laptop. They are deliberately kept out of every CI gating job: a timing budget that reddens `main` for reasons unrelated to the diff teaches people to ignore red. Run them locally (or on purpose in CI) when touching the ingest, hashing, or verify paths.
35
35
  >
36
- > **The thresholds are ACs and do not move.** To keep them honest without making them flaky, each budget is sampled several times and asserted on the **median** (`tests/performance/_bench.py`). A single stalled run barely shifts a median, while a real regression shifts every sample — so the AC stays exactly as specified and the measurement stops reacting to background load, cold caches, or a noisy neighbour. Failures print every sample, not just the median, so you can see the spread. `test_p99_overhead_under_5ms` is the exception: it already asserts on the p99 of 1,000 calls, so it is a distribution by construction.
36
+ > **The thresholds are ACs and do not move.** To keep them honest without making them flaky, each budget is sampled several times and asserted on the **median** (`tests/performance/_bench.py`). A single stalled run barely shifts a median, while a real regression shifts every sample, so the AC stays exactly as specified and the measurement stops reacting to background load, cold caches, or a noisy neighbour. Failures print every sample, not just the median, so you can see the spread. `test_p99_overhead_under_5ms` is the exception: it already asserts on the p99 of 1,000 calls, so it is a distribution by construction.
37
37
  >
38
- > These numbers are still **hardware- and environment-dependent** — they measure your disk, your Postgres tuning, and whatever else the machine is doing. Treat a failure as a prompt to investigate on an idle machine, not as proof of a regression. For scale: a trial run of `test_1000_actions_under_2_seconds` produced samples of 1.6s / 2.4s / 1.4s on an idle laptop; the 2.4s sample alone exceeds the 2.0s budget, which is exactly why the median exists.
38
+ > These numbers are still **hardware- and environment-dependent**: they measure your disk, your Postgres tuning, and whatever else the machine is doing. Treat a failure as a prompt to investigate on an idle machine, not as proof of a regression. For scale: a trial run of `test_1000_actions_under_2_seconds` produced samples of 1.6s / 2.4s / 1.4s on an idle laptop; the 2.4s sample alone exceeds the 2.0s budget, which is exactly why the median exists.
39
39
 
40
40
  ## Branch naming
41
41
 
@@ -62,7 +62,7 @@ docs(adr): add ADR-004 for retry strategy
62
62
 
63
63
  ## Pull request requirements
64
64
 
65
- - All existing tests must pass: `pytest tests/ -v`
65
+ - All existing tests must pass: `python -m pytest`
66
66
  - New code must have test coverage >= 90%
67
67
  - Overall coverage must not drop below 85% (enforced by `fail_under = 85` in `pyproject.toml`)
68
68
  - No breaking changes to the canonical hash spec without a new ADR (see [ADR-001](docs/adr/ADR-001-hash-canonical-spec.md))
@@ -76,13 +76,13 @@ depends on. A failure against one is a decision, not a bug:
76
76
 
77
77
  | Fixture | Freezes | If it fails |
78
78
  | --- | --- | --- |
79
- | `hash_vectors.json` | the canonical Action hash (ADR-001) | stop — a new ADR is required, see below |
79
+ | `hash_vectors.json` | the canonical Action hash (ADR-001) | stop: a new ADR is required, see below |
80
80
  | `redaction_vectors.json` | the PII rule-set mappings (ADR-006) | confirm the mapping change is intended |
81
81
  | `evidence_bundle_v1.json` | the `rootsign export` bundle schema (ADR-014) | see below |
82
82
 
83
83
  The bundle schema is read by Phase 2 tooling and by anything a partner builds
84
84
  on an exported bundle. **Additive** changes (a new optional field, content in
85
- the reserved `compliance` block) are fine — regenerate and commit the diff:
85
+ the reserved `compliance` block) are fine. Regenerate and commit the diff:
86
86
 
87
87
  ```bash
88
88
  ROOTSIGN_UPDATE_GOLDEN=1 python -m pytest tests/unit/test_export_golden.py
@@ -97,18 +97,18 @@ without first deciding which of the two you are doing.
97
97
 
98
98
  - Changes to `compute_action_self_hash` canonical spec (see [ADR-001](docs/adr/ADR-001-hash-canonical-spec.md)) without a new ADR approved by the maintainer
99
99
  - Synchronous SQLAlchemy in any non-Alembic code
100
- - Mock-based integration tests (real PostgreSQL + TimescaleDB only — see [the data model rationale](AGENTS.md))
100
+ - Mock-based integration tests (real PostgreSQL + TimescaleDB only)
101
101
  - Any PR that reduces test coverage below 85% overall
102
102
  - A regenerated `evidence_bundle_v1.json` that renames or removes a field without a matching `EVIDENCE_BUNDLE_VERSION` bump (see [ADR-014](docs/adr/ADR-014-export-evidence-bundle.md))
103
- - Code that swallows ingest failures silently (RootSign's promise is that ingest never raises into the agent, but failures *must* be logged at WARNING level — see [ADR-002](docs/adr/ADR-002-transport-agnostic-client.md))
103
+ - Code that swallows ingest failures silently (RootSign's promise is that ingest never raises into the agent, but failures *must* be logged at WARNING level; see [ADR-002](docs/adr/ADR-002-transport-agnostic-client.md))
104
104
 
105
105
  ## Adding a new framework integration
106
106
 
107
107
  1. Open a `framework_integration` issue first so we can discuss API surface and version targets
108
- 2. Copy the LangGraph integration as a reference (lands in Sprint 2)
109
- 3. Implement contract tests against a minimum of two framework versions (latest stable + previous minor) — see [ADR-003](docs/adr/ADR-003-framework-contract-tests.md)
110
- 4. Update `docs/framework-support.md` (created in Sprint 2)
108
+ 2. Use the LangGraph integration (`rootsign/sdk/frameworks/langgraph.py`) as a reference
109
+ 3. Implement contract tests against a minimum of two framework versions (latest stable + previous minor); see [ADR-003](docs/adr/ADR-003-framework-contract-tests.md)
110
+ 4. Add the framework to the support table on the docs site (`docs/site/resources/framework-support.mdx`)
111
111
 
112
112
  ## Questions?
113
113
 
114
- Open a [GitHub Discussion](https://github.com/Providex-AI/rootsign/discussions). A `#rootsign` channel on the LangChain Discord is coming alongside Sprint 2.
114
+ Open a [GitHub Discussion](https://github.com/Providex-AI/rootsign/discussions), or ask on [Discord](https://discord.gg/tuABzbPdkE).
rootsign-0.4.0/NOTICE ADDED
@@ -0,0 +1,6 @@
1
+ RootSign
2
+ Copyright 2026 Providex AI Inc.
3
+
4
+ RootSign is a Providex AI product: tamper-evident provenance logging
5
+ for AI agents, and the agent capture layer of the Providex AI Agent
6
+ Accountability Platform.
@@ -0,0 +1,163 @@
1
+ Metadata-Version: 2.5
2
+ Name: rootsign
3
+ Version: 0.4.0
4
+ Summary: RootSign — tamper-evident provenance logging for AI agents (powered by Providex AI)
5
+ Author: Providex AI Inc.
6
+ License: Apache-2.0
7
+ License-File: LICENSE
8
+ License-File: NOTICE
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Topic :: Software Development :: Libraries
16
+ Requires-Python: <3.15,>=3.11
17
+ Requires-Dist: pydantic-settings<3.0,>=2.2
18
+ Requires-Dist: pydantic<3.0,>=2.7
19
+ Requires-Dist: python-dotenv<2.0,>=1.0
20
+ Requires-Dist: typer<1.0,>=0.12
21
+ Provides-Extra: cloud
22
+ Requires-Dist: httpx<1.0,>=0.27; extra == 'cloud'
23
+ Provides-Extra: crewai
24
+ Requires-Dist: crewai>=0.95; extra == 'crewai'
25
+ Provides-Extra: dev
26
+ Requires-Dist: alembic<2.0,>=1.13; extra == 'dev'
27
+ Requires-Dist: anyio[trio]<5.0,>=4.0; extra == 'dev'
28
+ Requires-Dist: asyncpg<1.0,>=0.29; extra == 'dev'
29
+ Requires-Dist: greenlet<4.0,>=3.0; extra == 'dev'
30
+ Requires-Dist: httpx<1.0,>=0.27; extra == 'dev'
31
+ Requires-Dist: psycopg2-binary<3.0,>=2.9; extra == 'dev'
32
+ Requires-Dist: pytest-asyncio<2.0,>=1.0; extra == 'dev'
33
+ Requires-Dist: pytest-cov<7.0,>=5.0; extra == 'dev'
34
+ Requires-Dist: pytest<10.0,>=9.0.3; extra == 'dev'
35
+ Requires-Dist: ruff<1.0,>=0.5; extra == 'dev'
36
+ Requires-Dist: sqlalchemy<3.0,>=2.0; extra == 'dev'
37
+ Provides-Extra: langgraph
38
+ Requires-Dist: langgraph>=0.2; extra == 'langgraph'
39
+ Provides-Extra: mcp
40
+ Requires-Dist: fastapi>=0.111; extra == 'mcp'
41
+ Requires-Dist: httpx>=0.27; extra == 'mcp'
42
+ Requires-Dist: mcp<2.0,>=1.22; extra == 'mcp'
43
+ Requires-Dist: uvicorn[standard]>=0.30; extra == 'mcp'
44
+ Provides-Extra: postgres
45
+ Requires-Dist: alembic<2.0,>=1.13; extra == 'postgres'
46
+ Requires-Dist: asyncpg<1.0,>=0.29; extra == 'postgres'
47
+ Requires-Dist: greenlet<4.0,>=3.0; extra == 'postgres'
48
+ Requires-Dist: psycopg2-binary<3.0,>=2.9; extra == 'postgres'
49
+ Requires-Dist: sqlalchemy<3.0,>=2.0; extra == 'postgres'
50
+ Provides-Extra: test
51
+ Requires-Dist: alembic<2.0,>=1.13; extra == 'test'
52
+ Requires-Dist: anyio[trio]<5.0,>=4.0; extra == 'test'
53
+ Requires-Dist: asyncpg<1.0,>=0.29; extra == 'test'
54
+ Requires-Dist: greenlet<4.0,>=3.0; extra == 'test'
55
+ Requires-Dist: httpx<1.0,>=0.27; extra == 'test'
56
+ Requires-Dist: psycopg2-binary<3.0,>=2.9; extra == 'test'
57
+ Requires-Dist: pytest-asyncio<2.0,>=1.0; extra == 'test'
58
+ Requires-Dist: pytest-cov<7.0,>=5.0; extra == 'test'
59
+ Requires-Dist: pytest<10.0,>=9.0.3; extra == 'test'
60
+ Requires-Dist: sqlalchemy<3.0,>=2.0; extra == 'test'
61
+ Description-Content-Type: text/markdown
62
+
63
+ # RootSign
64
+
65
+ **Tamper-evident provenance logging for production AI agents.**
66
+
67
+ [![PyPI](https://img.shields.io/pypi/v/rootsign?cacheSeconds=300)](https://pypi.org/project/rootsign/)
68
+ [![Downloads](https://img.shields.io/pypi/dm/rootsign)](https://pypi.org/project/rootsign/)
69
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
70
+ [![CI](https://github.com/Providex-AI/rootsign/actions/workflows/ci.yml/badge.svg)](https://github.com/Providex-AI/rootsign/actions/workflows/ci.yml)
71
+ [![Stars](https://img.shields.io/github/stars/Providex-AI/rootsign?style=flat&logo=github)](https://github.com/Providex-AI/rootsign/stargazers)
72
+ [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
73
+ [![Docs](https://img.shields.io/badge/docs-docs.getprovidex.com-blue)](https://docs.getprovidex.com)
74
+ [![X](https://img.shields.io/badge/X-@getprovidex-black?logo=x)](https://x.com/getprovidex)
75
+ [![LinkedIn](https://img.shields.io/badge/LinkedIn-Providex-0A66C2?logo=linkedin)](https://www.linkedin.com/company/providex)
76
+
77
+ <p align="center">
78
+ <img src="https://raw.githubusercontent.com/Providex-AI/rootsign/main/docs/demo.gif" alt="RootSign demo: pip install rootsign, two traced tool calls, rootsign verify --local reports VALID, then TAMPERED for an edited record and INCOMPLETE for a deleted one" width="780" />
79
+ </p>
80
+
81
+ RootSign is an open-source Python SDK that records each tool call your AI agent makes as a hash-chained record. When something goes wrong, such as a wrong refund or a leaked record, you can show what the agent did, in what order and on whose approval, and `rootsign verify` tells you whether anyone changed the record afterwards.
82
+
83
+ Each record carries the SHA-256 hash of the one before it, so editing a hashed field breaks the chain at that record. You add three calls around your existing code; your agent logic does not change.
84
+
85
+ > RootSign is a Providex AI product: the agent capture layer of the Providex AI Agent Accountability Platform.
86
+
87
+ **Documentation: [docs.getprovidex.com](https://docs.getprovidex.com)**
88
+
89
+ ## Quickstart
90
+
91
+ A verified hash chain in under a minute, with no database, no Docker and no API key. You need Python 3.11 or 3.12.
92
+
93
+ ```bash
94
+ pip install rootsign
95
+ ```
96
+
97
+ Save this as `agent.py`. The three numbered lines are the only RootSign code:
98
+
99
+ ```python
100
+ import asyncio, rootsign
101
+
102
+ rootsign.init(agent="invoice-agent", risk_tier="high") # 1. once, at startup
103
+
104
+ @rootsign.trace() # 2. per tool
105
+ async def send_invoice(customer_id: str, amount: float) -> str:
106
+ return "sent"
107
+
108
+ @rootsign.trace()
109
+ async def log_payment(customer_id: str, amount: float) -> str:
110
+ return "logged"
111
+
112
+ async def main():
113
+ async with rootsign.session(objective="invoice ACME") as ctx: # 3. per run
114
+ await send_invoice("acme-corp", 1500.00)
115
+ await log_payment("acme-corp", 1500.00)
116
+ print(ctx.session_id)
117
+
118
+ asyncio.run(main())
119
+ ```
120
+
121
+ Run it. It prints the session ID; use yours in place of the one below:
122
+
123
+ ```bash
124
+ python agent.py
125
+ rootsign verify --local ~/.rootsign/sessions/88f15492-3be7-4f7e-af16-3f247b1134a9.jsonl
126
+ ```
127
+
128
+ ```text
129
+ VALID ✓ — 2 records, chain intact
130
+ Session: 88f15492-3be7-4f7e-af16-3f247b1134a9
131
+ ```
132
+
133
+ Edit a record and `verify` reports `TAMPERED` with exit code `1`; delete one from the middle and it reports `INCOMPLETE` with exit code `2`. The [quickstart](https://docs.getprovidex.com/quickstart) walks through both and turns the session into an [evidence bundle](https://docs.getprovidex.com/guides/evidence-bundles) for a reviewer. [How it works](https://docs.getprovidex.com/how-it-works#what-verify-does-not-check) lists what `verify` cannot detect.
134
+
135
+ ## Documentation
136
+
137
+ | Section | Pages |
138
+ | --- | --- |
139
+ | Get started | [Introduction](https://docs.getprovidex.com) · [Quickstart](https://docs.getprovidex.com/quickstart) · [How it works](https://docs.getprovidex.com/how-it-works) |
140
+ | Integrations | [LangGraph and LangChain](https://docs.getprovidex.com/integrations/langgraph) · [CrewAI](https://docs.getprovidex.com/integrations/crewai) · [MCP](https://docs.getprovidex.com/integrations/mcp) · [Any Python function](https://docs.getprovidex.com/integrations/python) |
141
+ | Guides | [Verify a session](https://docs.getprovidex.com/guides/verify) · [Export an evidence bundle](https://docs.getprovidex.com/guides/evidence-bundles) · [Require human approval](https://docs.getprovidex.com/guides/human-approval) · [Redact PII](https://docs.getprovidex.com/guides/redaction) · [Capture decisions](https://docs.getprovidex.com/guides/decision-capture) · [Run on PostgreSQL](https://docs.getprovidex.com/guides/postgres) · [Without init()](https://docs.getprovidex.com/guides/without-init) · [Batch writes](https://docs.getprovidex.com/guides/batching) · [Cloud and sync (preview)](https://docs.getprovidex.com/guides/cloud-and-sync) |
142
+ | Reference | [Python API](https://docs.getprovidex.com/reference/python-api) · [Configuration](https://docs.getprovidex.com/reference/configuration) · [Errors](https://docs.getprovidex.com/reference/errors) · [`rootsign` CLI](https://docs.getprovidex.com/reference/cli-rootsign) · [`rootsign-admin` CLI](https://docs.getprovidex.com/reference/cli-rootsign-admin) · [Evidence bundle format](https://docs.getprovidex.com/reference/evidence-bundle) · [Ingest spec v1](https://docs.getprovidex.com/reference/ingest-spec-v1) |
143
+ | Project | [Framework support](https://docs.getprovidex.com/resources/framework-support) · [Changelog](https://docs.getprovidex.com/resources/changelog) · [Roadmap](https://docs.getprovidex.com/resources/roadmap) · [Design decisions](https://docs.getprovidex.com/resources/design-decisions) · [Security and contributing](https://docs.getprovidex.com/resources/security) |
144
+
145
+ Runnable apps for each integration are in [`examples/`](https://github.com/Providex-AI/rootsign/tree/main/examples).
146
+
147
+ ## Status
148
+
149
+ RootSign is at **v0.4.0** and classified as **alpha**. The five calls `init`, `session`, `wrap_tools`, `trace` and `verify` are the stable public surface. Cloud mode is a preview: the SDK's HTTP transport and offline spool ship today, but the hosted ingest service is not live yet. See the [roadmap](https://docs.getprovidex.com/resources/roadmap) for what comes next and the [changelog](https://docs.getprovidex.com/resources/changelog) for what changed.
150
+
151
+ ## Contributing
152
+
153
+ We welcome contributions. See [CONTRIBUTING.md](https://github.com/Providex-AI/rootsign/blob/main/CONTRIBUTING.md) for development setup, coding standards and the PR process. By submitting a contribution, you agree to the [CLA](https://github.com/Providex-AI/rootsign/blob/main/CLA.md).
154
+
155
+ Questions, ideas and feedback from using RootSign go in [GitHub Discussions](https://github.com/Providex-AI/rootsign/discussions). For reproducible bugs and concrete feature requests, open a [GitHub issue](https://github.com/Providex-AI/rootsign/issues).
156
+
157
+ ## License
158
+
159
+ Apache License 2.0. See [LICENSE](https://github.com/Providex-AI/rootsign/blob/main/LICENSE) and [NOTICE](https://github.com/Providex-AI/rootsign/blob/main/NOTICE).
160
+
161
+ ## Security
162
+
163
+ To report a vulnerability, see [SECURITY.md](https://github.com/Providex-AI/rootsign/blob/main/SECURITY.md). Do **not** open a public GitHub issue.