agenticreq 0.1.0a1__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 (313) hide show
  1. agenticreq-0.1.0a1/.gitignore +56 -0
  2. agenticreq-0.1.0a1/CHANGELOG.md +34 -0
  3. agenticreq-0.1.0a1/CODE_OF_CONDUCT.md +52 -0
  4. agenticreq-0.1.0a1/CONTRIBUTING.md +48 -0
  5. agenticreq-0.1.0a1/LICENSE +202 -0
  6. agenticreq-0.1.0a1/PKG-INFO +191 -0
  7. agenticreq-0.1.0a1/README.md +133 -0
  8. agenticreq-0.1.0a1/SECURITY.md +32 -0
  9. agenticreq-0.1.0a1/action.yml +92 -0
  10. agenticreq-0.1.0a1/docs/architecture.md +53 -0
  11. agenticreq-0.1.0a1/docs/code-pattern-rules.md +45 -0
  12. agenticreq-0.1.0a1/docs/github-action.md +65 -0
  13. agenticreq-0.1.0a1/docs/numbers.md +49 -0
  14. agenticreq-0.1.0a1/docs/tools-and-mock-runs.md +65 -0
  15. agenticreq-0.1.0a1/pyproject.toml +136 -0
  16. agenticreq-0.1.0a1/scripts/export_schema.py +33 -0
  17. agenticreq-0.1.0a1/spec.schema.json +3698 -0
  18. agenticreq-0.1.0a1/src/agenticreq/__init__.py +3 -0
  19. agenticreq-0.1.0a1/src/agenticreq/ast/__init__.py +5 -0
  20. agenticreq-0.1.0a1/src/agenticreq/ast/agent_discovery.py +845 -0
  21. agenticreq-0.1.0a1/src/agenticreq/ast/body_analysis.py +354 -0
  22. agenticreq-0.1.0a1/src/agenticreq/ast/classify.py +386 -0
  23. agenticreq-0.1.0a1/src/agenticreq/ast/constants.py +143 -0
  24. agenticreq-0.1.0a1/src/agenticreq/ast/effects.py +736 -0
  25. agenticreq-0.1.0a1/src/agenticreq/ast/envvalues.py +147 -0
  26. agenticreq-0.1.0a1/src/agenticreq/ast/evaluate.py +793 -0
  27. agenticreq-0.1.0a1/src/agenticreq/ast/extract_support.py +782 -0
  28. agenticreq-0.1.0a1/src/agenticreq/ast/extractor.py +574 -0
  29. agenticreq-0.1.0a1/src/agenticreq/ast/framework.py +389 -0
  30. agenticreq-0.1.0a1/src/agenticreq/ast/limits.py +391 -0
  31. agenticreq-0.1.0a1/src/agenticreq/ast/paths.py +211 -0
  32. agenticreq-0.1.0a1/src/agenticreq/ast/schema.py +317 -0
  33. agenticreq-0.1.0a1/src/agenticreq/ast/signals.py +711 -0
  34. agenticreq-0.1.0a1/src/agenticreq/ast/symbols.py +283 -0
  35. agenticreq-0.1.0a1/src/agenticreq/ast/tool_binding.py +928 -0
  36. agenticreq-0.1.0a1/src/agenticreq/ast/tool_discovery.py +550 -0
  37. agenticreq-0.1.0a1/src/agenticreq/capture/__init__.py +15 -0
  38. agenticreq-0.1.0a1/src/agenticreq/capture/discover.py +582 -0
  39. agenticreq-0.1.0a1/src/agenticreq/capture/entry.py +15 -0
  40. agenticreq-0.1.0a1/src/agenticreq/capture/gates.py +112 -0
  41. agenticreq-0.1.0a1/src/agenticreq/capture/guard.py +458 -0
  42. agenticreq-0.1.0a1/src/agenticreq/capture/hook.py +175 -0
  43. agenticreq-0.1.0a1/src/agenticreq/capture/importers.py +85 -0
  44. agenticreq-0.1.0a1/src/agenticreq/capture/responder.py +477 -0
  45. agenticreq-0.1.0a1/src/agenticreq/capture/runner.py +373 -0
  46. agenticreq-0.1.0a1/src/agenticreq/capture/wire.py +193 -0
  47. agenticreq-0.1.0a1/src/agenticreq/cli.py +1129 -0
  48. agenticreq-0.1.0a1/src/agenticreq/coverage_table.py +86 -0
  49. agenticreq-0.1.0a1/src/agenticreq/data/__init__.py +41 -0
  50. agenticreq-0.1.0a1/src/agenticreq/data/action_verbs.yml +30 -0
  51. agenticreq-0.1.0a1/src/agenticreq/data/framework_defaults.yml +19 -0
  52. agenticreq-0.1.0a1/src/agenticreq/data/known_injected_tools.yml +30 -0
  53. agenticreq-0.1.0a1/src/agenticreq/data/model_pins.yml +17 -0
  54. agenticreq-0.1.0a1/src/agenticreq/data/provider_pinning.yml +19 -0
  55. agenticreq-0.1.0a1/src/agenticreq/data/supported_versions.yml +23 -0
  56. agenticreq-0.1.0a1/src/agenticreq/defaults/__init__.py +189 -0
  57. agenticreq-0.1.0a1/src/agenticreq/defaults/profiles/baseline.yml +4 -0
  58. agenticreq-0.1.0a1/src/agenticreq/defaults/profiles/finance.yml +10 -0
  59. agenticreq-0.1.0a1/src/agenticreq/derived.py +128 -0
  60. agenticreq-0.1.0a1/src/agenticreq/detectors/__init__.py +78 -0
  61. agenticreq-0.1.0a1/src/agenticreq/engine.py +275 -0
  62. agenticreq-0.1.0a1/src/agenticreq/export/__init__.py +300 -0
  63. agenticreq-0.1.0a1/src/agenticreq/fix/__init__.py +315 -0
  64. agenticreq-0.1.0a1/src/agenticreq/graph/__init__.py +1 -0
  65. agenticreq-0.1.0a1/src/agenticreq/graph/analysis.py +190 -0
  66. agenticreq-0.1.0a1/src/agenticreq/graph/builder.py +219 -0
  67. agenticreq-0.1.0a1/src/agenticreq/graph/origin.py +122 -0
  68. agenticreq-0.1.0a1/src/agenticreq/jsonschema_util.py +187 -0
  69. agenticreq-0.1.0a1/src/agenticreq/loader/__init__.py +6 -0
  70. agenticreq-0.1.0a1/src/agenticreq/loader/builder.py +163 -0
  71. agenticreq-0.1.0a1/src/agenticreq/loader/fix_spec.py +286 -0
  72. agenticreq-0.1.0a1/src/agenticreq/loader/issues.py +445 -0
  73. agenticreq-0.1.0a1/src/agenticreq/loader/routes.py +99 -0
  74. agenticreq-0.1.0a1/src/agenticreq/loader/yaml_loader.py +546 -0
  75. agenticreq-0.1.0a1/src/agenticreq/mcp/__init__.py +130 -0
  76. agenticreq-0.1.0a1/src/agenticreq/mockgen.py +585 -0
  77. agenticreq-0.1.0a1/src/agenticreq/models/__init__.py +26 -0
  78. agenticreq-0.1.0a1/src/agenticreq/models/confidence.py +89 -0
  79. agenticreq-0.1.0a1/src/agenticreq/models/finding.py +245 -0
  80. agenticreq-0.1.0a1/src/agenticreq/models/observed.py +397 -0
  81. agenticreq-0.1.0a1/src/agenticreq/models/spec.py +392 -0
  82. agenticreq-0.1.0a1/src/agenticreq/models/verdict.py +823 -0
  83. agenticreq-0.1.0a1/src/agenticreq/names.py +53 -0
  84. agenticreq-0.1.0a1/src/agenticreq/not_needed.py +186 -0
  85. agenticreq-0.1.0a1/src/agenticreq/observe.py +100 -0
  86. agenticreq-0.1.0a1/src/agenticreq/params.py +364 -0
  87. agenticreq-0.1.0a1/src/agenticreq/pathutil.py +39 -0
  88. agenticreq-0.1.0a1/src/agenticreq/progress.py +406 -0
  89. agenticreq-0.1.0a1/src/agenticreq/py.typed +0 -0
  90. agenticreq-0.1.0a1/src/agenticreq/pyenv.py +497 -0
  91. agenticreq-0.1.0a1/src/agenticreq/recognizers/__init__.py +63 -0
  92. agenticreq-0.1.0a1/src/agenticreq/recognizers/langgraph.py +98 -0
  93. agenticreq-0.1.0a1/src/agenticreq/report/__init__.py +7 -0
  94. agenticreq-0.1.0a1/src/agenticreq/report/console.py +357 -0
  95. agenticreq-0.1.0a1/src/agenticreq/report/grouping.py +42 -0
  96. agenticreq-0.1.0a1/src/agenticreq/report/json_report.py +102 -0
  97. agenticreq-0.1.0a1/src/agenticreq/report/sarif.py +179 -0
  98. agenticreq-0.1.0a1/src/agenticreq/report/term.py +95 -0
  99. agenticreq-0.1.0a1/src/agenticreq/rules/__init__.py +1 -0
  100. agenticreq-0.1.0a1/src/agenticreq/rules/attest.py +223 -0
  101. agenticreq-0.1.0a1/src/agenticreq/rules/base.py +90 -0
  102. agenticreq-0.1.0a1/src/agenticreq/rules/conformance.py +1594 -0
  103. agenticreq-0.1.0a1/src/agenticreq/rules/fidelity.py +242 -0
  104. agenticreq-0.1.0a1/src/agenticreq/rules/graph.py +461 -0
  105. agenticreq-0.1.0a1/src/agenticreq/rules/hygiene.py +580 -0
  106. agenticreq-0.1.0a1/src/agenticreq/rules/meta.py +334 -0
  107. agenticreq-0.1.0a1/src/agenticreq/rules/numeric.py +124 -0
  108. agenticreq-0.1.0a1/src/agenticreq/rules/registry.py +868 -0
  109. agenticreq-0.1.0a1/src/agenticreq/rules/runtime.py +281 -0
  110. agenticreq-0.1.0a1/src/agenticreq/rules/taint.py +297 -0
  111. agenticreq-0.1.0a1/src/agenticreq/rules/validate.py +417 -0
  112. agenticreq-0.1.0a1/src/agenticreq/scaffold.py +359 -0
  113. agenticreq-0.1.0a1/src/agenticreq/schema.py +102 -0
  114. agenticreq-0.1.0a1/src/agenticreq/shapes.py +217 -0
  115. agenticreq-0.1.0a1/src/agenticreq/signoff.py +116 -0
  116. agenticreq-0.1.0a1/src/agenticreq/spec.schema.json +3698 -0
  117. agenticreq-0.1.0a1/src/agenticreq/subfields.py +170 -0
  118. agenticreq-0.1.0a1/src/agenticreq/thresholds.py +336 -0
  119. agenticreq-0.1.0a1/src/agenticreq/traces/__init__.py +102 -0
  120. agenticreq-0.1.0a1/src/agenticreq/traces/coverage.py +126 -0
  121. agenticreq-0.1.0a1/src/agenticreq/versions.py +219 -0
  122. agenticreq-0.1.0a1/tests/conftest.py +47 -0
  123. agenticreq-0.1.0a1/tests/fixtures/agents/anthropic_beta/agent.py +36 -0
  124. agenticreq-0.1.0a1/tests/fixtures/agents/anthropic_beta/mocks.yml +2 -0
  125. agenticreq-0.1.0a1/tests/fixtures/agents/autogen_po/agent.py +30 -0
  126. agenticreq-0.1.0a1/tests/fixtures/agents/autogen_po/mocks.yml +3 -0
  127. agenticreq-0.1.0a1/tests/fixtures/agents/httpx2_async_stream/agent.py +39 -0
  128. agenticreq-0.1.0a1/tests/fixtures/agents/httpx2_async_stream/mocks.yml +1 -0
  129. agenticreq-0.1.0a1/tests/fixtures/agents/httpx_legacy/agent.py +34 -0
  130. agenticreq-0.1.0a1/tests/fixtures/agents/httpx_legacy/mocks.yml +1 -0
  131. agenticreq-0.1.0a1/tests/fixtures/agents/langgraph_po/agent.py +76 -0
  132. agenticreq-0.1.0a1/tests/fixtures/agents/langgraph_po/mocks.yml +4 -0
  133. agenticreq-0.1.0a1/tests/fixtures/agents/oai_agents_chain/agent.py +39 -0
  134. agenticreq-0.1.0a1/tests/fixtures/agents/oai_agents_chain/mocks.yml +3 -0
  135. agenticreq-0.1.0a1/tests/fixtures/agents/oai_agents_chain/spec.yml +26 -0
  136. agenticreq-0.1.0a1/tests/fixtures/agents/oai_agents_po/agent.py +48 -0
  137. agenticreq-0.1.0a1/tests/fixtures/agents/oai_agents_po/mocks.yml +4 -0
  138. agenticreq-0.1.0a1/tests/fixtures/agents/pydantic_ai_po/agent.py +31 -0
  139. agenticreq-0.1.0a1/tests/fixtures/agents/pydantic_ai_po/mocks.yml +3 -0
  140. agenticreq-0.1.0a1/tests/fixtures/agents/smol_code/agent.py +20 -0
  141. agenticreq-0.1.0a1/tests/fixtures/agents/smol_code/mocks.yml +6 -0
  142. agenticreq-0.1.0a1/tests/fixtures/agents/smol_tools/agent.py +32 -0
  143. agenticreq-0.1.0a1/tests/fixtures/agents/smol_tools/mocks.yml +5 -0
  144. agenticreq-0.1.0a1/tests/fixtures/agents_crewai/crew_po/agent.py +52 -0
  145. agenticreq-0.1.0a1/tests/fixtures/agents_crewai/crew_po/mocks.yml +8 -0
  146. agenticreq-0.1.0a1/tests/fixtures/agents_crewai/crew_spike_shape/agent.py +63 -0
  147. agenticreq-0.1.0a1/tests/fixtures/agents_crewai/crew_spike_shape/mocks.yml +7 -0
  148. agenticreq-0.1.0a1/tests/fixtures/agents_misc/bank_triage/agent.py +41 -0
  149. agenticreq-0.1.0a1/tests/fixtures/agents_misc/bank_triage/mocks.yml +18 -0
  150. agenticreq-0.1.0a1/tests/fixtures/agents_misc/bank_triage/spec.yml +26 -0
  151. agenticreq-0.1.0a1/tests/fixtures/agents_misc/bank_unreachable/agent.py +41 -0
  152. agenticreq-0.1.0a1/tests/fixtures/agents_misc/bank_unreachable/mocks.yml +15 -0
  153. agenticreq-0.1.0a1/tests/fixtures/agents_misc/bank_unreachable/spec.yml +25 -0
  154. agenticreq-0.1.0a1/tests/fixtures/agents_misc/email_payer/agent.py +27 -0
  155. agenticreq-0.1.0a1/tests/fixtures/agents_misc/email_payer/spec.yml +17 -0
  156. agenticreq-0.1.0a1/tests/fixtures/agents_misc/finance_like/finance_agents/__init__.py +0 -0
  157. agenticreq-0.1.0a1/tests/fixtures/agents_misc/finance_like/finance_agents/agents.py +21 -0
  158. agenticreq-0.1.0a1/tests/fixtures/agents_misc/finance_like/finance_agents/llm.py +7 -0
  159. agenticreq-0.1.0a1/tests/fixtures/agents_misc/finance_like/finance_agents/tools.py +47 -0
  160. agenticreq-0.1.0a1/tests/fixtures/agents_misc/finance_like/main.py +15 -0
  161. agenticreq-0.1.0a1/tests/fixtures/agents_misc/mock_run_app/helpdesk/__init__.py +0 -0
  162. agenticreq-0.1.0a1/tests/fixtures/agents_misc/mock_run_app/helpdesk/agents.py +18 -0
  163. agenticreq-0.1.0a1/tests/fixtures/agents_misc/mock_run_app/helpdesk/minifw.py +51 -0
  164. agenticreq-0.1.0a1/tests/fixtures/agents_misc/mock_run_app/helpdesk/tools.py +27 -0
  165. agenticreq-0.1.0a1/tests/fixtures/agents_misc/mock_run_app/spec.yml +19 -0
  166. agenticreq-0.1.0a1/tests/fixtures/agents_misc/multi_run_app/agent.py +25 -0
  167. agenticreq-0.1.0a1/tests/fixtures/agents_misc/multi_run_app/mocks.yml +10 -0
  168. agenticreq-0.1.0a1/tests/fixtures/agents_misc/urllib_bypass/agent.py +13 -0
  169. agenticreq-0.1.0a1/tests/fixtures/agents_misc/urllib_bypass/mocks.yml +1 -0
  170. agenticreq-0.1.0a1/tests/fixtures/captures/crewai_po.json +1519 -0
  171. agenticreq-0.1.0a1/tests/fixtures/captures/crewai_spike_shape.json +1424 -0
  172. agenticreq-0.1.0a1/tests/fixtures/captures/oai_agents_chain.json +712 -0
  173. agenticreq-0.1.0a1/tests/fixtures/captures/oai_agents_po.json +797 -0
  174. agenticreq-0.1.0a1/tests/fixtures/captures/smol_tools.json +533 -0
  175. agenticreq-0.1.0a1/tests/fixtures/e2e/langgraph_team/team/__init__.py +0 -0
  176. agenticreq-0.1.0a1/tests/fixtures/e2e/langgraph_team/team/agent.py +42 -0
  177. agenticreq-0.1.0a1/tests/fixtures/matrix/agno/agent.py +43 -0
  178. agenticreq-0.1.0a1/tests/fixtures/matrix/autogen/agent.py +44 -0
  179. agenticreq-0.1.0a1/tests/fixtures/matrix/crewai/agent.py +49 -0
  180. agenticreq-0.1.0a1/tests/fixtures/matrix/google_adk/agent.py +39 -0
  181. agenticreq-0.1.0a1/tests/fixtures/matrix/langgraph/agent.py +44 -0
  182. agenticreq-0.1.0a1/tests/fixtures/matrix/llamaindex/agent.py +42 -0
  183. agenticreq-0.1.0a1/tests/fixtures/matrix/make.py +319 -0
  184. agenticreq-0.1.0a1/tests/fixtures/matrix/openai_agents/agent.py +44 -0
  185. agenticreq-0.1.0a1/tests/fixtures/matrix/pydantic_ai/agent.py +43 -0
  186. agenticreq-0.1.0a1/tests/fixtures/matrix/smolagents/agent.py +49 -0
  187. agenticreq-0.1.0a1/tests/fixtures/matrix/strands/agent.py +40 -0
  188. agenticreq-0.1.0a1/tests/fixtures/mcp/fake_server.py +25 -0
  189. agenticreq-0.1.0a1/tests/fixtures/passfail/captured/agent.py +16 -0
  190. agenticreq-0.1.0a1/tests/fixtures/passfail/captured/captures.json +152 -0
  191. agenticreq-0.1.0a1/tests/fixtures/passfail/captured/spec.yml +37 -0
  192. agenticreq-0.1.0a1/tests/fixtures/passfail/clean/agent.py +16 -0
  193. agenticreq-0.1.0a1/tests/fixtures/passfail/clean/spec.yml +18 -0
  194. agenticreq-0.1.0a1/tests/fixtures/passfail/envmodel/agent.py +18 -0
  195. agenticreq-0.1.0a1/tests/fixtures/passfail/envmodel/spec.yml +19 -0
  196. agenticreq-0.1.0a1/tests/fixtures/passfail/mcp/agent.py +12 -0
  197. agenticreq-0.1.0a1/tests/fixtures/passfail/mcp/spec.yml +18 -0
  198. agenticreq-0.1.0a1/tests/fixtures/passfail/prohibited/agent.py +22 -0
  199. agenticreq-0.1.0a1/tests/fixtures/passfail/prohibited/spec.yml +18 -0
  200. agenticreq-0.1.0a1/tests/fixtures/passfail/two_agents/agent.py +27 -0
  201. agenticreq-0.1.0a1/tests/fixtures/runtime_proof/gated/agent.py +42 -0
  202. agenticreq-0.1.0a1/tests/fixtures/runtime_proof/spec.yml +17 -0
  203. agenticreq-0.1.0a1/tests/fixtures/runtime_proof/ungated/agent.py +40 -0
  204. agenticreq-0.1.0a1/tests/fixtures/specs/broken/01_prohibited_and_allowed.yml +33 -0
  205. agenticreq-0.1.0a1/tests/fixtures/specs/broken/02_prohibited_and_approval.yml +33 -0
  206. agenticreq-0.1.0a1/tests/fixtures/specs/broken/03_approver_missing.yml +32 -0
  207. agenticreq-0.1.0a1/tests/fixtures/specs/broken/04_todo_left.yml +33 -0
  208. agenticreq-0.1.0a1/tests/fixtures/specs/broken/05_limit_overlap.yml +31 -0
  209. agenticreq-0.1.0a1/tests/fixtures/specs/broken/06_limit_min_gt_max.yml +33 -0
  210. agenticreq-0.1.0a1/tests/fixtures/specs/broken/07_expired_waiver.yml +35 -0
  211. agenticreq-0.1.0a1/tests/fixtures/specs/broken/08_bad_risk_level.yml +33 -0
  212. agenticreq-0.1.0a1/tests/fixtures/specs/broken/09_prose_escalation.yml +33 -0
  213. agenticreq-0.1.0a1/tests/fixtures/specs/broken/10_timeout_proceeds.yml +33 -0
  214. agenticreq-0.1.0a1/tests/fixtures/specs/broken/11_below_floor.yml +35 -0
  215. agenticreq-0.1.0a1/tests/fixtures/specs/broken/12_missing_untrusted_inputs.yml +30 -0
  216. agenticreq-0.1.0a1/tests/fixtures/specs/broken/13_unregistered_delegate.yml +39 -0
  217. agenticreq-0.1.0a1/tests/fixtures/specs/broken/14_extends_missing.yml +34 -0
  218. agenticreq-0.1.0a1/tests/fixtures/specs/broken/15_data_rule_contradiction.yml +33 -0
  219. agenticreq-0.1.0a1/tests/fixtures/specs/broken/16_unknown_key.yml +34 -0
  220. agenticreq-0.1.0a1/tests/fixtures/specs/broken/17_duplicate_limit_key.yml +34 -0
  221. agenticreq-0.1.0a1/tests/fixtures/specs/good.yml +33 -0
  222. agenticreq-0.1.0a1/tests/fixtures/specs/real_world/fin_qa_agent.yml +51 -0
  223. agenticreq-0.1.0a1/tests/fixtures/spike/captures/crewai_S2.json +1503 -0
  224. agenticreq-0.1.0a1/tests/fixtures/spike/captures/langgraph_phased_S2.json +590 -0
  225. agenticreq-0.1.0a1/tests/fixtures/spike/captures/langgraph_react_S2.json +1096 -0
  226. agenticreq-0.1.0a1/tests/fixtures/spike/captures/openai_agents_S2.json +1067 -0
  227. agenticreq-0.1.0a1/tests/fixtures/spike/captures/pydanticai_S2.json +1176 -0
  228. agenticreq-0.1.0a1/tests/fixtures/spike/captures/smolagents_S2.json +1280 -0
  229. agenticreq-0.1.0a1/tests/fixtures/spike/captures/smolagents_code_S2.json +354 -0
  230. agenticreq-0.1.0a1/tests/fixtures/spike/spec.yml +31 -0
  231. agenticreq-0.1.0a1/tests/fixtures/spike/test_agents/crewai_agent.py +35 -0
  232. agenticreq-0.1.0a1/tests/fixtures/spike/test_agents/langgraph_phased_agent.py +84 -0
  233. agenticreq-0.1.0a1/tests/fixtures/spike/test_agents/langgraph_react_agent.py +23 -0
  234. agenticreq-0.1.0a1/tests/fixtures/spike/test_agents/openai_agents_agent.py +37 -0
  235. agenticreq-0.1.0a1/tests/fixtures/spike/test_agents/pydanticai_agent.py +19 -0
  236. agenticreq-0.1.0a1/tests/fixtures/spike/test_agents/shared_tools.py +74 -0
  237. agenticreq-0.1.0a1/tests/fixtures/spike/test_agents/smolagents_agent.py +22 -0
  238. agenticreq-0.1.0a1/tests/fixtures/spike/test_agents/smolagents_code_agent.py +23 -0
  239. agenticreq-0.1.0a1/tests/fixtures/traces/ap_agent.otlp.json +202 -0
  240. agenticreq-0.1.0a1/tests/golden/all_passing.txt +16 -0
  241. agenticreq-0.1.0a1/tests/golden/guide_fresh.txt +14 -0
  242. agenticreq-0.1.0a1/tests/golden/guide_mid_way.txt +13 -0
  243. agenticreq-0.1.0a1/tests/golden/multi_agent.txt +40 -0
  244. agenticreq-0.1.0a1/tests/golden/progress_fresh.txt +10 -0
  245. agenticreq-0.1.0a1/tests/golden/progress_sign_off.txt +16 -0
  246. agenticreq-0.1.0a1/tests/golden/progress_spec_todo.txt +10 -0
  247. agenticreq-0.1.0a1/tests/golden/single_agent.txt +51 -0
  248. agenticreq-0.1.0a1/tests/test_after_mock_run.py +180 -0
  249. agenticreq-0.1.0a1/tests/test_agent_expansion.py +604 -0
  250. agenticreq-0.1.0a1/tests/test_agent_tool_mapping.py +252 -0
  251. agenticreq-0.1.0a1/tests/test_agents_from_rows.py +60 -0
  252. agenticreq-0.1.0a1/tests/test_allow_write.py +152 -0
  253. agenticreq-0.1.0a1/tests/test_ast_generalization.py +358 -0
  254. agenticreq-0.1.0a1/tests/test_audit_scope.py +115 -0
  255. agenticreq-0.1.0a1/tests/test_discover_exit.py +113 -0
  256. agenticreq-0.1.0a1/tests/test_discover_versions.py +138 -0
  257. agenticreq-0.1.0a1/tests/test_export_types.py +125 -0
  258. agenticreq-0.1.0a1/tests/test_fix_targets.py +65 -0
  259. agenticreq-0.1.0a1/tests/test_framework_matrix.py +323 -0
  260. agenticreq-0.1.0a1/tests/test_gap_fixes.py +496 -0
  261. agenticreq-0.1.0a1/tests/test_groups_mock_run.py +572 -0
  262. agenticreq-0.1.0a1/tests/test_guide.py +88 -0
  263. agenticreq-0.1.0a1/tests/test_hashseed_determinism.py +28 -0
  264. agenticreq-0.1.0a1/tests/test_init_always.py +162 -0
  265. agenticreq-0.1.0a1/tests/test_layering.py +104 -0
  266. agenticreq-0.1.0a1/tests/test_level2_signals.py +338 -0
  267. agenticreq-0.1.0a1/tests/test_level3_frameworks.py +233 -0
  268. agenticreq-0.1.0a1/tests/test_limit_forms.py +182 -0
  269. agenticreq-0.1.0a1/tests/test_mock_run_failures.py +163 -0
  270. agenticreq-0.1.0a1/tests/test_mock_run_safety.py +77 -0
  271. agenticreq-0.1.0a1/tests/test_multi_run.py +266 -0
  272. agenticreq-0.1.0a1/tests/test_name_matching.py +188 -0
  273. agenticreq-0.1.0a1/tests/test_named_limits.py +91 -0
  274. agenticreq-0.1.0a1/tests/test_no_numbers.py +278 -0
  275. agenticreq-0.1.0a1/tests/test_not_needed.py +179 -0
  276. agenticreq-0.1.0a1/tests/test_numeric_thresholds.py +763 -0
  277. agenticreq-0.1.0a1/tests/test_onboarding.py +259 -0
  278. agenticreq-0.1.0a1/tests/test_output_polish.py +124 -0
  279. agenticreq-0.1.0a1/tests/test_pass_fail.py +320 -0
  280. agenticreq-0.1.0a1/tests/test_patch_everywhere.py +51 -0
  281. agenticreq-0.1.0a1/tests/test_path_coverage.py +312 -0
  282. agenticreq-0.1.0a1/tests/test_phase1_foundation.py +134 -0
  283. agenticreq-0.1.0a1/tests/test_phase2_spec.py +110 -0
  284. agenticreq-0.1.0a1/tests/test_phase3_capture.py +116 -0
  285. agenticreq-0.1.0a1/tests/test_phase4_diff.py +194 -0
  286. agenticreq-0.1.0a1/tests/test_phase4_version_drift.py +135 -0
  287. agenticreq-0.1.0a1/tests/test_phase5_init_audit.py +102 -0
  288. agenticreq-0.1.0a1/tests/test_phase6_graph.py +127 -0
  289. agenticreq-0.1.0a1/tests/test_phase7_traces_taint_export_fix.py +243 -0
  290. agenticreq-0.1.0a1/tests/test_portability.py +162 -0
  291. agenticreq-0.1.0a1/tests/test_process_guard.py +91 -0
  292. agenticreq-0.1.0a1/tests/test_progress.py +297 -0
  293. agenticreq-0.1.0a1/tests/test_pyenv.py +470 -0
  294. agenticreq-0.1.0a1/tests/test_real_projects.py +59 -0
  295. agenticreq-0.1.0a1/tests/test_rules_matrix.py +546 -0
  296. agenticreq-0.1.0a1/tests/test_run3_fixes.py +353 -0
  297. agenticreq-0.1.0a1/tests/test_run4_fixes.py +363 -0
  298. agenticreq-0.1.0a1/tests/test_runtime_agents.py +186 -0
  299. agenticreq-0.1.0a1/tests/test_runtime_proof.py +162 -0
  300. agenticreq-0.1.0a1/tests/test_runtime_rules.py +130 -0
  301. agenticreq-0.1.0a1/tests/test_schema_file.py +25 -0
  302. agenticreq-0.1.0a1/tests/test_schema_limits_reach.py +409 -0
  303. agenticreq-0.1.0a1/tests/test_socket_guard.py +120 -0
  304. agenticreq-0.1.0a1/tests/test_spec_names.py +154 -0
  305. agenticreq-0.1.0a1/tests/test_spec_status.py +321 -0
  306. agenticreq-0.1.0a1/tests/test_spike_acceptance.py +196 -0
  307. agenticreq-0.1.0a1/tests/test_structured_output.py +66 -0
  308. agenticreq-0.1.0a1/tests/test_subfields.py +148 -0
  309. agenticreq-0.1.0a1/tests/test_tool_effects.py +186 -0
  310. agenticreq-0.1.0a1/tests/test_unknown_fields.py +244 -0
  311. agenticreq-0.1.0a1/tests/test_user_report_fixes.py +25 -0
  312. agenticreq-0.1.0a1/tests/test_validation_run2_fixes.py +466 -0
  313. agenticreq-0.1.0a1/tests/test_versions.py +119 -0
