pi-daddy 0.59.0 → 0.60.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.
Files changed (118) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +105 -21
  3. package/contracts/ledger-record/v1/README.md +6 -0
  4. package/dist/executors/activity-session.d.ts +4 -0
  5. package/dist/executors/activity-session.d.ts.map +1 -1
  6. package/dist/executors/activity-session.js +19 -0
  7. package/dist/executors/activity-session.js.map +1 -1
  8. package/dist/executors/child-final.d.ts +2 -0
  9. package/dist/executors/child-final.d.ts.map +1 -1
  10. package/dist/executors/child-final.js +4 -0
  11. package/dist/executors/child-final.js.map +1 -1
  12. package/dist/executors/child-usage.d.ts +129 -0
  13. package/dist/executors/child-usage.d.ts.map +1 -0
  14. package/dist/executors/child-usage.js +202 -0
  15. package/dist/executors/child-usage.js.map +1 -0
  16. package/dist/governance/auto-mode-policy.d.ts +3 -0
  17. package/dist/governance/auto-mode-policy.d.ts.map +1 -1
  18. package/dist/governance/auto-mode-policy.js +18 -2
  19. package/dist/governance/auto-mode-policy.js.map +1 -1
  20. package/dist/governance/operation-artifacts.d.ts +2 -0
  21. package/dist/governance/operation-artifacts.d.ts.map +1 -1
  22. package/dist/governance/operation-artifacts.js +20 -1
  23. package/dist/governance/operation-artifacts.js.map +1 -1
  24. package/dist/governance/operation-replay.d.ts +7 -0
  25. package/dist/governance/operation-replay.d.ts.map +1 -0
  26. package/dist/governance/operation-replay.js +47 -0
  27. package/dist/governance/operation-replay.js.map +1 -0
  28. package/dist/governance/parent-tool-calls.d.ts +31 -0
  29. package/dist/governance/parent-tool-calls.d.ts.map +1 -0
  30. package/dist/governance/parent-tool-calls.js +156 -0
  31. package/dist/governance/parent-tool-calls.js.map +1 -0
  32. package/dist/kernel/child-tools.d.ts +9 -1
  33. package/dist/kernel/child-tools.d.ts.map +1 -1
  34. package/dist/kernel/child-tools.js +25 -5
  35. package/dist/kernel/child-tools.js.map +1 -1
  36. package/dist/kernel/delegate-types.d.ts +26 -0
  37. package/dist/kernel/delegate-types.d.ts.map +1 -1
  38. package/dist/kernel/delegate-types.js.map +1 -1
  39. package/dist/kernel/delegate.d.ts.map +1 -1
  40. package/dist/kernel/delegate.js +19 -1
  41. package/dist/kernel/delegate.js.map +1 -1
  42. package/dist/kernel/dispatch-operation.d.ts +14 -0
  43. package/dist/kernel/dispatch-operation.d.ts.map +1 -1
  44. package/dist/kernel/dispatch-operation.js.map +1 -1
  45. package/dist/kernel/env-names.d.ts +16 -0
  46. package/dist/kernel/env-names.d.ts.map +1 -1
  47. package/dist/kernel/env-names.js +20 -0
  48. package/dist/kernel/env-names.js.map +1 -1
  49. package/dist/kernel/parent-tools.d.ts +174 -0
  50. package/dist/kernel/parent-tools.d.ts.map +1 -0
  51. package/dist/kernel/parent-tools.js +268 -0
  52. package/dist/kernel/parent-tools.js.map +1 -0
  53. package/dist/kernel/propagation.d.ts +1 -1
  54. package/dist/kernel/propagation.d.ts.map +1 -1
  55. package/dist/kernel/propagation.js +5 -0
  56. package/dist/kernel/propagation.js.map +1 -1
  57. package/dist/kernel/replay-safe.d.ts +110 -0
  58. package/dist/kernel/replay-safe.d.ts.map +1 -0
  59. package/dist/kernel/replay-safe.js +121 -0
  60. package/dist/kernel/replay-safe.js.map +1 -0
  61. package/dist/products/dashboard-cli.d.ts.map +1 -1
  62. package/dist/products/dashboard-cli.js +1 -0
  63. package/dist/products/dashboard-cli.js.map +1 -1
  64. package/dist/products/dashboard-render.d.ts +5 -0
  65. package/dist/products/dashboard-render.d.ts.map +1 -1
  66. package/dist/products/dashboard-render.js +25 -0
  67. package/dist/products/dashboard-render.js.map +1 -1
  68. package/dist/products/dashboard-session-client.d.ts +6 -0
  69. package/dist/products/dashboard-session-client.d.ts.map +1 -1
  70. package/dist/products/dashboard-session-client.js.map +1 -1
  71. package/dist/products/episode-report.d.ts +2 -0
  72. package/dist/products/episode-report.d.ts.map +1 -1
  73. package/dist/products/episode-report.js +5 -1
  74. package/dist/products/episode-report.js.map +1 -1
  75. package/extensions/chain-plan.ts +6 -1
  76. package/extensions/child-usage-report.ts +77 -0
  77. package/extensions/dashboard-session-server.ts +12 -0
  78. package/extensions/definition-describe.ts +74 -16
  79. package/extensions/delegate-chain.ts +37 -10
  80. package/extensions/delegation-artifacts.ts +43 -1
  81. package/extensions/delegation-operations.ts +71 -33
  82. package/extensions/delegation.ts +86 -15
  83. package/extensions/execute-child.ts +62 -6
  84. package/extensions/execution-evidence.ts +139 -4
  85. package/extensions/fanout-outcome.ts +4 -1
  86. package/extensions/grants-command.ts +12 -1
  87. package/extensions/grants.ts +23 -4
  88. package/extensions/init-command.ts +1 -1
  89. package/extensions/parent-tool-host.ts +228 -0
  90. package/extensions/parent-tool-proxy.ts +44 -0
  91. package/extensions/public-evidence.ts +8 -2
  92. package/extensions/reload-environment.ts +6 -0
  93. package/extensions/replay-retry.ts +119 -0
  94. package/extensions/run-delegation.ts +77 -12
  95. package/extensions/runtime-snapshot.ts +16 -1
  96. package/extensions/session-report.ts +25 -1
  97. package/extensions/session.ts +9 -0
  98. package/extensions/spawn-summary.ts +72 -3
  99. package/package.json +2 -2
  100. package/src/executors/activity-session.ts +28 -0
  101. package/src/executors/child-final.ts +11 -1
  102. package/src/executors/child-usage.ts +280 -0
  103. package/src/governance/auto-mode-policy.ts +19 -2
  104. package/src/governance/operation-artifacts.ts +21 -1
  105. package/src/governance/operation-replay.ts +70 -0
  106. package/src/governance/parent-tool-calls.ts +191 -0
  107. package/src/kernel/child-tools.ts +39 -9
  108. package/src/kernel/delegate-types.ts +26 -0
  109. package/src/kernel/delegate.ts +17 -1
  110. package/src/kernel/dispatch-operation.ts +11 -0
  111. package/src/kernel/env-names.ts +20 -0
  112. package/src/kernel/parent-tools.ts +342 -0
  113. package/src/kernel/propagation.ts +5 -0
  114. package/src/kernel/replay-safe.ts +182 -0
  115. package/src/products/dashboard-cli.ts +1 -0
  116. package/src/products/dashboard-render.ts +25 -0
  117. package/src/products/dashboard-session-client.ts +2 -0
  118. package/src/products/episode-report.ts +8 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog — pi-daddy
