pi-daddy 0.24.0 → 0.25.1

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 (94) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +12 -4
  3. package/THIRD_PARTY_LICENSES/herdr-Apache-2.0.txt +201 -0
  4. package/THIRD_PARTY_NOTICES.md +7 -0
  5. package/contracts/ledger/v4/README.md +1 -1
  6. package/dist/daily-dashboard-host.d.ts +26 -2
  7. package/dist/daily-dashboard-host.d.ts.map +1 -1
  8. package/dist/daily-dashboard-host.js +78 -8
  9. package/dist/daily-dashboard-host.js.map +1 -1
  10. package/dist/dashboard-handshake.d.ts.map +1 -1
  11. package/dist/dashboard-handshake.js +13 -4
  12. package/dist/dashboard-handshake.js.map +1 -1
  13. package/dist/dashboard-harness.d.ts +1 -1
  14. package/dist/dashboard-harness.js +3 -3
  15. package/dist/dashboard-harness.js.map +1 -1
  16. package/dist/dashboard-herdr.d.ts +1 -0
  17. package/dist/dashboard-herdr.d.ts.map +1 -1
  18. package/dist/dashboard-herdr.js +10 -8
  19. package/dist/dashboard-herdr.js.map +1 -1
  20. package/dist/dashboard-host-contract.d.ts +10 -1
  21. package/dist/dashboard-host-contract.d.ts.map +1 -1
  22. package/dist/dashboard-host-contract.js +1 -1
  23. package/dist/dashboard-host-contract.js.map +1 -1
  24. package/dist/dashboard-host.d.ts +8 -0
  25. package/dist/dashboard-host.d.ts.map +1 -1
  26. package/dist/dashboard-host.js +24 -6
  27. package/dist/dashboard-host.js.map +1 -1
  28. package/dist/dashboard-observation.d.ts.map +1 -1
  29. package/dist/dashboard-observation.js +1 -0
  30. package/dist/dashboard-observation.js.map +1 -1
  31. package/dist/experiment.d.ts.map +1 -1
  32. package/dist/experiment.js +9 -4
  33. package/dist/experiment.js.map +1 -1
  34. package/dist/herdr-pi-lifecycle.d.ts +8 -0
  35. package/dist/herdr-pi-lifecycle.d.ts.map +1 -0
  36. package/dist/herdr-pi-lifecycle.js +22 -0
  37. package/dist/herdr-pi-lifecycle.js.map +1 -0
  38. package/dist/herdr-poll.d.ts +21 -0
  39. package/dist/herdr-poll.d.ts.map +1 -1
  40. package/dist/herdr-poll.js +52 -3
  41. package/dist/herdr-poll.js.map +1 -1
  42. package/dist/herdr-start.d.ts +9 -0
  43. package/dist/herdr-start.d.ts.map +1 -0
  44. package/dist/herdr-start.js +15 -0
  45. package/dist/herdr-start.js.map +1 -0
  46. package/dist/index.d.ts +3 -0
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +3 -0
  49. package/dist/index.js.map +1 -1
  50. package/dist/intent-application.d.ts.map +1 -1
  51. package/dist/intent-application.js +3 -2
  52. package/dist/intent-application.js.map +1 -1
  53. package/dist/measured-order.d.ts +249 -0
  54. package/dist/measured-order.d.ts.map +1 -0
  55. package/dist/measured-order.js +251 -0
  56. package/dist/measured-order.js.map +1 -0
  57. package/dist/measured-session.d.ts +97 -0
  58. package/dist/measured-session.d.ts.map +1 -0
  59. package/dist/measured-session.js +134 -0
  60. package/dist/measured-session.js.map +1 -0
  61. package/dist/run-herdr.d.ts +3 -3
  62. package/dist/run-herdr.d.ts.map +1 -1
  63. package/dist/run-herdr.js +28 -33
  64. package/dist/run-herdr.js.map +1 -1
  65. package/dist/vendor/herdr-pi-lifecycle.d.ts +2 -0
  66. package/dist/vendor/herdr-pi-lifecycle.d.ts.map +1 -0
  67. package/dist/vendor/herdr-pi-lifecycle.js +223 -0
  68. package/dist/vendor/herdr-pi-lifecycle.js.map +1 -0
  69. package/dist/work-command.d.ts +2 -0
  70. package/dist/work-command.d.ts.map +1 -1
  71. package/dist/work-command.js +15 -2
  72. package/dist/work-command.js.map +1 -1
  73. package/extensions/daily-dashboard-session.ts +9 -8
  74. package/extensions/grants-command.ts +2 -0
  75. package/extensions/grants.ts +1 -1
  76. package/package.json +15 -1
  77. package/src/daily-dashboard-host.ts +49 -10
  78. package/src/dashboard-handshake.ts +14 -5
  79. package/src/dashboard-harness.ts +3 -3
  80. package/src/dashboard-herdr.ts +12 -9
  81. package/src/dashboard-host-contract.ts +5 -2
  82. package/src/dashboard-host.ts +14 -9
  83. package/src/dashboard-observation.ts +1 -0
  84. package/src/experiment.ts +8 -3
  85. package/src/herdr-pi-lifecycle.ts +21 -0
  86. package/src/herdr-poll.ts +52 -2
  87. package/src/herdr-start.ts +20 -0
  88. package/src/index.ts +17 -0
  89. package/src/intent-application.ts +3 -2
  90. package/src/measured-order.ts +67 -0
  91. package/src/measured-session.ts +70 -0
  92. package/src/run-herdr.ts +28 -40
  93. package/src/vendor/herdr-pi-lifecycle.ts +257 -0
  94. package/src/work-command.ts +8 -2
