hermes-gate 0.1.2__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 (41) hide show
  1. hermes_gate-0.1.2/LICENSE +190 -0
  2. hermes_gate-0.1.2/PKG-INFO +175 -0
  3. hermes_gate-0.1.2/README.md +150 -0
  4. hermes_gate-0.1.2/pyproject.toml +49 -0
  5. hermes_gate-0.1.2/setup.cfg +4 -0
  6. hermes_gate-0.1.2/src/hermes_gate/__init__.py +3 -0
  7. hermes_gate-0.1.2/src/hermes_gate/adapters.py +299 -0
  8. hermes_gate-0.1.2/src/hermes_gate/classification.py +37 -0
  9. hermes_gate-0.1.2/src/hermes_gate/cli.py +115 -0
  10. hermes_gate-0.1.2/src/hermes_gate/codex_install.py +212 -0
  11. hermes_gate-0.1.2/src/hermes_gate/command_detection.py +206 -0
  12. hermes_gate-0.1.2/src/hermes_gate/config.py +198 -0
  13. hermes_gate-0.1.2/src/hermes_gate/doctor.py +102 -0
  14. hermes_gate-0.1.2/src/hermes_gate/engine.py +515 -0
  15. hermes_gate-0.1.2/src/hermes_gate/execution.py +102 -0
  16. hermes_gate-0.1.2/src/hermes_gate/gate_result.py +141 -0
  17. hermes_gate-0.1.2/src/hermes_gate/gitstate.py +153 -0
  18. hermes_gate-0.1.2/src/hermes_gate/hooks.py +153 -0
  19. hermes_gate-0.1.2/src/hermes_gate/init_repo.py +321 -0
  20. hermes_gate-0.1.2/src/hermes_gate/providers.py +138 -0
  21. hermes_gate-0.1.2/src/hermes_gate/receipts.py +94 -0
  22. hermes_gate-0.1.2/src/hermes_gate/repo_runner.py +254 -0
  23. hermes_gate-0.1.2/src/hermes_gate/schemas/__init__.py +1 -0
  24. hermes_gate-0.1.2/src/hermes_gate/schemas/gate-result-v1.schema.json +184 -0
  25. hermes_gate-0.1.2/src/hermes_gate/status.py +24 -0
  26. hermes_gate-0.1.2/src/hermes_gate.egg-info/PKG-INFO +175 -0
  27. hermes_gate-0.1.2/src/hermes_gate.egg-info/SOURCES.txt +39 -0
  28. hermes_gate-0.1.2/src/hermes_gate.egg-info/dependency_links.txt +1 -0
  29. hermes_gate-0.1.2/src/hermes_gate.egg-info/entry_points.txt +2 -0
  30. hermes_gate-0.1.2/src/hermes_gate.egg-info/requires.txt +4 -0
  31. hermes_gate-0.1.2/src/hermes_gate.egg-info/top_level.txt +1 -0
  32. hermes_gate-0.1.2/tests/test_adapters.py +345 -0
  33. hermes_gate-0.1.2/tests/test_codex_install.py +72 -0
  34. hermes_gate-0.1.2/tests/test_command_detection.py +94 -0
  35. hermes_gate-0.1.2/tests/test_core.py +508 -0
  36. hermes_gate-0.1.2/tests/test_doctor.py +18 -0
  37. hermes_gate-0.1.2/tests/test_gate_result.py +25 -0
  38. hermes_gate-0.1.2/tests/test_hooks.py +138 -0
  39. hermes_gate-0.1.2/tests/test_init_repo.py +112 -0
  40. hermes_gate-0.1.2/tests/test_providers.py +101 -0
  41. hermes_gate-0.1.2/tests/test_runner_regressions.py +144 -0
