pi-harness-runtime 1.1.513 → 1.1.515
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/AGENTS.md +23 -0
- package/CHANGELOG.md +185 -0
- package/harness/exploration-guard-runtime.ts +316 -0
- package/harness/plan-handoff-bridge.ts +247 -0
- package/harness/plan-handoff-delivery.ts +193 -0
- package/harness/plan-handoff-recipient-selection.ts +205 -0
- package/harness/plan-handoff-registration.ts +169 -0
- package/index.ts +451 -18
- package/package.json +7 -4
- 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/exploration-guard/dist/budget.d.ts +105 -0
- package/packages/exploration-guard/dist/budget.d.ts.map +1 -0
- package/packages/exploration-guard/dist/budget.js +199 -0
- package/packages/exploration-guard/dist/budget.js.map +1 -0
- package/packages/exploration-guard/dist/checkpoint.d.ts +140 -0
- package/packages/exploration-guard/dist/checkpoint.d.ts.map +1 -0
- package/packages/exploration-guard/dist/checkpoint.js +201 -0
- package/packages/exploration-guard/dist/checkpoint.js.map +1 -0
- package/packages/exploration-guard/dist/index.d.ts +19 -0
- package/packages/exploration-guard/dist/index.d.ts.map +1 -0
- package/packages/exploration-guard/dist/index.js +18 -0
- package/packages/exploration-guard/dist/index.js.map +1 -0
- package/packages/exploration-guard/dist/observation.d.ts +82 -0
- package/packages/exploration-guard/dist/observation.d.ts.map +1 -0
- package/packages/exploration-guard/dist/observation.js +239 -0
- package/packages/exploration-guard/dist/observation.js.map +1 -0
- package/packages/exploration-guard/dist/state.d.ts +107 -0
- package/packages/exploration-guard/dist/state.d.ts.map +1 -0
- package/packages/exploration-guard/dist/state.js +300 -0
- package/packages/exploration-guard/dist/state.js.map +1 -0
- package/packages/exploration-guard/dist/status.d.ts +56 -0
- package/packages/exploration-guard/dist/status.d.ts.map +1 -0
- package/packages/exploration-guard/dist/status.js +79 -0
- package/packages/exploration-guard/dist/status.js.map +1 -0
- package/packages/exploration-guard/dist/tracker.d.ts +115 -0
- package/packages/exploration-guard/dist/tracker.d.ts.map +1 -0
- package/packages/exploration-guard/dist/tracker.js +207 -0
- package/packages/exploration-guard/dist/tracker.js.map +1 -0
- package/packages/exploration-guard/dist/types.d.ts +254 -0
- package/packages/exploration-guard/dist/types.d.ts.map +1 -0
- package/packages/exploration-guard/dist/types.js +14 -0
- package/packages/{knowledge-retrieval → exploration-guard}/dist/types.js.map +1 -1
- package/packages/exploration-guard/package.json +16 -0
- package/packages/exploration-guard/src/budget.ts +275 -0
- package/packages/exploration-guard/src/checkpoint.ts +297 -0
- package/packages/exploration-guard/src/index.ts +97 -0
- package/packages/exploration-guard/src/observation.ts +342 -0
- package/packages/exploration-guard/src/state.ts +357 -0
- package/packages/exploration-guard/src/status.ts +120 -0
- package/packages/exploration-guard/src/tracker.ts +291 -0
- package/packages/exploration-guard/src/types.ts +276 -0
- package/packages/file-copy-helper/package.json +1 -1
- package/packages/intent-analyzer/package.json +1 -1
- package/packages/jev-judge/dist/continuation-controller.d.ts +27 -2
- package/packages/jev-judge/dist/continuation-controller.d.ts.map +1 -1
- package/packages/jev-judge/dist/continuation-controller.js +87 -11
- package/packages/jev-judge/dist/continuation-controller.js.map +1 -1
- package/packages/jev-judge/dist/index.d.ts +2 -0
- package/packages/jev-judge/dist/index.d.ts.map +1 -1
- package/packages/jev-judge/dist/index.js +2 -0
- package/packages/jev-judge/dist/index.js.map +1 -1
- package/packages/jev-judge/dist/todo-provider.d.ts.map +1 -1
- package/packages/jev-judge/dist/todo-provider.js +93 -18
- package/packages/jev-judge/dist/todo-provider.js.map +1 -1
- package/packages/jev-judge/dist/todo-reconciliation.d.ts +50 -0
- package/packages/jev-judge/dist/todo-reconciliation.d.ts.map +1 -0
- package/packages/jev-judge/dist/todo-reconciliation.js +96 -0
- package/packages/jev-judge/dist/todo-reconciliation.js.map +1 -0
- package/packages/jev-judge/package.json +1 -1
- package/packages/jev-judge/src/continuation-controller.ts +90 -12
- package/packages/jev-judge/src/index.ts +8 -0
- package/packages/jev-judge/src/todo-provider.ts +117 -25
- package/packages/jev-judge/src/todo-reconciliation.ts +121 -0
- 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/dist/adapters/email-adapter.d.ts.map +1 -1
- package/packages/notification/dist/adapters/email-adapter.js +1 -0
- package/packages/notification/dist/adapters/email-adapter.js.map +1 -1
- package/packages/notification/dist/adapters/line-adapter.d.ts.map +1 -1
- package/packages/notification/dist/adapters/line-adapter.js +1 -0
- package/packages/notification/dist/adapters/line-adapter.js.map +1 -1
- package/packages/notification/dist/adapters/ntfy-adapter.d.ts.map +1 -1
- package/packages/notification/dist/adapters/ntfy-adapter.js +1 -0
- package/packages/notification/dist/adapters/ntfy-adapter.js.map +1 -1
- package/packages/notification/dist/adapters/telegram-adapter.d.ts.map +1 -1
- package/packages/notification/dist/adapters/telegram-adapter.js +1 -0
- package/packages/notification/dist/adapters/telegram-adapter.js.map +1 -1
- package/packages/notification/dist/notification-center.d.ts.map +1 -1
- package/packages/notification/dist/notification-center.js +7 -0
- package/packages/notification/dist/notification-center.js.map +1 -1
- package/packages/notification/dist/notification-policy.d.ts.map +1 -1
- package/packages/notification/dist/notification-policy.js +3 -0
- package/packages/notification/dist/notification-policy.js.map +1 -1
- package/packages/notification/dist/telegram-webhook-handler.d.ts +8 -0
- package/packages/notification/dist/telegram-webhook-handler.d.ts.map +1 -1
- package/packages/notification/dist/telegram-webhook-handler.js +8 -0
- package/packages/notification/dist/telegram-webhook-handler.js.map +1 -1
- package/packages/notification/dist/types.d.ts +8 -1
- package/packages/notification/dist/types.d.ts.map +1 -1
- package/packages/notification/package.json +1 -1
- package/packages/notification/src/adapters/email-adapter.ts +1 -0
- package/packages/notification/src/adapters/line-adapter.ts +1 -0
- package/packages/notification/src/adapters/ntfy-adapter.ts +1 -0
- package/packages/notification/src/adapters/telegram-adapter.ts +1 -0
- package/packages/notification/src/notification-center.ts +7 -0
- package/packages/notification/src/notification-policy.ts +3 -0
- package/packages/notification/src/telegram-webhook-handler.ts +8 -0
- package/packages/notification/src/types.ts +7 -0
- package/packages/paperclip-integration/package.json +1 -1
- package/packages/performance-optimizer/package.json +1 -1
- package/packages/plan-handoff/dist/index.d.ts +31 -0
- package/packages/plan-handoff/dist/index.d.ts.map +1 -0
- package/packages/plan-handoff/dist/index.js +23 -0
- package/packages/plan-handoff/dist/index.js.map +1 -0
- package/packages/plan-handoff/dist/mailbox.d.ts +134 -0
- package/packages/plan-handoff/dist/mailbox.d.ts.map +1 -0
- package/packages/plan-handoff/dist/mailbox.js +243 -0
- package/packages/plan-handoff/dist/mailbox.js.map +1 -0
- package/packages/plan-handoff/dist/message.d.ts +152 -0
- package/packages/plan-handoff/dist/message.d.ts.map +1 -0
- package/packages/plan-handoff/dist/message.js +157 -0
- package/packages/plan-handoff/dist/message.js.map +1 -0
- package/packages/plan-handoff/dist/pairing.d.ts +51 -0
- package/packages/plan-handoff/dist/pairing.d.ts.map +1 -0
- package/packages/plan-handoff/dist/pairing.js +88 -0
- package/packages/plan-handoff/dist/pairing.js.map +1 -0
- package/packages/plan-handoff/dist/publish.d.ts +96 -0
- package/packages/plan-handoff/dist/publish.d.ts.map +1 -0
- package/packages/plan-handoff/dist/publish.js +97 -0
- package/packages/plan-handoff/dist/publish.js.map +1 -0
- package/packages/plan-handoff/dist/registry.d.ts +95 -0
- package/packages/plan-handoff/dist/registry.d.ts.map +1 -0
- package/packages/plan-handoff/dist/registry.js +122 -0
- package/packages/plan-handoff/dist/registry.js.map +1 -0
- package/packages/plan-handoff/dist/retention.d.ts +101 -0
- package/packages/plan-handoff/dist/retention.d.ts.map +1 -0
- package/packages/plan-handoff/dist/retention.js +178 -0
- package/packages/plan-handoff/dist/retention.js.map +1 -0
- package/packages/plan-handoff/dist/routing.d.ts +69 -0
- package/packages/plan-handoff/dist/routing.d.ts.map +1 -0
- package/packages/plan-handoff/dist/routing.js +75 -0
- package/packages/plan-handoff/dist/routing.js.map +1 -0
- package/packages/plan-handoff/dist/workspace.d.ts +59 -0
- package/packages/plan-handoff/dist/workspace.d.ts.map +1 -0
- package/packages/plan-handoff/dist/workspace.js +78 -0
- package/packages/plan-handoff/dist/workspace.js.map +1 -0
- package/packages/plan-handoff/package.json +16 -0
- package/packages/plan-handoff/src/index.ts +75 -0
- package/packages/plan-handoff/src/mailbox.ts +306 -0
- package/packages/plan-handoff/src/message.ts +286 -0
- package/packages/plan-handoff/src/pairing.ts +120 -0
- package/packages/plan-handoff/src/publish.ts +186 -0
- package/packages/plan-handoff/src/registry.ts +174 -0
- package/packages/plan-handoff/src/retention.ts +237 -0
- package/packages/plan-handoff/src/routing.ts +134 -0
- package/packages/plan-handoff/src/workspace.ts +89 -0
- 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/prompts/slash-commands.md +0 -2
- package/packages/knowledge-retrieval/dist/index.d.ts +0 -8
- package/packages/knowledge-retrieval/dist/index.d.ts.map +0 -1
- package/packages/knowledge-retrieval/dist/index.js +0 -7
- package/packages/knowledge-retrieval/dist/index.js.map +0 -1
- package/packages/knowledge-retrieval/dist/mcp-client.d.ts +0 -61
- package/packages/knowledge-retrieval/dist/mcp-client.d.ts.map +0 -1
- package/packages/knowledge-retrieval/dist/mcp-client.js +0 -131
- package/packages/knowledge-retrieval/dist/mcp-client.js.map +0 -1
- package/packages/knowledge-retrieval/dist/types.d.ts +0 -105
- package/packages/knowledge-retrieval/dist/types.d.ts.map +0 -1
- package/packages/knowledge-retrieval/dist/types.js +0 -7
- package/packages/knowledge-retrieval/package.json +0 -22
- package/packages/knowledge-retrieval/src/index.ts +0 -18
- package/packages/knowledge-retrieval/src/mcp-client.ts +0 -211
- package/packages/knowledge-retrieval/src/types.ts +0 -112
- package/prompts/tencentdb-connect.md +0 -35
- package/prompts/tencentdb-setup.md +0 -101
- package/prompts/tencentdb.md +0 -88
package/AGENTS.md
CHANGED
|
@@ -393,6 +393,29 @@ todo create "Replace Film icon with themed icon"
|
|
|
393
393
|
|
|
394
394
|
**Why**: Agents often identify issues verbally but forget to track them. This rule ensures nothing slips through.
|
|
395
395
|
|
|
396
|
+
**Recheck before you create, and after you finish.** The full `todo list`
|
|
397
|
+
output can exceed the limit of a tool result and arrive **truncated** — the
|
|
398
|
+
first entries only. A truncated list is not an empty list: it is a list you
|
|
399
|
+
have not really read. Before you create a task, ask for the open work with
|
|
400
|
+
a status filter, which is small enough to read in full:
|
|
401
|
+
|
|
402
|
+
```bash
|
|
403
|
+
todo list --status pending
|
|
404
|
+
todo list --status in_progress
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
After the work is done, run the same two queries again and mark every item
|
|
408
|
+
that is genuinely finished as completed. A task that is still `pending` or
|
|
409
|
+
`in_progress` after the code is merged is a lie the next agent has to
|
|
410
|
+
undo.
|
|
411
|
+
|
|
412
|
+
**Duplicates are a defect.** When a task is created twice, the second copy
|
|
413
|
+
is not harmless: the harness reads the list, and a finished task that stays
|
|
414
|
+
open blocks the report of the whole work. When you find a duplicate,
|
|
415
|
+
tombstone the newer copy (`todo delete`), move the evidence into the
|
|
416
|
+
description of the original, and record the validation runs under the
|
|
417
|
+
**original** id.
|
|
418
|
+
|
|
396
419
|
**IMPORTANT**: The `todo` tool and `bd` commands are DIFFERENT systems. Use `todo` for local task tracking.
|
|
397
420
|
|
|
398
421
|
**Who owns the todo list.** The **agent** creates the todos, the harness
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,191 @@
|
|
|
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.515](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.515) (2026-11-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **actions:** register the job resume, the GLM countdown and the queued continuations ([177c964](https://github.com/ManotLuijiu/pi-harness-runtime/commit/177c964555b0057e6bc7d293dafab10c95eabbf9))
|
|
11
|
+
* **cookies:** the space-separated export is imported, the quota refresh is shared ([85e01dc](https://github.com/ManotLuijiu/pi-harness-runtime/commit/85e01dcc3836fc08ba33ea4aee9cc946c559bcb3))
|
|
12
|
+
* **delegation:** a child is only a child when it really ran ([ac4e678](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ac4e6782d7d4bc4941e458425c8a9f38a51fc9d4))
|
|
13
|
+
* **delegation:** the scope of a request is measured before it is judged ([684b6a5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/684b6a55184f63d3be24c48dcecfb0b13410dc15))
|
|
14
|
+
* **guard:** the exploration is bounded, the repeated reads are seen ([f14d51a](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f14d51aa8aa2b664994d78313c13c6fdd7c0ee08))
|
|
15
|
+
* **harness:** the startup tells the user that the session keeps its issues with bd ([81d63c5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/81d63c5dc2452b9f08001756866db80046a2532a))
|
|
16
|
+
* **honcho:** the memory service speaks the native MCP of Pi ([f9f740c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f9f740c12869bae4c4380afbe8c76e12388bb744))
|
|
17
|
+
* **jev:** one decision per question, bound to the question it was evaluated for ([03448aa](https://github.com/ManotLuijiu/pi-harness-runtime/commit/03448aaa17f2d0c3bcf644b0b1d5949727dfff8c))
|
|
18
|
+
* **jev:** the evaluation of a choice sees what the options mean ([f0c207e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f0c207e074701e6b7dab0965170ec39453d9d502))
|
|
19
|
+
* **jev:** the pending question carries the ask and the answer ([a792133](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a792133e517fb8c12d3363e98942f3af30270f27))
|
|
20
|
+
* **jev:** the pending question counts down to the decision ([d0cc171](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0cc171223986b2d32c670b6c1c74712fe0a4ad8))
|
|
21
|
+
* **keys:** tell the user what to do about an exposed key file ([7031003](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7031003574307351b7a8f28ee14159b58e17b793))
|
|
22
|
+
* **keys:** the key files are repaired when their permissions are unsafe ([e9c2c26](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e9c2c26b287665b56ed749de269737e8403bb8af))
|
|
23
|
+
* **mcp:** the harness connects the registered servers when nobody else does ([7fef951](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7fef95137ad4664df57f045cd91b7d233315b0bc))
|
|
24
|
+
* **merge:** a manual run can leave the merge to the pull request event ([b3d1950](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b3d1950b5941c78ccd56951acdafd1d4afbe1bff))
|
|
25
|
+
* **phase:** the agent owns the todo list and the harness says so ([c489370](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c489370bd7926aece8cb1a77aa20ca2d2672f1fb))
|
|
26
|
+
* **providers:** a shared registry of the pending automatic actions and a bounded recovery ([c5f955b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c5f955bc82adcb6999a89d5bc278fa87fccee022))
|
|
27
|
+
* **providers:** one failure has one executor, and the retry bridge is checked ([e73c4c7](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e73c4c76ff20a9708083659bdcefe74870a84837))
|
|
28
|
+
* **questions:** refuse the deletion of a temporary path without the judge ([ab29694](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ab29694f36c1ff020b3b19ca542a27b37847055c))
|
|
29
|
+
* **quota:** a fresh capture and a low allowance decide the MiniMax recovery ([06d7b8e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/06d7b8e971e0da58a344f75778c98edb442562bd))
|
|
30
|
+
* **quota:** the empty week waits for the human, the overload of a compaction shares the executor ([bbb0c39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/bbb0c3909b11735343e84be690c4c47e67a563bb))
|
|
31
|
+
* **recovery:** a MiniMax quota exhaustion waits for the captured reset plus ten minutes ([5af08a0](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5af08a0e86c8c93fa5b7ff64a7b08e4514bc68f3))
|
|
32
|
+
* **review:** the review starts on its own when the implementation is done ([04f51f5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/04f51f599cd3222b6c74dd8fadb1373bd72d9bd7))
|
|
33
|
+
* **scope:** a marked resume and a backlog that only an approval starts ([19d3320](https://github.com/ManotLuijiu/pi-harness-runtime/commit/19d33204819cf05e678996fddf4c4621f0dd7d2f))
|
|
34
|
+
* **status:** the status line names the phase, the progress and the children ([0167bf3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/0167bf396a0b987c1d44f3b869351976a951dd65))
|
|
35
|
+
* **test:** the task waits for the final tier of the validation plan ([fa147db](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fa147dbf7d50d56e6ea48c6d8fbb4fcb190caf8a))
|
|
36
|
+
* **validation:** a large job starts with a measured pilot ([425964b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/425964b04a3d4fa02adfabed47ff62c5ec2b9c28))
|
|
37
|
+
* **validation:** the size of a job is a fact, not a phrase ([8aa6c11](https://github.com/ManotLuijiu/pi-harness-runtime/commit/8aa6c119565d0f8412dc8aeafa6b295d47d3f093))
|
|
38
|
+
* **workspace:** a Frappe bench names the mode of the workspace ([9d58517](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d585172063a330992fee933316e268ae9985e3c))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Bug Fixes
|
|
42
|
+
|
|
43
|
+
* **ci:** every run of a required check counts, and the worst one decides ([da9e0da](https://github.com/ManotLuijiu/pi-harness-runtime/commit/da9e0da6b0ca29cb320764fd5fc1b8a8dee8b1e0))
|
|
44
|
+
* **ci:** the newest attempt of a run decides, not the attempt that failed ([9d7adcc](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d7adcc31cbacc517c3c1a9bcd3956be94c908ef))
|
|
45
|
+
* **harness:** a raw control byte hid the request scope from the review ([852b1ff](https://github.com/ManotLuijiu/pi-harness-runtime/commit/852b1ff3afc21adb71e92b85d21ff1c88e14816a))
|
|
46
|
+
* **honcho:** a handshake that never finishes is named instead of hanging the startup ([d66005f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d66005f928a4f8df5de5b8a0579cbd4f8df37ff9))
|
|
47
|
+
* **honcho:** a probe that the end of the session cuts off is not a failure ([493fd93](https://github.com/ManotLuijiu/pi-harness-runtime/commit/493fd938ba09fdcf57bed4aaf259d81c4040909e))
|
|
48
|
+
* **honcho:** a slow connector is not a failed one, the row is corrected when the tools appear ([b62ac5b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b62ac5b16ad93e2bfb10cbec589b80a09b7e20b3))
|
|
49
|
+
* **honcho:** a tools listing that the end of the session cuts off is not a failure ([62cc8c3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/62cc8c376aade01c953ce2a1c6501ed07b74a1e9))
|
|
50
|
+
* **honcho:** the report names the state of the MCP server, not the registration ([762f4d5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/762f4d59e4eabcab9a1c21a61aa522c3267621b3))
|
|
51
|
+
* **hooks:** a tag is checked through the commit behind it ([c823e8e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c823e8e1f6973c62b5449a97c101759a4d5cbba5))
|
|
52
|
+
* **jev:** a completion question, a stale check and a pending validation ([827120b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/827120b4138b6f5ae253e69154de190085703de8))
|
|
53
|
+
* **jev:** a new request does not inherit the completion of the old one ([0f863c7](https://github.com/ManotLuijiu/pi-harness-runtime/commit/0f863c7fcaf35e261beabebef15b8ab634132fdc))
|
|
54
|
+
* **jev:** a prohibition must not hide a destructive action ([78a6cc1](https://github.com/ManotLuijiu/pi-harness-runtime/commit/78a6cc199e647f812e145483f7e94991358d8f34))
|
|
55
|
+
* **jev:** a refusal without punctuation, and only a decline of an action ([ef3dbf8](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ef3dbf87a2a1725373281613a0d48881ed5d2239))
|
|
56
|
+
* **jev:** a rejection during the countdown pauses the work ([9b018ce](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9b018ce1152b6724dee73cdc901b8a360ecc91ab))
|
|
57
|
+
* **jev:** a session switch ends the wait of the old session ([ca03d39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ca03d399c0d4a1b2dd428ac39836ab53c0e51ab6))
|
|
58
|
+
* **jev:** an open question is not a permission to answer it ([e20eca2](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e20eca24bb88d385198bb12ee3ebf573af9aea86))
|
|
59
|
+
* **jev:** keep a comparative caveat with the option it constrains ([7be306b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7be306b0d0872713ebca9386d613ae5a8da9d5b6))
|
|
60
|
+
* **jev:** the action of the question on its own text, and a reply is not an authorization ([7c3fdd6](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7c3fdd6822b58bd6ccfa3bcdf1c5282cb3db52dd))
|
|
61
|
+
* **jev:** the action of the question, and an open question blocks the work ([1f9ff39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/1f9ff39efc4ee17464c54c2ca9b583245093dbac))
|
|
62
|
+
* **jev:** the alternatives of a question are parsed without a quadratic pattern ([63016a3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/63016a3f0488acb801990dd46770c00d382b5858))
|
|
63
|
+
* **jev:** the countdown of an obsolete question does not outlive the work ([fe78b29](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fe78b29e6fc513b11a6993bc68fd9418dc77f79b))
|
|
64
|
+
* **jev:** the facts of an option survive the wording of the agent ([5a6250c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5a6250c07aa8d965bc6ae242cccbf519477598f8))
|
|
65
|
+
* **jev:** the scope decides the question, the identity guards the awaits ([ed348b2](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ed348b2f94460a3b3ac11c01afd4420ee4ec1020))
|
|
66
|
+
* **jev:** the scope of a request on every human path, and the todos it touched ([cec8f36](https://github.com/ManotLuijiu/pi-harness-runtime/commit/cec8f3644333b1d13a203340df80a30fef5c1ac0))
|
|
67
|
+
* **jev:** the subject of the scope decides, a clarification is preserved ([faf6a0f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/faf6a0fe7d0dce94d4fa48d0d7a57d126556ba6d))
|
|
68
|
+
* **keys:** the key directory is audited as a tree ([081cc75](https://github.com/ManotLuijiu/pi-harness-runtime/commit/081cc75ac8ceff36b0d619c3f76371dc08459d3c))
|
|
69
|
+
* **logging:** the query window no longer rots with the wall clock ([cd3f5b1](https://github.com/ManotLuijiu/pi-harness-runtime/commit/cd3f5b18d8a4b8850a201d060699e18bf789a647))
|
|
70
|
+
* **logging:** the sanitizer of a message writes its control characters as escapes ([f4bbdb9](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f4bbdb94bc1801d4228142bc1a1b31505c42a575))
|
|
71
|
+
* **mcp:** the connector and the watcher stop with the session ([4d1b87d](https://github.com/ManotLuijiu/pi-harness-runtime/commit/4d1b87d14d015749025b62bf54d6d0b6137295f7))
|
|
72
|
+
* **mcp:** the connector survives a runtime that cannot list the servers ([d0f555f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0f555fa14f51de33591e572a41ded5b59a3e4dd))
|
|
73
|
+
* **merge:** the boolean input is read as a boolean ([971b716](https://github.com/ManotLuijiu/pi-harness-runtime/commit/971b7169a43db382dbdeb6bb9bab02ab56e0351c))
|
|
74
|
+
* **merge:** the manual job needs the right of the merge ([7ba685e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7ba685ec43d815f90aa35b742579e87e76c69209))
|
|
75
|
+
* **merge:** the merge of the pull request is the GraphQL mutation ([972bab4](https://github.com/ManotLuijiu/pi-harness-runtime/commit/972bab4b0f7faf1b0047f3bb767ef6db3de4b2fa))
|
|
76
|
+
* **merge:** the workflow merges the pull request the gates cleared ([d7639ec](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d7639ec9b83723510acb4a5c4e23d5d6167c3af6))
|
|
77
|
+
* **providers:** the escape of the user stops the recovery, and a permanent failure clears it ([cfe5797](https://github.com/ManotLuijiu/pi-harness-runtime/commit/cfe57976bf463c327e45b874fd297c3e942246b8))
|
|
78
|
+
* **providers:** the pause wins over a retry, and the retry starts when the run settles ([e016dd2](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e016dd2a5add5b0f3c848a225a28a59e0f5fc7f3))
|
|
79
|
+
* **recovery:** a cancelled countdown does not own the next attempt ([7b79f30](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7b79f301389fae48201e696d3086d257ed722fb9))
|
|
80
|
+
* **recovery:** a cancelled retry of Pi is a cancelled decision, a spent budget is not ([7e13f15](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7e13f156a279cded2b2d4b0c99358100b3d5e038))
|
|
81
|
+
* **recovery:** a manual request takes the work back from the countdown ([fa81d8f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fa81d8fd9d6160166a095e07bdf17049bbafa32d))
|
|
82
|
+
* **recovery:** the predicate of Pi decides the retry, the provider identity is normalized ([6c8c17b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/6c8c17b53302cea1602d192251eacd0ebbd3e8c9))
|
|
83
|
+
* **release:** a manual release keeps the version of its manifest ([122e661](https://github.com/ManotLuijiu/pi-harness-runtime/commit/122e661ea48cb8aff14c71dbd0221a4cf0ba4c8e))
|
|
84
|
+
* **release:** the alignment names the reason of a failure ([5814dd0](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5814dd0b780f5839cf8011ed0cbbbb31e7eb0418))
|
|
85
|
+
* **release:** the channels of the package name the release ([a7a273f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a7a273ffe8398e2b5b07ef1c321777de41792c6e))
|
|
86
|
+
* **release:** the lockfile knows the new workspace package ([6d0a143](https://github.com/ManotLuijiu/pi-harness-runtime/commit/6d0a143fe9853deafbaa8a04433a53da36355c43))
|
|
87
|
+
* **release:** the release publishes and leaves the channels alone ([5871746](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5871746589c1281d855dbeb591b02419fa43f22e))
|
|
88
|
+
* **release:** the release pull request names the version of its branch ([a846e83](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a846e83e6de6e529f4bca05e869db0b5eebb37c5))
|
|
89
|
+
* **release:** the release scans the tree of the commit it publishes ([7d47a0b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7d47a0b5406480a1e1d3a52623a76aabd1e2d0ba))
|
|
90
|
+
* **scope:** a session that ends leaves no proposal behind ([9aad01e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9aad01e1f13446da1d01032e9967cadf66772792))
|
|
91
|
+
* **scope:** the findings of the review of the scope expansion ([92372e5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/92372e51ca31198593025ce8671b226d2ca7182e))
|
|
92
|
+
* **scope:** the question of a proposal is not obsolete and a rejection is named ([d4c58c3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d4c58c3e63e27449ef1de0f8e4e55ebbf342ff7d))
|
|
93
|
+
* **test:** the quota capture integration needs the runtime of bun ([86fae7d](https://github.com/ManotLuijiu/pi-harness-runtime/commit/86fae7de31e76414aa31bb75eb136155f62d7a40))
|
|
94
|
+
* **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))
|
|
95
|
+
* **workspace:** keep a client name out of the comment about the search depth ([b572e0a](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b572e0af16ff562203bda2b5c47b41807cff5a95))
|
|
96
|
+
* **workspace:** the repository names the mode before the mode stays unknown ([188a32c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/188a32c7a6af1465dd24714278fccc73d06f6477))
|
|
97
|
+
|
|
98
|
+
### [1.1.514](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.514) (2026-11-17)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Features
|
|
102
|
+
|
|
103
|
+
* **actions:** register the job resume, the GLM countdown and the queued continuations ([177c964](https://github.com/ManotLuijiu/pi-harness-runtime/commit/177c964555b0057e6bc7d293dafab10c95eabbf9))
|
|
104
|
+
* **cookies:** the space-separated export is imported, the quota refresh is shared ([85e01dc](https://github.com/ManotLuijiu/pi-harness-runtime/commit/85e01dcc3836fc08ba33ea4aee9cc946c559bcb3))
|
|
105
|
+
* **delegation:** a child is only a child when it really ran ([ac4e678](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ac4e6782d7d4bc4941e458425c8a9f38a51fc9d4))
|
|
106
|
+
* **delegation:** the scope of a request is measured before it is judged ([684b6a5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/684b6a55184f63d3be24c48dcecfb0b13410dc15))
|
|
107
|
+
* **guard:** the exploration is bounded, the repeated reads are seen ([f14d51a](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f14d51aa8aa2b664994d78313c13c6fdd7c0ee08))
|
|
108
|
+
* **harness:** the startup tells the user that the session keeps its issues with bd ([81d63c5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/81d63c5dc2452b9f08001756866db80046a2532a))
|
|
109
|
+
* **honcho:** the memory service speaks the native MCP of Pi ([f9f740c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f9f740c12869bae4c4380afbe8c76e12388bb744))
|
|
110
|
+
* **jev:** one decision per question, bound to the question it was evaluated for ([03448aa](https://github.com/ManotLuijiu/pi-harness-runtime/commit/03448aaa17f2d0c3bcf644b0b1d5949727dfff8c))
|
|
111
|
+
* **jev:** the evaluation of a choice sees what the options mean ([f0c207e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f0c207e074701e6b7dab0965170ec39453d9d502))
|
|
112
|
+
* **jev:** the pending question carries the ask and the answer ([a792133](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a792133e517fb8c12d3363e98942f3af30270f27))
|
|
113
|
+
* **jev:** the pending question counts down to the decision ([d0cc171](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0cc171223986b2d32c670b6c1c74712fe0a4ad8))
|
|
114
|
+
* **keys:** tell the user what to do about an exposed key file ([7031003](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7031003574307351b7a8f28ee14159b58e17b793))
|
|
115
|
+
* **keys:** the key files are repaired when their permissions are unsafe ([e9c2c26](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e9c2c26b287665b56ed749de269737e8403bb8af))
|
|
116
|
+
* **mcp:** the harness connects the registered servers when nobody else does ([7fef951](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7fef95137ad4664df57f045cd91b7d233315b0bc))
|
|
117
|
+
* **merge:** a manual run can leave the merge to the pull request event ([b3d1950](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b3d1950b5941c78ccd56951acdafd1d4afbe1bff))
|
|
118
|
+
* **phase:** the agent owns the todo list and the harness says so ([c489370](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c489370bd7926aece8cb1a77aa20ca2d2672f1fb))
|
|
119
|
+
* **providers:** a shared registry of the pending automatic actions and a bounded recovery ([c5f955b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c5f955bc82adcb6999a89d5bc278fa87fccee022))
|
|
120
|
+
* **providers:** one failure has one executor, and the retry bridge is checked ([e73c4c7](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e73c4c76ff20a9708083659bdcefe74870a84837))
|
|
121
|
+
* **questions:** refuse the deletion of a temporary path without the judge ([ab29694](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ab29694f36c1ff020b3b19ca542a27b37847055c))
|
|
122
|
+
* **quota:** a fresh capture and a low allowance decide the MiniMax recovery ([06d7b8e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/06d7b8e971e0da58a344f75778c98edb442562bd))
|
|
123
|
+
* **quota:** the empty week waits for the human, the overload of a compaction shares the executor ([bbb0c39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/bbb0c3909b11735343e84be690c4c47e67a563bb))
|
|
124
|
+
* **recovery:** a MiniMax quota exhaustion waits for the captured reset plus ten minutes ([5af08a0](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5af08a0e86c8c93fa5b7ff64a7b08e4514bc68f3))
|
|
125
|
+
* **review:** the review starts on its own when the implementation is done ([04f51f5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/04f51f599cd3222b6c74dd8fadb1373bd72d9bd7))
|
|
126
|
+
* **scope:** a marked resume and a backlog that only an approval starts ([19d3320](https://github.com/ManotLuijiu/pi-harness-runtime/commit/19d33204819cf05e678996fddf4c4621f0dd7d2f))
|
|
127
|
+
* **status:** the status line names the phase, the progress and the children ([0167bf3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/0167bf396a0b987c1d44f3b869351976a951dd65))
|
|
128
|
+
* **test:** the task waits for the final tier of the validation plan ([fa147db](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fa147dbf7d50d56e6ea48c6d8fbb4fcb190caf8a))
|
|
129
|
+
* **validation:** a large job starts with a measured pilot ([425964b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/425964b04a3d4fa02adfabed47ff62c5ec2b9c28))
|
|
130
|
+
* **validation:** the size of a job is a fact, not a phrase ([8aa6c11](https://github.com/ManotLuijiu/pi-harness-runtime/commit/8aa6c119565d0f8412dc8aeafa6b295d47d3f093))
|
|
131
|
+
* **workspace:** a Frappe bench names the mode of the workspace ([9d58517](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d585172063a330992fee933316e268ae9985e3c))
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### Bug Fixes
|
|
135
|
+
|
|
136
|
+
* **ci:** every run of a required check counts, and the worst one decides ([da9e0da](https://github.com/ManotLuijiu/pi-harness-runtime/commit/da9e0da6b0ca29cb320764fd5fc1b8a8dee8b1e0))
|
|
137
|
+
* **ci:** the newest attempt of a run decides, not the attempt that failed ([9d7adcc](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d7adcc31cbacc517c3c1a9bcd3956be94c908ef))
|
|
138
|
+
* **harness:** a raw control byte hid the request scope from the review ([852b1ff](https://github.com/ManotLuijiu/pi-harness-runtime/commit/852b1ff3afc21adb71e92b85d21ff1c88e14816a))
|
|
139
|
+
* **honcho:** a handshake that never finishes is named instead of hanging the startup ([d66005f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d66005f928a4f8df5de5b8a0579cbd4f8df37ff9))
|
|
140
|
+
* **honcho:** a probe that the end of the session cuts off is not a failure ([493fd93](https://github.com/ManotLuijiu/pi-harness-runtime/commit/493fd938ba09fdcf57bed4aaf259d81c4040909e))
|
|
141
|
+
* **honcho:** a slow connector is not a failed one, the row is corrected when the tools appear ([b62ac5b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b62ac5b16ad93e2bfb10cbec589b80a09b7e20b3))
|
|
142
|
+
* **honcho:** a tools listing that the end of the session cuts off is not a failure ([62cc8c3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/62cc8c376aade01c953ce2a1c6501ed07b74a1e9))
|
|
143
|
+
* **honcho:** the report names the state of the MCP server, not the registration ([762f4d5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/762f4d59e4eabcab9a1c21a61aa522c3267621b3))
|
|
144
|
+
* **hooks:** a tag is checked through the commit behind it ([c823e8e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c823e8e1f6973c62b5449a97c101759a4d5cbba5))
|
|
145
|
+
* **jev:** a completion question, a stale check and a pending validation ([827120b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/827120b4138b6f5ae253e69154de190085703de8))
|
|
146
|
+
* **jev:** a new request does not inherit the completion of the old one ([0f863c7](https://github.com/ManotLuijiu/pi-harness-runtime/commit/0f863c7fcaf35e261beabebef15b8ab634132fdc))
|
|
147
|
+
* **jev:** a prohibition must not hide a destructive action ([78a6cc1](https://github.com/ManotLuijiu/pi-harness-runtime/commit/78a6cc199e647f812e145483f7e94991358d8f34))
|
|
148
|
+
* **jev:** a refusal without punctuation, and only a decline of an action ([ef3dbf8](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ef3dbf87a2a1725373281613a0d48881ed5d2239))
|
|
149
|
+
* **jev:** a rejection during the countdown pauses the work ([9b018ce](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9b018ce1152b6724dee73cdc901b8a360ecc91ab))
|
|
150
|
+
* **jev:** a session switch ends the wait of the old session ([ca03d39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ca03d399c0d4a1b2dd428ac39836ab53c0e51ab6))
|
|
151
|
+
* **jev:** an open question is not a permission to answer it ([e20eca2](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e20eca24bb88d385198bb12ee3ebf573af9aea86))
|
|
152
|
+
* **jev:** keep a comparative caveat with the option it constrains ([7be306b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7be306b0d0872713ebca9386d613ae5a8da9d5b6))
|
|
153
|
+
* **jev:** the action of the question on its own text, and a reply is not an authorization ([7c3fdd6](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7c3fdd6822b58bd6ccfa3bcdf1c5282cb3db52dd))
|
|
154
|
+
* **jev:** the action of the question, and an open question blocks the work ([1f9ff39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/1f9ff39efc4ee17464c54c2ca9b583245093dbac))
|
|
155
|
+
* **jev:** the alternatives of a question are parsed without a quadratic pattern ([63016a3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/63016a3f0488acb801990dd46770c00d382b5858))
|
|
156
|
+
* **jev:** the countdown of an obsolete question does not outlive the work ([fe78b29](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fe78b29e6fc513b11a6993bc68fd9418dc77f79b))
|
|
157
|
+
* **jev:** the facts of an option survive the wording of the agent ([5a6250c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5a6250c07aa8d965bc6ae242cccbf519477598f8))
|
|
158
|
+
* **jev:** the scope decides the question, the identity guards the awaits ([ed348b2](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ed348b2f94460a3b3ac11c01afd4420ee4ec1020))
|
|
159
|
+
* **jev:** the scope of a request on every human path, and the todos it touched ([cec8f36](https://github.com/ManotLuijiu/pi-harness-runtime/commit/cec8f3644333b1d13a203340df80a30fef5c1ac0))
|
|
160
|
+
* **jev:** the subject of the scope decides, a clarification is preserved ([faf6a0f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/faf6a0fe7d0dce94d4fa48d0d7a57d126556ba6d))
|
|
161
|
+
* **keys:** the key directory is audited as a tree ([081cc75](https://github.com/ManotLuijiu/pi-harness-runtime/commit/081cc75ac8ceff36b0d619c3f76371dc08459d3c))
|
|
162
|
+
* **logging:** the query window no longer rots with the wall clock ([cd3f5b1](https://github.com/ManotLuijiu/pi-harness-runtime/commit/cd3f5b18d8a4b8850a201d060699e18bf789a647))
|
|
163
|
+
* **logging:** the sanitizer of a message writes its control characters as escapes ([f4bbdb9](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f4bbdb94bc1801d4228142bc1a1b31505c42a575))
|
|
164
|
+
* **mcp:** the connector and the watcher stop with the session ([4d1b87d](https://github.com/ManotLuijiu/pi-harness-runtime/commit/4d1b87d14d015749025b62bf54d6d0b6137295f7))
|
|
165
|
+
* **mcp:** the connector survives a runtime that cannot list the servers ([d0f555f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0f555fa14f51de33591e572a41ded5b59a3e4dd))
|
|
166
|
+
* **merge:** the boolean input is read as a boolean ([971b716](https://github.com/ManotLuijiu/pi-harness-runtime/commit/971b7169a43db382dbdeb6bb9bab02ab56e0351c))
|
|
167
|
+
* **merge:** the manual job needs the right of the merge ([7ba685e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7ba685ec43d815f90aa35b742579e87e76c69209))
|
|
168
|
+
* **merge:** the merge of the pull request is the GraphQL mutation ([972bab4](https://github.com/ManotLuijiu/pi-harness-runtime/commit/972bab4b0f7faf1b0047f3bb767ef6db3de4b2fa))
|
|
169
|
+
* **merge:** the workflow merges the pull request the gates cleared ([d7639ec](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d7639ec9b83723510acb4a5c4e23d5d6167c3af6))
|
|
170
|
+
* **providers:** the escape of the user stops the recovery, and a permanent failure clears it ([cfe5797](https://github.com/ManotLuijiu/pi-harness-runtime/commit/cfe57976bf463c327e45b874fd297c3e942246b8))
|
|
171
|
+
* **providers:** the pause wins over a retry, and the retry starts when the run settles ([e016dd2](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e016dd2a5add5b0f3c848a225a28a59e0f5fc7f3))
|
|
172
|
+
* **recovery:** a cancelled countdown does not own the next attempt ([7b79f30](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7b79f301389fae48201e696d3086d257ed722fb9))
|
|
173
|
+
* **recovery:** a cancelled retry of Pi is a cancelled decision, a spent budget is not ([7e13f15](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7e13f156a279cded2b2d4b0c99358100b3d5e038))
|
|
174
|
+
* **recovery:** a manual request takes the work back from the countdown ([fa81d8f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fa81d8fd9d6160166a095e07bdf17049bbafa32d))
|
|
175
|
+
* **recovery:** the predicate of Pi decides the retry, the provider identity is normalized ([6c8c17b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/6c8c17b53302cea1602d192251eacd0ebbd3e8c9))
|
|
176
|
+
* **release:** a manual release keeps the version of its manifest ([122e661](https://github.com/ManotLuijiu/pi-harness-runtime/commit/122e661ea48cb8aff14c71dbd0221a4cf0ba4c8e))
|
|
177
|
+
* **release:** the alignment names the reason of a failure ([5814dd0](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5814dd0b780f5839cf8011ed0cbbbb31e7eb0418))
|
|
178
|
+
* **release:** the channels of the package name the release ([a7a273f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a7a273ffe8398e2b5b07ef1c321777de41792c6e))
|
|
179
|
+
* **release:** the release publishes and leaves the channels alone ([5871746](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5871746589c1281d855dbeb591b02419fa43f22e))
|
|
180
|
+
* **release:** the release pull request names the version of its branch ([a846e83](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a846e83e6de6e529f4bca05e869db0b5eebb37c5))
|
|
181
|
+
* **release:** the release scans the tree of the commit it publishes ([7d47a0b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7d47a0b5406480a1e1d3a52623a76aabd1e2d0ba))
|
|
182
|
+
* **scope:** a session that ends leaves no proposal behind ([9aad01e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9aad01e1f13446da1d01032e9967cadf66772792))
|
|
183
|
+
* **scope:** the findings of the review of the scope expansion ([92372e5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/92372e51ca31198593025ce8671b226d2ca7182e))
|
|
184
|
+
* **scope:** the question of a proposal is not obsolete and a rejection is named ([d4c58c3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d4c58c3e63e27449ef1de0f8e4e55ebbf342ff7d))
|
|
185
|
+
* **test:** the quota capture integration needs the runtime of bun ([86fae7d](https://github.com/ManotLuijiu/pi-harness-runtime/commit/86fae7de31e76414aa31bb75eb136155f62d7a40))
|
|
186
|
+
* **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))
|
|
187
|
+
* **workspace:** keep a client name out of the comment about the search depth ([b572e0a](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b572e0af16ff562203bda2b5c47b41807cff5a95))
|
|
188
|
+
* **workspace:** the repository names the mode before the mode stays unknown ([188a32c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/188a32c7a6af1465dd24714278fccc73d06f6477))
|
|
189
|
+
|
|
5
190
|
### [1.1.513](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.513) (2026-11-17)
|
|
6
191
|
|
|
7
192
|
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The runtime of the exploration guard.
|
|
3
|
+
*
|
|
4
|
+
* The runtime observes the tools of the agent, keeps the state of the
|
|
5
|
+
* request, and hands the decision of the guard to the caller.
|
|
6
|
+
*
|
|
7
|
+
* The runtime never sends anything and never authorises anything. It
|
|
8
|
+
* returns a pending intervention at a safe boundary, and the caller decides
|
|
9
|
+
* what to do with it. The runtime never touches a provider countdown, never
|
|
10
|
+
* answers a question of the human and never starts a second continuation
|
|
11
|
+
* owner.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import type {
|
|
15
|
+
ExplorationKey,
|
|
16
|
+
ExplorationPhase,
|
|
17
|
+
ExplorationState,
|
|
18
|
+
Intervention,
|
|
19
|
+
ToolCallEnd,
|
|
20
|
+
ToolCallInput,
|
|
21
|
+
} from "../packages/exploration-guard/dist/index.js";
|
|
22
|
+
import {
|
|
23
|
+
buildContinuationText,
|
|
24
|
+
describeUnreadableCheckpoint,
|
|
25
|
+
ExplorationTracker,
|
|
26
|
+
toCompactCheckpoint,
|
|
27
|
+
} from "../packages/exploration-guard/dist/index.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The identity of the request that is running.
|
|
31
|
+
*
|
|
32
|
+
* Every part of it is read when it is needed, so a change of the session or
|
|
33
|
+
* of the generation moves the exploration to another state.
|
|
34
|
+
*/
|
|
35
|
+
export interface ExplorationIdentity {
|
|
36
|
+
/** The canonical workspace of the request. */
|
|
37
|
+
workspace: () => string;
|
|
38
|
+
/** The session of the request. */
|
|
39
|
+
sessionId: () => string;
|
|
40
|
+
/** The generation of the request. */
|
|
41
|
+
generation: () => string;
|
|
42
|
+
/** The phase of the request. */
|
|
43
|
+
phase: () => ExplorationPhase;
|
|
44
|
+
/** The todo of the request, when the request owns one. */
|
|
45
|
+
todoId?: () => number | undefined;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The options of the runtime.
|
|
50
|
+
*/
|
|
51
|
+
export interface ExplorationRuntimeOptions {
|
|
52
|
+
/** The identity of the request. */
|
|
53
|
+
identity: ExplorationIdentity;
|
|
54
|
+
/** The tracker of the exploration. */
|
|
55
|
+
tracker?: ExplorationTracker;
|
|
56
|
+
/** The clock, so a test can pin the time. */
|
|
57
|
+
now?: () => number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* A pending intervention of the guard.
|
|
62
|
+
*
|
|
63
|
+
* It is pending until a safe boundary: the runtime speaks once, and the
|
|
64
|
+
* caller consumes it when the agent is between turns.
|
|
65
|
+
*/
|
|
66
|
+
export interface PendingIntervention {
|
|
67
|
+
/** The key of the request. */
|
|
68
|
+
key: ExplorationKey;
|
|
69
|
+
/** The text the agent receives. */
|
|
70
|
+
message: string;
|
|
71
|
+
/** True when the guard asks for a checkpoint. */
|
|
72
|
+
requiresCheckpoint: boolean;
|
|
73
|
+
/** The kind of the intervention. */
|
|
74
|
+
kind: Intervention["kind"];
|
|
75
|
+
/** The state of the request when the intervention was raised. */
|
|
76
|
+
state: ExplorationState;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* How serious an intervention is.
|
|
81
|
+
*
|
|
82
|
+
* A soft warning is the least serious, a budget that is reached is more
|
|
83
|
+
* serious, and a blocker is the most serious. The guard speaks again when
|
|
84
|
+
* the seriousness grows, even when the checkpoint did not change.
|
|
85
|
+
*/
|
|
86
|
+
const SEVERITY: Record<Intervention["kind"], number> = {
|
|
87
|
+
none: 0,
|
|
88
|
+
"repeat-read": 1,
|
|
89
|
+
stall: 1,
|
|
90
|
+
"read-budget": 2,
|
|
91
|
+
"token-budget": 2,
|
|
92
|
+
"time-budget": 2,
|
|
93
|
+
blocked: 3,
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The number of times the guard speaks in one request.
|
|
98
|
+
*
|
|
99
|
+
* The guard asks, it does not nag: a request that ignored three warnings
|
|
100
|
+
* does not get a fourth one. The agent decides, and a decision that is not
|
|
101
|
+
* taken is not the business of the guard.
|
|
102
|
+
*/
|
|
103
|
+
const MAX_SPEECHES_PER_REQUEST = 3;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The runtime of the exploration guard.
|
|
107
|
+
*/
|
|
108
|
+
export class ExplorationGuardRuntime {
|
|
109
|
+
private readonly identity: ExplorationIdentity;
|
|
110
|
+
private readonly tracker: ExplorationTracker;
|
|
111
|
+
private readonly now: () => number;
|
|
112
|
+
/** The calls that are running, by their id. */
|
|
113
|
+
private readonly running = new Map<string, ToolCallInput>();
|
|
114
|
+
/** The intervention that was not consumed yet. */
|
|
115
|
+
private pending: PendingIntervention | null = null;
|
|
116
|
+
/** The generation the pending intervention belongs to. */
|
|
117
|
+
private pendingGeneration = "";
|
|
118
|
+
/** True when the request was completed or cancelled. */
|
|
119
|
+
private inactive = false;
|
|
120
|
+
/** How often the guard spoke in this request. */
|
|
121
|
+
private speechCount = 0;
|
|
122
|
+
/** How serious the last intervention was. */
|
|
123
|
+
private lastSeverity = -1;
|
|
124
|
+
/** The checkpoint revision the guard last spoke at. */
|
|
125
|
+
private spokenRevision = -1;
|
|
126
|
+
|
|
127
|
+
constructor(options: ExplorationRuntimeOptions) {
|
|
128
|
+
this.identity = options.identity;
|
|
129
|
+
this.tracker = options.tracker ?? new ExplorationTracker();
|
|
130
|
+
this.now = options.now ?? (() => Date.now());
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** The key of the request that is running. */
|
|
134
|
+
key(): ExplorationKey {
|
|
135
|
+
return {
|
|
136
|
+
workspace: this.identity.workspace(),
|
|
137
|
+
sessionId: this.identity.sessionId(),
|
|
138
|
+
generation: this.identity.generation(),
|
|
139
|
+
phase: this.identity.phase(),
|
|
140
|
+
todoId: this.identity.todoId?.(),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* A tool call begins.
|
|
146
|
+
*
|
|
147
|
+
* The call is remembered, so its result can be paired with it. Nothing
|
|
148
|
+
* is observed yet: a call that fails read nothing.
|
|
149
|
+
*/
|
|
150
|
+
toolCall(toolCallId: string, call: ToolCallInput): void {
|
|
151
|
+
this.running.set(toolCallId, call);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* A tool call ended.
|
|
156
|
+
*
|
|
157
|
+
* The observation is made here, because only the result says whether
|
|
158
|
+
* the tool read anything.
|
|
159
|
+
*/
|
|
160
|
+
toolCallEnd(
|
|
161
|
+
toolCallId: string,
|
|
162
|
+
end: ToolCallEnd,
|
|
163
|
+
): PendingIntervention | null {
|
|
164
|
+
const call = this.running.get(toolCallId);
|
|
165
|
+
this.running.delete(toolCallId);
|
|
166
|
+
if (!call) return null;
|
|
167
|
+
if (this.inactive) return null;
|
|
168
|
+
|
|
169
|
+
let result: { shouldSpeak: boolean; intervention: Intervention; state: ExplorationState };
|
|
170
|
+
try {
|
|
171
|
+
result = this.tracker.observe(this.key(), call, end);
|
|
172
|
+
} catch {
|
|
173
|
+
// The state could not be read or written: the guard stays quiet
|
|
174
|
+
// instead of guessing what was read.
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
if (!result.shouldSpeak) return null;
|
|
178
|
+
|
|
179
|
+
const severity = SEVERITY[result.intervention.kind] ?? 0;
|
|
180
|
+
if (!this.maySpeak(severity, result.state)) return null;
|
|
181
|
+
|
|
182
|
+
this.tracker.markSpoken(result.state);
|
|
183
|
+
this.speechCount += 1;
|
|
184
|
+
this.lastSeverity = severity;
|
|
185
|
+
this.spokenRevision = result.state.checkpointRevision;
|
|
186
|
+
const key = this.key();
|
|
187
|
+
this.pending = {
|
|
188
|
+
key,
|
|
189
|
+
message: result.intervention.message,
|
|
190
|
+
requiresCheckpoint: result.intervention.requiresCheckpoint,
|
|
191
|
+
kind: result.intervention.kind,
|
|
192
|
+
state: result.state,
|
|
193
|
+
};
|
|
194
|
+
this.pendingGeneration = key.generation;
|
|
195
|
+
return this.pending;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* True when the guard may speak.
|
|
200
|
+
*
|
|
201
|
+
* The guard speaks once per checkpoint revision, and again when the
|
|
202
|
+
* seriousness of the intervention grew. It speaks at most three times
|
|
203
|
+
* in one request: a request that ignored the warnings is not nagged.
|
|
204
|
+
*/
|
|
205
|
+
private maySpeak(severity: number, state: ExplorationState): boolean {
|
|
206
|
+
if (this.speechCount >= MAX_SPEECHES_PER_REQUEST) return false;
|
|
207
|
+
const revisionChanged = this.spokenRevision !== state.checkpointRevision;
|
|
208
|
+
const escalated = severity > this.lastSeverity;
|
|
209
|
+
return revisionChanged || escalated;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The intervention that was not consumed yet.
|
|
214
|
+
*
|
|
215
|
+
* The intervention is inert when the request changed: a new request of
|
|
216
|
+
* the human does not inherit the warning of the old one.
|
|
217
|
+
*/
|
|
218
|
+
takePending(): PendingIntervention | null {
|
|
219
|
+
const pending = this.pending;
|
|
220
|
+
if (!pending) return null;
|
|
221
|
+
if (pending.key.generation !== this.pendingGeneration) {
|
|
222
|
+
this.pending = null;
|
|
223
|
+
return null;
|
|
224
|
+
}
|
|
225
|
+
if (pending.key.generation !== this.identity.generation()) {
|
|
226
|
+
this.pending = null;
|
|
227
|
+
return null;
|
|
228
|
+
}
|
|
229
|
+
this.pending = null;
|
|
230
|
+
return pending;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* The request is finished, cancelled or answered.
|
|
235
|
+
*
|
|
236
|
+
* The pending actions of the guard become inert: a completed request
|
|
237
|
+
* must not be continued by the guard.
|
|
238
|
+
*/
|
|
239
|
+
deactivate(): void {
|
|
240
|
+
this.inactive = true;
|
|
241
|
+
this.pending = null;
|
|
242
|
+
this.running.clear();
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* A new request of the human begins.
|
|
247
|
+
*
|
|
248
|
+
* The guard is active again, and the state of the new request is its
|
|
249
|
+
* own: the counters of the old request do not carry over.
|
|
250
|
+
*/
|
|
251
|
+
activate(): void {
|
|
252
|
+
this.inactive = false;
|
|
253
|
+
this.pending = null;
|
|
254
|
+
this.speechCount = 0;
|
|
255
|
+
this.lastSeverity = -1;
|
|
256
|
+
this.spokenRevision = -1;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The checkpoint that survives a compaction.
|
|
261
|
+
*
|
|
262
|
+
* The checkpoint is saved before the compaction, so the summary of the
|
|
263
|
+
* context and the record of the exploration are two separate things.
|
|
264
|
+
*/
|
|
265
|
+
saveCheckpoint(): void {
|
|
266
|
+
if (this.inactive) return;
|
|
267
|
+
try {
|
|
268
|
+
const state = this.tracker.state(this.key());
|
|
269
|
+
this.tracker.save(this.key(), {
|
|
270
|
+
...state,
|
|
271
|
+
updatedAt: this.now(),
|
|
272
|
+
});
|
|
273
|
+
} catch {
|
|
274
|
+
// The checkpoint could not be saved: the compaction continues and
|
|
275
|
+
// the uncertainty is reported afterwards.
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* The text that the agent receives after a compaction.
|
|
281
|
+
*
|
|
282
|
+
* The text names the checkpoint of the request. When the checkpoint
|
|
283
|
+
* cannot be read, the text says so: an unknown coverage is never a
|
|
284
|
+
* fresh budget and never the knowledge of the whole repository.
|
|
285
|
+
*/
|
|
286
|
+
continuationAfterCompaction(): string {
|
|
287
|
+
try {
|
|
288
|
+
const state = this.tracker.state(this.key());
|
|
289
|
+
return buildContinuationText(state);
|
|
290
|
+
} catch (error) {
|
|
291
|
+
return describeUnreadableCheckpoint((error as Error).message);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* The compact checkpoint of the request, for a durable copy.
|
|
297
|
+
*/
|
|
298
|
+
compactCheckpoint(): ReturnType<typeof toCompactCheckpoint> | null {
|
|
299
|
+
try {
|
|
300
|
+
return toCompactCheckpoint(this.tracker.state(this.key()), this.now());
|
|
301
|
+
} catch {
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* The status of the exploration.
|
|
308
|
+
*/
|
|
309
|
+
status(): string {
|
|
310
|
+
try {
|
|
311
|
+
return this.tracker.status(this.key());
|
|
312
|
+
} catch {
|
|
313
|
+
return "investigating | unknown";
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|