agent-exam 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.
Files changed (170) hide show
  1. agent_exam-0.1.0/.github/workflows/ci.yml +73 -0
  2. agent_exam-0.1.0/.github/workflows/publish.yml +30 -0
  3. agent_exam-0.1.0/.github/workflows/secrets.yml +39 -0
  4. agent_exam-0.1.0/.github/zizmor.yml +8 -0
  5. agent_exam-0.1.0/.gitignore +14 -0
  6. agent_exam-0.1.0/.pre-commit-config.yaml +45 -0
  7. agent_exam-0.1.0/.readthedocs.yml +10 -0
  8. agent_exam-0.1.0/.secrets.baseline +127 -0
  9. agent_exam-0.1.0/AGENTS.md +64 -0
  10. agent_exam-0.1.0/CHANGES.rst +8 -0
  11. agent_exam-0.1.0/CLAUDE.md +6 -0
  12. agent_exam-0.1.0/LICENSE +201 -0
  13. agent_exam-0.1.0/PKG-INFO +139 -0
  14. agent_exam-0.1.0/README.md +106 -0
  15. agent_exam-0.1.0/agent_exam/__init__.py +0 -0
  16. agent_exam-0.1.0/agent_exam/_models.py +120 -0
  17. agent_exam-0.1.0/agent_exam/_validate.py +117 -0
  18. agent_exam-0.1.0/agent_exam/artifacts.py +47 -0
  19. agent_exam-0.1.0/agent_exam/assertions/__init__.py +0 -0
  20. agent_exam-0.1.0/agent_exam/assertions/_shared.py +34 -0
  21. agent_exam-0.1.0/agent_exam/assertions/file_contains.py +59 -0
  22. agent_exam-0.1.0/agent_exam/assertions/file_exists.py +26 -0
  23. agent_exam-0.1.0/agent_exam/assertions/first_skill.py +44 -0
  24. agent_exam-0.1.0/agent_exam/assertions/judge.py +72 -0
  25. agent_exam-0.1.0/agent_exam/assertions/judge_agent.py +109 -0
  26. agent_exam-0.1.0/agent_exam/assertions/no_permission_errors.py +93 -0
  27. agent_exam-0.1.0/agent_exam/assertions/registry.py +131 -0
  28. agent_exam-0.1.0/agent_exam/assertions/skill_invoked.py +70 -0
  29. agent_exam-0.1.0/agent_exam/assertions/skill_not_invoked.py +37 -0
  30. agent_exam-0.1.0/agent_exam/assertions/tool_called.py +26 -0
  31. agent_exam-0.1.0/agent_exam/assertions/tool_count.py +61 -0
  32. agent_exam-0.1.0/agent_exam/assertions/tool_not_called.py +30 -0
  33. agent_exam-0.1.0/agent_exam/cli.py +299 -0
  34. agent_exam-0.1.0/agent_exam/commands/__init__.py +0 -0
  35. agent_exam-0.1.0/agent_exam/commands/_format.py +195 -0
  36. agent_exam-0.1.0/agent_exam/commands/_loader.py +161 -0
  37. agent_exam-0.1.0/agent_exam/commands/diff.py +133 -0
  38. agent_exam-0.1.0/agent_exam/commands/doctor.py +435 -0
  39. agent_exam-0.1.0/agent_exam/commands/history.py +208 -0
  40. agent_exam-0.1.0/agent_exam/commands/rescore.py +236 -0
  41. agent_exam-0.1.0/agent_exam/commands/runs.py +97 -0
  42. agent_exam-0.1.0/agent_exam/commands/show.py +718 -0
  43. agent_exam-0.1.0/agent_exam/config.py +240 -0
  44. agent_exam-0.1.0/agent_exam/errors.py +49 -0
  45. agent_exam-0.1.0/agent_exam/hooks.py +41 -0
  46. agent_exam-0.1.0/agent_exam/ids.py +56 -0
  47. agent_exam-0.1.0/agent_exam/judge/__init__.py +29 -0
  48. agent_exam-0.1.0/agent_exam/judge/cache.py +140 -0
  49. agent_exam-0.1.0/agent_exam/judge/dispatch.py +95 -0
  50. agent_exam-0.1.0/agent_exam/judge/format_trajectory.py +102 -0
  51. agent_exam-0.1.0/agent_exam/judge/parse.py +34 -0
  52. agent_exam-0.1.0/agent_exam/judge/prompt.py +63 -0
  53. agent_exam-0.1.0/agent_exam/pool.py +477 -0
  54. agent_exam-0.1.0/agent_exam/providers/__init__.py +37 -0
  55. agent_exam-0.1.0/agent_exam/providers/base.py +170 -0
  56. agent_exam-0.1.0/agent_exam/providers/child_env.py +87 -0
  57. agent_exam-0.1.0/agent_exam/providers/claude_code/__init__.py +17 -0
  58. agent_exam-0.1.0/agent_exam/providers/claude_code/blocked_plugins.py +83 -0
  59. agent_exam-0.1.0/agent_exam/providers/claude_code/doctor_probes.py +165 -0
  60. agent_exam-0.1.0/agent_exam/providers/claude_code/provider.py +449 -0
  61. agent_exam-0.1.0/agent_exam/providers/claude_code/session_checks.py +74 -0
  62. agent_exam-0.1.0/agent_exam/providers/claude_code/skill_detect.py +51 -0
  63. agent_exam-0.1.0/agent_exam/providers/claude_code/stream_parser.py +143 -0
  64. agent_exam-0.1.0/agent_exam/providers/claude_code/transcripts.py +549 -0
  65. agent_exam-0.1.0/agent_exam/providers/codex_cli/__init__.py +3 -0
  66. agent_exam-0.1.0/agent_exam/providers/codex_cli/hermetic_skills.py +21 -0
  67. agent_exam-0.1.0/agent_exam/providers/codex_cli/paths.py +17 -0
  68. agent_exam-0.1.0/agent_exam/providers/codex_cli/provider.py +599 -0
  69. agent_exam-0.1.0/agent_exam/providers/codex_cli/stream_parser.py +294 -0
  70. agent_exam-0.1.0/agent_exam/providers/codex_cli/transcripts.py +994 -0
  71. agent_exam-0.1.0/agent_exam/providers/copilot_cli/__init__.py +5 -0
  72. agent_exam-0.1.0/agent_exam/providers/copilot_cli/doctor_probes.py +53 -0
  73. agent_exam-0.1.0/agent_exam/providers/copilot_cli/provider.py +266 -0
  74. agent_exam-0.1.0/agent_exam/providers/copilot_cli/stream_parser.py +152 -0
  75. agent_exam-0.1.0/agent_exam/providers/copilot_cli/transcripts.py +367 -0
  76. agent_exam-0.1.0/agent_exam/providers/dummy.py +82 -0
  77. agent_exam-0.1.0/agent_exam/providers/opencode/__init__.py +3 -0
  78. agent_exam-0.1.0/agent_exam/providers/opencode/doctor_probes.py +96 -0
  79. agent_exam-0.1.0/agent_exam/providers/opencode/provider.py +348 -0
  80. agent_exam-0.1.0/agent_exam/providers/opencode/stream_parser.py +121 -0
  81. agent_exam-0.1.0/agent_exam/providers/opencode/transcripts.py +701 -0
  82. agent_exam-0.1.0/agent_exam/providers/process_utils.py +35 -0
  83. agent_exam-0.1.0/agent_exam/providers/skill_staging.py +184 -0
  84. agent_exam-0.1.0/agent_exam/ratelimit.py +62 -0
  85. agent_exam-0.1.0/agent_exam/report.py +217 -0
  86. agent_exam-0.1.0/agent_exam/report_compare.py +251 -0
  87. agent_exam-0.1.0/agent_exam/run_modes.py +60 -0
  88. agent_exam-0.1.0/agent_exam/runner.py +646 -0
  89. agent_exam-0.1.0/agent_exam/schemas.py +113 -0
  90. agent_exam-0.1.0/agent_exam/scoring_context.py +46 -0
  91. agent_exam-0.1.0/agent_exam/serde.py +147 -0
  92. agent_exam-0.1.0/agent_exam/tasks.py +492 -0
  93. agent_exam-0.1.0/agent_exam/trajectory_walk.py +81 -0
  94. agent_exam-0.1.0/agent_exam/validation.py +354 -0
  95. agent_exam-0.1.0/docs/changelog.rst +4 -0
  96. agent_exam-0.1.0/docs/concepts.rst +82 -0
  97. agent_exam-0.1.0/docs/conf.py +18 -0
  98. agent_exam-0.1.0/docs/design/judges.rst +141 -0
  99. agent_exam-0.1.0/docs/design/network.rst +142 -0
  100. agent_exam-0.1.0/docs/design/suite-design.rst +110 -0
  101. agent_exam-0.1.0/docs/design/triggers.rst +152 -0
  102. agent_exam-0.1.0/docs/index.rst +112 -0
  103. agent_exam-0.1.0/docs/quick-start.rst +305 -0
  104. agent_exam-0.1.0/docs/reference/cli.rst +202 -0
  105. agent_exam-0.1.0/docs/reference/config-yaml.rst +249 -0
  106. agent_exam-0.1.0/docs/reference/file-layout.rst +124 -0
  107. agent_exam-0.1.0/docs/reference/task-yaml.rst +480 -0
  108. agent_exam-0.1.0/docs/requirements.in +3 -0
  109. agent_exam-0.1.0/docs/requirements.txt +77 -0
  110. agent_exam-0.1.0/docs/workflows.rst +265 -0
  111. agent_exam-0.1.0/examples/config.yaml +73 -0
  112. agent_exam-0.1.0/pyproject.toml +226 -0
  113. agent_exam-0.1.0/tests/__init__.py +0 -0
  114. agent_exam-0.1.0/tests/assertions/__init__.py +0 -0
  115. agent_exam-0.1.0/tests/assertions/test_config_validation.py +104 -0
  116. agent_exam-0.1.0/tests/assertions/test_file_contains.py +42 -0
  117. agent_exam-0.1.0/tests/assertions/test_file_exists.py +29 -0
  118. agent_exam-0.1.0/tests/assertions/test_first_skill.py +47 -0
  119. agent_exam-0.1.0/tests/assertions/test_judge_agent.py +276 -0
  120. agent_exam-0.1.0/tests/assertions/test_no_permission_errors.py +206 -0
  121. agent_exam-0.1.0/tests/assertions/test_skill_invoked.py +100 -0
  122. agent_exam-0.1.0/tests/assertions/test_skill_not_invoked.py +36 -0
  123. agent_exam-0.1.0/tests/assertions/test_tool_called.py +60 -0
  124. agent_exam-0.1.0/tests/assertions/test_tool_count.py +50 -0
  125. agent_exam-0.1.0/tests/commands/__init__.py +0 -0
  126. agent_exam-0.1.0/tests/commands/test_doctor.py +599 -0
  127. agent_exam-0.1.0/tests/commands/test_format.py +256 -0
  128. agent_exam-0.1.0/tests/commands/test_loader.py +61 -0
  129. agent_exam-0.1.0/tests/commands/test_rescore.py +431 -0
  130. agent_exam-0.1.0/tests/conftest.py +58 -0
  131. agent_exam-0.1.0/tests/fixtures/__init__.py +0 -0
  132. agent_exam-0.1.0/tests/fixtures/canned_run_result.py +87 -0
  133. agent_exam-0.1.0/tests/judge/__init__.py +0 -0
  134. agent_exam-0.1.0/tests/judge/test_cache.py +145 -0
  135. agent_exam-0.1.0/tests/judge/test_format_trajectory.py +77 -0
  136. agent_exam-0.1.0/tests/judge/test_judge_assertion.py +185 -0
  137. agent_exam-0.1.0/tests/judge/test_parse.py +69 -0
  138. agent_exam-0.1.0/tests/judge/test_prompt.py +30 -0
  139. agent_exam-0.1.0/tests/test_allowed_tools.py +247 -0
  140. agent_exam-0.1.0/tests/test_blocked_plugins.py +119 -0
  141. agent_exam-0.1.0/tests/test_child_env.py +85 -0
  142. agent_exam-0.1.0/tests/test_claude_preflight.py +194 -0
  143. agent_exam-0.1.0/tests/test_codex_provider.py +368 -0
  144. agent_exam-0.1.0/tests/test_codex_stream_parser.py +1552 -0
  145. agent_exam-0.1.0/tests/test_copilot_preflight.py +144 -0
  146. agent_exam-0.1.0/tests/test_known_issue.py +240 -0
  147. agent_exam-0.1.0/tests/test_negative_trigger.py +121 -0
  148. agent_exam-0.1.0/tests/test_no_triggers.py +124 -0
  149. agent_exam-0.1.0/tests/test_opencode_preflight.py +157 -0
  150. agent_exam-0.1.0/tests/test_opencode_stream_parser.py +194 -0
  151. agent_exam-0.1.0/tests/test_opencode_transcripts.py +445 -0
  152. agent_exam-0.1.0/tests/test_pool_fixture_copy.py +53 -0
  153. agent_exam-0.1.0/tests/test_pool_mirror_cwd.py +61 -0
  154. agent_exam-0.1.0/tests/test_pre_run_hook.py +71 -0
  155. agent_exam-0.1.0/tests/test_provider_filter.py +204 -0
  156. agent_exam-0.1.0/tests/test_ratelimit.py +85 -0
  157. agent_exam-0.1.0/tests/test_report_compare.py +144 -0
  158. agent_exam-0.1.0/tests/test_safe_judge_tools.py +96 -0
  159. agent_exam-0.1.0/tests/test_serde.py +121 -0
  160. agent_exam-0.1.0/tests/test_session_checks.py +61 -0
  161. agent_exam-0.1.0/tests/test_skill_detect.py +54 -0
  162. agent_exam-0.1.0/tests/test_skill_staging.py +227 -0
  163. agent_exam-0.1.0/tests/test_staging_in_attempt_cwd.py +231 -0
  164. agent_exam-0.1.0/tests/test_timeout_nontrigger.py +72 -0
  165. agent_exam-0.1.0/tests/test_trajectory_walk.py +60 -0
  166. agent_exam-0.1.0/tests/test_trigger_case_selection.py +91 -0
  167. agent_exam-0.1.0/tests/test_trigger_tasks.py +149 -0
  168. agent_exam-0.1.0/tests/test_validation.py +722 -0
  169. agent_exam-0.1.0/tests/test_without_skill.py +357 -0
  170. agent_exam-0.1.0/tox.ini +35 -0
