howhard 3.2.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 (107) hide show
  1. {howhard-3.2.0 → howhard-3.4.0}/.antigravity-plugin/plugin.json +1 -1
  2. {howhard-3.2.0 → howhard-3.4.0}/.claude-plugin/plugin.json +1 -1
  3. {howhard-3.2.0 → howhard-3.4.0}/CHANGELOG.md +42 -0
  4. {howhard-3.2.0/src/howhard.egg-info → howhard-3.4.0}/PKG-INFO +1 -1
  5. {howhard-3.2.0 → howhard-3.4.0}/docs/capability.md +25 -14
  6. {howhard-3.2.0 → howhard-3.4.0}/docs/concurrency.md +2 -2
  7. {howhard-3.2.0 → howhard-3.4.0}/docs/configuration.md +24 -10
  8. {howhard-3.2.0 → howhard-3.4.0}/docs/quickstart.md +5 -3
  9. {howhard-3.2.0 → howhard-3.4.0}/docs/reference.md +122 -43
  10. {howhard-3.2.0 → howhard-3.4.0}/docs/retrieval.md +1 -1
  11. {howhard-3.2.0 → howhard-3.4.0}/docs/semantic-memory.md +46 -19
  12. {howhard-3.2.0 → howhard-3.4.0}/docs/technical-report.md +59 -35
  13. {howhard-3.2.0 → howhard-3.4.0}/plugin.json +1 -1
  14. {howhard-3.2.0 → howhard-3.4.0}/skills/howhard/SKILL.md +15 -4
  15. {howhard-3.2.0 → howhard-3.4.0}/skills/howhard/references/accounting.md +8 -1
  16. {howhard-3.2.0 → howhard-3.4.0}/skills/howhard/references/workflow.md +29 -13
  17. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/__init__.py +1 -1
  18. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/accounting.py +46 -2
  19. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/capability.py +152 -33
  20. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/cli.py +10 -8
  21. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/context.py +3 -1
  22. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/data/semantic.toml +3 -2
  23. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/decisions.py +6 -5
  24. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/engine.py +19 -3
  25. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/report.py +27 -1
  26. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/request_state.py +2 -0
  27. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/selector.py +17 -10
  28. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/semantic.py +214 -43
  29. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/storage.py +76 -14
  30. howhard-3.4.0/src/howhard/success.py +399 -0
  31. {howhard-3.2.0 → howhard-3.4.0/src/howhard.egg-info}/PKG-INFO +1 -1
  32. {howhard-3.2.0 → howhard-3.4.0}/src/howhard.egg-info/SOURCES.txt +4 -0
  33. howhard-3.4.0/tests/legacy_receipts.py +76 -0
  34. howhard-3.4.0/tests/test_active_duration.py +391 -0
  35. {howhard-3.2.0 → howhard-3.4.0}/tests/test_capability_filter.py +34 -19
  36. {howhard-3.2.0 → howhard-3.4.0}/tests/test_cost_to_success.py +42 -19
  37. {howhard-3.2.0 → howhard-3.4.0}/tests/test_credit_budget.py +1 -1
  38. howhard-3.4.0/tests/test_interrupted_outcome.py +272 -0
  39. howhard-3.4.0/tests/test_outcome_posterior.py +281 -0
  40. {howhard-3.2.0 → howhard-3.4.0}/tests/test_retrieval.py +2 -1
  41. {howhard-3.2.0 → howhard-3.4.0}/tests/test_semantic.py +1 -1
  42. {howhard-3.2.0 → howhard-3.4.0}/tests/test_semantic_only.py +4 -1
  43. howhard-3.2.0/src/howhard/success.py +0 -184
  44. {howhard-3.2.0 → howhard-3.4.0}/.agents/plugins/marketplace.json +0 -0
  45. {howhard-3.2.0 → howhard-3.4.0}/.claude-plugin/marketplace.json +0 -0
  46. {howhard-3.2.0 → howhard-3.4.0}/.readthedocs.yaml +0 -0
  47. {howhard-3.2.0 → howhard-3.4.0}/AGENTS.md +0 -0
  48. {howhard-3.2.0 → howhard-3.4.0}/MANIFEST.in +0 -0
  49. {howhard-3.2.0 → howhard-3.4.0}/README.md +0 -0
  50. {howhard-3.2.0 → howhard-3.4.0}/benchmarks/__init__.py +0 -0
  51. {howhard-3.2.0 → howhard-3.4.0}/benchmarks/bench_rule_retrieval.py +0 -0
  52. {howhard-3.2.0 → howhard-3.4.0}/benchmarks/rule_cases.json +0 -0
  53. {howhard-3.2.0 → howhard-3.4.0}/benchmarks/rule_retrieval.py +0 -0
  54. {howhard-3.2.0 → howhard-3.4.0}/docs/assets/README.md +0 -0
  55. {howhard-3.2.0 → howhard-3.4.0}/docs/changelog.md +0 -0
  56. {howhard-3.2.0 → howhard-3.4.0}/docs/conf.py +0 -0
  57. {howhard-3.2.0 → howhard-3.4.0}/docs/context.md +0 -0
  58. {howhard-3.2.0 → howhard-3.4.0}/docs/contributing.md +0 -0
  59. {howhard-3.2.0 → howhard-3.4.0}/docs/evaluation.md +0 -0
  60. {howhard-3.2.0 → howhard-3.4.0}/docs/index.md +0 -0
  61. {howhard-3.2.0 → howhard-3.4.0}/docs/releasing.md +0 -0
  62. {howhard-3.2.0 → howhard-3.4.0}/docs/requirements.txt +0 -0
  63. {howhard-3.2.0 → howhard-3.4.0}/docs/rule-benchmark.md +0 -0
  64. {howhard-3.2.0 → howhard-3.4.0}/docs/session_handoff_format.md +0 -0
  65. {howhard-3.2.0 → howhard-3.4.0}/docs/skills.md +0 -0
  66. {howhard-3.2.0 → howhard-3.4.0}/pyproject.toml +0 -0
  67. {howhard-3.2.0 → howhard-3.4.0}/scripts/check +0 -0
  68. {howhard-3.2.0 → howhard-3.4.0}/scripts/check-plugins.py +0 -0
  69. {howhard-3.2.0 → howhard-3.4.0}/scripts/check-skills.py +0 -0
  70. {howhard-3.2.0 → howhard-3.4.0}/scripts/verify-wheel.py +0 -0
  71. {howhard-3.2.0 → howhard-3.4.0}/setup.cfg +0 -0
  72. {howhard-3.2.0 → howhard-3.4.0}/skills/attribute-failure/SKILL.md +0 -0
  73. {howhard-3.2.0 → howhard-3.4.0}/skills/howhard/references/hosts.md +0 -0
  74. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/__main__.py +0 -0
  75. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/config.py +0 -0
  76. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/data/context.toml +0 -0
  77. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/data/default_config.toml +0 -0
  78. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/files.py +0 -0
  79. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/llm.py +0 -0
  80. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/memory.py +0 -0
  81. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/native.py +0 -0
  82. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/retrieval.py +0 -0
  83. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/state.py +0 -0
  84. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/validation.py +0 -0
  85. {howhard-3.2.0 → howhard-3.4.0}/src/howhard/writes.py +0 -0
  86. {howhard-3.2.0 → howhard-3.4.0}/src/howhard.egg-info/dependency_links.txt +0 -0
  87. {howhard-3.2.0 → howhard-3.4.0}/src/howhard.egg-info/entry_points.txt +0 -0
  88. {howhard-3.2.0 → howhard-3.4.0}/src/howhard.egg-info/requires.txt +0 -0
  89. {howhard-3.2.0 → howhard-3.4.0}/src/howhard.egg-info/top_level.txt +0 -0
  90. {howhard-3.2.0 → howhard-3.4.0}/tests/conftest.py +0 -0
  91. {howhard-3.2.0 → howhard-3.4.0}/tests/test_cli.py +0 -0
  92. {howhard-3.2.0 → howhard-3.4.0}/tests/test_configured_candidates.py +0 -0
  93. {howhard-3.2.0 → howhard-3.4.0}/tests/test_context.py +0 -0
  94. {howhard-3.2.0 → howhard-3.4.0}/tests/test_current_contract.py +0 -0
  95. {howhard-3.2.0 → howhard-3.4.0}/tests/test_execution_accounting.py +0 -0
  96. {howhard-3.2.0 → howhard-3.4.0}/tests/test_fast_reranking.py +0 -0
  97. {howhard-3.2.0 → howhard-3.4.0}/tests/test_measurement_corrections.py +0 -0
  98. {howhard-3.2.0 → howhard-3.4.0}/tests/test_memory.py +0 -0
  99. {howhard-3.2.0 → howhard-3.4.0}/tests/test_native_startup.py +0 -0
  100. {howhard-3.2.0 → howhard-3.4.0}/tests/test_portable_core.py +0 -0
  101. {howhard-3.2.0 → howhard-3.4.0}/tests/test_request_dependencies.py +0 -0
  102. {howhard-3.2.0 → howhard-3.4.0}/tests/test_retrieval_config.py +0 -0
  103. {howhard-3.2.0 → howhard-3.4.0}/tests/test_rule_benchmark.py +0 -0
  104. {howhard-3.2.0 → howhard-3.4.0}/tests/test_semantic_cli.py +0 -0
  105. {howhard-3.2.0 → howhard-3.4.0}/tests/test_skill_workflow.py +0 -0
  106. {howhard-3.2.0 → howhard-3.4.0}/tests/test_storage.py +0 -0
  107. {howhard-3.2.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.2.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.2.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,48 @@
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
+
34
+ ## 3.3.0 — 2026-11-16
35
+
36
+ - Separate active execution duration from passive queue wait with optional
37
+ `active_seconds` and `queue_wait_seconds` across `observe`, `--measurement-corrections`,
38
+ `howhard-usage-manifest-v1` / `howhard-execution-usage-v1`, `evidence`, and `report`,
39
+ scoring forecasted active `seconds` against `effective_active_seconds`, calibrating
40
+ empirical active duration and log-normal right-tail variance (`exp(mu + sigma^2 / 2)`)
41
+ in `J`, `cost_sd`, and Thompson `sample()`, preventing slow `clean` runs with severe
42
+ active-duration overruns from prematurely capping capability `upper` (`P_timely`), and
43
+ versioning new receipts as `howhard-decision-v8` (`howhard-semantic-v5`,
44
+ `howhard-capability-v3`) while preserving frozen `howhard-decision-v7` validation and
45
+ replay (#99).
46
+
5
47
  ## 3.2.0 — 2026-11-14
6
48
 
7
49
  - Separate actual session money cost from list-price quota credit with optional
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: howhard
3
- Version: 3.2.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
@@ -29,9 +29,15 @@ includes a reliable cell when one exists. If no cell reaches that target, the ta
29
29
  is unattainable within this inventory and cannot anchor the band. "No reliable cell" is
30
30
  then an explicit case: the anchor is the lower cut, and the gain cut alone, measured
31
31
  against the best attained probability, ends the band. The upper cut never falls back
32
- to the strongest cell merely because the target is unmet. Stronger cells remain
33
- reachable through stronger-only widening. Price, retry cost, and accepted-result silent
34
- risk belong to stage 2.
32
+ to the strongest cell merely because the target is unmet. To prevent slow, high-thrash
33
+ clean runs from prematurely pruning faster stronger cells as overpowered before stage 2
34
+ can compare time, the upper cut also checks a monotone timely-clearing posterior
35
+ `P_timely`: clean precedents whose effective active duration exceeds `1.5x` their
36
+ decision forecast or faster stronger clean precedents receive reduced timely-clearing
37
+ strength (`(1.5 / overrun_ratio)^2`), keeping `hi = max(hi_clear, hi_timely)` wide enough
38
+ for `J` to evaluate faster stronger cells without counting internal tool exit codes.
39
+ Stronger cells remain reachable through stronger-only widening. Price, retry cost, and
40
+ accepted-result silent risk belong to stage 2.
35
41
 
36
42
  The order assumes a useful scalar approximation to the demands of this task. Related
37
43
  tasks and noisy outcomes do not establish a universal ranking, causal explanation,
@@ -75,7 +81,10 @@ An explicit `cause=capability` retains that strength; depth/unrecorded failures
75
81
  half strength. For those otherwise unattributed failures, an explicit
76
82
  `capability_caused=false` assertion in the note gives zero threshold evidence. Ordinary
77
83
  prose is not interpreted as a causal label. Recorded cause takes precedence over a
78
- 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.
79
88
 
80
89
  Cross-model order updates use the same marginal threshold likelihood with an initial
81
90
  normalized order-distance penalty. Deterministic improving cross-model swaps preserve effort
@@ -142,7 +151,7 @@ memories have no historical predictive credit; unchanged overrides earn no expos
142
151
  Amendments replace the effective outcome and score the original exposure once.
143
152
 
144
153
  For every forecasted cell, compare the threshold posterior's `P_clear` with stage 2's
145
- 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,
146
155
  without changing stage-2 selection. After the actual outcome, compare the frozen binary
147
156
  log losses and report which reader was closer, including ties.
148
157
 
@@ -153,12 +162,14 @@ retain the selected cell's original classification and position. Excluded cells
153
162
  never ran contribute no outcome. Reported rates are descriptive diagnostics.
154
163
 
155
164
  Configuration defaults and validation are in [configuration](configuration.md).
156
- Decision v6 receipts freeze the full filter, expert priors, task-specific order,
157
- probabilities, band, widening, disagreement data, fine forecasts, and accepted-result
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.
165
+ Decision v9 (and persisted v8) receipts freeze the full filter, expert priors, task-specific order,
166
+ clearing and timely-clearing probabilities, band, widening, disagreement data, fine
167
+ forecasts, and accepted-result selection. Newly aggregated capability blocks carry
168
+ `format = "howhard-capability-v3"`, require geometric overpowered-tail expert priors, and
169
+ record `P_timely` alongside precedent active-duration overrun metadata. Persisted decision
170
+ v7 receipts carrying `"howhard-capability-v2"` or `"howhard-capability-v1"` remain valid
171
+ for loading, feedback, belief replay, and reporting under their frozen version rules (when
172
+ v1 expert priors uniformly match either the legacy linear overpowered tail or the
173
+ geometric overpowered tail). Older decision formats v1–v6 remain inspectable as raw
174
+ artifacts but cannot supply new receipt-bound feedback or predictive scores; old
175
+ observation rows remain evidence.
@@ -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,26 +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 and draws outcome probabilities using an
56
- evidence-calibrated Dirichlet. The concentration uses the maximum of between-expert
57
- variance, squared envelope width divided by `3.92²`, and
58
- `p*(1-p)/(prior_strength + expert_evidence_count + 1)`. Moment-matching gives
59
- `p*(1-p)/variance - 1`; take the most conservative outcome and apply configured bounds.
60
- Agreeing, well-observed experts tighten; weak priors and disagreement stay wider.
61
- Selection admits exploration only inside both the mean-J fraction and a delta-method
62
- cost-uncertainty band. Receipts retain concentrations, evidence counts, variance sources,
63
- the seed and the reason for a sampled non-best choice. Tokens and time come directly from the forecast.
64
- `summary` returns the same means and envelope without sampling a selection. A fixed
65
- seed 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.
66
113
 
67
114
  Loud attempts are retried on the same cell until a non-loud result is accepted.
68
115
  `1/(1-P_loud)` charges the expected attempts; `C_loud` is extra detection/rework overhead
@@ -71,11 +118,17 @@ a near-certain loud failure finite but very costly. Retry-on-another-cell is not
71
118
 
72
119
  If the cap is unmet after stronger-only capability widening, no expert or probability
73
120
  sample is drawn. `flag-review` chooses the minimum mean J; `lowest-bound` chooses the
74
- 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
75
122
  review. `exploration.reason` records `disabled-cap-unmet`. Risk-class `explore_within`
76
- can further tighten the default sampling band; it cannot permit exploration outside
77
- the uncertainty-supported band. Cheaper alternatives include signed cost
78
- 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.
79
132
 
80
133
  ## Prices and measurements
81
134
 
@@ -85,9 +138,14 @@ unknown values stay null, and `cost_policy` labels the partial risk/time compari
85
138
  Fully priced inventories with a uniform rate basis use the full objective. Candidate
86
139
  `usd_per_mtok` and `rate_card` rates measure list-price quota credit; they do not
87
140
  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.
89
- Actual `tokens`, `seconds` and `cost_usd` remain null unless measured. Observations
90
- update both the threshold reader and shared predictive evidence from one stored row.
141
+ conversion. Tokens include cached/uncached input and output; T is calibrated active hours.
142
+ Actual `tokens`, `seconds`, optional `active_seconds` and `queue_wait_seconds`, and
143
+ `cost_usd` remain null unless measured. When both `active_seconds` and `queue_wait_seconds`
144
+ are supplied and `seconds` is omitted, `seconds` is derived as their sum; when all three
145
+ are supplied, `abs((active_seconds + queue_wait_seconds) - seconds) <= 1e-6` is enforced.
146
+ `effective_active_seconds(row)` uses `active_seconds` when non-null and falls back to
147
+ scalar `seconds` otherwise. Observations update both the threshold reader and shared
148
+ predictive evidence from one stored row.
91
149
 
92
150
  An optional candidate `credit_budget` object enforces hard scheduling feasibility against
93
151
  forecasted `needed_credit_usd`, independently of the session money cost. It requires
@@ -113,7 +171,10 @@ Execution accounting is evidence about an actual invocation, independent of its
113
171
  An optional `execution_usage` envelope (`howhard-execution-usage-v1`) belongs to the
114
172
  existing observation store; no second ledger is created. `usage collect --manifest FILE`
115
173
  reads only explicitly owned artifacts with an explicit adapter version and execution
116
- span. It never discovers transcripts, retains prompt/code text, or contacts providers.
174
+ span, and accepts optional finite nonnegative `seconds`, `active_seconds`, and
175
+ `queue_wait_seconds` fields (deriving `seconds` when both breakdown fields are given and
176
+ reconciling within `1e-6` when all three are present, independently of token telemetry
177
+ completeness). It never discovers transcripts, retains prompt/code text, or contacts providers.
117
178
  `usage attach EXECUTION_ID --manifest FILE --id AMENDMENT_ID` appends a measurement
118
179
  correction after the outcome is durable. Failed collection leaves that outcome intact;
119
180
  retry the same execution once with the same amendment ID, then report the unavailable
@@ -175,7 +236,9 @@ when every segment has its authoritative receipt; partial tokens alone do not ma
175
236
  known bill unknown. Subscription execution
176
237
  may have no per-run billed charge. Measured tokens do not require prices. Historical
177
238
  `cost_usd` retains an unspecified basis and is never relabeled billed. Reports show these
178
- bases separately and preserve unknown coverage instead of treating missing values as zero.
239
+ bases separately, summarize `seconds`, `active_seconds`, `queue_wait_seconds`, and
240
+ `effective_active_seconds` coverage in `worker_time` and `execution_accounting.duration`,
241
+ and preserve unknown coverage instead of treating missing values as zero.
179
242
 
180
243
  Native candidates may provide an explicit versioned `rate_card` with source, effective
181
244
  date, provider/model/tier, credit-rate basis and category rates in USD per million tokens.
@@ -203,10 +266,11 @@ Every JSONL row requires these base keys:
203
266
  | `model` | Concrete id from the registry |
204
267
  | `effort` | Exact registered effort/control identity |
205
268
  | `observed_at` | ISO timestamp with timezone |
206
- | `outcome` | clean, loud or silent |
207
- | `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` |
208
271
  | `tokens` | Nonnegative integer or null |
209
272
  | `seconds`, `cost_usd` | Finite nonnegative number or null |
273
+ | `active_seconds`, `queue_wait_seconds` | Optional finite nonnegative number or null; reconciled with `seconds` within `1e-6` |
210
274
  | `note` | String, possibly empty |
211
275
  | `amends` | Earlier row id or null |
212
276
 
@@ -231,21 +295,28 @@ Disk duplicate rows remain errors. Errors name the file, line and key.
231
295
  Original rows require `task_text`, `project_context` and `context_encoder` together,
232
296
  with optional `decision_id`. Empty task text or null project context represents an
233
297
  explicitly unknown input; missing fields are refused. Every row requires `observed_at`.
234
- Amendments carry null measurements/cost and correct an outcome to clean, loud or silent,
235
- 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
236
305
  `model_default` efforts are refused; no context or control is inferred retrospectively.
237
306
  Chains replace the original run's effective outcome and cause, counting that run once
238
- and retaining its original ID, decision, cell, task text, project snapshot, project,
239
- 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
240
309
  historical context through the observation API. Targets within a file must precede their amendments.
241
310
  Across files, targets must exist, have dates no later than their amendments, and form an
242
311
  acyclic dependency graph. Dependency ordering keeps amendments valid when flushing moves
243
312
  them into the first log ahead of a target in an additional log.
244
313
 
245
314
  An amendment may additionally carry `measurement_corrections`, a nonempty object with
246
- only `tokens`, `seconds`, `cost_usd` and/or `execution_usage`. Values follow the corresponding base-field
247
- types and ranges; null explicitly clears a value to unknown. Original rows refuse this
248
- field, and ordinary amendment `tokens`, `seconds` and `cost_usd` must still be null.
315
+ only `tokens`, `seconds`, `active_seconds`, `queue_wait_seconds`, `cost_usd` and/or `execution_usage`. Values follow the corresponding base-field
316
+ types and ranges; null explicitly clears a value to unknown. Supplying both `active_seconds`
317
+ and `queue_wait_seconds` without `seconds` updates `seconds` to their sum, and effective
318
+ rows must still satisfy the `1e-6` duration breakdown constraint. Original rows refuse this
319
+ field, and ordinary amendment `tokens`, `seconds`, `active_seconds`, `queue_wait_seconds` and `cost_usd` must still be null.
249
320
  For example, `Engine.observe(..., amends="run-id", measurement_corrections={"tokens": 100,
250
321
  "cost_usd": None})` replaces only those effective values. Unlisted measurements retain
251
322
  their current effective values across a chain. Supply the intended current outcome/cause
@@ -281,8 +352,13 @@ or memory writes. All receipts require that identity and their native inventory/
281
352
  policy. The resolved state subtree is excluded from capture and
282
353
  `project.read`, including symlink aliases; a state root equal to or containing the capture
283
354
  root is refused. Prepared calling-agent requests bind the worktree and reject sibling
284
- retrieve/decide. Requests use `howhard-agent-request-v5` and receipts use
285
- `howhard-decision-v7`, with required capability and accepted-result selection state.
355
+ retrieve/decide. Requests use `howhard-agent-request-v5` and new receipts use
356
+ `howhard-decision-v9` (`howhard-semantic-v6` / `semantic-reader-v7`,
357
+ `howhard-capability-v3`), with required capability and accepted-result selection state.
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`,
360
+ `howhard-capability-v1` or `howhard-capability-v2`) continue to load, validate, accept
361
+ feedback, and participate in belief replay and reporting under their frozen version rules.
286
362
  Receipts v1–v6 remain recognizable as historical store entries but are not replayed as
287
363
  new decisions; prepare a fresh request and decision to attach new feedback.
288
364
  Frozen-receipt observations and learning share the store across that project's worktrees.
@@ -298,9 +374,12 @@ returns a typed conflict and refreshed request; see [concurrent clients](concurr
298
374
  Calling-agent submissions are audited with unknown external
299
375
  inference costs and latency rather than being counted as free provider calls.
300
376
 
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
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
380
+ `howhard-decision-v7` (`howhard-semantic-v4`, `howhard-capability-v1`/`v2`) receipts
381
+ remain valid under their frozen rules; v1–v6 receipts and older requests are refused for
382
+ new execution feedback and excluded from replay/report scoring. Existing raw observations
304
383
  and semantic memories remain stored. Old posterior/prior artifacts are unused and left
305
384
  untouched. Removed interfaces include `--llm`, `HOWHARD_LLM`, `--cache`, `Engine(cache_path=...)`,
306
385
  `fit`, posterior/prior attributes, `export-prior`, `import-prior`, and prior/cache/transfer
@@ -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
 
@@ -131,8 +131,10 @@ do not dilute the selected evidence. See the [retrieval contract](retrieval.md).
131
131
 
132
132
  For the cell actually executed, the system compares each pre-recorded expert forecast
133
133
  with the independent no-memory LLM forecast. Log probability ratios for clean/loud/silent outcomes,
134
- plus broad log-normal resource scores when measurements are present, accumulate into
135
- tempered predictive weights. Older exposures are mildly discounted so weights can adapt.
134
+ plus broad log-normal resource scores for tokens and `effective_active_seconds` (`active_seconds`
135
+ when measured, otherwise scalar `seconds`) when measurements are present, accumulate into
136
+ tempered predictive weights. Forecasted `seconds` explicitly estimates active execution
137
+ duration excluding external queue wait. Older exposures are mildly discounted so weights can adapt.
136
138
  All scales and priors ship in `data/semantic.toml`; users do not tune them.
137
139
 
138
140
  Only explicit, changed memory overrides earn exposure. Unspecified/unretrieved cells
@@ -144,17 +146,33 @@ also scale these updates.
144
146
  These are approximate predictive-evidence weights, not probabilities that statements
145
147
  are true and not an exact posterior over all possible natural-language memories.
146
148
  They measure predictive support and do not establish causal explanations. The LLM's
147
- 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
148
150
  original run's forecasts against its effective result once, replacing its earlier score
149
- 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
150
158
  weight still apply; an amendment does not create a new forecast exposure.
151
159
 
152
- Selection samples the LLM and memory experts and retains the cost objective. Intervals
153
- use the weighted forecast envelope, expanded to contain its weighted mean. The silent
154
- cap checks this envelope directly, with no fitted statistical floor. Tiny-weight
155
- pessimistic experts do not automatically veto every cell. This is a heuristic envelope,
156
- not a calibrated risk guarantee. Results identify the interval method and preserve the
157
- 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>`.
158
176
 
159
177
  ## Writer, failures and replay
160
178
 
@@ -180,9 +198,13 @@ failure leaves the outcome durable and does not create a second execution.
180
198
  Routing seeds reproduce selection given recorded forecasts. They do not make fresh
181
199
  LLM calls deterministic. Cached forecasts and content-addressed receipts support replay;
182
200
  operational timing/cache metadata may differ between invocations.
183
- Receipts use `howhard-decision-v7` with capability and accepted-result selection state.
184
- Requests use `howhard-agent-request-v5` and semantic state uses `howhard-semantic-v4`. Older
185
- decision receipts v1–v6 remain in the store but are excluded from predictive scoring; raw
201
+ New receipts use `howhard-decision-v9` with capability (`howhard-capability-v3`) and
202
+ accepted-result selection state. Requests use `howhard-agent-request-v5` and semantic state
203
+ uses `howhard-semantic-v6` (`semantic-reader-v7`). Persisted `howhard-decision-v8`
204
+ (`howhard-semantic-v5`, `howhard-capability-v3`) and `howhard-decision-v7`
205
+ (`howhard-semantic-v4`, `howhard-capability-v1`/`v2`) receipts continue to load, validate,
206
+ accept feedback, and participate in belief replay and reporting under their frozen rules.
207
+ Older decision receipts v1–v6 remain in the store but are excluded from predictive scoring; raw
186
208
  evidence already linked to them remains intact.
187
209
 
188
210
  Native host selection supplies `--candidates FILE` to `context` or `pick` before any
@@ -262,11 +284,16 @@ and evidence-count machinery serves both, normalized over each reader's particip
262
284
  The threshold posterior applies the retrieved censored likelihood to the weighted
263
285
  stage-1 prior; it has no independent observation store or feedback path.
264
286
 
265
- Fine selection charges expected same-cell retries to an accepted result. Its silent
266
- cap uses joint-expert accepted-result defect ratios. Sampling uses envelope/spread and
267
- recorded expert exposures to calibrate bounded Dirichlet concentration. Mean-cost and
268
- cost-uncertainty bands restrict exploration; an unmet cap disables all draws and
269
- requires review. Receipts preserve the formula, constants, calibration and explanation.
270
- A consistency disagreement compares raw stage-2 `P_clean` with stage-1 `P_clear`; it
287
+ Fine selection charges expected same-cell retries to an accepted result and calibrates
288
+ active duration from expert `seconds` forecasts plus shrunk `effective_active_seconds`
289
+ log-residuals on similar retrieved executions, pricing the log-normal right-tail
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
296
+ preserve the formula, constants, calibration and explanation.
297
+ A consistency disagreement compares the raw stage-2 clean forecast (before outcome updates) with stage-1 `P_clear`; it
271
298
  does not substitute the accepted-result risk ratio or silently alter the chosen cell.
272
299
  See [capability filtering](capability.md) and {ref}`selection <accepted-result-selection>`.