package/CHANGELOG.md CHANGED
@@ -12,6 +12,27 @@ the record of how the package got here and are worth keeping; they are not worth
12
12
  > the record of how the package arrived at what it does, and because the reasoning behind each one is
13
13
  > usually the clearest statement of why the current behaviour is what it is.
14
14
 
15
+ ## 0.25.1 — reliable Herdr child completion (2026-09-12)
16
+
17
+ - Fix a governed child finishing while its parent keeps waiting with Pi 0.85.1 and Herdr 0.8.2.
18
+ Children explicitly load the pinned, lifecycle-only Herdr integration; general extension discovery
19
+ stays disabled and the granted tool surface is unchanged.
20
+ - Require native idle activation before prompting and a newer terminal sequence before settlement.
21
+ Missing activation or stale terminal state refuses within a bounded wait and cleans up the child.
22
+ - Preserve existing public exports and ship the upstream Apache-2.0 notice and license.
23
+ - Verified route: Pi 0.85.1 / Herdr 0.8.2. Ordinary subprocess compatibility is unchanged.
24
+ This does not repair standalone Herdr screen detection or the separate first-use host setup errors.
25
+
26
+ ## 0.25.0 — practical daily steering and measured orders (2026-09-12)
27
+
28
+ - Add protocol-safe dashboard relink, exact active-attempt cancellation and durable measured-session spawn acknowledgement. Unknown/protocol-incompatible plugins still fail closed.
29
+ - Add labelled daily priority, recorded scope-successor and same-scope alternative actions through existing intent authority/CAS. Scope changes atomically rebind persisted and current-session declared work before ordinary dispatch resumes; active ordinary work suppresses steering actions.
30
+ - Add explicit two-minute closing presence and safe case-card preparation. Missing trust qualification spends zero of the durable five-card ceiling; preparation is not delivery until visibly acknowledged.
31
+ - Add a separate opt-in measured Sol/Terra SDK route with in-memory/no-tool bounds, observed identity, Pi Usage, clean-stop checks and explicit unknown state for launched nonsettling attempts. Pi catalog cost is not subscription billing and ordinary print-child Usage remains unavailable.
32
+ - Add package-exported bounded measured DAG orders with exact and deterministic free-form output qualification, complete sealed predecessor bytes/hash, original-owner unknown accounting, exact acknowledgement before declared recovery and inode-pinned append journals.
33
+ - Export the production daily host through the package root and `pi-daddy/daily-dashboard-host`; retain the exact skill-harness 0.15.0 bridge pin and learning-lifecycle navigation.
34
+ - Prior real NWS Sol/Terra outputs remain direct SDK comparison evidence. Offline contract validation is a no-model replay, not a new packaged measured-order occurrence. Human trust calibration, quality choice, configured adoption and later outcomes remain separate.
35
+
15
36
  ## 0.24.0 — declared daily work and concurrent variants (2026-09-11)
16
37
 
17
38
  - Add `pi-daddy work add --id <id> --outcome <text>`: retain a digest-only selected obligation, reject changed redelivery and unsupported destinations, and join ordinary governed attempts without storing outcome prose. Runtime completion remains distinct from acceptance.
package/README.md CHANGED
@@ -168,8 +168,9 @@ delegate_all({ children: [ {…}, {…}, {…} ] }) // several
168
168
  - **Fan-out stays bounded and waits for all by default.** At most 8 children per call, and the subtree budget
169
169
  bounds the whole tree. Every child uses the same plan-gate-audit path. The opt-in
170
170
  `completion:"primary", primary:N` form returns when that one-based child settles while the original
171
- session retains bounded role/outcome accounting for its shadows; `/grants variants` displays it. Shadow
172
- failure or later cancellation cannot replace/delay the primary result. This is not detached job recovery:
171
+ session retains bounded role/outcome accounting for its shadows; `/grants variants` displays it and explicitly
172
+ labels child provider usage unavailable because the print transport retains no Pi `Usage` event. Fan-out,
173
+ output bytes and wall time remain controller-bounded. Shadow failure or later cancellation cannot replace/delay the primary result. This is not detached job recovery:
173
174
  process exit ends ownership, and there is no retry, acceptance, winner selection or result-text store.