2
2
 
3
+ ## 0.60.0 — 2026-11-18
4
+
5
+ - Independent upgrades keep the shared ledger readable by released consumers. A completed answer followed by idle timeout is retained without another execution. Bound replay-eligible failures retain exact optional owner evidence for coordinators; no eligibility is inferred when running with an older producer.
6
+
7
+ - Delegation no longer offers the model a definition whose `allowed-tools` include a tool without a supported child provider. Since 0.57.0 every delegation to such a definition was refused before any prompt, yet its name still appeared among the available agents. Refusals, permissions and `/grants` are unchanged; `/grants` continues to show the definition as blocked with the reason. Keep that work in the parent, or give the definition supported child tools to make it available again; a definition that declares `delegate_all`, `delegate_chain` or `delegate_describe` also needs `delegate`.
8
+ - `delegate`, `delegate_all` and `delegate_chain` now give the model a short runtime evidence summary (`"version":2`) instead of each child's complete process receipt. A settled child costs about 170 bytes, or about 225 with a Principal operation ID, instead of about 1.9 KB (3.3 KB with an operation). The summary keeps ok, work, control, final, cleanup and incomplete observation state, any timeout, cancellation, spawn-failure or truncation flag, a bounded reason and the operation ID (or execution ID); for a worker that did not exit normally it also keeps the receipt's cause and signal (`cleanup.receipt.reason` when not `worker-exit`, a non-zero `cleanup.receipt.workerSignal`). Complete receipts are unchanged in the tool result details, which Pi keeps in the session file, and opt-in public capture still records them as `runtimeEvidence`; the runtime settlement journal keeps only a receipt's identity and hash, a stable operation's record its path, and the receipt file is in the OS temporary directory. If you parse the model-visible block, accept version 2 and its new introduction, and read receipts from the details or the capture instead. Principal's coordinator texts that ask the model for the "identity-bound receipt" must change when Principal adopts this release: a Principal phase now sees `cleanup.state=settled` and its operation ID, not the receipt (Daddy reports settled only with a matching receipt, and Principal's `complete` rechecks the execution identity).
9
+ - A governed child can now call `scout_research` when its definition and grant name it and it uses the parent's own provider and model: the parent Pi session runs the call under its own permission prompts and returns the text to the child, fenced as untrusted evidence. This makes Scout's `scout-public` definition delegable on Pi versions whose tool calls can run other tools. It is a new path for a sub-agent to use the parent's authority, so it is narrow: only tools on Daddy's fixed allowlist qualify (currently `scout_research` alone); a delegation that names another provider or model, or whose model is not known, is refused before launch and the refusal says why, and after `/model` in the parent a running sub-agent's next call is refused; arguments and results are size-limited, other tool details are not forwarded, a child cannot pass the tool further down, and calls stop when the child ends. The research runs with the parent's model, credentials and Docker, and Scout saves the brief under the parent session, where it becomes the parent's latest saved research. Bookie memory tools stay parent-only. To use `scout-public` from a sub-agent, delegate without a different `model`; set `PI_DADDY_PARENT_TOOLS=0` to keep the previous refusal. Restart Pi after updating.
10
+ - `delegate_describe` now binds the `definitionId` it returns to that agent for the rest of the Pi session. A later `delegate`, `delegate_all` child or `delegate_chain` step that names the agent without `definitionId` uses it, so the ID no longer needs copying; a supplied `definitionId` still wins and is not remembered. If the definition changed since it was described, for example after editing a skill and running `/reload`, the call is refused before anything starts: describe the agent again. Principal phases still need a describe (or the ID) first. `/new`, resume, fork and tree navigation forget what was described. Tool result details carry the ID used and its source (`definitionBinding`, with `source` `supplied` or `remembered`); the ledger schema is unchanged.
11
+ - A delegation's `operation_id` request now covers the selected definition's `definitionId` rather than whether the call supplied one, so an identical retry stays the same request after a `delegate_describe` or tree navigation, and a definition that changed, even only in its frontmatter, is a different request. A completed ordinary operation retained before this release without `definitionId` can still return its exact historical result through the old request digest, without starting another child. The result explicitly says the old full definition identity was not recorded. Changed recorded inputs, active or uncertain operations and foreign workspace/owner records do not qualify. Operations retained with a `definitionId` (every Principal phase) or without an agent keep matching.
12
+ - A session that delegates no longer looks cheap: `delegate`, `delegate_all` and `delegate_chain` report their sub-agents' observed model usage to the Pi session that delegated, so its usage totals, footer and cost include them (on Pi versions that record tool-result usage, including 1.0.4 and 1.5.2). Each model call is counted once, also when a sub-agent delegates further. A sub-agent whose usage could not be read adds nothing, and the result details (`childUsage`) say how many were measured and unmeasured and, in `cost`, what the reported usage cost. Pi also adds the usage of a `scout_research` call the session ran for a sub-agent to that same delegation result, as the session's own usage; the dashboard's child usage line counts `cost`, so it does not show that call as child usage. A child that fails or times out still reports what it used, and so does a delegation that stops with an error after its sub-agents ran, such as a critical-assurance block or a chain stopped at a later step; the error text is unchanged. A reused operation reports nothing again. A sub-agent stopped while its own delegation was waiting counts that delegation as unmeasured, and a figure no delegation could plausibly reach (over 1e13 tokens, $1e8 or 1e7 executions in one value) is counted as unmeasured instead of added. Lifecycle records and `pi-daddy report` still hold each sub-agent's own usage; the report and the dashboard's ledger view now say it is already in the delegating session's totals. Compare the two, do not add them.
13
+ - A delegated child whose tools only read (`read`, `grep`, `find`, `ls`, plus any context handoff), such as an `investigate` definition, is now run once more automatically when its first attempt fails without answering: it exited without a final answer (a crash, or a process killed from outside the tool call, for example by `kill` or the OOM killer), timed out, could not start for lack of system resources, or its model request failed. The second attempt has the same task, definition, model and context, a fresh process, and only the time left before the first attempt's deadline. It happens at most once and only when the parent's tool call did not cancel the child, its cleanup settled, no approval was spent on it, it has no `operation_id` and it runs as a subprocess (not in a Herdr pane); everything else still stops and reports the failure. The evidence summary says `"retry":{"attempts":2,"firstFailure":"…"}`; the result details keep the first attempt complete, the existing result details link the second execution to the first without changing the shared ledger contract, and both attempts' model usage is reported to the Pi session that delegated. A failure with an `operation_id` that would otherwise have been retried is not retried by Daddy but returned with `"replayable":true`, so the coordinator that owns the operation can retry it once under a new one; Principal does. `delegate_describe` (`replaySafe`), `/grants` and the startup summary mark replay-safe definitions and say when this session does not retry them (Herdr executor, retry switched off, operation-bound delegations). Set `PI_DADDY_REPLAY_RETRY=0` to turn the retry and the `replayable` mark off. Released ledger readers remain compatible; retry linkage stays in result details.
14
+
15
+ ## 0.59.1 — 2026-11-17
16
+
17
+ - Startup no longer reports unobserved extension tools as missing packages. It shows that tool availability is still being checked and refreshes the summary after the first native tool inventory, including after `/new`.
18
+ - A tool available to the parent Pi session is not automatically available to a delegated child. The summary now identifies unsupported child delivery and directs that work to the parent; grants, gates and child-provider restrictions are unchanged.
19
+ - Added reproducible narrow/wide terminal fixtures for current work, genuine permission requests, saved open choices, memory topics and partial research. These check the actual renderer without model calls; human usability and live producer health still require their own observation.
20
+
3
21
  ## 0.59.0 — 2026-11-16
