howhard 3.0.2__tar.gz → 3.2.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.
- {howhard-3.0.2 → howhard-3.2.0}/.antigravity-plugin/plugin.json +1 -1
- {howhard-3.0.2 → howhard-3.2.0}/.claude-plugin/plugin.json +1 -1
- {howhard-3.0.2 → howhard-3.2.0}/CHANGELOG.md +52 -4
- {howhard-3.0.2/src/howhard.egg-info → howhard-3.2.0}/PKG-INFO +7 -1
- {howhard-3.0.2 → howhard-3.2.0}/README.md +6 -0
- howhard-3.2.0/docs/assets/README.md +33 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/capability.md +10 -3
- {howhard-3.0.2 → howhard-3.2.0}/docs/configuration.md +8 -4
- {howhard-3.0.2 → howhard-3.2.0}/docs/context.md +1 -1
- howhard-3.2.0/docs/index.md +105 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/reference.md +40 -13
- {howhard-3.0.2 → howhard-3.2.0}/docs/releasing.md +3 -3
- {howhard-3.0.2 → howhard-3.2.0}/docs/semantic-memory.md +3 -2
- howhard-3.2.0/docs/technical-report.md +400 -0
- {howhard-3.0.2 → howhard-3.2.0}/plugin.json +1 -1
- {howhard-3.0.2 → howhard-3.2.0}/skills/howhard/SKILL.md +8 -3
- {howhard-3.0.2 → howhard-3.2.0}/skills/howhard/references/accounting.md +4 -2
- {howhard-3.0.2 → howhard-3.2.0}/skills/howhard/references/hosts.md +7 -5
- {howhard-3.0.2 → howhard-3.2.0}/skills/howhard/references/workflow.md +15 -7
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/__init__.py +1 -1
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/capability.py +30 -5
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/cli.py +5 -3
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/context.py +1 -1
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/decisions.py +13 -1
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/native.py +30 -5
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/selector.py +24 -8
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/semantic.py +22 -8
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/success.py +35 -7
- {howhard-3.0.2 → howhard-3.2.0/src/howhard.egg-info}/PKG-INFO +7 -1
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard.egg-info/SOURCES.txt +3 -3
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_capability_filter.py +151 -1
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_configured_candidates.py +4 -2
- howhard-3.2.0/tests/test_credit_budget.py +507 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_current_contract.py +1 -1
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_semantic.py +1 -1
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_semantic_only.py +11 -2
- howhard-3.0.2/docs/index.md +0 -54
- howhard-3.0.2/docs/upgrading-1.0.md +0 -78
- howhard-3.0.2/docs/upgrading-2.0.md +0 -44
- howhard-3.0.2/docs/upgrading-3.0.md +0 -29
- {howhard-3.0.2 → howhard-3.2.0}/.agents/plugins/marketplace.json +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/.claude-plugin/marketplace.json +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/.readthedocs.yaml +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/AGENTS.md +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/MANIFEST.in +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/benchmarks/__init__.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/benchmarks/bench_rule_retrieval.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/benchmarks/rule_cases.json +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/benchmarks/rule_retrieval.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/changelog.md +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/concurrency.md +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/conf.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/contributing.md +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/evaluation.md +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/quickstart.md +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/requirements.txt +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/retrieval.md +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/rule-benchmark.md +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/session_handoff_format.md +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/docs/skills.md +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/pyproject.toml +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/scripts/check +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/scripts/check-plugins.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/scripts/check-skills.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/scripts/verify-wheel.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/setup.cfg +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/skills/attribute-failure/SKILL.md +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/__main__.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/accounting.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/config.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/data/context.toml +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/data/default_config.toml +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/data/semantic.toml +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/engine.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/files.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/llm.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/memory.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/report.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/request_state.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/retrieval.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/state.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/storage.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/validation.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard/writes.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard.egg-info/dependency_links.txt +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard.egg-info/entry_points.txt +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard.egg-info/requires.txt +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/src/howhard.egg-info/top_level.txt +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/conftest.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_cli.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_context.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_cost_to_success.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_execution_accounting.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_fast_reranking.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_measurement_corrections.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_memory.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_native_startup.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_portable_core.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_request_dependencies.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_retrieval.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_retrieval_config.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_rule_benchmark.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_semantic_cli.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_skill_workflow.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_storage.py +0 -0
- {howhard-3.0.2 → howhard-3.2.0}/tests/test_write_queue.py +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
|
|
3
3
|
"name": "howhard",
|
|
4
4
|
"displayName": "howhard",
|
|
5
|
-
"version": "3.0
|
|
5
|
+
"version": "3.2.0",
|
|
6
6
|
"description": "Recommend model and reasoning effort from task context, then learn from actual feedback through writable semantic memory.",
|
|
7
7
|
"author": {"name": "howhard contributors"},
|
|
8
8
|
"repository": "https://github.com/xu-hao/howhard"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "howhard",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Recommend model and reasoning effort from task context, then learn from actual feedback through writable semantic memory.",
|
|
5
5
|
"author": {"name": "howhard contributors"},
|
|
6
6
|
"repository": "https://github.com/xu-hao/howhard"
|
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 3.2.0 — 2026-11-14
|
|
6
|
+
|
|
7
|
+
- Separate actual session money cost from list-price quota credit with optional
|
|
8
|
+
`cost_per_credit`, explicit `session_cost_usd` and `needed_credit_usd` cell fields,
|
|
9
|
+
credit-named budget fields, cost-based selection, and `howhard-decision-v7` receipt
|
|
10
|
+
normalization while retaining v1–v6 receipts as historical store evidence (#95).
|
|
11
|
+
|
|
12
|
+
- Reduce the spiral project mark's uniform line weight from 20 to 17 units while
|
|
13
|
+
retaining its 4.5 turns and solid black-and-white palette (#93).
|
|
14
|
+
|
|
15
|
+
- Increase the abstract geometric spiral project mark from 2.5 to 4.5 turns and
|
|
16
|
+
thicken its uniform stroke from 14 to 20 units, preserving its solid
|
|
17
|
+
black-and-white palette (#91).
|
|
18
|
+
|
|
19
|
+
- Replace the raster project mark with a geometric SVG spiral using only solid
|
|
20
|
+
black and white, with uniform lines and no shading or texture (#89).
|
|
21
|
+
|
|
22
|
+
- Publish the clean monochrome spiral project mark in the README and documentation
|
|
23
|
+
homepage, with image provenance recorded under `docs/assets/` (#87).
|
|
24
|
+
|
|
25
|
+
- Reorganize Read the Docs into Getting started, Technical deep dive, Reference and
|
|
26
|
+
Project. Add a technical report explaining the credit-saving objective, independent
|
|
27
|
+
LLM priors, Bayesian capability updates, predictive memory weights, risk envelopes,
|
|
28
|
+
retrospective defect attribution and field evaluation. Remove historical upgrade
|
|
29
|
+
pages from the live docs while retaining links to their release-tag archives (#85).
|
|
30
|
+
|
|
31
|
+
## 3.1.0 — 2026-11-13
|
|
32
|
+
|
|
33
|
+
- Version newly aggregated capability filter blocks as `howhard-capability-v2` with
|
|
34
|
+
strict geometric overpowered-tail validation while accepting stored
|
|
35
|
+
`howhard-capability-v1` decision v6 receipts whose expert priors uniformly match
|
|
36
|
+
either the pre-#77 linear overpowered tail or the geometric overpowered tail, keeping
|
|
37
|
+
receipt loading, belief replay, `observe`, and `report` working across the #74/#77
|
|
38
|
+
prior change (#78).
|
|
39
|
+
- Concentrate the prior's overpowered tail geometrically near the upper cut so
|
|
40
|
+
conditioning on weak-cell failures does not stretch the learned band in proportion to
|
|
41
|
+
inventory size (#74).
|
|
42
|
+
- Support optional candidate `credit_budget` constraints (`available_usd` and optional
|
|
43
|
+
`session_5h_remaining_usd`, `weekly_7d_remaining_usd`) in candidate lists and named
|
|
44
|
+
inventories. Require uniform pricing across the inventory whenever any candidate
|
|
45
|
+
declares `credit_budget`, report `needed_credit_usd`, `credit_budget`,
|
|
46
|
+
`available_credit_usd` and `credit_ok` on evaluated cells while keeping `admissible`
|
|
47
|
+
for accepted-result silent-risk admissibility, filter selection strictly to schedulable
|
|
48
|
+
cells (`credit_ok == true`) including under `on_cap_unmet`, refuse selection when no
|
|
49
|
+
evaluated cell has sufficient credit, and label cheaper unschedulable alternatives with
|
|
50
|
+
`insufficient-credit` (#75).
|
|
51
|
+
|
|
3
52
|
## 3.0.2 — 2026-11-11
|
|
4
53
|
|
|
5
54
|
- Bound the learned capability band when no inventory cell reaches
|
|
@@ -44,9 +93,8 @@
|
|
|
44
93
|
Old receipts cannot supply new receipt-bound feedback or predictive scoring; raw
|
|
45
94
|
historical evidence remains intact. Update adapters and skills; reprepare pending
|
|
46
95
|
requests. C_loud and epsilon have new retry/accepted-result meanings. See the 3.0
|
|
47
|
-
upgrade guide
|
|
48
|
-
|
|
49
|
-
## Unreleased
|
|
96
|
+
[archived upgrade guide](https://github.com/xu-hao/howhard/blob/v3.0.0/docs/upgrading-3.0.md)
|
|
97
|
+
(#66, #67).
|
|
50
98
|
|
|
51
99
|
## 2.2.0 — 2026-11-08
|
|
52
100
|
|
|
@@ -90,7 +138,7 @@ distributions are separate from PyPI publication; this entry asserts neither.
|
|
|
90
138
|
worker money uniformly for unknown or mixed price bases; never infer host charges.
|
|
91
139
|
- Require decision v5, agent request v4 and semantic state v3. Older receipts cannot
|
|
92
140
|
be replayed, while historical raw observations remain retained. Synchronize backend
|
|
93
|
-
and native plugin versions at 2.0.0; see the [upgrade guide](https://github.com/xu-hao/howhard/blob/
|
|
141
|
+
and native plugin versions at 2.0.0; see the [archived upgrade guide](https://github.com/xu-hao/howhard/blob/v2.0.0/docs/upgrading-2.0.md).
|
|
94
142
|
- Extend the host skill with owned artifact capture, rate-card provenance, honest
|
|
95
143
|
partial usage, attachment retries and explicit child-session binding limits.
|
|
96
144
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: howhard
|
|
3
|
-
Version: 3.0
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Choose an agent's model and reasoning effort, and learn from outcomes.
|
|
5
5
|
Project-URL: Repository, https://github.com/xu-hao/howhard
|
|
6
6
|
Project-URL: Issues, https://github.com/xu-hao/howhard/issues
|
|
@@ -26,10 +26,16 @@ Requires-Dist: sentence-transformers<7,>=5.4; extra == "qwen"
|
|
|
26
26
|
|
|
27
27
|
# howhard
|
|
28
28
|
|
|
29
|
+
<img src="docs/assets/spiral.svg" alt="howhard spiral mark" width="160" height="160">
|
|
30
|
+
|
|
29
31
|
*How hard should the agent think?*
|
|
30
32
|
|
|
31
33
|
[Read the documentation](https://howhard.readthedocs.io/en/latest/).
|
|
32
34
|
|
|
35
|
+
Start with the [quickstart](docs/quickstart.md), or read the
|
|
36
|
+
[technical report](docs/technical-report.md) for the credit-saving objective,
|
|
37
|
+
learning equations, statistical assumptions and retrospective defect attribution.
|
|
38
|
+
|
|
33
39
|
`howhard` chooses the model and reasoning effort for a task delegated to an AI
|
|
34
40
|
agent. An LLM reads the actual task, current project and writable semantic memory,
|
|
35
41
|
learning a task-specific capability-fit band over the full supplied inventory, then
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
# howhard
|
|
2
2
|
|
|
3
|
+
<img src="docs/assets/spiral.svg" alt="howhard spiral mark" width="160" height="160">
|
|
4
|
+
|
|
3
5
|
*How hard should the agent think?*
|
|
4
6
|
|
|
5
7
|
[Read the documentation](https://howhard.readthedocs.io/en/latest/).
|
|
6
8
|
|
|
9
|
+
Start with the [quickstart](docs/quickstart.md), or read the
|
|
10
|
+
[technical report](docs/technical-report.md) for the credit-saving objective,
|
|
11
|
+
learning equations, statistical assumptions and retrospective defect attribution.
|
|
12
|
+
|
|
7
13
|
`howhard` chooses the model and reasoning effort for a task delegated to an AI
|
|
8
14
|
agent. An LLM reads the actual task, current project and writable semantic memory,
|
|
9
15
|
learning a task-specific capability-fit band over the full supplied inventory, then
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Project image provenance
|
|
2
|
+
|
|
3
|
+
## Spiral mark
|
|
4
|
+
|
|
5
|
+
[spiral.svg](spiral.svg) is howhard's project mark, published in the repository
|
|
6
|
+
README and documentation homepage. It is an abstract geometric spiral with uniform
|
|
7
|
+
stroke width, evenly spaced turns and rounded ends. The source specifies exactly
|
|
8
|
+
two colors: solid black (`#000000`) for the line and solid white (`#ffffff`) for
|
|
9
|
+
the background. It contains no shading, gradients, texture or embedded raster image.
|
|
10
|
+
|
|
11
|
+
The SVG was authored directly by Codex on 2026-11-14, following the user's selected
|
|
12
|
+
spiral concept and approval to publish the proposed geometric SVG replacement.
|
|
13
|
+
It replaces the earlier generated PNG. No third-party artwork was used.
|
|
14
|
+
|
|
15
|
+
Geometry starts with the Archimedean spiral `r(t) = 8 + 180t / (9π)` for
|
|
16
|
+
`0 ≤ t ≤ 9π`, rotated so its outer end points toward the lower right. Seventy-two cubic
|
|
17
|
+
Bézier segments approximate the curve using its analytic positions and derivatives.
|
|
18
|
+
The path is uniformly scaled to fit a 360-unit bounding extent and centered in a
|
|
19
|
+
512 by 512 view box. Its stroke is 17 units wide. Browser rendering may antialias
|
|
20
|
+
edges; the vector artwork itself uses only the two colors above.
|
|
21
|
+
|
|
22
|
+
The SVG's SHA-256 checksum is
|
|
23
|
+
`25f34101c7c9b64542c9724db8ebf02314aa5631e0edb94e5ab0d5dcae71501d`.
|
|
24
|
+
|
|
25
|
+
[Issue #89](https://github.com/xu-hao/howhard/issues/89) tracks replacing the soft
|
|
26
|
+
raster image with the precise black-and-white abstract spiral.
|
|
27
|
+
|
|
28
|
+
[Issue #91](https://github.com/xu-hao/howhard/issues/91) tracks increasing the
|
|
29
|
+
spiral from 2.5 to 4.5 turns and thickening its uniform stroke from 14 to 20 units,
|
|
30
|
+
while preserving its two colors and geometric styling.
|
|
31
|
+
|
|
32
|
+
[Issue #93](https://github.com/xu-hao/howhard/issues/93) tracks reducing the final
|
|
33
|
+
line weight from 20 to 17 units while retaining the 4.5 turns.
|
|
@@ -44,7 +44,9 @@ The required capability is a discrete latent threshold with a possible value bey
|
|
|
44
44
|
the strongest supplied cell. Each expert's cut points define a smoothed prior CDF:
|
|
45
45
|
underpowered positions lie below `min_clear_probability`, the upper fit position
|
|
46
46
|
reaches `reliability_probability`, and the overpowered tail's possible gain stays
|
|
47
|
-
below `overpowered_gain_margin
|
|
47
|
+
below `overpowered_gain_margin`, concentrated geometrically near the upper cut so
|
|
48
|
+
conditioning on weak-cell failures does not stretch the band in proportion to inventory
|
|
49
|
+
size. With no execution evidence or memory adjustment,
|
|
48
50
|
the result retains the independent prior's order and cuts exactly.
|
|
49
51
|
|
|
50
52
|
The existing tempered log-score weights mix the independent and versioned-memory
|
|
@@ -153,5 +155,10 @@ never ran contribute no outcome. Reported rates are descriptive diagnostics.
|
|
|
153
155
|
Configuration defaults and validation are in [configuration](configuration.md).
|
|
154
156
|
Decision v6 receipts freeze the full filter, expert priors, task-specific order,
|
|
155
157
|
probabilities, band, widening, disagreement data, fine forecasts, and accepted-result
|
|
156
|
-
selection.
|
|
157
|
-
|
|
158
|
+
selection. Newly aggregated capability blocks carry `format = "howhard-capability-v2"`
|
|
159
|
+
and require geometric overpowered-tail expert priors; existing decision v6 receipts
|
|
160
|
+
carrying `"howhard-capability-v1"` remain valid for loading, feedback, belief replay,
|
|
161
|
+
and reporting when all participating expert priors uniformly match either the legacy
|
|
162
|
+
linear overpowered tail or the geometric overpowered tail. Older decision formats
|
|
163
|
+
remain inspectable as raw artifacts but cannot supply new receipt-bound feedback or
|
|
164
|
+
predictive scores; old observation rows remain evidence.
|
|
@@ -46,8 +46,11 @@ When availability changes, pass Python `native_candidates=[...]` or CLI
|
|
|
46
46
|
`--candidates FILE` instead. Supplied lists and named inventories are mutually exclusive;
|
|
47
47
|
there is no union or fallback between them. An empty list or unknown inventory name is
|
|
48
48
|
an error. Without an explicit list or inventory selector, the backend refuses selection
|
|
49
|
-
even when saved lists exist. The same nonempty, unbounded inventory validation and optional pricing
|
|
50
|
-
apply to both sources; invalid configured lists
|
|
49
|
+
even when saved lists exist. The same nonempty, unbounded inventory validation and optional pricing,
|
|
50
|
+
`cost_per_credit` and `credit_budget` fields apply to both sources; invalid configured lists
|
|
51
|
+
fail before creating state. Candidate `rate_card` and `usd_per_mtok` values are raw
|
|
52
|
+
list-price quota credit rates. `cost_per_credit` converts forecast credit use to actual
|
|
53
|
+
session money cost and defaults to `1.0`; set it to `0.0` for a free tier. The
|
|
51
54
|
`[models]` registry describes identities and evidence weights, not availability.
|
|
52
55
|
Previously observed models never become candidates merely because they are in history.
|
|
53
56
|
|
|
@@ -172,8 +175,9 @@ it does not inherit learned family effects. Omitted evidence weight means 1.0. U
|
|
|
172
175
|
native identities need no configuration and receive distinct opaque identity labels.
|
|
173
176
|
Every `pick`, `summary` and `context` request uses an explicit inventory through
|
|
174
177
|
`--candidates FILE` (Python: `native_candidates`) or an explicitly selected saved list
|
|
175
|
-
with `--inventory NAME` (Python: `inventory`). Registry entries do not activate candidates. Supply
|
|
176
|
-
optional `usd_per_mtok`
|
|
178
|
+
with `--inventory NAME` (Python: `inventory`). Registry entries do not activate candidates. Supply raw list-price quota credit rates as
|
|
179
|
+
optional `usd_per_mtok` or `rate_card`, an optional `cost_per_credit`, and optional remaining quota windows as
|
|
180
|
+
`credit_budget = { available_credit_usd = 1.25, session_5h_remaining_credit_usd = 1.25, weekly_7d_remaining_credit_usd = 4.50 }`, in that inventory;
|
|
177
181
|
unknown prices remain omitted/null. Family selection flags, model default efforts,
|
|
178
182
|
component API prices and token-mix configuration are not accepted.
|
|
179
183
|
|
|
@@ -83,4 +83,4 @@ placement labels, learned threshold probabilities, widening, cross-reader disagr
|
|
|
83
83
|
and stage-2 forecasts/selection. Stage 2 records same-cell retry cost, accepted-result
|
|
84
84
|
silent-risk bounds, calibrated uncertainty and exploration status. One later observation
|
|
85
85
|
uses this original receipt to update both readers. See [capability filtering](capability.md)
|
|
86
|
-
and
|
|
86
|
+
and the {ref}`selection contract <accepted-result-selection>`.
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# howhard
|
|
2
|
+
|
|
3
|
+
```{image} assets/spiral.svg
|
|
4
|
+
:alt: howhard spiral mark
|
|
5
|
+
:width: 160px
|
|
6
|
+
:align: center
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
howhard helps you save AI credits by choosing the model and reasoning effort each
|
|
10
|
+
task needs. It starts with an LLM's judgment, learns from your project's real
|
|
11
|
+
results, and corrects earlier success records when bugs are discovered later.
|
|
12
|
+
Its selection accounts for retries, elapsed time and escaped defects.
|
|
13
|
+
|
|
14
|
+
Start with the [quickstart](quickstart.md) to use it on a real task. Read the
|
|
15
|
+
[technical report](technical-report.md) for the design, learning equations,
|
|
16
|
+
statistical assumptions and evaluation method. Savings depend on actual host
|
|
17
|
+
costs and the overhead of routing and learning; the [evaluation guide](evaluation.md)
|
|
18
|
+
explains how to measure them.
|
|
19
|
+
|
|
20
|
+
## Getting started
|
|
21
|
+
|
|
22
|
+
- [Quickstart](quickstart.md) — install the backend and plugin, route a task,
|
|
23
|
+
record its outcome and learn.
|
|
24
|
+
- [Agent skills and host installation](skills.md) — native setup, routing and
|
|
25
|
+
escaped-defect attribution in Codex, Claude Code and Antigravity.
|
|
26
|
+
|
|
27
|
+
```{toctree}
|
|
28
|
+
:hidden:
|
|
29
|
+
:caption: Getting started
|
|
30
|
+
|
|
31
|
+
quickstart
|
|
32
|
+
skills
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Technical deep dive
|
|
36
|
+
|
|
37
|
+
The technical report connects the full workflow. The component guides describe
|
|
38
|
+
each method and its operational boundaries in detail.
|
|
39
|
+
|
|
40
|
+
- [Technical report](technical-report.md) — the credit-saving objective, LLM
|
|
41
|
+
priors, Bayesian capability learning, evidence-weighted memory and retrospective
|
|
42
|
+
defect attribution.
|
|
43
|
+
- [Capability filtering](capability.md) — task-specific fit bands, threshold
|
|
44
|
+
evidence, forecast budgets and widening.
|
|
45
|
+
- [LLM reasoning and semantic memory](semantic-memory.md) — independent
|
|
46
|
+
forecasts, memory operations, predictive weights and feedback replay.
|
|
47
|
+
- [Experience retrieval](retrieval.md) — hybrid search, reranking and bounded
|
|
48
|
+
context from earlier executions and written lessons.
|
|
49
|
+
- [Real-project evaluation](evaluation.md) — measure net cost and forecast
|
|
50
|
+
quality with chronological trials on genuine work.
|
|
51
|
+
- [Rule retrieval benchmark](rule-benchmark.md) — representation and reranking
|
|
52
|
+
diagnostics, separate from field routing-quality evidence.
|
|
53
|
+
|
|
54
|
+
```{toctree}
|
|
55
|
+
:hidden:
|
|
56
|
+
:caption: Technical deep dive
|
|
57
|
+
|
|
58
|
+
technical-report
|
|
59
|
+
capability
|
|
60
|
+
semantic-memory
|
|
61
|
+
retrieval
|
|
62
|
+
evaluation
|
|
63
|
+
rule-benchmark
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Reference
|
|
67
|
+
|
|
68
|
+
- [Model and storage contracts](reference.md) — selection, pricing, execution
|
|
69
|
+
accounting, CLI/API behavior and persisted evidence.
|
|
70
|
+
- [Configuration](configuration.md) — optional inventories, policies, retrieval
|
|
71
|
+
profiles and data locations.
|
|
72
|
+
- [Task and project context](context.md) — original task text, immutable project
|
|
73
|
+
snapshots and decision receipts.
|
|
74
|
+
- [Concurrent clients](concurrency.md) — FIFO write admission, snapshot validity,
|
|
75
|
+
refresh conflicts, bounded waits and retries.
|
|
76
|
+
|
|
77
|
+
```{toctree}
|
|
78
|
+
:hidden:
|
|
79
|
+
:caption: Reference
|
|
80
|
+
|
|
81
|
+
reference
|
|
82
|
+
configuration
|
|
83
|
+
context
|
|
84
|
+
concurrency
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Project
|
|
88
|
+
|
|
89
|
+
- [Contributor workflow](contributing.md) — issues, isolated worktrees and checks.
|
|
90
|
+
- [Packaging and release](releasing.md) — versioning, distribution validation
|
|
91
|
+
and publication.
|
|
92
|
+
- [Changelog](changelog.md) — release history and links to archived upgrade guides.
|
|
93
|
+
- [Image provenance](assets/README.md) — origin and presentation of the project mark.
|
|
94
|
+
- [Session handoff](session_handoff_format.md) — reporting completed and open work.
|
|
95
|
+
|
|
96
|
+
```{toctree}
|
|
97
|
+
:hidden:
|
|
98
|
+
:caption: Project
|
|
99
|
+
|
|
100
|
+
contributing
|
|
101
|
+
releasing
|
|
102
|
+
changelog
|
|
103
|
+
assets/README
|
|
104
|
+
session_handoff_format
|
|
105
|
+
```
|
|
@@ -19,11 +19,16 @@ J = (C_run + lambda_per_hour * T + C_loud * P_loud + C_silent * P_silent)
|
|
|
19
19
|
/ max(probability_floor, 1 - P_loud)
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
`C_run` is the expected actual session money cost (`session_cost_usd`). The candidate's
|
|
23
|
+
`rate_card` or `usd_per_mtok` gives raw public API list-price quota credit, reported as
|
|
24
|
+
`needed_credit_usd`; `cost_per_credit` converts that credit amount to session cost and
|
|
25
|
+
defaults to `1.0` for pay-as-you-go. A free tier can set it to `0.0`.
|
|
26
|
+
|
|
22
27
|
The caller supplies any nonempty number of distinct actual cells through `--candidates FILE` or Python
|
|
23
28
|
`native_candidates`. External routers can explicitly select a saved list from
|
|
24
29
|
`howhard.toml` with `--inventory NAME` or Python `inventory="NAME"` instead. Neither
|
|
25
30
|
option is implicit, and the two sources cannot be combined. An empty list is refused. Each has `model`,
|
|
26
|
-
`effort` and optional `usd_per_mtok` or `rate_card`. External routers can use stable
|
|
31
|
+
`effort` and optional `usd_per_mtok` or `rate_card`, `cost_per_credit`, and `credit_budget`. External routers can use stable
|
|
27
32
|
provider-qualified model IDs; execution and provider access belong to the caller.
|
|
28
33
|
See {ref}`inventory configuration <external-router-inventories>`.
|
|
29
34
|
No-effort, null and `model_default` controls are refused. Unknown identities receive distinct
|
|
@@ -75,13 +80,32 @@ component explanations or the policy that excluded them.
|
|
|
75
80
|
## Prices and measurements
|
|
76
81
|
|
|
77
82
|
Prices belong to the host inventory. If any forecasted band/widened candidate is unpriced, worker money is
|
|
78
|
-
omitted uniformly from every candidate's objective. Known `
|
|
83
|
+
omitted uniformly from every candidate's objective. Known `session_cost_usd` remains visible;
|
|
79
84
|
unknown values stay null, and `cost_policy` labels the partial risk/time comparison.
|
|
80
|
-
Fully priced inventories with a uniform
|
|
81
|
-
|
|
85
|
+
Fully priced inventories with a uniform rate basis use the full objective. Candidate
|
|
86
|
+
`usd_per_mtok` and `rate_card` rates measure list-price quota credit; they do not
|
|
87
|
+
establish actual host money cost when that differs. `cost_per_credit` supplies that
|
|
88
|
+
conversion. Tokens include cached/uncached input and output; T is hours.
|
|
82
89
|
Actual `tokens`, `seconds` and `cost_usd` remain null unless measured. Observations
|
|
83
90
|
update both the threshold reader and shared predictive evidence from one stored row.
|
|
84
91
|
|
|
92
|
+
An optional candidate `credit_budget` object enforces hard scheduling feasibility against
|
|
93
|
+
forecasted `needed_credit_usd`, independently of the session money cost. It requires
|
|
94
|
+
nonnegative finite `available_credit_usd` and accepts optional
|
|
95
|
+
`session_5h_remaining_credit_usd` and `weekly_7d_remaining_credit_usd` windows; when window fields are
|
|
96
|
+
present, `available_credit_usd` must match their minimum within `1e-6`. Any candidate supplying
|
|
97
|
+
`credit_budget` must also supply `rate_card` or `usd_per_mtok`, and an inventory that uses
|
|
98
|
+
`credit_budget` requires uniform pricing across all candidates so `needed_credit_usd` is
|
|
99
|
+
known on a single credit basis. Each evaluated cell reports `session_cost_usd`,
|
|
100
|
+
`cost_per_credit`, `needed_credit_usd`,
|
|
101
|
+
`credit_budget`, `available_credit_usd` and `credit_ok` (`needed_credit_usd <= available_credit_usd`
|
|
102
|
+
when `credit_budget` is present, or `true` when omitted), while
|
|
103
|
+
`admissible` remains accepted-result silent-risk admissibility. Selection filters to
|
|
104
|
+
schedulable cells (`credit_ok == true`) before sampling, exploration or `on_cap_unmet`
|
|
105
|
+
fallback (`lowest-bound` or `flag-review`), refuses selection when no evaluated cell is
|
|
106
|
+
schedulable, and labels cheaper unschedulable alternatives with `insufficient-credit` in
|
|
107
|
+
`why`.
|
|
108
|
+
|
|
85
109
|
(portable-execution-accounting)=
|
|
86
110
|
## Portable execution accounting
|
|
87
111
|
|
|
@@ -154,12 +178,14 @@ may have no per-run billed charge. Measured tokens do not require prices. Histor
|
|
|
154
178
|
bases separately and preserve unknown coverage instead of treating missing values as zero.
|
|
155
179
|
|
|
156
180
|
Native candidates may provide an explicit versioned `rate_card` with source, effective
|
|
157
|
-
date, provider/model/tier,
|
|
158
|
-
|
|
181
|
+
date, provider/model/tier, credit-rate basis and category rates in USD per million tokens.
|
|
182
|
+
These rates represent raw public API list-price quota credit. They must come from a known
|
|
183
|
+
applicable source; there are no built-in price assumptions. `cost_per_credit` converts the
|
|
184
|
+
resulting credit burn to actual session cost.
|
|
159
185
|
Category forecasts use `token_usage` alongside their consistent scalar `tokens` total;
|
|
160
186
|
a rate-card candidate requires the category forecast. Legacy blended `usd_per_mtok`
|
|
161
|
-
remains a total-token forecast with unspecified
|
|
162
|
-
money uniformly when
|
|
187
|
+
remains a total-token forecast with unspecified credit basis. Comparisons omit worker
|
|
188
|
+
money uniformly when rates are unknown or their bases differ. Current request, receipt
|
|
163
189
|
and semantic format versions exclude older predictors from replay while retaining raw
|
|
164
190
|
historical evidence.
|
|
165
191
|
|
|
@@ -256,8 +282,9 @@ policy. The resolved state subtree is excluded from capture and
|
|
|
256
282
|
`project.read`, including symlink aliases; a state root equal to or containing the capture
|
|
257
283
|
root is refused. Prepared calling-agent requests bind the worktree and reject sibling
|
|
258
284
|
retrieve/decide. Requests use `howhard-agent-request-v5` and receipts use
|
|
259
|
-
`howhard-decision-
|
|
260
|
-
|
|
285
|
+
`howhard-decision-v7`, with required capability and accepted-result selection state.
|
|
286
|
+
Receipts v1–v6 remain recognizable as historical store entries but are not replayed as
|
|
287
|
+
new decisions; prepare a fresh request and decision to attach new feedback.
|
|
261
288
|
Frozen-receipt observations and learning share the store across that project's worktrees.
|
|
262
289
|
|
|
263
290
|
## Inference cache and current interfaces
|
|
@@ -271,9 +298,9 @@ returns a typed conflict and refreshed request; see [concurrent clients](concurr
|
|
|
271
298
|
Calling-agent submissions are audited with unknown external
|
|
272
299
|
inference costs and latency rather than being counted as free provider calls.
|
|
273
300
|
|
|
274
|
-
Receipts use `howhard-decision-
|
|
275
|
-
`howhard-semantic-v4`. Older receipts and requests are refused for execution
|
|
276
|
-
|
|
301
|
+
Receipts use `howhard-decision-v7`, requests `howhard-agent-request-v5`, semantic state
|
|
302
|
+
`howhard-semantic-v4`. Older receipts and requests are refused for new execution feedback;
|
|
303
|
+
v1–v6 receipt forecasts are excluded from replay/report scoring. Existing raw observations
|
|
277
304
|
and semantic memories remain stored. Old posterior/prior artifacts are unused and left
|
|
278
305
|
untouched. Removed interfaces include `--llm`, `HOWHARD_LLM`, `--cache`, `Engine(cache_path=...)`,
|
|
279
306
|
`fit`, posterior/prior attributes, `export-prior`, `import-prior`, and prior/cache/transfer
|
|
@@ -8,9 +8,9 @@ major for incompatible public interfaces. While below 1.0, document any incompat
|
|
|
8
8
|
change explicitly. Receipt and request format versions are separate compatibility contracts.
|
|
9
9
|
Keep the version fields in the portable, Claude Code and Antigravity plugin manifests
|
|
10
10
|
in sync with that Python version; distribution validation checks them in the source archive.
|
|
11
|
-
The [
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
The [model and storage contracts](reference.md) define current protocol and selection
|
|
12
|
+
compatibility. The [changelog](changelog.md) retains release history and links to
|
|
13
|
+
upgrade guides archived in the corresponding release tags.
|
|
14
14
|
|
|
15
15
|
Before release:
|
|
16
16
|
|
|
@@ -180,9 +180,10 @@ failure leaves the outcome durable and does not create a second execution.
|
|
|
180
180
|
Routing seeds reproduce selection given recorded forecasts. They do not make fresh
|
|
181
181
|
LLM calls deterministic. Cached forecasts and content-addressed receipts support replay;
|
|
182
182
|
operational timing/cache metadata may differ between invocations.
|
|
183
|
-
Receipts use `howhard-decision-
|
|
183
|
+
Receipts use `howhard-decision-v7` with capability and accepted-result selection state.
|
|
184
184
|
Requests use `howhard-agent-request-v5` and semantic state uses `howhard-semantic-v4`. Older
|
|
185
|
-
receipts
|
|
185
|
+
decision receipts v1–v6 remain in the store but are excluded from predictive scoring; raw
|
|
186
|
+
evidence already linked to them remains intact.
|
|
186
187
|
|
|
187
188
|
Native host selection supplies `--candidates FILE` to `context` or `pick` before any
|
|
188
189
|
baseline/reader forecasts. The inventory is generated from actual host controls, not a
|