174
175
  - **One child can be refused while its siblings succeed**, and every outcome is reported. A fan-out that
175
176
  hid its refusals would let an orchestrator summarise four reviews when only three happened.
@@ -236,9 +237,16 @@ depth 2 · 1 active
236
237
 
237
238
  The plugin ships inside pi-daddy and is linked globally only after an explicit **Install and open** choice.
238
239
  Literal **Not now** and **Never ask** choices are persisted; dismissing or losing the dialog stores nothing.
240
+ If the same plugin ID points at another package root after an isolated install or upgrade, startup offers an
241
+ explicit **Relink and open** repair. **Not now** or dismissal leaves both the existing link and prompt preference
242
+ unchanged; protocol mismatches are not replaced by guesswork.
239
243
  A connected host can publish exact pre-authorized actions as short commands such as `pause-new-dispatch` or `defer-weekly`; the dashboard lists their human labels and accepts the key followed by Enter. The host resolves the key to its current CAS-bound request, so a person does not type JSON or tokens. Unknown/stale keys refuse before effects; raw JSON remains compatibility-only.
240
244
 
241
- With pi-daddy 0.24.0 and skill-harness 0.14.0 loaded, declare work, reload, then run `/grants host <fresh-id>`. This creates one process-owned daily host, captures the current work/facts sources, publishes its private socket to `/grants dashboard`, and lists `pause-new-dispatch` or `resume-dispatch` plus `refresh-current-work`. Refresh is a deliberate action that atomically mirrors the current declared ledger and advances the existing source checkpoint; periodic dashboard redraw remains read-only. Pausing blocks only new governed ordinary children; a child already running keeps its original caller/result. `/grants host stop` closes the host and never cancels a child. Restart uses a fresh id; no PID, JSON/CAS envelope or prior controller is recovered.
245
+ With pi-daddy 0.25.0 and skill-harness 0.15.0 loaded, declare work, reload, then run `/grants host <fresh-id>`. Library hosts can use the explicit `pi-daddy/daily-dashboard-host` export. This creates one process-owned daily host, captures the current work/facts sources, publishes its private socket to `/grants dashboard`, and lists `pause-new-dispatch` or `resume-dispatch` plus `refresh-current-work`. Compatible recorded P01 snapshots and selected obligations also become labelled scope-successor, alternative, and put-first actions; choosing one still passes exact intent authority and host/selection/tip CAS, then atomically rebinds both persisted and current-session declared work before new ordinary dispatch is released. Refresh is a deliberate action that atomically mirrors the current declared ledger and advances the existing source checkpoint; periodic dashboard redraw remains read-only. Pausing blocks only new governed ordinary children; a child already running keeps its original caller/result. An active retained child also gets an exact `cancel-exec-…` action (up to the ordinary eight-child width); choosing it requests abort through the original handle without cancelling siblings or implying acceptance/rejection. `/grants host closing` declares two minutes of explicit closing presence; only a paused, reservation-free, ordinary-quiescent host offers case-card preparation, and absent trust qualification defers without spending the five-card budget. `/grants host stop` closes the host and never cancels a child. Restart uses a fresh id; no PID, user-entered JSON/CAS envelope or prior controller is recovered.
246
+
247
+ The separate `pi-daddy/measured-order` export composes no-tool measured Sol/Terra sessions into a bounded dependent order. Every retry and deterministic output contract is predeclared; bounded JSON projection contracts admit free-form prose without pre-knowing the whole artifact hash, and dependent prompts consume the actual retained predecessor output with its observed seal. A reopened controller treats another owner's unfinished claim as unknown and cannot replay it; an independently authorized exact acknowledgement can consume that schedule position, but never refunds or settles the original resource reservation. See ADR-0072.
248
+
249
+ The final candidate requirement/code/evidence index and exact unresolved human actions are in [`docs/FINAL-READINESS-INDEX.md`](../../docs/FINAL-READINESS-INDEX.md).
242
250
 
243
251
  `/grants dashboard` never installs silently and prints the exact manual command when the plugin is absent. It
244
252
  checks the bundled plugin root and protocol before suggesting that a disabled plugin be enabled. Panes and
@@ -879,4 +887,4 @@ Known gaps, stated because a gap nobody wrote down is the one that surprises som
879
887
 
880
888
  `docs/SPEC.md` in the repository is the authoritative current-state document; the ADRs hold the reasoning.
881
889
 
