agentaxiom 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.
- agentaxiom-0.1.0/.dockerignore +6 -0
- agentaxiom-0.1.0/.github/dependabot.yml +10 -0
- agentaxiom-0.1.0/.github/release-drafter.yml +18 -0
- agentaxiom-0.1.0/.github/workflows/agentaxiom.yml +33 -0
- agentaxiom-0.1.0/.github/workflows/deploy-staging.yml +26 -0
- agentaxiom-0.1.0/.github/workflows/publish-testpypi.yml +21 -0
- agentaxiom-0.1.0/.github/workflows/publish.yml +28 -0
- agentaxiom-0.1.0/.github/workflows/release-drafter.yml +16 -0
- agentaxiom-0.1.0/.gitignore +229 -0
- agentaxiom-0.1.0/.tmp-evidence/evidence.json +66 -0
- agentaxiom-0.1.0/.tmp-evidence/index.html +66 -0
- agentaxiom-0.1.0/CHANGELOG.md +10 -0
- agentaxiom-0.1.0/CONTRIBUTING.md +15 -0
- agentaxiom-0.1.0/Dockerfile +8 -0
- agentaxiom-0.1.0/LICENSE +201 -0
- agentaxiom-0.1.0/PKG-INFO +122 -0
- agentaxiom-0.1.0/README.md +87 -0
- agentaxiom-0.1.0/SECURITY.md +13 -0
- agentaxiom-0.1.0/action.yml +26 -0
- agentaxiom-0.1.0/docs/API.md +21 -0
- agentaxiom-0.1.0/docs/GO_LIVE_100.md +119 -0
- agentaxiom-0.1.0/docs/MIGRATIONS.md +11 -0
- agentaxiom-0.1.0/docs/OPERATIONS.md +26 -0
- agentaxiom-0.1.0/docs/PUBLISHING.md +10 -0
- agentaxiom-0.1.0/docs/THREAT_MODEL.md +11 -0
- agentaxiom-0.1.0/examples/contract.json +8 -0
- agentaxiom-0.1.0/examples/fixture.json +12 -0
- agentaxiom-0.1.0/infra/README.md +22 -0
- agentaxiom-0.1.0/infra/agentaxiom-dataset-acl.json +9 -0
- agentaxiom-0.1.0/infra/bigquery-runs-schema.json +11 -0
- agentaxiom-0.1.0/infra/main.tf +72 -0
- agentaxiom-0.1.0/infra/monitoring-dashboard.yaml +43 -0
- agentaxiom-0.1.0/infra/variables.tf +7 -0
- agentaxiom-0.1.0/pyproject.toml +63 -0
- agentaxiom-0.1.0/schemas/contract.v1.schema.json +22 -0
- agentaxiom-0.1.0/schemas/transcript.v1.schema.json +24 -0
- agentaxiom-0.1.0/scripts/live_export_smoke.py +35 -0
- agentaxiom-0.1.0/scripts/live_vertex_smoke.py +46 -0
- agentaxiom-0.1.0/sites/agentaxiom-console/.openai/hosting.json +4 -0
- agentaxiom-0.1.0/src/agentaxiom/__init__.py +24 -0
- agentaxiom-0.1.0/src/agentaxiom/cli.py +71 -0
- agentaxiom-0.1.0/src/agentaxiom/comparison.py +106 -0
- agentaxiom-0.1.0/src/agentaxiom/contracts.py +127 -0
- agentaxiom-0.1.0/src/agentaxiom/evidence.py +83 -0
- agentaxiom-0.1.0/src/agentaxiom/exports.py +45 -0
- agentaxiom-0.1.0/src/agentaxiom/minimize.py +38 -0
- agentaxiom-0.1.0/src/agentaxiom/models.py +130 -0
- agentaxiom-0.1.0/src/agentaxiom/pricing.py +28 -0
- agentaxiom-0.1.0/src/agentaxiom/providers.py +136 -0
- agentaxiom-0.1.0/src/agentaxiom/py.typed +1 -0
- agentaxiom-0.1.0/src/agentaxiom/pytest_plugin.py +29 -0
- agentaxiom-0.1.0/src/agentaxiom/replay.py +45 -0
- agentaxiom-0.1.0/src/agentaxiom/service.py +101 -0
- agentaxiom-0.1.0/src/agentaxiom/ui/__init__.py +1 -0
- agentaxiom-0.1.0/src/agentaxiom/ui/index.html +9 -0
- agentaxiom-0.1.0/tests/test_comparison_and_evidence.py +77 -0
- agentaxiom-0.1.0/tests/test_contracts.py +46 -0
- agentaxiom-0.1.0/tests/test_replay.py +30 -0
- agentaxiom-0.1.0/tests/test_schemas_and_adk.py +40 -0
- agentaxiom-0.1.0/tests/test_service.py +67 -0
- agentaxiom-0.1.0/tests/test_validation_and_replay_minimize.py +50 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name-template: "v$RESOLVED_VERSION"
|
|
2
|
+
tag-template: "v$RESOLVED_VERSION"
|
|
3
|
+
version-resolver:
|
|
4
|
+
major: {labels: ["breaking"]}
|
|
5
|
+
minor: {labels: ["feature"]}
|
|
6
|
+
patch: {labels: ["fix", "security"]}
|
|
7
|
+
default: patch
|
|
8
|
+
categories:
|
|
9
|
+
- title: "Breaking changes"
|
|
10
|
+
labels: ["breaking"]
|
|
11
|
+
- title: "Features"
|
|
12
|
+
labels: ["feature"]
|
|
13
|
+
- title: "Fixes"
|
|
14
|
+
labels: ["fix", "security"]
|
|
15
|
+
change-template: "- $TITLE (#$NUMBER)"
|
|
16
|
+
template: |
|
|
17
|
+
## Changes
|
|
18
|
+
$CHANGES
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: AgentAxiom contracts
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
test:
|
|
5
|
+
strategy:
|
|
6
|
+
fail-fast: false
|
|
7
|
+
matrix:
|
|
8
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v4
|
|
12
|
+
- uses: actions/setup-python@v5
|
|
13
|
+
with:
|
|
14
|
+
python-version: "${{ matrix.python-version }}"
|
|
15
|
+
- run: python -m pip install -e '.[test,lint]'
|
|
16
|
+
- run: python -m ruff check src tests
|
|
17
|
+
- run: python -m pytest
|
|
18
|
+
- uses: actions/upload-artifact@v4
|
|
19
|
+
if: always()
|
|
20
|
+
with:
|
|
21
|
+
name: agentaxiom-evidence
|
|
22
|
+
path: agentaxiom-evidence
|
|
23
|
+
if-no-files-found: ignore
|
|
24
|
+
package:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
- uses: actions/setup-python@v5
|
|
29
|
+
with:
|
|
30
|
+
python-version: "3.12"
|
|
31
|
+
- run: python -m pip install build twine
|
|
32
|
+
- run: python -m build
|
|
33
|
+
- run: python -m twine check dist/*
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Deploy staging evaluator
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
inputs:
|
|
5
|
+
image:
|
|
6
|
+
description: Immutable image digest to deploy.
|
|
7
|
+
required: true
|
|
8
|
+
type: string
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
id-token: write
|
|
12
|
+
jobs:
|
|
13
|
+
plan:
|
|
14
|
+
environment: staging
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: google-github-actions/auth@v2
|
|
19
|
+
with:
|
|
20
|
+
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
|
|
21
|
+
service_account: ${{ secrets.GCP_DEPLOY_SERVICE_ACCOUNT }}
|
|
22
|
+
- uses: hashicorp/setup-terraform@v3
|
|
23
|
+
- working-directory: infra
|
|
24
|
+
run: |
|
|
25
|
+
terraform init
|
|
26
|
+
terraform plan -input=false -var project_id='${{ vars.GCP_PROJECT_ID }}' -var image='${{ inputs.image }}' -var evidence_bucket_name='${{ vars.AGENTAXIOM_EVIDENCE_BUCKET }}'
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Publish to TestPyPI
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
permissions:
|
|
5
|
+
contents: read
|
|
6
|
+
id-token: write
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
environment:
|
|
10
|
+
name: testpypi
|
|
11
|
+
url: https://test.pypi.org/project/agentaxiom/
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-python@v5
|
|
16
|
+
with: {python-version: "3.12"}
|
|
17
|
+
- run: python -m pip install build
|
|
18
|
+
- run: python -m build
|
|
19
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
20
|
+
with:
|
|
21
|
+
repository-url: https://test.pypi.org/legacy/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [published]
|
|
5
|
+
permissions:
|
|
6
|
+
attestations: write
|
|
7
|
+
contents: write
|
|
8
|
+
id-token: write
|
|
9
|
+
jobs:
|
|
10
|
+
publish:
|
|
11
|
+
environment:
|
|
12
|
+
name: pypi
|
|
13
|
+
url: https://pypi.org/p/agentaxiom
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: actions/setup-python@v5
|
|
18
|
+
with: {python-version: "3.12"}
|
|
19
|
+
- run: python -m pip install build
|
|
20
|
+
- run: python -m build
|
|
21
|
+
- uses: anchore/sbom-action@v0
|
|
22
|
+
with:
|
|
23
|
+
artifact-name: agentaxiom-sbom
|
|
24
|
+
path: dist
|
|
25
|
+
- uses: actions/attest-build-provenance@v2
|
|
26
|
+
with:
|
|
27
|
+
subject-path: dist/*
|
|
28
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: Draft release notes
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches: [main]
|
|
5
|
+
pull_request:
|
|
6
|
+
types: [opened, reopened, synchronize]
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
pull-requests: read
|
|
10
|
+
jobs:
|
|
11
|
+
update:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: release-drafter/release-drafter@v6
|
|
15
|
+
env:
|
|
16
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
*.lcov
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
cover/
|
|
54
|
+
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
local_settings.py
|
|
62
|
+
db.sqlite3
|
|
63
|
+
db.sqlite3-journal
|
|
64
|
+
|
|
65
|
+
# Flask stuff:
|
|
66
|
+
instance/
|
|
67
|
+
.webassets-cache
|
|
68
|
+
|
|
69
|
+
# Scrapy stuff:
|
|
70
|
+
.scrapy
|
|
71
|
+
|
|
72
|
+
# Sphinx documentation
|
|
73
|
+
docs/_build/
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
# .python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
# Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# uv
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
# uv.lock
|
|
103
|
+
|
|
104
|
+
# poetry
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
106
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
107
|
+
# commonly ignored for libraries.
|
|
108
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
109
|
+
# poetry.lock
|
|
110
|
+
# poetry.toml
|
|
111
|
+
|
|
112
|
+
# pdm
|
|
113
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
114
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
115
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
116
|
+
# pdm.lock
|
|
117
|
+
# pdm.toml
|
|
118
|
+
.pdm-python
|
|
119
|
+
.pdm-build/
|
|
120
|
+
|
|
121
|
+
# pixi
|
|
122
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
123
|
+
# pixi.lock
|
|
124
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
125
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
126
|
+
.pixi/*
|
|
127
|
+
!.pixi/config.toml
|
|
128
|
+
|
|
129
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
130
|
+
__pypackages__/
|
|
131
|
+
|
|
132
|
+
# Celery stuff
|
|
133
|
+
celerybeat-schedule*
|
|
134
|
+
celerybeat.pid
|
|
135
|
+
|
|
136
|
+
# Redis
|
|
137
|
+
*.rdb
|
|
138
|
+
*.aof
|
|
139
|
+
*.pid
|
|
140
|
+
|
|
141
|
+
# RabbitMQ
|
|
142
|
+
mnesia/
|
|
143
|
+
rabbitmq/
|
|
144
|
+
rabbitmq-data/
|
|
145
|
+
|
|
146
|
+
# ActiveMQ
|
|
147
|
+
activemq-data/
|
|
148
|
+
|
|
149
|
+
# SageMath parsed files
|
|
150
|
+
*.sage.py
|
|
151
|
+
|
|
152
|
+
# Environments
|
|
153
|
+
.env
|
|
154
|
+
.envrc
|
|
155
|
+
.venv
|
|
156
|
+
env/
|
|
157
|
+
venv/
|
|
158
|
+
ENV/
|
|
159
|
+
env.bak/
|
|
160
|
+
venv.bak/
|
|
161
|
+
|
|
162
|
+
# Spyder project settings
|
|
163
|
+
.spyderproject
|
|
164
|
+
.spyproject
|
|
165
|
+
|
|
166
|
+
# Rope project settings
|
|
167
|
+
.ropeproject
|
|
168
|
+
|
|
169
|
+
# mkdocs/Zensical documentation
|
|
170
|
+
/site
|
|
171
|
+
|
|
172
|
+
# mypy
|
|
173
|
+
.mypy_cache/
|
|
174
|
+
.dmypy.json
|
|
175
|
+
dmypy.json
|
|
176
|
+
|
|
177
|
+
# Pyre type checker
|
|
178
|
+
.pyre/
|
|
179
|
+
|
|
180
|
+
# pytype static type analyzer
|
|
181
|
+
.pytype/
|
|
182
|
+
|
|
183
|
+
# Cython debug symbols
|
|
184
|
+
cython_debug/
|
|
185
|
+
|
|
186
|
+
# PyCharm
|
|
187
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
188
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
189
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
190
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
191
|
+
# .idea/
|
|
192
|
+
|
|
193
|
+
# Abstra
|
|
194
|
+
# Abstra is an AI-powered process automation framework.
|
|
195
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
196
|
+
# Learn more at https://abstra.io/docs
|
|
197
|
+
.abstra/
|
|
198
|
+
|
|
199
|
+
# Visual Studio Code
|
|
200
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
|
|
201
|
+
# can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
202
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer, you
|
|
203
|
+
# could uncomment the following to ignore the entire vscode folder
|
|
204
|
+
# .vscode/
|
|
205
|
+
# Temporary file for partial code execution
|
|
206
|
+
tempCodeRunnerFile.py
|
|
207
|
+
|
|
208
|
+
# Ruff stuff:
|
|
209
|
+
.ruff_cache/
|
|
210
|
+
|
|
211
|
+
# PyPI configuration file
|
|
212
|
+
.pypirc
|
|
213
|
+
|
|
214
|
+
# AgentAxiom local evidence generated by CLI/service checks
|
|
215
|
+
agentaxiom-evidence/
|
|
216
|
+
artifacts/
|
|
217
|
+
dist/
|
|
218
|
+
build/
|
|
219
|
+
*.egg-info/
|
|
220
|
+
.audit-venv/
|
|
221
|
+
/.tmp-release-*/
|
|
222
|
+
|
|
223
|
+
# Marimo
|
|
224
|
+
marimo/_static/
|
|
225
|
+
marimo/_lsp/
|
|
226
|
+
__marimo__/
|
|
227
|
+
|
|
228
|
+
# Streamlit
|
|
229
|
+
.streamlit/secrets.toml
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extra": {},
|
|
3
|
+
"result": {
|
|
4
|
+
"contract": "grounded-answer",
|
|
5
|
+
"passed": true,
|
|
6
|
+
"violations": []
|
|
7
|
+
},
|
|
8
|
+
"transcript": {
|
|
9
|
+
"invocation": {
|
|
10
|
+
"adk_version": null,
|
|
11
|
+
"citations": [
|
|
12
|
+
{
|
|
13
|
+
"uri": "https://example.test/policy"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"estimated_cost_usd": 0.0001,
|
|
17
|
+
"generation": {
|
|
18
|
+
"temperature": 0
|
|
19
|
+
},
|
|
20
|
+
"latency_ms": 120,
|
|
21
|
+
"model": "gemini-2.5-flash",
|
|
22
|
+
"provider": "offline",
|
|
23
|
+
"raw_response": {},
|
|
24
|
+
"region": "us-central1",
|
|
25
|
+
"response_text": "Yes.",
|
|
26
|
+
"safety": {
|
|
27
|
+
"action": "allow"
|
|
28
|
+
},
|
|
29
|
+
"structured_output": {
|
|
30
|
+
"answer": "Yes."
|
|
31
|
+
},
|
|
32
|
+
"timestamp": "2026-10-20T02:14:36.115494+00:00",
|
|
33
|
+
"token_usage": {
|
|
34
|
+
"input": 12,
|
|
35
|
+
"output": 5,
|
|
36
|
+
"total": 17
|
|
37
|
+
},
|
|
38
|
+
"tool_calls": [
|
|
39
|
+
{
|
|
40
|
+
"name": "search"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"tools": [
|
|
44
|
+
{
|
|
45
|
+
"name": "search"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"scenario": {
|
|
50
|
+
"metadata": {
|
|
51
|
+
"suite": "smoke"
|
|
52
|
+
},
|
|
53
|
+
"name": "grounded-answer",
|
|
54
|
+
"turns": [
|
|
55
|
+
{
|
|
56
|
+
"content": "What is the policy?",
|
|
57
|
+
"role": "user",
|
|
58
|
+
"tool_input": null,
|
|
59
|
+
"tool_name": null,
|
|
60
|
+
"tool_output": null
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"schema_version": "v1"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!doctype html><title>AgentAxiom PASS</title><h1>PASS: grounded-answer</h1><pre>{
|
|
2
|
+
"extra": {},
|
|
3
|
+
"result": {
|
|
4
|
+
"contract": "grounded-answer",
|
|
5
|
+
"passed": true,
|
|
6
|
+
"violations": []
|
|
7
|
+
},
|
|
8
|
+
"transcript": {
|
|
9
|
+
"invocation": {
|
|
10
|
+
"adk_version": null,
|
|
11
|
+
"citations": [
|
|
12
|
+
{
|
|
13
|
+
"uri": "https://example.test/policy"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"estimated_cost_usd": 0.0001,
|
|
17
|
+
"generation": {
|
|
18
|
+
"temperature": 0
|
|
19
|
+
},
|
|
20
|
+
"latency_ms": 120,
|
|
21
|
+
"model": "gemini-2.5-flash",
|
|
22
|
+
"provider": "offline",
|
|
23
|
+
"raw_response": {},
|
|
24
|
+
"region": "us-central1",
|
|
25
|
+
"response_text": "Yes.",
|
|
26
|
+
"safety": {
|
|
27
|
+
"action": "allow"
|
|
28
|
+
},
|
|
29
|
+
"structured_output": {
|
|
30
|
+
"answer": "Yes."
|
|
31
|
+
},
|
|
32
|
+
"timestamp": "2026-10-20T02:14:36.115494+00:00",
|
|
33
|
+
"token_usage": {
|
|
34
|
+
"input": 12,
|
|
35
|
+
"output": 5,
|
|
36
|
+
"total": 17
|
|
37
|
+
},
|
|
38
|
+
"tool_calls": [
|
|
39
|
+
{
|
|
40
|
+
"name": "search"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"tools": [
|
|
44
|
+
{
|
|
45
|
+
"name": "search"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"scenario": {
|
|
50
|
+
"metadata": {
|
|
51
|
+
"suite": "smoke"
|
|
52
|
+
},
|
|
53
|
+
"name": "grounded-answer",
|
|
54
|
+
"turns": [
|
|
55
|
+
{
|
|
56
|
+
"content": "What is the policy?",
|
|
57
|
+
"role": "user",
|
|
58
|
+
"tool_input": null,
|
|
59
|
+
"tool_name": null,
|
|
60
|
+
"tool_output": null
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"schema_version": "v1"
|
|
65
|
+
}
|
|
66
|
+
}</pre>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes are documented here. This project follows Semantic Versioning.
|
|
4
|
+
|
|
5
|
+
## [0.1.0] - 2026-10-20
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Initial public MVP, including contract validation, comparison, replay, minimization, redacted evidence bundles, optional exports, a pytest plugin, reusable GitHub Action, and an offline Cloud Run evaluator.
|
|
10
|
+
- Release, security, operations, migration, API, and threat-model guidance.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Contributing to AgentAxiom
|
|
2
|
+
|
|
3
|
+
## Local development
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
python -m pip install -e '.[test,lint]'
|
|
7
|
+
python -m pytest
|
|
8
|
+
python -m ruff check src tests
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
All behavior changes need a regression test. Keep all default execution offline. A test that invokes a live model must be opt-in, use an isolated project, declare a bounded maximum cost, and never run in pull-request CI.
|
|
12
|
+
|
|
13
|
+
## Evidence compatibility
|
|
14
|
+
|
|
15
|
+
Treat the transcript format and evidence manifest as public compatibility surfaces. Add a `schema_version` migration and fixture whenever changing their semantics. Do not log raw prompts, model responses, secrets, or customer identifiers in tests or issue reports.
|