bergendy 1.1.3__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 (364) hide show
  1. bergendy-1.1.3/.dockerignore +10 -0
  2. bergendy-1.1.3/.github/workflows/boundary.yml +18 -0
  3. bergendy-1.1.3/.github/workflows/ci.yml +22 -0
  4. bergendy-1.1.3/.github/workflows/publish.yml +49 -0
  5. bergendy-1.1.3/.github/workflows/release.yml +62 -0
  6. bergendy-1.1.3/.gitignore +37 -0
  7. bergendy-1.1.3/.pre-commit-hooks.yaml +15 -0
  8. bergendy-1.1.3/CHANGELOG.md +45 -0
  9. bergendy-1.1.3/CLA.md +25 -0
  10. bergendy-1.1.3/CODE_OF_CONDUCT.md +17 -0
  11. bergendy-1.1.3/CONTRIBUTING.md +25 -0
  12. bergendy-1.1.3/Cargo.lock +367 -0
  13. bergendy-1.1.3/Cargo.toml +38 -0
  14. bergendy-1.1.3/LICENSE +201 -0
  15. bergendy-1.1.3/Makefile +14 -0
  16. bergendy-1.1.3/NOTICE +12 -0
  17. bergendy-1.1.3/PKG-INFO +161 -0
  18. bergendy-1.1.3/README.md +132 -0
  19. bergendy-1.1.3/SECURITY.md +11 -0
  20. bergendy-1.1.3/SPEC.md +128 -0
  21. bergendy-1.1.3/action.yml +48 -0
  22. bergendy-1.1.3/docker/Dockerfile.app +32 -0
  23. bergendy-1.1.3/docs/AGENT_EXECUTION.md +71 -0
  24. bergendy-1.1.3/docs/AGENT_SESSION.md +61 -0
  25. bergendy-1.1.3/docs/API_REFERENCE.md +150 -0
  26. bergendy-1.1.3/docs/ARCHITECTURE.md +90 -0
  27. bergendy-1.1.3/docs/CLI.md +138 -0
  28. bergendy-1.1.3/docs/COMPRESSION.md +20 -0
  29. bergendy-1.1.3/docs/CROSS_REPO_WORK_IMPACT.md +51 -0
  30. bergendy-1.1.3/docs/DEPLOY.md +72 -0
  31. bergendy-1.1.3/docs/GHOST_PROXY.md +52 -0
  32. bergendy-1.1.3/docs/GITHUB_APP.md +89 -0
  33. bergendy-1.1.3/docs/QUICKSTART.md +134 -0
  34. bergendy-1.1.3/docs/SNAPSHOTS.md +62 -0
  35. bergendy-1.1.3/docs/SYSTEM_MAP.md +99 -0
  36. bergendy-1.1.3/docs/TYPESCRIPT_SDK.md +78 -0
  37. bergendy-1.1.3/docs/USE_CASES.md +203 -0
  38. bergendy-1.1.3/docs/VALIDATION_GUIDE.md +74 -0
  39. bergendy-1.1.3/docs/WORKSPACE_ACTIVATION.md +84 -0
  40. bergendy-1.1.3/docs/WORKSPACE_LANES.md +101 -0
  41. bergendy-1.1.3/install.sh +69 -0
  42. bergendy-1.1.3/pyproject.toml +58 -0
  43. bergendy-1.1.3/python/bergendy/__init__.py +113 -0
  44. bergendy-1.1.3/python/bergendy/_exec_shim.py +13 -0
  45. bergendy-1.1.3/python/bergendy/ai_planner.py +415 -0
  46. bergendy-1.1.3/python/bergendy/audit.py +296 -0
  47. bergendy-1.1.3/python/bergendy/autopatch.py +110 -0
  48. bergendy-1.1.3/python/bergendy/boundary.py +265 -0
  49. bergendy-1.1.3/python/bergendy/capture.py +106 -0
  50. bergendy-1.1.3/python/bergendy/change_source.py +87 -0
  51. bergendy-1.1.3/python/bergendy/cli/__init__.py +1 -0
  52. bergendy-1.1.3/python/bergendy/cli/enterprise_commands.py +518 -0
  53. bergendy-1.1.3/python/bergendy/cli/formatters.py +20 -0
  54. bergendy-1.1.3/python/bergendy/cli/main.py +3109 -0
  55. bergendy-1.1.3/python/bergendy/compartments/__init__.py +12 -0
  56. bergendy-1.1.3/python/bergendy/compartments/base.py +74 -0
  57. bergendy-1.1.3/python/bergendy/compartments/runtime.py +201 -0
  58. bergendy-1.1.3/python/bergendy/config.py +339 -0
  59. bergendy-1.1.3/python/bergendy/contracts.py +158 -0
  60. bergendy-1.1.3/python/bergendy/credentials.py +154 -0
  61. bergendy-1.1.3/python/bergendy/cross_repo.py +544 -0
  62. bergendy-1.1.3/python/bergendy/drift.py +186 -0
  63. bergendy-1.1.3/python/bergendy/engine/__init__.py +1 -0
  64. bergendy-1.1.3/python/bergendy/engine/events.py +36 -0
  65. bergendy-1.1.3/python/bergendy/engine/execution.py +221 -0
  66. bergendy-1.1.3/python/bergendy/engine/integration.py +150 -0
  67. bergendy-1.1.3/python/bergendy/engine/lane.py +122 -0
  68. bergendy-1.1.3/python/bergendy/engine/pty_supervisor.py +103 -0
  69. bergendy-1.1.3/python/bergendy/engine/session.py +295 -0
  70. bergendy-1.1.3/python/bergendy/engine/tracer.py +117 -0
  71. bergendy-1.1.3/python/bergendy/formatters.py +22 -0
  72. bergendy-1.1.3/python/bergendy/git_ops.py +61 -0
  73. bergendy-1.1.3/python/bergendy/github/__init__.py +17 -0
  74. bergendy-1.1.3/python/bergendy/github/client.py +359 -0
  75. bergendy-1.1.3/python/bergendy/github/dashboard.py +158 -0
  76. bergendy-1.1.3/python/bergendy/github/howl_bot.py +195 -0
  77. bergendy-1.1.3/python/bergendy/github/hunt_bot.py +52 -0
  78. bergendy-1.1.3/python/bergendy/github/installations.py +93 -0
  79. bergendy-1.1.3/python/bergendy/github/pr_bot.py +542 -0
  80. bergendy-1.1.3/python/bergendy/github/pr_render.py +196 -0
  81. bergendy-1.1.3/python/bergendy/github/provisioning.py +159 -0
  82. bergendy-1.1.3/python/bergendy/github/push_events.py +63 -0
  83. bergendy-1.1.3/python/bergendy/github/trust_pr.py +183 -0
  84. bergendy-1.1.3/python/bergendy/github/watch.py +104 -0
  85. bergendy-1.1.3/python/bergendy/github/webhook_server.py +148 -0
  86. bergendy-1.1.3/python/bergendy/graph.py +34 -0
  87. bergendy-1.1.3/python/bergendy/hooks/__init__.py +26 -0
  88. bergendy-1.1.3/python/bergendy/hooks/base.py +381 -0
  89. bergendy-1.1.3/python/bergendy/hunt.py +2182 -0
  90. bergendy-1.1.3/python/bergendy/hunt_ports.py +458 -0
  91. bergendy-1.1.3/python/bergendy/intelligence.py +129 -0
  92. bergendy-1.1.3/python/bergendy/knowledge.py +316 -0
  93. bergendy-1.1.3/python/bergendy/llm.py +248 -0
  94. bergendy-1.1.3/python/bergendy/maintenance.py +387 -0
  95. bergendy-1.1.3/python/bergendy/maintenance_agents.py +45 -0
  96. bergendy-1.1.3/python/bergendy/mcp_server.py +269 -0
  97. bergendy-1.1.3/python/bergendy/patch_writer.py +178 -0
  98. bergendy-1.1.3/python/bergendy/pipeline.py +907 -0
  99. bergendy-1.1.3/python/bergendy/prompts/go.md +9 -0
  100. bergendy-1.1.3/python/bergendy/prompts/java.md +9 -0
  101. bergendy-1.1.3/python/bergendy/prompts/ruby.md +8 -0
  102. bergendy-1.1.3/python/bergendy/prompts/schema_gen.txt +9 -0
  103. bergendy-1.1.3/python/bergendy/providers/__init__.py +10 -0
  104. bergendy-1.1.3/python/bergendy/providers/registry.py +354 -0
  105. bergendy-1.1.3/python/bergendy/redact.py +90 -0
  106. bergendy-1.1.3/python/bergendy/repo_identity.py +192 -0
  107. bergendy-1.1.3/python/bergendy/runtime_scan.py +123 -0
  108. bergendy-1.1.3/python/bergendy/sandbox/__init__.py +1 -0
  109. bergendy-1.1.3/python/bergendy/sandbox/box.py +236 -0
  110. bergendy-1.1.3/python/bergendy/sandbox/compression.py +25 -0
  111. bergendy-1.1.3/python/bergendy/sandbox/enforcer.py +211 -0
  112. bergendy-1.1.3/python/bergendy/sandbox/proxy.py +230 -0
  113. bergendy-1.1.3/python/bergendy/sandbox/snapshot.py +134 -0
  114. bergendy-1.1.3/python/bergendy/sandbox/task_profile.py +17 -0
  115. bergendy-1.1.3/python/bergendy/shield.py +218 -0
  116. bergendy-1.1.3/python/bergendy/test_runner.py +102 -0
  117. bergendy-1.1.3/python/bergendy/traffic_drift.py +39 -0
  118. bergendy-1.1.3/python/bergendy/work_graph.py +199 -0
  119. bergendy-1.1.3/python/boundary/__init__.py +113 -0
  120. bergendy-1.1.3/python/boundary/_exec_shim.py +13 -0
  121. bergendy-1.1.3/python/boundary/ai_planner.py +415 -0
  122. bergendy-1.1.3/python/boundary/audit.py +296 -0
  123. bergendy-1.1.3/python/boundary/autopatch.py +110 -0
  124. bergendy-1.1.3/python/boundary/boundary.py +265 -0
  125. bergendy-1.1.3/python/boundary/capture.py +106 -0
  126. bergendy-1.1.3/python/boundary/change_source.py +87 -0
  127. bergendy-1.1.3/python/boundary/cli/__init__.py +1 -0
  128. bergendy-1.1.3/python/boundary/cli/enterprise_commands.py +518 -0
  129. bergendy-1.1.3/python/boundary/cli/formatters.py +20 -0
  130. bergendy-1.1.3/python/boundary/cli/main.py +3109 -0
  131. bergendy-1.1.3/python/boundary/compartments/__init__.py +12 -0
  132. bergendy-1.1.3/python/boundary/compartments/base.py +74 -0
  133. bergendy-1.1.3/python/boundary/compartments/runtime.py +201 -0
  134. bergendy-1.1.3/python/boundary/config.py +339 -0
  135. bergendy-1.1.3/python/boundary/contracts.py +158 -0
  136. bergendy-1.1.3/python/boundary/credentials.py +154 -0
  137. bergendy-1.1.3/python/boundary/cross_repo.py +544 -0
  138. bergendy-1.1.3/python/boundary/drift.py +186 -0
  139. bergendy-1.1.3/python/boundary/engine/__init__.py +1 -0
  140. bergendy-1.1.3/python/boundary/engine/events.py +36 -0
  141. bergendy-1.1.3/python/boundary/engine/execution.py +221 -0
  142. bergendy-1.1.3/python/boundary/engine/integration.py +150 -0
  143. bergendy-1.1.3/python/boundary/engine/lane.py +122 -0
  144. bergendy-1.1.3/python/boundary/engine/pty_supervisor.py +103 -0
  145. bergendy-1.1.3/python/boundary/engine/session.py +295 -0
  146. bergendy-1.1.3/python/boundary/engine/tracer.py +117 -0
  147. bergendy-1.1.3/python/boundary/formatters.py +22 -0
  148. bergendy-1.1.3/python/boundary/git_ops.py +61 -0
  149. bergendy-1.1.3/python/boundary/github/__init__.py +17 -0
  150. bergendy-1.1.3/python/boundary/github/client.py +359 -0
  151. bergendy-1.1.3/python/boundary/github/dashboard.py +158 -0
  152. bergendy-1.1.3/python/boundary/github/howl_bot.py +195 -0
  153. bergendy-1.1.3/python/boundary/github/hunt_bot.py +52 -0
  154. bergendy-1.1.3/python/boundary/github/installations.py +93 -0
  155. bergendy-1.1.3/python/boundary/github/pr_bot.py +542 -0
  156. bergendy-1.1.3/python/boundary/github/pr_render.py +196 -0
  157. bergendy-1.1.3/python/boundary/github/provisioning.py +159 -0
  158. bergendy-1.1.3/python/boundary/github/push_events.py +63 -0
  159. bergendy-1.1.3/python/boundary/github/trust_pr.py +183 -0
  160. bergendy-1.1.3/python/boundary/github/watch.py +104 -0
  161. bergendy-1.1.3/python/boundary/github/webhook_server.py +148 -0
  162. bergendy-1.1.3/python/boundary/graph.py +34 -0
  163. bergendy-1.1.3/python/boundary/hooks/__init__.py +26 -0
  164. bergendy-1.1.3/python/boundary/hooks/base.py +381 -0
  165. bergendy-1.1.3/python/boundary/hunt.py +2182 -0
  166. bergendy-1.1.3/python/boundary/hunt_ports.py +458 -0
  167. bergendy-1.1.3/python/boundary/intelligence.py +129 -0
  168. bergendy-1.1.3/python/boundary/knowledge.py +316 -0
  169. bergendy-1.1.3/python/boundary/llm.py +248 -0
  170. bergendy-1.1.3/python/boundary/maintenance.py +387 -0
  171. bergendy-1.1.3/python/boundary/maintenance_agents.py +45 -0
  172. bergendy-1.1.3/python/boundary/mcp_server.py +269 -0
  173. bergendy-1.1.3/python/boundary/patch_writer.py +178 -0
  174. bergendy-1.1.3/python/boundary/pipeline.py +907 -0
  175. bergendy-1.1.3/python/boundary/prompts/go.md +9 -0
  176. bergendy-1.1.3/python/boundary/prompts/java.md +9 -0
  177. bergendy-1.1.3/python/boundary/prompts/ruby.md +8 -0
  178. bergendy-1.1.3/python/boundary/prompts/schema_gen.txt +9 -0
  179. bergendy-1.1.3/python/boundary/providers/__init__.py +10 -0
  180. bergendy-1.1.3/python/boundary/providers/registry.py +354 -0
  181. bergendy-1.1.3/python/boundary/redact.py +90 -0
  182. bergendy-1.1.3/python/boundary/repo_identity.py +192 -0
  183. bergendy-1.1.3/python/boundary/runtime_scan.py +123 -0
  184. bergendy-1.1.3/python/boundary/sandbox/__init__.py +1 -0
  185. bergendy-1.1.3/python/boundary/sandbox/box.py +236 -0
  186. bergendy-1.1.3/python/boundary/sandbox/compression.py +25 -0
  187. bergendy-1.1.3/python/boundary/sandbox/enforcer.py +211 -0
  188. bergendy-1.1.3/python/boundary/sandbox/proxy.py +230 -0
  189. bergendy-1.1.3/python/boundary/sandbox/snapshot.py +134 -0
  190. bergendy-1.1.3/python/boundary/sandbox/task_profile.py +17 -0
  191. bergendy-1.1.3/python/boundary/shield.py +218 -0
  192. bergendy-1.1.3/python/boundary/test_runner.py +102 -0
  193. bergendy-1.1.3/python/boundary/traffic_drift.py +39 -0
  194. bergendy-1.1.3/python/boundary/work_graph.py +199 -0
  195. bergendy-1.1.3/scripts/run_all_tests.py +46 -0
  196. bergendy-1.1.3/sdk/README.md +71 -0
  197. bergendy-1.1.3/sdk/boundary/capture.js +43 -0
  198. bergendy-1.1.3/sdk/go/boundary.go +32 -0
  199. bergendy-1.1.3/sdk/java/Boundary.java +25 -0
  200. bergendy-1.1.3/sdk/nextjs/package.json +51 -0
  201. bergendy-1.1.3/sdk/nextjs/src/config.js +134 -0
  202. bergendy-1.1.3/sdk/nextjs/src/edge.js +131 -0
  203. bergendy-1.1.3/sdk/nextjs/src/index.js +14 -0
  204. bergendy-1.1.3/sdk/nextjs/src/instrumentation.js +149 -0
  205. bergendy-1.1.3/sdk/nextjs/test/nextjs.test.mjs +141 -0
  206. bergendy-1.1.3/sdk/ruby/boundary.rb +26 -0
  207. bergendy-1.1.3/sdk/typescript/LICENSE +26 -0
  208. bergendy-1.1.3/sdk/typescript/index.d.ts +17 -0
  209. bergendy-1.1.3/sdk/typescript/index.js +326 -0
  210. bergendy-1.1.3/sdk/typescript/instrument.js +155 -0
  211. bergendy-1.1.3/sdk/typescript/package-lock.json +46 -0
  212. bergendy-1.1.3/sdk/typescript/package.json +59 -0
  213. bergendy-1.1.3/sdk/typescript/test/mock_proxy.test.mjs +57 -0
  214. bergendy-1.1.3/sdk/typescript/test/smoke.mjs +83 -0
  215. bergendy-1.1.3/src/engines/ast/locator.rs +572 -0
  216. bergendy-1.1.3/src/engines/ast/mod.rs +8 -0
  217. bergendy-1.1.3/src/engines/ast/types.rs +73 -0
  218. bergendy-1.1.3/src/engines/autopatch/contracts.rs +370 -0
  219. bergendy-1.1.3/src/engines/autopatch/evidence.rs +411 -0
  220. bergendy-1.1.3/src/engines/autopatch/inventory.rs +327 -0
  221. bergendy-1.1.3/src/engines/autopatch/manifest_lockfile.rs +410 -0
  222. bergendy-1.1.3/src/engines/autopatch/mod.rs +29 -0
  223. bergendy-1.1.3/src/engines/autopatch/planner.rs +505 -0
  224. bergendy-1.1.3/src/engines/autopatch/policy.rs +142 -0
  225. bergendy-1.1.3/src/engines/autopatch/report.rs +452 -0
  226. bergendy-1.1.3/src/engines/autopatch/resolver.rs +675 -0
  227. bergendy-1.1.3/src/engines/autopatch/types.rs +191 -0
  228. bergendy-1.1.3/src/engines/autopatch/workflow.rs +295 -0
  229. bergendy-1.1.3/src/engines/graph/builder.rs +224 -0
  230. bergendy-1.1.3/src/engines/graph/mod.rs +6 -0
  231. bergendy-1.1.3/src/engines/graph/query.rs +114 -0
  232. bergendy-1.1.3/src/engines/graph/types.rs +149 -0
  233. bergendy-1.1.3/src/engines/mod.rs +5 -0
  234. bergendy-1.1.3/src/engines/rewriter.rs +136 -0
  235. bergendy-1.1.3/src/engines/schema/diff.rs +484 -0
  236. bergendy-1.1.3/src/engines/schema/mod.rs +12 -0
  237. bergendy-1.1.3/src/engines/schema/parser.rs +258 -0
  238. bergendy-1.1.3/src/engines/schema/types.rs +88 -0
  239. bergendy-1.1.3/src/lib.rs +11 -0
  240. bergendy-1.1.3/src/py_bindings.rs +174 -0
  241. bergendy-1.1.3/src/runtime/ccr/mod.rs +174 -0
  242. bergendy-1.1.3/src/runtime/compartments/mod.rs +231 -0
  243. bergendy-1.1.3/src/runtime/credential.rs +72 -0
  244. bergendy-1.1.3/src/runtime/enforcer.rs +146 -0
  245. bergendy-1.1.3/src/runtime/mod.rs +5 -0
  246. bergendy-1.1.3/src/runtime/snapshot.rs +250 -0
  247. bergendy-1.1.3/src/sandbox/linux.rs +318 -0
  248. bergendy-1.1.3/src/sandbox/macos.rs +242 -0
  249. bergendy-1.1.3/src/sandbox/mod.rs +77 -0
  250. bergendy-1.1.3/tests/boundary/test_boundary_e2e.py +171 -0
  251. bergendy-1.1.3/tests/conftest.py +65 -0
  252. bergendy-1.1.3/tests/test_ai_planner.py +112 -0
  253. bergendy-1.1.3/tests/test_ai_reasoning.py +123 -0
  254. bergendy-1.1.3/tests/test_alias_repair.py +88 -0
  255. bergendy-1.1.3/tests/test_audit_cli.py +146 -0
  256. bergendy-1.1.3/tests/test_audit_regressions.py +165 -0
  257. bergendy-1.1.3/tests/test_auth_gating.py +137 -0
  258. bergendy-1.1.3/tests/test_autopatch_cli.py +176 -0
  259. bergendy-1.1.3/tests/test_autopatch_sdk.py +215 -0
  260. bergendy-1.1.3/tests/test_bot_mentions.py +36 -0
  261. bergendy-1.1.3/tests/test_boundary_runtime.py +123 -0
  262. bergendy-1.1.3/tests/test_box_lifecycle.py +63 -0
  263. bergendy-1.1.3/tests/test_change_commands.py +275 -0
  264. bergendy-1.1.3/tests/test_change_source.py +49 -0
  265. bergendy-1.1.3/tests/test_config.py +101 -0
  266. bergendy-1.1.3/tests/test_consult.py +187 -0
  267. bergendy-1.1.3/tests/test_credential_scoping.py +42 -0
  268. bergendy-1.1.3/tests/test_cross_repo_impact.py +181 -0
  269. bergendy-1.1.3/tests/test_customer_e2e_flow.py +206 -0
  270. bergendy-1.1.3/tests/test_decision.py +71 -0
  271. bergendy-1.1.3/tests/test_deep_edge_cases.py +242 -0
  272. bergendy-1.1.3/tests/test_dependency_graph.py +42 -0
  273. bergendy-1.1.3/tests/test_detect_changes.py +49 -0
  274. bergendy-1.1.3/tests/test_doctor.py +77 -0
  275. bergendy-1.1.3/tests/test_e2e_full_suite.py +482 -0
  276. bergendy-1.1.3/tests/test_e2e_golden_run.py +287 -0
  277. bergendy-1.1.3/tests/test_exec_compartment.py +265 -0
  278. bergendy-1.1.3/tests/test_execution.py +80 -0
  279. bergendy-1.1.3/tests/test_git_trailers.py +141 -0
  280. bergendy-1.1.3/tests/test_github_integration.py +133 -0
  281. bergendy-1.1.3/tests/test_hooks.py +137 -0
  282. bergendy-1.1.3/tests/test_hostile_concurrency.py +223 -0
  283. bergendy-1.1.3/tests/test_howl_hunt_bots.py +225 -0
  284. bergendy-1.1.3/tests/test_howl_permissions.py +71 -0
  285. bergendy-1.1.3/tests/test_hunt.py +311 -0
  286. bergendy-1.1.3/tests/test_hunt_contracts.py +724 -0
  287. bergendy-1.1.3/tests/test_hunt_safety.py +367 -0
  288. bergendy-1.1.3/tests/test_incremental_index.py +56 -0
  289. bergendy-1.1.3/tests/test_installations.py +60 -0
  290. bergendy-1.1.3/tests/test_knowledge.py +86 -0
  291. bergendy-1.1.3/tests/test_lanes_and_integration.py +57 -0
  292. bergendy-1.1.3/tests/test_llm_client.py +96 -0
  293. bergendy-1.1.3/tests/test_maintenance_agents.py +7 -0
  294. bergendy-1.1.3/tests/test_maintenance_loop.py +82 -0
  295. bergendy-1.1.3/tests/test_pipeline.py +272 -0
  296. bergendy-1.1.3/tests/test_pr_bot.py +280 -0
  297. bergendy-1.1.3/tests/test_pr_checkout.py +75 -0
  298. bergendy-1.1.3/tests/test_pr_surface.py +84 -0
  299. bergendy-1.1.3/tests/test_provider_registry.py +40 -0
  300. bergendy-1.1.3/tests/test_provisioning.py +54 -0
  301. bergendy-1.1.3/tests/test_proxy.py +132 -0
  302. bergendy-1.1.3/tests/test_pty_supervisor.py +59 -0
  303. bergendy-1.1.3/tests/test_push_exact_sha.py +88 -0
  304. bergendy-1.1.3/tests/test_push_work_graph.py +84 -0
  305. bergendy-1.1.3/tests/test_redact.py +109 -0
  306. bergendy-1.1.3/tests/test_repo_identity.py +113 -0
  307. bergendy-1.1.3/tests/test_session.py +56 -0
  308. bergendy-1.1.3/tests/test_snapshot.py +304 -0
  309. bergendy-1.1.3/tests/test_watch.py +56 -0
  310. bergendy-1.1.3/tests/test_work_impact_e2e.py +160 -0
  311. bergendy-1.1.3/tests/test_work_impact_hunt.py +181 -0
  312. bergendy-1.1.3/tests/test_work_impact_notify.py +273 -0
  313. bergendy-1.1.3/tests/test_workflow_branch_and_step.py +287 -0
  314. bergendy-1.1.3/tests/test_workflow_run.py +239 -0
  315. bergendy-1.1.3/tests/test_workspace_activation.py +87 -0
  316. bergendy-1.1.3/trials/fixtures/calcom_stripe/package.json +7 -0
  317. bergendy-1.1.3/trials/fixtures/calcom_stripe/packages/features/ee/billing/stripe.test.ts +8 -0
  318. bergendy-1.1.3/trials/fixtures/calcom_stripe/packages/features/ee/billing/stripe.ts +26 -0
  319. bergendy-1.1.3/trials/fixtures/calcom_stripe/specs/stripe_v11.json +22 -0
  320. bergendy-1.1.3/trials/fixtures/calcom_stripe/specs/stripe_v13.json +22 -0
  321. bergendy-1.1.3/trials/fixtures/calcom_stripe/test/run.js +20 -0
  322. bergendy-1.1.3/trials/fixtures/calcom_twilio/package.json +6 -0
  323. bergendy-1.1.3/trials/fixtures/calcom_twilio/specs/twilio_v1.json +1 -0
  324. bergendy-1.1.3/trials/fixtures/calcom_twilio/specs/twilio_v2.json +1 -0
  325. bergendy-1.1.3/trials/fixtures/calcom_twilio/src/sms.ts +7 -0
  326. bergendy-1.1.3/trials/fixtures/langchainjs_openai/package.json +7 -0
  327. bergendy-1.1.3/trials/fixtures/langchainjs_openai/specs/openai_v3.json +22 -0
  328. bergendy-1.1.3/trials/fixtures/langchainjs_openai/specs/openai_v4.json +22 -0
  329. bergendy-1.1.3/trials/fixtures/langchainjs_openai/src/chat_models/openai.ts +24 -0
  330. bergendy-1.1.3/trials/fixtures/langchainjs_openai/src/embeddings/openai.ts +18 -0
  331. bergendy-1.1.3/trials/fixtures/langchainjs_openai/test/openai.test.ts +9 -0
  332. bergendy-1.1.3/trials/fixtures/langchainjs_openai/test/run.js +20 -0
  333. bergendy-1.1.3/trials/fixtures/renovate_octokit/package.json +6 -0
  334. bergendy-1.1.3/trials/fixtures/renovate_octokit/specs/octokit_v16.json +1 -0
  335. bergendy-1.1.3/trials/fixtures/renovate_octokit/specs/octokit_v17.json +1 -0
  336. bergendy-1.1.3/trials/fixtures/renovate_octokit/src/github.ts +5 -0
  337. bergendy-1.1.3/trials/fixtures/sentry_hub/package.json +6 -0
  338. bergendy-1.1.3/trials/fixtures/sentry_hub/specs/sentry_v7.json +1 -0
  339. bergendy-1.1.3/trials/fixtures/sentry_hub/specs/sentry_v8.json +1 -0
  340. bergendy-1.1.3/trials/fixtures/sentry_hub/src/monitoring.ts +8 -0
  341. bergendy-1.1.3/trials/fixtures/sentry_hub/test/run.js +20 -0
  342. bergendy-1.1.3/trials/fixtures/serverless_aws/package.json +6 -0
  343. bergendy-1.1.3/trials/fixtures/serverless_aws/specs/aws_v2.json +1 -0
  344. bergendy-1.1.3/trials/fixtures/serverless_aws/specs/aws_v3.json +1 -0
  345. bergendy-1.1.3/trials/fixtures/serverless_aws/src/storage.ts +7 -0
  346. bergendy-1.1.3/trials/fixtures/serverless_aws/test/run.js +20 -0
  347. bergendy-1.1.3/trials/fixtures/smol_ai_anthropic/package.json +6 -0
  348. bergendy-1.1.3/trials/fixtures/smol_ai_anthropic/specs/anthropic_v1.json +1 -0
  349. bergendy-1.1.3/trials/fixtures/smol_ai_anthropic/specs/anthropic_v2.json +1 -0
  350. bergendy-1.1.3/trials/fixtures/smol_ai_anthropic/src/prompt.ts +11 -0
  351. bergendy-1.1.3/trials/fixtures/supabase_auth/package.json +6 -0
  352. bergendy-1.1.3/trials/fixtures/supabase_auth/specs/supabase_v1.json +1 -0
  353. bergendy-1.1.3/trials/fixtures/supabase_auth/specs/supabase_v2.json +1 -0
  354. bergendy-1.1.3/trials/fixtures/supabase_auth/src/session.ts +7 -0
  355. bergendy-1.1.3/trials/fixtures/taxonomy_stripe/package.json +6 -0
  356. bergendy-1.1.3/trials/fixtures/taxonomy_stripe/specs/stripe_v21.json +1 -0
  357. bergendy-1.1.3/trials/fixtures/taxonomy_stripe/specs/stripe_v22.json +1 -0
  358. bergendy-1.1.3/trials/fixtures/taxonomy_stripe/src/billing.ts +10 -0
  359. bergendy-1.1.3/trials/fixtures/taxonomy_stripe/test/run.js +20 -0
  360. bergendy-1.1.3/trials/fixtures/uploadthing_clerk/package.json +6 -0
  361. bergendy-1.1.3/trials/fixtures/uploadthing_clerk/specs/clerk_v4.json +1 -0
  362. bergendy-1.1.3/trials/fixtures/uploadthing_clerk/specs/clerk_v5.json +1 -0
  363. bergendy-1.1.3/trials/fixtures/uploadthing_clerk/src/middleware.ts +5 -0
  364. bergendy-1.1.3/trials/fixtures/uploadthing_clerk/test/run.js +20 -0