882
- Requires pi ≥ 0.83.0, Node ≥ 22.19. MIT.
890
+ Requires pi ≥ 0.83.0 and Node ≥ 22.19. The ordinary subprocess route retains that floor; the bundled native Herdr lifecycle child route is verified with Herdr 0.8.2 and Pi 0.85.1 and refuses if its lifecycle authority cannot activate. MIT.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,7 @@
1
+ # Third-party notices
2
+
3
+ ## Herdr Pi lifecycle integration
4
+
5
+ `src/vendor/herdr-pi-lifecycle.ts` is the unmodified official Herdr Pi lifecycle integration, copied from Herdr `v0.8.2`, blob `67bc41889abc2791d6dcdfe8279bdc24186cc6fe` (SHA-256 `9b1c41cd72520fc2abe5f2a2aec995c12a926cce844df472c7fd5fcae4f4dbfa`).
6
+
7
+ It is licensed under Apache License 2.0. A copy of that license is distributed at `THIRD_PARTY_LICENSES/herdr-Apache-2.0.txt`.
@@ -1,7 +1,7 @@
1
1
  # pi-daddy work-v4 contract — candidate
2
2
 
3
3
  **Opt-in source candidate, not production acceptance integration.** At release preparation on 2026-09-11,
4
- the package version is staged as 0.24.0; consult npm and GitHub Releases for current publication status.
4
+ the package version is staged as 0.25.0; consult npm and GitHub Releases for current publication status.
5
5
  This directory declares the versioned package artifacts; their presence does not establish compiled exports,
6
6
  installed-package behavior, task acceptance or qualification.