4
22
 
5
23
  - Compatible workflow extensions can inspect an exact older operation after an update or `/new` without adopting its owner or repeating work. Saved finals retain their original evidence; a confirmed pre-launch stop remains distinct from missing or interrupted records. Current access and cleanup are checked separately, and absent history never authorizes a retry.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pi-daddy
2
2
 
3
- Source target: **0.56.3**. Before installation, verify that `npm view pi-daddy version` and Git tag `v0.56.3` both resolve to this release.
3
+ Source target: **0.60.0**. Before installation, verify that `npm view pi-daddy version` and Git tag `v0.60.0` both resolve to this release.
4
4
 
5
5
  **Capability governance and coordination for [pi](https://github.com/badlogic/pi-mono)'s multi-level agent system.**
6
6
  An orchestrator grants each sub-agent a deliberate subset of what it holds and withholds the rest. A sub-agent may
@@ -15,7 +15,10 @@ This file is the product description, present tense. If code and this file disag
15
15
  Native delegation accepts an optional stable `operation_id`. The session owner admits one
16
16
  matching request; a concurrent or later duplicate returns its existing execution reference.
17
17
  It does not launch another child, replay a completed mutation, or grant approval. A changed
18
- request under the same ID refuses. An intentional retry needs a new attempt after the
18
+ request under the same ID refuses. The request covers the selected definition's `definitionId`, not
19
+ whether the call supplied it, `delegate_describe` filled it in or it was omitted: a describe or tree
20
+ navigation between identical calls leaves it the same request, and a changed definition makes it a
21
+ different one. An intentional retry needs a new attempt after the
19
22
  previous operation is proven settled or never started; uncertainty stays blocked.
20
23
  Principal 4.12.0 introduced automatic operation IDs and exact candidate/report references for this contract.
21
24
 
@@ -46,9 +49,11 @@ Open **1 Overview** to see what needs your attention, what Pi is doing and the l
46
49
 
47
50
  Use the arrow keys to select an item and **Enter** to open it. A side-by-side preview appears on Overview, Tasks and Reviews when the pane is at least 92 columns wide. Press **x** for an expanded view from 82 columns. **Esc** returns to your selection. Press **r** for a session recap, **m** for models or **v** for package versions. Standalone ledger views and older owners retain the legacy display.
48
51
 
49
- When a decision is pending, Overview directs you to the main Pi chat or to Reviews. Bookie handoffs show the command and the output to select. The Tools section describes Bookie and Scout using the latest available observations. A package can be installed while its live status is unknown. After a disconnect the dashboard labels the last known state and withdraws current permission requests.
52
+ When a decision is pending, Overview directs you to the main Pi chat or to Reviews. Bookie handoffs show the command and the output to select. **Memory** and **Research** show current availability separately from saved topics, findings and gaps. Select either row and press **Enter** to browse the available content. Older producers retain their status-only display. A package can be installed while its live status is unobserved. After a disconnect the dashboard labels the last known state and withdraws current permission requests.
50
53
 
51
- With Auto on in a trusted interactive project, a compatible Bookie can save and recall routine notes for the current folder. Look for **Bookie memory · Ready in this folder** under Overview → Tools. With a Bookie version that reports saved choices, Overview and Tasks list them under **Open choices**. Select a question and press **Enter** to see its alternatives. A supported recommendation includes the reason and evidence. Pick an option or **Write my own answer**, check the answer, then save it in Bookie. **Decide later** leaves the question open. After `/new` in the same folder, Pi can recall the decision and the other questions stay open. Older Bookie versions can show questions in read-only mode. Turning Auto off withdraws automatic memory access and hides those choices.
54
+ With Auto on in a trusted interactive project, a compatible Bookie can save and recall routine notes for the current folder. Look for **Bookie memory · Ready in this folder** under Overview → Memory. With a Bookie version that reports saved choices, Overview and Tasks list them under **Open choices**. Select a question and press **Enter** to see its alternatives. A supported recommendation includes the reason and evidence. Pick an option or **Write my own answer**, check the answer, then save it in Bookie. **Decide later** leaves the question open. After `/new` in the same folder, Pi can recall the decision and the other questions stay open. Older Bookie versions can show questions in read-only mode. Turning Auto off withdraws automatic memory access and hides those choices.
55
+
56
+ The startup delegation summary may say **checking available tools** until Pi provides its first callable-tool inventory. It refreshes automatically when work starts, including after `/new`. A parent tool such as Scout can be available while a skill using it remains unavailable to children; **use the parent Pi session** identifies that restriction. More permission does not provide a missing child tool.
52
57
 
53
58
  Task descriptions can come from a short public description supplied by the delegating model. When that description is unavailable, the dashboard uses the activity it actually observed. This works without a summarization request or JEV. Open details to inspect a source, and use **x** when offered to see exact references. Saved evidence, process completion and approval are separate facts. Explicit **p** and **f** reads use the existing retention controls.
54
59
 
@@ -133,12 +138,14 @@ Principal binding manifest, package identity and delegated agent where applicabl
133
138
  is a separate file. Raw source-copy SHA-256 preserves every byte, including a BOM; `sourceHash` retains the
134
139
  runtime's existing decoded-text hash semantics. Changing a source path later does not rewrite the snapshot.
135
140
  Manifest `requestedDefinitionId` is the caller's claim; `definitionId` is the observed planner selection.
141
+ An ID Daddy filled from an earlier describe is no claim, so `requestedDefinitionId` stays null there.
136
142
  Requested execution IDs are allocated occurrences, not proof that those children started. Runtime outcomes
137
143
  contain only the existing allowlisted final and process-receipt projection, in original child/step order;
138
- skipped steps have no invented outcome. `finals` also copies each complete attributed public final separately,
139
- with its ordinal, execution ID and native session/message/leaf identity. Its byte hash must match the native
140
- final hash; unavailable finals remain null. Consumers never need to reconstruct a final from report delimiters.
141
- Process settlement remains separate from workspace cleanup.
144
+ skipped steps have no invented outcome. The captured `response` holds the version 2 summary the model received,
145
+ computed from that complete version 1 projection alone. `finals` also copies each complete attributed public
146
+ final separately, with its ordinal, execution ID and native session/message/leaf identity. Its byte hash must
147
+ match the native final hash; unavailable finals remain null. Consumers never need to reconstruct a final from
148
+ report delimiters. Process settlement remains separate from workspace cleanup.
142
149
 
143
150
  The configured root must already exist with owner-only permissions. Captures use exclusive ordinary files,
144
151
  held directory descriptors and fsync before publishing a reference; each capture is limited to 64 MiB and
@@ -273,6 +280,21 @@ Monetary usage is observational. It never pauses, stops or authorizes a child. A
273
280
  lifecycle records and episode reports; missing or partial coverage is not a zero-cost claim. Permission approvals,
274
281
  depth, fan-out limits and execution timeouts are separate controls.
275
282
 
283
+ Child usage reaches the Pi session that delegated it. `delegate`, `delegate_all` and `delegate_chain` report their
284
+ children's observed model usage in Pi's tool-result usage field, which Pi adds to that session's usage totals,
285
+ footer and cost (Pi 1.0.4 and 1.5.2 record it). Each call is counted once, also when a child delegates further: a
286
+ child's lifecycle record and `pi-daddy report` keep its own calls, and its report to its parent adds what its own
287
+ delegations reported. `details.childUsage` gives measured and unmeasured children and the cost of the usage
288
+ reported; unmeasured usage is never estimated. A failed or timed-out child reports what it used, and so does a delegation that stops with an error after
289
+ its children ran, such as a critical-assurance veto: Daddy adds their usage to Pi's error result, whose text stays
290
+ unchanged. A reused operation reports nothing again. A child stopped while its own delegation was still waiting counts
291
+ that delegation as unmeasured, and a figure no delegation could plausibly reach (over 1e13 tokens, $1e8 or 1e7
292
+ executions in one value) is counted as unmeasured rather than added. The dashboard's ledger frame, with the owning Pi
293
+ session connected, and `pi-daddy report` say this usage is already in the delegating session's totals: compare, do
294
+ not add. The dashboard line counts the session's own delegation results only; a `delegate` run from a Codemode
295
+ script is in the session's totals through the `codemode` result, but not in that line. A `scout_research` call the
296
+ session ran for a child is in its totals on the same delegation result, as the session's own usage, not in that line.
297
+
276
298
  ## The ledger
277
299
 
278
300
  When configured, `.pi/pi-daddy/grants.jsonl` holds capability decisions, child lifecycles, workspace leases, cost
@@ -349,9 +371,29 @@ A packaged native helper owns and reaps the cooperating child subtree. The final
349
371
  protocol settles and matches the exact persisted current turn and active branch. Complete final text is preserved;
350
372
  work, final availability, subtree cleanup and optional observation completeness are separate result fields. A failed
351
373
  execution returns `isError` with its available evidence. Display, diagnostics and optional recording cannot replace
352
- the primary final. Unknown cleanup retains capacity and workspace exclusion.
353
-
354
- Pi and TypeBox are wildcard host-provided peers so Pi's extension loader supplies one shared runtime copy. Development dependencies pin Pi **1.0.4**; the additional **1.1.0** and **1.4.0** checks have the execution scopes described above. Prefer a Pi-managed install under a measured host and executor combination. An ordinary standalone npm install may resolve untested peer versions. In a Pi-managed no-peer install, standalone help, version and reporting remain available; use `/grants init` inside Pi for an explicit persistent project ceiling. Principal's native phases use `plan`, `build`, `review`, `debug`, and `investigate` with their returned `delegate_describe` `definitionId`; independent parallel work uses one `delegate_all` batch.
374
+ the primary final. Unknown cleanup retains capacity and workspace exclusion. The coordinating model receives a
375
+ version 2 runtime evidence summary per child: those states, any timeout, cancellation, spawn-failure or truncation
376
+ flag, a bounded reason, the operation ID (or execution ID), and for a worker that did not exit normally the
377
+ receipt's cause and signal. Complete final identities and process receipts stay in the result details, which Pi
378
+ persists but does not send to the provider, and in opt-in public capture.
379
+
380
+ A child whose tools only read (`read`, `grep`, `find`, `ls`, plus context handoff) is replay-safe, and
381
+ `delegate_describe` (`replaySafe`), the `/grants` allow lines and the startup summary say so. When such a child
382
+ fails without answering (it exited without a final, timed out, could not launch for want of system resources, or its
383
+ model request failed), Daddy runs the same request once more in the same tool call: a new execution and process with
384
+ the same task, definition, model and context, planned with nobody asked and bounded by the first attempt's
385
+ wall-clock deadline. A child killed from outside the tool call (a person's `kill`, the OOM killer) exits like a
386
+ crash and is retried once. Daddy never retries a child its parent's tool call cancelled, one whose cleanup is not
387
+ settled, one that spent an approval (on a gated tool, or a gated context handoff such as the default-gated
388
+ `context:fork`), one in a Herdr pane, or one carrying an `operation_id`, and it never retries twice. The summary
389
+ then carries `"retry":{"attempts":2,"firstFailure":"…"}`, the details keep the first attempt complete, the
390
+ result details link the two executions, and the usage reported to the Pi session covers both attempts. A failure carrying an `operation_id` that would otherwise have been retried is
391
+ returned with `"replayable":true` instead, so its coordinator can retry it once as a new operation (Principal does).
392
+ A complete answer is never retried, including after a later idle timeout. Bound operation failures retain optional
393
+ owner-verified retry eligibility; a coordinator without that evidence keeps its manual retry path. Under the Herdr executor nothing is retried or marked. `PI_DADDY_REPLAY_RETRY=0` turns off the retry and the
394
+ `replayable` mark; the replay-safe mark stays.
395
+
396
+ Pi and TypeBox are wildcard host-provided peers so Pi's extension loader supplies one shared runtime copy. Development dependencies pin Pi **1.0.4**; the additional **1.1.0** and **1.4.0** checks have the execution scopes described above. Prefer a Pi-managed install under a measured host and executor combination. An ordinary standalone npm install may resolve untested peer versions. In a Pi-managed no-peer install, standalone help, version and reporting remain available; use `/grants init` inside Pi for an explicit persistent project ceiling. Principal's native phases use `plan`, `build`, `review`, `debug`, and `investigate` after a `delegate_describe` of each, which binds its `definitionId`; independent parallel work uses one `delegate_all` batch.
355
397
 
356
398
  Final capture preserves whitespace and concatenates text blocks without inserting separators. Tool-call terminals, empty visible finals and non-`stop` reasons are unavailable. Persisted message comparisons ignore object key order while preserving array order and every field value. The shared `final-conformance.json` table checks these semantics in both runtime and harness. Capture remains bounded: 4 MiB visible final, 32 MiB protocol line, 64 MiB persisted session, and a 3-second bounded session read. Exceeding a limit reports an unavailable final and blocks dependent handoffs; it does not imply the worker failed to settle.
357
399
 
@@ -469,12 +511,12 @@ replace a pin, then deliberately reload. There are no background registry checks
469
511
  Every variable is `PI_DADDY_*`. Operator-facing controls are grouped below; the environment overrides stored
470
512
  configuration where both exist.
471
513
 
472
- | Area | Variables |
473
- | :----------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
474
- | Governance | `PI_DADDY_GOVERNANCE`, `PI_DADDY_GRANT`, `PI_DADDY_GATED`, `PI_DADDY_MAX_DEPTH`, `PI_DADDY_FANOUT`, `PI_DADDY_LEDGER`, `PI_DADDY_APPROVAL_TIMEOUT`, `PI_DADDY_AUTO_MODE` |
475
- | Child execution | `PI_DADDY_HERDR`, `PI_DADDY_HERDR_WORKSPACE`, `PI_DADDY_HERDR_KEEP_PANE`, `PI_DADDY_CHILD_IDLE_TIMEOUT`, `PI_DADDY_CHILD_TIMEOUT`, `PI_DADDY_ALLOW_UNRESOLVED_MODELS` |
476
- | Workspaces and retention | `PI_DADDY_WORKSPACE_REGISTRY`, `PI_DADDY_WORKSPACE_LEASE_DIR`, `PI_DADDY_EXECUTION_ARCHIVE`, `PI_DADDY_RETAIN_NATIVE_SESSIONS`, `PI_DADDY_NATIVE_SESSION_ROOT` |
477
- | Activity | `PI_DADDY_ACTIVITY_TIMELINE`, `PI_DADDY_ACTIVITY_CONTENT` |
514
+ | Area | Variables |
515
+ | :----------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
516
+ | Governance | `PI_DADDY_GOVERNANCE`, `PI_DADDY_GRANT`, `PI_DADDY_GATED`, `PI_DADDY_MAX_DEPTH`, `PI_DADDY_FANOUT`, `PI_DADDY_LEDGER`, `PI_DADDY_APPROVAL_TIMEOUT`, `PI_DADDY_AUTO_MODE` |
517
+ | Child execution | `PI_DADDY_HERDR`, `PI_DADDY_HERDR_WORKSPACE`, `PI_DADDY_HERDR_KEEP_PANE`, `PI_DADDY_CHILD_IDLE_TIMEOUT`, `PI_DADDY_CHILD_TIMEOUT`, `PI_DADDY_ALLOW_UNRESOLVED_MODELS`, `PI_DADDY_PARENT_TOOLS`, `PI_DADDY_REPLAY_RETRY` |
518
+ | Workspaces and retention | `PI_DADDY_WORKSPACE_REGISTRY`, `PI_DADDY_WORKSPACE_LEASE_DIR`, `PI_DADDY_EXECUTION_ARCHIVE`, `PI_DADDY_RETAIN_NATIVE_SESSIONS`, `PI_DADDY_NATIVE_SESSION_ROOT` |
519
+ | Activity | `PI_DADDY_ACTIVITY_TIMELINE`, `PI_DADDY_ACTIVITY_CONTENT` |
478
520
 
479
521
  `PI_DADDY_FANOUT` bounds active cooperating descendant sessions. Its default remains 8; literal 0 means exhausted,
480
522
  and malformed values refuse. A reservation includes the child and its disjoint descendant allowance, so concurrent
@@ -696,10 +738,14 @@ On Pi 1.0.4, the first request or native delegation reads the public selected sk
696
738
  inline and delegated ceilings. An unrelated skill with the same name is never labeled Principal. Failed
697
739
  binding has no inline fallback. Reload creates a new snapshot; observing provider tools never rereads bodies.
698
740
 
699
- Call `delegate_describe({agent:"build"})` and carry its `definitionId` into `delegate`, a `delegate_all`
700
- child, or a `delegate_chain` step. Principal bindings require that precondition. Description starts no child
701
- and grants no authority. A stale ID refuses before approval or launch. This hash is an observation and
702
- precondition, not an approval record or a learned-policy authorization.
741
+ Call `delegate_describe({agent:"build"})` before delegating to it. Daddy remembers the returned `definitionId`
742
+ for that agent in this Pi session and uses it when a `delegate`, a `delegate_all` child or a `delegate_chain`
743
+ step names the agent without one; a supplied `definitionId` wins and is never remembered. Principal bindings
744
+ require a describe (or the ID). `/reload` keeps what was described; `/new`, resume, fork and tree navigation
745
+ drop it. Description starts no child and grants no authority. A stale ID, supplied or remembered, refuses
746
+ before approval or launch until the agent is described again. Tool result details record the ID used and its
747
+ source (`definitionBinding`); the ledger does not. This hash is an observation and precondition, not an
748
+ approval record or a learned-policy authorization.
703
749
 
704
750
  The description also returns `selectedResources`: version `1`, `selectedSkill` and `definition` objects
705
751
  containing `path` and `sha256`, and `resourceDirectory` for relative references. A verified Principal binding
@@ -715,6 +761,44 @@ Keep that work in the parent or select a definition using supported child tools;
715
761
  install a child provider. Ambient extensions stay disabled and `--tools` remains exact. A refused fan-out
716
762
  child does not prevent an independent valid sibling from running; a chain refuses before any step starts.
717
763
 
764
+ One exception is a new path for authority, so its bounds are listed here. A tool on Daddy's fixed allowlist,
765
+ currently only `scout_research`, can be run **by the root session for its direct child**. The child loads Daddy's
766
+ `extensions/parent-tool-proxy.ts`, which registers a tool of the same name, description and argument schema;
767
+ calling it asks the root, over the owner socket descendants already use, to run the real tool through Pi's
768
+ `ctx.executeTool` inside the waiting `delegate`, `delegate_all` or `delegate_chain` call. The root's own hooks
769
+ and permission prompts therefore decide each call, and Pi records it as a nested call of that delegation.
770
+ Admission requires all of: a root session; a definition ceiling and grant naming `tool:scout_research` exactly
771
+ (an `ext:` alias does not count); the root holding the tool and Pi reporting it callable from another tool; the
772
+ delegation's tool context offering `executeTool`; and **the child using the root's own provider and model**. The
773
+ last means the `provider/id` Daddy passes the child as `--model` names exactly the provider and id of the root's
774
+ current model. A child that keeps the root's model (the default) qualifies; an explicit `model`, a per-definition
775
+ setting or authored `runtime-preferences` naming any other pair does not; and a child with no `--model` (Pi's
776
+ configured default) or a root with no model is unknown, which does not qualify either. Such a delegation gets
777
+ the refusal above with one more sentence saying the model is the reason. Only provider and id are compared: the
778
+ child resolves the api, endpoint and credentials for that pair itself after it starts, which the root does not
779
+ observe. A gated capability is asked about at delegation, like any other. The root checks again at launch and at
780
+ every call, against the same conditions, its own grant, the model Pi reports for it at that moment, and the
781
+ execution id and per-execution key of the running child it was granted to; an unknown, finished or different
782
+ child is refused, and after `/model` in the root a running child's next call is refused. Arguments are limited to
783
+ 64 KiB of JSON and results to 64 KiB of text. Only text crosses, fenced as untrusted evidence; `details`, images
784
+ and other parts do not. A thrown tool error or a block by the root's own permission hooks crosses as an error
785
+ result with its text; failures outside Pi's tool pipeline cross as a fixed refusal. One call per child runs in the
786
+ root at a time, until that run settles; a call is cancelled when its child settles, exits or disconnects, and
787
+ waiting on it counts as child activity, so the child's wall-clock limit is what bounds it. A child cannot pass
788
+ such a tool to its own child. `delegate_describe` lists such tools as `parentRunTools` for a child that keeps
789
+ the root's model; the agent list and the startup summary leave the model to each delegation.
790
+
791
+ The tool runs in the root session, with the root's model, credentials, settings, working directory and Docker,
792
+ and what it writes is the root's. Scout's `scout_research` saves its brief under the root session's directory in
793
+ `~/.pi-scout-research/briefs/`, appends it to the root session, where it becomes the root's latest saved Scout
794
+ research (the reference the root model is then shown, in place of the root's own earlier one), and adds it to
795
+ the root's workspace research inventory, which keeps a bounded number of entries. Scout's answer text, including
796
+ the saved brief's path under the root's home directory, is what crosses to the child. `PI_DADDY_PARENT_TOOLS=0`
797
+ turns the path off and restores the refusal above; any value other than `1` or `0` also turns it off and is
798
+ reported at startup. Bookie recall tools are deliberately not on the allowlist: Bookie authorizes disclosure for
799
+ the model of the session that runs its tool, which here would be the root's while the text reaches the child's
800
+ model, and the same-model rule compares provider and id only, not the endpoint Bookie's approval binds.
801
+
718
802
  ### Optional retained-result consumers
719
803
 
720
804
  `pi-daddy:operation-artifact-ready:v1` is a best-effort trusted extension hint containing `{ version: 1, reference }`. A missing or failing consumer cannot change the durable result or relaunch work. Pi's custom entry likewise holds only a reference. Consumers recover missed hints through the trusted `pi-daddy:operation-artifacts:v1` event; this is not a model-callable tool.
@@ -40,6 +40,12 @@ Earlier schema snapshots omitted `context:` even though the runtime emitted and
40
40
  validation of existing records; it changes no grant or execution authority. Consumers pinned to older schemas
41
41
  must explicitly adopt the corrected contract. The closed field and identifier-tail rules remain unchanged.
42
42
 
43
+ ## Retry linkage (2026-11-18)
44
+
45
+ Automatic retry does not change the shared record-v1 contract. Both executions emit ordinary capability and
46
+ lifecycle records; their explicit retry relationship remains in the delegation's result details and retained
47
+ session evidence. Released readers can continue to consume the ledger independently of Daddy updates.
48
+
43
49
  ## Execution identity
44
50
 
45
51
  Every v3 execution event carries:
@@ -1,6 +1,10 @@
1
1
  import type { ChildUsageTotals } from "../governance/ledger-events.ts";
2
+ import { type ObservedChildUsage } from "./child-usage.ts";
2
3
  export interface ChildUsageObservation {
4
+ /** The child's own model calls: what the ledger records. Never what its delegation results reported. */
3
5
  usage?: ChildUsageTotals;
6
+ /** What the child's own delegation results reported: its descendants, already in its session total. */
7
+ delegated?: ObservedChildUsage;
4
8
  unavailable?: "session-missing" | "session-invalid" | "usage-missing";
5
9
  resolvedModel?: {
6
10
  provider: string;
@@ -1 +1 @@
1
- {"version":3,"file":"activity-session.d.ts","sourceRoot":"","sources":["../../src/executors/activity-session.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAIvE,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,WAAW,CAAC,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,eAAe,CAAC;IACtE,aAAa,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE;QACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;QAC/B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;QAChC,eAAe,EAAE,MAAM,GAAG,IAAI,CAA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,EAAE,MAAM,GAAG,IAAI,CAAC;QAChC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;KAChC,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,yGAAyG;IACzG,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,sCAAsC;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,iGAAiG;IACjG,KAAK,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrC,+FAA+F;IAC/F,KAAK,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACxC,8FAA8F;IAC9F,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAsBD,wBAAsB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAiD1G"}
@@ -11,6 +11,7 @@
11
11
  import { mkdtemp, readdir, rm, stat } from "node:fs/promises";
12
12
  import { SessionManager } from "@earendil-works/pi-coding-agent";
13
13
  import { BoundedReadCleanupError, readBoundedBytes } from "../kernel/bounded-read.js";
14
+ import { addDelegationResult, addUnansweredCalls, DELEGATION_RESULT_TOOLS, delegationCallIds, } from "./child-usage.js";
14
15
  import { tmpdir } from "node:os";
15
16
  import { join } from "node:path";
16
17
  /** The newest session file pi wrote into a directory we own, as a size:mtime marker. */
@@ -153,6 +154,9 @@ async function readChildUsage(path) {
153
154
  let resolvedModel;
154
155
  let effectiveThinkingLevel;
155
156
  let compactionCount = 0;
157
+ let delegated;
158
+ // This turn's delegation calls still without a result, by id: a child stopped while it waited on its own child.
159
+ const unanswered = new Map();
156
160
  try {
157
161
  const read = await readBoundedBytes(resolved, { maxBytes: MAX_USAGE_SESSION_BYTES, timeoutMs: 3000 });
158
162
  if (!read.ok)
@@ -185,6 +189,19 @@ async function readChildUsage(path) {
185
189
  continue;
186
190
  if (message.role === "assistant" && typeof message.provider === "string" && typeof message.model === "string")
187
191
  resolvedModel = { provider: message.provider, modelId: message.model };
192
+ if (message.role === "assistant")
193
+ for (const id of delegationCallIds(message.content))
194
+ unanswered.set(id, (unanswered.get(id) ?? 0) + 1);
195
+ // Counted in this child's session total, but these are its descendants' calls, not its own (2026-11-17).
196
+ if (message.role === "toolResult" && DELEGATION_RESULT_TOOLS.has(String(message.toolName))) {
197
+ const waiting = unanswered.get(String(message.toolCallId)) ?? 0;
198
+ if (waiting > 0)
199
+ unanswered.set(String(message.toolCallId), waiting - 1);
200
+ delegated = addDelegationResult(delegated, message);
201
+ if (!delegated)
202
+ return { unavailable: "session-invalid" };
203
+ continue;
204
+ }
188
205
  usage = object(message.usage);
189
206
  if (message.role === "toolResult" && !usage)
190
207
  continue;
@@ -219,10 +236,12 @@ async function readChildUsage(path) {
219
236
  return { unavailable: "session-invalid" };
220
237
  found = true;
221
238
  }
239
+ delegated = addUnansweredCalls(delegated, [...unanswered.values()].reduce((sum, waiting) => sum + waiting, 0));
222
240
  const metadata = {
223
241
  ...(resolvedModel ? { resolvedModel } : {}),
224
242
  ...(effectiveThinkingLevel ? { effectiveThinkingLevel } : {}),
225
243
  compactionCount,
244
+ ...(delegated ? { delegated } : {}),
226
245
  };
227
246
  if (!found || incomplete)
228
247
  return { unavailable: "usage-missing", ...metadata };
@@ -1 +1 @@
1
- {"version":3,"file":"activity-session.js","sourceRoot":"","sources":["../../src/executors/activity-session.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAkB,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEtF,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,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AY,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI;aACjE;SACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,gGAAgG;QAChG,IAAI,KAAK,YAAY,uBAAuB;YAAE,MAAM,KAAK,CAAC;QAC1D,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;IAC5C,CAAC;AACH,CAAC;AAED,SAAS,UAAU;IACjB,OAAO;QACL,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,CAAC;QACb,WAAW,EAAE,CAAC;QACd,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;KACrE,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,CAAC,KAAc,EAAuC,EAAE,CACrE,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAiC,CAAC,CAAC,CAAC,SAAS,CAAC;AACxH,MAAM,WAAW,GAAG,CAAC,KAAc,EAAmB,EAAE,CACtD,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACpE,MAAM,cAAc,GAAG,CAAC,KAAa,EAAiB,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC"}
@@ -11,6 +11,8 @@ export type ChildFinal = {
11
11
  state: "unavailable";
12
12
  reason: string;
13
13
  diagnosticText?: string;
14
+ /** The settled run's terminal assistant message reports a failed model request (`stopReason: "error"`). */
15
+ providerError?: true;
14
16
  };
15
17
  /** Only the original in-process final carries this observation; JSON/copies do not recreate it. */
16
18
  export declare function capturedFinalSession(final: ChildFinal): Readonly<CapturedSessionBranch> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"child-final.d.ts","sourceRoot":"","sources":["../../src/executors/child-final.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAMtF,MAAM,MAAM,UAAU,GAClB;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACzG;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtE,mGAAmG;AACnG,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,GAAG,QAAQ,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAEnG;AACD,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,OAAO,CAA6C;IAC5D,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,KAAK,CAAC,CAAsB;IACpC,OAAO,CAAC,IAAI,CAAC,CAAsB;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAyB;IACjD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAA2C;gBAC9D,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,E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,CAAC,CAAsB;IACpC,OAAO,CAAC,IAAI,CAAC,CAAsB;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAyB;IACjD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAA2C;gBAC9D,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI;IAIrG,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAgB5B,OAAO,CAAC,KAAK;IAmDb,OAAO,CAAC,OAAO;IAOT,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,EAAE,WAAW,0BAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;CAmGnH"}
@@ -117,6 +117,10 @@ export class ChildFinalCapture {
117
117
  state: "unavailable",
118
118
  reason,
119
119
  ...(this.visible() ? { diagnosticText: this.visible().slice(0, 8192) } : {}),
120
+ // Pi's JSON mode exits 0 after a failed model request; the settled terminal message is the one record of it.
121
+ ...(this.settled && !this.active.size && this.final?.stopReason === "error"
122
+ ? { providerError: true }
123
+ : {}),
120
124
  });
121
125
  try {
122
126
  this.buffer += this.decoder.decode();
@@ -1 +1 @@
1
- {"version":3,"file":"child-final.js","sourceRoot":"","sources":["../../src/executors/child-final.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAkB,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACtF,MAAM,eAAe,GAAG,CAAC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C,CAAC;QACpC,CAAC;IACH,CAAC;CACF"}
@@ -0,0 +1,129 @@
1
+ /**
2
+ * Governed children's model usage, as the delegating Pi session accounts it (owner decision 2026-11-17).
3
+ *
4
+ * Pi adds a tool result's `usage` to the session that ran the tool: the persisted tool result message, session
5
+ * statistics, the footer and cost (Pi 0.81.0 and later; read in 1.0.4 and 1.5.2). `delegate`, `delegate_all` and
6
+ * `delegate_chain` report there what their children were observed to spend, so a session that delegates its work
7
+ * does not look cheap. A call that throws reports through Pi's `tool_result` hook instead
8
+ * (`extensions/child-usage-report.ts`). A host without that accounting does not keep the field, and nothing else
9
+ * changes.
10
+ *
11
+ * **Each model call is counted once, at any depth.** A child's own session counts what its delegation results
12
+ * reported, so `activity-session.ts` keeps the two apart: the child's own calls are `usage`, which the ledger
13
+ * records, and what its delegation results reported is `delegated`. Its report to its parent is both, so the root
14
+ * session's total holds every call in the tree once, and summing the ledger over an episode still holds each once.
15
+ *
16
+ * **Coverage is counted, never filled in.** `measured` and `unmeasured` count governed executions in the subtree
17
+ * whose own usage was or was not observed. An unobserved child adds nothing to the total, so a total with
18
+ * `unmeasured > 0` is a lower bound. In a child's session, a delegation result without a record counts as one
19
+ * unmeasured child, because nothing says whether a child ran; so does a delegation call with no result at all (the
20
+ * child stopped while it waited); a record whose usage the host did not keep counts all its children as unmeasured.
21
+ *
22
+ * Every value read back comes from a child's session file: untrusted numbers. A value that is not a non-negative
23
+ * number makes the child's observation invalid. A number beyond `USAGE_CEILINGS`, or one whose addition would take a
24
+ * sum beyond them, is implausible and counts as unmeasured. Children are added one at a time, so only that child is
25
+ * unmeasured and every other one keeps its usage. They describe usage and nothing else; no grant, refusal or limit
26
+ * reads them.
27
+ */
28
+ import type { ChildUsageTotals } from "../governance/ledger-events.ts";
29
+ /** The tools whose results report children's usage. `delegate_describe` starts nothing. */
30
+ export declare const DELEGATION_RESULT_TOOLS: ReadonlySet<string>;
31
+ /**
32
+ * The largest value accepted for one usage figure: a child's report, a delegation result read back, or a sum
33
+ * (review of 2026-11-17). Under Daddy's defaults one delegation call's whole subtree runs at most 8 sessions at a time
34
+ * (the fan-out budget) for at most 48 hours (an 8-step chain of 6-hour ceilings): 384 session-hours. A session that
35
+ * re-read a 1M-token context every second, beyond any real agent loop, would use 1.4e12 tokens in that time, $6.9e7
36
+ * at $50 per million tokens; one governed execution a second would be 1.4e6 executions. The ceilings sit above all
37
+ * three. A larger value is a fault or a hostile child: it counts as unmeasured and never reaches Pi's totals, while
38
+ * the ledger still records each execution's own usage as read. An operator who raises those bounds far enough could
39
+ * pass a ceiling legitimately and is then told `unmeasured`, never a wrong total. Below the ceilings a token sum of
40
+ * hundreds of values stays an exact integer, so no sibling's usage is absorbed by another's.
41
+ */
42
+ export declare const USAGE_CEILINGS: {
43
+ readonly tokens: 10000000000000;
44
+ readonly cost: 100000000;
45
+ readonly executions: 10000000;
46
+ };
47
+ export interface UsageCoverage {
48
+ /** Governed executions in the subtree whose own model usage was observed. */
49
+ measured: number;
50
+ /** Governed executions in the subtree whose usage was not observed and is in no total. */
51
+ unmeasured: number;
52
+ }
53
+ /** A settled child's own calls plus what its own delegation results reported, as far as observed. */
54
+ export interface ObservedChildUsage extends UsageCoverage {
55
+ usage?: ChildUsageTotals;
56
+ }
57
+ /** What a delegation result says in `details.childUsage`, and what its parent reads back. */
58
+ export interface ChildUsageRecord extends UsageCoverage {
59
+ /** Whether the result set Pi's tool-result `usage`: exactly when some child's usage was observed. */
60
+ reported: boolean;
61
+ /**
62
+ * With `reported`: the cost total of the usage it reported, which is the children's alone. Pi adds the usage of
63
+ * the tools a call ran nested to the same persisted result, and a parent-run tool (`scout_research`, run by this
64
+ * session for its child) runs nested in the waiting delegation, so the persisted usage can also hold this session's
65
+ * own calls. The owning session reads its children's share here (integration of 2026-11-17); a parent never reads
66
+ * it back from a child.
67
+ */
68
+ cost?: number;
69
+ coverage: "complete" | "partial" | "unavailable";
70
+ }
71
+ /** Pi's `Usage` fields this package reads, validated and within the ceilings; anything else in the value is dropped. */
72
+ export declare function usageTotals(value: unknown): ChildUsageTotals | undefined;
73
+ /** Field-wise sum; `reasoning` stays absent unless a side reported it. `addObserved` checks the sum is plausible. */
74
+ export declare function addUsage(left: ChildUsageTotals | undefined, right: ChildUsageTotals): ChildUsageTotals;
75
+ /** A record read back from a child's session; `coverage` is recomputed, never trusted. */
76
+ export declare function childUsageRecord(value: unknown): Omit<ChildUsageRecord, "coverage"> | undefined;
77
+ /**
78
+ * Adds one of a child's own delegation results, as its session recorded it. Undefined when its usage is not usage
79
+ * at all, which makes the child's whole observation invalid rather than partly counted. Without a usable record the
80
+ * result is one unmeasured child; usage the host did not keep, or beyond the ceilings, leaves the record's children
81
+ * unmeasured; a record that says it reported nothing measured nothing.
82
+ */
83
+ export declare function addDelegationResult(previous: ObservedChildUsage | undefined, value: {
84
+ usage?: unknown;
85
+ details?: unknown;
86
+ }): ObservedChildUsage | undefined;
87
+ /** Ids of the delegation calls in an assistant message's content; a child's reader matches them to their results. */
88
+ export declare function delegationCallIds(content: unknown): string[];
89
+ /** Delegation calls with no result: the child stopped while each waited, so each is one unmeasured child. */
90
+ export declare function addUnansweredCalls(previous: ObservedChildUsage | undefined, calls: number): ObservedChildUsage | undefined;
91
+ /** One settled child: its own calls when observed and plausible, plus what its delegation results reported. */
92
+ export declare function observedChildUsage(observation: {
93
+ usage?: ChildUsageTotals;
94
+ delegated?: ObservedChildUsage;
95
+ }): ObservedChildUsage;
96
+ /**
97
+ * The two tool-result fields: Pi's `usage` when any child's usage was observed, and `details.childUsage`.
98
+ * A reused operation started nothing in this call; the call that ran it already reported its usage.
99
+ */
100
+ export declare function delegationUsage(outcomes: readonly {
101
+ observedUsage?: ObservedChildUsage;
102
+ operation?: {
103
+ reused?: boolean;
104
+ };
105
+ }[]): {
106
+ usage?: ChildUsageTotals;
107
+ childUsage: ChildUsageRecord;
108
+ };
109
+ /**
110
+ * One child's attempts together: a replay-safe child that failed is run once more in the same call, and both
111
+ * attempts used the model (integration with the automatic retry, 2026-11-17). Added as two children are, so each
112
+ * attempt counts as one execution; undefined when no attempt was observed at all.
113
+ */
114
+ export declare function attemptsUsage(...attempts: (ObservedChildUsage | undefined)[]): ObservedChildUsage | undefined;
115
+ /** A child that ran and then threw keeps its observation on the error, so a fan-out that reports it can count it. */
116
+ export declare function withObservedUsage<T>(error: T, usage: ObservedChildUsage): T;
117
+ export declare function observedUsageOf(error: unknown): ObservedChildUsage | undefined;
118
+ /**
119
+ * The host-side check, read from this Pi session's own record: how many of its delegation results reported child
120
+ * usage, and how many of those the host kept on the persisted tool result, which is what its totals sum. The cost
121
+ * is the children's share of what was kept: the persisted usage also holds any tool the call ran nested, such as a
122
+ * parent-run `scout_research`, and that is this session's own usage, not child usage.
123
+ */
124
+ export declare function childUsageInSession(entries: readonly unknown[]): {
125
+ results: number;
126
+ recorded: number;
127
+ cost: number;
128
+ } | undefined;
129
+ //# sourceMappingURL=child-usage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"child-usage.d.ts","sourceRoot":"","sources":["../../src/executors/child-usage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,2FAA2F;AAC3F,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAA2D,CAAC;AAEpH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc;;;;CAAwD,CAAC;AAEpF,MAAM,WAAW,aAAa;IAC5B,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,CAAC;IACjB,0FAA0F;IAC1F,UAAU,EAAE,MAAM,CAAC;CACpB;AACD,qGAAqG;AACrG,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AACD,6FAA6F;AAC7F,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,qGAAqG;IACrG,QAAQ,EAAE,OAAO,C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