hardproof 0.1.1__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.
- hardproof-0.1.1/LICENSE +175 -0
- hardproof-0.1.1/NOTICE +14 -0
- hardproof-0.1.1/PKG-INFO +179 -0
- hardproof-0.1.1/README.md +148 -0
- hardproof-0.1.1/hardproof/__init__.py +3 -0
- hardproof-0.1.1/hardproof/commands/__init__.py +1 -0
- hardproof-0.1.1/hardproof/commands/cli.py +94 -0
- hardproof-0.1.1/hardproof/commands/shared.py +463 -0
- hardproof-0.1.1/hardproof/commands/slash.py +32 -0
- hardproof-0.1.1/hardproof/compat.py +88 -0
- hardproof-0.1.1/hardproof/config.py +152 -0
- hardproof-0.1.1/hardproof/constants.py +5 -0
- hardproof-0.1.1/hardproof/domain/__init__.py +7 -0
- hardproof-0.1.1/hardproof/domain/enums.py +76 -0
- hardproof-0.1.1/hardproof/domain/models.py +316 -0
- hardproof-0.1.1/hardproof/domain/snapshots.py +80 -0
- hardproof-0.1.1/hardproof/domain/transitions.py +32 -0
- hardproof-0.1.1/hardproof/errors.py +13 -0
- hardproof-0.1.1/hardproof/hooks/__init__.py +1 -0
- hardproof-0.1.1/hardproof/hooks/context.py +99 -0
- hardproof-0.1.1/hardproof/hooks/sessions.py +29 -0
- hardproof-0.1.1/hardproof/hooks/tool_policy.py +113 -0
- hardproof-0.1.1/hardproof/hooks/verification.py +54 -0
- hardproof-0.1.1/hardproof/migrations/001_initial.sql +108 -0
- hardproof-0.1.1/hardproof/migrations/__init__.py +1 -0
- hardproof-0.1.1/hardproof/paths.py +51 -0
- hardproof-0.1.1/hardproof/plugin.py +175 -0
- hardproof-0.1.1/hardproof/policy/__init__.py +1 -0
- hardproof-0.1.1/hardproof/policy/profiles.py +59 -0
- hardproof-0.1.1/hardproof/policy/stage_rules.py +122 -0
- hardproof-0.1.1/hardproof/policy/tool_rules.py +144 -0
- hardproof-0.1.1/hardproof/policy/verification_rules.py +26 -0
- hardproof-0.1.1/hardproof/py.typed +1 -0
- hardproof-0.1.1/hardproof/services/__init__.py +1 -0
- hardproof-0.1.1/hardproof/services/approvals.py +35 -0
- hardproof-0.1.1/hardproof/services/artifacts.py +67 -0
- hardproof-0.1.1/hardproof/services/decisions.py +37 -0
- hardproof-0.1.1/hardproof/services/evidence.py +221 -0
- hardproof-0.1.1/hardproof/services/reports.py +259 -0
- hardproof-0.1.1/hardproof/services/runs.py +71 -0
- hardproof-0.1.1/hardproof/services/sessions.py +53 -0
- hardproof-0.1.1/hardproof/services/tasks.py +92 -0
- hardproof-0.1.1/hardproof/skills/deliver/SKILL.md +34 -0
- hardproof-0.1.1/hardproof/skills/design/SKILL.md +34 -0
- hardproof-0.1.1/hardproof/skills/discover/SKILL.md +34 -0
- hardproof-0.1.1/hardproof/skills/implement/SKILL.md +35 -0
- hardproof-0.1.1/hardproof/skills/learn/SKILL.md +34 -0
- hardproof-0.1.1/hardproof/skills/orchestrate/SKILL.md +35 -0
- hardproof-0.1.1/hardproof/skills/plan/SKILL.md +34 -0
- hardproof-0.1.1/hardproof/skills/review/SKILL.md +34 -0
- hardproof-0.1.1/hardproof/skills/verify/SKILL.md +34 -0
- hardproof-0.1.1/hardproof/storage/__init__.py +6 -0
- hardproof-0.1.1/hardproof/storage/database.py +50 -0
- hardproof-0.1.1/hardproof/storage/migrations.py +73 -0
- hardproof-0.1.1/hardproof/storage/repository.py +321 -0
- hardproof-0.1.1/hardproof/templates/__init__.py +1 -0
- hardproof-0.1.1/hardproof/templates/completion.md +19 -0
- hardproof-0.1.1/hardproof/templates/design.md +19 -0
- hardproof-0.1.1/hardproof/templates/discovery.md +19 -0
- hardproof-0.1.1/hardproof/templates/plan.md +19 -0
- hardproof-0.1.1/hardproof/templates/review.md +19 -0
- hardproof-0.1.1/hardproof/tools/__init__.py +1 -0
- hardproof-0.1.1/hardproof/tools/handlers.py +212 -0
- hardproof-0.1.1/hardproof/tools/schemas.py +96 -0
- hardproof-0.1.1/hardproof.egg-info/PKG-INFO +179 -0
- hardproof-0.1.1/hardproof.egg-info/SOURCES.txt +70 -0
- hardproof-0.1.1/hardproof.egg-info/dependency_links.txt +1 -0
- hardproof-0.1.1/hardproof.egg-info/entry_points.txt +2 -0
- hardproof-0.1.1/hardproof.egg-info/requires.txt +14 -0
- hardproof-0.1.1/hardproof.egg-info/top_level.txt +1 -0
- hardproof-0.1.1/pyproject.toml +70 -0
- hardproof-0.1.1/setup.cfg +4 -0
hardproof-0.1.1/LICENSE
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
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
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean any work of authorship, including
|
|
48
|
+
the original version of the Work and any modifications or additions
|
|
49
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
50
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
51
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
52
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
53
|
+
means any form of electronic, verbal, or written communication sent
|
|
54
|
+
to the Licensor or its representatives, including but not limited to
|
|
55
|
+
communication on electronic mailing lists, source code control systems,
|
|
56
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
57
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
58
|
+
excluding communication that is conspicuously marked or otherwise
|
|
59
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
60
|
+
|
|
61
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
62
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
63
|
+
subsequently incorporated within the Work.
|
|
64
|
+
|
|
65
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
66
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
67
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
68
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
69
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
70
|
+
Work and such Derivative Works in Source or Object form.
|
|
71
|
+
|
|
72
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
(except as stated in this section) patent license to make, have made,
|
|
76
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
77
|
+
where such license applies only to those patent claims licensable
|
|
78
|
+
by such Contributor that are necessarily infringed by their
|
|
79
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
80
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
81
|
+
institute patent litigation against any entity (including a
|
|
82
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
83
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
84
|
+
or contributory patent infringement, then any patent licenses
|
|
85
|
+
granted to You under this License for that Work shall terminate
|
|
86
|
+
as of the date such litigation is filed.
|
|
87
|
+
|
|
88
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
89
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
90
|
+
modifications, and in Source or Object form, provided that You
|
|
91
|
+
meet the following conditions:
|
|
92
|
+
|
|
93
|
+
(a) You must give any other recipients of the Work or
|
|
94
|
+
Derivative Works a copy of this License; and
|
|
95
|
+
|
|
96
|
+
(b) You must cause any modified files to carry prominent notices
|
|
97
|
+
stating that You changed the files; and
|
|
98
|
+
|
|
99
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
100
|
+
that You distribute, all copyright, patent, trademark, and
|
|
101
|
+
attribution notices from the Source form of the Work,
|
|
102
|
+
excluding those notices that do not pertain to any part of
|
|
103
|
+
the Derivative Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
106
|
+
distribution, then any Derivative Works that You distribute must
|
|
107
|
+
include a readable copy of the attribution notices contained
|
|
108
|
+
within such NOTICE file, excluding those notices that do not
|
|
109
|
+
pertain to any part of the Derivative Works, in at least one
|
|
110
|
+
of the following places: within a NOTICE text file distributed
|
|
111
|
+
as part of the Derivative Works; within the Source form or
|
|
112
|
+
documentation, if provided along with the Derivative Works; or,
|
|
113
|
+
within a display generated by the Derivative Works, if and
|
|
114
|
+
wherever such third-party notices normally appear. The contents
|
|
115
|
+
of the NOTICE file are for informational purposes only and
|
|
116
|
+
do not modify the License. You may add Your own attribution
|
|
117
|
+
notices within Derivative Works that You distribute, alongside
|
|
118
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
119
|
+
that such additional attribution notices cannot be construed
|
|
120
|
+
as modifying the License.
|
|
121
|
+
|
|
122
|
+
You may add Your own copyright statement to Your modifications and
|
|
123
|
+
may provide additional or different license terms and conditions
|
|
124
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
125
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
126
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
127
|
+
the conditions stated in this License.
|
|
128
|
+
|
|
129
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
130
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
131
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
132
|
+
this License, without any additional terms or conditions.
|
|
133
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
134
|
+
the terms of any separate license agreement you may have executed
|
|
135
|
+
with Licensor regarding such Contributions.
|
|
136
|
+
|
|
137
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
138
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
139
|
+
except as required for reasonable and customary use in describing the
|
|
140
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
141
|
+
|
|
142
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
143
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
144
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
145
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
146
|
+
implied, including, without limitation, any warranties or conditions
|
|
147
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
148
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
149
|
+
appropriateness of using or redistributing the Work and assume any
|
|
150
|
+
risks associated with Your exercise of permissions under this License.
|
|
151
|
+
|
|
152
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
153
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
154
|
+
unless required by applicable law (such as deliberate and grossly
|
|
155
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
156
|
+
liable to You for damages, including any direct, indirect, special,
|
|
157
|
+
incidental, or consequential damages of any character arising as a
|
|
158
|
+
result of this License or out of the use or inability to use the
|
|
159
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
160
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
161
|
+
other commercial damages or losses), even if such Contributor
|
|
162
|
+
has been advised of the possibility of such damages.
|
|
163
|
+
|
|
164
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
165
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
166
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
167
|
+
or other liability obligations and/or rights consistent with this
|
|
168
|
+
License. However, in accepting such obligations, You may act only
|
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
|
172
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
173
|
+
of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
hardproof-0.1.1/NOTICE
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Hardproof
|
|
2
|
+
Copyright 2026 Hardproof contributors
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0.
|
|
5
|
+
|
|
6
|
+
Hardproof is an independent project. "Hardproof" is a working name pending
|
|
7
|
+
trademark and marketplace clearance. No affiliation with Atlassian or any
|
|
8
|
+
other similarly named product or company is implied.
|
|
9
|
+
|
|
10
|
+
The project acknowledges Superpowers as conceptual inspiration for the broad
|
|
11
|
+
idea of explicit agent engineering workflows. Hardproof is a clean-room,
|
|
12
|
+
independently designed and written implementation; no source, skill prose,
|
|
13
|
+
prompts, fixtures, diagrams, templates, layout, or documentation wording is
|
|
14
|
+
copied from that project.
|
hardproof-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hardproof
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: A persistent, risk-aware engineering protocol for Hermes Agent
|
|
5
|
+
Author: Hardproof contributors
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Classifier: Development Status :: 3 - Alpha
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Typing :: Typed
|
|
13
|
+
Requires-Python: >=3.11
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
License-File: NOTICE
|
|
17
|
+
Requires-Dist: PyYAML<7,>=6
|
|
18
|
+
Provides-Extra: dev
|
|
19
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
20
|
+
Requires-Dist: cyclonedx-bom>=7; extra == "dev"
|
|
21
|
+
Requires-Dist: hypothesis>=6; extra == "dev"
|
|
22
|
+
Requires-Dist: mypy>=1.10; extra == "dev"
|
|
23
|
+
Requires-Dist: pip-audit>=2.7; extra == "dev"
|
|
24
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
25
|
+
Requires-Dist: pytest-cov>=5; extra == "dev"
|
|
26
|
+
Requires-Dist: pytest-xdist>=3; extra == "dev"
|
|
27
|
+
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
28
|
+
Requires-Dist: twine>=5; extra == "dev"
|
|
29
|
+
Requires-Dist: types-PyYAML>=6; extra == "dev"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# HARDPROOF
|
|
33
|
+
|
|
34
|
+
> Software has to earn done.
|
|
35
|
+
|
|
36
|
+
[](https://github.com/asimons81/hardproof/actions/workflows/ci.yml)
|
|
37
|
+
[](LICENSE)
|
|
38
|
+
|
|
39
|
+
> **Alpha software.** v0.1.0 is a public alpha. Latest development is v0.2.0 Gatehouse. Commands, schemas, and contracts may change before v1.0.0. Install from GitHub; PyPI publication is pending.
|
|
40
|
+
|
|
41
|
+
Hardproof gives coding agents a persistent, risk-aware engineering process that turns ambiguous software requests into reviewed, verified results while preserving the evidence behind every completion claim.
|
|
42
|
+
|
|
43
|
+
> A persistent, risk-aware engineering protocol for Hermes Agent.
|
|
44
|
+
|
|
45
|
+
## Current Status
|
|
46
|
+
|
|
47
|
+
| Release | Version | Status |
|
|
48
|
+
|---------|---------|--------|
|
|
49
|
+
| Public alpha | v0.1.0 Core Heat | Released |
|
|
50
|
+
| Active development | v0.2.0 Gatehouse | Task 8 (stage-graph configuration) next |
|
|
51
|
+
|
|
52
|
+
## Install and enable
|
|
53
|
+
|
|
54
|
+
From GitHub (only option until PyPI publication):
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
hermes plugins install asimons81/hardproof --enable
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
From PyPI (not yet published -- this will work once the package is uploaded):
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pip install hardproof
|
|
64
|
+
hermes plugins enable hardproof
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Plugins remain opt-in under Hermes configuration. Hardproof does not edit global instructions or install skills into the user's global skill directory.
|
|
68
|
+
|
|
69
|
+
## First run
|
|
70
|
+
|
|
71
|
+
Start in a Git repository with at least one commit:
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
/hardproof start standard Build API-key rotation with rollback support
|
|
75
|
+
/hardproof status
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The equivalent terminal surface is:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
hermes hardproof start standard "Build API-key rotation with rollback support"
|
|
82
|
+
hermes hardproof status
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Hardproof stores state under `.hardproof/`, adds that directory to the repository-local Git exclude file when necessary, and injects compact stage context into bound Hermes sessions.
|
|
86
|
+
|
|
87
|
+
## Profiles
|
|
88
|
+
|
|
89
|
+
**Quick** supports low-risk localized work with recorded skips and at least one fresh verification check. Use for typo fixes, doc updates, or one-line changes.
|
|
90
|
+
|
|
91
|
+
**Standard** requires discovery, design and plan artifacts, human design and plan approvals, tracked implementation, review, fresh verification, delivery, and a learning decision. Use for feature work, refactors, or multi-file changes.
|
|
92
|
+
|
|
93
|
+
**Critical** adds destructive-action approvals, at least two checks, rollback and risk material, fail-closed mutation policy, and human completion approval. Use for auth changes, data migrations, or production configuration.
|
|
94
|
+
|
|
95
|
+
No profile permits completion without fresh successful evidence.
|
|
96
|
+
|
|
97
|
+
## Architecture
|
|
98
|
+
|
|
99
|
+
Hardproof is a standalone Python package discovered through the `hermes_agent.plugins` entry-point group. It uses only the public Hermes registration, hook, command, skill, and dispatch APIs.
|
|
100
|
+
|
|
101
|
+
1. **Plugin layer** -- registers slash commands, CLI commands, six tools, lifecycle hooks, and nine namespaced skills
|
|
102
|
+
2. **Domain layer** -- run profiles, stages, transitions, approval gates, and immutable event models
|
|
103
|
+
3. **Policy layer** -- stage-aware mutation rules, tool policies, and human-required approval escalation
|
|
104
|
+
4. **Storage layer** -- project-local SQLite database with forward-only migrations plus human-readable artifacts under `.hardproof/runs/<run-id>/`
|
|
105
|
+
5. **Verification layer** -- workspace-bound evidence with Git HEAD capture, binary diff freshness checks, and redacted output recording
|
|
106
|
+
|
|
107
|
+
See [architecture](docs/architecture.md), [protocol profiles](docs/profiles.md), and [compatibility](docs/compatibility.md).
|
|
108
|
+
|
|
109
|
+
## Verification Evidence
|
|
110
|
+
|
|
111
|
+
Hardproof requires fresh, workspace-bound evidence before any run can complete. Verification checks run through Hermes in the current working directory, capturing:
|
|
112
|
+
|
|
113
|
+
- Git HEAD commit hash at the time of verification
|
|
114
|
+
- Binary diff against the working tree to detect uncommitted changes
|
|
115
|
+
- Redacted, size-bounded output from each configured check
|
|
116
|
+
- Strict exit-code evaluation (only explicit zero passes)
|
|
117
|
+
|
|
118
|
+
Evidence is recorded in the run ledger and included in every completion report. Stale evidence -- evidence recorded against a different workspace state -- is flagged and cannot satisfy completion gates.
|
|
119
|
+
|
|
120
|
+
## Security Boundary
|
|
121
|
+
|
|
122
|
+
Hardproof coordinates engineering process; it is not a security sandbox. Policy hooks do not replace OS permissions, protected branches, sandboxing, isolation, or human code review.
|
|
123
|
+
|
|
124
|
+
Protections included:
|
|
125
|
+
- Force pushes and destructive Git operations are blocked
|
|
126
|
+
- Recognized destructive actions are blocked or require human approval
|
|
127
|
+
- Source mutation is stage-aware (locked in later stages)
|
|
128
|
+
- Human-only approval gates prevent model self-approval
|
|
129
|
+
- Policy decisions are recorded with cryptographic hashes of arguments and configuration
|
|
130
|
+
|
|
131
|
+
See [SECURITY.md](SECURITY.md) and the [security model](docs/security-model.md).
|
|
132
|
+
|
|
133
|
+
## Privacy
|
|
134
|
+
|
|
135
|
+
Hardproof has **no telemetry, no analytics, no accounts, no hosted dependencies, no remote asset fetching, and no automatic update checks.** Normal local operation makes no intentional network request. Verification output is redacted and size-bounded. Policy events store argument keys and hashes rather than raw values. Nothing phones home.
|
|
136
|
+
|
|
137
|
+
## Known Limitations in v0.1.0
|
|
138
|
+
|
|
139
|
+
- Policy hooks coordinate process but are not a security sandbox or complete shell parser
|
|
140
|
+
- Managed runs require a Git worktree for workspace-bound freshness evidence
|
|
141
|
+
- Local compatibility evidence covers Hermes Agent 0.18.2 on native Windows; other OS support is CI-enforced
|
|
142
|
+
- Gatehouse policy features (configurable rules, waivers, risk suggestions) ship in v0.2.0
|
|
143
|
+
|
|
144
|
+
## Roadmap
|
|
145
|
+
|
|
146
|
+
| Version | Codename | Focus |
|
|
147
|
+
|---------|----------|-------|
|
|
148
|
+
| v0.1.0 | Core Heat | Standalone plugin, durable stages, SQLite state, approvals, skills, fresh evidence, reports |
|
|
149
|
+
| v0.2.0 | Gatehouse | Explainable configurable policy, scoped waivers, risk suggestions, language packs |
|
|
150
|
+
| v0.3.0 | Workcells | Dependency-aware task waves, resumable subagent implementers |
|
|
151
|
+
| v0.4.0 | Challenge Chamber | Independent specialized reviewers, severity, fix/re-review loops |
|
|
152
|
+
| v0.5.0 | Isolation | Branches, worktrees, baseline proof, rollback, backend adapters |
|
|
153
|
+
| v0.6.0 | Tempering | Human-approved provenance-linked learning proposals |
|
|
154
|
+
| v0.7.0 | Control Room | Cross-surface continuity, timeline, notifications, local dashboard |
|
|
155
|
+
| v0.8.0 | Protocol SDK | Frozen documented policy, validator, evidence, report interfaces |
|
|
156
|
+
| v0.9.0 | Hardening | Migration rehearsals, recovery, concurrency, performance, security scenarios |
|
|
157
|
+
| v1.0.0 | Proven | Stable public contracts, multi-repo validation across OS and backend targets |
|
|
158
|
+
|
|
159
|
+
See [ROADMAP.md](ROADMAP.md). A release advances only after its tests, migrations, security review, compatibility evidence, documentation, and package artifacts pass.
|
|
160
|
+
|
|
161
|
+
## Contributing
|
|
162
|
+
|
|
163
|
+
Start with [CONTRIBUTING.md](CONTRIBUTING.md), [GOVERNANCE.md](GOVERNANCE.md), and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md). Design changes use ADRs; breaking protocol changes require a public RFC issue. Contributions use the Developer Certificate of Origin rather than a CLA.
|
|
164
|
+
|
|
165
|
+
## Inspiration
|
|
166
|
+
|
|
167
|
+
Hardproof acknowledges conceptual inspiration while maintaining a strict clean-room boundary. See [INSPIRATION.md](INSPIRATION.md).
|
|
168
|
+
|
|
169
|
+
## License
|
|
170
|
+
|
|
171
|
+
Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
|
|
172
|
+
|
|
173
|
+
## Affiliation
|
|
174
|
+
|
|
175
|
+
Hardproof is independent open-source software. It is not affiliated with, endorsed by, or sponsored by Hermes Agent, Nous Research, Atlassian, or any other organization.
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
**Topics:** `hermes-agent` `coding-agents` `agentic-coding` `software-engineering` `verification` `developer-tools` `open-source` `python`
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# HARDPROOF
|
|
2
|
+
|
|
3
|
+
> Software has to earn done.
|
|
4
|
+
|
|
5
|
+
[](https://github.com/asimons81/hardproof/actions/workflows/ci.yml)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+
> **Alpha software.** v0.1.0 is a public alpha. Latest development is v0.2.0 Gatehouse. Commands, schemas, and contracts may change before v1.0.0. Install from GitHub; PyPI publication is pending.
|
|
9
|
+
|
|
10
|
+
Hardproof gives coding agents a persistent, risk-aware engineering process that turns ambiguous software requests into reviewed, verified results while preserving the evidence behind every completion claim.
|
|
11
|
+
|
|
12
|
+
> A persistent, risk-aware engineering protocol for Hermes Agent.
|
|
13
|
+
|
|
14
|
+
## Current Status
|
|
15
|
+
|
|
16
|
+
| Release | Version | Status |
|
|
17
|
+
|---------|---------|--------|
|
|
18
|
+
| Public alpha | v0.1.0 Core Heat | Released |
|
|
19
|
+
| Active development | v0.2.0 Gatehouse | Task 8 (stage-graph configuration) next |
|
|
20
|
+
|
|
21
|
+
## Install and enable
|
|
22
|
+
|
|
23
|
+
From GitHub (only option until PyPI publication):
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
hermes plugins install asimons81/hardproof --enable
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
From PyPI (not yet published -- this will work once the package is uploaded):
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install hardproof
|
|
33
|
+
hermes plugins enable hardproof
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Plugins remain opt-in under Hermes configuration. Hardproof does not edit global instructions or install skills into the user's global skill directory.
|
|
37
|
+
|
|
38
|
+
## First run
|
|
39
|
+
|
|
40
|
+
Start in a Git repository with at least one commit:
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
/hardproof start standard Build API-key rotation with rollback support
|
|
44
|
+
/hardproof status
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The equivalent terminal surface is:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
hermes hardproof start standard "Build API-key rotation with rollback support"
|
|
51
|
+
hermes hardproof status
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Hardproof stores state under `.hardproof/`, adds that directory to the repository-local Git exclude file when necessary, and injects compact stage context into bound Hermes sessions.
|
|
55
|
+
|
|
56
|
+
## Profiles
|
|
57
|
+
|
|
58
|
+
**Quick** supports low-risk localized work with recorded skips and at least one fresh verification check. Use for typo fixes, doc updates, or one-line changes.
|
|
59
|
+
|
|
60
|
+
**Standard** requires discovery, design and plan artifacts, human design and plan approvals, tracked implementation, review, fresh verification, delivery, and a learning decision. Use for feature work, refactors, or multi-file changes.
|
|
61
|
+
|
|
62
|
+
**Critical** adds destructive-action approvals, at least two checks, rollback and risk material, fail-closed mutation policy, and human completion approval. Use for auth changes, data migrations, or production configuration.
|
|
63
|
+
|
|
64
|
+
No profile permits completion without fresh successful evidence.
|
|
65
|
+
|
|
66
|
+
## Architecture
|
|
67
|
+
|
|
68
|
+
Hardproof is a standalone Python package discovered through the `hermes_agent.plugins` entry-point group. It uses only the public Hermes registration, hook, command, skill, and dispatch APIs.
|
|
69
|
+
|
|
70
|
+
1. **Plugin layer** -- registers slash commands, CLI commands, six tools, lifecycle hooks, and nine namespaced skills
|
|
71
|
+
2. **Domain layer** -- run profiles, stages, transitions, approval gates, and immutable event models
|
|
72
|
+
3. **Policy layer** -- stage-aware mutation rules, tool policies, and human-required approval escalation
|
|
73
|
+
4. **Storage layer** -- project-local SQLite database with forward-only migrations plus human-readable artifacts under `.hardproof/runs/<run-id>/`
|
|
74
|
+
5. **Verification layer** -- workspace-bound evidence with Git HEAD capture, binary diff freshness checks, and redacted output recording
|
|
75
|
+
|
|
76
|
+
See [architecture](docs/architecture.md), [protocol profiles](docs/profiles.md), and [compatibility](docs/compatibility.md).
|
|
77
|
+
|
|
78
|
+
## Verification Evidence
|
|
79
|
+
|
|
80
|
+
Hardproof requires fresh, workspace-bound evidence before any run can complete. Verification checks run through Hermes in the current working directory, capturing:
|
|
81
|
+
|
|
82
|
+
- Git HEAD commit hash at the time of verification
|
|
83
|
+
- Binary diff against the working tree to detect uncommitted changes
|
|
84
|
+
- Redacted, size-bounded output from each configured check
|
|
85
|
+
- Strict exit-code evaluation (only explicit zero passes)
|
|
86
|
+
|
|
87
|
+
Evidence is recorded in the run ledger and included in every completion report. Stale evidence -- evidence recorded against a different workspace state -- is flagged and cannot satisfy completion gates.
|
|
88
|
+
|
|
89
|
+
## Security Boundary
|
|
90
|
+
|
|
91
|
+
Hardproof coordinates engineering process; it is not a security sandbox. Policy hooks do not replace OS permissions, protected branches, sandboxing, isolation, or human code review.
|
|
92
|
+
|
|
93
|
+
Protections included:
|
|
94
|
+
- Force pushes and destructive Git operations are blocked
|
|
95
|
+
- Recognized destructive actions are blocked or require human approval
|
|
96
|
+
- Source mutation is stage-aware (locked in later stages)
|
|
97
|
+
- Human-only approval gates prevent model self-approval
|
|
98
|
+
- Policy decisions are recorded with cryptographic hashes of arguments and configuration
|
|
99
|
+
|
|
100
|
+
See [SECURITY.md](SECURITY.md) and the [security model](docs/security-model.md).
|
|
101
|
+
|
|
102
|
+
## Privacy
|
|
103
|
+
|
|
104
|
+
Hardproof has **no telemetry, no analytics, no accounts, no hosted dependencies, no remote asset fetching, and no automatic update checks.** Normal local operation makes no intentional network request. Verification output is redacted and size-bounded. Policy events store argument keys and hashes rather than raw values. Nothing phones home.
|
|
105
|
+
|
|
106
|
+
## Known Limitations in v0.1.0
|
|
107
|
+
|
|
108
|
+
- Policy hooks coordinate process but are not a security sandbox or complete shell parser
|
|
109
|
+
- Managed runs require a Git worktree for workspace-bound freshness evidence
|
|
110
|
+
- Local compatibility evidence covers Hermes Agent 0.18.2 on native Windows; other OS support is CI-enforced
|
|
111
|
+
- Gatehouse policy features (configurable rules, waivers, risk suggestions) ship in v0.2.0
|
|
112
|
+
|
|
113
|
+
## Roadmap
|
|
114
|
+
|
|
115
|
+
| Version | Codename | Focus |
|
|
116
|
+
|---------|----------|-------|
|
|
117
|
+
| v0.1.0 | Core Heat | Standalone plugin, durable stages, SQLite state, approvals, skills, fresh evidence, reports |
|
|
118
|
+
| v0.2.0 | Gatehouse | Explainable configurable policy, scoped waivers, risk suggestions, language packs |
|
|
119
|
+
| v0.3.0 | Workcells | Dependency-aware task waves, resumable subagent implementers |
|
|
120
|
+
| v0.4.0 | Challenge Chamber | Independent specialized reviewers, severity, fix/re-review loops |
|
|
121
|
+
| v0.5.0 | Isolation | Branches, worktrees, baseline proof, rollback, backend adapters |
|
|
122
|
+
| v0.6.0 | Tempering | Human-approved provenance-linked learning proposals |
|
|
123
|
+
| v0.7.0 | Control Room | Cross-surface continuity, timeline, notifications, local dashboard |
|
|
124
|
+
| v0.8.0 | Protocol SDK | Frozen documented policy, validator, evidence, report interfaces |
|
|
125
|
+
| v0.9.0 | Hardening | Migration rehearsals, recovery, concurrency, performance, security scenarios |
|
|
126
|
+
| v1.0.0 | Proven | Stable public contracts, multi-repo validation across OS and backend targets |
|
|
127
|
+
|
|
128
|
+
See [ROADMAP.md](ROADMAP.md). A release advances only after its tests, migrations, security review, compatibility evidence, documentation, and package artifacts pass.
|
|
129
|
+
|
|
130
|
+
## Contributing
|
|
131
|
+
|
|
132
|
+
Start with [CONTRIBUTING.md](CONTRIBUTING.md), [GOVERNANCE.md](GOVERNANCE.md), and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md). Design changes use ADRs; breaking protocol changes require a public RFC issue. Contributions use the Developer Certificate of Origin rather than a CLA.
|
|
133
|
+
|
|
134
|
+
## Inspiration
|
|
135
|
+
|
|
136
|
+
Hardproof acknowledges conceptual inspiration while maintaining a strict clean-room boundary. See [INSPIRATION.md](INSPIRATION.md).
|
|
137
|
+
|
|
138
|
+
## License
|
|
139
|
+
|
|
140
|
+
Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
|
|
141
|
+
|
|
142
|
+
## Affiliation
|
|
143
|
+
|
|
144
|
+
Hardproof is independent open-source software. It is not affiliated with, endorsed by, or sponsored by Hermes Agent, Nous Research, Atlassian, or any other organization.
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
**Topics:** `hermes-agent` `coding-agents` `agentic-coding` `software-engineering` `verification` `developer-tools` `open-source` `python`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Shared, slash, and terminal command surfaces."""
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"""`hermes hardproof` argparse adapter."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
from typing import Any, Callable
|
|
7
|
+
|
|
8
|
+
from hardproof.commands.shared import CommandService
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _configure(parser: argparse.ArgumentParser) -> None:
|
|
12
|
+
sub = parser.add_subparsers(dest="hardproof_command", required=True)
|
|
13
|
+
start = sub.add_parser("start")
|
|
14
|
+
start.add_argument("profile", choices=("quick", "standard", "critical"))
|
|
15
|
+
start.add_argument("request", nargs="+")
|
|
16
|
+
sub.add_parser("status")
|
|
17
|
+
approve = sub.add_parser("approve")
|
|
18
|
+
approve.add_argument("gate", choices=("design", "plan", "completion"))
|
|
19
|
+
approve.add_argument("reason", nargs="*")
|
|
20
|
+
waive = sub.add_parser("waive")
|
|
21
|
+
waive.add_argument("gate")
|
|
22
|
+
waive.add_argument("reason", nargs="+")
|
|
23
|
+
pause = sub.add_parser("pause")
|
|
24
|
+
pause.add_argument("reason", nargs="*")
|
|
25
|
+
resume = sub.add_parser("resume")
|
|
26
|
+
resume.add_argument("run_id", nargs="?")
|
|
27
|
+
abort = sub.add_parser("abort")
|
|
28
|
+
abort.add_argument("reason", nargs="+")
|
|
29
|
+
sub.add_parser("evidence")
|
|
30
|
+
export = sub.add_parser("export")
|
|
31
|
+
export.add_argument("path", nargs="?")
|
|
32
|
+
sub.add_parser("doctor")
|
|
33
|
+
sub.add_parser("runs")
|
|
34
|
+
show = sub.add_parser("show")
|
|
35
|
+
show.add_argument("run_id")
|
|
36
|
+
config = sub.add_parser("config").add_subparsers(dest="config_command", required=True)
|
|
37
|
+
config.add_parser("init")
|
|
38
|
+
config.add_parser("validate")
|
|
39
|
+
db = sub.add_parser("db").add_subparsers(dest="db_command", required=True)
|
|
40
|
+
db.add_parser("migrate")
|
|
41
|
+
sub.add_parser("complete")
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
45
|
+
parser = argparse.ArgumentParser(prog="hermes hardproof")
|
|
46
|
+
_configure(parser)
|
|
47
|
+
return parser
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def _to_argv(args: argparse.Namespace) -> list[str]:
|
|
51
|
+
command = args.hardproof_command
|
|
52
|
+
if command == "start":
|
|
53
|
+
return [command, args.profile, *args.request]
|
|
54
|
+
if command == "approve":
|
|
55
|
+
return [command, args.gate, *args.reason]
|
|
56
|
+
if command == "waive":
|
|
57
|
+
return [command, args.gate, *args.reason]
|
|
58
|
+
if command in {"pause", "abort"}:
|
|
59
|
+
return [command, *args.reason]
|
|
60
|
+
if command == "resume":
|
|
61
|
+
return [command, *([args.run_id] if args.run_id else [])]
|
|
62
|
+
if command == "export":
|
|
63
|
+
return [command, *([args.path] if args.path else [])]
|
|
64
|
+
if command == "show":
|
|
65
|
+
return [command, args.run_id]
|
|
66
|
+
if command == "config":
|
|
67
|
+
return [command, args.config_command]
|
|
68
|
+
if command == "db":
|
|
69
|
+
return [command, args.db_command]
|
|
70
|
+
return [command]
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def run_cli(
|
|
74
|
+
args: argparse.Namespace,
|
|
75
|
+
*,
|
|
76
|
+
service_factory: Callable[[], CommandService],
|
|
77
|
+
) -> str:
|
|
78
|
+
try:
|
|
79
|
+
return service_factory().execute(_to_argv(args)).text
|
|
80
|
+
except Exception as exc:
|
|
81
|
+
return f"Hardproof error: {exc}"[:499]
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def register_cli(ctx: Any, service_factory: Callable[[], CommandService]) -> None:
|
|
85
|
+
def handler(args: argparse.Namespace) -> str:
|
|
86
|
+
return run_cli(args, service_factory=service_factory)
|
|
87
|
+
|
|
88
|
+
ctx.register_cli_command(
|
|
89
|
+
"hardproof",
|
|
90
|
+
"Manage persistent Hardproof engineering runs",
|
|
91
|
+
_configure,
|
|
92
|
+
handler,
|
|
93
|
+
description="Start, inspect, approve, pause, verify, and export Hardproof runs",
|
|
94
|
+
)
|