pi-harness-runtime 1.1.477 → 1.1.479

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 (51) hide show
  1. package/CHANGELOG.md +111 -0
  2. package/harness/honcho-init.ts +18 -0
  3. package/harness/pending-question-state.ts +74 -0
  4. package/index.ts +39 -4
  5. package/package.json +1 -1
  6. package/packages/agent-policy/package.json +1 -1
  7. package/packages/auth/package.json +1 -1
  8. package/packages/autonomous-runtime/package.json +1 -1
  9. package/packages/checkpoint/package.json +1 -1
  10. package/packages/clipboard/package.json +1 -1
  11. package/packages/codex-watcher/package.json +1 -1
  12. package/packages/config-capture/package.json +1 -1
  13. package/packages/contracts/package.json +1 -1
  14. package/packages/cookie-sanitizer/package.json +1 -1
  15. package/packages/evaluation-engine/package.json +1 -1
  16. package/packages/event-bus/package.json +1 -1
  17. package/packages/event-store/package.json +1 -1
  18. package/packages/experience-replay/package.json +1 -1
  19. package/packages/file-copy-helper/package.json +1 -1
  20. package/packages/intent-analyzer/package.json +1 -1
  21. package/packages/jev-judge/dist/question-risk.d.ts +7 -1
  22. package/packages/jev-judge/dist/question-risk.d.ts.map +1 -1
  23. package/packages/jev-judge/dist/question-risk.js +15 -2
  24. package/packages/jev-judge/dist/question-risk.js.map +1 -1
  25. package/packages/jev-judge/package.json +1 -1
  26. package/packages/jev-judge/src/question-risk.ts +15 -2
  27. package/packages/knowledge-retrieval/package.json +1 -1
  28. package/packages/learning-engine/package.json +1 -1
  29. package/packages/logging/package.json +1 -1
  30. package/packages/memory-engine/package.json +1 -1
  31. package/packages/notification/package.json +1 -1
  32. package/packages/paperclip-integration/package.json +1 -1
  33. package/packages/performance-optimizer/package.json +1 -1
  34. package/packages/privilege-broker/package.json +1 -1
  35. package/packages/prompt-compiler/package.json +1 -1
  36. package/packages/providers/package.json +1 -1
  37. package/packages/qdrant-skills/package.json +1 -1
  38. package/packages/quota-manager/package.json +1 -1
  39. package/packages/relay/package.json +1 -1
  40. package/packages/skill-mcp-client/package.json +1 -1
  41. package/packages/skills/package.json +1 -1
  42. package/packages/todo-bd-sync/package.json +1 -1
  43. package/packages/token-estimation/package.json +1 -1
  44. package/packages/tooling-preference/package.json +1 -1
  45. package/packages/trajectory/package.json +1 -1
  46. package/packages/tui/package.json +1 -1
  47. package/packages/two-phase-review/package.json +1 -1
  48. package/packages/types/package.json +1 -1
  49. package/packages/webmcp-tester/package.json +1 -1
  50. package/packages/wiki/package.json +1 -1
  51. package/packages/write-review/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,117 @@
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.479](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.479) (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:** tell the user what to do about an exposed key file ([7031003](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7031003574307351b7a8f28ee14159b58e17b793))
18
+ * **keys:** the key files are repaired when their permissions are unsafe ([e9c2c26](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e9c2c26b287665b56ed749de269737e8403bb8af))
19
+ * **mcp:** the harness connects the registered servers when nobody else does ([7fef951](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7fef95137ad4664df57f045cd91b7d233315b0bc))
20
+ * **merge:** a manual run can leave the merge to the pull request event ([b3d1950](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b3d1950b5941c78ccd56951acdafd1d4afbe1bff))
21
+ * **phase:** the agent owns the todo list and the harness says so ([c489370](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c489370bd7926aece8cb1a77aa20ca2d2672f1fb))
22
+ * **review:** the review starts on its own when the implementation is done ([04f51f5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/04f51f599cd3222b6c74dd8fadb1373bd72d9bd7))
23
+ * **status:** the status line names the phase, the progress and the children ([0167bf3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/0167bf396a0b987c1d44f3b869351976a951dd65))
24
+ * **test:** the task waits for the final tier of the validation plan ([fa147db](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fa147dbf7d50d56e6ea48c6d8fbb4fcb190caf8a))
25
+ * **validation:** a large job starts with a measured pilot ([425964b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/425964b04a3d4fa02adfabed47ff62c5ec2b9c28))
26
+ * **validation:** the size of a job is a fact, not a phrase ([8aa6c11](https://github.com/ManotLuijiu/pi-harness-runtime/commit/8aa6c119565d0f8412dc8aeafa6b295d47d3f093))
27
+ * **workspace:** a Frappe bench names the mode of the workspace ([9d58517](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d585172063a330992fee933316e268ae9985e3c))
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * **ci:** every run of a required check counts, and the worst one decides ([da9e0da](https://github.com/ManotLuijiu/pi-harness-runtime/commit/da9e0da6b0ca29cb320764fd5fc1b8a8dee8b1e0))
33
+ * **ci:** the newest attempt of a run decides, not the attempt that failed ([9d7adcc](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d7adcc31cbacc517c3c1a9bcd3956be94c908ef))
34
+ * **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))
35
+ * **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))
36
+ * **honcho:** the report names the state of the MCP server, not the registration ([762f4d5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/762f4d59e4eabcab9a1c21a61aa522c3267621b3))
37
+ * **hooks:** a tag is checked through the commit behind it ([c823e8e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c823e8e1f6973c62b5449a97c101759a4d5cbba5))
38
+ * **jev:** a prohibition must not hide a destructive action ([78a6cc1](https://github.com/ManotLuijiu/pi-harness-runtime/commit/78a6cc199e647f812e145483f7e94991358d8f34))
39
+ * **jev:** a session switch ends the wait of the old session ([ca03d39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ca03d399c0d4a1b2dd428ac39836ab53c0e51ab6))
40
+ * **jev:** keep a comparative caveat with the option it constrains ([7be306b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7be306b0d0872713ebca9386d613ae5a8da9d5b6))
41
+ * **jev:** the action of the question, and an open question blocks the work ([1f9ff39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/1f9ff39efc4ee17464c54c2ca9b583245093dbac))
42
+ * **jev:** the alternatives of a question are parsed without a quadratic pattern ([63016a3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/63016a3f0488acb801990dd46770c00d382b5858))
43
+ * **jev:** the facts of an option survive the wording of the agent ([5a6250c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5a6250c07aa8d965bc6ae242cccbf519477598f8))
44
+ * **keys:** the key directory is audited as a tree ([081cc75](https://github.com/ManotLuijiu/pi-harness-runtime/commit/081cc75ac8ceff36b0d619c3f76371dc08459d3c))
45
+ * **mcp:** the connector and the watcher stop with the session ([4d1b87d](https://github.com/ManotLuijiu/pi-harness-runtime/commit/4d1b87d14d015749025b62bf54d6d0b6137295f7))
46
+ * **mcp:** the connector survives a runtime that cannot list the servers ([d0f555f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0f555fa14f51de33591e572a41ded5b59a3e4dd))
47
+ * **merge:** the boolean input is read as a boolean ([971b716](https://github.com/ManotLuijiu/pi-harness-runtime/commit/971b7169a43db382dbdeb6bb9bab02ab56e0351c))
48
+ * **merge:** the manual job needs the right of the merge ([7ba685e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7ba685ec43d815f90aa35b742579e87e76c69209))
49
+ * **merge:** the merge of the pull request is the GraphQL mutation ([972bab4](https://github.com/ManotLuijiu/pi-harness-runtime/commit/972bab4b0f7faf1b0047f3bb767ef6db3de4b2fa))
50
+ * **merge:** the workflow merges the pull request the gates cleared ([d7639ec](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d7639ec9b83723510acb4a5c4e23d5d6167c3af6))
51
+ * **release:** a manual release keeps the version of its manifest ([122e661](https://github.com/ManotLuijiu/pi-harness-runtime/commit/122e661ea48cb8aff14c71dbd0221a4cf0ba4c8e))
52
+ * **release:** the alignment names the reason of a failure ([5814dd0](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5814dd0b780f5839cf8011ed0cbbbb31e7eb0418))
53
+ * **release:** the channels of the package name the release ([a7a273f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a7a273ffe8398e2b5b07ef1c321777de41792c6e))
54
+ * **release:** the release publishes and leaves the channels alone ([5871746](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5871746589c1281d855dbeb591b02419fa43f22e))
55
+ * **release:** the release pull request names the version of its branch ([a846e83](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a846e83e6de6e529f4bca05e869db0b5eebb37c5))
56
+ * **release:** the release scans the tree of the commit it publishes ([7d47a0b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7d47a0b5406480a1e1d3a52623a76aabd1e2d0ba))
57
+ * **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))
58
+ * **workspace:** keep a client name out of the comment about the search depth ([b572e0a](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b572e0af16ff562203bda2b5c47b41807cff5a95))
59
+ * **workspace:** the repository names the mode before the mode stays unknown ([188a32c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/188a32c7a6af1465dd24714278fccc73d06f6477))
60
+
61
+ ### [1.1.478](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.478) (2026-11-08)
62
+
63
+
64
+ ### Features
65
+
66
+ * **delegation:** a child is only a child when it really ran ([ac4e678](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ac4e6782d7d4bc4941e458425c8a9f38a51fc9d4))
67
+ * **delegation:** the scope of a request is measured before it is judged ([684b6a5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/684b6a55184f63d3be24c48dcecfb0b13410dc15))
68
+ * **honcho:** the memory service speaks the native MCP of Pi ([f9f740c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f9f740c12869bae4c4380afbe8c76e12388bb744))
69
+ * **jev:** one decision per question, bound to the question it was evaluated for ([03448aa](https://github.com/ManotLuijiu/pi-harness-runtime/commit/03448aaa17f2d0c3bcf644b0b1d5949727dfff8c))
70
+ * **jev:** the evaluation of a choice sees what the options mean ([f0c207e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/f0c207e074701e6b7dab0965170ec39453d9d502))
71
+ * **jev:** the pending question carries the ask and the answer ([a792133](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a792133e517fb8c12d3363e98942f3af30270f27))
72
+ * **jev:** the pending question counts down to the decision ([d0cc171](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0cc171223986b2d32c670b6c1c74712fe0a4ad8))
73
+ * **keys:** tell the user what to do about an exposed key file ([7031003](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7031003574307351b7a8f28ee14159b58e17b793))
74
+ * **keys:** the key files are repaired when their permissions are unsafe ([e9c2c26](https://github.com/ManotLuijiu/pi-harness-runtime/commit/e9c2c26b287665b56ed749de269737e8403bb8af))
75
+ * **mcp:** the harness connects the registered servers when nobody else does ([7fef951](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7fef95137ad4664df57f045cd91b7d233315b0bc))
76
+ * **merge:** a manual run can leave the merge to the pull request event ([b3d1950](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b3d1950b5941c78ccd56951acdafd1d4afbe1bff))
77
+ * **phase:** the agent owns the todo list and the harness says so ([c489370](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c489370bd7926aece8cb1a77aa20ca2d2672f1fb))
78
+ * **review:** the review starts on its own when the implementation is done ([04f51f5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/04f51f599cd3222b6c74dd8fadb1373bd72d9bd7))
79
+ * **status:** the status line names the phase, the progress and the children ([0167bf3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/0167bf396a0b987c1d44f3b869351976a951dd65))
80
+ * **test:** the task waits for the final tier of the validation plan ([fa147db](https://github.com/ManotLuijiu/pi-harness-runtime/commit/fa147dbf7d50d56e6ea48c6d8fbb4fcb190caf8a))
81
+ * **validation:** a large job starts with a measured pilot ([425964b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/425964b04a3d4fa02adfabed47ff62c5ec2b9c28))
82
+ * **validation:** the size of a job is a fact, not a phrase ([8aa6c11](https://github.com/ManotLuijiu/pi-harness-runtime/commit/8aa6c119565d0f8412dc8aeafa6b295d47d3f093))
83
+ * **workspace:** a Frappe bench names the mode of the workspace ([9d58517](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d585172063a330992fee933316e268ae9985e3c))
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * **ci:** every run of a required check counts, and the worst one decides ([da9e0da](https://github.com/ManotLuijiu/pi-harness-runtime/commit/da9e0da6b0ca29cb320764fd5fc1b8a8dee8b1e0))
89
+ * **ci:** the newest attempt of a run decides, not the attempt that failed ([9d7adcc](https://github.com/ManotLuijiu/pi-harness-runtime/commit/9d7adcc31cbacc517c3c1a9bcd3956be94c908ef))
90
+ * **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))
91
+ * **honcho:** the report names the state of the MCP server, not the registration ([762f4d5](https://github.com/ManotLuijiu/pi-harness-runtime/commit/762f4d59e4eabcab9a1c21a61aa522c3267621b3))
92
+ * **hooks:** a tag is checked through the commit behind it ([c823e8e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/c823e8e1f6973c62b5449a97c101759a4d5cbba5))
93
+ * **jev:** a prohibition must not hide a destructive action ([78a6cc1](https://github.com/ManotLuijiu/pi-harness-runtime/commit/78a6cc199e647f812e145483f7e94991358d8f34))
94
+ * **jev:** a session switch ends the wait of the old session ([ca03d39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/ca03d399c0d4a1b2dd428ac39836ab53c0e51ab6))
95
+ * **jev:** keep a comparative caveat with the option it constrains ([7be306b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7be306b0d0872713ebca9386d613ae5a8da9d5b6))
96
+ * **jev:** the action of the question, and an open question blocks the work ([1f9ff39](https://github.com/ManotLuijiu/pi-harness-runtime/commit/1f9ff39efc4ee17464c54c2ca9b583245093dbac))
97
+ * **jev:** the alternatives of a question are parsed without a quadratic pattern ([63016a3](https://github.com/ManotLuijiu/pi-harness-runtime/commit/63016a3f0488acb801990dd46770c00d382b5858))
98
+ * **jev:** the facts of an option survive the wording of the agent ([5a6250c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5a6250c07aa8d965bc6ae242cccbf519477598f8))
99
+ * **keys:** the key directory is audited as a tree ([081cc75](https://github.com/ManotLuijiu/pi-harness-runtime/commit/081cc75ac8ceff36b0d619c3f76371dc08459d3c))
100
+ * **mcp:** the connector and the watcher stop with the session ([4d1b87d](https://github.com/ManotLuijiu/pi-harness-runtime/commit/4d1b87d14d015749025b62bf54d6d0b6137295f7))
101
+ * **mcp:** the connector survives a runtime that cannot list the servers ([d0f555f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d0f555fa14f51de33591e572a41ded5b59a3e4dd))
102
+ * **merge:** the boolean input is read as a boolean ([971b716](https://github.com/ManotLuijiu/pi-harness-runtime/commit/971b7169a43db382dbdeb6bb9bab02ab56e0351c))
103
+ * **merge:** the manual job needs the right of the merge ([7ba685e](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7ba685ec43d815f90aa35b742579e87e76c69209))
104
+ * **merge:** the merge of the pull request is the GraphQL mutation ([972bab4](https://github.com/ManotLuijiu/pi-harness-runtime/commit/972bab4b0f7faf1b0047f3bb767ef6db3de4b2fa))
105
+ * **merge:** the workflow merges the pull request the gates cleared ([d7639ec](https://github.com/ManotLuijiu/pi-harness-runtime/commit/d7639ec9b83723510acb4a5c4e23d5d6167c3af6))
106
+ * **release:** a manual release keeps the version of its manifest ([122e661](https://github.com/ManotLuijiu/pi-harness-runtime/commit/122e661ea48cb8aff14c71dbd0221a4cf0ba4c8e))
107
+ * **release:** the alignment names the reason of a failure ([5814dd0](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5814dd0b780f5839cf8011ed0cbbbb31e7eb0418))
108
+ * **release:** the channels of the package name the release ([a7a273f](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a7a273ffe8398e2b5b07ef1c321777de41792c6e))
109
+ * **release:** the release publishes and leaves the channels alone ([5871746](https://github.com/ManotLuijiu/pi-harness-runtime/commit/5871746589c1281d855dbeb591b02419fa43f22e))
110
+ * **release:** the release pull request names the version of its branch ([a846e83](https://github.com/ManotLuijiu/pi-harness-runtime/commit/a846e83e6de6e529f4bca05e869db0b5eebb37c5))
111
+ * **release:** the release scans the tree of the commit it publishes ([7d47a0b](https://github.com/ManotLuijiu/pi-harness-runtime/commit/7d47a0b5406480a1e1d3a52623a76aabd1e2d0ba))
112
+ * **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))
113
+ * **workspace:** keep a client name out of the comment about the search depth ([b572e0a](https://github.com/ManotLuijiu/pi-harness-runtime/commit/b572e0af16ff562203bda2b5c47b41807cff5a95))
114
+ * **workspace:** the repository names the mode before the mode stays unknown ([188a32c](https://github.com/ManotLuijiu/pi-harness-runtime/commit/188a32c7a6af1465dd24714278fccc73d06f6477))
115
+
5
116
  ### [1.1.477](https://github.com/ManotLuijiu/pi-harness-runtime/compare/v1.1.448...v1.1.477) (2026-11-08)
6
117
 
7
118
 
@@ -1523,6 +1523,24 @@ async function runInit(options?: {
1523
1523
  } catch (err) {
1524
1524
  const message = err instanceof Error ? err.message : String(err);
1525
1525
  const status = errorStatus(err);
1526
+ // The session ended while the tools were listed: the connection was
1527
+ // closed by the end of the session, not by the server. Nothing is
1528
+ // claimed about the server.
1529
+ if (options?.isSessionEnded?.()) {
1530
+ logServiceEvent({
1531
+ ts: new Date().toISOString(),
1532
+ level: "info",
1533
+ service: "honcho",
1534
+ operation: "mcp_tools",
1535
+ phase: "ended",
1536
+ });
1537
+ await closeUnusedClient(client);
1538
+ return {
1539
+ status: "session_ended",
1540
+ memory: null,
1541
+ reason: "the session ended before the Honcho MCP was checked",
1542
+ };
1543
+ }
1526
1544
  logServiceEvent({ ts: new Date().toISOString(), level: "error", service: "honcho", operation: "mcp_tools", phase: "failed", reason: redact(message) });
1527
1545
  honchoStatus.recordFailure("init", "list_tools_failed", { error: redact(message) });
1528
1546
 
@@ -0,0 +1,74 @@
1
+ /**
2
+ * The state of a question that waits for an answer.
3
+ *
4
+ * The runtime asks two questions about an open question, and both have the
5
+ * same answer: "is there still a question that waits for an answer?"
6
+ *
7
+ * - a reply of the user closes it, so its buttons cannot inject a second
8
+ * answer into a question that is done,
9
+ * - the work does not continue behind it, no matter why the wait is over.
10
+ *
11
+ * The rules live here, so the two places in the runtime cannot disagree.
12
+ */
13
+
14
+ /** The part of a pending question the rules need. */
15
+ export interface QuestionStateLike {
16
+ /** The state of the question ("pending", "evaluating", ...). */
17
+ state: string;
18
+ }
19
+
20
+ /**
21
+ * Is the question still waiting for an answer?
22
+ *
23
+ * A question that was answered, cancelled or expired is closed: its buttons
24
+ * are stale and it blocks nothing.
25
+ */
26
+ export function isQuestionOpen(
27
+ question: QuestionStateLike | null | undefined,
28
+ ): boolean {
29
+ if (!question) return false;
30
+ return question.state === "pending" || question.state === "evaluating";
31
+ }
32
+
33
+ /**
34
+ * May the work continue?
35
+ *
36
+ * A question that waits for an answer blocks the work - also when the wait
37
+ * itself is over: Jev asked a human, or the evaluation of the question
38
+ * failed. The question is the thing that needs an answer, so it blocks until
39
+ * it is answered or cancelled.
40
+ */
41
+ export function mayContinue(options: {
42
+ /** Is the wait of the question still running? */
43
+ waiting: boolean;
44
+ /** Is the question still open? */
45
+ questionOpen: boolean;
46
+ }): boolean {
47
+ return !(options.waiting || options.questionOpen);
48
+ }
49
+
50
+ /**
51
+ * What a reply of the user does to the wait and to the question.
52
+ *
53
+ * - `cancelled-wait-and-question`: the wait was running. The reply ends the
54
+ * wait and closes the question.
55
+ * - `cancelled-question`: the wait was over, but the question was still
56
+ * open. The reply closes the question. The work that was paused for the
57
+ * answer continues, because the human is here.
58
+ * - `none`: there is nothing to close.
59
+ */
60
+ export type UserReplyEffect =
61
+ | "cancelled-wait-and-question"
62
+ | "cancelled-question"
63
+ | "none";
64
+
65
+ export function userReplyEffect(options: {
66
+ /** Is the wait of the question still running? */
67
+ waiting: boolean;
68
+ /** Is the question still open? */
69
+ questionOpen: boolean;
70
+ }): UserReplyEffect {
71
+ if (options.waiting) return "cancelled-wait-and-question";
72
+ if (options.questionOpen) return "cancelled-question";
73
+ return "none";
74
+ }
package/index.ts CHANGED
@@ -33,6 +33,11 @@ import {
33
33
  type KeyFileAuditResult,
34
34
  } from "./harness/key-file-audit.ts";
35
35
  import { renderDetailLines } from "./harness/startup-lines.ts";
36
+ import {
37
+ isQuestionOpen,
38
+ mayContinue,
39
+ userReplyEffect,
40
+ } from "./harness/pending-question-state.ts";
36
41
  import { describeInboundAccess, getAllowedUserIds } from "./harness/telegram-auth.ts";
37
42
  import { buildTelegramCallbackUpdate, buildTelegramMessageUpdate } from "./harness/telegram-update.ts";
38
43
  import { installConsoleGuard } from "./harness/console-guard.ts";
@@ -1029,6 +1034,18 @@ async function initAutoContinue(pi: ExtensionAPI): Promise<void> {
1029
1034
  );
1030
1035
  }
1031
1036
 
1037
+ /**
1038
+ * Is the question of this session still open?
1039
+ *
1040
+ * The wait can be over while the question is not: after the decision
1041
+ * of Jev asked a human, and after an evaluation that failed, the
1042
+ * question stays open so the human can still answer it. Its buttons
1043
+ * stay valid with it, so a later click would inject a second answer.
1044
+ */
1045
+ function hasOpenQuestion(): boolean {
1046
+ return isQuestionOpen(sharedState.pqController?.getCurrentQuestion?.());
1047
+ }
1048
+
1032
1049
  // A continuation was dispatched and its turn has not settled yet.
1033
1050
  // The gate owns that state: the status stays "RUN" until the turn
1034
1051
  // settles, and no timer may clear it in the meantime.
@@ -1670,14 +1687,25 @@ async function initAutoContinue(pi: ExtensionAPI): Promise<void> {
1670
1687
  }
1671
1688
  }
1672
1689
  lastUserMessage = new Date();
1673
- if (isWaitingForUser()) {
1690
+ const replyEffect = userReplyEffect({
1691
+ waiting: isWaitingForUser(),
1692
+ questionOpen: hasOpenQuestion(),
1693
+ });
1694
+ if (replyEffect !== "none") {
1674
1695
  // The user answered in Pi: the wait and the countdown of
1675
- // the wait are over with it.
1696
+ // the wait are over with it, and the question is closed
1697
+ // so that its buttons cannot inject a second answer.
1676
1698
  clearWait();
1677
1699
  updateAutoContinueStatus("IDLE");
1678
1700
  // Cancel pending question on user response
1679
1701
  // (User answered via Pi instead of button)
1680
1702
  sharedState.pqController?.cancel("User responded via Pi");
1703
+ if (replyEffect === "cancelled-question") {
1704
+ // The wait was over - Jev asked a human, or the
1705
+ // evaluation failed - and the work was paused for the
1706
+ // answer. The human is here: the work continues.
1707
+ (sharedState.todoContinuationController as any)?.resume?.();
1708
+ }
1681
1709
  }
1682
1710
  }
1683
1711
  });
@@ -2116,6 +2144,11 @@ async function initAutoContinue(pi: ExtensionAPI): Promise<void> {
2116
2144
  logToFile("[auto-continue]", "The evaluation of the question failed:", message);
2117
2145
  _inferenceInProgress = false;
2118
2146
  updateAutoContinueStatus("ERROR");
2147
+ // The question is still open: the work must not continue
2148
+ // behind it. The pause ends when the question is answered
2149
+ // (a channel answer resumes it) or cancelled (a reply of
2150
+ // the user in Pi cancels it).
2151
+ (sharedState.todoContinuationController as any)?.explicitPause?.();
2119
2152
  addHarnessMessage("Jev", "auto-continue evaluation failed", "err", [
2120
2153
  "How to fix: Check logs at /tmp/pi-harness.log for API errors",
2121
2154
  "Ensure TYPESAFE_API_KEY is valid, then restart.",
@@ -2378,8 +2411,10 @@ async function initAutoContinue(pi: ExtensionAPI): Promise<void> {
2378
2411
  updateAutoContinueStatus("IDLE");
2379
2412
  }
2380
2413
 
2381
- // Don't continue if user is waiting for response
2382
- if (isWaitingForUser()) {
2414
+ // Don't continue if user is waiting for response, and do not
2415
+ // continue behind a question that is still open: the work waits
2416
+ // for the answer, also when the wait itself is over.
2417
+ if (!mayContinue({ waiting: isWaitingForUser(), questionOpen: hasOpenQuestion() })) {
2383
2418
  todoContinuationController?.clearQueue();
2384
2419
  return;
2385
2420
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-harness-runtime",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "[BETA] Codex-style /usage status + autonomous coding harness for pi. Not production ready — expect breaking changes.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/agent-policy",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Agent policy runtime for pi-harness - enforces mandatory rule delivery and mutation gating",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/auth",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "pi-harness-runtime — auth",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/autonomous-runtime",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Autonomous Operations Runtime — task inbox, lease management, and worker lifecycle (RFC-0101)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/checkpoint",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Enhanced checkpoint system with incremental snapshots, diff-based storage, and recovery strategies",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/clipboard",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/codex-watcher",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Watches Codex CLI sessions and emits visible messages for PING-PONG monitoring",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moocoding/config-capture",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Auto-capture API-fetched configuration values to AGENTS.md",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/contracts",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "type": "module",
5
5
  "description": "RPC schema definitions for pi-harness runtime",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/cookie-sanitizer",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "pi-harness-runtime — cookie sanitizer (provider-quota cookie file normaliser)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/evaluation-engine",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Evaluation engine for pi-harness runtime (RFC-0057)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/event-bus",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/event-store",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/experience-replay",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Experience replay for debugging and reproducibility (RFC-0059)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moocoding/file-copy-helper",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Injects cp/sudo cp rule when user asks to mimic/copy files",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/intent-analyzer",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "exports": {
@@ -57,7 +57,13 @@ export declare const MAX_ACTION_CHARS = 600;
57
57
  * The message carries the ask ("may I proceed?") and the action ("I will
58
58
  * delete the branch"). The risk is about the action, so the action is
59
59
  * extracted: the sentences of the message that state what happens. The
60
- * question sentence itself is not an action - it asks, it does not act.
60
+ * question sentence itself is not an action - it asks, it does not act -
61
+ * unless it names an action itself.
62
+ *
63
+ * The question is assessed when it names an action: "I can update the status
64
+ * text. Want me to delete the production database?" states a harmless action
65
+ * in the message and asks for a deletion in the question. The action of the
66
+ * question is therefore always part of the action that is classified.
61
67
  *
62
68
  * When the message names no action, the question text is the action: the
63
69
  * risk of the question is then the risk of the ask.
@@ -1 +1 @@
1
- {"version":3,"file":"question-risk.d.ts","sourceRoot":"","sources":["../src/question-risk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,UAAU,GACV,eAAe,GACf,UAAU,GACV,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,2CAA2C;AAC3C,MAAM,WAAW,iBAAiB;IAChC,4DAA4D;IAC5D,6BAA6B,EAAE,OAAO,CAAC;IACvC,kDAAkD;IAClD,WAAW,EAAE,OAAO,CAAC;IACrB,gCAAgC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,+CAA+C;IAC/C,QAAQ,EAAE,OAAO,CAAC;IAClB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,6DAA6D;IAC7D,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,cAA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AG,SAAS,GAC/B,MAAM,CAuBR;AA2KD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,iBAAiB,GACtB,iBAAiB,CAoDnB"}
@@ -29,7 +29,13 @@ const ACTION_VERBS = /\b(delete|deletes|deleted|deleting|remove|removes|removed|
29
29
  * The message carries the ask ("may I proceed?") and the action ("I will
30
30
  * delete the branch"). The risk is about the action, so the action is
31
31
  * extracted: the sentences of the message that state what happens. The
32
- * question sentence itself is not an action - it asks, it does not act.
32
+ * question sentence itself is not an action - it asks, it does not act -
33
+ * unless it names an action itself.
34
+ *
35
+ * The question is assessed when it names an action: "I can update the status
36
+ * text. Want me to delete the production database?" states a harmless action
37
+ * in the message and asks for a deletion in the question. The action of the
38
+ * question is therefore always part of the action that is classified.
33
39
  *
34
40
  * When the message names no action, the question text is the action: the
35
41
  * risk of the question is then the risk of the ask.
@@ -47,7 +53,14 @@ export function extractProposedAction(contextText, questionText) {
47
53
  if (actionSentences.length === 0) {
48
54
  return question.slice(0, MAX_ACTION_CHARS);
49
55
  }
50
- return actionSentences.join(" ").slice(0, MAX_ACTION_CHARS);
56
+ // The question can carry the action that the message does not name. It is
57
+ // assessed together with the sentences of the message: the risk of the
58
+ // proposal is the risk of everything that is proposed.
59
+ const questionIsAction = question.length > 0 && ACTION_VERBS.test(question);
60
+ const parts = questionIsAction
61
+ ? [...actionSentences, question]
62
+ : actionSentences;
63
+ return parts.join(" ").slice(0, MAX_ACTION_CHARS);
51
64
  }
52
65
  /**
53
66
  * Words that name an action that destroys, drops or overwrites something.
@@ -1 +1 @@
1
- {"version":3,"file":"question-risk.js","sourceRoot":"","sources":["../src/question-risk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAoDH;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAEpC;;;;;;GAMG;AACH,MAAM,YAAY,GAChB,2nDAA2nD,CAAC;AAE9nD;;;;;;;;;;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ACtC,CAAC;IAED,6DAA6D;IAC7D,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;QAC3B,6BAA6B,GAAG,IAAI,CAAC;QACrC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAClC,CAAC;IAED,OAAO;QACN,6BAA6B;QAC7B,WAAW;QACX,mDAAmD;QACnD,UAAU,EAAE,CAAC,WAAW;QACxB,QAAQ;QACR,OAAO;KACP,CAAC;AACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/jev-judge",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Jev Judge - Structured decision model for agent routing, E2E testing, and automated decisions",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -83,7 +83,13 @@ const ACTION_VERBS =
83
83
  * The message carries the ask ("may I proceed?") and the action ("I will
84
84
  * delete the branch"). The risk is about the action, so the action is
85
85
  * extracted: the sentences of the message that state what happens. The
86
- * question sentence itself is not an action - it asks, it does not act.
86
+ * question sentence itself is not an action - it asks, it does not act -
87
+ * unless it names an action itself.
88
+ *
89
+ * The question is assessed when it names an action: "I can update the status
90
+ * text. Want me to delete the production database?" states a harmless action
91
+ * in the message and asks for a deletion in the question. The action of the
92
+ * question is therefore always part of the action that is classified.
87
93
  *
88
94
  * When the message names no action, the question text is the action: the
89
95
  * risk of the question is then the risk of the ask.
@@ -106,7 +112,14 @@ export function extractProposedAction(
106
112
  if (actionSentences.length === 0) {
107
113
  return question.slice(0, MAX_ACTION_CHARS);
108
114
  }
109
- return actionSentences.join(" ").slice(0, MAX_ACTION_CHARS);
115
+ // The question can carry the action that the message does not name. It is
116
+ // assessed together with the sentences of the message: the risk of the
117
+ // proposal is the risk of everything that is proposed.
118
+ const questionIsAction = question.length > 0 && ACTION_VERBS.test(question);
119
+ const parts = questionIsAction
120
+ ? [...actionSentences, question]
121
+ : actionSentences;
122
+ return parts.join(" ").slice(0, MAX_ACTION_CHARS);
110
123
  }
111
124
 
112
125
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/knowledge-retrieval",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Knowledge retrieval via TencentDB-Agent-Memory MCP (RFC-0105)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/learning-engine",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Learning engine for extracting lessons from runtime execution (RFC-0058)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/logging",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "type": "module",
5
5
  "description": "Centralized structured application logging with buffered Cloudflare R2 and webhook transports",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/memory-engine",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Memory engine with OKF integration for durable knowledge management (RFC-0060)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/notification",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "pi-harness-runtime — notification",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/paperclip-integration",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Paperclip API integration: poll agent inbox, route tasks to pi.dev, Telegram alerts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/performance-optimizer",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Performance optimization analyzer for pi-harness runtime (RFC-0056)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/privilege-broker",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Privilege Broker — capability registry and command executor for autonomous runtime (RFC-0101 §7)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/prompt-compiler",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Deterministic prompt compiler for pi-harness-runtime",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/providers",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "pi-harness-runtime — providers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/qdrant-skills",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Qdrant vector search integration for Hermes-style skill system",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/quota-manager",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "pi-harness-runtime — quota-manager",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/relay",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "type": "module",
5
5
  "description": "Cloud relay for remote access - T3 Connect style for pi-harness",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi/skill-mcp-client",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "MCP client for Skills SaaS backend",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/skills",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "File-based skill system with pi.dev compatibility and Hermes self-improvement",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moocoding/todo-bd-sync",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Two-way sync between rpiv-todo overlay and bd issue tracker",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/token-estimation",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "pi-harness-runtime — token-estimation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/tooling-preference",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "pi-harness-runtime — JS/TS tooling preference (Biome vs ESLint/Prettier) proposal",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/trajectory",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Trajectory capture for the write-review loop — persists cycle records for learning",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/tui",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "pi-harness-runtime — tui",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/two-phase-review",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "pi-harness-runtime — two-phase implementation and review workflow (queue review signals, gate the phase, scope the diff)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/types",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Shared TypeScript types for pi-harness-runtime packages",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/webmcp-tester",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "WebMCP-powered E2E testing for pi-harness - natural language test scenarios",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-harness/wiki",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "LLM Wiki integration for pi-harness-runtime",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moocoding/write-review",
3
- "version": "1.1.477",
3
+ "version": "1.1.479",
4
4
  "description": "Two-agent write-review loop with blackboard coordination",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",