agentforge-oss 0.5.2__tar.gz → 0.5.4__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 (99) hide show
  1. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/CHANGELOG.md +47 -0
  2. agentforge_oss-0.5.4/LICENSE +202 -0
  3. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/PKG-INFO +47 -30
  4. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/README.md +42 -25
  5. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/docs/examples/custom-tools.md +4 -0
  6. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/docs/examples/otel-tracing.md +2 -0
  7. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/docs/examples/parallel-supervisor.md +3 -3
  8. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/docs/examples/persistent-rag.md +2 -0
  9. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/docs/examples/policy-governance.md +43 -29
  10. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/_version.py +1 -1
  11. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/agents/base.py +10 -1
  12. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/cli/main.py +21 -0
  13. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/compliance/audit.py +76 -46
  14. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/config.py +25 -6
  15. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/orchestration/context.py +102 -1
  16. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/orchestration/orchestrator.py +23 -25
  17. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/security/sandbox.py +9 -0
  18. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/pyproject.toml +3 -3
  19. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_audit.py +6 -1
  20. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_audit_robustness.py +11 -0
  21. agentforge_oss-0.5.4/tests/test_budget_reservations.py +61 -0
  22. agentforge_oss-0.5.4/tests/test_cli.py +15 -0
  23. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_config_validation.py +19 -1
  24. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_ollama_provider.py +15 -0
  25. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_parallel_workers.py +1 -1
  26. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_security.py +19 -0
  27. agentforge_oss-0.5.2/LICENSE +0 -21
  28. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/.gitignore +0 -0
  29. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/docs/examples/index.md +0 -0
  30. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/examples/enterprise_governance.py +0 -0
  31. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/examples/otel_tracing.py +0 -0
  32. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/examples/policy_governance.py +0 -0
  33. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/examples/quickstart.py +0 -0
  34. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/examples/rag.py +0 -0
  35. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/examples/rag_persistent.py +0 -0
  36. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/examples/rag_pgvector.py +0 -0
  37. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/examples/tool_use.py +0 -0
  38. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/__init__.py +0 -0
  39. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/agents/__init__.py +0 -0
  40. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/agents/agent.py +0 -0
  41. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/agents/supervisor.py +0 -0
  42. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/cli/__init__.py +0 -0
  43. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/cli/console.py +0 -0
  44. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/compliance/__init__.py +0 -0
  45. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/compliance/redaction.py +0 -0
  46. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/exceptions.py +0 -0
  47. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/governance/__init__.py +0 -0
  48. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/governance/policy.py +0 -0
  49. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/memory/__init__.py +0 -0
  50. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/memory/base.py +0 -0
  51. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/memory/conversation.py +0 -0
  52. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/memory/pgvector.py +0 -0
  53. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/memory/sqlite.py +0 -0
  54. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/memory/vector.py +0 -0
  55. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/models/__init__.py +0 -0
  56. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/models/base.py +0 -0
  57. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/models/providers/__init__.py +0 -0
  58. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/models/providers/anthropic.py +0 -0
  59. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/models/providers/bedrock.py +0 -0
  60. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/models/providers/echo.py +0 -0
  61. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/models/providers/ollama.py +0 -0
  62. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/models/providers/openai.py +0 -0
  63. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/models/registry.py +0 -0
  64. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/models/router.py +0 -0
  65. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/observability/__init__.py +0 -0
  66. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/observability/events.py +0 -0
  67. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/observability/logging.py +0 -0
  68. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/observability/otel.py +0 -0
  69. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/observability/usage.py +0 -0
  70. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/orchestration/__init__.py +0 -0
  71. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/py.typed +0 -0
  72. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/security/__init__.py +0 -0
  73. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/security/access.py +0 -0
  74. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/security/sanitization.py +0 -0
  75. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/tools/__init__.py +0 -0
  76. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/tools/base.py +0 -0
  77. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/tools/builtin/__init__.py +0 -0
  78. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/tools/builtin/calculator.py +0 -0
  79. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/tools/builtin/http.py +0 -0
  80. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/tools/builtin/time.py +0 -0
  81. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/tools/registry.py +0 -0
  82. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/forge/types.py +0 -0
  83. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/conftest.py +0 -0
  84. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_agents.py +0 -0
  85. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_bedrock_provider.py +0 -0
  86. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_config_security.py +0 -0
  87. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_http_security.py +0 -0
  88. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_memory.py +0 -0
  89. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_models.py +0 -0
  90. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_openai_provider.py +0 -0
  91. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_orchestrator.py +0 -0
  92. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_otel.py +0 -0
  93. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_pgvector_memory.py +0 -0
  94. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_policy_governance.py +0 -0
  95. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_sqlite_concurrency.py +0 -0
  96. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_sqlite_memory.py +0 -0
  97. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_streaming.py +0 -0
  98. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_tools.py +0 -0
  99. {agentforge_oss-0.5.2 → agentforge_oss-0.5.4}/tests/test_types.py +0 -0