@@ -0,0 +1,10 @@
1
+ target/
2
+ .venv/
3
+ __pycache__/
4
+ .pytest_cache/
5
+ logs/
6
+ .boundary/
7
+ .git/
8
+ trials/
9
+ docs/
10
+ sdk/typescript/node_modules/
@@ -0,0 +1,18 @@
1
+ name: boundary-gate
2
+ on:
3
+ pull_request:
4
+ push:
5
+ branches: [main]
6
+ jobs:
7
+ gate:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - uses: actions/setup-python@v5
12
+ with:
13
+ python-version: "3.12"
14
+ - name: Install boundary
15
+ run: pip install -e . 2>/dev/null || pip install .
16
+ - name: Contract Gate (fail-closed on unvalidated boundaries)
17
+ run: boundary gate . --ci
18
+
@@ -0,0 +1,22 @@
1
+ name: ci
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-python@v5
14
+ with:
15
+ python-version: "3.12"
16
+ - uses: dtolnay/rust-toolchain@stable
17
+ - run: pip install ruff maturin pytest pyyaml blake3 "pyjwt[crypto]>=2.8.0"
18
+ - run: maturin build --release --out dist
19
+ - run: pip install dist/*.whl --force-reinstall
20
+ - run: python -c "import bergendy._core as c, shutil, os; shutil.copy(c.__file__, 'python/bergendy/'); shutil.copy(c.__file__, 'python/boundary/') if os.path.exists('python/boundary') else None"
21
+ - run: python scripts/run_all_tests.py
22
+
@@ -0,0 +1,49 @@
1
+ name: publish
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+
7
+ jobs:
8
+ build-wheels:
9
+ strategy:
10
+ matrix:
11
+ os: [ubuntu-latest, macos-latest, windows-latest]
12
+ runs-on: ${{ matrix.os }}
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: PyO3/maturin-action@v1
16
+ with:
17
+ command: build
18
+ args: --release --out dist
19
+ manylinux: auto
20
+ - uses: actions/upload-artifact@v4
21
+ with:
22
+ name: wheels-${{ matrix.os }}
23
+ path: dist
24
+
25
+ sdist:
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - uses: PyO3/maturin-action@v1
30
+ with:
31
+ command: sdist
32
+ args: --out dist
33
+ - uses: actions/upload-artifact@v4
34
+ with:
35
+ name: wheels-sdist
36
+ path: dist
37
+
38
+ publish:
39
+ needs: [build-wheels, sdist]
40
+ runs-on: ubuntu-latest
41
+ environment: pypi
42
+ permissions:
43
+ id-token: write
44
+ steps:
45
+ - uses: actions/download-artifact@v4
46
+ with:
47
+ path: dist
48
+ merge-multiple: true
49
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,62 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ contents: write
10
+
11
+ jobs:
12
+ build-binaries:
13
+ name: Build ${{ matrix.target }}
14
+ runs-on: ${{ matrix.os }}
15
+ strategy:
16
+ matrix:
17
+ include:
18
+ - target: aarch64-apple-darwin
19
+ os: macos-latest
20
+ - target: x86_64-apple-darwin
21
+ os: macos-13
22
+ - target: x86_64-unknown-linux-gnu
23
+ os: ubuntu-latest
24
+ - target: aarch64-unknown-linux-gnu
25
+ os: ubuntu-latest
26
+
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - uses: dtolnay/rust-toolchain@stable
30
+ with:
31
+ targets: ${{ matrix.target }}
32
+
33
+ - name: Build Binary
34
+ run: cargo build --release --target ${{ matrix.target }}
35
+
36
+ - name: Package Binary
37
+ shell: bash
38
+ run: |
39
+ mkdir -p staging
40
+ cp target/${{ matrix.target }}/release/libbergendy_core.* staging/ 2>/dev/null || cp target/${{ matrix.target }}/release/libboundary_core.* staging/ 2>/dev/null || true
41
+ tar -czvf bergendy-${{ matrix.target }}.tar.gz -C staging .
42
+
43
+ - name: Upload Artifact
44
+ uses: actions/upload-artifact@v4
45
+ with:
46
+ name: bergendy-${{ matrix.target }}
47
+ path: bergendy-${{ matrix.target }}.tar.gz
48
+
49
+ publish-release:
50
+ needs: [build-binaries]
51
+ runs-on: ubuntu-latest
52
+ steps:
53
+ - uses: actions/checkout@v4
54
+ - uses: actions/download-artifact@v4
55
+ with:
56
+ path: dist
57
+
58
+ - name: Create GitHub Release
59
+ uses: softprops/action-gh-release@v2
60
+ with:
61
+ files: dist/**/*.tar.gz
62
+ generate_release_notes: true
@@ -0,0 +1,37 @@
1
+ # Rust build artifacts
2
+ /target/
3
+
4
+ # Python artifacts
5
+ __pycache__/
6
+ *.pyc
7
+ *.pyo
8
+ *.pyd
9
+ *.so
10
+ *.dylib
11
+ *.egg-info/
12
+ dist/
13
+ build/
14
+ .pytest_cache/
15
+ .venv/
16
+
17
+ # Boundary transient state
18
+ .boundary/
19
+
20
+ # Language SDK artifacts
21
+ sdk/typescript/node_modules/
22
+ sdk/typescript/*.node
23
+ sdk/typescript/native/target/
24
+ sdk/typescript/native/Cargo.lock
25
+ sdk/typescript/*.tgz
26
+ sdk/typescript/sdk-darwin-*/
27
+
28
+ # Bench & transient state
29
+ .DS_Store
30
+ .opencode/
31
+ logs/
32
+ .agents/
33
+ .claude/
34
+ .envrc
35
+
36
+ # Test runs write index state into fixture checkouts; never commit it
37
+ trials/**/.boundary/
@@ -0,0 +1,15 @@
1
+ - id: boundary-gate
2
+ name: boundary gate
3
+ description: Block commits introducing unvalidated external network boundaries
4
+ entry: boundary gate
5
+ language: python
6
+ types_or: [javascript, jsx, ts, tsx, python, go]
7
+ pass_filenames: true
8
+
9
+ - id: boundary-guard
10
+ name: boundary guard
11
+ description: Block commits introducing unvalidated external network boundaries
12
+ entry: boundary gate
13
+ language: python
14
+ types_or: [javascript, jsx, ts, tsx, python, go]
15
+ pass_filenames: true
@@ -0,0 +1,45 @@
1
+ # Changelog
2
+
3
+ All notable changes to Boundary are documented here.
4
+
5
+ ## [1.1.3] - 2026-09-15
6
+
7
+ ### Added
8
+ - **Autonomous Polyglot Runtime Boundaries**:
9
+ - `boundary resolve`: LLM-driven contract synthesis supporting TypeScript/JavaScript (Zod), Python (Pydantic), and Go (`struct` with JSON tags).
10
+ - Context & Payload Isolation: strictly extracts and models `response_body` telemetry, preventing wrapper hallucination.
11
+ - "No-Swallow" AST Verification: rejects patches that wrap validation checks in silent error-suppressing blocks.
12
+ - Polyglot AST Rewriter (`src/engines/rewriter.rs`): injects `.parse(data)` and `Schema.parse(await res.json())` directly at client callsites.
13
+ - **BYOK AI Credentials**:
14
+ - `boundary auth`: provider authentication (Groq, OpenAI, Anthropic); credentials in `~/.boundary/credentials.json` (0600).
15
+ - **Enterprise Command Suite**:
16
+ - `boundary scan`: alias of `boundary check`; locates external API drift and unvalidated boundaries.
17
+ - `boundary score`: 0-100 repo health score (SDK drift + unvalidated runtime calls).
18
+ - `boundary scout`: read-only audit — maps boundaries, warns, touches nothing.
19
+ - `boundary shield`: pre-commit enforcement + schema generation (`--on/--off/--fix/--status`).
20
+ - `boundary dev`: run your app with live traffic capture into `.boundary/contracts.db`.
21
+ - **Hermetic Sandbox Replay (Ghost Proxy)**:
22
+ - Rust mock proxy infrastructure for offline, deterministic replaying of captured network telemetry during sandboxed verification (reachable at `127.0.0.1:54321`).
23
+ - **MCP Server**:
24
+ - `boundary mcp`: Model Context Protocol server for AI assistants.
25
+
26
+ ### Changed
27
+ - Standardized CLI output format.
28
+
29
+ ## [1.1.0] - 2026-09-01
30
+
31
+ ### Added
32
+ - **Core Rust Engine (`boundary-core`)**:
33
+ - High-performance AST analysis and external-change dependency graph (`src/engines/graph/`).
34
+ - OpenAPI and JSON schema diffing engine (`src/engines/schema/`).
35
+ - Operating system sandbox isolation: macOS `sandbox-exec` profile generator and Linux `landlock` enforcement.
36
+ - Instant worktree snapshotting and content-addressed cache (`src/runtime/`).
37
+ - **BYOK AI Credentials**:
38
+ - Secure credential storage in `~/.boundary/credentials.json`.
39
+ - **Telemetry Capture**:
40
+ - Outbound HTTP interception and structured `HttpExchange` logging.
41
+
42
+ ## [1.0.0] - 2026-08-15
43
+
44
+ ### Added
45
+ - Initial release of Boundary: Autonomous External-Change Intelligence & Controlled Execution.
bergendy-1.1.3/CLA.md ADDED
@@ -0,0 +1,25 @@
1
+ # Contributor License Agreement
2
+
3
+ Thank you for contributing to Boundary.
4
+
5
+ By submitting a pull request, comment, or any other contribution to this
6
+ repository, you agree to the following:
7
+
8
+ 1. **Copyright license.** You grant Boundary Labs (Tanmay Jayant Devare) a
9
+ perpetual, worldwide, non-exclusive, royalty-free, irrevocable license to
10
+ use, reproduce, modify, distribute, sublicense, and relicense your
11
+ contribution as part of Boundary - including under proprietary or dual-license
12
+ terms in future commercial offerings.
13
+
14
+ 2. **Patent license.** To the extent you hold patent claims covering your
15
+ contribution, you grant the same rights for those claims.
16
+
17
+ 3. **You have the right to contribute.** You confirm the contribution is your
18
+ own work (or you are authorized to submit it) and does not violate any
19
+ third-party license or agreement.
20
+
21
+ 4. **No obligation.** Submitting a contribution does not guarantee it will be
22
+ merged or maintained.
23
+
24
+ Your original authorship is always recorded in git history. This agreement
25
+ only covers licensing; attribution stays with you.
@@ -0,0 +1,17 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ ## Our Standards
8
+
9
+ Examples of behavior that contributes to a positive environment:
10
+ - Demonstrating empathy and kindness toward other people
11
+ - Being respectful of differing opinions, viewpoints, and experiences
12
+ - Giving and gracefully accepting constructive feedback
13
+ - Accepting responsibility and apologizing to those affected by our mistakes
14
+
15
+ ## Enforcement
16
+
17
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project team at `conduct@boundary.dev`.
@@ -0,0 +1,25 @@
1
+ # Contributing to Boundary
2
+
3
+ We welcome contributions to the Boundary source-available runtime!
4
+
5
+ ## Licensing & License Agreement
6
+
7
+ By contributing to Boundary, you agree that your contributions will be licensed under the [Apache License 2.0](LICENSE), and to the terms of the [CLA](CLA.md).
8
+
9
+ ## Development Setup
10
+
11
+ 1. **Prerequisites**: Python >= 3.10, Rust >= 1.75, `maturin` (`pip install maturin`).
12
+ 2. **Build Native Extension**:
13
+ ```bash
14
+ maturin develop
15
+ ```
16
+ 3. **Run Tests**:
17
+ ```bash
18
+ python3 -m pytest
19
+ ```
20
+
21
+ ## Pull Request Guidelines
22
+
23
+ - Ensure all existing unit and E2E tests pass.
24
+ - Write unit tests for new features or bug fixes.
25
+ - Keep changes focused, surgical, and well-documented.