humanish 0.87.0 → 0.88.0

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.
package/dist/run.d.ts CHANGED
@@ -844,7 +844,7 @@ export interface RunCostLine {
844
844
  modelId?: string;
845
845
  /** null = NOT MEASURED / no rate; never coerced to 0. */
846
846
  estimatedCostUsd: number | null;
847
- reason?: "no_rate_for_model" | "no_rate_for_desktop" | "no_token_usage" | "no_duration" | "closing_usage_unreported" | "no_desktop_resources" | "desktop_lifetime_incomplete";
847
+ reason?: "no_rate_for_model" | "no_rate_for_desktop" | "no_token_usage" | "no_duration" | "closing_usage_unreported" | "interaction_usage_unreported" | "no_desktop_resources" | "desktop_lifetime_incomplete";
848
848
  /** Pricing provenance date; non-null iff estimatedCostUsd is non-null. */
849
849
  ratesAsOf: string | null;
850
850
  source?: string;
@@ -15,6 +15,9 @@ export interface TelemetryProperties {
15
15
  /** One of humanish's OWN error codes (`HUMANISH_*`), never a message. Which failure ends a
16
16
  * first run is the question the funnel exists to answer. */
17
17
  errorCode?: string;
18
+ /** Finite result categories and recorded stop causes; never raw errors or lane details. */
19
+ diagnosticCategory?: string;
20
+ stopCause?: string;
18
21
  }
19
22
  export interface TelemetryState {
20
23
  enabled: boolean;
package/dist/telemetry.js CHANGED
@@ -10,6 +10,7 @@
10
10
  // no persona or mission text, no run ids, no evidence, no key values, no key names. A study's
11
11
  // subject is the adopter's product and often unannounced; leaking a lab id would leak a roadmap.
12
12
  // The allowlist below is the whole vocabulary — anything not on it cannot be sent by construction.
13
+ import { isCuaDiagnosticCategory, isCuaDiagnosticStopCause } from "./cua-diagnostics.js";
13
14
  import { randomUUID } from "node:crypto";
14
15
  import { mkdir, readFile, writeFile } from "node:fs/promises";
15
16
  import { homedir } from "node:os";
@@ -181,6 +182,10 @@ export function buildPayload(args) {
181
182
  properties.exit_code = given.exitCode;
182
183
  if (given.errorCode !== undefined && OWN_ERROR_CODE.test(given.errorCode))
183
184
  properties.error_code = given.errorCode;
185
+ if (isCuaDiagnosticCategory(given.diagnosticCategory))
186
+ properties.diagnostic_category = given.diagnosticCategory;
187
+ if (isCuaDiagnosticStopCause(given.stopCause))
188
+ properties.stop_cause = given.stopCause;
184
189
  return { event: args.event, distinct_id: args.anonymousId, properties };
185
190
  }
186
191
  /** Our own codes only. A provider's or the OS's message is free text and never travels. */
@@ -239,10 +244,19 @@ export function deriveStudyFacts(result) {
239
244
  const error = asRecord(r.error);
240
245
  if (typeof error?.code === "string" && OWN_ERROR_CODE.test(error.code))
241
246
  facts.errorCode = error.code;
247
+ const cuaResult = r.schema === "humanish.cua-lab-result.v2";
248
+ const diagnostics = cuaResult ? asRecord(r.diagnostics) : undefined;
249
+ if (isCuaDiagnosticCategory(diagnostics?.category))
250
+ facts.diagnosticCategory = diagnostics.category;
251
+ if (isCuaDiagnosticStopCause(diagnostics?.stopCause))
252
+ facts.stopCause = diagnostics.stopCause;
242
253
  const session = asRecord(r.session);
243
254
  const laneSummary = asRecord(r.laneSummary);
244
255
  let outcome;
245
- if (laneSummary && typeof laneSummary.total === "number" && typeof laneSummary.passed === "number" && laneSummary.total > 1) {
256
+ if (cuaResult && facts.mode === "dry-run") {
257
+ outcome = r.ok === true ? "contract_proof_only" : "error";
258
+ }
259
+ else if (laneSummary && typeof laneSummary.total === "number" && typeof laneSummary.passed === "number" && laneSummary.total > 1) {
246
260
  outcome = laneSummary.passed === laneSummary.total ? "all_passed"
247
261
  : laneSummary.passed === 0 ? "none_passed"
248
262
  : "some_passed";
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,yFAAyF;AACzF,EAAE;AACF,iGAAiG;AACjG,oGAAoG;AACpG,iGAAiG;AACjG,EAAE;AACF,iGAAiG;AACjG,oGAAoG;AACpG,8FAA8F;AAC9F,iGAAiG;AACjG,mGAAmG;AAEnG,OAAO,EAAE,UAAU,EAAE,MAAM,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,WAAW,UAAU,EAAE;YACtC,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;YAC/C,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;gBACnB,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE,OAAO,CAAC,KAAK;gBACpB,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,UAAU,EAAE,OAAO,CAAC,UAAU;aAC/B,CAAC;YACF,MAAM,EAAE,UAAU,CAAC,MAAM;SAC1B,CAAC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACP,+DAA+D;IACjE,CAAC;YAAS,CAAC;QACT,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;AACH,CAAC"}
@@ -0,0 +1,54 @@
1
+ # Adapter admission limits
2
+
3
+ Library callers can throw `CuaAdmissionLimitError` from a custom `CuaProvider`
4
+ or the `fetchFn` supplied to `createOpenAiResponsesProvider` when a configured
5
+ local control limit refuses a request **before provider dispatch**:
6
+
7
+ ```ts
8
+ import { CuaAdmissionLimitError, createOpenAiResponsesProvider } from "humanish";
9
+
10
+ const provider = createOpenAiResponsesProvider({
11
+ apiKey,
12
+ fetchFn: async (url, init) => {
13
+ if (localLimitReached()) {
14
+ await recordLocalAdmissionRefusal();
15
+ throw new CuaAdmissionLimitError();
16
+ }
17
+ return transport(url, init);
18
+ }
19
+ });
20
+ ```
21
+
22
+ The example's admission check, local receipt and transport belong to the caller.
23
+ The error accepts no message or payload. Import it from the same Humanish
24
+ installation as the provider and loop: a plain error with the same name or text
25
+ does not activate the contract. Do not use it for invalid configuration, a
26
+ provider rejection, or an already dispatched request with unknown outcome or
27
+ usage. An unknown prior request stays unknown even if a later call is refused.
28
+
29
+ A stalled interaction or an OpenAI transport retry may have consumed additional
30
+ tokens without reporting usage. The trace then retains
31
+ `interactionUsageIncomplete: true`; its cost summary keeps the known token
32
+ estimate and adds an unmeasured `interaction_usage_unreported` line. A later
33
+ successful retry or local refusal does not remove that uncertainty. Custom
34
+ providers can expose a latched `interactionUsageIncomplete` boolean for hidden
35
+ interactive attempts. Absence of the field does not attest complete billing.
36
+
37
+ The OpenAI provider does not retry this explicit refusal. The CUA loop records
38
+ `incomplete`, `budget_reached` and `stopCause: adapter_limit`, with a fixed
39
+ notice. It does not record another successful turn, usage, action or closing
40
+ request. Previous actions, captures, usage and observed task outcomes remain
41
+ available for review. Observer labels the ending “adapter admission limit.”
42
+ Older generic error recordings remain unchanged.
43
+
44
+ If a structured task outcome already ended interaction and the optional closing
45
+ report is refused before dispatch, that task outcome remains intact. The report
46
+ is `skipped` and `debrief.usageReported` is absent, because this declaration says
47
+ no provider request was sent. This does not invent zero usage or settle any
48
+ earlier unknown cost.
49
+
50
+ Humanish records the adapter's declaration; it does not independently attest
51
+ transport behavior or provider billing. Retain local limit/admission receipts
52
+ when auditing those facts. Keep credentials, request bodies and provider URLs
53
+ out of such receipts. The contract does not add a manifest request-count cap,
54
+ increase an allowance, or turn a safety limit into participant abandonment.
@@ -88,7 +88,7 @@ responses, but durable run bundles use the public-safe `[target-cwd]` marker.
88
88
  An actor trace may include `stopCause` alongside its unchanged `status`,
89
89
  `completionReason` and verbatim `reason`. Computer-use sessions distinguish
90
90
  `provider_output_limit`, `provider_token_limit`, `time_limit`, `spend_limit`,
91
- `study_spend_limit`, `provider_incomplete`, `provider_status`, and
91
+ `study_spend_limit`, `adapter_limit`, `provider_incomplete`, `provider_status`, and
92
92
  `harness_aborted`. Absence means the route or recording did not retain this
93
93
  precise field; it does not mean the participant finished.
94
94
 
@@ -100,6 +100,13 @@ Participant prose is never used to infer the cause. Study summaries retain the
100
100
  recorded outcome counts while explaining a cause only when the matching traces
101
101
  cover that outcome's count.
102
102
 
103
+ `adapter_limit` records a library adapter's explicit declaration that a configured
104
+ local control limit refused the next request before provider dispatch. It ends
105
+ the interactive session as `incomplete` / `budget_reached`; earlier actions,
106
+ usage and task observations remain intact. It is not independent transport or
107
+ billing attestation, and generic historical errors are not reclassified. See
108
+ [the adapter admission contract](adapter-admission.md).
109
+
103
110
  ## Participant Assignment
104
111
 
105
112
  `streams[].assignment` optionally records the original participant-facing assignment:
@@ -3,7 +3,7 @@
3
3
  Date: 2026-06-02 (current-state note updated 2026-07-14)
4
4
 
5
5
  Status: reference map for the major contracts shipped through source version
6
- `0.87.0`; it is not an exhaustive inventory of command/result envelopes. Exported types,
6
+ `0.88.0`; it is not an exhaustive inventory of command/result envelopes. Exported types,
7
7
  schema constants, parsers, and validators in `src/` are authoritative. Rows
8
8
  marked "reserved" name layering intent only — no code emits or validates them
9
9
  yet. Do not emit a reserved schema.
@@ -1,9 +1,9 @@
1
1
  # Current Goals
2
2
 
3
- Status date: 2026-09-10. Published baseline: `0.87.0`.
3
+ Status date: 2026-09-11. Published baseline: `0.88.0`.
4
4
 
5
5
  This page guides work on current merged source. Published behavior is described
6
- in the [release notes](../release/0.87.0-participant-endings-and-phone-review.md).
6
+ in the [release notes](../release/0.88.0-study-diagnostics.md).
7
7
  The [September 9 history](https://github.com/danielgwilson/humanish/blob/main/docs/goals/current-history-2026-09-09.md)
8
8
  preserves the former status log; its queues do not supersede this page.
9
9
 
@@ -88,7 +88,7 @@ requires decision-equivalent retained evidence and a real deletion branch.
88
88
  No first-party deletion branch has met that gate. Public demonstrations do not
89
89
  substitute for it.
90
90
 
91
- ## Current Program Truth (source `0.87.0`)
91
+ ## Current Program Truth (source `0.88.0`)
92
92
 
93
93
  | Surface | Available in merged source | Remaining boundary |
94
94
  | --- | --- | --- |
@@ -2,7 +2,7 @@
2
2
 
3
3
  Status: public-safe contributor and agent ramp.
4
4
 
5
- Package/source version in this tree: `0.87.0` (2026-09-10). The Observer is phone-usable as a stated requirement (observer/AGENTS.md); interactive primitives start from Base UI. The Observer renderer is the observer/ workspace artifact only; the legacy string-concat renderer was deleted at cutover (#426), and rollback is a version pin to 0.42.0. The containment boundary introduced in
5
+ Package/source version in this tree: `0.88.0` (2026-09-11). The Observer is phone-usable as a stated requirement (observer/AGENTS.md); interactive primitives start from Base UI. The Observer renderer is the observer/ workspace artifact only; the legacy string-concat renderer was deleted at cutover (#426), and rollback is a version pin to 0.42.0. The containment boundary introduced in
6
6
  `0.15.1` remains in force: managed run and output paths bind to validated
7
7
  physical filesystem identities, and stored provider IDs are evidence, not
8
8
  cleanup authority. The bundled OSS meta-lab is dry-run only until
@@ -47,6 +47,10 @@ If a change does not improve one of those loops, it probably belongs elsewhere.
47
47
 
48
48
  ## Current State
49
49
 
50
+ The [0.88.0 release note](../release/0.88.0-study-diagnostics.md) describes
51
+ computer-use CLI diagnostics, explicit local admission limits and retained
52
+ uncertainty when an earlier provider request did not report usage.
53
+
50
54
  The [0.87.0 release note](../release/0.87.0-participant-endings-and-phone-review.md)
51
55
  describes recorded interruption causes, phone playback controls beside fitted
52
56
  captures, and credential and evidence-sharing guidance by execution route.
@@ -0,0 +1,43 @@
1
+ # Humanish 0.88.0: see what ended a study
2
+
3
+ When a computer-use study stops before the task is done, `humanish lab run` now
4
+ shows its diagnostic category and recorded stop cause. Fan-out results retain
5
+ each participant's ending. Different endings remain mixed. Older generic budget
6
+ stops retain an unspecified limit. Successful dry-runs are reported as contract
7
+ previews.
8
+
9
+ New review packets and feedback participant summaries use recorded interruption
10
+ labels. Previously saved review packets keep their original wording.
11
+
12
+ An adapter can use the new `CuaAdmissionLimitError` to declare that its local
13
+ limit refused a request before dispatch. Humanish records **adapter admission
14
+ limit** and ends the interaction without another retry, action or closing
15
+ report. Earlier actions and measured usage remain available. A refusal of an
16
+ optional closing report preserves the already observed task outcome. See the
17
+ [adapter contract](../contracts/adapter-admission.md) for when this signal applies.
18
+
19
+ If an earlier request stalled or had an ambiguous transport outcome, a later
20
+ success or local refusal does not make its missing usage known. The cost summary
21
+ keeps measured token estimates and an explicit unmeasured line. With a spending
22
+ cap, Humanish skips the optional closing report while that usage is uncertain.
23
+
24
+ Install with `npm install -g humanish@0.88.0`. CLI JSON adds optional diagnostics
25
+ without changing the existing status or exit-code contract. Usage telemetry,
26
+ enabled by default, adds two fields with fixed allowed values: diagnostic
27
+ category and stop cause. See [TELEMETRY.md](https://github.com/danielgwilson/humanish/blob/main/TELEMETRY.md)
28
+ for their scope and opt-out controls.
29
+
30
+ ## Verification and limits
31
+
32
+ [Admission-limit checks](https://github.com/danielgwilson/humanish/pull/759)
33
+ cover refusal before and after activity, sanitized error handling, preserved
34
+ outcomes and unknown usage after both successful and refused retries.
35
+ [CLI diagnostic checks](https://github.com/danielgwilson/humanish/pull/758)
36
+ cover previews, mixed endings, missing causes, invalid evidence and telemetry
37
+ allowlists. The required release checks also cover package installation,
38
+ Observer rendering and the website.
39
+
40
+ The admission signal depends on an accurate adapter declaration; it is not a
41
+ provider billing receipt. Existing generic failures keep their recorded
42
+ outcomes. This release does not infer causes from participant prose or establish
43
+ why an older study failed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "humanish",
3
- "version": "0.87.0",
3
+ "version": "0.88.0",
4
4
  "description": "Open-source-safe CLI for persona simulation, observer review, and public-safe feedback drafts.",
5
5
  "author": "Daniel G Wilson <daniel@danielgwilson.com>",
6
6
  "keywords": [