constare 0.1.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 (237) hide show
  1. constare-0.1.0/.editorconfig +14 -0
  2. constare-0.1.0/.github/CODEOWNERS +2 -0
  3. constare-0.1.0/.github/ISSUE_TEMPLATE/bug.yml +58 -0
  4. constare-0.1.0/.github/ISSUE_TEMPLATE/change.yml +25 -0
  5. constare-0.1.0/.github/ISSUE_TEMPLATE/config.yml +1 -0
  6. constare-0.1.0/.github/ISSUE_TEMPLATE/discuss.yml +21 -0
  7. constare-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +33 -0
  8. constare-0.1.0/.github/dependabot.yml +8 -0
  9. constare-0.1.0/.github/workflows/ci.yml +56 -0
  10. constare-0.1.0/.github/workflows/issue-check.yml +51 -0
  11. constare-0.1.0/.github/workflows/pr-check.yml +64 -0
  12. constare-0.1.0/.github/workflows/publish.yml +63 -0
  13. constare-0.1.0/.gitignore +12 -0
  14. constare-0.1.0/CHANGELOG.md +7 -0
  15. constare-0.1.0/CODE_OF_CONDUCT.md +132 -0
  16. constare-0.1.0/CONTRIBUTING.md +70 -0
  17. constare-0.1.0/LICENSE +21 -0
  18. constare-0.1.0/PKG-INFO +429 -0
  19. constare-0.1.0/README.md +413 -0
  20. constare-0.1.0/SECURITY.md +13 -0
  21. constare-0.1.0/constare/__init__.py +32 -0
  22. constare-0.1.0/constare/__main__.py +5 -0
  23. constare-0.1.0/constare/agents/__init__.py +157 -0
  24. constare-0.1.0/constare/agents/antigravity/__init__.py +25 -0
  25. constare-0.1.0/constare/agents/antigravity/selfcheck/core.toml +77 -0
  26. constare-0.1.0/constare/agents/claude_code/__init__.py +456 -0
  27. constare-0.1.0/constare/agents/claude_code/_config.py +536 -0
  28. constare-0.1.0/constare/agents/claude_code/_process.py +454 -0
  29. constare-0.1.0/constare/agents/claude_code/_signals.py +499 -0
  30. constare-0.1.0/constare/agents/claude_code/gate.sh +28 -0
  31. constare-0.1.0/constare/agents/claude_code/selfcheck/accept-edits.toml +80 -0
  32. constare-0.1.0/constare/agents/claude_code/selfcheck/bypass.toml +79 -0
  33. constare-0.1.0/constare/agents/claude_code/selfcheck/core.toml +97 -0
  34. constare-0.1.0/constare/agents/claude_code/selfcheck/effects.toml +24 -0
  35. constare-0.1.0/constare/agents/claude_code/selfcheck/fetch.toml +33 -0
  36. constare-0.1.0/constare/agents/claude_code/selfcheck/hooks-json.toml +63 -0
  37. constare-0.1.0/constare/agents/claude_code/selfcheck/layers.toml +90 -0
  38. constare-0.1.0/constare/agents/claude_code/selfcheck/mcp.toml +31 -0
  39. constare-0.1.0/constare/agents/claude_code/selfcheck/plan.toml +53 -0
  40. constare-0.1.0/constare/agents/claude_code/selfcheck/sandbox.toml +41 -0
  41. constare-0.1.0/constare/agents/codex/__init__.py +28 -0
  42. constare-0.1.0/constare/agents/codex/selfcheck/core.toml +77 -0
  43. constare-0.1.0/constare/agents/grok/__init__.py +27 -0
  44. constare-0.1.0/constare/agents/grok/selfcheck/core.toml +77 -0
  45. constare-0.1.0/constare/casefile.py +557 -0
  46. constare-0.1.0/constare/cli.py +145 -0
  47. constare-0.1.0/constare/containment.py +351 -0
  48. constare-0.1.0/constare/judge.py +76 -0
  49. constare-0.1.0/constare/model.py +442 -0
  50. constare-0.1.0/constare/policy.py +659 -0
  51. constare-0.1.0/constare/process.py +56 -0
  52. constare-0.1.0/constare/replay.py +660 -0
  53. constare-0.1.0/constare/report.py +334 -0
  54. constare-0.1.0/constare/standins/__init__.py +5 -0
  55. constare-0.1.0/constare/standins/mcp_server.py +97 -0
  56. constare-0.1.0/constare/standins/network.py +77 -0
  57. constare-0.1.0/constare/version.py +3 -0
  58. constare-0.1.0/constare/workspace.py +217 -0
  59. constare-0.1.0/examples/acme-api/.claude/hooks/no-force-push.sh +5 -0
  60. constare-0.1.0/examples/acme-api/.claude/settings.json +15 -0
  61. constare-0.1.0/examples/acme-api/constare/files.toml +44 -0
  62. constare-0.1.0/examples/acme-api/constare/git.toml +24 -0
  63. constare-0.1.0/pyproject.toml +50 -0
  64. constare-0.1.0/tests/__init__.py +0 -0
  65. constare-0.1.0/tests/conftest.py +36 -0
  66. constare-0.1.0/tests/recordings/core/allow-by-rule/replay.json +36 -0
  67. constare-0.1.0/tests/recordings/core/allow-by-rule/stderr.txt +0 -0
  68. constare-0.1.0/tests/recordings/core/allow-by-rule/stdout.jsonl +5 -0
  69. constare-0.1.0/tests/recordings/core/allow-quotes-in-the-command-reach-the-gate-intact/replay.json +36 -0
  70. constare-0.1.0/tests/recordings/core/allow-quotes-in-the-command-reach-the-gate-intact/stderr.txt +0 -0
  71. constare-0.1.0/tests/recordings/core/allow-quotes-in-the-command-reach-the-gate-intact/stdout.jsonl +5 -0
  72. constare-0.1.0/tests/recordings/core/ask-by-mode-when-no-rule-matches/replay.json +31 -0
  73. constare-0.1.0/tests/recordings/core/ask-by-mode-when-no-rule-matches/stderr.txt +0 -0
  74. constare-0.1.0/tests/recordings/core/ask-by-mode-when-no-rule-matches/stdout.jsonl +6 -0
  75. constare-0.1.0/tests/recordings/core/ask-by-rule-beats-a-broader-allow/replay.json +31 -0
  76. constare-0.1.0/tests/recordings/core/ask-by-rule-beats-a-broader-allow/stderr.txt +0 -0
  77. constare-0.1.0/tests/recordings/core/ask-by-rule-beats-a-broader-allow/stdout.jsonl +6 -0
  78. constare-0.1.0/tests/recordings/core/deny-by-hook-with-the-gate-in-front-of-the-shell/replay.json +31 -0
  79. constare-0.1.0/tests/recordings/core/deny-by-hook-with-the-gate-in-front-of-the-shell/stderr.txt +0 -0
  80. constare-0.1.0/tests/recordings/core/deny-by-hook-with-the-gate-in-front-of-the-shell/stdout.jsonl +5 -0
  81. constare-0.1.0/tests/recordings/core/deny-by-rule/replay.json +31 -0
  82. constare-0.1.0/tests/recordings/core/deny-by-rule/stderr.txt +0 -0
  83. constare-0.1.0/tests/recordings/core/deny-by-rule/stdout.jsonl +6 -0
  84. constare-0.1.0/tests/recordings/core/deny-by-rule-for-a-chained-command/replay.json +31 -0
  85. constare-0.1.0/tests/recordings/core/deny-by-rule-for-a-chained-command/stderr.txt +0 -0
  86. constare-0.1.0/tests/recordings/core/deny-by-rule-for-a-chained-command/stdout.jsonl +6 -0
  87. constare-0.1.0/tests/recordings/core/edit-asks-by-mode/replay.json +26 -0
  88. constare-0.1.0/tests/recordings/core/edit-asks-by-mode/stderr.txt +0 -0
  89. constare-0.1.0/tests/recordings/core/edit-asks-by-mode/stdout.jsonl +6 -0
  90. constare-0.1.0/tests/recordings/core/read-allowed-by-mode/replay.json +24 -0
  91. constare-0.1.0/tests/recordings/core/read-allowed-by-mode/stderr.txt +0 -0
  92. constare-0.1.0/tests/recordings/core/read-allowed-by-mode/stdout.jsonl +5 -0
  93. constare-0.1.0/tests/recordings/core/read-denied-by-rule/replay.json +24 -0
  94. constare-0.1.0/tests/recordings/core/read-denied-by-rule/stderr.txt +0 -0
  95. constare-0.1.0/tests/recordings/core/read-denied-by-rule/stdout.jsonl +5 -0
  96. constare-0.1.0/tests/recordings/core/write-asks-by-mode/replay.json +25 -0
  97. constare-0.1.0/tests/recordings/core/write-asks-by-mode/stderr.txt +0 -0
  98. constare-0.1.0/tests/recordings/core/write-asks-by-mode/stdout.jsonl +6 -0
  99. constare-0.1.0/tests/recordings/fetch/fetch-allow-by-rule-is-caught-by-the-network-stand-in/replay.json +31 -0
  100. constare-0.1.0/tests/recordings/fetch/fetch-allow-by-rule-is-caught-by-the-network-stand-in/stderr.txt +0 -0
  101. constare-0.1.0/tests/recordings/fetch/fetch-allow-by-rule-is-caught-by-the-network-stand-in/stdout.jsonl +5 -0
  102. constare-0.1.0/tests/recordings/fetch/fetch-ask-by-mode-for-an-unlisted-domain/replay.json +29 -0
  103. constare-0.1.0/tests/recordings/fetch/fetch-ask-by-mode-for-an-unlisted-domain/stderr.txt +0 -0
  104. constare-0.1.0/tests/recordings/fetch/fetch-ask-by-mode-for-an-unlisted-domain/stdout.jsonl +6 -0
  105. constare-0.1.0/tests/recordings/fetch/fetch-deny-by-rule/replay.json +29 -0
  106. constare-0.1.0/tests/recordings/fetch/fetch-deny-by-rule/stderr.txt +0 -0
  107. constare-0.1.0/tests/recordings/fetch/fetch-deny-by-rule/stdout.jsonl +6 -0
  108. constare-0.1.0/tests/recordings/hooks-json/a-deny-rule-beats-a-hook-that-allows/replay.json +31 -0
  109. constare-0.1.0/tests/recordings/hooks-json/a-deny-rule-beats-a-hook-that-allows/stderr.txt +0 -0
  110. constare-0.1.0/tests/recordings/hooks-json/a-deny-rule-beats-a-hook-that-allows/stdout.jsonl +5 -0
  111. constare-0.1.0/tests/recordings/hooks-json/a-hook-allows-a-command-no-rule-covers/replay.json +36 -0
  112. constare-0.1.0/tests/recordings/hooks-json/a-hook-allows-a-command-no-rule-covers/stderr.txt +0 -0
  113. constare-0.1.0/tests/recordings/hooks-json/a-hook-allows-a-command-no-rule-covers/stdout.jsonl +5 -0
  114. constare-0.1.0/tests/recordings/hooks-json/a-hook-allows-a-write-no-rule-covers/replay.json +31 -0
  115. constare-0.1.0/tests/recordings/hooks-json/a-hook-allows-a-write-no-rule-covers/stderr.txt +0 -0
  116. constare-0.1.0/tests/recordings/hooks-json/a-hook-allows-a-write-no-rule-covers/stdout.jsonl +5 -0
  117. constare-0.1.0/tests/recordings/hooks-json/a-hook-denies-a-command-an-allow-rule-covers/replay.json +31 -0
  118. constare-0.1.0/tests/recordings/hooks-json/a-hook-denies-a-command-an-allow-rule-covers/stderr.txt +0 -0
  119. constare-0.1.0/tests/recordings/hooks-json/a-hook-denies-a-command-an-allow-rule-covers/stdout.jsonl +5 -0
  120. constare-0.1.0/tests/recordings/hooks-json/a-hook-turns-an-allowed-command-into-an-ask/replay.json +31 -0
  121. constare-0.1.0/tests/recordings/hooks-json/a-hook-turns-an-allowed-command-into-an-ask/stderr.txt +0 -0
  122. constare-0.1.0/tests/recordings/hooks-json/a-hook-turns-an-allowed-command-into-an-ask/stdout.jsonl +6 -0
  123. constare-0.1.0/tests/recordings/hooks-json/a-silent-hook-leaves-the-mode-s-default/replay.json +31 -0
  124. constare-0.1.0/tests/recordings/hooks-json/a-silent-hook-leaves-the-mode-s-default/stderr.txt +0 -0
  125. constare-0.1.0/tests/recordings/hooks-json/a-silent-hook-leaves-the-mode-s-default/stdout.jsonl +6 -0
  126. constare-0.1.0/tests/recordings/layers/allow-by-a-local-rule/replay.json +31 -0
  127. constare-0.1.0/tests/recordings/layers/allow-by-a-local-rule/stderr.txt +0 -0
  128. constare-0.1.0/tests/recordings/layers/allow-by-a-local-rule/stdout.jsonl +5 -0
  129. constare-0.1.0/tests/recordings/layers/allow-by-a-user-rule/replay.json +31 -0
  130. constare-0.1.0/tests/recordings/layers/allow-by-a-user-rule/stderr.txt +0 -0
  131. constare-0.1.0/tests/recordings/layers/allow-by-a-user-rule/stdout.jsonl +5 -0
  132. constare-0.1.0/tests/recordings/layers/ask-by-a-user-rule/replay.json +25 -0
  133. constare-0.1.0/tests/recordings/layers/ask-by-a-user-rule/stderr.txt +0 -0
  134. constare-0.1.0/tests/recordings/layers/ask-by-a-user-rule/stdout.jsonl +6 -0
  135. constare-0.1.0/tests/recordings/layers/ask-by-mode-for-a-command-no-layer-has-a-rule-for/replay.json +25 -0
  136. constare-0.1.0/tests/recordings/layers/ask-by-mode-for-a-command-no-layer-has-a-rule-for/stderr.txt +0 -0
  137. constare-0.1.0/tests/recordings/layers/ask-by-mode-for-a-command-no-layer-has-a-rule-for/stdout.jsonl +6 -0
  138. constare-0.1.0/tests/recordings/layers/deny-by-a-local-rule/replay.json +25 -0
  139. constare-0.1.0/tests/recordings/layers/deny-by-a-local-rule/stderr.txt +0 -0
  140. constare-0.1.0/tests/recordings/layers/deny-by-a-local-rule/stdout.jsonl +6 -0
  141. constare-0.1.0/tests/recordings/layers/deny-by-a-user-rule/replay.json +25 -0
  142. constare-0.1.0/tests/recordings/layers/deny-by-a-user-rule/stderr.txt +0 -0
  143. constare-0.1.0/tests/recordings/layers/deny-by-a-user-rule/stdout.jsonl +6 -0
  144. constare-0.1.0/tests/recordings/layers/edit-allowed-by-a-local-rule/replay.json +26 -0
  145. constare-0.1.0/tests/recordings/layers/edit-allowed-by-a-local-rule/stderr.txt +0 -0
  146. constare-0.1.0/tests/recordings/layers/edit-allowed-by-a-local-rule/stdout.jsonl +5 -0
  147. constare-0.1.0/tests/recordings/layers/edit-denied-by-a-user-rule/replay.json +26 -0
  148. constare-0.1.0/tests/recordings/layers/edit-denied-by-a-user-rule/stderr.txt +0 -0
  149. constare-0.1.0/tests/recordings/layers/edit-denied-by-a-user-rule/stdout.jsonl +5 -0
  150. constare-0.1.0/tests/recordings/layers/read-denied-by-a-local-rule/replay.json +24 -0
  151. constare-0.1.0/tests/recordings/layers/read-denied-by-a-local-rule/stderr.txt +0 -0
  152. constare-0.1.0/tests/recordings/layers/read-denied-by-a-local-rule/stdout.jsonl +5 -0
  153. constare-0.1.0/tests/recordings/layers/write-denied-by-a-rule-that-names-the-whole-tool/replay.json +25 -0
  154. constare-0.1.0/tests/recordings/layers/write-denied-by-a-rule-that-names-the-whole-tool/stderr.txt +0 -0
  155. constare-0.1.0/tests/recordings/layers/write-denied-by-a-rule-that-names-the-whole-tool/stdout.jsonl +5 -0
  156. constare-0.1.0/tests/recordings/mcp/mcp-allow-by-rule-reaches-the-stand-in/replay.json +31 -0
  157. constare-0.1.0/tests/recordings/mcp/mcp-allow-by-rule-reaches-the-stand-in/stderr.txt +0 -0
  158. constare-0.1.0/tests/recordings/mcp/mcp-allow-by-rule-reaches-the-stand-in/stdout.jsonl +5 -0
  159. constare-0.1.0/tests/recordings/mcp/mcp-ask-by-mode-when-no-rule-matches/replay.json +29 -0
  160. constare-0.1.0/tests/recordings/mcp/mcp-ask-by-mode-when-no-rule-matches/stderr.txt +0 -0
  161. constare-0.1.0/tests/recordings/mcp/mcp-ask-by-mode-when-no-rule-matches/stdout.jsonl +6 -0
  162. constare-0.1.0/tests/recordings/mcp/mcp-deny-by-rule-removes-the-tool/replay.json +31 -0
  163. constare-0.1.0/tests/recordings/mcp/mcp-deny-by-rule-removes-the-tool/stderr.txt +0 -0
  164. constare-0.1.0/tests/recordings/mcp/mcp-deny-by-rule-removes-the-tool/stdout.jsonl +5 -0
  165. constare-0.1.0/tests/recordings/other/allowed-without-a-rule/replay.json +31 -0
  166. constare-0.1.0/tests/recordings/other/allowed-without-a-rule/stderr.txt +0 -0
  167. constare-0.1.0/tests/recordings/other/allowed-without-a-rule/stdout.jsonl +5 -0
  168. constare-0.1.0/tests/recordings/other/ask-without-a-rule/replay.json +25 -0
  169. constare-0.1.0/tests/recordings/other/ask-without-a-rule/stderr.txt +0 -0
  170. constare-0.1.0/tests/recordings/other/ask-without-a-rule/stdout.jsonl +6 -0
  171. constare-0.1.0/tests/recordings/other/edit-allowed-by-rule/replay.json +26 -0
  172. constare-0.1.0/tests/recordings/other/edit-allowed-by-rule/stderr.txt +0 -0
  173. constare-0.1.0/tests/recordings/other/edit-allowed-by-rule/stdout.jsonl +5 -0
  174. constare-0.1.0/tests/recordings/other/hook-asks/replay.json +31 -0
  175. constare-0.1.0/tests/recordings/other/hook-asks/stderr.txt +0 -0
  176. constare-0.1.0/tests/recordings/other/hook-asks/stdout.jsonl +6 -0
  177. constare-0.1.0/tests/recordings/other/hook-held-by-the-gate/replay.json +36 -0
  178. constare-0.1.0/tests/recordings/other/hook-held-by-the-gate/stderr.txt +0 -0
  179. constare-0.1.0/tests/recordings/other/hook-held-by-the-gate/stdout.jsonl +6 -0
  180. constare-0.1.0/tests/recordings/other/mcp-stand-in-held-by-the-gate/replay.json +29 -0
  181. constare-0.1.0/tests/recordings/other/mcp-stand-in-held-by-the-gate/stderr.txt +0 -0
  182. constare-0.1.0/tests/recordings/other/mcp-stand-in-held-by-the-gate/stdout.jsonl +5 -0
  183. constare-0.1.0/tests/recordings/other/sandboxed-allow/replay.json +25 -0
  184. constare-0.1.0/tests/recordings/other/sandboxed-allow/stderr.txt +0 -0
  185. constare-0.1.0/tests/recordings/other/sandboxed-allow/stdout.jsonl +5 -0
  186. constare-0.1.0/tests/recordings/other/tool-removed-by-a-deny-rule/replay.json +25 -0
  187. constare-0.1.0/tests/recordings/other/tool-removed-by-a-deny-rule/stderr.txt +0 -0
  188. constare-0.1.0/tests/recordings/other/tool-removed-by-a-deny-rule/stdout.jsonl +5 -0
  189. constare-0.1.0/tests/recordings/other/tool-that-never-existed/replay.json +24 -0
  190. constare-0.1.0/tests/recordings/other/tool-that-never-existed/stderr.txt +0 -0
  191. constare-0.1.0/tests/recordings/other/tool-that-never-existed/stdout.jsonl +5 -0
  192. constare-0.1.0/tests/recordings/other/untrusted-project/replay.json +25 -0
  193. constare-0.1.0/tests/recordings/other/untrusted-project/stderr.txt +1 -0
  194. constare-0.1.0/tests/recordings/other/untrusted-project/stdout.jsonl +6 -0
  195. constare-0.1.0/tests/recordings/sandbox/a-sandboxed-read-of-a-hidden-file-fails/replay.json +25 -0
  196. constare-0.1.0/tests/recordings/sandbox/a-sandboxed-read-of-a-hidden-file-fails/stderr.txt +0 -0
  197. constare-0.1.0/tests/recordings/sandbox/a-sandboxed-read-of-a-hidden-file-fails/stdout.jsonl +5 -0
  198. constare-0.1.0/tests/recordings/sandbox/a-sandboxed-write-inside-the-project-lands/replay.json +25 -0
  199. constare-0.1.0/tests/recordings/sandbox/a-sandboxed-write-inside-the-project-lands/stderr.txt +0 -0
  200. constare-0.1.0/tests/recordings/sandbox/a-sandboxed-write-inside-the-project-lands/stdout.jsonl +5 -0
  201. constare-0.1.0/tests/recordings/sandbox/a-sandboxed-write-outside-the-project-is-blocked/replay.json +25 -0
  202. constare-0.1.0/tests/recordings/sandbox/a-sandboxed-write-outside-the-project-is-blocked/stderr.txt +0 -0
  203. constare-0.1.0/tests/recordings/sandbox/a-sandboxed-write-outside-the-project-is-blocked/stdout.jsonl +5 -0
  204. constare-0.1.0/tests/scripted.py +102 -0
  205. constare-0.1.0/tests/support.py +69 -0
  206. constare-0.1.0/tests/test_agent_claude_code.py +299 -0
  207. constare-0.1.0/tests/test_agent_contained.py +95 -0
  208. constare-0.1.0/tests/test_agent_effects.py +187 -0
  209. constare-0.1.0/tests/test_agent_launch.py +56 -0
  210. constare-0.1.0/tests/test_agent_modes.py +151 -0
  211. constare-0.1.0/tests/test_agent_standins.py +196 -0
  212. constare-0.1.0/tests/test_casefile.py +557 -0
  213. constare-0.1.0/tests/test_claude_code.py +456 -0
  214. constare-0.1.0/tests/test_claude_code_standins.py +161 -0
  215. constare-0.1.0/tests/test_cli.py +232 -0
  216. constare-0.1.0/tests/test_cli_json.py +127 -0
  217. constare-0.1.0/tests/test_config.py +648 -0
  218. constare-0.1.0/tests/test_containment.py +590 -0
  219. constare-0.1.0/tests/test_decision_shapes.py +95 -0
  220. constare-0.1.0/tests/test_effects.py +249 -0
  221. constare-0.1.0/tests/test_example.py +91 -0
  222. constare-0.1.0/tests/test_gate.py +124 -0
  223. constare-0.1.0/tests/test_isolation.py +149 -0
  224. constare-0.1.0/tests/test_judge.py +200 -0
  225. constare-0.1.0/tests/test_model.py +123 -0
  226. constare-0.1.0/tests/test_modes.py +270 -0
  227. constare-0.1.0/tests/test_new_agents.py +575 -0
  228. constare-0.1.0/tests/test_process.py +304 -0
  229. constare-0.1.0/tests/test_replay.py +672 -0
  230. constare-0.1.0/tests/test_report.py +263 -0
  231. constare-0.1.0/tests/test_report_json.py +339 -0
  232. constare-0.1.0/tests/test_selfcheck.py +109 -0
  233. constare-0.1.0/tests/test_signals.py +397 -0
  234. constare-0.1.0/tests/test_signals_standins.py +275 -0
  235. constare-0.1.0/tests/test_standins.py +150 -0
  236. constare-0.1.0/tests/test_structure.py +230 -0
  237. constare-0.1.0/tests/test_workspace.py +266 -0
