howhard 3.3.0__tar.gz → 3.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. {howhard-3.3.0 → howhard-3.4.0}/.antigravity-plugin/plugin.json +1 -1
  2. {howhard-3.3.0 → howhard-3.4.0}/.claude-plugin/plugin.json +1 -1
  3. {howhard-3.3.0 → howhard-3.4.0}/CHANGELOG.md +29 -0
  4. {howhard-3.3.0/src/howhard.egg-info → howhard-3.4.0}/PKG-INFO +1 -1
  5. {howhard-3.3.0 → howhard-3.4.0}/docs/capability.md +6 -3
  6. {howhard-3.3.0 → howhard-3.4.0}/docs/concurrency.md +2 -2
  7. {howhard-3.3.0 → howhard-3.4.0}/docs/configuration.md +24 -10
  8. {howhard-3.3.0 → howhard-3.4.0}/docs/quickstart.md +5 -3
  9. {howhard-3.3.0 → howhard-3.4.0}/docs/reference.md +94 -42
  10. {howhard-3.3.0 → howhard-3.4.0}/docs/retrieval.md +1 -1
  11. {howhard-3.3.0 → howhard-3.4.0}/docs/semantic-memory.md +34 -16
  12. {howhard-3.3.0 → howhard-3.4.0}/docs/technical-report.md +46 -29
  13. {howhard-3.3.0 → howhard-3.4.0}/plugin.json +1 -1
  14. {howhard-3.3.0 → howhard-3.4.0}/skills/howhard/SKILL.md +9 -2
  15. {howhard-3.3.0 → howhard-3.4.0}/skills/howhard/references/workflow.md +14 -6
  16. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/__init__.py +1 -1
  17. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/capability.py +15 -8
  18. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/cli.py +7 -5
  19. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/context.py +2 -1
  20. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/data/semantic.toml +3 -2
  21. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/decisions.py +2 -2
  22. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/engine.py +11 -1
  23. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/report.py +15 -1
  24. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/request_state.py +2 -0
  25. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/selector.py +17 -10
  26. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/semantic.py +134 -43
  27. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/storage.py +10 -3
  28. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/success.py +207 -40
  29. {howhard-3.3.0 → howhard-3.4.0/src/howhard.egg-info}/PKG-INFO +1 -1
  30. {howhard-3.3.0 → howhard-3.4.0}/src/howhard.egg-info/SOURCES.txt +3 -0
  31. howhard-3.4.0/tests/legacy_receipts.py +76 -0
  32. {howhard-3.3.0 → howhard-3.4.0}/tests/test_active_duration.py +26 -25
  33. {howhard-3.3.0 → howhard-3.4.0}/tests/test_capability_filter.py +5 -14
  34. {howhard-3.3.0 → howhard-3.4.0}/tests/test_cost_to_success.py +42 -19
  35. {howhard-3.3.0 → howhard-3.4.0}/tests/test_credit_budget.py +1 -1
  36. howhard-3.4.0/tests/test_interrupted_outcome.py +272 -0
  37. howhard-3.4.0/tests/test_outcome_posterior.py +281 -0
  38. {howhard-3.3.0 → howhard-3.4.0}/tests/test_retrieval.py +2 -1
  39. {howhard-3.3.0 → howhard-3.4.0}/tests/test_semantic.py +1 -1
  40. {howhard-3.3.0 → howhard-3.4.0}/tests/test_semantic_only.py +4 -1
  41. {howhard-3.3.0 → howhard-3.4.0}/.agents/plugins/marketplace.json +0 -0
  42. {howhard-3.3.0 → howhard-3.4.0}/.claude-plugin/marketplace.json +0 -0
  43. {howhard-3.3.0 → howhard-3.4.0}/.readthedocs.yaml +0 -0
  44. {howhard-3.3.0 → howhard-3.4.0}/AGENTS.md +0 -0
  45. {howhard-3.3.0 → howhard-3.4.0}/MANIFEST.in +0 -0
  46. {howhard-3.3.0 → howhard-3.4.0}/README.md +0 -0
  47. {howhard-3.3.0 → howhard-3.4.0}/benchmarks/__init__.py +0 -0
  48. {howhard-3.3.0 → howhard-3.4.0}/benchmarks/bench_rule_retrieval.py +0 -0
  49. {howhard-3.3.0 → howhard-3.4.0}/benchmarks/rule_cases.json +0 -0
  50. {howhard-3.3.0 → howhard-3.4.0}/benchmarks/rule_retrieval.py +0 -0
  51. {howhard-3.3.0 → howhard-3.4.0}/docs/assets/README.md +0 -0
  52. {howhard-3.3.0 → howhard-3.4.0}/docs/changelog.md +0 -0
  53. {howhard-3.3.0 → howhard-3.4.0}/docs/conf.py +0 -0
  54. {howhard-3.3.0 → howhard-3.4.0}/docs/context.md +0 -0
  55. {howhard-3.3.0 → howhard-3.4.0}/docs/contributing.md +0 -0
  56. {howhard-3.3.0 → howhard-3.4.0}/docs/evaluation.md +0 -0
  57. {howhard-3.3.0 → howhard-3.4.0}/docs/index.md +0 -0
  58. {howhard-3.3.0 → howhard-3.4.0}/docs/releasing.md +0 -0
  59. {howhard-3.3.0 → howhard-3.4.0}/docs/requirements.txt +0 -0
  60. {howhard-3.3.0 → howhard-3.4.0}/docs/rule-benchmark.md +0 -0
  61. {howhard-3.3.0 → howhard-3.4.0}/docs/session_handoff_format.md +0 -0
  62. {howhard-3.3.0 → howhard-3.4.0}/docs/skills.md +0 -0
  63. {howhard-3.3.0 → howhard-3.4.0}/pyproject.toml +0 -0
  64. {howhard-3.3.0 → howhard-3.4.0}/scripts/check +0 -0
  65. {howhard-3.3.0 → howhard-3.4.0}/scripts/check-plugins.py +0 -0
  66. {howhard-3.3.0 → howhard-3.4.0}/scripts/check-skills.py +0 -0
  67. {howhard-3.3.0 → howhard-3.4.0}/scripts/verify-wheel.py +0 -0
  68. {howhard-3.3.0 → howhard-3.4.0}/setup.cfg +0 -0
  69. {howhard-3.3.0 → howhard-3.4.0}/skills/attribute-failure/SKILL.md +0 -0
  70. {howhard-3.3.0 → howhard-3.4.0}/skills/howhard/references/accounting.md +0 -0
  71. {howhard-3.3.0 → howhard-3.4.0}/skills/howhard/references/hosts.md +0 -0
  72. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/__main__.py +0 -0
  73. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/accounting.py +0 -0
  74. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/config.py +0 -0
  75. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/data/context.toml +0 -0
  76. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/data/default_config.toml +0 -0
  77. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/files.py +0 -0
  78. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/llm.py +0 -0
  79. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/memory.py +0 -0
  80. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/native.py +0 -0
  81. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/retrieval.py +0 -0
  82. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/state.py +0 -0
  83. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/validation.py +0 -0
  84. {howhard-3.3.0 → howhard-3.4.0}/src/howhard/writes.py +0 -0
  85. {howhard-3.3.0 → howhard-3.4.0}/src/howhard.egg-info/dependency_links.txt +0 -0
  86. {howhard-3.3.0 → howhard-3.4.0}/src/howhard.egg-info/entry_points.txt +0 -0
  87. {howhard-3.3.0 → howhard-3.4.0}/src/howhard.egg-info/requires.txt +0 -0
  88. {howhard-3.3.0 → howhard-3.4.0}/src/howhard.egg-info/top_level.txt +0 -0
  89. {howhard-3.3.0 → howhard-3.4.0}/tests/conftest.py +0 -0
  90. {howhard-3.3.0 → howhard-3.4.0}/tests/test_cli.py +0 -0
  91. {howhard-3.3.0 → howhard-3.4.0}/tests/test_configured_candidates.py +0 -0
  92. {howhard-3.3.0 → howhard-3.4.0}/tests/test_context.py +0 -0
  93. {howhard-3.3.0 → howhard-3.4.0}/tests/test_current_contract.py +0 -0
  94. {howhard-3.3.0 → howhard-3.4.0}/tests/test_execution_accounting.py +0 -0
  95. {howhard-3.3.0 → howhard-3.4.0}/tests/test_fast_reranking.py +0 -0
  96. {howhard-3.3.0 → howhard-3.4.0}/tests/test_measurement_corrections.py +0 -0
  97. {howhard-3.3.0 → howhard-3.4.0}/tests/test_memory.py +0 -0
  98. {howhard-3.3.0 → howhard-3.4.0}/tests/test_native_startup.py +0 -0
  99. {howhard-3.3.0 → howhard-3.4.0}/tests/test_portable_core.py +0 -0
  100. {howhard-3.3.0 → howhard-3.4.0}/tests/test_request_dependencies.py +0 -0
  101. {howhard-3.3.0 → howhard-3.4.0}/tests/test_retrieval_config.py +0 -0
  102. {howhard-3.3.0 → howhard-3.4.0}/tests/test_rule_benchmark.py +0 -0
  103. {howhard-3.3.0 → howhard-3.4.0}/tests/test_semantic_cli.py +0 -0
  104. {howhard-3.3.0 → howhard-3.4.0}/tests/test_skill_workflow.py +0 -0
  105. {howhard-3.3.0 → howhard-3.4.0}/tests/test_storage.py +0 -0
  106. {howhard-3.3.0 → howhard-3.4.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.3.0",
5
+ "version": "3.4.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.3.0",
3
+ "version": "3.4.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"
@@ -2,6 +2,35 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 3.4.0 — 2026-11-20
6
+
7
+ - Replace point outcome forecasts with per-cell Dirichlet–multinomial posteriors: each
8
+ expert forecast is a bounded prior (`kappa_0 <= prior_strength`) updated only by that
9
+ `(family, effort)` cell's own recency-weighted `outcome_observations` (up to
10
+ `outcome_evidence_limit = 24` task-similar non-`interrupted` executions retrieved
11
+ independently per forecasted cell, aged in chronological journal order with
12
+ `sampling.outcome_recency = 0.95`), so global expert evidence counts no longer shrink
13
+ unseen cells' uncertainty and heavy history on one cell cannot crowd out another.
14
+ Forecast rows accept optional `silent_ci`/`loud_ci` 95% credible intervals that can
15
+ only widen the prior (down to `min_concentration`, now 2.0 by default). `P_clean`,
16
+ `P_loud`, `P_silent` and `P_silent_accepted` report real Beta mixture credible
17
+ intervals even for `llm`-only forecasts; admission uses the 80% posterior quantile of
18
+ accepted silent risk (`sampling.admission_quantile`, reported as `admission_risk`);
19
+ Thompson eligibility uses posterior cost overlap, with `explore_within` honored only
20
+ when set on a risk class. The global `sampling.explore_within` setting is rejected
21
+ with a pointer to the risk-class setting. New receipts use `howhard-decision-v9`
22
+ (`howhard-semantic-v6`, `semantic-reader-v7`) while frozen v8 and v7 receipts still
23
+ load, validate and replay (#103).
24
+
25
+ - Add `interrupted` as an operational observation `outcome` alongside `clean`, `loud`, and
26
+ `silent`, with structured causes (`usage_limit`, `provider_error`, `host_error`,
27
+ `cancelled`, and `unrecorded`) so usage-limit and operational aborts are not misclassified
28
+ as `loud` model failures. Keep LLM forecasts and `J` ternary while excluding `interrupted`
29
+ runs from predictive belief replay, capability threshold learning, active-duration
30
+ calibration, forecast error metrics, and `filter_quality` failure/disagreement resolution,
31
+ preserving durable usage/cost/time accounting, amendment reversibility, and separate
32
+ `outcomes.interrupted` / `interrupted_causes` report counts (#104).
33
+
5
34
  ## 3.3.0 — 2026-11-16
6
35
 
7
36
  - Separate active execution duration from passive queue wait with optional
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: howhard
3
- Version: 3.3.0
3
+ Version: 3.4.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
@@ -81,7 +81,10 @@ An explicit `cause=capability` retains that strength; depth/unrecorded failures
81
81
  half strength. For those otherwise unattributed failures, an explicit
82
82
  `capability_caused=false` assertion in the note gives zero threshold evidence. Ordinary
83
83
  prose is not interpreted as a causal label. Recorded cause takes precedence over a
84
- contradictory note. Outcomes always remain clean/loud/silent in the single store.
84
+ contradictory note. Operational `interrupted` outcomes (`usage_limit`, `provider_error`,
85
+ `host_error`, `cancelled`, `unrecorded`) remain in the single observation store for
86
+ accounting and audit, but are excluded from threshold likelihoods and timely-clearing
87
+ updates rather than being recorded as `loud` model failures.
85
88
 
86
89
  Cross-model order updates use the same marginal threshold likelihood with an initial
87
90
  normalized order-distance penalty. Deterministic improving cross-model swaps preserve effort
@@ -148,7 +151,7 @@ memories have no historical predictive credit; unchanged overrides earn no expos
148
151
  Amendments replace the effective outcome and score the original exposure once.
149
152
 
150
153
  For every forecasted cell, compare the threshold posterior's `P_clear` with stage 2's
151
- weighted `P_clean`. A difference above `consistency_margin` (default 0.2) is recorded,
154
+ weighted prospective `P_clean` forecast (before per-cell outcome updates). A difference above `consistency_margin` (default 0.2) is recorded,
152
155
  without changing stage-2 selection. After the actual outcome, compare the frozen binary
153
156
  log losses and report which reader was closer, including ties.
154
157
 
@@ -159,7 +162,7 @@ retain the selected cell's original classification and position. Excluded cells
159
162
  never ran contribute no outcome. Reported rates are descriptive diagnostics.
160
163
 
161
164
  Configuration defaults and validation are in [configuration](configuration.md).
162
- Decision v8 receipts freeze the full filter, expert priors, task-specific order,
165
+ Decision v9 (and persisted v8) receipts freeze the full filter, expert priors, task-specific order,
163
166
  clearing and timely-clearing probabilities, band, widening, disagreement data, fine
164
167
  forecasts, and accepted-result selection. Newly aggregated capability blocks carry
165
168
  `format = "howhard-capability-v3"`, require geometric overpowered-tail expert priors, and
@@ -114,7 +114,7 @@ when the resulting request is used.
114
114
 
115
115
  New v5 requests persist the read snapshot and a dependency manifest. It contains exact
116
116
  content/active versions of surfaced memories, effective-row digests of surfaced evidence
117
- (including execution experts and capability inputs), and the bound configuration digest.
117
+ (including execution experts, capability inputs and per-cell outcome observations), and the bound configuration digest.
118
118
  Dependencies accumulate across filtering, extra retrieval, forecasting and widening.
119
119
  Additional memory/evidence retrieval reads the original snapshot. It cannot silently
120
120
  replace old content with a newer version. Edits to unsurfaced memories, new observations
@@ -122,7 +122,7 @@ and unrelated learning commits leave the request valid. Amendments or usage corr
122
122
  to a surfaced execution invalidate it when its effective contents change.
123
123
 
124
124
  The weight policy is **snapshot**. Both readers use the captured belief/expert scores,
125
- evidence counts and capability observation/recency weights throughout the workflow.
125
+ evidence counts and capability, duration and outcome observation/recency weights throughout the workflow.
126
126
  They do not replay concurrent outcomes into an in-flight forecast. The receipt's optional
127
127
  `request_snapshot` records this policy, the dependency manifest, the captured evidence
128
128
  hash and memory revision. These are decision-time provenance; the global revision is
@@ -128,8 +128,9 @@ unpinned model overrides are rejected before state is created. Selecting Qwen do
128
128
  load weights or invoke a provider while parsing configuration; if its optional runtime
129
129
  is missing when inference is needed, the error is explicit.
130
130
 
131
- The same configuration applies to initial context, `memory search`, and evidence
132
- search. Prepared requests are bound to configuration; changing policy requires a new
131
+ The same configuration applies to initial context, per-cell outcome-observation
132
+ retrieval, `memory search`, and evidence search. Prepared requests are bound to
133
+ configuration; changing policy requires a new
133
134
  request. An application-supplied `Engine(retrieval=pipeline)` still takes precedence
134
135
  over file-based construction. See [retrieval stages](retrieval.md) for replacing
135
136
  components through Python.
@@ -214,11 +215,12 @@ silent_weight = 1.0
214
215
  unknown_cause_weight = 0.5
215
216
 
216
217
  [sampling]
217
- min_concentration = 8.0
218
+ min_concentration = 2.0
218
219
  max_concentration = 1000000.0
219
220
  prior_strength = 8.0
220
- explore_within = 0.10
221
221
  uncertainty_multiplier = 1.0
222
+ admission_quantile = 0.80
223
+ outcome_recency = 0.95
222
224
  ```
223
225
 
224
226
  The full inventory has no size bound. An oversized fit band gets one re-filter round
@@ -228,12 +230,24 @@ overpowered cell per round, within the same total forecast budget.
228
230
  `max_forecast_cells` is a positive integer; widening rounds are nonnegative integers.
229
231
  Require `0 < min_clear_probability < reliability_probability < 1` and observation noise
230
232
  in `(0,0.5)`. Probability/strength margins are in `[0,1]`; order penalty is nonnegative.
231
- Concentration bounds satisfy `1 <= min <= max`, prior strength and uncertainty multiplier
232
- are positive, and sampling `explore_within` lies in `[0,1]`. A risk class's optional
233
- `explore_within` further narrows that fraction. The supported uncertainty allowance is
234
- `uncertainty_multiplier * (sd_best + sd_candidate)` using delta-method retry-cost
235
- standard deviations; a candidate must satisfy both that allowance and the mean fraction.
236
- No exploration occurs when no cell passes the accepted-result silent cap.
233
+ Concentration bounds satisfy `1 <= min_concentration <= prior_strength` and
234
+ `min_concentration <= max_concentration`; uncertainty multiplier is positive,
235
+ `admission_quantile` lies in `[0.5, 1)` and `outcome_recency` in `(0, 1]`.
236
+ `prior_strength` caps the pseudo-observations any forecast prior contributes to a cell's
237
+ [Dirichlet outcome posterior](outcome-posterior); optional forecast credible intervals
238
+ can lower it to `min_concentration` but never raise it. `max_concentration` caps the
239
+ posterior after observed outcomes are added. `outcome_recency` discounts each older observation of the same cell across up to
240
+ 24 task-similar executions retrieved per forecasted cell (`outcome_evidence_limit`
241
+ in `data/semantic.toml`), and `admission_quantile` is the posterior quantile of
242
+ accepted-result silent risk compared with epsilon.
243
+
244
+ Thompson sampling considers every admissible cell whose posterior cost overlaps the
245
+ mean-best cell: `J - J_best <= uncertainty_multiplier * (sd_best + sd_candidate)` using
246
+ delta-method retry-cost standard deviations. A risk class's optional `explore_within`
247
+ additionally caps the gap at that fraction of `|J_best|`; it applies only when set on
248
+ the class. The former global `sampling.explore_within` is rejected with an error that
249
+ points to the risk-class setting. No exploration occurs when no cell passes the
250
+ accepted-result silent cap.
237
251
 
238
252
  `C_loud` now prices extra overhead for each loud failure on top of its redo. Epsilon
239
253
  caps defects among accepted non-loud results, not the raw per-attempt silent rate.
@@ -91,7 +91,7 @@ labels that limit.
91
91
 
92
92
  The skill records feedback only after actual execution. When inspecting the workflow,
93
93
  replace `DECISION_ID` with the returned receipt, `EXECUTION_ID` with a stable ID for
94
- that invocation, and `OUTCOME` with `clean`, `loud` or `silent`:
94
+ that invocation, and `OUTCOME` with `clean`, `loud`, `silent` or `interrupted`:
95
95
 
96
96
  ```sh
97
97
  howhard observe DECISION_ID OUTCOME --id EXECUTION_ID --json
@@ -99,8 +99,10 @@ howhard evidence EXECUTION_ID --raw --json
99
99
  howhard memory learn-context EXECUTION_ID --json
100
100
  ```
101
101
 
102
- `clean` means no observed defect, `loud` means a gate or review caught a failure, and
103
- `silent` means a failure escaped and was discovered later. Record real work and actual
102
+ `clean` means no observed defect, `loud` means a gate or review caught a model failure,
103
+ `silent` means a failure escaped and was discovered later, and `interrupted` means an
104
+ operational interruption (with `--cause usage_limit`, `provider_error`, `host_error`,
105
+ `cancelled` or `unrecorded`) rather than a model failure. Record real work and actual
104
106
  outcomes; setup examples and mechanical checks do not establish routing quality.
105
107
 
106
108
  Accepted explicit native model/effort overrides plus completed execution establish a
@@ -43,34 +43,73 @@ unretrieved memories use the independent LLM forecast. No learned probability ta
43
43
  or synthetic forecast is supplied to either call. Provider absence, invalid forecasts
44
44
  and provider failures are explicit errors; none produces a routing recommendation.
45
45
 
46
- Probability means are weighted by predictive expert support. Lower/upper bounds use
47
- the weighted 2.5%/97.5% forecast quantiles expanded to include the mean. This is a
48
- heuristic forecast envelope, not a Bayesian credible interval or calibrated guarantee.
49
- Admissibility compares the accepted-result defect envelope to the risk class epsilon.
50
- For each expert, transform its joint row to `P_silent / max(probability_floor, 1-P_loud)`
51
- before taking envelope quantiles, then include the ratio of weighted means. This retains
52
- the expert's loud/silent relationship instead of dividing unrelated marginal bounds.
53
- There is no additional statistical risk floor.
54
-
55
- `pick` samples one expert by its weight, draws outcome probabilities using an
56
- evidence-calibrated Dirichlet, and calibrates active duration `T` alongside outcomes.
57
- Forecasted `seconds` represents expected **active** execution duration excluding external
58
- queue wait. For each cell, empirical log-duration residuals from retrieved similar
59
- executions (`effective_active_seconds`, shrunk by similarity/recency evidence weight so
60
- zero-evidence cells preserve the expert forecast) calibrate log-normal parameters `(mu, sigma)`
61
- and price the right-tail expectation `E[T] = exp(mu + sigma^2 / 2)` in `T` and `J`.
62
- Outcome concentration uses the maximum of between-expert variance, squared envelope width
63
- divided by `3.92²`, and `p*(1-p)/(prior_strength + expert_evidence_count + 1)`.
64
- Moment-matching gives `p*(1-p)/variance - 1`; take the most conservative outcome and apply
65
- configured bounds. Agreeing, well-observed experts tighten; weak priors and disagreement
66
- stay wider. Selection admits exploration only inside both the mean-J fraction and a
67
- delta-method cost-uncertainty band (`cost_sd`) that includes Dirichlet outcome covariance,
68
- empirical log-normal active-duration variance, and between-expert spread; Thompson
69
- sampling draws log-normal active duration in `parts["time"]` when duration variance is
70
- present. Receipts retain concentrations, duration calibration parameters, evidence counts,
71
- variance sources, the seed and the reason for a sampled non-best choice. `summary` returns
72
- the same calibrated means and envelope without sampling a selection. A fixed seed
73
- reproduces selection given frozen forecasts; it does not make inference deterministic.
46
+ (outcome-posterior)=
47
+ ### Per-cell outcome posterior
48
+
49
+ Each expert forecast row is a bounded Dirichlet prior for that `(family, effort)` cell,
50
+ updated only by that cell's own observed outcomes:
51
+
52
+ ```text
53
+ p_0 = floored, normalized (clean, loud, silent) forecast
54
+ kappa_0 = prior_strength, lowered by optional credible intervals, within
55
+ [min_concentration, prior_strength]
56
+ alpha = kappa_0 * p_0 + (n_clean, n_loud, n_silent)
57
+ ```
58
+
59
+ `n_*` are recency-weighted counts from per-cell `outcome_observations`: for each
60
+ forecasted `(family, effort)` cell (and any widened cell), up to
61
+ `outcome_evidence_limit` (packaged default `24`) task-similar `clean`/`loud`/`silent`
62
+ executions (`interrupted` runs are excluded) are retrieved
63
+ independently from that cell's own historical runs and scored with the configured
64
+ reranker (`similarity = sigmoid(score)`), each weighted by
65
+ `evidence_weight * similarity * outcome_recency ** age`. `age` counts newer recorded
66
+ non-`interrupted` observations of that same cell in chronological journal order, so heavy history on
67
+ another cell cannot crowd out this cell's evidence, a regression or recovery dominates
68
+ promptly, and unrelated workload does not erase a cell's history. A never-observed
69
+ cell keeps its prior variance no matter how many runs other cells have; an expert's
70
+ global `evidence_count` affects only its predictive weight, never a cell's sample size.
71
+
72
+ A forecast row may add `silent_ci` and/or `loud_ci` as `[lo, hi]` with
73
+ `0 <= lo <= value <= hi <= 1`, a central 95% credible interval for that probability.
74
+ Moment matching gives `kappa = p*(1-p)/((hi-lo)/3.92)^2 - 1`; the smallest such value is
75
+ clamped to `[min_concentration, prior_strength]`. Intervals can therefore widen a prior
76
+ but an overconfident narrow interval can never make a forecast stronger than
77
+ `prior_strength` pseudo-observations. Bare `clean`/`loud`/`silent` rows remain valid and
78
+ use `kappa_0 = prior_strength`.
79
+
80
+ `P_clean`, `P_loud` and `P_silent` report `{mean, lower, upper}` from the
81
+ support-weighted mixture of the experts' Beta marginals `Beta(alpha_i, sum(alpha) - alpha_i)`:
82
+ the mean and the equal-tailed 2.5%/97.5% quantiles, expanded to contain the mean. This is
83
+ a real posterior interval even when only the `llm` expert participates. Accepted-result
84
+ risk `P_silent / (1 - P_loud)` is, under each Dirichlet, `Beta(alpha_silent, alpha_clean)`;
85
+ `P_silent_accepted` reports the same mixture mean and 95% interval. A cell is
86
+ `admissible` when its `admission_risk`, the `admission_quantile` (default 0.80) posterior
87
+ quantile of accepted risk, is at most the risk class epsilon. Using q80 rather than the
88
+ 97.5% bound keeps unseen cells with an ordinary forecast admissible while still rejecting
89
+ high-silent cells. There is no additional statistical risk floor, and the posterior is a
90
+ model assumption, not a calibrated coverage guarantee. `J` uses the posterior means.
91
+
92
+ `pick` samples one expert by its weight and draws outcome probabilities from that
93
+ expert's per-cell Dirichlet posterior `alpha`, and calibrates active duration `T`
94
+ alongside outcomes. Forecasted `seconds` represents expected **active** execution
95
+ duration excluding external queue wait. For each cell, empirical log-duration residuals
96
+ from retrieved similar executions (`effective_active_seconds`, shrunk by
97
+ similarity/recency evidence weight so zero-evidence cells preserve the expert forecast)
98
+ calibrate log-normal parameters `(mu, sigma)` and price the right-tail expectation
99
+ `E[T] = exp(mu + sigma^2 / 2)` in `T` and `J`. `cost_sd` is the delta-method retry-cost
100
+ standard deviation from the posterior Dirichlet covariance
101
+ `(diag(m) - m m^T) / (sum(alpha) + 1)` and log-normal active-duration variance, raised to
102
+ the between-expert spread of per-expert posterior costs when larger. Thompson sampling
103
+ considers every admissible, schedulable cell whose posterior cost overlaps the mean-best
104
+ cell: `J - J_best <= uncertainty_multiplier * (sd_best + sd_cell)`. Only an explicit
105
+ risk-class `explore_within` additionally caps that gap at `explore_within * |J_best|`.
106
+ Thompson sampling draws log-normal active duration in `parts["time"]` when duration
107
+ variance is present. Receipts retain `outcome_observations`, each sampled cell's
108
+ `outcome_posterior` (`prior`, `prior_concentration`, `counts`, `evidence_weight`,
109
+ `alpha`), concentrations, duration calibration parameters, each cell's `admission_risk`,
110
+ the seed and the reason for a sampled non-best choice. `summary` returns the same
111
+ posterior means and intervals without sampling a selection. A fixed seed reproduces
112
+ selection given frozen forecasts; it does not make inference deterministic.
74
113
 
75
114
  Loud attempts are retried on the same cell until a non-loud result is accepted.
76
115
  `1/(1-P_loud)` charges the expected attempts; `C_loud` is extra detection/rework overhead
@@ -79,11 +118,17 @@ a near-certain loud failure finite but very costly. Retry-on-another-cell is not
79
118
 
80
119
  If the cap is unmet after stronger-only capability widening, no expert or probability
81
120
  sample is drawn. `flag-review` chooses the minimum mean J; `lowest-bound` chooses the
82
- lowest accepted-result silent upper envelope, with mean J breaking ties. Both require
121
+ lowest accepted-result `admission_risk`, with mean J breaking ties. Both require
83
122
  review. `exploration.reason` records `disabled-cap-unmet`. Risk-class `explore_within`
84
- can further tighten the default sampling band; it cannot permit exploration outside
85
- the uncertainty-supported band. Cheaper alternatives include signed cost
86
- component explanations or the policy that excluded them.
123
+ can further tighten the posterior-overlap band; it cannot permit exploration outside
124
+ it. Cheaper alternatives include signed cost component explanations or the policy that
125
+ excluded them.
126
+
127
+ New receipts use `howhard-decision-v9` (`howhard-semantic-v6`, reader prompt
128
+ `semantic-reader-v7`, interval kind `dirichlet-posterior-mixture`). Frozen
129
+ `howhard-decision-v8` and `howhard-decision-v7` receipts keep their original weighted
130
+ forecast envelopes, upper-envelope admission and sampling policy shape; they still load,
131
+ validate, accept outcomes and replay into predictive weights.
87
132
 
88
133
  ## Prices and measurements
89
134
 
@@ -221,8 +266,8 @@ Every JSONL row requires these base keys:
221
266
  | `model` | Concrete id from the registry |
222
267
  | `effort` | Exact registered effort/control identity |
223
268
  | `observed_at` | ISO timestamp with timezone |
224
- | `outcome` | clean, loud or silent |
225
- | `cause` | Null for clean; depth, capability or unrecorded otherwise |
269
+ | `outcome` | `clean`, `loud`, `silent` or `interrupted` |
270
+ | `cause` | Null for `clean`; `depth`, `capability` or `unrecorded` for `loud`/`silent`; `usage_limit`, `provider_error`, `host_error`, `cancelled` or `unrecorded` for `interrupted` |
226
271
  | `tokens` | Nonnegative integer or null |
227
272
  | `seconds`, `cost_usd` | Finite nonnegative number or null |
228
273
  | `active_seconds`, `queue_wait_seconds` | Optional finite nonnegative number or null; reconciled with `seconds` within `1e-6` |
@@ -250,12 +295,17 @@ Disk duplicate rows remain errors. Errors name the file, line and key.
250
295
  Original rows require `task_text`, `project_context` and `context_encoder` together,
251
296
  with optional `decision_id`. Empty task text or null project context represents an
252
297
  explicitly unknown input; missing fields are refused. Every row requires `observed_at`.
253
- Amendments carry null measurements/cost and correct an outcome to clean, loud or silent,
254
- with the usual cause rule. Superseded rows without timestamps/context and unresolved
298
+ Amendments carry null measurements/cost and correct an outcome to `clean`, `loud`, `silent` or `interrupted`,
299
+ with the usual cause rule. Effective `interrupted` runs represent operational interruptions (such as usage limits,
300
+ provider/host errors, or cancellations) rather than model task failures: they retain their original ID, decision,
301
+ usage/cost/duration accounting, amendment chains and `report` counts (including `interrupted_causes`), while being
302
+ excluded from stage-1/stage-2 predictive belief replay, capability threshold likelihoods, active-duration
303
+ calibration, forecast error metrics, and `filter_quality` failure/disagreement resolution. Amending a misclassified
304
+ `loud` execution to `interrupted` removes its predictive and threshold penalty on replay. Superseded rows without timestamps/context and unresolved
255
305
  `model_default` efforts are refused; no context or control is inferred retrospectively.
256
306
  Chains replace the original run's effective outcome and cause, counting that run once
257
- and retaining its original ID, decision, cell, task text, project snapshot, project,
258
- weight and uncorrected measurements. Raw rows remain intact. Amendments cannot override
307
+ in original chronological journal order and retaining its original ID, decision, cell,
308
+ task text, project snapshot, project, weight and uncorrected measurements. Raw rows remain intact. Amendments cannot override
259
309
  historical context through the observation API. Targets within a file must precede their amendments.
260
310
  Across files, targets must exist, have dates no later than their amendments, and form an
261
311
  acyclic dependency graph. Dependency ordering keeps amendments valid when flushing moves
@@ -303,9 +353,10 @@ policy. The resolved state subtree is excluded from capture and
303
353
  `project.read`, including symlink aliases; a state root equal to or containing the capture
304
354
  root is refused. Prepared calling-agent requests bind the worktree and reject sibling
305
355
  retrieve/decide. Requests use `howhard-agent-request-v5` and new receipts use
306
- `howhard-decision-v8` (`howhard-semantic-v5` / `semantic-reader-v6`,
356
+ `howhard-decision-v9` (`howhard-semantic-v6` / `semantic-reader-v7`,
307
357
  `howhard-capability-v3`), with required capability and accepted-result selection state.
308
- Persisted `howhard-decision-v7` receipts (`howhard-semantic-v4` / `semantic-reader-v5`,
358
+ Persisted `howhard-decision-v8` receipts (`howhard-semantic-v5` / `semantic-reader-v6`,
359
+ `howhard-capability-v3`, weighted forecast envelopes) and `howhard-decision-v7` receipts (`howhard-semantic-v4` / `semantic-reader-v5`,
309
360
  `howhard-capability-v1` or `howhard-capability-v2`) continue to load, validate, accept
310
361
  feedback, and participate in belief replay and reporting under their frozen version rules.
311
362
  Receipts v1–v6 remain recognizable as historical store entries but are not replayed as
@@ -323,8 +374,9 @@ returns a typed conflict and refreshed request; see [concurrent clients](concurr
323
374
  Calling-agent submissions are audited with unknown external
324
375
  inference costs and latency rather than being counted as free provider calls.
325
376
 
326
- New receipts use `howhard-decision-v8`, requests `howhard-agent-request-v5`, semantic state
327
- `howhard-semantic-v5`, and capability state `howhard-capability-v3`. Persisted
377
+ New receipts use `howhard-decision-v9`, requests `howhard-agent-request-v5`, semantic state
378
+ `howhard-semantic-v6`, and capability state `howhard-capability-v3`. Persisted
379
+ `howhard-decision-v8` (`howhard-semantic-v5`, `howhard-capability-v3`) and
328
380
  `howhard-decision-v7` (`howhard-semantic-v4`, `howhard-capability-v1`/`v2`) receipts
329
381
  remain valid under their frozen rules; v1–v6 receipts and older requests are refused for
330
382
  new execution feedback and excluded from replay/report scoring. Existing raw observations
@@ -2,7 +2,7 @@
2
2
 
3
3
  The retrieval query is the new **project context and task**. The primary precedents are
4
4
  effective observed executions, each retaining its original project snapshot, task,
5
- actual model **and** reasoning effort, clean/loud/silent outcome, tokens, time and
5
+ actual model **and** reasoning effort, `clean`/`loud`/`silent`/`interrupted` outcome, tokens, time and
6
6
  cost. Related failures are useful evidence. A narrower or broader task can be relevant;
7
7
  similarity does not establish that an outcome transfers to an unrun action.
8
8
 
@@ -146,17 +146,33 @@ also scale these updates.
146
146
  These are approximate predictive-evidence weights, not probabilities that statements
147
147
  are true and not an exact posterior over all possible natural-language memories.
148
148
  They measure predictive support and do not establish causal explanations. The LLM's
149
- own confidence is not evidence. Outcome amendments to clean, loud or silent replay the
149
+ own confidence is not evidence. Outcome amendments to `clean`, `loud`, `silent` or `interrupted` replay the
150
150
  original run's forecasts against its effective result once, replacing its earlier score
151
- rather than adding another independent run. Original measurements and registry evidence
151
+ rather than adding another independent run. Effective `interrupted` outcomes (such as
152
+ `usage_limit`, `provider_error`, `host_error` or `cancelled`) are operational
153
+ interruptions rather than model task failures: they are excluded from stage-1/stage-2
154
+ predictive scoring and active-duration calibration, while remaining durable in the store,
155
+ counted in `report`, and visible in `execution:RUN_ID` and `outcome_history`. Amending a
156
+ misclassified `loud` execution to `interrupted` removes its earlier predictive penalty on
157
+ replay. Original measurements and registry evidence
152
158
  weight still apply; an amendment does not create a new forecast exposure.
153
159
 
154
- Selection samples the LLM and memory experts and retains the cost objective. Intervals
155
- use the weighted forecast envelope, expanded to contain its weighted mean. The silent
156
- cap checks this envelope directly, with no fitted statistical floor. Tiny-weight
157
- pessimistic experts do not automatically veto every cell. This is a heuristic envelope,
158
- not a calibrated risk guarantee. Results identify the interval method and preserve the
159
- review-required policy when the cap is unmet.
160
+ Selection samples the LLM and memory experts and retains the cost objective. Each
161
+ expert's forecast row is a bounded Dirichlet prior for its cell (at most
162
+ `prior_strength` pseudo-observations), updated by that cell's own recency-weighted
163
+ `outcome_observations` (up to `outcome_evidence_limit = 24` task-similar executions
164
+ retrieved independently per forecasted `(family, effort)` cell). Forecasters may attach
165
+ `silent_ci` and/or `loud_ci` 95% credible intervals to a row; wider intervals weaken the
166
+ prior so real outcomes dominate sooner, while a narrow interval cannot strengthen it
167
+ beyond `prior_strength`. Rows without intervals remain valid. Intervals are credible
168
+ intervals of the support-weighted mixture of per-expert Beta posteriors, so a lone `llm`
169
+ forecast still reports its posterior uncertainty. The silent cap compares the 80%
170
+ posterior quantile of accepted-result risk with epsilon, with no fitted statistical
171
+ floor. Tiny-weight pessimistic experts do not automatically veto every cell. The
172
+ posterior is a model assumption, not a calibrated risk guarantee. Results identify the
173
+ interval method and preserve the review-required policy when the cap is unmet. Predictive
174
+ support (`evidence_count`, `log_score`) weights experts; it never stands in for a cell's
175
+ own sample size. See the {ref}`outcome posterior <outcome-posterior>`.
160
176
 
161
177
  ## Writer, failures and replay
162
178
 
@@ -182,9 +198,10 @@ failure leaves the outcome durable and does not create a second execution.
182
198
  Routing seeds reproduce selection given recorded forecasts. They do not make fresh
183
199
  LLM calls deterministic. Cached forecasts and content-addressed receipts support replay;
184
200
  operational timing/cache metadata may differ between invocations.
185
- New receipts use `howhard-decision-v8` with capability (`howhard-capability-v3`) and
201
+ New receipts use `howhard-decision-v9` with capability (`howhard-capability-v3`) and
186
202
  accepted-result selection state. Requests use `howhard-agent-request-v5` and semantic state
187
- uses `howhard-semantic-v5` (`semantic-reader-v6`). Persisted `howhard-decision-v7`
203
+ uses `howhard-semantic-v6` (`semantic-reader-v7`). Persisted `howhard-decision-v8`
204
+ (`howhard-semantic-v5`, `howhard-capability-v3`) and `howhard-decision-v7`
188
205
  (`howhard-semantic-v4`, `howhard-capability-v1`/`v2`) receipts continue to load, validate,
189
206
  accept feedback, and participate in belief replay and reporting under their frozen rules.
190
207
  Older decision receipts v1–v6 remain in the store but are excluded from predictive scoring; raw
@@ -270,12 +287,13 @@ stage-1 prior; it has no independent observation store or feedback path.
270
287
  Fine selection charges expected same-cell retries to an accepted result and calibrates
271
288
  active duration from expert `seconds` forecasts plus shrunk `effective_active_seconds`
272
289
  log-residuals on similar retrieved executions, pricing the log-normal right-tail
273
- expectation `exp(mu + sigma^2 / 2)`. Its silent cap uses joint-expert accepted-result
274
- defect ratios. Sampling uses envelope/spread and recorded expert exposures to calibrate
275
- bounded Dirichlet concentration alongside log-normal active-duration draws. Mean-cost and
276
- cost-uncertainty bands (including log-normal and between-expert duration variance)
277
- restrict exploration; an unmet cap disables all draws and requires review. Receipts
290
+ expectation `exp(mu + sigma^2 / 2)`. Its silent cap uses each expert's joint
291
+ accepted-result posterior `Beta(alpha_silent, alpha_clean)` at the admission quantile.
292
+ Sampling draws from the sampled expert's per-cell Dirichlet posterior alongside
293
+ log-normal active-duration draws. Posterior cost overlap (including log-normal and
294
+ between-expert duration variance) gates exploration, optionally capped by an explicit
295
+ risk-class `explore_within`; an unmet cap disables all draws and requires review. Receipts
278
296
  preserve the formula, constants, calibration and explanation.
279
- A consistency disagreement compares raw stage-2 `P_clean` with stage-1 `P_clear`; it
297
+ A consistency disagreement compares the raw stage-2 clean forecast (before outcome updates) with stage-1 `P_clear`; it
280
298
  does not substitute the accepted-result risk ratio or silently alter the chosen cell.
281
299
  See [capability filtering](capability.md) and {ref}`selection <accepted-result-selection>`.
@@ -30,8 +30,9 @@ task and captured project context. The outcome categories are:
30
30
  | Outcome | Recorded meaning | Consequence for selection |
31
31
  | --- | --- | --- |
32
32
  | `clean` | No defect has been observed | A non-loud result is accepted; later evidence may correct the label |
33
- | `loud` | A gate or review caught a failure | The cost model charges another attempt on the same candidate |
33
+ | `loud` | A gate or review caught a model failure | The cost model charges another attempt on the same candidate |
34
34
  | `silent` | A defect escaped acceptance and was discovered later | Selection includes an escaped-defect penalty and an accepted-result risk cap |
35
+ | `interrupted` | Execution stopped operationally (`usage_limit`, `provider_error`, `host_error`, `cancelled`, `unrecorded`) | Preserved for usage/cost accounting and audit; excluded from ternary forecasts, capability thresholds, active-duration calibration and belief scoring |
35
36
 
36
37
  Acceptance is therefore observable workflow behavior, not proof of correctness.
37
38
  An execution retains its actual model, effort, outcome and measured usage. An
@@ -273,32 +274,47 @@ remains attributed to the invocation that actually ran. The
273
274
  [semantic-memory contract](semantic-memory.md) specifies scoring and mutation;
274
275
  the [retrieval guide](retrieval.md) specifies precedent selection.
275
276
 
276
- ## 5 Risk envelopes and bounded exploration
277
-
278
- The fine forecast supplies both an expected cost and an accepted-result defect
279
- envelope. For each expert, howhard first computes the joint ratio
280
- {math}`p_s/\max(\delta,1-p_l)`. It then takes weighted 2.5% and 97.5% quantiles
281
- of those ratios and expands the envelope to include the ratio of aggregate means.
282
- This preserves each expert's loud/silent relationship. Dividing unrelated
283
- marginal bounds would lose it.
284
-
285
- A candidate passes the risk policy when the upper accepted-result defect envelope
286
- is at most the risk class's epsilon. These bounds are heuristic forecast
287
- envelopes, not Bayesian credible intervals or calibrated frequentist confidence
288
- intervals. Epsilon is a selection rule, not an empirical guarantee about the
289
- future defect rate.
290
-
291
- When the cap is met, selection samples a predictive expert and Dirichlet outcome
292
- probabilities. Concentration is moment-matched from expert disagreement, envelope
293
- width and recorded evidence counts, within fixed bounds. This is an approximate
294
- sampling model, rather than a conjugate posterior obtained by counting outcomes.
295
-
296
- Exploration is restricted to candidates that satisfy risk and credit constraints
297
- and whose mean objective is close to the best by both a configured cost fraction
298
- and an uncertainty-based allowance. After widening is exhausted with no passing
299
- candidate, selection disables sampling and applies a deterministic fallback that
300
- requires review. The {ref}`selection reference <accepted-result-selection>` defines the
301
- envelopes, concentration and fallback policies.
277
+ ## 5 Outcome posteriors and bounded exploration
278
+
279
+ Each expert's fine forecast is a prior, not a measurement. For one candidate cell,
280
+ howhard treats the floored forecast {math}`p_0=(p_c,p_l,p_s)` as the mean of a
281
+ Dirichlet prior with concentration {math}`\kappa_0\le\kappa_{\max}` (the configured
282
+ `prior_strength`, 8 by default). An optional 95% credible interval on {math}`p_l` or
283
+ {math}`p_s` lowers {math}`\kappa_0` by moment matching,
284
+ {math}`\kappa=p(1-p)/\sigma^2-1` with {math}`\sigma` equal to the interval width
285
+ divided by 3.92, but never raises it: a forecaster cannot claim the authority of many
286
+ real runs. Up to 24 task-similar historical runs are retrieved independently for each forecasted
287
+ cell—preventing frequently executed cells from crowding out rarer ones—and update the
288
+ prior conjugately, {math}`\alpha=\kappa_0 p_0+(n_c,n_l,n_s)`. Counts are weighted by
289
+ relevance, model evidence weight and an exponential recency decay (0.95 per newer
290
+ observation of the same cell in chronological journal order), so a regression or a
291
+ recovery moves the posterior promptly. A cell with no
292
+ observations keeps its prior variance regardless of how much evidence other cells have;
293
+ global expert support weights experts but is not a per-cell sample size.
294
+
295
+ Reported probabilities are the support-weighted mixture of the experts' posterior
296
+ marginals {math}`\mathrm{Beta}(\alpha_i,\sum_j\alpha_j-\alpha_i)`, with equal-tailed
297
+ 95% credible intervals. Under a Dirichlet, accepted-result defect risk
298
+ {math}`p_s/(p_c+p_s)` is exactly {math}`\mathrm{Beta}(\alpha_s,\alpha_c)`, which
299
+ preserves each expert's loud/silent relationship. A candidate passes the risk policy
300
+ when the 80% posterior quantile of that mixture is at most the risk class's epsilon.
301
+ The 80% quantile, rather than the 97.5% bound, avoids rejecting every unseen cell for
302
+ prior width alone while still rejecting forecasts or histories with substantial silent
303
+ risk. The intervals are Bayesian under the stated prior and exchangeability
304
+ assumptions; they are not calibrated frequentist guarantees, and epsilon is a selection
305
+ rule, not an empirical guarantee about the future defect rate.
306
+
307
+ When the cap is met, selection samples a predictive expert in proportion to its
308
+ support and draws outcome probabilities from that expert's per-cell Dirichlet posterior
309
+ (Thompson sampling). Exploration is restricted to candidates that satisfy risk and
310
+ credit constraints and whose posterior cost distribution overlaps the mean-best
311
+ candidate's, measured by delta-method standard deviations. A fixed fraction of the best
312
+ mean cost caps the gap only when a risk class sets it explicitly; by default a small
313
+ point-forecast difference cannot lock in a favoured cell and starve an unseen cheaper
314
+ one of evidence. After widening is exhausted with no passing candidate, selection
315
+ disables sampling and applies a deterministic fallback that requires review. The
316
+ {ref}`selection reference <accepted-result-selection>` defines the posterior,
317
+ admission and fallback policies.
302
318
 
303
319
  ## 6 Retrospective defect attribution
304
320
 
@@ -398,8 +414,9 @@ The components have distinct statistical meanings:
398
414
  | Capability threshold | Generalized Bayesian update with weighted noisy likelihoods | Scalar order and heuristic transfer from related tasks |
399
415
  | Cross-model ordering | Constrained local posterior/MAP search | Approximate search over rankings |
400
416
  | Memory support | Tempered, recency-weighted predictive evidence | Forecast support does not establish truth or causality |
401
- | Risk envelope | Weighted expert quantiles including the aggregate estimate | No calibrated coverage guarantee |
402
- | Selection sampling | Moment-matched Dirichlet with bounded exploration | Approximate uncertainty model |
417
+ | Outcome posterior | Per-cell Dirichlet–multinomial update of a bounded forecast prior | Prior strength and recency decay are fixed modelling choices |
418
+ | Risk admission | 80% quantile of the mixture accepted-defect posterior | No calibrated coverage guarantee |
419
+ | Selection sampling | Thompson sampling within posterior cost overlap | Delta-method overlap is approximate |
403
420
  | Outcome amendments | Correction and replay of an earlier execution | Requires supported attribution and preserved provenance |
404
421
 
405
422
  Together, these mechanisms give routing access to both immediate outcomes and
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "howhard",
4
- "version": "3.3.0",
4
+ "version": "3.4.0",
5
5
  "description": "Recommend model and reasoning effort from task context, then learn from actual feedback through writable semantic memory.",
6
6
  "author": {"name": "howhard contributors"},
7
7
  "repository": "https://github.com/xu-hao/howhard"