pi-harness-runtime 1.1.470 → 1.1.471
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/harness/pending-countdown.ts +12 -37
- package/index.ts +434 -277
- package/package.json +1 -1
- package/packages/agent-policy/package.json +1 -1
- package/packages/auth/package.json +1 -1
- package/packages/autonomous-runtime/package.json +1 -1
- package/packages/checkpoint/package.json +1 -1
- package/packages/clipboard/package.json +1 -1
- package/packages/codex-watcher/package.json +1 -1
- package/packages/config-capture/package.json +1 -1
- package/packages/contracts/package.json +1 -1
- package/packages/cookie-sanitizer/package.json +1 -1
- package/packages/evaluation-engine/package.json +1 -1
- package/packages/event-bus/package.json +1 -1
- package/packages/event-store/package.json +1 -1
- package/packages/experience-replay/package.json +1 -1
- package/packages/file-copy-helper/package.json +1 -1
- package/packages/intent-analyzer/package.json +1 -1
- package/packages/jev-judge/dist/auto-continue.d.ts +44 -2
- package/packages/jev-judge/dist/auto-continue.d.ts.map +1 -1
- package/packages/jev-judge/dist/auto-continue.js +81 -13
- package/packages/jev-judge/dist/auto-continue.js.map +1 -1
- package/packages/jev-judge/dist/index.d.ts +3 -1
- package/packages/jev-judge/dist/index.d.ts.map +1 -1
- package/packages/jev-judge/dist/index.js +5 -1
- package/packages/jev-judge/dist/index.js.map +1 -1
- package/packages/jev-judge/dist/question-risk.d.ts +24 -0
- package/packages/jev-judge/dist/question-risk.d.ts.map +1 -1
- package/packages/jev-judge/dist/question-risk.js +78 -5
- package/packages/jev-judge/dist/question-risk.js.map +1 -1
- package/packages/jev-judge/dist/wait-lifecycle.d.ts +248 -0
- package/packages/jev-judge/dist/wait-lifecycle.d.ts.map +1 -0
- package/packages/jev-judge/dist/wait-lifecycle.js +308 -0
- package/packages/jev-judge/dist/wait-lifecycle.js.map +1 -0
- package/packages/jev-judge/package.json +1 -1
- package/packages/jev-judge/src/auto-continue.ts +110 -13
- package/packages/jev-judge/src/index.ts +16 -1
- package/packages/jev-judge/src/question-risk.ts +96 -5
- package/packages/jev-judge/src/wait-lifecycle.ts +488 -0
- package/packages/knowledge-retrieval/package.json +1 -1
- package/packages/learning-engine/package.json +1 -1
- package/packages/logging/package.json +1 -1
- package/packages/memory-engine/package.json +1 -1
- package/packages/notification/package.json +1 -1
- package/packages/paperclip-integration/package.json +1 -1
- package/packages/performance-optimizer/package.json +1 -1
- package/packages/privilege-broker/package.json +1 -1
- package/packages/prompt-compiler/package.json +1 -1
- package/packages/providers/package.json +1 -1
- package/packages/qdrant-skills/package.json +1 -1
- package/packages/quota-manager/package.json +1 -1
- package/packages/relay/package.json +1 -1
- package/packages/skill-mcp-client/package.json +1 -1
- package/packages/skills/package.json +1 -1
- package/packages/todo-bd-sync/package.json +1 -1
- package/packages/token-estimation/package.json +1 -1
- package/packages/tooling-preference/package.json +1 -1
- package/packages/trajectory/package.json +1 -1
- package/packages/tui/package.json +1 -1
- package/packages/two-phase-review/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/webmcp-tester/package.json +1 -1
- package/packages/wiki/package.json +1 -1
- package/packages/write-review/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.471](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.471) (2026-11-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **delegation:** a child is only a child when it really ran ([ac4e678](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ac4e6782d7d4bc4941e458425c8a9f38a51fc9d4))
|
|
11
|
+
* **delegation:** the scope of a request is measured before it is judged ([684b6a5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/684b6a55184f63d3be24c48dcecfb0b13410dc15))
|
|
12
|
+
* **honcho:** the memory service speaks the native MCP of Pi ([f9f740c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f9f740c12869bae4c4380afbe8c76e12388bb744))
|
|
13
|
+
* **jev:** one decision per question, bound to the question it was evaluated for ([03448aa](https://github.com/ManotLuijiu/pi-harness-runtime/commit/03448aaa17f2d0c3bcf644b0b1d5949727dfff8c))
|
|
14
|
+
* **jev:** the evaluation of a choice sees what the options mean ([f0c207e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f0c207e074701e6b7dab0965170ec39453d9d502))
|
|
15
|
+
* **jev:** the pending question carries the ask and the answer ([a792133](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a792133e517fb8c12d3363e98942f3af30270f27))
|
|
16
|
+
* **jev:** the pending question counts down to the decision ([d0cc171](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0cc171223986b2d32c670b6c1c74712fe0a4ad8))
|
|
17
|
+
* **keys:** the key files are repaired when their permissions are unsafe ([e9c2c26](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e9c2c26b287665b56ed749de269737e8403bb8af))
|
|
18
|
+
* **mcp:** the harness connects the registered servers when nobody else does ([7fef951](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7fef95137ad4664df57f045cd91b7d233315b0bc))
|
|
19
|
+
* **merge:** a manual run can leave the merge to the pull request event ([b3d1950](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b3d1950b5941c78ccd56951acdafd1d4afbe1bff))
|
|
20
|
+
* **phase:** the agent owns the todo list and the harness says so ([c489370](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c489370bd7926aece8cb1a77aa20ca2d2672f1fb))
|
|
21
|
+
* **review:** the review starts on its own when the implementation is done ([04f51f5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/04f51f599cd3222b6c74dd8fadb1373bd72d9bd7))
|
|
22
|
+
* **status:** the status line names the phase, the progress and the children ([0167bf3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/0167bf396a0b987c1d44f3b869351976a951dd65))
|
|
23
|
+
* **test:** the task waits for the final tier of the validation plan ([fa147db](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fa147dbf7d50d56e6ea48c6d8fbb4fcb190caf8a))
|
|
24
|
+
* **validation:** a large job starts with a measured pilot ([425964b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/425964b04a3d4fa02adfabed47ff62c5ec2b9c28))
|
|
25
|
+
* **validation:** the size of a job is a fact, not a phrase ([8aa6c11](https://github.com/ManotLuijiu/pi-harness-runtime/commit/8aa6c119565d0f8412dc8aeafa6b295d47d3f093))
|
|
26
|
+
* **workspace:** a Frappe bench names the mode of the workspace ([9d58517](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d585172063a330992fee933316e268ae9985e3c))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* **ci:** every run of a required check counts, and the worst one decides ([da9e0da](https://github.com/ManotLuijiu/pi-harness-runtime/commit/da9e0da6b0ca29cb320764fd5fc1b8a8dee8b1e0))
|
|
32
|
+
* **ci:** the newest attempt of a run decides, not the attempt that failed ([9d7adcc](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d7adcc31cbacc517c3c1a9bcd3956be94c908ef))
|
|
33
|
+
* **honcho:** the report names the state of the MCP server, not the registration ([762f4d5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/762f4d59e4eabcab9a1c21a61aa522c3267621b3))
|
|
34
|
+
* **hooks:** a tag is checked through the commit behind it ([c823e8e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c823e8e1f6973c62b5449a97c101759a4d5cbba5))
|
|
35
|
+
* **jev:** a session switch ends the wait of the old session ([ca03d39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ca03d399c0d4a1b2dd428ac39836ab53c0e51ab6))
|
|
36
|
+
* **jev:** keep a comparative caveat with the option it constrains ([7be306b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7be306b0d0872713ebca9386d613ae5a8da9d5b6))
|
|
37
|
+
* **jev:** the alternatives of a question are parsed without a quadratic pattern ([63016a3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/63016a3f0488acb801990dd46770c00d382b5858))
|
|
38
|
+
* **jev:** the facts of an option survive the wording of the agent ([5a6250c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5a6250c07aa8d965bc6ae242cccbf519477598f8))
|
|
39
|
+
* **keys:** the key directory is audited as a tree ([081cc75](https://github.com/ManotLuijiu/pi-harness-runtime/commit/081cc75ac8ceff36b0d619c3f76371dc08459d3c))
|
|
40
|
+
* **mcp:** the connector survives a runtime that cannot list the servers ([d0f555f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0f555fa14f51de33591e572a41ded5b59a3e4dd))
|
|
41
|
+
* **merge:** the boolean input is read as a boolean ([971b716](https://github.com/ManotLuijiu/pi-harness-runtime/commit/971b7169a43db382dbdeb6bb9bab02ab56e0351c))
|
|
42
|
+
* **merge:** the manual job needs the right of the merge ([7ba685e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7ba685ec43d815f90aa35b742579e87e76c69209))
|
|
43
|
+
* **merge:** the merge of the pull request is the GraphQL mutation ([972bab4](https://github.com/ManotLuijiu/pi-harness-runtime/commit/972bab4b0f7faf1b0047f3bb767ef6db3de4b2fa))
|
|
44
|
+
* **merge:** the workflow merges the pull request the gates cleared ([d7639ec](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d7639ec9b83723510acb4a5c4e23d5d6167c3af6))
|
|
45
|
+
* **release:** a manual release keeps the version of its manifest ([122e661](https://github.com/ManotLuijiu/pi-harness-runtime/commit/122e661ea48cb8aff14c71dbd0221a4cf0ba4c8e))
|
|
46
|
+
* **release:** the alignment names the reason of a failure ([5814dd0](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5814dd0b780f5839cf8011ed0cbbbb31e7eb0418))
|
|
47
|
+
* **release:** the channels of the package name the release ([a7a273f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a7a273ffe8398e2b5b07ef1c321777de41792c6e))
|
|
48
|
+
* **release:** the release publishes and leaves the channels alone ([5871746](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5871746589c1281d855dbeb591b02419fa43f22e))
|
|
49
|
+
* **release:** the release pull request names the version of its branch ([a846e83](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a846e83e6de6e529f4bca05e869db0b5eebb37c5))
|
|
50
|
+
* **release:** the release scans the tree of the commit it publishes ([7d47a0b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7d47a0b5406480a1e1d3a52623a76aabd1e2d0ba))
|
|
51
|
+
* **workspace:** a strong bench signal decides, and the question is not a fact of an option ([303a828](https://github.com/ManotLuijiu/pi-harness-runtime/commit/303a828f55aa7c4e0a611231f482489b530ff5a3))
|
|
52
|
+
* **workspace:** keep a client name out of the comment about the search depth ([b572e0a](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b572e0af16ff562203bda2b5c47b41807cff5a95))
|
|
53
|
+
* **workspace:** the repository names the mode before the mode stays unknown ([188a32c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/188a32c7a6af1465dd24714278fccc73d06f6477))
|
|
54
|
+
|
|
5
55
|
### [1.1.470](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.470) (2026-11-07)
|
|
6
56
|
|
|
7
57
|
|
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
* and the countdown shows the remaining time in the status row of the TUI
|
|
6
6
|
* and starts the decision of the judge exactly at that deadline.
|
|
7
7
|
*
|
|
8
|
-
* The module owns the
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* wait longer.
|
|
8
|
+
* The module owns the one policy of the wait: the countdown counts down to
|
|
9
|
+
* the deadline of the decision, which is derived from the moment the wait
|
|
10
|
+
* started. The deadline fires once and hands the decision over to the
|
|
11
|
+
* runtime. A question is decided once, so there is no second countdown for
|
|
12
|
+
* a later attempt.
|
|
14
13
|
*
|
|
15
14
|
* The caller cannot pass a deadline of its own: the displayed deadline and
|
|
16
15
|
* the deadline the judge uses therefore cannot drift apart.
|
|
@@ -20,9 +19,6 @@
|
|
|
20
19
|
* one countdown and never a timer without a request.
|
|
21
20
|
*/
|
|
22
21
|
|
|
23
|
-
/** What the countdown counts to. */
|
|
24
|
-
export type CountdownMode = "initial" | "recheck";
|
|
25
|
-
|
|
26
22
|
/** The state of the countdown that is drawn in the status row. */
|
|
27
23
|
export interface CountdownView {
|
|
28
24
|
/** The request the countdown belongs to. */
|
|
@@ -31,8 +27,6 @@ export interface CountdownView {
|
|
|
31
27
|
remainingMs: number;
|
|
32
28
|
/** The remaining time as "MM:SS". */
|
|
33
29
|
remaining: string;
|
|
34
|
-
/** What the countdown counts to. */
|
|
35
|
-
mode: CountdownMode;
|
|
36
30
|
}
|
|
37
31
|
|
|
38
32
|
/** The dependencies of a countdown. */
|
|
@@ -54,8 +48,6 @@ export interface PendingCountdownDeps {
|
|
|
54
48
|
onStop?: (requestId: string | null) => void;
|
|
55
49
|
/** The minutes the judge waits for a human answer. */
|
|
56
50
|
waitMinutes: number;
|
|
57
|
-
/** The milliseconds until the next attempt after the judge asked to wait. */
|
|
58
|
-
recheckIntervalMs: number;
|
|
59
51
|
/** The clock (the tests drive it). */
|
|
60
52
|
now?: () => number;
|
|
61
53
|
/** The timer that drives the ticks (the tests drive it). */
|
|
@@ -107,7 +99,6 @@ export function formatRemainingTime(remainingMs: number): string {
|
|
|
107
99
|
interface CountdownBinding {
|
|
108
100
|
requestId: string;
|
|
109
101
|
deadlineAt: number;
|
|
110
|
-
mode: CountdownMode;
|
|
111
102
|
}
|
|
112
103
|
|
|
113
104
|
/**
|
|
@@ -140,10 +131,11 @@ export class PendingQuestionCountdown {
|
|
|
140
131
|
*/
|
|
141
132
|
private engaged = false;
|
|
142
133
|
/**
|
|
143
|
-
* True when the deadline fired
|
|
134
|
+
* True when the deadline fired.
|
|
144
135
|
*
|
|
145
|
-
* The countdown owns the wait in that state, but it has no timer
|
|
146
|
-
*
|
|
136
|
+
* The countdown owns the wait in that state, but it has no timer any
|
|
137
|
+
* more: the decision was handed over to the runtime. A decision that
|
|
138
|
+
* could not start is taken over by the fallback poll.
|
|
147
139
|
*/
|
|
148
140
|
private deadlineFired = false;
|
|
149
141
|
|
|
@@ -174,11 +166,6 @@ export class PendingQuestionCountdown {
|
|
|
174
166
|
return this.binding?.requestId ?? null;
|
|
175
167
|
}
|
|
176
168
|
|
|
177
|
-
/** What the countdown counts to. */
|
|
178
|
-
get mode(): CountdownMode | null {
|
|
179
|
-
return this.binding?.mode ?? null;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
169
|
/**
|
|
183
170
|
* Start the countdown of a request, or replace the running one.
|
|
184
171
|
*
|
|
@@ -187,17 +174,7 @@ export class PendingQuestionCountdown {
|
|
|
187
174
|
* deadline. The countdown and the judge therefore share one timestamp.
|
|
188
175
|
*/
|
|
189
176
|
start(requestId: string, startedAt: number): void {
|
|
190
|
-
this.begin(requestId, decisionDeadlineAt(startedAt, this.deps.waitMinutes)
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Start the countdown of the next attempt.
|
|
195
|
-
*
|
|
196
|
-
* The judge asked to wait longer: the countdown counts down to the next
|
|
197
|
-
* attempt instead of to the deadline of the decision.
|
|
198
|
-
*/
|
|
199
|
-
startRecheck(requestId: string): void {
|
|
200
|
-
this.begin(requestId, this.now() + this.deps.recheckIntervalMs, "recheck");
|
|
177
|
+
this.begin(requestId, decisionDeadlineAt(startedAt, this.deps.waitMinutes));
|
|
201
178
|
}
|
|
202
179
|
|
|
203
180
|
/**
|
|
@@ -218,11 +195,11 @@ export class PendingQuestionCountdown {
|
|
|
218
195
|
}
|
|
219
196
|
|
|
220
197
|
/** Bind the countdown to a request and start its timer. */
|
|
221
|
-
private begin(requestId: string, deadlineAt: number
|
|
198
|
+
private begin(requestId: string, deadlineAt: number): void {
|
|
222
199
|
this.clearTimer();
|
|
223
200
|
this.generation += 1;
|
|
224
201
|
const generation = this.generation;
|
|
225
|
-
this.binding = { requestId, deadlineAt
|
|
202
|
+
this.binding = { requestId, deadlineAt };
|
|
226
203
|
this.engaged = true;
|
|
227
204
|
this.deadlineFired = false;
|
|
228
205
|
try {
|
|
@@ -282,7 +259,6 @@ export class PendingQuestionCountdown {
|
|
|
282
259
|
requestId: binding.requestId,
|
|
283
260
|
remainingMs: 0,
|
|
284
261
|
remaining: formatRemainingTime(0),
|
|
285
|
-
mode: binding.mode,
|
|
286
262
|
});
|
|
287
263
|
// A failing decision handler must not leave a countdown that owns
|
|
288
264
|
// the wait without a timer: the countdown stops, so the fallback
|
|
@@ -300,7 +276,6 @@ export class PendingQuestionCountdown {
|
|
|
300
276
|
requestId: binding.requestId,
|
|
301
277
|
remainingMs,
|
|
302
278
|
remaining: formatRemainingTime(remainingMs),
|
|
303
|
-
mode: binding.mode,
|
|
304
279
|
});
|
|
305
280
|
}
|
|
306
281
|
|