@@ -0,0 +1,56 @@
1
+ # Python bytecode / caches
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ .mypy_cache/
6
+ .pytest_cache/
7
+ .ruff_cache/
8
+ .hypothesis/
9
+
10
+ # Virtual environments
11
+ .venv/
12
+ .venv-*/
13
+ venv/
14
+ env/
15
+
16
+ # Packaging / build
17
+ build/
18
+ dist/
19
+ *.egg-info/
20
+ .eggs/
21
+ *.egg
22
+
23
+ # Test / coverage
24
+ .coverage
25
+ .coverage.*
26
+ htmlcov/
27
+ .tox/
28
+ .nox/
29
+ coverage.xml
30
+
31
+ # Secrets / local config
32
+ .env
33
+ .env.*
34
+ !.env.example
35
+ *.pem
36
+ *.key
37
+
38
+ # IDE / editor
39
+ .idea/
40
+ .vscode/
41
+ *.swp
42
+ *.swo
43
+
44
+ # OS
45
+ .DS_Store
46
+ Thumbs.db
47
+
48
+ # Logs / scratch
49
+ *.log
50
+ .claude/
51
+
52
+ # agenticreq working files and local tooling
53
+ .agenticreq/
54
+ .claude/settings.local.json
55
+ .coverage
56
+ coverage.xml
@@ -0,0 +1,34 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project. Format: [Keep a Changelog](https://keepachangelog.com/); versions follow
4
+ [SemVer](https://semver.org/).
5
+
6
+ ## [Unreleased]
7
+
8
+ ## [0.1.0a1] - 2026-11-02
9
+
10
+ First alpha release. Packaging, repository and CI work only; the checks, rules, report text, exit codes and spec
11
+ format are those of `0.1.0.dev0` (below).
12
+
13
+ ### Added
14
+ - `pyproject.toml` metadata (classifiers, keywords, project URLs, `test` and `dev` extras), `py.typed`, and the data
15
+ tables, profiles and `spec.schema.json` shipped inside the wheel.
16
+ - `spec.schema.json` in the package and the repository root, with `scripts/export_schema.py` to refresh or check it.
17
+ - `docs/architecture.md` and `tests/test_layering.py` (a lower layer must not import a higher one).
18
+ - GitHub Actions: `ci.yml` (Linux and macOS on Python 3.10 to 3.14: ruff, mypy, pytest with coverage, build, `twine
19
+ check`, wheel smoke test, `pip-audit`), `publish-testpypi.yml` and `publish.yml` (Trusted Publishing, no tokens).
20
+ - Dependabot for pip and GitHub Actions; pre-commit configuration; `.editorconfig`.
21
+ - `CONTRIBUTING.md`, `SECURITY.md`, `CODE_OF_CONDUCT.md`, issue and pull request templates.
22
+
23
+ ### Changed
24
+ - Version `0.1.0.dev0` to `0.1.0a1`, read from `agenticreq.__version__` (single source).
25
+ - Lower bounds are the oldest versions the suite passes on (Python 3.10): `pydantic>=2.11`, `typer>=0.15.4`.
26
+ - `cedarpy` moved from the runtime-adjacent `dev` list to the `test` extra (only a test imports it).
27
+ - Code formatted with `ruff format`; unused imports and stray whitespace removed; `mypy --strict` clean on current mypy.
28
+ - sdist no longer ships `requirements.txt`, `ac.py` or `inst.txt`.
29
+ - README: install from PyPI, exit codes, editor schema header and the Limits section (dynamic agents and tools,
30
+ CodeAgent, MCP only through `--mcp`, numbers never suggested). The stale note that the name was taken on PyPI is gone.
31
+
32
+ ## 0.1.0.dev0
33
+
34
+ Internal development builds before the first release. Their changes are part of `0.1.0a1`.
@@ -0,0 +1,52 @@
1
+ # Code of Conduct
2
+
3
+ This project follows the [Contributor Covenant, version 2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).
4
+ A short statement of it is below; the linked text is the full version.
5
+
6
+ ## Our pledge
7
+
8
+ We pledge to make participation in this project a harassment-free experience for everyone, regardless of age, body
9
+ size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of
10
+ experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or
11
+ sexual identity and orientation.
12
+
13
+ ## Our standards
14
+
15
+ Behavior that contributes to a positive environment:
16
+
17
+ - Showing empathy and kindness toward other people.
18
+ - Respecting differing opinions, viewpoints and experiences.
19
+ - Giving and gracefully accepting constructive feedback.
20
+ - Taking responsibility for mistakes and learning from them.
21
+ - Focusing on what is best for the community, not only for ourselves.
22
+
23
+ Unacceptable behavior:
24
+
25
+ - Sexualized language or imagery, and sexual attention or advances of any kind.
26
+ - Trolling, insulting or derogatory comments, and personal or political attacks.
27
+ - Public or private harassment.
28
+ - Publishing others' private information without their explicit permission.
29
+ - Other conduct that would reasonably be considered inappropriate in a professional setting.
30
+
31
+ ## Enforcement responsibilities
32
+
33
+ Maintainers are responsible for clarifying and enforcing these standards. They may remove, edit or reject comments,
34
+ commits, code, issues and other contributions that do not follow this Code of Conduct, and will explain why.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies in all project spaces, and when someone is officially representing the project in public.
39
+
40
+ ## Reporting
41
+
42
+ Report unacceptable behavior to the maintainer at muslimarain321@gmail.com. All reports are reviewed promptly and
43
+ fairly, and the reporter's privacy is respected.
44
+
45
+ ## Enforcement guidelines
46
+
47
+ Maintainers follow the Covenant's four steps: **correction** (a private note), **warning** (consequences for further
48
+ violations), **temporary ban**, and **permanent ban**, chosen by the seriousness and pattern of the behavior.
49
+
50
+ ## Attribution
51
+
52
+ Adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1.
@@ -0,0 +1,48 @@
1
+ # Contributing to agenticreq
2
+
3
+ Thanks for helping. agenticreq compares an agent's declared requirements (`spec.yml`) with what its code does. It
4
+ never calls an LLM and never suggests numbers, and contributions keep it that way.
5
+
6
+ ## Set up
7
+
8
+ ```bash
9
+ git clone https://github.com/MuslimAqeel311/agenticreq && cd agenticreq
10
+ python -m venv .venv && . .venv/bin/activate
11
+ python -m pip install -e ".[dev]"
12
+ pre-commit install # optional: runs ruff on each commit
13
+ ```
14
+
15
+ Python 3.10 or newer. Some tests skip when an optional tool is missing (`opa` on `PATH`, a framework package).
16
+
17
+ ## Before you open a pull request
18
+
19
+ ```bash
20
+ ruff check .
21
+ ruff format --check .
22
+ mypy # strict
23
+ pytest -q # whole suite
24
+ ```
25
+
26
+ CI runs the same on Linux and macOS across the supported Python versions, then builds the sdist and wheel, installs
27
+ the wheel in a clean virtual environment and runs `agenticreq --help` and a smoke `agenticreq check`.
28
+
29
+ ## Ground rules
30
+
31
+ - **One behaviour change per pull request**, with a test. A new rule needs one positive and one negative test
32
+ (see `tests/test_rules_matrix.py`).
33
+ - **Report text, exit codes and the spec format are public.** Changing them needs a CHANGELOG entry and, for the
34
+ spec format, the `spec.schema.json` refresh (`python scripts/export_schema.py`).
35
+ - **Layers only point down:** `loader` and `models`, then analysis (`ast`, `detectors`, `recognizers`, `capture`,
36
+ `traces`, `mcp`), then `rules`, `engine`, `report`, `cli`. `tests/test_layering.py` fails on a new upward import.
37
+ See [docs/architecture.md](docs/architecture.md).
38
+ - **No numbers from the library.** Defaults never contain a limit; users write them.
39
+ - **Golden files** in `tests/golden/` change only when the output is meant to change. Say so in the pull request.
40
+
41
+ ## Commit and review
42
+
43
+ Small, focused commits with a clear message. Update `CHANGELOG.md` under `[Unreleased]` for anything a user can see.
44
+ By contributing you agree your work is licensed under the Apache License 2.0, like the rest of the project.
45
+
46
+ ## Reporting bugs and ideas
47
+
48
+ Use the issue templates. For a security problem, do not open an issue: see [SECURITY.md](SECURITY.md).
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,191 @@
1
+ Metadata-Version: 2.5
2
+ Name: agenticreq
3
+ Version: 0.1.0a1
4
+ Summary: Checks whether an agentic AI system's declared requirements are enforced in its code, with measured confidence and without any LLM.
5
+ Project-URL: Homepage, https://github.com/MuslimAqeel311/agenticreq
6
+ Project-URL: Documentation, https://github.com/MuslimAqeel311/agenticreq/tree/main/docs
7
+ Project-URL: Repository, https://github.com/MuslimAqeel311/agenticreq
8
+ Project-URL: Issues, https://github.com/MuslimAqeel311/agenticreq/issues
9
+ Project-URL: Changelog, https://github.com/MuslimAqeel311/agenticreq/blob/main/CHANGELOG.md
10
+ Author-email: Muslim Bin Aqeel <muslimarain321@gmail.com>
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ Keywords: agentic,ai-agents,ast,compliance,guardrails,llm-safety,requirements,sarif,specification,static-analysis
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Environment :: Console
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: License :: OSI Approved :: Apache Software License
18
+ Classifier: Operating System :: MacOS
19
+ Classifier: Operating System :: POSIX :: Linux
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3 :: Only
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
+ Classifier: Topic :: Software Development :: Quality Assurance
28
+ Classifier: Topic :: Software Development :: Testing
29
+ Classifier: Typing :: Typed
30
+ Requires-Python: >=3.10
31
+ Requires-Dist: pydantic>=2.11
32
+ Requires-Dist: pyyaml>=6.0
33
+ Requires-Dist: rich>=13.0
34
+ Requires-Dist: tomli>=2.0; python_version < '3.11'
35
+ Requires-Dist: typer>=0.15.4
36
+ Provides-Extra: capture
37
+ Requires-Dist: httpx>=0.25; extra == 'capture'
38
+ Provides-Extra: dev
39
+ Requires-Dist: build>=1.0; extra == 'dev'
40
+ Requires-Dist: cedarpy>=4.0; extra == 'dev'
41
+ Requires-Dist: httpx2>=2.0; extra == 'dev'
42
+ Requires-Dist: httpx>=0.25; extra == 'dev'
43
+ Requires-Dist: mypy>=1.8; extra == 'dev'
44
+ Requires-Dist: pip-audit>=2.7; extra == 'dev'
45
+ Requires-Dist: pre-commit>=3.5; extra == 'dev'
46
+ Requires-Dist: pytest-cov>=5.0; extra == 'dev'
47
+ Requires-Dist: pytest>=8.0; extra == 'dev'
48
+ Requires-Dist: ruff>=0.6; extra == 'dev'
49
+ Requires-Dist: twine>=5.0; extra == 'dev'
50
+ Requires-Dist: types-pyyaml; extra == 'dev'
51
+ Provides-Extra: test
52
+ Requires-Dist: cedarpy>=4.0; extra == 'test'
53
+ Requires-Dist: httpx2>=2.0; extra == 'test'
54
+ Requires-Dist: httpx>=0.25; extra == 'test'
55
+ Requires-Dist: pytest-cov>=5.0; extra == 'test'
56
+ Requires-Dist: pytest>=8.0; extra == 'test'
57
+ Description-Content-Type: text/markdown
58
+
59
+ # agenticreq
60
+
61
+ **Does the agent's code actually enforce what its spec declares?** You write the requirements in `spec.yml`;
62
+ agenticreq reads your agent's code (without running it) and reports which requirements the code enforces, which it
63
+ does not, and which need a person or a test run to confirm. No LLM is called.
64
+
65
+ **agenticreq never suggests numbers. You write them; it checks your code matches.**
66
+
67
+ It is not a runtime guardrail or an eval tool. It finds where enforcement is missing, and can export the spec as a
68
+ policy for OPA or Cedar.
69
+
70
+ ## Install
71
+
72
+ ```bash
73
+ pip install agenticreq
74
+ agenticreq version
75
+ ```
76
+
77
+ Python 3.10 or newer. Installing writes nothing into your project.
78
+
79
+ ## Quick start
80
+
81
+ Run these from the agent's folder:
82
+
83
+ ```bash
84
+ pip install agenticreq # 1. writes nothing into your project
85
+ agenticreq audit # 2. findings immediately: no spec, no setup
86
+ agenticreq init # 3. writes spec.yml; replace every TODO
87
+ agenticreq mocks # 4. writes mocks.yml for a test run with mock tools
88
+ agenticreq mock-run # runs the agent with a canned model
89
+ agenticreq check # 5. compares spec.yml and the latest mock run with the code
90
+ agenticreq guide # where this folder stands, and the next command
91
+ ```
92
+
93
+ ## How it works
94
+
95
+ Run the commands from the agent's folder. `agenticreq guide` always shows where the folder stands and the next command.
96
+
97
+ | step | what it does | command |
98
+ |---|---|---|
99
+ | 1. audit | quick scan, no spec needed | `agenticreq audit` |
100
+ | 2. spec | writes `spec.yml`; you replace every `TODO` | `agenticreq init` |
101
+ | 3. check | compares `spec.yml` with the code | `agenticreq check` |
102
+ | 4. mock-run | runs the agent with mock tools to see what the model is offered | `agenticreq mocks`, then `agenticreq mock-run` |
103
+ | 5. sign-off | the owner confirms what code cannot show, under `confirmed:` in `spec.yml` | edit `spec.yml` |
104
+
105
+ **New project (no code yet).** Run `agenticreq init` in the empty folder, fill `spec.yml` first (what the agent must
106
+ and must not do), build the agent, then run `agenticreq check` as you go.
107
+
108
+ **Existing project.** Run `agenticreq audit` for findings with no setup. Then `agenticreq init` reads your code and
109
+ writes `spec.yml` with the facts it found filled in (`_derived`) and a `TODO` for each decision only you can make.
110
+ Fill those, then `agenticreq check`. Add steps 4 and 5 when you want run evidence and sign-offs.
111
+
112
+ ## The spec: four levels
113
+
114
+ | level | who writes it | what it holds |
115
+ |---|---|---|
116
+ | 1. user (12) | you; `check` fails on `TODO` | `agent_id`, `risk_level`, `goal`, `out_of_scope`, `role_boundary`, `prohibited`, `approval_required`, `limits`, `escalation`, `untrusted_inputs`, `owner` and `technical_owner`, `data_rules` |
117
+ | 2. agent (41) | agenticreq, from `risk_level` (yes/no and choice settings only; numbers are always yours) | goal and termination, tool discipline, state, reliability, security, human oversight, observability |
118
+ | 3. multi-agent (14) | you write `topology`, `agent_registry`, `declared_delegation`, `conflict_resolution`; the rest have defaults | delegation depth, authority, cycles, cross-agent trust, budgets |
119
+ | 4. derived (2) | computed, never written | `trace_coverage`, `enforceability` |
120
+
121
+ `agenticreq params` lists every field. `agenticreq rules` lists every rule.
122
+
123
+ ## Result groups
124
+
125
+ There is no overall score. Each result lands in one of four groups:
126
+
127
+ | group | meaning |
128
+ |---|---|
129
+ | Spec vs code gaps | the spec says X and the code does not do it, or a required field is missing or `TODO` |
130
+ | Human sign-off | only a person can confirm it; answered under `confirmed:`, never counted as passed |
131
+ | Check with a mock run | a run of the agent could show it; each line ends with the next command |
132
+ | Passed | read from the code, or seen in every captured run |
133
+
134
+ ## Exit codes
135
+
136
+ | code | meaning |
137
+ |---|---|
138
+ | `0` | the `--fail-on` condition passed (`never` always exits 0) |
139
+ | `1` | it failed: `gaps` (default) a spec vs code gap; `all` also an open sign-off or a check waiting for a mock run |
140
+ | `2` | the spec is invalid; nothing was checked |
141
+ | `3` | no agent or readable code was found; nothing was checked |
142
+
143
+ ## Editor support
144
+
145
+ `agenticreq init` writes `spec.schema.json` next to `spec.yml` and starts the file with this line, which VS Code and
146
+ other `yaml-language-server` editors read for completion and wrong-field warnings:
147
+
148
+ ```yaml
149
+ # yaml-language-server: $schema=./spec.schema.json
150
+ ```
151
+
152
+ For an existing spec: `agenticreq export-schema > spec.schema.json`.
153
+
154
+ ## Limits
155
+
156
+ - **Dynamic agents and tools.** Agents and tool lists built at run time (from config, a registry, a loop) cannot be
157
+ read from the code. A mock run is the evidence for them; what no run reaches is never reported as a pass.
158
+ - **CodeAgent.** An agent that writes and runs Python as its action (smolagents `CodeAgent`) has no tool call to read;
159
+ its result waits for a mock run and is never a pass.
160
+ - **MCP only through `--mcp`.** MCP server tools are seen only with `--mcp "<server command>"` or `--mcp-tools <file>`.
161
+ - **Numbers are never suggested.** The library compares the numbers you write with your code; it proposes none
162
+ ([docs/numbers.md](docs/numbers.md)).
163
+ - **Fields only a person can confirm** (for example `role_boundary.capabilities`, `untrusted_inputs[].kind`) become
164
+ sign-off questions, never a pass.
165
+ - **Mock runs** follow one path each and use a canned model, so they show what the agent offers and in which order,
166
+ never how a real model behaves. Docker images and remote interpreters are out of scope.
167
+ - **Safety.** `mock-run` runs your agent with mock tools. Use it only on projects you trust.
168
+
169
+ ## Supported framework versions (`mock-run`)
170
+
171
+ `audit` and `check` never run the agent. `mock-run` captures at the HTTP-client boundary (httpx / httpx2); a version
172
+ outside the validated range still runs, with a note, and a run that captures nothing exits 1 with the reason.
173
+
174
+ | framework | supported by `mock-run` | validated on |
175
+ |---|---|---|
176
+ | CrewAI | crewai >=1.9.3,<2 | 1.9.3, 1.15.28 (0.86 hangs) |
177
+ | LangGraph | langgraph >=1.2,<2 | 1.2.15, 1.2.17 |
178
+ | OpenAI Agents | openai-agents >=0.23,<1 | 0.23.1, 0.24.0 |
179
+
180
+ Frameworks not in the table are not gated. Recognised frameworks include LangGraph, CrewAI, OpenAI Agents, smolagents,
181
+ PydanticAI, LangChain, AutoGen, LlamaIndex, Google ADK, Agno, DSPy, Haystack, Semantic Kernel and Strands.
182
+
183
+ ## More
184
+
185
+ [Architecture](docs/architecture.md) · [GitHub Action](docs/github-action.md) · [Numbers](docs/numbers.md) ·
186
+ [Tools and mock runs](docs/tools-and-mock-runs.md) · [Rules that need a mock run](docs/code-pattern-rules.md) ·
187
+ [Contributing](CONTRIBUTING.md) · [Security](SECURITY.md) · [Changelog](CHANGELOG.md)
188
+
189
+ ## License
190
+
191
+ Apache-2.0.