headron-software 3.62.0__tar.gz → 3.64.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.
- headron_software-3.64.0/PKG-INFO +188 -0
- headron_software-3.64.0/README.md +158 -0
- headron_software-3.64.0/VERSION +1 -0
- {headron_software-3.62.0 → headron_software-3.64.0}/pyproject.toml +10 -29
- {headron_software-3.62.0 → headron_software-3.64.0}/scripts/atlas_cli.py +46 -4
- headron_software-3.64.0/scripts/headron_software.egg-info/PKG-INFO +188 -0
- headron_software-3.62.0/PKG-INFO +0 -217
- headron_software-3.62.0/README.md +0 -187
- headron_software-3.62.0/VERSION +0 -1
- headron_software-3.62.0/scripts/headron_software.egg-info/PKG-INFO +0 -217
- {headron_software-3.62.0 → headron_software-3.64.0}/LICENSE +0 -0
- {headron_software-3.62.0 → headron_software-3.64.0}/scripts/headron_software.egg-info/SOURCES.txt +0 -0
- {headron_software-3.62.0 → headron_software-3.64.0}/scripts/headron_software.egg-info/dependency_links.txt +0 -0
- {headron_software-3.62.0 → headron_software-3.64.0}/scripts/headron_software.egg-info/entry_points.txt +0 -0
- {headron_software-3.62.0 → headron_software-3.64.0}/scripts/headron_software.egg-info/requires.txt +0 -0
- {headron_software-3.62.0 → headron_software-3.64.0}/scripts/headron_software.egg-info/top_level.txt +0 -0
- {headron_software-3.62.0 → headron_software-3.64.0}/setup.cfg +0 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: headron-software
|
|
3
|
+
Version: 3.64.0
|
|
4
|
+
Summary: Command line tool and rule contract for AI coding agents: each changed file maps to the checks it owes, and a commit whose file fails is refused.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://headron.tech
|
|
7
|
+
Project-URL: Documentation, https://github.com/HLIntel/Headron/blob/main/llms.txt
|
|
8
|
+
Project-URL: Issues, https://github.com/HLIntel/Headron/issues
|
|
9
|
+
Project-URL: Source, https://github.com/HLIntel/Headron
|
|
10
|
+
Project-URL: Agent entry, https://raw.githubusercontent.com/HLIntel/Headron/main/.agent/bootstrap.json
|
|
11
|
+
Project-URL: LLM instructions, https://raw.githubusercontent.com/HLIntel/Headron/main/llms.txt
|
|
12
|
+
Project-URL: Changelog, https://github.com/HLIntel/Headron/blob/main/docs/VERSIONING.md
|
|
13
|
+
Keywords: headron,headron-software,headron-layer-intelligence,hlintel,engineering-atlas,polyglot,contract-verification,policy-as-code,ai-agents,ai-coding-agents,mcp,llm,agent-harness,code-verification,developer-tools,static-analysis,supply-chain-security,claude-code,codex,github-copilot,agents-md
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
18
|
+
Classifier: Topic :: Software Development :: Testing
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: pyyaml<7,>=6.0.3
|
|
24
|
+
Requires-Dist: defusedxml<0.8,>=0.7.1
|
|
25
|
+
Provides-Extra: quality
|
|
26
|
+
Requires-Dist: ruff>=0.6; extra == "quality"
|
|
27
|
+
Provides-Extra: crosscheck
|
|
28
|
+
Requires-Dist: jsonschema>=4; extra == "crosscheck"
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
|
|
31
|
+
<!-- AGENTS: do not read this page breadth-first. Run `headron port <file>` (in a clone,
|
|
32
|
+
`python scripts/atlas.py port <file>`), or parse .agent/bootstrap.json. -->
|
|
33
|
+
<!-- mcp-name: io.github.HLIntel/headron -->
|
|
34
|
+
<div align="center">
|
|
35
|
+
<img src="https://raw.githubusercontent.com/HLIntel/Headron/main/docs/media/headron-banner.jpg"
|
|
36
|
+
alt="Headron: From Task to Trusted Results — Unified execution and verification system"
|
|
37
|
+
width="992">
|
|
38
|
+
<h1>Headron Software</h1>
|
|
39
|
+
<p><strong>The trust layer for agentic work: contract verification and receipts for autonomous agents</strong></p>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<!-- BEGIN generated: badges (python scripts/atlas.py index --write) -->
|
|
43
|
+
|
|
44
|
+
**Contract 3.64.0** · MIT · verdicts carry receipts: `headron verify --receipt <file>`
|
|
45
|
+
|
|
46
|
+
<!-- END generated: badges -->
|
|
47
|
+
|
|
48
|
+
<!-- BEGIN generated: headline (python scripts/atlas.py index --write) -->
|
|
49
|
+
|
|
50
|
+
- **Is:** a rule contract and CLI mapping changed files to checks. Hooks are optional; `headron verify` runs done gates.
|
|
51
|
+
- **Is not:** a coding agent or model. An unrun check reports SKIP or NOT RUN, never a pass; hooks allow missing local tools (override: `--strict`), CI verifies all.
|
|
52
|
+
- **`headron init` writes:** AGENTS.md, CLAUDE.md, .mcp.json, .codex/config.toml, .cursor/mcp.json, .git/hooks/pre-commit. `--dry-run` previews; `--no-wiring` skips hooks/config; `headron enforce uninstall` restores hooks.
|
|
53
|
+
- **Mind API:** optional hosted verifier. CLI and local MCP work 100% offline and free with no key or account.
|
|
54
|
+
|
|
55
|
+
Agents: [llms.txt](llms.txt). Chats: [CHAT.md](CHAT.md). [Evidence](#recorded-results).
|
|
56
|
+
|
|
57
|
+
<!-- END generated: headline -->
|
|
58
|
+
|
|
59
|
+
## How it works
|
|
60
|
+
|
|
61
|
+
`headron port <file>` tells an agent what a file owes before it edits; [`atlas.yaml`](atlas.yaml) holds
|
|
62
|
+
the checks. The hook and `headron verify` report `PASS`, `FAIL`, `SKIP` or `NOT RUN`: a skipped
|
|
63
|
+
check is never a pass, whoever wrote the change. `headron ci` runs CI locally.
|
|
64
|
+
|
|
65
|
+
<!-- BEGIN generated: proof-flow (python scripts/atlas.py index --write) -->
|
|
66
|
+
|
|
67
|
+
<p align="center">
|
|
68
|
+
<img src="docs/media/headron-proof-flow.svg" width="900"
|
|
69
|
+
alt="Headron Architecture: contract, targeted evidence, integrity audit, unified verdict.">
|
|
70
|
+
</p>
|
|
71
|
+
|
|
72
|
+
<!-- END generated: proof-flow -->
|
|
73
|
+
|
|
74
|
+
<!-- BEGIN generated: gate-example (python scripts/atlas.py index --write) -->
|
|
75
|
+
|
|
76
|
+
```console
|
|
77
|
+
$ headron gate scripts/doctor.py
|
|
78
|
+
1. formatter: ruff format --check scripts/doctor.py
|
|
79
|
+
2. compiler_or_typechecker: python3 -c 'import ast,sys; [ast.parse(open(f, encoding="utf-8").read(), f) for f in sys.argv[1:]]' scripts/doctor.py
|
|
80
|
+
3. unit_tests: pytest
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
<!-- END generated: gate-example -->
|
|
84
|
+
|
|
85
|
+
## From task to proof
|
|
86
|
+
|
|
87
|
+
Done means every obligation is proven on the checked tree:
|
|
88
|
+
|
|
89
|
+
1. **Owe:** `obligations.py extract <task> <contract>` binds each requirement to its check.
|
|
90
|
+
2. **Check:** `headron verify --receipt verify.json` writes a receipt bound to the tree.
|
|
91
|
+
3. **Seal:** `ronbundle.py pack <task> out.ron --receipt verify.json` writes a digest-named [`.ron` bundle](docs/HEADRON-LANGUAGE.md#what-a-finished-program-carries-the-ron-bundle).
|
|
92
|
+
4. **Trust:** `headron mind --micro ron.verify out.ron`: `ok`, `refused` or `unknown`; only `ok` is acted on.
|
|
93
|
+
|
|
94
|
+
Tasks can also compile and checkpoint on git refs: `headron task compile|run|resume|inspect`.
|
|
95
|
+
Steps 1 and 3 run `python scripts/…` in a clone.
|
|
96
|
+
|
|
97
|
+
## Quickstart
|
|
98
|
+
|
|
99
|
+
<!-- BEGIN generated: install (python scripts/atlas.py index --write) -->
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# install
|
|
103
|
+
uv tool install headron-software && headron doctor
|
|
104
|
+
# editable, to change Headron itself
|
|
105
|
+
git clone --depth 1 --branch v3.64.0 https://github.com/HLIntel/Headron ~/headron && uv tool install --editable ~/headron && headron doctor
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
<!-- END generated: install -->
|
|
109
|
+
|
|
110
|
+
In your repository:
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
cd path/to/your-repo && headron init # finds checks, wires agents, installs hook, runs once (--dry-run previews)
|
|
114
|
+
headron verify && headron proof <file> --verify # after a change: verdicts, then a file's proof
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
`headron verify --changed` checks only modified files (`--change <class>` narrows it); plain `headron verify` is the final verdict.
|
|
118
|
+
|
|
119
|
+
## Recorded results
|
|
120
|
+
|
|
121
|
+
See the [instrument limits](docs/CERTIFICATION.md#what-the-numbers-do-not-prove) for their scope.
|
|
122
|
+
|
|
123
|
+
<!-- BEGIN generated: measured-benefits (python scripts/atlas.py index --write) -->
|
|
124
|
+
|
|
125
|
+
<!-- prettier-ignore -->
|
|
126
|
+
| Instrument | Recorded result |
|
|
127
|
+
| :--- | :--- |
|
|
128
|
+
| Enforcement | 31/31 breaks refused across 20 toolchains; **864** declared planted cases |
|
|
129
|
+
| Verification outcomes | 17,397 checks: 7,357 PASS, 1,097 REUSED, 1,278 FAIL, 7,665 NOT RUN. 533 runs failed; 271 stopped with an unrun check; 0 reported clean despite a failed or unrun check |
|
|
130
|
+
| Routing experiment | 89% fewer prompt tokens than whole-tree; 50% fewer than unassisted, across identified models |
|
|
131
|
+
| Task bench, 3 Claude models (contract 2.29.0) | with Headron 137/138; blind 78/138; every task answered by both arms |
|
|
132
|
+
| Free-model screen, 18 lanes answered (contract 3.63.0, 22 tasks) | on the 138 tasks both arms answered: with Headron 115/138; blind 58/138 |
|
|
133
|
+
|
|
134
|
+
Entry context: ~1,644 tokens; the rest loads on demand. Each row is its own record, contract version and task set: rows are never summed into one figure, and no run crowns a model.
|
|
135
|
+
[Routing data](benchmarks/ab-latest.json). [Task records](benchmarks/tasks-latest.json), [screen](benchmarks/screen-universal.json). [Per model, per record](docs/RESULTS.md).
|
|
136
|
+
|
|
137
|
+
<!-- END generated: measured-benefits -->
|
|
138
|
+
|
|
139
|
+
## Where it fits
|
|
140
|
+
|
|
141
|
+
- **Agents and runtimes:** [adapters](models/README.md) describe integrations; local MCP is read-only.
|
|
142
|
+
- **Machines:** [bootstrap](.agent/bootstrap.json) (entry as JSON) · [facts](.agent/facts.json).
|
|
143
|
+
- **Architecture and boundaries:** [package architecture](docs/PRODUCT-STRATEGY.md) covers the five capabilities, open-core boundaries and keyless onboarding.
|
|
144
|
+
- **Other repositories:** `headron init` sets up repos; [CONSUMING](docs/CONSUMING.md) covers CI, [GitHub Action](docs/CONSUMING.md#as-a-github-action) and [hosted MCP](docs/CONSUMING.md#hosted-mind-api--mcp).
|
|
145
|
+
- **Languages:** routes declare available checks and identify checks without a tool.
|
|
146
|
+
|
|
147
|
+
## Agent contract
|
|
148
|
+
|
|
149
|
+
<!-- BEGIN generated: port-example (python scripts/atlas.py index --write) -->
|
|
150
|
+
|
|
151
|
+
```console
|
|
152
|
+
$ headron port scripts/doctor.py --line
|
|
153
|
+
◉ scripts/doctor.py │ ⠟backend │ python │ ⌂scripts │ ✓5 │ ⚠2 │ → headron gate scripts/doctor.py
|
|
154
|
+
$ headron port scripts --line
|
|
155
|
+
◎ scripts │ ⠟224 │ ⌂scripts │ → headron brainstorm
|
|
156
|
+
$ headron port . --line
|
|
157
|
+
○ . │ ⠟250 ⠿3 ⠁1 │ → headron check
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
<!-- END generated: port-example -->
|
|
161
|
+
|
|
162
|
+
- **Discover:** `headron find <query>` searches paths and symbols; `headron sweep` maps topology.
|
|
163
|
+
- **Route:** `headron port <file>` or parse [.agent/bootstrap.json](.agent/bootstrap.json); load only names.
|
|
164
|
+
- **Tasks:** `headron task compile|run|resume|inspect --json` checkpoints state under git refs.
|
|
165
|
+
- **Processes:** `headron process [<id>] --json` lists workflows, steps and gates.
|
|
166
|
+
- **Mind:** `headron mind --route <file>` routes; `--receipts` summarizes verification records.
|
|
167
|
+
- **Compute:** `headron mind --micro list` names [microprograms](docs/COMPUTATION.md) (status, evidence, receipt).
|
|
168
|
+
- **Beliefs:** `headron revise` names what rests on refuted claims; `headron propose` drafts fixes.
|
|
169
|
+
- **Automate:** add `--json`; records follow [output schema](tools/atlas-output.schema.json).
|
|
170
|
+
- **Before shell:** `headron shell --json "<cmd>"`; exit 3 means misread verdict.
|
|
171
|
+
- **Land:** `python scripts/branchstate.py --land`; check `headron landed <branch>` before delete.
|
|
172
|
+
- **Judge & report:** [judgment rungs](docs/systems/AGENT-HARNESS.md#judgment-rungs); report with [`headron` skill](skills/headron/SKILL.md).
|
|
173
|
+
|
|
174
|
+
## Find your way
|
|
175
|
+
|
|
176
|
+
- **All documents:** [docs index](docs/INDEX.md) · [wiki](docs/wiki/README.md)
|
|
177
|
+
- **Languages:** [atlas](languages/ATLAS.md) · [routing](docs/wiki/CODE-ROUTING.md) · [verification](docs/VERIFY.md)
|
|
178
|
+
- **Agents:** [harness](docs/systems/AGENT-HARNESS.md) · [`.headron`](docs/HEADRON-LANGUAGE.md) · [runtimes](models/README.md)
|
|
179
|
+
- **Why a rule:** `headron why` · `headron failures` · [instruments](docs/INSTRUMENTS.md)
|
|
180
|
+
- **Companion products:** [desktop, web, enterprise](docs/CONSUMING.md#optional-hlintel-services)
|
|
181
|
+
- **Security:** [policy](SECURITY.md) · [OpenSSF](docs/OPENSSF.md) · [contributing](CONTRIBUTING.md)
|
|
182
|
+
|
|
183
|
+
## Project
|
|
184
|
+
|
|
185
|
+
Version tracks the **contract**, not content ([versioning](docs/VERSIONING.md)).
|
|
186
|
+
Built by **HLIntel LLC**, public on purpose ([about](ABOUT.md)). Contributions pass `headron verify`. [MIT License](LICENSE).
|
|
187
|
+
|
|
188
|
+
Updated: contract v3.64.0
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
<!-- AGENTS: do not read this page breadth-first. Run `headron port <file>` (in a clone,
|
|
2
|
+
`python scripts/atlas.py port <file>`), or parse .agent/bootstrap.json. -->
|
|
3
|
+
<!-- mcp-name: io.github.HLIntel/headron -->
|
|
4
|
+
<div align="center">
|
|
5
|
+
<img src="https://raw.githubusercontent.com/HLIntel/Headron/main/docs/media/headron-banner.jpg"
|
|
6
|
+
alt="Headron: From Task to Trusted Results — Unified execution and verification system"
|
|
7
|
+
width="992">
|
|
8
|
+
<h1>Headron Software</h1>
|
|
9
|
+
<p><strong>The trust layer for agentic work: contract verification and receipts for autonomous agents</strong></p>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<!-- BEGIN generated: badges (python scripts/atlas.py index --write) -->
|
|
13
|
+
|
|
14
|
+
**Contract 3.64.0** · MIT · verdicts carry receipts: `headron verify --receipt <file>`
|
|
15
|
+
|
|
16
|
+
<!-- END generated: badges -->
|
|
17
|
+
|
|
18
|
+
<!-- BEGIN generated: headline (python scripts/atlas.py index --write) -->
|
|
19
|
+
|
|
20
|
+
- **Is:** a rule contract and CLI mapping changed files to checks. Hooks are optional; `headron verify` runs done gates.
|
|
21
|
+
- **Is not:** a coding agent or model. An unrun check reports SKIP or NOT RUN, never a pass; hooks allow missing local tools (override: `--strict`), CI verifies all.
|
|
22
|
+
- **`headron init` writes:** AGENTS.md, CLAUDE.md, .mcp.json, .codex/config.toml, .cursor/mcp.json, .git/hooks/pre-commit. `--dry-run` previews; `--no-wiring` skips hooks/config; `headron enforce uninstall` restores hooks.
|
|
23
|
+
- **Mind API:** optional hosted verifier. CLI and local MCP work 100% offline and free with no key or account.
|
|
24
|
+
|
|
25
|
+
Agents: [llms.txt](llms.txt). Chats: [CHAT.md](CHAT.md). [Evidence](#recorded-results).
|
|
26
|
+
|
|
27
|
+
<!-- END generated: headline -->
|
|
28
|
+
|
|
29
|
+
## How it works
|
|
30
|
+
|
|
31
|
+
`headron port <file>` tells an agent what a file owes before it edits; [`atlas.yaml`](atlas.yaml) holds
|
|
32
|
+
the checks. The hook and `headron verify` report `PASS`, `FAIL`, `SKIP` or `NOT RUN`: a skipped
|
|
33
|
+
check is never a pass, whoever wrote the change. `headron ci` runs CI locally.
|
|
34
|
+
|
|
35
|
+
<!-- BEGIN generated: proof-flow (python scripts/atlas.py index --write) -->
|
|
36
|
+
|
|
37
|
+
<p align="center">
|
|
38
|
+
<img src="docs/media/headron-proof-flow.svg" width="900"
|
|
39
|
+
alt="Headron Architecture: contract, targeted evidence, integrity audit, unified verdict.">
|
|
40
|
+
</p>
|
|
41
|
+
|
|
42
|
+
<!-- END generated: proof-flow -->
|
|
43
|
+
|
|
44
|
+
<!-- BEGIN generated: gate-example (python scripts/atlas.py index --write) -->
|
|
45
|
+
|
|
46
|
+
```console
|
|
47
|
+
$ headron gate scripts/doctor.py
|
|
48
|
+
1. formatter: ruff format --check scripts/doctor.py
|
|
49
|
+
2. compiler_or_typechecker: python3 -c 'import ast,sys; [ast.parse(open(f, encoding="utf-8").read(), f) for f in sys.argv[1:]]' scripts/doctor.py
|
|
50
|
+
3. unit_tests: pytest
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
<!-- END generated: gate-example -->
|
|
54
|
+
|
|
55
|
+
## From task to proof
|
|
56
|
+
|
|
57
|
+
Done means every obligation is proven on the checked tree:
|
|
58
|
+
|
|
59
|
+
1. **Owe:** `obligations.py extract <task> <contract>` binds each requirement to its check.
|
|
60
|
+
2. **Check:** `headron verify --receipt verify.json` writes a receipt bound to the tree.
|
|
61
|
+
3. **Seal:** `ronbundle.py pack <task> out.ron --receipt verify.json` writes a digest-named [`.ron` bundle](docs/HEADRON-LANGUAGE.md#what-a-finished-program-carries-the-ron-bundle).
|
|
62
|
+
4. **Trust:** `headron mind --micro ron.verify out.ron`: `ok`, `refused` or `unknown`; only `ok` is acted on.
|
|
63
|
+
|
|
64
|
+
Tasks can also compile and checkpoint on git refs: `headron task compile|run|resume|inspect`.
|
|
65
|
+
Steps 1 and 3 run `python scripts/…` in a clone.
|
|
66
|
+
|
|
67
|
+
## Quickstart
|
|
68
|
+
|
|
69
|
+
<!-- BEGIN generated: install (python scripts/atlas.py index --write) -->
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# install
|
|
73
|
+
uv tool install headron-software && headron doctor
|
|
74
|
+
# editable, to change Headron itself
|
|
75
|
+
git clone --depth 1 --branch v3.64.0 https://github.com/HLIntel/Headron ~/headron && uv tool install --editable ~/headron && headron doctor
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
<!-- END generated: install -->
|
|
79
|
+
|
|
80
|
+
In your repository:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
cd path/to/your-repo && headron init # finds checks, wires agents, installs hook, runs once (--dry-run previews)
|
|
84
|
+
headron verify && headron proof <file> --verify # after a change: verdicts, then a file's proof
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
`headron verify --changed` checks only modified files (`--change <class>` narrows it); plain `headron verify` is the final verdict.
|
|
88
|
+
|
|
89
|
+
## Recorded results
|
|
90
|
+
|
|
91
|
+
See the [instrument limits](docs/CERTIFICATION.md#what-the-numbers-do-not-prove) for their scope.
|
|
92
|
+
|
|
93
|
+
<!-- BEGIN generated: measured-benefits (python scripts/atlas.py index --write) -->
|
|
94
|
+
|
|
95
|
+
<!-- prettier-ignore -->
|
|
96
|
+
| Instrument | Recorded result |
|
|
97
|
+
| :--- | :--- |
|
|
98
|
+
| Enforcement | 31/31 breaks refused across 20 toolchains; **864** declared planted cases |
|
|
99
|
+
| Verification outcomes | 17,397 checks: 7,357 PASS, 1,097 REUSED, 1,278 FAIL, 7,665 NOT RUN. 533 runs failed; 271 stopped with an unrun check; 0 reported clean despite a failed or unrun check |
|
|
100
|
+
| Routing experiment | 89% fewer prompt tokens than whole-tree; 50% fewer than unassisted, across identified models |
|
|
101
|
+
| Task bench, 3 Claude models (contract 2.29.0) | with Headron 137/138; blind 78/138; every task answered by both arms |
|
|
102
|
+
| Free-model screen, 18 lanes answered (contract 3.63.0, 22 tasks) | on the 138 tasks both arms answered: with Headron 115/138; blind 58/138 |
|
|
103
|
+
|
|
104
|
+
Entry context: ~1,644 tokens; the rest loads on demand. Each row is its own record, contract version and task set: rows are never summed into one figure, and no run crowns a model.
|
|
105
|
+
[Routing data](benchmarks/ab-latest.json). [Task records](benchmarks/tasks-latest.json), [screen](benchmarks/screen-universal.json). [Per model, per record](docs/RESULTS.md).
|
|
106
|
+
|
|
107
|
+
<!-- END generated: measured-benefits -->
|
|
108
|
+
|
|
109
|
+
## Where it fits
|
|
110
|
+
|
|
111
|
+
- **Agents and runtimes:** [adapters](models/README.md) describe integrations; local MCP is read-only.
|
|
112
|
+
- **Machines:** [bootstrap](.agent/bootstrap.json) (entry as JSON) · [facts](.agent/facts.json).
|
|
113
|
+
- **Architecture and boundaries:** [package architecture](docs/PRODUCT-STRATEGY.md) covers the five capabilities, open-core boundaries and keyless onboarding.
|
|
114
|
+
- **Other repositories:** `headron init` sets up repos; [CONSUMING](docs/CONSUMING.md) covers CI, [GitHub Action](docs/CONSUMING.md#as-a-github-action) and [hosted MCP](docs/CONSUMING.md#hosted-mind-api--mcp).
|
|
115
|
+
- **Languages:** routes declare available checks and identify checks without a tool.
|
|
116
|
+
|
|
117
|
+
## Agent contract
|
|
118
|
+
|
|
119
|
+
<!-- BEGIN generated: port-example (python scripts/atlas.py index --write) -->
|
|
120
|
+
|
|
121
|
+
```console
|
|
122
|
+
$ headron port scripts/doctor.py --line
|
|
123
|
+
◉ scripts/doctor.py │ ⠟backend │ python │ ⌂scripts │ ✓5 │ ⚠2 │ → headron gate scripts/doctor.py
|
|
124
|
+
$ headron port scripts --line
|
|
125
|
+
◎ scripts │ ⠟224 │ ⌂scripts │ → headron brainstorm
|
|
126
|
+
$ headron port . --line
|
|
127
|
+
○ . │ ⠟250 ⠿3 ⠁1 │ → headron check
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
<!-- END generated: port-example -->
|
|
131
|
+
|
|
132
|
+
- **Discover:** `headron find <query>` searches paths and symbols; `headron sweep` maps topology.
|
|
133
|
+
- **Route:** `headron port <file>` or parse [.agent/bootstrap.json](.agent/bootstrap.json); load only names.
|
|
134
|
+
- **Tasks:** `headron task compile|run|resume|inspect --json` checkpoints state under git refs.
|
|
135
|
+
- **Processes:** `headron process [<id>] --json` lists workflows, steps and gates.
|
|
136
|
+
- **Mind:** `headron mind --route <file>` routes; `--receipts` summarizes verification records.
|
|
137
|
+
- **Compute:** `headron mind --micro list` names [microprograms](docs/COMPUTATION.md) (status, evidence, receipt).
|
|
138
|
+
- **Beliefs:** `headron revise` names what rests on refuted claims; `headron propose` drafts fixes.
|
|
139
|
+
- **Automate:** add `--json`; records follow [output schema](tools/atlas-output.schema.json).
|
|
140
|
+
- **Before shell:** `headron shell --json "<cmd>"`; exit 3 means misread verdict.
|
|
141
|
+
- **Land:** `python scripts/branchstate.py --land`; check `headron landed <branch>` before delete.
|
|
142
|
+
- **Judge & report:** [judgment rungs](docs/systems/AGENT-HARNESS.md#judgment-rungs); report with [`headron` skill](skills/headron/SKILL.md).
|
|
143
|
+
|
|
144
|
+
## Find your way
|
|
145
|
+
|
|
146
|
+
- **All documents:** [docs index](docs/INDEX.md) · [wiki](docs/wiki/README.md)
|
|
147
|
+
- **Languages:** [atlas](languages/ATLAS.md) · [routing](docs/wiki/CODE-ROUTING.md) · [verification](docs/VERIFY.md)
|
|
148
|
+
- **Agents:** [harness](docs/systems/AGENT-HARNESS.md) · [`.headron`](docs/HEADRON-LANGUAGE.md) · [runtimes](models/README.md)
|
|
149
|
+
- **Why a rule:** `headron why` · `headron failures` · [instruments](docs/INSTRUMENTS.md)
|
|
150
|
+
- **Companion products:** [desktop, web, enterprise](docs/CONSUMING.md#optional-hlintel-services)
|
|
151
|
+
- **Security:** [policy](SECURITY.md) · [OpenSSF](docs/OPENSSF.md) · [contributing](CONTRIBUTING.md)
|
|
152
|
+
|
|
153
|
+
## Project
|
|
154
|
+
|
|
155
|
+
Version tracks the **contract**, not content ([versioning](docs/VERSIONING.md)).
|
|
156
|
+
Built by **HLIntel LLC**, public on purpose ([about](ABOUT.md)). Contributions pass `headron verify`. [MIT License](LICENSE).
|
|
157
|
+
|
|
158
|
+
Updated: contract v3.64.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.64.0
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
# Headron — Python project declaration.
|
|
2
2
|
#
|
|
3
|
-
#
|
|
4
|
-
# root: ruff and pytest have been RUN here for some time while nothing declared them, nothing
|
|
5
|
-
# configured them, and no gate enforced them. That is an undeclared habit, and an undeclared habit
|
|
6
|
-
# is the thing that silently changes. This file declares exactly what is true and REFUSES to
|
|
7
|
-
# declare what is not — because a config that names a gate nobody runs is the same skeleton this
|
|
8
|
-
# repo exists to prevent.
|
|
9
|
-
#
|
|
10
|
-
# MEASURED BEFORE WRITING ANY OF IT (instrument: `ruff check . --show-files`, `ruff format --check`,
|
|
11
|
-
# `python3 -m pytest -q`, all run at v1.2.0):
|
|
12
|
-
# - ruff saw exactly SIX Python files then; re-measured at v1.3.0 after the harness was
|
|
13
|
-
# split into modules, it sees 8. The count is not typed into a document: README's
|
|
14
|
-
# generated facts block computes it from scripts/*.py on every run.
|
|
15
|
-
# - `ruff check .` -> All checks passed, exit 0. Safe to enforce at that version, and enforced since.
|
|
16
|
-
# - `ruff format --check` -> enforced at 3.50.0, after one reviewed reformat; see [tool.ruff.format].
|
|
17
|
-
# - `python3 -m pytest -q` -> "no tests ran". Not adopted; see [tool.pytest] below.
|
|
3
|
+
# Package metadata and the Python harness's checked configuration live here.
|
|
18
4
|
|
|
19
5
|
# THIS FILE DESCRIBES THE HARNESS, NOT THE REPOSITORY.
|
|
20
6
|
# The atlas is polyglot and is not a Python project; Python is simply what the contract
|
|
@@ -28,7 +14,7 @@ name = "headron-software" # 3.53.0: the index name a stranger typ
|
|
|
28
14
|
dynamic = ["version"] # READ FROM VERSION, never typed here: a second declaration goes
|
|
29
15
|
# stale first. The installed version is the release tag the CLI
|
|
30
16
|
# fetches its atlas from when no root is declared.
|
|
31
|
-
description = "
|
|
17
|
+
description = "Command line tool and rule contract for AI coding agents: each changed file maps to the checks it owes, and a commit whose file fails is refused."
|
|
32
18
|
readme = "README.md" # the PyPI page; carries the registry ownership marker (server.json)
|
|
33
19
|
license = "MIT"
|
|
34
20
|
requires-python = ">=3.11"
|
|
@@ -44,7 +30,7 @@ classifiers = ["Development Status :: 4 - Beta", "Intended Audience :: Developer
|
|
|
44
30
|
# FOUND FROM AN INSTALL. Before 2.28.0 an installed package named no link at all, so an agent
|
|
45
31
|
# handed only `pip show` had no route back to the atlas, its entry or its instructions.
|
|
46
32
|
[project.urls]
|
|
47
|
-
Homepage = "https://
|
|
33
|
+
Homepage = "https://headron.tech"
|
|
48
34
|
Documentation = "https://github.com/HLIntel/Headron/blob/main/llms.txt"
|
|
49
35
|
Issues = "https://github.com/HLIntel/Headron/issues"
|
|
50
36
|
Source = "https://github.com/HLIntel/Headron"
|
|
@@ -106,7 +92,10 @@ select = ["E", "F", "I", # pycodestyle errors, pyflakes, import sor
|
|
|
106
92
|
# if, a returned condition, an any/all loop, a ternary over an if-block, and no else
|
|
107
93
|
# after return/raise/continue — guard clauses. PERF401 was measured too and REJECTED:
|
|
108
94
|
# 31 error-collecting loops with no safe fix, whose messages would hide in generators.
|
|
109
|
-
"C4", "SIM102", "SIM103", "SIM108", "SIM110", "RET505", "RET506", "RET508"
|
|
95
|
+
"C4", "SIM102", "SIM103", "SIM108", "SIM110", "RET505", "RET506", "RET508",
|
|
96
|
+
# S110, an `except Exception: pass` that hides a programming error. Four hits
|
|
97
|
+
# (mind.py x3, mind_diagnostics.py x1) were narrowed to the errors each expects, so zero.
|
|
98
|
+
"S110"]
|
|
110
99
|
ignore = ["E501"] # line length is governed by line-length above, not by a lint error
|
|
111
100
|
|
|
112
101
|
[tool.ruff.lint.isort]
|
|
@@ -144,16 +133,9 @@ quote-style = "double"
|
|
|
144
133
|
skip-magic-trailing-comma = true
|
|
145
134
|
|
|
146
135
|
# [tool.pytest.ini_options] IS DELIBERATELY ABSENT.
|
|
147
|
-
# A bare
|
|
148
|
-
#
|
|
149
|
-
#
|
|
150
|
-
# are a custom harness run directly:
|
|
151
|
-
#
|
|
152
|
-
# python3 scripts/atlas_test.py -> "atlas tests: N/N pass" with N asserted, exit 0
|
|
153
|
-
#
|
|
154
|
-
# declared in that file's own docblock and wired into ci/atlas-ci.yml. Declaring a
|
|
155
|
-
# pytest section now would add a second, empty test surface whose green exit means nothing. When a
|
|
156
|
-
# real pytest suite exists, configure it here and give it a failing case first.
|
|
136
|
+
# A bare invocation could collect planted failures under benchmarks/agent/, so conftest.py refuses
|
|
137
|
+
# it. Explicit paths still work. The artifacts_tests gate selects the artifact and data kit cases;
|
|
138
|
+
# the mutation suite is a separate harness run by verify.
|
|
157
139
|
|
|
158
140
|
[tool.basedpyright]
|
|
159
141
|
# THE PACK'S DECLARED TYPE CHECKER, RUN ON ITS OWN TREE (3.54.0): gate `typecheck`. Standard mode, the
|
|
@@ -168,5 +150,4 @@ executionEnvironments = [
|
|
|
168
150
|
{ root = "examples/webhooks", extraPaths = ["examples/webhooks", "scripts"] },
|
|
169
151
|
{ root = "fuzz", extraPaths = ["fuzz", "scripts"] },
|
|
170
152
|
{ root = "scripts", extraPaths = ["scripts"] },
|
|
171
|
-
{ root = "benchmarks/agent/ratelimit", extraPaths = ["benchmarks/agent/ratelimit", "scripts"] },
|
|
172
153
|
]
|
|
@@ -11,11 +11,14 @@ THAT TREE IS LOCKED (3.54.0): read-only, re-hashed on every run; an edit refuses
|
|
|
11
11
|
|
|
12
12
|
from __future__ import annotations
|
|
13
13
|
|
|
14
|
+
import contextlib
|
|
14
15
|
import hashlib
|
|
15
16
|
import io
|
|
17
|
+
import json
|
|
16
18
|
import os
|
|
17
19
|
import re
|
|
18
20
|
import shutil
|
|
21
|
+
import subprocess
|
|
19
22
|
import sys
|
|
20
23
|
import tarfile
|
|
21
24
|
import tempfile
|
|
@@ -86,6 +89,31 @@ def root_flag(argv: list[str]) -> tuple[str | None, int, int]:
|
|
|
86
89
|
CALLER_ENV = dict(os.environ)
|
|
87
90
|
|
|
88
91
|
|
|
92
|
+
def _untrusted(base: Path, ref: str | None, home: Path) -> str:
|
|
93
|
+
"""Why a pinned root is refused, else "": it must top its own git checkout, not its pinner's, at `ref` (3.64.0)."""
|
|
94
|
+
env = {k: v for k, v in os.environ.items() if k[:4] != "GIT_"} # a hook's GIT_DIR would answer instead
|
|
95
|
+
asks = (
|
|
96
|
+
(base, "--show-toplevel"),
|
|
97
|
+
(base, "HEAD"),
|
|
98
|
+
(base, "-q", "--verify", f"{ref}^{{commit}}"),
|
|
99
|
+
(home, "--show-toplevel"),
|
|
100
|
+
)
|
|
101
|
+
try:
|
|
102
|
+
top, head, want, own = (
|
|
103
|
+
subprocess.run(
|
|
104
|
+
["git", "-C", d, "rev-parse", *a], capture_output=True, text=True, env=env, timeout=30
|
|
105
|
+
).stdout.strip()
|
|
106
|
+
for d, *a in asks
|
|
107
|
+
)
|
|
108
|
+
except (OSError, subprocess.SubprocessError) as exc: # no git: refuse in the reply, never crash before it
|
|
109
|
+
return f"verifiable; git could not answer ({exc})"
|
|
110
|
+
if not top or Path(top).resolve() != base:
|
|
111
|
+
return "the top of its own git checkout; a tree copied into a project never runs"
|
|
112
|
+
if own and Path(own).resolve() == base:
|
|
113
|
+
return "a checkout apart from the project that pins it"
|
|
114
|
+
return f"checked out at its pinned ref {ref}" if ref and want != head else ""
|
|
115
|
+
|
|
116
|
+
|
|
89
117
|
def resolve_root(argv: list[str], cwd: Path) -> tuple[Path, str]:
|
|
90
118
|
"""The atlas this invocation runs against, and the rule that decided it. In declared order."""
|
|
91
119
|
value = root_flag(argv)[0]
|
|
@@ -96,8 +124,10 @@ def resolve_root(argv: list[str], cwd: Path) -> tuple[Path, str]:
|
|
|
96
124
|
return Path(os.environ[var]).resolve(), f"{var} in the environment"
|
|
97
125
|
config, where = _config(cwd)
|
|
98
126
|
if where and config.get("root"):
|
|
99
|
-
base = (where.parent / config["root"]).resolve()
|
|
100
|
-
|
|
127
|
+
base, rule = (where.parent / config["root"]).resolve(), f"root declared in {where.name}"
|
|
128
|
+
if why := _untrusted(base, config.get("ref"), where.parent):
|
|
129
|
+
raise ConfigError(f"{base} ({rule} at {where.parent}) is not {why}")
|
|
130
|
+
return base, f"{rule} (ref {config.get('ref', 'unpinned')})"
|
|
101
131
|
return Path(__file__).resolve().parents[1], INSTALLED_FROM
|
|
102
132
|
|
|
103
133
|
|
|
@@ -176,7 +206,7 @@ def fetch_atlas(version: str) -> Path:
|
|
|
176
206
|
|
|
177
207
|
def _resolved(argv: list[str]) -> tuple:
|
|
178
208
|
try:
|
|
179
|
-
root, rule = resolve_root(argv, Path.
|
|
209
|
+
root, rule = resolve_root(argv, Path(os.getenv("HEADRON_CLIENT_DIR", "")).resolve())
|
|
180
210
|
if rule != INSTALLED_FROM or (root / "atlas.yaml").exists():
|
|
181
211
|
return root, rule
|
|
182
212
|
if os.environ.get("HEADRON_NO_FETCH") == "1":
|
|
@@ -229,7 +259,19 @@ def mcp_main() -> int:
|
|
|
229
259
|
argv = sys.argv[1:]
|
|
230
260
|
if "--where" in argv:
|
|
231
261
|
return main(argv)
|
|
232
|
-
|
|
262
|
+
said = io.StringIO()
|
|
263
|
+
with contextlib.redirect_stderr(said):
|
|
264
|
+
root = _enter(argv, "headron_mcp.py")[0]
|
|
265
|
+
sys.stderr.write(said.getvalue())
|
|
266
|
+
if root is None:
|
|
267
|
+
# REFUSE IN THE HANDSHAKE (3.63.0): exiting before `initialize` showed the client only "Connection closed".
|
|
268
|
+
try:
|
|
269
|
+
ask = {} if sys.stdin.isatty() else json.loads(sys.stdin.readline() or "{}")
|
|
270
|
+
except ValueError:
|
|
271
|
+
ask = {}
|
|
272
|
+
if isinstance(ask, dict) and "id" in ask:
|
|
273
|
+
why = {"code": -32000, "message": "headron-mcp refused: " + " ".join(said.getvalue().split())}
|
|
274
|
+
print(json.dumps({"jsonrpc": "2.0", "id": ask["id"], "error": why}), flush=True)
|
|
233
275
|
return 2
|
|
234
276
|
import headron_mcp # noqa: PLC0415 — as in main
|
|
235
277
|
|