@@ -8,7 +8,54 @@ Versioning follows [Semantic Versioning](https://semver.org/).
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [0.5.4] - 2026-08-12
12
+
13
+ Beta-hardening release. No new product features; imports, public API and CLI
14
+ commands are unchanged. One intentional behavior tightening is called out under
15
+ Changed below.
16
+
17
+ ### Security & governance
18
+ - `ToolSandbox` now enforces tool RBAC against the run principal: normal tools
19
+ require `USE_TOOL` and dangerous tools require `USE_DANGEROUS_TOOL`.
20
+ - Dangerous tools require **both** the `USE_DANGEROUS_TOOL` permission **and**
21
+ explicit allowlisting before they may run.
22
+
23
+ ### Budget reliability
24
+ - Added concurrent pre-call budget reservations (conservative input + maximum
25
+ output) held under a lock, reducing the risk of parallel workers collectively
26
+ oversubscribing a hard cap. Reservations settle against provider-reported
27
+ usage on success and are released on failure — no permanent reservation leak
28
+ and no double-counting. Costs remain local list-price estimates, not invoices.
29
+
30
+ ### Audit reliability
31
+ - Redact actor and run identifiers (in addition to resource values) before
32
+ writing audit records.
33
+ - Serialize in-process audit writes per audit file; `verify()` fails closed on
34
+ malformed/unparseable records. Multi-process audit-file coordination remains a
35
+ known limitation. Hash chains are tamper-evident, not immutable.
36
+
37
+ ### Configuration
38
+ - Stricter validation: reject unknown configuration fields, malformed boolean
39
+ environment values, non-positive tool timeouts, and invalid assignment.
40
+
41
+ ### CLI
42
+ - Added `forge --version` / `forge -V`. The existing `forge version` command is
43
+ unchanged.
44
+
45
+ ### Packaging
46
+ - Declare supported Python as `>=3.11,<3.14`.
47
+ - Pin the PyPI Trusted Publishing action to `pypa/gh-action-pypi-publish`
48
+ v1.14.2 (Twine 7 / Core Metadata 2.5 compatible).
49
+
50
+ ### Changed
51
+ - **Ollama is no longer auto-detected.** Zero-configuration runs stay
52
+ deterministic and offline (Echo). To enable the Ollama provider, set
53
+ `OLLAMA_BASE_URL` explicitly (for a local or remote server).
54
+
55
+ ## [0.5.3] - 2026-08-06
56
+
11
57
  ### Maintenance
58
+ - Publish corrected Apache-2.0 package metadata under the public maintainer identity `sekacorn`.
12
59
  - Consolidated git commit authorship under a single maintainer identity (`sekacorn`).
13
60
 
14
61
  ## [0.5.2] — 2026-07-07
@@ -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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: agentforge-oss
3
- Version: 0.5.2
3
+ Version: 0.5.4
4
4
  Summary: Forge — an open-source, enterprise-ready multi-agent orchestration platform with cost awareness, governance, and security built in.
5
5
  Project-URL: Homepage, https://github.com/sekacorn/AgentForge
6
6
  Project-URL: Documentation, https://github.com/sekacorn/AgentForge#readme
@@ -9,12 +9,12 @@ Project-URL: Issues, https://github.com/sekacorn/AgentForge/issues
9
9
  Project-URL: Changelog, https://github.com/sekacorn/AgentForge/blob/main/CHANGELOG.md
10
10
  Author: sekacorn
11
11
  Maintainer: sekacorn
12
- License: MIT
12
+ License-Expression: Apache-2.0
13
13
  License-File: LICENSE
14
14
  Keywords: agents,ai,anthropic,claude,enterprise,governance,llm,multi-agent,observability,openai,orchestration,rag
15
15
  Classifier: Development Status :: 4 - Beta
16
16
  Classifier: Intended Audience :: Developers
17
- Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: License :: OSI Approved :: Apache Software License
18
18
  Classifier: Operating System :: OS Independent
19
19
  Classifier: Programming Language :: Python :: 3
20
20
  Classifier: Programming Language :: Python :: 3.11
@@ -24,7 +24,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
24
  Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
25
25
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
26
26
  Classifier: Typing :: Typed
27
- Requires-Python: >=3.11
27
+ Requires-Python: <3.14,>=3.11
28
28
  Requires-Dist: httpx>=0.27
29
29
  Requires-Dist: pydantic>=2.6
30
30
  Requires-Dist: rich>=13.7
@@ -82,8 +82,8 @@ with cost-awareness, security, and compliance built in from line one.**
82
82
 
83
83
  [![CI](https://github.com/sekacorn/AgentForge/actions/workflows/ci.yml/badge.svg)](https://github.com/sekacorn/AgentForge/actions/workflows/ci.yml)
84
84
  [![PyPI](https://img.shields.io/pypi/v/agentforge-oss.svg)](https://pypi.org/project/agentforge-oss/)
85
- [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
86
- [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/)
85
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-green.svg)](LICENSE)
86
+ [![Python 3.11-3.13](https://img.shields.io/badge/python-3.11--3.13-blue.svg)](https://www.python.org/)
87
87
  [![Typed](https://img.shields.io/badge/typed-mypy%20strict-blue.svg)](pyproject.toml)
88
88
  [![Docs](https://img.shields.io/badge/docs-github%20pages-blue)](https://sekacorn.github.io/AgentForge/)
89
89
  [![Status: Beta](https://img.shields.io/badge/status-beta-orange.svg)](#whats-currently-shipped)
@@ -113,16 +113,18 @@ features — not afterthoughts you bolt on before launch.
113
113
  import asyncio
114
114
  from forge import Orchestrator
115
115
 
116
+
116
117
  async def main() -> None:
117
118
  # Zero config. Runs fully offline with the deterministic echo provider, and
118
119
  # automatically uses Claude or GPT when an API key is present in the environment.
119
120
  async with Orchestrator() as forge:
120
121
  result = await forge.run(
121
122
  "Research our top 3 competitors, draft a comparison, and compute Q3 growth at 18%",
122
- mode="supervisor", # spawns parallel workers, one per subtask
123
+ mode="supervisor", # spawns parallel workers, one per subtask
123
124
  )
124
125
  print(result.output)
125
- print(result.usage.format_table()) # tokens + cost, per model and per agent
126
+ print(result.usage.format_table()) # tokens + cost, per model and per agent
127
+
126
128
 
127
129
  asyncio.run(main())
128
130
  ```
@@ -141,7 +143,7 @@ An honest snapshot of what works today versus what is on the way. Everything mar
141
143
  | Anthropic provider (Claude Haiku 4.5, Sonnet 4.6, Opus 4.8, Fable 5) | Shipped |
142
144
  | OpenAI provider (gpt-4o-mini, gpt-4o, gpt-4.1, o3) | Shipped |
143
145
  | Offline deterministic provider (zero config, no API key) | Shipped |
144
- | Ollama provider (local models, zero cost, no API key, auto-detected) | Shipped |
146
+ | Ollama provider (local models, zero cost, no API key, explicit opt-in) | Shipped |
145
147
  | Amazon Bedrock provider (Claude/Llama/Mistral via Converse, in-account/GovCloud) | Shipped |
146
148
  | Pre-flight + per-step budget caps | Shipped |
147
149
  | Tool sandboxing (allowlist/denylist, timeouts, dangerous-denied-by-default) | Shipped |
@@ -156,7 +158,7 @@ An honest snapshot of what works today versus what is on the way. Everything mar
156
158
  | Conversation memory + in-memory RAG vector store | Shipped |
157
159
  | Durable memory backend (SQLite, persistent RAG, no vector extension) | Shipped |
158
160
  | CLI (`forge run`, `forge models`, `forge audit`) | Shipped |
159
- | 115 tests, mypy strict, ruff clean, CI on 3.11 / 3.12 / 3.13 | Shipped |
161
+ | Offline-focused test suite, mypy strict, ruff clean, CI on 3.11 / 3.12 / 3.13 | Shipped |
160
162
  | Durable memory backend (pgvector, PostgreSQL + IVFFlat ANN, asyncpg) | Shipped |
161
163
  | Durable memory backends (Redis) | Planned |
162
164
  | Vertex / other cloud providers | Planned |
@@ -172,7 +174,7 @@ An honest snapshot of what works today versus what is on the way. Everything mar
172
174
  | One prompt, one answer, no division of labor | A supervisor decomposes the goal and delegates to specialized workers |
173
175
  | Workers run one at a time | Workers run in parallel — with a pre-flight budget check before any of them start |
174
176
  | Every call hits your most expensive model | Intelligent routing sends easy work to cheap models, hard work to frontier models |
175
- | Cost is a surprise on the invoice | Cost is tracked per run, per agent, per model — with hard budget caps |
177
+ | Cost is a surprise on the invoice | Cost is tracked per run, per agent, per model — with pre-call budget reservations |
176
178
  | Tools run with full trust | Tools run sandboxed, with side-effecting tools **denied by default** |
177
179
  | "Trust me, it worked" | A tamper-evident, hash-chained audit trail of every action |
178
180
  | Prototype you can't ship | A typed, tested core designed for production |
@@ -201,8 +203,10 @@ An honest snapshot of what works today versus what is on the way. Everything mar
201
203
  GPT-4.1, o3) and computes spend consistently.
202
204
  - **Budgets that bite — twice.** A pessimistic *pre-flight* check estimates the
203
205
  worst-case spend of a worker batch and refuses to start it if that would blow the
204
- remaining budget. A precise, real-time check then fires after every model call.
205
- Together they bound both over-spend and wasted API calls.
206
+ remaining budget. Before every model call, Forge also reserves conservative input
207
+ and maximum-output headroom, including across parallel workers; provider-reported
208
+ usage is checked after completion. Pricing is a local list-price estimate, not an
209
+ invoice guarantee.
206
210
 
207
211
  ### Tools, memory & RAG — extensible by design
208
212
  - **`@tool` decorator** turns any typed Python function into an agent tool, with
@@ -238,14 +242,16 @@ An honest snapshot of what works today versus what is on the way. Everything mar
238
242
  from forge import PolicyRule, PolicySet
239
243
 
240
244
  policy = PolicySet()
241
- policy.add(PolicyRule(
242
- name="require-approval-for-network",
243
- description="Any network call requires human sign-off",
244
- tool_names=["http_get"],
245
- condition=lambda name, args: True,
246
- action="approve",
247
- approver=my_approval_webhook, # async fn returning bool
248
- ))
245
+ policy.add(
246
+ PolicyRule(
247
+ name="require-approval-for-network",
248
+ description="Any network call requires human sign-off",
249
+ tool_names=["http_get"],
250
+ condition=lambda name, args: True,
251
+ action="approve",
252
+ approver=my_approval_webhook, # async fn returning bool
253
+ )
254
+ )
249
255
  ```
250
256
 
251
257
  ### Observability built in
@@ -291,8 +297,8 @@ pip install "agentforge-oss[all,dev]" # everything + test/lint toolin
291
297
  > (configurable).
292
298
 
293
299
  > **Ollama support is built in** — no extra install needed (it uses `httpx`, already a
294
- > core dependency, so there is no `[ollama]` extra). Just run Ollama locally and Forge
295
- > auto-detects it (or set `OLLAMA_BASE_URL` for a custom/remote server):
300
+ > core dependency, so there is no `[ollama]` extra). Set `OLLAMA_BASE_URL` to opt in to
301
+ > using a local or remote Ollama server, then pull a model present in Forge's registry:
296
302
 
297
303
  ```bash
298
304
  ollama serve
@@ -330,6 +336,7 @@ call, run tools in the sandbox, and tally cost in real time.
330
336
  import asyncio
331
337
  from forge import Orchestrator, ToolRegistry, tool, calculator
332
338
 
339
+
333
340
  @tool
334
341
  def fx_convert(amount: float, rate: float) -> float:
335
342
  """Convert an amount using an FX rate.
@@ -340,6 +347,7 @@ def fx_convert(amount: float, rate: float) -> float:
340
347
  """
341
348
  return round(amount * rate, 2)
342
349
 
350
+
343
351
  async def main() -> None:
344
352
  tools = ToolRegistry([calculator, fx_convert])
345
353
  async with Orchestrator() as forge:
@@ -350,6 +358,7 @@ async def main() -> None:
350
358
  )
351
359
  print(result.output)
352
360
 
361
+
353
362
  asyncio.run(main())
354
363
  ```
355
364
 
@@ -359,6 +368,7 @@ asyncio.run(main())
359
368
  import asyncio
360
369
  from forge import Orchestrator, ForgeConfig, BudgetConfig
361
370
 
371
+
362
372
  async def main() -> None:
363
373
  config = ForgeConfig(budget=BudgetConfig(max_workers=3, max_usd_per_run=0.25))
364
374
  async with Orchestrator(config) as forge:
@@ -369,6 +379,7 @@ async def main() -> None:
369
379
  print(result.output)
370
380
  print(result.usage.format_table())
371
381
 
382
+
372
383
  asyncio.run(main())
373
384
  ```
374
385
 
@@ -378,12 +389,14 @@ asyncio.run(main())
378
389
  import asyncio
379
390
  from forge import InMemoryVectorStore
380
391
 
392
+
381
393
  async def main() -> None:
382
394
  store = InMemoryVectorStore()
383
395
  await store.add("Forge routes cheap tasks to small models to save cost.")
384
396
  await store.add("The audit log is hash-chained and tamper-evident.")
385
397
  hits = await store.search("how does Forge keep costs down?", k=1)
386
- print(hits[0].text) # -> the cost-routing fact
398
+ print(hits[0].text) # -> the cost-routing fact
399
+
387
400
 
388
401
  asyncio.run(main())
389
402
  ```
@@ -394,13 +407,15 @@ asyncio.run(main())
394
407
  import asyncio
395
408
  from forge import PGVectorMemoryStore
396
409
 
410
+
397
411
  async def main() -> None:
398
412
  dsn = "postgresql://forge:forge@localhost:5432/forge"
399
413
  async with PGVectorMemoryStore(dsn) as store:
400
414
  await store.add("Forge routes cheap tasks to small models to save cost.")
401
415
  await store.add("The audit log is hash-chained and tamper-evident.")
402
416
  hits = await store.search("how does Forge keep costs down?", k=1)
403
- print(hits[0].text) # -> the cost-routing fact
417
+ print(hits[0].text) # -> the cost-routing fact
418
+
404
419
 
405
420
  asyncio.run(main())
406
421
  ```
@@ -490,6 +505,8 @@ questions already have answers.
490
505
  > Forge gives you strong application-level controls. It is not a substitute for OS-
491
506
  > level isolation when executing untrusted code — for that, run tools in a container
492
507
  > or microVM behind the same `ToolSandbox` interface. The design makes that a drop-in.
508
+ > Audit writes are serialized for logger instances in the same process; coordinating
509
+ > multiple processes that share one audit file remains an operator responsibility.
493
510
 
494
511
  ---
495
512
 
@@ -540,9 +557,9 @@ ruff check . # lint
540
557
  mypy forge # strict type-check
541
558
  ```
542
559
 
543
- The entire 115-test suite runs offline against the deterministic provider — fast,
544
- hermetic, and free. CI runs the same checks (ruff, ruff format, mypy strict, pytest)
545
- on Python 3.11, 3.12, and 3.13.
560
+ The test suite uses the deterministic provider for offline coverage; tests for
561
+ optional backends run when their extras are installed. CI runs Ruff, Ruff format,
562
+ mypy strict, and pytest on Python 3.11, 3.12, and 3.13.
546
563
 
547
564
  ---
548
565
 
@@ -561,5 +578,5 @@ the core typed (`mypy --strict`) and tested.
561
578
 
562
579
  ## License
563
580
 
564
- [MIT](LICENSE) — free for commercial and private use. Build something that multiplies
581
+ [Apache License 2.0](LICENSE) — free for commercial and private use. Build something that multiplies
565
582
  your team.