7
7
  See [SPEC](../../../../../docs/SPEC.md#opt-in-work-v4-evidence-candidate) and
@@ -1,7 +1,18 @@
1
1
  import { type DashboardHostRequest } from "./dashboard-host.ts";
2
2
  import type { DashboardHarness } from "./dashboard-host-contract.ts";
3
- import type { DeclaredWorkState } from "./work-command.ts";
4
- import type { OrdinaryChildren } from "./ordinary-children.ts";
3
+ import { type DeclaredWorkState } from "./work-command.ts";
4
+ import { type OrdinaryChildren } from "./ordinary-children.ts";
5
+ import { type IntentPriority, type IntentSelection } from "./intent-control.ts";
6
+ import { type WorkRevisionEvent, type WorkSnapshotEvent } from "./work-ledger.ts";
7
+ export interface DailyIntentAction {
8
+ key: string;
9
+ label: string;
10
+ action: "revise-scope" | "reprioritize" | "select-alternative";
11
+ fromSelection: IntentSelection;
12
+ events: (WorkRevisionEvent | WorkSnapshotEvent)[];
13
+ selection: IntentSelection;
14
+ priorities: IntentPriority[];
15
+ }
5
16
  export interface DailyDashboardHostInput {
6
17
  id: string;
7
18
  cwd: string;
@@ -11,7 +22,18 @@ export interface DailyDashboardHostInput {
11
22
  ordinary: OrdinaryChildren;
12
23
  harness: DashboardHarness;
13
24
  author: string;
25
+ priorities?: IntentPriority[];
26
+ intentActions?: DailyIntentAction[];
27
+ presence?: () => {
28
+ present: boolean;
29
+ closing: boolean;
30
+ evidenceDigest: string;
31
+ expiresAt: number;
32
+ } | null;
33
+ onDeclaredWorkChanged?: (state: DeclaredWorkState) => void | Promise<void>;
14
34
  }
35
+ /** Recorded P01 snapshots become labelled proposals; choosing a label still traverses intent validation and exact host/CAS authority. */
36
+ export declare function discoverDailyIntentActions(text: string, selection: IntentSelection, priorities: readonly IntentPriority[]): DailyIntentAction[];
15
37
  /** One explicitly started, process-owned daily host. No authority, controller or prior host is recovered from disk. */
16
38
  export declare function startDailyDashboardHost(input: DailyDashboardHostInput): Promise<Readonly<{
17
39
  host: Readonly<{
@@ -25,6 +47,7 @@ export declare function startDailyDashboardHost(input: DailyDashboardHostInput):
25
47
  tip: string;
26
48
  source: unknown;
27
49
  controls: unknown;
50
+ learning: unknown;
28
51
  debrief: unknown;
29
52
  attention: {
30
53
  policyId: string;
@@ -55,6 +78,7 @@ export declare function startDailyDashboardHost(input: DailyDashboardHostInput):
55
78
  tip: string;
56
79
  source: unknown;
57
80
  controls: unknown;
81
+ learning: unknown;
58
82
  debrief: unknown;
59
83
  attention: {
60
84
  policyId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"daily-dashboard-host.d.ts","sourceRoot":"","sources":["../src/daily-dashboard-host.ts"],"names":[],"mappings":"AAGA,OAAO,EAA+H,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC7L,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAKrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,MAAM,WAAW,uBAAuB;IAAE,EAAE,EAAC,MAAM,CAAC;IAAA,GAAG,EAAC,MAAM,CAAC;IAAA,SAAS,EAAC,MAAM,CAAC;IAAA,UAAU,CAAC,EAAC,MAAM,CAAC;IAAA,QAAQ,EAAC,iBAAiB,CAAC;IAAA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AQ,EAAC,iBAAiB,CAAC;IAAA,QAAQ,EAAC,gBAAgB,CAAC;IAAA,OAAO,EAAC,gBAAgB,CAAC;IAAA,MAAM,EAAC,MAAM,CAAC;IAAA,UAAU,CAAC,EAAC,cAAc,EAAE,CAAC;IAAA,aAAa,CAAC,EAAC,iBAAiB,EAAE,CAAC;IAAA,QAAQ,CAAC,EAAC,MAAI;QAAC,OAAO,EAAC,OAAO,CAAC;QAAA,OAAO,EAAC,OAAO,CAAC;QAAA,cAAc,EAAC,MAAM,CAAC;QAAA,SAAS,EAAC,MAAM,CAAA;KAAC,GAAC,IAAI,CAAC;IAAA,qBAAqB,CAAC,EAAC,CAAC,KAAK,EAAC,iBAAiB,KAAG,IAAI,GAAC,OAAO,CAAC,IAAI,CAAC,CAAA;CAAC;AAIha,yIAAyI;AACzI,wBAAgB,0BAA0B,CAAC,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,eAAe,EAAC,UAAU,EAAC,SAAS,cAAc,EAAE,GAAE,iBAAiB,EAAE,CAazI;AAED,uHAAuH;AACvH,wBAAsB,uBAAuB,CAAC,KAAK,EAAC,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgD1E"}
@@ -3,12 +3,49 @@ import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
3
3
  import { isAbsolute, resolve, join } from "node:path";
4
4
  import { createDashboardHost, dashboardHostDigest, dashboardHostRequestDigest } from "./dashboard-host.js";
5
5
  import { loadedDashboardHarnessDigest } from "./dashboard-harness.js";
6
- import { createDispatchBudget, openResourceBudget, resourceBindingDigest } from "./resource-budget.js";
6
+ import { createIntentBudget, openResourceBudget, resourceBindingDigest } from "./resource-budget.js";
7
7
  import { dispatchRequestDigest } from "./dispatch-control.js";
8
8
  import { serveDashboardHost } from "./dashboard-host-transport.js";
9
+ import { rebindDeclaredWork } from "./work-command.js";
10
+ import { ordinaryCancellation, ordinaryCancellationDigest } from "./ordinary-children.js";
9
11
  import { dataDigest } from "./debrief-contract.js";
12
+ import { bindWorkIntent } from "./intent-application.js";
13
+ import { intentKey, intentRequest, intentRequestDigest } from "./intent-control.js";
14
+ import { parseWorkLedgerText } from "./work-ledger.js";
15
+ import { resolveWorkSnapshotText } from "./work-ledger-snapshot.js";
10
16
  const idPattern = /^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/;
11
17
  const hash = (value) => createHash("sha256").update(value).digest("hex");
18
+ const same = (a, b) => intentKey(a) === intentKey(b);
19
+ /** Recorded P01 snapshots become labelled proposals; choosing a label still traverses intent validation and exact host/CAS authority. */
20
+ export function discoverDailyIntentActions(text, selection, priorities) {
21
+ const parsed = parseWorkLedgerText(text);
22
+ if (!parsed.complete || parsed.events.length > 512)
23
+ throw Error("bounded complete recorded proposal ledger required");
24
+ const label = (value) => value.length <= 80 ? value : `${value.slice(0, 67)}…${hash(value).slice(0, 12)}`;
25
+ const current = resolveWorkSnapshotText(text, selection);
26
+ if (current.scopeState !== "valid" || !current.scope || !current.snapshot)
27
+ throw Error("current declared work unavailable");
28
+ const actions = [];
29
+ for (const priority of priorities.slice(1)) {
30
+ const ordered = [priority, ...priorities.filter(x => !same(x.obligation, priority.obligation))].map((x, rank) => ({ ...x, rank }));
31
+ actions.push({ key: `priority-${hash(intentKey(priority.obligation)).slice(0, 12)}`, label: `Put ${label(priority.obligation.id)} first`, action: "reprioritize", fromSelection: selection, events: [], selection, priorities: ordered });
32
+ }
33
+ for (const event of parsed.events) {
34
+ if (event.event !== "work_snapshot")
35
+ continue;
36
+ const candidate = { snapshot: { id: event.payload.snapshot.snapshotId, digest: event.payload.snapshot.digest }, event: { eventId: event.eventId, digest: event.digest } };
37
+ if (same(candidate, selection))
38
+ continue;
39
+ const next = resolveWorkSnapshotText(text, candidate);
40
+ if (next.scopeState !== "valid" || !next.scope || !next.snapshot || next.snapshot.bindings.length > 32)
41
+ continue;
42
+ const action = next.scope.digest === current.scope.digest ? "select-alternative" : next.scope.predecessor && same(next.scope.predecessor, { kind: current.scope.kind, id: current.scope.id, revision: current.scope.revision, digest: current.scope.digest }) ? "revise-scope" : null;
43
+ if (!action)
44
+ continue;
45
+ actions.push({ key: `${action === "revise-scope" ? "scope" : "alternative"}-${hash(intentKey(candidate)).slice(0, 12)}`, label: `Select recorded ${action === "revise-scope" ? "scope" : "alternative"} ${label(event.payload.snapshot.snapshotId)}`, action, fromSelection: selection, events: [], selection: candidate, priorities: next.snapshot.bindings.map((b, rank) => ({ obligation: b.obligation, rank })) });
46
+ }
47
+ return actions.sort((a, b) => a.key.localeCompare(b.key)).slice(0, 8);
48
+ }
12
49
  /** One explicitly started, process-owned daily host. No authority, controller or prior host is recovered from disk. */
13
50
  export async function startDailyDashboardHost(input) {
14
51
  if (!idPattern.test(input.id) || !isAbsolute(input.cwd) || resolve(input.cwd) !== input.cwd || !isAbsolute(input.directory) || resolve(input.directory) !== input.directory || !input.author.trim() || input.author.length > 256)
@@ -22,7 +59,7 @@ export async function startDailyDashboardHost(input) {
22
59
  const archiveRoot = join(input.directory, "archive");
23
60
  await mkdir(archiveRoot, { mode: 0o700 });
24
61
  const reference = input.harness.retainArchiveSource(archiveRoot, { sourceId: `host-${input.id}-bootstrap`, parser: { id: "daily-host-bootstrap", version: "1" }, retention: "exact", bytes: Buffer.from("explicit daily host bootstrap") });
25
- const component = { kind: "detector", id: "retained-work", version: "1", population: `daily:${input.id}` };
62
+ const component = { kind: "detector", id: "coverage_gap", version: "work-signals-v1:declared-work-v1", population: `daily:${input.id}` };
26
63
  const trustInput = { archiveRoot, component, seed: hash(`daily-host\0${input.id}`), maxUnflagged: 0, cohort: [{ incidentId: "bootstrap", manifestId: reference.manifestId, flagged: true, split: "calibration" }], exposure: null };
27
64
  const trustPolicyId = input.harness.trustPolicyDigest(trustInput), trustDirectory = join(input.directory, "trust");
28
65
  input.harness.createTrustLifecycle(trustDirectory, trustInput, [trustPolicyId]);
@@ -40,11 +77,16 @@ export async function startDailyDashboardHost(input) {
40
77
  const policy = { version: "archive-policy-v2", id: `daily-${input.id}`, revision: "1", sourceRoot: input.directory, archiveRoot, maxBytes: 8 * 1024 * 1024, retention: "exact", expiresAt: new Date(Date.now() + 24 * 60 * 60 * 1000).toISOString(), sources: [{ id: "work", path: workRelative, parser: { id: "pi-daddy-work-ledger", version: "4" }, contentPolicy: "manifest-only" }, { id: "facts", path: factsRelative, parser: { id: "pi-daddy-work-signal-facts", version: "1" }, contentPolicy: "manifest-only" }] };
41
78
  const policyPath = join(input.directory, "archive-policy.json"), policyBytes = JSON.stringify(policy);
42
79
  await writeFile(policyPath, policyBytes, { mode: 0o600, flag: "wx" });
43
- const authorityDigest = dataDigest({ kind: "daily-dashboard-host", id: input.id, cwd: input.cwd }), budget = await createDispatchBudget({ directory: join(input.directory, "budget"), authorityDigest, limits: { maxAttempts: 6, maxInputBytes: 65536, maxConcurrent: 3 } });
80
+ const authorityDigest = dataDigest({ kind: "daily-dashboard-host", id: input.id, cwd: input.cwd }), initialPriorities = input.priorities ?? [{ obligation: input.declared.obligation, rank: 0 }];
81
+ const workIntent = await bindWorkIntent({ path: input.declared.ledgerPath, grantLedgerPath: input.declared.grantLedgerPath, selection: input.declared.selectedSnapshot, priorities: initialPriorities });
82
+ const budget = await createIntentBudget({ directory: join(input.directory, "budget"), authorityDigest, limits: { maxAttempts: 6, maxInputBytes: 65536, maxConcurrent: 3 } }, workIntent);
44
83
  const config = { version: "producer-dashboard-host-v1", trustDirectory, trustPolicyId, archiveRoot, scope: `daily:${input.id}`, author: input.author, policyPath, policySha256: hash(policyBytes), sources: [{ id: "work", kind: "work" }, { id: "facts", kind: "facts" }], selection: input.declared.selectedSnapshot, cases: null, blind: null, budgetDigest: resourceBindingDigest(budget), experimentDigest: null, harnessArtifactDigest: harnessDigest, ordinaryDigest: input.ordinary.bindingDigest };
45
- const requestDigests = new Set(), dispatchDigests = new Set();
46
- let host, factsResultManifest = null;
47
- const authority = () => ({ hostDigests: [dashboardHostDigest(config)], requestDigests: [...requestDigests], workContext: { selectedSnapshot: config.selection, authority: null }, dispatch: { authorityDigest, requestDigests: [...dispatchDigests] }, experiment: null });
84
+ const proposals = input.intentActions ?? [];
85
+ if (proposals.length > 8 || new Set(proposals.map(x => x.key)).size !== proposals.length || proposals.some(x => !idPattern.test(x.key) || typeof x.label !== "string" || !x.label.trim() || Buffer.byteLength(x.label) > 120))
86
+ throw Error("bounded friendly intent actions required");
87
+ const requestDigests = new Set(), dispatchDigests = new Set(), ordinaryDigests = new Set();
88
+ let host, factsResultManifest = null, workSelection = input.declared.selectedSnapshot, declaredState = input.declared, reboundSnapshotId = null;
89
+ const authority = () => ({ hostDigests: [dashboardHostDigest(config)], requestDigests: [...requestDigests], workContext: { selectedSnapshot: workSelection, authority: null }, dispatch: { authorityDigest, requestDigests: [...dispatchDigests] }, experiment: null, ordinary: { bindingDigest: input.ordinary.bindingDigest, requestDigests: [...ordinaryDigests] } });
48
90
  const request = (context, operation, payload, requestId) => ({ version: "1.0", requestId, hostDigest: context.hostDigest, selectionDigest: context.selectionDigest, expectedTip: context.tip, operation, payload });
49
91
  host = createDashboardHost({ harness: input.harness, config, budget, ordinary: input.ordinary, authority, beforeObservation: sourceId => sourceId === "work" ? refreshWork() : Promise.resolve(), humanActions: async (context) => {
50
92
  const state = await openResourceBudget(budget).controls(null).inspect(), action = state.paused ? "resume-dispatch" : "pause-dispatch", key = state.paused ? "resume-dispatch" : "pause-new-dispatch";
@@ -54,8 +96,36 @@ export async function startDailyDashboardHost(input) {
54
96
  requestDigests.add(dashboardHostRequestDigest(hostRequest));
55
97
  const previous = context.observations.find(x => x.sourceId === "work")?.checkpointId ?? null, refresh = request(context, "observe", { sourceId: "work", previousCheckpointId: previous, facts: context.observations.find(x => x.sourceId === "facts")?.checkpointId ? factsResultManifest : null }, `refresh-work:${state.revision}:${context.tip.slice(0, 12)}`);
56
98
  requestDigests.add(dashboardHostRequestDigest(refresh));
57
- return [{ key, label: state.paused ? "Resume new governed dispatch" : "Pause new governed dispatch; running children continue", request: hostRequest }, { key: "refresh-current-work", label: "Capture current declared work and attempts", request: refresh }];
58
- } });
99
+ const intentState = await openResourceBudget(budget).intentControls(null).inspect(), automatic = discoverDailyIntentActions(await readFile(input.declared.ledgerPath, "utf8"), intentState.selection, intentState.priorities);
100
+ const candidates = [...proposals, ...automatic].filter((p, index, all) => all.findIndex(x => x.key === p.key) === index).filter(p => p.action === "reprioritize" || Boolean(input.onDeclaredWorkChanged)).slice(0, 8);
101
+ const intents = (input.ordinary.quiescent() ? candidates : []).filter(p => intentKey(p.fromSelection) === intentKey(intentState.selection)).map(p => {
102
+ const native = intentRequest({ version: "intent-request-v1", requestId: `${p.key}:${intentState.revision}`, bindingDigest: config.budgetDigest, expectedRevision: intentState.revision, expectedSelection: intentState.selection, action: p.action, events: p.events, selection: p.selection, priorities: p.priorities });
103
+ dispatchDigests.add(intentRequestDigest(native));
104
+ const proposed = request(context, "intent", native, `host-intent:${p.key}:${intentState.revision}`);
105
+ requestDigests.add(dashboardHostRequestDigest(proposed));
106
+ return { key: p.key, label: p.label, request: proposed };
107
+ });
108
+ const ordinary = input.ordinary.inspect(), accounting = await openResourceBudget(budget).inspect(), presence = input.presence?.();
109
+ const presentation = [];
110
+ if (context.preparedPresentationDigest) {
111
+ const shown = request(context, "presented", { frameDigest: context.preparedPresentationDigest }, `host-presented:${state.revision}:${context.tip.slice(0, 12)}`);
112
+ requestDigests.add(dashboardHostRequestDigest(shown));
113
+ presentation.push({ key: "acknowledge-case-cards", label: "Acknowledge these case cards are visible", request: shown });
114
+ }
115
+ else if (presence?.present === true && presence.closing === true && presence.expiresAt > Date.now() && state.paused && accounting.active === 0 && !ordinary.children.some(row => row.state === "active")) {
116
+ const present = request(context, "present", { userPresent: true, closing: true, evidenceDigest: presence.evidenceDigest, dispatchRevision: state.revision }, `host-present:${state.revision}:${context.tip.slice(0, 12)}`);
117
+ requestDigests.add(dashboardHostRequestDigest(present));
118
+ presentation.push({ key: "prepare-case-cards", label: "Prepare up to five retained case cards", request: present });
119
+ }
120
+ const cancellations = ordinary.children.filter(row => row.state === "active").sort((a, b) => a.target.executionId.localeCompare(b.target.executionId)).slice(0, 8).map(row => {
121
+ const native = ordinaryCancellation({ version: "ordinary-cancel-v1", requestId: `cancel:${row.target.executionId.slice(5)}`, bindingDigest: input.ordinary.bindingDigest, expectedRevision: ordinary.revision, target: row.target });
122
+ ordinaryDigests.add(ordinaryCancellationDigest(native));
123
+ const cancel = request(context, "ordinary-cancel", native, `host-cancel:${row.target.executionId.slice(5)}:${ordinary.revision}`);
124
+ requestDigests.add(dashboardHostRequestDigest(cancel));
125
+ return { key: `cancel-${row.target.executionId.replace(":", "-")}`, label: `Cancel running attempt ${row.target.executionId}`, request: cancel };
126
+ });
127
+ return [{ key, label: state.paused ? "Resume new governed dispatch" : "Pause new governed dispatch; running children continue", request: hostRequest }, { key: "refresh-current-work", label: reboundSnapshotId ? `Capture rebound declared work; next dispatch uses ${reboundSnapshotId}` : "Capture current declared work and attempts", request: refresh }, ...intents, ...presentation, ...cancellations];
128
+ }, afterIntentApplied: async (selection) => { const rebound = await rebindDeclaredWork(declaredState, selection); declaredState = rebound; workSelection = selection; reboundSnapshotId = selection.snapshot.id; await input.onDeclaredWorkChanged?.(rebound); }, presence: input.presence });
59
129
  const before = await host.frame(), observeFacts = request({ hostDigest: host.hostDigest, selectionDigest: before.selectionDigest, tip: before.tip }, "observe", { sourceId: "facts", previousCheckpointId: null, facts: null }, "observe-current-facts");
60
130
  requestDigests.add(dashboardHostRequestDigest(observeFacts));
61
131
  const factsResult = await host.action(observeFacts);
@@ -1 +1 @@
1
- {"version":3,"file":"daily-dashboard-host.js","sourceRoot":"","sources":["../src/daily-dashboard-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,SA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B;AAED,wBAAsB,oBAAoB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA2BrG;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAKzG"}
@@ -50,18 +50,27 @@ export async function offerDashboardHandshake(input) {
50
50
  const plugin = await inspectDashboardPlugin(exec, input.pluginRoot);
51
51
  if (plugin.state === "compatible")
52
52
  return "already-installed";
53
- if (plugin.state !== "absent") {
53
+ const replacingDifferentPackage = plugin.state === "incompatible" && plugin.incompatibility === "package-root";
54
+ if (plugin.state !== "absent" && !replacingDifferentPackage) {
54
55
  input.ui.notify(`pi-daddy dashboard: ${plugin.diagnostic}`, "error");
55
56
  return "failed";
56
57
  }
57
- const choice = await input.ui.select("Herdr detected. Install and open the pi-daddy dashboard?", ["Install and open", "Not now", "Never ask"]);
58
- if (choice !== "Install and open" && choice !== "Not now" && choice !== "Never ask") {
58
+ const affirmative = replacingDifferentPackage ? "Relink and open" : "Install and open";
59
+ const choices = replacingDifferentPackage ? [affirmative, "Not now"] : [affirmative, "Not now", "Never ask"];
60
+ const choice = await input.ui.select(replacingDifferentPackage
61
+ ? "The pi-daddy dashboard is linked from a different package. Relink this bundled copy and open it?"
62
+ : "Herdr detected. Install and open the pi-daddy dashboard?", choices);
63
+ if (!choices.includes(choice ?? "")) {
59
64
  // Escape, timeout and UI teardown return undefined. None is an operator choice, so none may become a
60
65
  // durable preference merely because the dialog disappeared.
61
66
  input.ui.notify("pi-daddy dashboard: installation prompt dismissed; no preference was stored.", "info");
62
67
  return "deferred";
63
68
  }
64
- if (choice !== "Install and open") {
69
+ if (choice !== affirmative) {
70
+ if (replacingDifferentPackage) {
71
+ input.ui.notify("pi-daddy dashboard: existing link unchanged; no preference was stored.", "info");
72
+ return "deferred";
73
+ }
65
74
  const recorded = choice === "Never ask" ? "never" : "not-now";
66
75
  await savePreference(input.preferencePath, recorded);
67
76
  input.ui.notify(recorded === "never"