@@ -0,0 +1,14 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ insert_final_newline = true
7
+ trim_trailing_whitespace = true
8
+ indent_style = space
9
+
10
+ [*.py]
11
+ indent_size = 4
12
+
13
+ [*.{yml,yaml}]
14
+ indent_size = 2
@@ -0,0 +1,2 @@
1
+ # Default owner for all files in the repository
2
+ * @ramnnn2006
@@ -0,0 +1,58 @@
1
+ name: Bug
2
+ description: A constare command did something you did not expect.
3
+ labels: ["bug"]
4
+ body:
5
+ - type: input
6
+ id: version
7
+ attributes:
8
+ label: Version
9
+ description: The first line of the report. It starts with the constare version and names the agent version.
10
+ validations:
11
+ required: true
12
+ - type: dropdown
13
+ id: exit
14
+ attributes:
15
+ label: Exit code
16
+ description: 0 every case passed, 1 a case failed, 2 a case is unknown, 3 nothing was judged.
17
+ options:
18
+ - "0"
19
+ - "1"
20
+ - "2"
21
+ - "3"
22
+ validations:
23
+ required: true
24
+ - type: input
25
+ id: contained
26
+ attributes:
27
+ label: Containment
28
+ description: Copy the contained phrase from the report header.
29
+ validations:
30
+ required: true
31
+ - type: textarea
32
+ id: command
33
+ attributes:
34
+ label: Command
35
+ description: The constare command you ran.
36
+ validations:
37
+ required: true
38
+ - type: textarea
39
+ id: output
40
+ attributes:
41
+ label: Output
42
+ description: Paste the report. Delete home directory paths, the agent binary path, and secrets.
43
+ validations:
44
+ required: true
45
+ - type: textarea
46
+ id: expected
47
+ attributes:
48
+ label: Expected
49
+ description: What you expected the report to say.
50
+ validations:
51
+ required: true
52
+ - type: textarea
53
+ id: case
54
+ attributes:
55
+ label: Case
56
+ description: Paste the case file when the report judged one. Delete secrets, tokens, and home directory paths.
57
+ validations:
58
+ required: false
@@ -0,0 +1,25 @@
1
+ name: Small change
2
+ description: A docs fix or a test for behavior that already exists.
3
+ labels: ["small-change"]
4
+ body:
5
+ - type: input
6
+ id: file
7
+ attributes:
8
+ label: File
9
+ description: The file you want to change.
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: check
14
+ attributes:
15
+ label: Check
16
+ description: The command that should pass after the change.
17
+ validations:
18
+ required: true
19
+ - type: textarea
20
+ id: proof
21
+ attributes:
22
+ label: Proof
23
+ description: The command you ran and the output that shows the current behavior. For a docs fix, quote the sentence that disagrees with that output. Delete home directory paths and secrets.
24
+ validations:
25
+ required: true
@@ -0,0 +1 @@
1
+ blank_issues_enabled: false
@@ -0,0 +1,21 @@
1
+ name: Discussion
2
+ description: Permission design, the namespace, or the meaning of a reported decision. Discuss this before writing code.
3
+ labels: ["discussion"]
4
+ body:
5
+ - type: dropdown
6
+ id: topic
7
+ attributes:
8
+ label: Topic
9
+ options:
10
+ - Permission design
11
+ - The namespace
12
+ - The meaning of a reported decision
13
+ validations:
14
+ required: true
15
+ - type: textarea
16
+ id: proposal
17
+ attributes:
18
+ label: Proposal
19
+ description: The behavior you want discussed. Do not paste a patch.
20
+ validations:
21
+ required: true
@@ -0,0 +1,33 @@
1
+ ## Behavior
2
+
3
+ What changed for someone running constare.
4
+
5
+ ## Issue
6
+
7
+ Link the issue, or say there is none.
8
+
9
+ ## Checks
10
+
11
+ - [ ] `.venv/bin/ruff check .`
12
+ - [ ] `.venv/bin/mypy --strict constare`
13
+ - [ ] `.venv/bin/python -m pytest -m "not agent"`
14
+
15
+ ## Test
16
+
17
+ The test you added or updated in `tests/`. If this change has no behavior to test, say so.
18
+
19
+ ## Bug fix
20
+
21
+ If this fixes a bug, name the command and paste the output from before the change. Delete home directory paths, the agent binary path, secrets, and anything from a real network.
22
+
23
+ ## AI usage
24
+
25
+ - [ ] No AI tool was used for this pull request.
26
+ - [ ] An AI tool helped draft this pull request.
27
+ - **Model / tool**: <!-- e.g. Claude / Codex / Grok / Gemini -->
28
+ - **Effort / mode**: <!-- e.g. low / medium / high / xhigh, or N/A -->
29
+ - [ ] I understand every line of this diff, verified the code is valid, and added or updated valid tests (not generated rubber-stamp assertions).
30
+
31
+ ## Explanation
32
+
33
+ If an AI tool drafted any part of this patch, explain what the code does, which files you changed, and why the test failed before the change and passes after it. A patch you cannot explain will be closed.
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "monthly"
7
+ commit-message:
8
+ prefix: "ci"
@@ -0,0 +1,56 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ concurrency:
12
+ group: ci-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ jobs:
16
+ check:
17
+ name: Python ${{ matrix.python-version }}
18
+ runs-on: ubuntu-latest
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ python-version: ["3.11", "3.12", "3.13", "3.14"]
23
+ steps:
24
+ - uses: actions/checkout@v7
25
+ with:
26
+ persist-credentials: false
27
+ - uses: actions/setup-python@v7
28
+ with:
29
+ python-version: ${{ matrix.python-version }}
30
+ - name: Install the tools
31
+ run: python -m pip install ruff==0.17.5 mypy==2.4.1 pytest==9.2.0
32
+ - name: Lint
33
+ run: ruff check .
34
+ - name: Type check
35
+ run: mypy --strict constare
36
+ # Tests marked `agent` start the real agent binary, which is not installed here.
37
+ - name: Unit tests
38
+ run: python -m pytest -m "not agent"
39
+ - name: Check the installed wheel
40
+ run: |
41
+ python -m pip install build==1.4.0
42
+ python -m build --wheel
43
+ python -m venv "$RUNNER_TEMP/wheel"
44
+ "$RUNNER_TEMP/wheel/bin/pip" install dist/*.whl
45
+ cd "$RUNNER_TEMP"
46
+ PYTHONSAFEPATH=1 "$RUNNER_TEMP/wheel/bin/constare" --version
47
+ PYTHONSAFEPATH=1 "$RUNNER_TEMP/wheel/bin/python" - <<'PY'
48
+ import importlib.resources as resources
49
+
50
+ root = resources.files("constare.agents.claude_code")
51
+ assert (root / "gate.sh").is_file()
52
+ for agent in ("claude_code", "antigravity", "codex", "grok"):
53
+ agent_root = resources.files(f"constare.agents.{agent}")
54
+ names = [path.name for path in (agent_root / "selfcheck").iterdir() if path.name.endswith(".toml")]
55
+ assert names, f"missing selfcheck toml for {agent}"
56
+ PY
@@ -0,0 +1,51 @@
1
+ name: Issue Check
2
+
3
+ on:
4
+ issues:
5
+ types: [opened, edited]
6
+
7
+ permissions:
8
+ issues: write
9
+
10
+ jobs:
11
+ validate:
12
+ name: Validate issue details
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Check for missing details or leaked secrets
16
+ uses: actions/github-script@v7
17
+ with:
18
+ script: |
19
+ const issue = context.payload.issue;
20
+ const body = issue.body || "";
21
+ const warnings = [];
22
+
23
+ if (!body.trim()) {
24
+ warnings.push("Issue body is empty. Please use one of the repository issue forms.");
25
+ }
26
+
27
+ if (/\/(home|Users)\/[A-Za-z0-9._-]+\//.test(body)) {
28
+ warnings.push("Please redact personal home directory paths (`/home/...` or `/Users/...`) from pasted output.");
29
+ }
30
+
31
+ const tokenPatterns = [
32
+ /sk-ant-(?!constare-mock-not-a-real-key)[A-Za-z0-9_-]{10,}/,
33
+ /gh[pousr]_[A-Za-z0-9]{20,}/,
34
+ /xai-[A-Za-z0-9_-]{16,}/,
35
+ ];
36
+ if (tokenPatterns.some((re) => re.test(body))) {
37
+ warnings.push("Possible API key or token detected. Please redact credentials immediately.");
38
+ }
39
+
40
+ if (warnings.length > 0) {
41
+ await github.rest.issues.createComment({
42
+ owner: context.repo.owner,
43
+ repo: context.repo.repo,
44
+ issue_number: issue.number,
45
+ body: [
46
+ "Thanks for opening this issue. Before review, please check:",
47
+ "",
48
+ ...warnings.map((w) => `- ${w}`),
49
+ ].join("\n"),
50
+ });
51
+ }
@@ -0,0 +1,64 @@
1
+ name: PR Check
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, edited, synchronize, reopened, ready_for_review]
6
+
7
+ permissions:
8
+ contents: read
9
+ pull-requests: read
10
+
11
+ jobs:
12
+ pr-hygiene:
13
+ name: Check PR title, AI disclosure, and commits
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Validate PR title and template checkboxes
17
+ uses: actions/github-script@v7
18
+ with:
19
+ script: |
20
+ const pr = context.payload.pull_request;
21
+ const title = pr.title || "";
22
+ const body = pr.body || "";
23
+ const errors = [];
24
+
25
+ const convRe = /^(feat|fix|docs|refactor|perf|test|chore|ci|build|style|revert)(\([a-z0-9._/-]+\))?: .+/;
26
+ if (!convRe.test(title)) {
27
+ errors.push("PR title must use Conventional Commits (e.g. `fix(replay): ...` or `docs: ...`).");
28
+ }
29
+
30
+ const noAi = /- \[x\] No AI tool was used for this pull request\./i.test(body);
31
+ const usedAi = /- \[x\] An AI tool helped draft this pull request\./i.test(body);
32
+ if (!noAi && !usedAi) {
33
+ errors.push("Select either `No AI tool was used` or `An AI tool helped draft this pull request` in the AI usage section.");
34
+ } else if (noAi && usedAi) {
35
+ errors.push("Select only one option under AI usage (`No AI tool` or `An AI tool helped draft`), not both.");
36
+ }
37
+
38
+ if (usedAi) {
39
+ const ack = /- \[x\] I understand every line of this diff, verified the code is valid, and added or updated valid tests/i.test(body);
40
+ if (!ack) {
41
+ errors.push("Tick the code understanding and valid-tests acknowledgement checkbox under AI usage.");
42
+ }
43
+ const modelMatch = body.match(/\*\*Model \/ tool\*\*:\s*([^\n\r]+)/i);
44
+ const modelVal = modelMatch ? modelMatch[1].replace(/<!--.*?-->/g, "").trim() : "";
45
+ if (!modelVal) {
46
+ errors.push("Specify the `Model / tool` used under AI usage.");
47
+ }
48
+ }
49
+
50
+ const commits = await github.paginate(github.rest.pulls.listCommits, {
51
+ owner: context.repo.owner,
52
+ repo: context.repo.repo,
53
+ pull_number: pr.number,
54
+ });
55
+ const coauthorRe = /^co-authored-by:.*\b(claude|anthropic|chatgpt|openai|copilot|gemini|grok|cursor|windsurf|ai)\b/im;
56
+ for (const c of commits) {
57
+ if (coauthorRe.test(c.commit.message || "")) {
58
+ errors.push(`Commit ${c.sha.slice(0, 7)} contains an AI Co-authored-by trailer, which CONTRIBUTING.md forbids.`);
59
+ }
60
+ }
61
+
62
+ if (errors.length > 0) {
63
+ core.setFailed(errors.join("\n"));
64
+ }
@@ -0,0 +1,63 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v7
16
+ with:
17
+ persist-credentials: false
18
+ - uses: actions/setup-python@v7
19
+ with:
20
+ python-version: "3.12"
21
+ - name: Build the packages
22
+ run: |
23
+ python -m pip install build==1.4.0
24
+ python -m build
25
+ - uses: actions/upload-artifact@v4
26
+ with:
27
+ name: dist
28
+ path: dist/
29
+
30
+ publish:
31
+ needs: build
32
+ runs-on: ubuntu-latest
33
+ environment: pypi
34
+ permissions:
35
+ id-token: write
36
+ steps:
37
+ - uses: actions/download-artifact@v4
38
+ with:
39
+ name: dist
40
+ path: dist
41
+ - uses: pypa/gh-action-pypi-publish@release/v1
42
+ with:
43
+ packages-dir: dist
44
+
45
+ release:
46
+ needs: build
47
+ runs-on: ubuntu-latest
48
+ permissions:
49
+ contents: write
50
+ steps:
51
+ - uses: actions/checkout@v7
52
+ with:
53
+ persist-credentials: false
54
+ - uses: actions/download-artifact@v4
55
+ with:
56
+ name: dist
57
+ path: dist
58
+ - name: Create GitHub Release
59
+ env:
60
+ GH_TOKEN: ${{ github.token }}
61
+ TAG: ${{ github.ref_name }}
62
+ run: |
63
+ gh release create "$TAG" dist/* --title "$TAG" --generate-notes
@@ -0,0 +1,12 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ build/
6
+ dist/
7
+ .mypy_cache/
8
+ .pytest_cache/
9
+ .ruff_cache/
10
+ /.claude/
11
+ .env
12
+ .env.*
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ Checks Claude Code permission rules, hooks, modes, and sandbox settings from case files. Replays each call into the real `claude` binary against a scripted model. Needs no API key. The same case files can target grok, codex, and antigravity (agy). `--no-cache` ignores a cached self-check result.
6
+
7
+ An empty `output` check is refused. A missing or wrong `by` no longer hides effect failures. An effects probe does not run when the namespace is off, and `by = "sandbox"` is not judged unless the probes that cover it can run. An unreadable `include` is reported as a case problem. A crash while printing the report exits 3. Setting `CONSTARE_CONTAINED` in the environment does not mark a run contained. An interrupt exits 3. The sandbox outside-write probe quotes its path. A run directory under `/tmp/claude` is refused. Managed settings are included when deciding whether a sandboxed command runs without asking. An include that is not a regular file, and a fixture that collides with a directory, stop the run with a case problem. Newlines in the human report stay on their row. A symlink that would mount the home or a parent directory is not used as a namespace bind. Extra file descriptors are closed before the namespace starts. Config symlinks are copied as symlinks, and a removed MCP tool is not a deny when the gate held another command.
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement via the repository's
63
+ private security/contact channels. All complaints will be reviewed and
64
+ investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Withdrawal of Permission
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of people.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2.1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][mozilla].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq.html][faq]. Translations are available
126
+ at [https://www.contributor-covenant.org/translations.html][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2.1/code_of_conduct.html
130
+ [mozilla]: https://github.com/mozilla/diversity
131
+ [faq]: https://www.contributor-covenant.org/faq.html
132
+ [translations]: https://www.contributor-covenant.org/translations.html
@@ -0,0 +1,70 @@
1
+ # Contribute to constare
2
+
3
+ You can change constare. Open a pull request. The repository owner reviews it and merges it.
4
+
5
+ ## Set up
6
+
7
+ Python 3.11 or later. From a checkout of this repository:
8
+
9
+ ```
10
+ python -m venv .venv
11
+ .venv/bin/pip install ruff==0.17.5 mypy==2.4.1 pytest==9.2.0
12
+ ```
13
+
14
+ These are the versions CI installs.
15
+
16
+ ## Run the checks
17
+
18
+ Run these before you open the pull request. CI runs the same three commands.
19
+
20
+ ```
21
+ .venv/bin/ruff check .
22
+ .venv/bin/mypy --strict constare
23
+ .venv/bin/python -m pytest -m "not agent"
24
+ ```
25
+
26
+ A test marked `agent` starts the real `claude` binary. CI does not install that binary, so do not make the unit tests depend on it.
27
+
28
+ Another agent is a module under `constare/agents` plus a `selfcheck` directory and one `AGENTS` entry.
29
+
30
+ ```
31
+ .venv/bin/python -m pytest -m agent
32
+ ```
33
+
34
+ ## Change behavior
35
+
36
+ Add or update a test in `tests/` when you change what constare does. Name the command you ran and paste the output in the pull request when the change is a bug fix.
37
+
38
+ Leave permission design, the namespace, and the meaning of a reported decision for a discussion before you write the code.
39
+
40
+ ## Use an AI tool
41
+
42
+ You may use an AI tool to draft a change. Disclose the model and reasoning effort in the pull request template, and confirm that you reviewed the code and tests. You must understand the change. In review, explain what the code does, which files you changed, and why the test fails before the change and passes after it.
43
+
44
+ The pull request is closed when you cannot explain a line someone asks about. A generated rewrite that does not fix a named bug is closed. A patch that adds files, comments, or abstractions the task does not need is closed.
45
+
46
+ Put your own name on the commit. Do not add a `Co-authored-by` trailer for an AI tool.
47
+
48
+ ## Open the pull request
49
+
50
+ Describe the behavior you changed. Link the issue when there is one. Wait for review.
51
+
52
+ ## Review
53
+
54
+ Every change lands as a pull request. The repository owner reviews it. The author does not merge it.
55
+
56
+ The reviewer merges only when all of these are true:
57
+
58
+ - CI is green.
59
+ - A behavior change adds or updates a test in `tests/`.
60
+ - The pull request describes the behavior that changed and links the issue when there is one.
61
+ - A bug fix names the command and pastes the output.
62
+ - If an AI tool drafted the patch, the author explains what the code does, which files changed, and why the test failed before the change and passes after it.
63
+
64
+ The pull request is closed when the author cannot explain a line someone asks about. A generated rewrite that does not fix a named bug is closed. A patch that adds files, comments, or abstractions the task does not need is closed.
65
+
66
+ Permission design, the namespace, and the meaning of a reported decision are discussed before code is written. The owner decides those.
67
+
68
+ A person who later has write access reviews and merges other people's pull requests. That person still does not merge their own pull request without an approval from someone else.
69
+
70
+ When a change is visible to someone running constare, add one line to `CHANGELOG.md` under the version that will contain the change.
constare-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ramnnn2006
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.