theaios-core 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ name: Bug report
2
+ description: Something in theaios-core does not behave as documented.
3
+ labels: [bug]
4
+ body:
5
+ - type: input
6
+ id: version
7
+ attributes:
8
+ label: Version
9
+ description: Output of `pip show theaios-core | grep Version`
10
+ validations: { required: true }
11
+ - type: textarea
12
+ id: repro
13
+ attributes:
14
+ label: Minimal reproduction
15
+ description: The smallest config and code that show the problem. Remove secrets and personal data.
16
+ render: python
17
+ validations: { required: true }
18
+ - type: textarea
19
+ id: expected
20
+ attributes:
21
+ label: Expected and actual behavior
22
+ validations: { required: true }
23
+ - type: input
24
+ id: env
25
+ attributes:
26
+ label: Environment
27
+ description: Python version and OS
28
+ - type: checkboxes
29
+ id: scope
30
+ attributes:
31
+ label: Scope
32
+ options:
33
+ - label: This is about theaios-core itself, not a third-party product or service.
34
+ required: true
35
+ - label: This is not a security vulnerability (those go to the address in SECURITY.md).
36
+ required: true
@@ -0,0 +1,8 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Security vulnerability
4
+ url: https://github.com/Cohorte-ai/theaios-core/blob/main/SECURITY.md
5
+ about: Report privately by email, never in a public issue.
6
+ - name: Documentation
7
+ url: https://github.com/Cohorte-ai/theaios-core
8
+ about: Guides, configuration reference and examples.
@@ -0,0 +1,27 @@
1
+ name: Feature request
2
+ description: Propose a change to theaios-core.
3
+ labels: [enhancement]
4
+ body:
5
+ - type: textarea
6
+ id: problem
7
+ attributes:
8
+ label: Problem
9
+ description: What are you trying to do, and what stops you today?
10
+ validations: { required: true }
11
+ - type: textarea
12
+ id: proposal
13
+ attributes:
14
+ label: Proposal
15
+ description: What you would like theaios-core to do. Config or API sketches welcome.
16
+ validations: { required: true }
17
+ - type: textarea
18
+ id: alternatives
19
+ attributes:
20
+ label: Alternatives considered
21
+ - type: checkboxes
22
+ id: scope
23
+ attributes:
24
+ label: Scope
25
+ options:
26
+ - label: This is about theaios-core itself, not a promotion of another product or service.
27
+ required: true
@@ -0,0 +1,11 @@
1
+ ## What and why
2
+
3
+ <!-- What this changes, and the problem it solves. Link the issue if there is one. -->
4
+
5
+ ## Checks
6
+
7
+ - [ ] `ruff check src/ tests/` and `ruff format --check src/ tests/` pass
8
+ - [ ] `mypy src/` passes
9
+ - [ ] Tests added or updated, and `pytest` passes
10
+ - [ ] Existing YAML configs still load (no breaking config change), or the break is documented in CHANGELOG.md
11
+ - [ ] Docs and CHANGELOG.md updated if behavior changed
@@ -0,0 +1,24 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ check:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: actions/setup-python@v5
18
+ with:
19
+ python-version: ${{ matrix.python-version }}
20
+ - run: pip install -e ".[dev]"
21
+ - run: ruff check src/ tests/
22
+ - run: ruff format --check src/ tests/
23
+ - run: mypy src/theaios/core/
24
+ - run: pytest tests/ -q
@@ -0,0 +1,21 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: actions/setup-python@v5
13
+ with:
14
+ python-version: "3.13"
15
+ - run: pip install build
16
+ - name: Build package
17
+ run: python -m build
18
+ - name: Publish to PyPI
19
+ uses: pypa/gh-action-pypi-publish@release/v1
20
+ with:
21
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,8 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ .pytest_cache/
5
+ .mypy_cache/
6
+ .ruff_cache/
7
+ dist/
8
+ .env
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ All notable changes to theaios-core will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2026-11-08
9
+
10
+ ### Added
11
+
12
+ - `theaios.core.expressions`: the safe expression language previously copied into
13
+ theaios-guardrails, theaios-context-router, theaios-agent-monitor and
14
+ theaios-agent-auth (the four copies had identical code).
15
+ - Limits: expressions over 10,000 characters or nesting deeper than 64 levels raise
16
+ `ExpressionError`; `and` / `or` chains are evaluated iteratively, so long chains no
17
+ longer hit Python's recursion limit. Results are unchanged.
18
+ - `theaios.core.env`: `${VAR}` interpolation, with the `${VAR:default}` and strict-name
19
+ dialects the libraries used.
20
+ - `theaios.core.audit`: append-only JSONL log with optional hash chaining and
21
+ `python -m theaios.core.audit verify`.
@@ -0,0 +1,39 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to a positive environment:
15
+
16
+ - Using welcoming and inclusive language
17
+ - Being respectful of differing viewpoints and experiences
18
+ - Gracefully accepting constructive criticism
19
+ - Focusing on what is best for the community
20
+ - Showing empathy towards other community members
21
+
22
+ Examples of unacceptable behavior:
23
+
24
+ - The use of sexualized language or imagery, and sexual attention or advances of any kind
25
+ - Trolling, insulting or derogatory comments, and personal or political attacks
26
+ - Public or private harassment
27
+ - Publishing others' private information without explicit permission
28
+ - Other conduct which could reasonably be considered inappropriate in a professional setting
29
+
30
+ ## Enforcement
31
+
32
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
33
+ reported to the project maintainers at **charafeddine@cohorte.co**.
34
+
35
+ All complaints will be reviewed and investigated promptly and fairly.
36
+
37
+ ## Attribution
38
+
39
+ This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version 2.1.
@@ -0,0 +1,65 @@
1
+ # Contributing to theaios-core
2
+
3
+ Thank you for your interest in contributing! This guide will help you get started.
4
+
5
+ ## Development Setup
6
+
7
+ ```bash
8
+ # Clone the repository
9
+ git clone https://github.com/Cohorte-ai/theaios-core.git
10
+ cd theaios-core
11
+
12
+ # Create a virtual environment
13
+ python -m venv .venv
14
+ source .venv/bin/activate # or .venv\Scripts\activate on Windows
15
+
16
+ # Install in editable mode with dev dependencies
17
+ pip install -e ".[dev]"
18
+ ```
19
+
20
+ ## Running Tests
21
+
22
+ ```bash
23
+ # Run all tests
24
+ pytest tests/ -v
25
+
26
+ # Run only unit tests
27
+ pytest tests/ -v --ignore=tests/integration
28
+
29
+ # Run only integration tests
30
+ pytest tests/integration/ -v
31
+ ```
32
+
33
+ ## Code Quality
34
+
35
+ We enforce code quality with the following tools:
36
+
37
+ ```bash
38
+ # Lint
39
+ ruff check src/ tests/
40
+
41
+ # Format
42
+ ruff format src/ tests/
43
+
44
+ # Type check
45
+ mypy src/
46
+ ```
47
+
48
+ All three checks must pass before a PR can be merged.
49
+
50
+ ## Pull Request Process
51
+
52
+ 1. Fork the repository and create a branch from `main`.
53
+ 2. Make your changes. Add or update tests as needed.
54
+ 3. Ensure all tests pass and code quality checks are clean.
55
+ 4. Write a clear PR description explaining **what** and **why**.
56
+ 5. Submit the PR. A maintainer will review it.
57
+
58
+ ## Reporting Issues
59
+
60
+ - Use [GitHub Issues](https://github.com/Cohorte-ai/theaios-core/issues) to report bugs or request features.
61
+ - For security vulnerabilities, see [SECURITY.md](SECURITY.md).
62
+
63
+ ## License
64
+
65
+ By contributing, you agree that your contributions will be licensed under the Apache 2.0 License.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Charafeddine Mouzouni / Cohorte AI
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ theaios-core
2
+ Copyright 2026 Charafeddine Mouzouni / Cohorte AI
@@ -0,0 +1,59 @@
1
+ Metadata-Version: 2.5
2
+ Name: theaios-core
3
+ Version: 0.1.0
4
+ Summary: Shared foundations of the theaios libraries: safe expressions, env interpolation, audit logs
5
+ Project-URL: Homepage, https://github.com/Cohorte-ai/theaios-core
6
+ Project-URL: Repository, https://github.com/Cohorte-ai/theaios-core
7
+ Author-email: Charafeddine Mouzouni <charafeddine@cohorte.co>
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
10
+ License-File: NOTICE
11
+ Keywords: agent-governance,ai-agents,audit-log,policy-engine
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Requires-Python: >=3.10
18
+ Provides-Extra: dev
19
+ Requires-Dist: mypy<1.20,>=1.19; extra == 'dev'
20
+ Requires-Dist: pytest<10,>=8.0; extra == 'dev'
21
+ Requires-Dist: ruff<0.16,>=0.15; extra == 'dev'
22
+ Description-Content-Type: text/markdown
23
+
24
+ # theaios-core
25
+
26
+ Shared foundations of the [theaios](https://github.com/Cohorte-ai) libraries. You do not
27
+ need to install it yourself: `theaios-guardrails`, `theaios-context-router`,
28
+ `theaios-agent-monitor` and `theaios-agent-auth` depend on it.
29
+
30
+ It exists so that security-sensitive code lives in one place instead of four copies.
31
+
32
+ ## What is inside
33
+
34
+ | Module | What it does |
35
+ |---|---|
36
+ | `theaios.core.expressions` | The safe condition language used in policy files (`action == "send_email" and recipient.domain != $company_domain`). No `eval()`, no code execution. Limits: 10,000 characters and 64 levels of nesting; `and` / `or` chains of any length. |
37
+ | `theaios.core.env` | `${VAR}` interpolation for config files, with an optional `${VAR:default}` form. |
38
+ | `theaios.core.audit` | Append-only JSONL logs, optionally hash-chained so that any edit or deletion is detectable. |
39
+
40
+ ```python
41
+ from theaios.core.expressions import compile_expression, evaluate
42
+
43
+ rule = compile_expression('amount > 1000 and currency in ["EUR", "USD"]')
44
+ evaluate(rule, {"amount": 4800, "currency": "EUR"}) # True
45
+ ```
46
+
47
+ ```bash
48
+ python -m theaios.core.audit verify .guardrails_audit/audit.jsonl
49
+ ```
50
+
51
+ ## Compatibility
52
+
53
+ The expression language is the one the four libraries already used; their existing test
54
+ suites pass unchanged against this package. The only difference: input over the limits
55
+ above now raises `ExpressionError` instead of failing with a Python `RecursionError`.
56
+
57
+ ## License
58
+
59
+ Apache 2.0. See [LICENSE](LICENSE).
@@ -0,0 +1,36 @@
1
+ # theaios-core
2
+
3
+ Shared foundations of the [theaios](https://github.com/Cohorte-ai) libraries. You do not
4
+ need to install it yourself: `theaios-guardrails`, `theaios-context-router`,
5
+ `theaios-agent-monitor` and `theaios-agent-auth` depend on it.
6
+
7
+ It exists so that security-sensitive code lives in one place instead of four copies.
8
+
9
+ ## What is inside
10
+
11
+ | Module | What it does |
12
+ |---|---|
13
+ | `theaios.core.expressions` | The safe condition language used in policy files (`action == "send_email" and recipient.domain != $company_domain`). No `eval()`, no code execution. Limits: 10,000 characters and 64 levels of nesting; `and` / `or` chains of any length. |
14
+ | `theaios.core.env` | `${VAR}` interpolation for config files, with an optional `${VAR:default}` form. |
15
+ | `theaios.core.audit` | Append-only JSONL logs, optionally hash-chained so that any edit or deletion is detectable. |
16
+
17
+ ```python
18
+ from theaios.core.expressions import compile_expression, evaluate
19
+
20
+ rule = compile_expression('amount > 1000 and currency in ["EUR", "USD"]')
21
+ evaluate(rule, {"amount": 4800, "currency": "EUR"}) # True
22
+ ```
23
+
24
+ ```bash
25
+ python -m theaios.core.audit verify .guardrails_audit/audit.jsonl
26
+ ```
27
+
28
+ ## Compatibility
29
+
30
+ The expression language is the one the four libraries already used; their existing test
31
+ suites pass unchanged against this package. The only difference: input over the limits
32
+ above now raises `ExpressionError` instead of failing with a Python `RecursionError`.
33
+
34
+ ## License
35
+
36
+ Apache 2.0. See [LICENSE](LICENSE).
@@ -0,0 +1,21 @@
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ If you discover a security vulnerability in `theaios-core`, please report it responsibly.
6
+
7
+ **Do not open a public GitHub issue for security vulnerabilities.**
8
+
9
+ Instead, email **charafeddine@cohorte.co** with:
10
+
11
+ - A description of the vulnerability
12
+ - Steps to reproduce
13
+ - Potential impact
14
+
15
+ We will acknowledge your report within 48 hours and work with you to understand and address the issue before any public disclosure.
16
+
17
+ ## Supported Versions
18
+
19
+ | Version | Supported |
20
+ |---------|-----------|
21
+ | 0.1.x | Yes |
@@ -0,0 +1,50 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "theaios-core"
7
+ version = "0.1.0"
8
+ description = "Shared foundations of the theaios libraries: safe expressions, env interpolation, audit logs"
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ requires-python = ">=3.10"
12
+ authors = [
13
+ { name = "Charafeddine Mouzouni", email = "charafeddine@cohorte.co" },
14
+ ]
15
+ keywords = ["ai-agents", "agent-governance", "policy-engine", "audit-log"]
16
+ classifiers = [
17
+ "Development Status :: 3 - Alpha",
18
+ "Intended Audience :: Developers",
19
+ "License :: OSI Approved :: Apache Software License",
20
+ "Programming Language :: Python :: 3",
21
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
22
+ ]
23
+ dependencies = []
24
+
25
+ [project.optional-dependencies]
26
+ dev = ["pytest>=8.0,<10", "ruff>=0.15,<0.16", "mypy>=1.19,<1.20"]
27
+
28
+ [project.urls]
29
+ Homepage = "https://github.com/Cohorte-ai/theaios-core"
30
+ Repository = "https://github.com/Cohorte-ai/theaios-core"
31
+
32
+ [tool.hatch.build.targets.wheel]
33
+ packages = ["src/theaios"]
34
+
35
+ [tool.ruff]
36
+ target-version = "py310"
37
+ line-length = 100
38
+
39
+ [tool.ruff.lint]
40
+ select = ["E", "F", "I", "B", "UP", "RUF"]
41
+
42
+ [tool.mypy]
43
+ python_version = "3.10"
44
+ strict = true
45
+ mypy_path = "src"
46
+ namespace_packages = true
47
+ explicit_package_bases = true
48
+
49
+ [tool.pytest.ini_options]
50
+ testpaths = ["tests"]
@@ -0,0 +1,3 @@
1
+ """Shared foundations of the theaios libraries: expressions, env interpolation, audit logs."""
2
+
3
+ __version__ = "0.1.0"