@@ -0,0 +1,73 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ test:
14
+ runs-on: ubuntu-latest
15
+ env:
16
+ # Make uv use the interpreter that actions/setup-python installed instead
17
+ # of downloading one of its own.
18
+ UV_PYTHON_PREFERENCE: only-system
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ include:
23
+ - python-version: "3.10"
24
+ toxenv: min
25
+ - python-version: "3.10"
26
+ - python-version: "3.11"
27
+ - python-version: "3.12"
28
+ - python-version: "3.13"
29
+ - python-version: "3.14"
30
+
31
+ steps:
32
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
33
+ with:
34
+ persist-credentials: false
35
+ - name: Set up Python ${{ matrix.python-version }}
36
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
37
+ with:
38
+ python-version: ${{ matrix.python-version }}
39
+ - name: Set up uv
40
+ uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
41
+ with:
42
+ cache-dependency-glob: |
43
+ pyproject.toml
44
+ tox.ini
45
+ - name: tox
46
+ run: uvx --with tox-uv tox -e ${{ matrix.toxenv || 'py' }}
47
+
48
+ check:
49
+ runs-on: ubuntu-latest
50
+ env:
51
+ UV_PYTHON_PREFERENCE: only-system
52
+ strategy:
53
+ fail-fast: false
54
+ matrix:
55
+ toxenv: [pre-commit, twinecheck]
56
+
57
+ steps:
58
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
59
+ with:
60
+ persist-credentials: false
61
+ - name: Set up Python
62
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
63
+ with:
64
+ python-version: "3.13"
65
+ - name: Set up uv
66
+ uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
67
+ with:
68
+ cache-dependency-glob: |
69
+ pyproject.toml
70
+ tox.ini
71
+ .pre-commit-config.yaml
72
+ - name: tox
73
+ run: uvx --with tox-uv tox -e ${{ matrix.toxenv }}
@@ -0,0 +1,30 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '[0-9]+.[0-9]+.[0-9]+'
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ publish:
13
+ runs-on: ubuntu-latest
14
+ environment:
15
+ name: pypi
16
+ url: https://pypi.org/p/agent-exam
17
+ permissions:
18
+ id-token: write
19
+ steps:
20
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21
+ with:
22
+ persist-credentials: false
23
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
24
+ with:
25
+ python-version: "3.13"
26
+ - run: |
27
+ python -m pip install --upgrade build
28
+ python -m build
29
+ - name: Publish to PyPI
30
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
@@ -0,0 +1,39 @@
1
+ # Calls the central reusable workflow in the governance repo. This file may live
2
+ # in service repos, but it cannot weaken the scan: the logic is centralized in
3
+ # <org>/governance and, on production repos, the org ruleset requires the
4
+ # "secrets / detect-secrets" check to pass. Renaming the job here only makes the
5
+ # required check go missing, which still blocks the PR.
6
+ #
7
+ # On NON-production repos there is no merge gate — direct pushes to main are
8
+ # allowed. That is exactly why this runs on every push to every branch: detection
9
+ # coverage is broader than the old pull-request-only trigger, and a finding raises
10
+ # an InfoSec issue + a Slack alert automatically (see the webhook service).
11
+ #
12
+ # zytedata is substituted at publish/backfill time. `uses:` must be a
13
+ # literal — GitHub does not expand expressions there — so the org cannot be a
14
+ # variable and each org gets its own rendered copy pointing at its OWN governance
15
+ # repo. Cross-org reusable-workflow references are not usable here.
16
+ name: secrets
17
+
18
+ on:
19
+ push:
20
+ branches: ["**"]
21
+ pull_request:
22
+ workflow_dispatch:
23
+
24
+ # Supersede in-flight runs for the same ref: PoC branches push often, and only the
25
+ # newest commit's result is meaningful. Push refs (refs/heads/*) and PR refs
26
+ # (refs/pull/*/merge) land in different groups, so this never cancels the run that
27
+ # a production PR's required check is waiting on.
28
+ concurrency:
29
+ group: secrets-${{ github.ref }}
30
+ cancel-in-progress: true
31
+
32
+ permissions:
33
+ contents: read
34
+
35
+ jobs:
36
+ # Job id "secrets" + reusable job "detect-secrets" => check context
37
+ # "secrets / detect-secrets" (this is what Ruleset B requires).
38
+ secrets:
39
+ uses: zytedata/governance/.github/workflows/detect-secrets.yml@main
@@ -0,0 +1,8 @@
1
+ rules:
2
+ unpinned-uses:
3
+ config:
4
+ policies:
5
+ # The central governance workflow is called at @main by design, so a
6
+ # service repo cannot pin its secrets scan to an older revision.
7
+ "zytedata/governance/*": ref-pin
8
+ "*": hash-pin
@@ -0,0 +1,14 @@
1
+ .DS_Store
2
+ __pycache__/
3
+ *.pyc
4
+ .idea/
5
+ .vscode/
6
+ .venv/
7
+ *.egg-info/
8
+ uv.lock
9
+ .tox/
10
+ .ruff_cache/
11
+ .pytest_cache/
12
+ dist/
13
+ docs/_build/
14
+ .env
@@ -0,0 +1,45 @@
1
+ minimum_pre_commit_version: "4.0.0"
2
+
3
+ repos:
4
+ - repo: https://github.com/astral-sh/ruff-pre-commit
5
+ rev: v0.16.1
6
+ hooks:
7
+ - id: ruff-check
8
+ args: [ --fix ]
9
+ - id: ruff-format
10
+ - repo: https://github.com/adamchainz/blacken-docs
11
+ rev: 1.20.0
12
+ hooks:
13
+ - id: blacken-docs
14
+ additional_dependencies:
15
+ - black==26.5.1
16
+ - repo: https://github.com/pre-commit/pre-commit-hooks
17
+ rev: v6.0.0
18
+ hooks:
19
+ - id: end-of-file-fixer
20
+ - id: trailing-whitespace
21
+ - repo: https://github.com/sphinx-contrib/sphinx-lint
22
+ rev: v1.0.2
23
+ hooks:
24
+ - id: sphinx-lint
25
+ - repo: https://github.com/scrapy/sphinx-scrapy
26
+ rev: 0.8.10
27
+ hooks:
28
+ - id: sphinx-scrapy
29
+ - repo: https://github.com/rhysd/actionlint
30
+ rev: v1.7.12
31
+ hooks:
32
+ - id: actionlint
33
+ - repo: https://github.com/zizmorcore/zizmor-pre-commit
34
+ rev: v1.29.0
35
+ hooks:
36
+ - id: zizmor
37
+ args: [--no-progress, --fix]
38
+ # Local mirror of the CI secrets gate so contributors catch secrets before they
39
+ # push. The authoritative enforcement is the org ruleset + central workflow.
40
+ - repo: https://github.com/Yelp/detect-secrets
41
+ rev: v1.5.0
42
+ hooks:
43
+ - id: detect-secrets
44
+ args: ["--baseline", ".secrets.baseline"]
45
+ exclude: ^\.secrets\.baseline$
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ build:
3
+ os: ubuntu-24.04
4
+ tools:
5
+ python: "3.14"
6
+ commands:
7
+ - pip install tox
8
+ - tox -e docs
9
+ - mkdir -p $READTHEDOCS_OUTPUT/html
10
+ - cp -a docs/_build/all/. $READTHEDOCS_OUTPUT/html/
@@ -0,0 +1,127 @@
1
+ {
2
+ "version": "1.5.0",
3
+ "plugins_used": [
4
+ {
5
+ "name": "ArtifactoryDetector"
6
+ },
7
+ {
8
+ "name": "AWSKeyDetector"
9
+ },
10
+ {
11
+ "name": "AzureStorageKeyDetector"
12
+ },
13
+ {
14
+ "name": "Base64HighEntropyString",
15
+ "limit": 4.5
16
+ },
17
+ {
18
+ "name": "BasicAuthDetector"
19
+ },
20
+ {
21
+ "name": "CloudantDetector"
22
+ },
23
+ {
24
+ "name": "DiscordBotTokenDetector"
25
+ },
26
+ {
27
+ "name": "GitHubTokenDetector"
28
+ },
29
+ {
30
+ "name": "GitLabTokenDetector"
31
+ },
32
+ {
33
+ "name": "HexHighEntropyString",
34
+ "limit": 3.0
35
+ },
36
+ {
37
+ "name": "IbmCloudIamDetector"
38
+ },
39
+ {
40
+ "name": "IbmCosHmacDetector"
41
+ },
42
+ {
43
+ "name": "IPPublicDetector"
44
+ },
45
+ {
46
+ "name": "JwtTokenDetector"
47
+ },
48
+ {
49
+ "name": "KeywordDetector",
50
+ "keyword_exclude": ""
51
+ },
52
+ {
53
+ "name": "MailchimpDetector"
54
+ },
55
+ {
56
+ "name": "NpmDetector"
57
+ },
58
+ {
59
+ "name": "OpenAIDetector"
60
+ },
61
+ {
62
+ "name": "PrivateKeyDetector"
63
+ },
64
+ {
65
+ "name": "PypiTokenDetector"
66
+ },
67
+ {
68
+ "name": "SendGridDetector"
69
+ },
70
+ {
71
+ "name": "SlackDetector"
72
+ },
73
+ {
74
+ "name": "SoftlayerDetector"
75
+ },
76
+ {
77
+ "name": "SquareOAuthDetector"
78
+ },
79
+ {
80
+ "name": "StripeDetector"
81
+ },
82
+ {
83
+ "name": "TelegramBotTokenDetector"
84
+ },
85
+ {
86
+ "name": "TwilioKeyDetector"
87
+ }
88
+ ],
89
+ "filters_used": [
90
+ {
91
+ "path": "detect_secrets.filters.allowlist.is_line_allowlisted"
92
+ },
93
+ {
94
+ "path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
95
+ "min_level": 2
96
+ },
97
+ {
98
+ "path": "detect_secrets.filters.heuristic.is_indirect_reference"
99
+ },
100
+ {
101
+ "path": "detect_secrets.filters.heuristic.is_likely_id_string"
102
+ },
103
+ {
104
+ "path": "detect_secrets.filters.heuristic.is_lock_file"
105
+ },
106
+ {
107
+ "path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
108
+ },
109
+ {
110
+ "path": "detect_secrets.filters.heuristic.is_potential_uuid"
111
+ },
112
+ {
113
+ "path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
114
+ },
115
+ {
116
+ "path": "detect_secrets.filters.heuristic.is_sequential_string"
117
+ },
118
+ {
119
+ "path": "detect_secrets.filters.heuristic.is_swagger_file"
120
+ },
121
+ {
122
+ "path": "detect_secrets.filters.heuristic.is_templated_secret"
123
+ }
124
+ ],
125
+ "results": {},
126
+ "generated_at": "2026-06-10T12:52:38Z"
127
+ }
@@ -0,0 +1,64 @@
1
+ # AGENTS.md
2
+
3
+ `agent-exam` is an eval framework for agent skills. See `README.md` for the
4
+ user-facing overview.
5
+
6
+ ## Layout
7
+
8
+ - `agent_exam/` — the engine. Assertions in `assertions/`, subcommands in
9
+ `commands/`, harness adapters in `providers/`, judge dispatch in `judge/`.
10
+ - `tests/` — unit tests, mirroring the package layout.
11
+ - `examples/config.yaml` — annotated reference for `evals/config.yaml`.
12
+
13
+ ## Architecture
14
+
15
+ A plain Python CLI — it does **not** use the Agent SDK. Per task it spawns the
16
+ host agent as a **subprocess** (for Claude Code:
17
+ `claude -p <prompt> --output-format stream-json`), parses the streamed events,
18
+ locates the session transcript, and runs the task's assertions against it.
19
+
20
+ Harnesses sit behind a `Provider` adapter (`claude_code`, `codex_cli`,
21
+ `copilot_cli`, `opencode`, plus `dummy` for testing the runner without an LLM).
22
+ Everything above the adapter — assertions, scoring, reports — works on the
23
+ normalized `RunResult`, so a new harness is an adapter, not a core change.
24
+
25
+ Skills are staged hermetically into each attempt's working directory, which is
26
+ an opaque temp path so nothing in it tips the agent off that it is being
27
+ evaluated.
28
+
29
+ ## How consumers wire it up
30
+
31
+ A repo under evaluation declares `[tool.agent-exam]` in its `pyproject.toml` and
32
+ puts suites under `evals/`. Skills come from `skills_dirs` in
33
+ `evals/config.yaml`, or — when they must be built first — from a `pre_run_hook`
34
+ returning `PreRunResult(skills_dirs=[...])`.
35
+
36
+ ## Working on this repo
37
+
38
+ ```bash
39
+ uv sync
40
+ uv run pytest # unit tests
41
+ uvx tox -e min # tests against the minimum dependency versions
42
+ uvx tox # full matrix + pre-commit + packaging check
43
+ ```
44
+
45
+ Nothing here needs an agent CLI installed: the `dummy` provider covers the
46
+ runner paths, and every harness adapter is tested against recorded event
47
+ streams.
48
+
49
+ ## Gotchas
50
+
51
+ - `pre-commit run --all-files` only covers files git already tracks, so a new
52
+ file that has never been added is silently skipped. Check `git status` for
53
+ untracked files before trusting a green run.
54
+ - The `min` env pins every dependency floor. If a change needs a newer API,
55
+ raise the floor in `pyproject.toml` *and* the pin in `tox.ini` together.
56
+ - `tomllib` is 3.11+; the package supports 3.10 through a `tomli` fallback in
57
+ `agent_exam/config.py`. Import it from there rather than adding new direct
58
+ imports.
59
+ - Pydantic and dataclass fields resolve annotations at run time, so their
60
+ imports must stay out of `TYPE_CHECKING` blocks. Ruff knows this via
61
+ `runtime-evaluated-base-classes`; do not "fix" it by moving them.
62
+ - Versioning is managed by `bump-my-version`
63
+ (`uvx bump-my-version bump patch|minor|major`), which also stamps the date
64
+ onto the `(unreleased)` heading in `CHANGES.rst`. Do not hand-edit versions.
@@ -0,0 +1,8 @@
1
+ =======
2
+ Changes
3
+ =======
4
+
5
+ 0.1.0 (2026-08-12)
6
+ ==================
7
+
8
+ Initial release.
@@ -0,0 +1,6 @@
1
+ # CLAUDE.md
2
+
3
+ Project guidance lives in `AGENTS.md` (the cross-tool convention). It is
4
+ imported below so Claude Code picks it up too.
5
+
6
+ @AGENTS.md
@@ -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 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 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 those 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 [yyyy] [name of copyright owner]
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.