@@ -0,0 +1,190 @@
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
+ Copyright 2026 Hermes Labs
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,175 @@
1
+ Metadata-Version: 2.4
2
+ Name: hermes-gate
3
+ Version: 0.1.2
4
+ Summary: Bounded, receipt-bound completion rail for coding sessions
5
+ Author-email: Hermes Labs <rbosch@lpci.ai>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/hermes-labs-ai/hermes-gate
8
+ Project-URL: Repository, https://github.com/hermes-labs-ai/hermes-gate
9
+ Project-URL: Issues, https://github.com/hermes-labs-ai/hermes-gate/issues
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: Console
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Topic :: Software Development :: Quality Assurance
18
+ Requires-Python: >=3.11
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Provides-Extra: test
22
+ Requires-Dist: pytest==9.1.1; extra == "test"
23
+ Requires-Dist: ruff==0.15.22; extra == "test"
24
+ Dynamic: license-file
25
+
26
+ # HermesGate
27
+
28
+ HermesGate turns “run the checks again” into a bounded completion ceremony. It
29
+ runs the repository's own commands, records exactly which content and tool
30
+ versions were checked, and reuses a PASS only while those bytes still match.
31
+
32
+ It has no daemon and no runtime dependencies beyond Python 3.11+ and Git.
33
+ Lifecycle hooks inspect receipts; they do not repair code, invoke a model, or
34
+ authorize a push, pull request, or release.
35
+
36
+ ## Five-minute quickstart
37
+
38
+ From a local checkout of HermesGate:
39
+
40
+ ```bash
41
+ python3 -m venv .venv
42
+ . .venv/bin/activate
43
+ python -m pip install .
44
+ cd /path/to/your/git-repository
45
+ hermes-gate init
46
+ hermes-gate fast
47
+ hermes-gate full
48
+ hermes-gate doctor
49
+ ```
50
+
51
+ `init` detects repository-native Python or JavaScript commands and writes a
52
+ reviewable `.hermes/gate.toml`, a checksum-bound stdlib runner, and a CI
53
+ workflow. Existing integration files are not overwritten unless
54
+ `hermes-gate init --force` is explicit.
55
+
56
+ The copied runner also requires Python 3.11 or newer, even when the project
57
+ it checks supports older Python versions. Run Gate under a supported interpreter;
58
+ profile commands may select the project's own interpreter separately.
59
+
60
+ New default whitespace checks inspect selected working-tree, staged and untracked
61
+ files using Git's whitespace rules. Existing profiles are preserved; adopting the
62
+ new check in an existing repository requires a reviewed runner/profile update.
63
+ The copied runner drains stdout and stderr concurrently while retaining at most
64
+ 32 KiB of each stream; its truncation flag reports any discarded output.
65
+
66
+ ## Completion workflows
67
+
68
+ | Workflow | Use it for | Receipt boundary |
69
+ | --- | --- | --- |
70
+ | `hermes-gate fast` | Short feedback over current changed paths | Exact content digest, selected paths, checks, elapsed time, and command versions |
71
+ | `hermes-gate review` | One bounded semantic review after fast passes | Exact digest, provider version, normalized findings, and suppression count |
72
+ | `hermes-gate full` | Complete repository-local test contract | Exact digest, full checks, elapsed time, and command versions |
73
+
74
+ A typical local ceremony is:
75
+
76
+ ```bash
77
+ hermes-gate fast
78
+ hermes-gate review
79
+ hermes-gate full
80
+ hermes-gate boundary commit
81
+ ```
82
+
83
+ The boundary command only verifies configured receipts. It never performs the Git
84
+ operation or grants owner authorization.
85
+
86
+ ## CLI
87
+
88
+ ```text
89
+ hermes-gate init [--force]
90
+ hermes-gate fast
91
+ hermes-gate repair
92
+ hermes-gate review
93
+ hermes-gate full
94
+ hermes-gate boundary commit|push|pr-create|pr-ready
95
+ hermes-gate doctor
96
+ hermes-gate uninstall-repo
97
+ hermes-gate --version
98
+ ```
99
+
100
+ Commands emit JSON with one terminal state: `PASS`, `FAIL`,
101
+ `NOT_APPLICABLE`, `NOT_CONFIGURED`, `REVIEW_UNAVAILABLE`, `PARKED`, or
102
+ `ERROR`.
103
+
104
+ ## Repository-native default
105
+
106
+ The generated profile uses argv arrays and the repository's existing Ruff,
107
+ pytest, npm, lint, typecheck, test, or build commands. It never installs these
108
+ tools. Runtime receipts, baselines, install manifests, and adapter artifacts live
109
+ under `.git/hermes-gate/`; generated tracked source contains no machine-specific
110
+ absolute paths.
111
+
112
+ ```toml
113
+ [gate]
114
+ fast_budget_seconds = 8.0
115
+ full_required_local = false
116
+
117
+ [[fast]]
118
+ name = "ruff"
119
+ argv = ["ruff", "check", "{files}"]
120
+ timeout_seconds = 6.0
121
+ globs = ["**/*.py"]
122
+ ```
123
+
124
+ `{files}` expands to separate argv entries. Shell strings are rejected.
125
+
126
+ ## Optional primitive adapters
127
+
128
+ HermesGate packages a standard-library loader and validator for the shared
129
+ `gate-result/v1` schema. PyGate and QuickGate.js adapters are opt-in and
130
+ isolated; HermesGate never downloads or installs them.
131
+
132
+ PyGate 0.2.0 or newer:
133
+
134
+ ```toml
135
+ [adapter]
136
+ enabled = true
137
+ name = "pygate"
138
+ argv = ["pygate"]
139
+ minimum_version = "0.2.0"
140
+ ```
141
+
142
+ QuickGate.js 0.2.3 or newer:
143
+
144
+ ```toml
145
+ [adapter]
146
+ enabled = true
147
+ name = "quick-gate"
148
+ argv = ["quick-gate"]
149
+ minimum_version = "0.2.3"
150
+ ```
151
+
152
+ Adapter output is written below `.git/hermes-gate/adapters/`, validated against
153
+ the packaged contract, and then normalized into a HermesGate receipt. An absent,
154
+ old, or invalid primitive returns `ERROR`; it never falls through to an
155
+ unreviewed installation.
156
+
157
+ ## Review and hooks
158
+
159
+ `review` requires an exact fast PASS. CodeRabbit agent-mode JSONL is the initial
160
+ provider boundary. If it is unavailable, a clean committed diff may use an
161
+ installed `hermes-pr-review` fallback. Unparseable, unauthenticated, timed-out,
162
+ or unavailable review output is never relabeled PASS.
163
+
164
+ `install-codex` and `uninstall-codex` are intentionally hidden integration
165
+ commands. Codex integration preserves unrelated hook and instruction content.
166
+ Claude settings and instruction surfaces remain outside Codex's ownership.
167
+
168
+ ## What PASS means
169
+
170
+ A PASS proves only that the declared commands passed for the receipt-bound local
171
+ content. It does not prove universal correctness, security, mergeability, public
172
+ release, adoption, or permission to push, publish, or create a pull request.
173
+
174
+ See [SECURITY.md](SECURITY.md), [CONTRIBUTING.md](CONTRIBUTING.md), and
175
+ [CHANGELOG.md](CHANGELOG.md) for project policy and release history.
@@ -0,0 +1,150 @@
1
+ # HermesGate
2
+
3
+ HermesGate turns “run the checks again” into a bounded completion ceremony. It
4
+ runs the repository's own commands, records exactly which content and tool
5
+ versions were checked, and reuses a PASS only while those bytes still match.
6
+
7
+ It has no daemon and no runtime dependencies beyond Python 3.11+ and Git.
8
+ Lifecycle hooks inspect receipts; they do not repair code, invoke a model, or
9
+ authorize a push, pull request, or release.
10
+
11
+ ## Five-minute quickstart
12
+
13
+ From a local checkout of HermesGate:
14
+
15
+ ```bash
16
+ python3 -m venv .venv
17
+ . .venv/bin/activate
18
+ python -m pip install .
19
+ cd /path/to/your/git-repository
20
+ hermes-gate init
21
+ hermes-gate fast
22
+ hermes-gate full
23
+ hermes-gate doctor
24
+ ```
25
+
26
+ `init` detects repository-native Python or JavaScript commands and writes a
27
+ reviewable `.hermes/gate.toml`, a checksum-bound stdlib runner, and a CI
28
+ workflow. Existing integration files are not overwritten unless
29
+ `hermes-gate init --force` is explicit.
30
+
31
+ The copied runner also requires Python 3.11 or newer, even when the project
32
+ it checks supports older Python versions. Run Gate under a supported interpreter;
33
+ profile commands may select the project's own interpreter separately.
34
+
35
+ New default whitespace checks inspect selected working-tree, staged and untracked
36
+ files using Git's whitespace rules. Existing profiles are preserved; adopting the
37
+ new check in an existing repository requires a reviewed runner/profile update.
38
+ The copied runner drains stdout and stderr concurrently while retaining at most
39
+ 32 KiB of each stream; its truncation flag reports any discarded output.
40
+
41
+ ## Completion workflows
42
+
43
+ | Workflow | Use it for | Receipt boundary |
44
+ | --- | --- | --- |
45
+ | `hermes-gate fast` | Short feedback over current changed paths | Exact content digest, selected paths, checks, elapsed time, and command versions |
46
+ | `hermes-gate review` | One bounded semantic review after fast passes | Exact digest, provider version, normalized findings, and suppression count |
47
+ | `hermes-gate full` | Complete repository-local test contract | Exact digest, full checks, elapsed time, and command versions |
48
+
49
+ A typical local ceremony is:
50
+
51
+ ```bash
52
+ hermes-gate fast
53
+ hermes-gate review
54
+ hermes-gate full
55
+ hermes-gate boundary commit
56
+ ```
57
+
58
+ The boundary command only verifies configured receipts. It never performs the Git
59
+ operation or grants owner authorization.
60
+
61
+ ## CLI
62
+
63
+ ```text
64
+ hermes-gate init [--force]
65
+ hermes-gate fast
66
+ hermes-gate repair
67
+ hermes-gate review
68
+ hermes-gate full
69
+ hermes-gate boundary commit|push|pr-create|pr-ready
70
+ hermes-gate doctor
71
+ hermes-gate uninstall-repo
72
+ hermes-gate --version
73
+ ```
74
+
75
+ Commands emit JSON with one terminal state: `PASS`, `FAIL`,
76
+ `NOT_APPLICABLE`, `NOT_CONFIGURED`, `REVIEW_UNAVAILABLE`, `PARKED`, or
77
+ `ERROR`.
78
+
79
+ ## Repository-native default
80
+
81
+ The generated profile uses argv arrays and the repository's existing Ruff,
82
+ pytest, npm, lint, typecheck, test, or build commands. It never installs these
83
+ tools. Runtime receipts, baselines, install manifests, and adapter artifacts live
84
+ under `.git/hermes-gate/`; generated tracked source contains no machine-specific
85
+ absolute paths.
86
+
87
+ ```toml
88
+ [gate]
89
+ fast_budget_seconds = 8.0
90
+ full_required_local = false
91
+
92
+ [[fast]]
93
+ name = "ruff"
94
+ argv = ["ruff", "check", "{files}"]
95
+ timeout_seconds = 6.0
96
+ globs = ["**/*.py"]
97
+ ```
98
+
99
+ `{files}` expands to separate argv entries. Shell strings are rejected.
100
+
101
+ ## Optional primitive adapters
102
+
103
+ HermesGate packages a standard-library loader and validator for the shared
104
+ `gate-result/v1` schema. PyGate and QuickGate.js adapters are opt-in and
105
+ isolated; HermesGate never downloads or installs them.
106
+
107
+ PyGate 0.2.0 or newer:
108
+
109
+ ```toml
110
+ [adapter]
111
+ enabled = true
112
+ name = "pygate"
113
+ argv = ["pygate"]
114
+ minimum_version = "0.2.0"
115
+ ```
116
+
117
+ QuickGate.js 0.2.3 or newer:
118
+
119
+ ```toml
120
+ [adapter]
121
+ enabled = true
122
+ name = "quick-gate"
123
+ argv = ["quick-gate"]
124
+ minimum_version = "0.2.3"
125
+ ```
126
+
127
+ Adapter output is written below `.git/hermes-gate/adapters/`, validated against
128
+ the packaged contract, and then normalized into a HermesGate receipt. An absent,
129
+ old, or invalid primitive returns `ERROR`; it never falls through to an
130
+ unreviewed installation.
131
+
132
+ ## Review and hooks
133
+
134
+ `review` requires an exact fast PASS. CodeRabbit agent-mode JSONL is the initial
135
+ provider boundary. If it is unavailable, a clean committed diff may use an
136
+ installed `hermes-pr-review` fallback. Unparseable, unauthenticated, timed-out,
137
+ or unavailable review output is never relabeled PASS.
138
+
139
+ `install-codex` and `uninstall-codex` are intentionally hidden integration
140
+ commands. Codex integration preserves unrelated hook and instruction content.
141
+ Claude settings and instruction surfaces remain outside Codex's ownership.
142
+
143
+ ## What PASS means
144
+
145
+ A PASS proves only that the declared commands passed for the receipt-bound local
146
+ content. It does not prove universal correctness, security, mergeability, public
147
+ release, adoption, or permission to push, publish, or create a pull request.
148
+
149
+ See [SECURITY.md](SECURITY.md), [CONTRIBUTING.md](CONTRIBUTING.md), and
150
+ [CHANGELOG.md](CHANGELOG.md) for project policy and release history.
@@ -0,0 +1,49 @@
1
+ [build-system]
2
+ requires = ["setuptools>=70"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "hermes-gate"
7
+ version = "0.1.2"
8
+ description = "Bounded, receipt-bound completion rail for coding sessions"
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ requires-python = ">=3.11"
12
+ dependencies = []
13
+ authors = [{ name = "Hermes Labs", email = "rbosch@lpci.ai" }]
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Environment :: Console",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3 :: Only",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Programming Language :: Python :: 3.13",
22
+ "Topic :: Software Development :: Quality Assurance",
23
+ ]
24
+
25
+ [project.urls]
26
+ Homepage = "https://github.com/hermes-labs-ai/hermes-gate"
27
+ Repository = "https://github.com/hermes-labs-ai/hermes-gate"
28
+ Issues = "https://github.com/hermes-labs-ai/hermes-gate/issues"
29
+
30
+ [project.optional-dependencies]
31
+ test = ["pytest==9.1.1", "ruff==0.15.22"]
32
+
33
+ [project.scripts]
34
+ hermes-gate = "hermes_gate.cli:main"
35
+
36
+ [tool.setuptools.packages.find]
37
+ where = ["src"]
38
+
39
+ [tool.setuptools.package-data]
40
+ hermes_gate = ["schemas/*.json"]
41
+
42
+ [tool.pytest.ini_options]
43
+ addopts = "-q"
44
+ pythonpath = ["src"]
45
+ testpaths = ["tests"]
46
+
47
+ [tool.ruff]
48
+ line-length = 100
49
+ target-version = "py311"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """Hermes Gate public package surface."""
2
+
3
+ __version__ = "0.1.2"