@stigmer/runner 3.12.9 → 3.14.0-dev.20260910084630
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/LICENSE +190 -0
- package/dist/.build-fingerprint +1 -1
- package/dist/activities/call-agent.d.ts +3 -2
- package/dist/activities/call-agent.js +13 -4
- package/dist/activities/call-agent.js.map +1 -1
- package/dist/activities/discover-mcp-server.js +1 -1
- package/dist/activities/execute-cursor/message-translator.d.ts +67 -0
- package/dist/activities/execute-cursor/message-translator.js +103 -0
- package/dist/activities/execute-cursor/message-translator.js.map +1 -1
- package/dist/activities/execute-cursor/prompt-builder.js +13 -1
- package/dist/activities/execute-cursor/prompt-builder.js.map +1 -1
- package/dist/activities/execute-cursor/turn-boundary.d.ts +16 -1
- package/dist/activities/execute-cursor/turn-boundary.js +44 -2
- package/dist/activities/execute-cursor/turn-boundary.js.map +1 -1
- package/dist/activities/execute-deep-agent/attachment-injector.d.ts +1 -1
- package/dist/activities/execute-deep-agent/attachment-injector.js +2 -2
- package/dist/activities/execute-deep-agent/attachment-injector.js.map +1 -1
- package/dist/client/stigmer-client.js +7 -2
- package/dist/client/stigmer-client.js.map +1 -1
- package/dist/ipc-protocol-fixtures.js +3 -4
- package/dist/ipc-protocol-fixtures.js.map +1 -1
- package/dist/ipc-protocol.js +5 -4
- package/dist/ipc-protocol.js.map +1 -1
- package/dist/runner-manager.js +1 -1
- package/dist/runner-manager.js.map +1 -1
- package/dist/runner.js +1 -1
- package/dist/runner.js.map +1 -1
- package/dist/shared/zip-extract.js +1 -1
- package/dist/shared/zip-extract.js.map +1 -1
- package/package.json +15 -4
- package/src/__tests__/ipc-protocol-fixtures.test.ts +3 -4
- package/src/__tests__/ipc-protocol.test.ts +3 -2
- package/src/activities/call-agent.ts +14 -4
- package/src/activities/discover-mcp-server.ts +1 -1
- package/src/activities/execute-cursor/__tests__/cursor-generate-image-live.test.ts +147 -0
- package/src/activities/execute-cursor/__tests__/skill-resolver.test.ts +1 -1
- package/src/activities/execute-cursor/__tests__/turn-boundary.test.ts +153 -1
- package/src/activities/execute-cursor/message-translator.ts +115 -0
- package/src/activities/execute-cursor/prompt-builder.ts +13 -1
- package/src/activities/execute-cursor/turn-boundary.ts +65 -1
- package/src/activities/execute-deep-agent/__tests__/attachment-injector.test.ts +3 -2
- package/src/activities/execute-deep-agent/attachment-injector.ts +2 -2
- package/src/client/stigmer-client.ts +7 -2
- package/src/ipc-protocol-fixtures.ts +3 -4
- package/src/ipc-protocol.ts +5 -4
- package/src/runner-manager.ts +1 -1
- package/src/runner.ts +1 -1
- package/src/shared/__tests__/skill-mount.test.ts +1 -1
- package/src/shared/__tests__/skill-writer.test.ts +1 -1
- package/src/shared/__tests__/zip-extract.test.ts +1 -1
- package/src/shared/zip-extract.ts +1 -1
- package/dist/shared/zip-structure.d.ts +0 -61
- package/dist/shared/zip-structure.js +0 -128
- package/dist/shared/zip-structure.js.map +0 -1
- package/src/__test-utils__/zip-fixtures.ts +0 -206
- package/src/shared/zip-structure.ts +0 -181
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Stigmer Contributors
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/dist/.build-fingerprint
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"hash":"
|
|
1
|
+
{"hash":"7c856383e6ad237f","builtAt":"2026-09-10T08:50:47.176Z","fileCount":293}
|
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
* Input: (config, runtimeEnv, parentWorkflowId)
|
|
19
19
|
* Output: (completed asynchronously by platform)
|
|
20
20
|
*/
|
|
21
|
+
import { type Config } from "../config.js";
|
|
21
22
|
import type { AgentCallConfig } from "../workflow-engine/types.js";
|
|
22
|
-
export declare function callAgentAction(config: AgentCallConfig, runtimeEnv: Record<string, unknown>, parentWorkflowId: string): Promise<void>;
|
|
23
|
-
export declare function createCallAgentActivities(): {
|
|
23
|
+
export declare function callAgentAction(config: AgentCallConfig, runtimeEnv: Record<string, unknown>, parentWorkflowId: string, appConfig?: Config): Promise<void>;
|
|
24
|
+
export declare function createCallAgentActivities(appConfig: Config): {
|
|
24
25
|
CallAgent: (config: AgentCallConfig, runtimeEnv: Record<string, unknown>, parentWorkflowId: string) => Promise<void>;
|
|
25
26
|
};
|
|
@@ -36,7 +36,7 @@ import { ExecutionValueSchema } from "@stigmer/protos/ai/stigmer/agentic/executi
|
|
|
36
36
|
import { ApiResourceMetadataSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/metadata_pb";
|
|
37
37
|
import { ApiResourceReferenceSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
|
|
38
38
|
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
39
|
-
export async function callAgentAction(config, runtimeEnv, parentWorkflowId) {
|
|
39
|
+
export async function callAgentAction(config, runtimeEnv, parentWorkflowId, appConfig = loadConfig()) {
|
|
40
40
|
const taskToken = Context.current().info.taskToken;
|
|
41
41
|
const resolved = resolveObjectPlaceholders(config, runtimeEnv);
|
|
42
42
|
if (!resolved.agent) {
|
|
@@ -56,10 +56,19 @@ export async function callAgentAction(config, runtimeEnv, parentWorkflowId) {
|
|
|
56
56
|
throw new Error("call:agent requires an organization context. " +
|
|
57
57
|
"Ensure '__stigmer_org_id' is in the workflow environment.");
|
|
58
58
|
}
|
|
59
|
-
const appConfig = loadConfig();
|
|
60
59
|
const client = new StigmerClient({
|
|
61
60
|
endpoint: appConfig.stigmerBackendEndpoint,
|
|
62
61
|
token: appConfig.stigmerToken,
|
|
62
|
+
tokenRef: appConfig.stigmerTokenRef,
|
|
63
|
+
// The child-execution create must authenticate as the RUNNER, not the
|
|
64
|
+
// user: it stamps the workflow lineage labels, which cloud's
|
|
65
|
+
// reserved-label guard and environment composer accept only from
|
|
66
|
+
// runner-class callers. The client's credential-selection table routes
|
|
67
|
+
// exactly that create to this credential; null (OSS/local, no mint)
|
|
68
|
+
// falls through to the control-plane token unchanged. The refs live only
|
|
69
|
+
// on the runner's INJECTED Config (loadConfig() rebuilds from env and
|
|
70
|
+
// never carries them), which is why the factory passes it in.
|
|
71
|
+
runnerTokenRef: appConfig.stigmerRunnerTokenRef,
|
|
63
72
|
});
|
|
64
73
|
const agentRef = parseAgentReference(resolved.agent, orgId);
|
|
65
74
|
const agent = await client.getAgentByReference(create(ApiResourceReferenceSchema, agentRef));
|
|
@@ -305,12 +314,12 @@ function resolveExecutionTarget(target) {
|
|
|
305
314
|
return ExecutionTarget.CLOUD;
|
|
306
315
|
return ExecutionTarget.UNSPECIFIED;
|
|
307
316
|
}
|
|
308
|
-
export function createCallAgentActivities() {
|
|
317
|
+
export function createCallAgentActivities(appConfig) {
|
|
309
318
|
return {
|
|
310
319
|
CallAgent: async (config, runtimeEnv, parentWorkflowId) => {
|
|
311
320
|
const hb = startHeartbeat(15_000, () => ({ phase: "creating_agent_execution" }));
|
|
312
321
|
try {
|
|
313
|
-
return await callAgentAction(config, runtimeEnv, parentWorkflowId);
|
|
322
|
+
return await callAgentAction(config, runtimeEnv, parentWorkflowId, appConfig);
|
|
314
323
|
}
|
|
315
324
|
finally {
|
|
316
325
|
hb.stop();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-agent.js","sourceRoot":"","sources":["../../src/activities/call-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAmB,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AAC/H,OAAO,EAAE,aA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M,EAAE,GAAG,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,0BAA0B,EAAE,CAAC,CAAC,CAAC;YACjF,IAAI,CAAC;gBACH,OAAO,MAAM,eAAe,CAAC,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC;YAChF,CAAC;oBAAS,CAAC;gBACT,EAAE,CAAC,IAAI,EAAE,CAAC;YACZ,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -53,7 +53,7 @@ const STDIO_INIT_TIMEOUT_MS = 270_000;
|
|
|
53
53
|
* The server-side secret-redaction sentinel. Byte-for-byte the value both
|
|
54
54
|
* editions substitute for secret values a caller may not decrypt
|
|
55
55
|
* (`SecretEncryptionService.REDACTED_MARKER` in stigmer-cloud,
|
|
56
|
-
* `RedactedMarker` in the OSS
|
|
56
|
+
* `RedactedMarker` in the OSS server). Discovery dialing an
|
|
57
57
|
* endpoint with a redacted credential is guaranteed to fail confusingly
|
|
58
58
|
* (e.g. `Authorization: Bearer ***REDACTED***` → 401 → SSE-fallback limbo),
|
|
59
59
|
* so it is refused up front with an actionable error instead.
|
|
@@ -559,6 +559,73 @@ export interface UnattributedHookBlock {
|
|
|
559
559
|
* foreignGatingHooks warning still fires for diagnosability).
|
|
560
560
|
*/
|
|
561
561
|
export declare function detectUnattributedHookBlocks(messages: readonly AgentMessage[], turnStartMessageIndex: number, ledger: readonly DeniedLedgerEntry[], workspaceRoot?: string): UnattributedHookBlock[];
|
|
562
|
+
/**
|
|
563
|
+
* The honest terminal error stamped on a tool call that never resolved (issue
|
|
564
|
+
* #965). Deliberately states all three negatives — not executed, not approved,
|
|
565
|
+
* not denied — because the incident's harm was the model claiming an approval
|
|
566
|
+
* was pending: this text is what the transcript shows INSTEAD of a spinner or
|
|
567
|
+
* a silent after-the-fact interruption, and it must leave no room for an
|
|
568
|
+
* approval-is-coming reading.
|
|
569
|
+
*/
|
|
570
|
+
export declare const UNRESOLVED_TOOL_CALL_ERROR: string;
|
|
571
|
+
/** One never-resolved tool call the turn boundary settled (issue #965). */
|
|
572
|
+
export interface UnresolvedToolCall {
|
|
573
|
+
toolCallId: string;
|
|
574
|
+
toolName: string;
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* Settle this-turn tool calls that are still NON-TERMINAL when a turn
|
|
578
|
+
* completes without pausing — the issue #965 invariant, the sibling of
|
|
579
|
+
* {@link detectUnattributedHookBlocks}' #205 invariant ("a blocked tool must
|
|
580
|
+
* never silently complete" → "an unresolved tool must never silently
|
|
581
|
+
* complete").
|
|
582
|
+
*
|
|
583
|
+
* THE SHAPE THIS CATCHES. A tool that hangs INSIDE the Cursor agent runtime —
|
|
584
|
+
* the production case is `generateImage`, which rides the SDK's
|
|
585
|
+
* interaction-query channel rather than the ordinary tool path — streams a
|
|
586
|
+
* tool_call start, never streams a result, and is invisible to every Stigmer
|
|
587
|
+
* seam: the hook never denied it (no ledger entry), so the reconcile never
|
|
588
|
+
* gated it, and the turn completes with the row still PENDING/RUNNING. Before
|
|
589
|
+
* this sweep, the server's terminal settle (issue #207) stamped such rows
|
|
590
|
+
* TOOL_CALL_INTERRUPTED silently AFTER the runner reported completion — the
|
|
591
|
+
* transcript's last word stayed whatever the model claimed, which in
|
|
592
|
+
* aex_01m1a6ww3nmp4952ar5v0g4g85 was a promise that an approval was pending
|
|
593
|
+
* when none existed.
|
|
594
|
+
*
|
|
595
|
+
* Settling here instead makes the runner the author of the honest record: the
|
|
596
|
+
* row gets TOOL_CALL_INTERRUPTED with {@link UNRESOLVED_TOOL_CALL_ERROR}, and
|
|
597
|
+
* the caller (turn-boundary.ts) appends a system disclosure naming what never
|
|
598
|
+
* ran.
|
|
599
|
+
*
|
|
600
|
+
* WHY INTERRUPTED AND NEVER FAILED. TOOL_CALL_INTERRUPTED is deliberately the
|
|
601
|
+
* one settled status the monotonic merge guard lets live execution evidence
|
|
602
|
+
* supersede (see the guard's note in this file, ~line 331): if this FAILED
|
|
603
|
+
* execution is later RECOVERED, the harness checkpoint may re-execute the call
|
|
604
|
+
* under its original id, and the replayed events must be able to advance the
|
|
605
|
+
* row to its true outcome. A boundary-stamped FAILED would freeze it forever.
|
|
606
|
+
*
|
|
607
|
+
* WHY IT NEVER FAILS THE RUN (unlike #205). A foreign hook block is provably
|
|
608
|
+
* adversarial — approval semantics are permanently broken, so completing would
|
|
609
|
+
* always be a lie. An unresolved row can also be benign stream event-loss
|
|
610
|
+
* where the tool actually ran; failing the run would convert those into
|
|
611
|
+
* regressions. Disclosure restores honesty at zero regression risk.
|
|
612
|
+
*
|
|
613
|
+
* Scope and exclusions, in order:
|
|
614
|
+
* - THIS turn's parent-transcript rows only (from `turnStartMessageIndex`):
|
|
615
|
+
* seeded prior-turn rows were adjudicated by their own execution's settle,
|
|
616
|
+
* and sub-agent inner rows are the server settle's concern — the parent row
|
|
617
|
+
* (e.g. the Task call) is what the user sees. Mirrors #205's scoping.
|
|
618
|
+
* - Only PENDING/RUNNING rows: every terminal row was adjudicated, and
|
|
619
|
+
* WAITING_APPROVAL rows belong to the pause machinery (the caller only runs
|
|
620
|
+
* this sweep on a NON-pausing turn, so none should exist here anyway).
|
|
621
|
+
* - Only rows with NO denial-ledger entry of ANY kind (exact token, then the
|
|
622
|
+
* normalized-path fallback — the same two identities every sweep in this
|
|
623
|
+
* file uses): a ledger-attributed row is the unattended/secret/fail-closed
|
|
624
|
+
* machinery's to settle, not ours.
|
|
625
|
+
*
|
|
626
|
+
* Returns the settled calls so the boundary can disclose and log them.
|
|
627
|
+
*/
|
|
628
|
+
export declare function settleUnresolvedToolCalls(messages: readonly AgentMessage[], turnStartMessageIndex: number, ledger: readonly DeniedLedgerEntry[], workspaceRoot?: string): UnresolvedToolCall[];
|
|
562
629
|
/**
|
|
563
630
|
* Stamp the tool calls the hook denied under UNATTENDED approval mode
|
|
564
631
|
* (DD-014) as terminal TOOL_CALL_SKIPPED rows with UNATTENDED_SKIP
|
|
@@ -1673,6 +1673,109 @@ export function detectUnattributedHookBlocks(messages, turnStartMessageIndex, le
|
|
|
1673
1673
|
}
|
|
1674
1674
|
return blocks;
|
|
1675
1675
|
}
|
|
1676
|
+
/**
|
|
1677
|
+
* The honest terminal error stamped on a tool call that never resolved (issue
|
|
1678
|
+
* #965). Deliberately states all three negatives — not executed, not approved,
|
|
1679
|
+
* not denied — because the incident's harm was the model claiming an approval
|
|
1680
|
+
* was pending: this text is what the transcript shows INSTEAD of a spinner or
|
|
1681
|
+
* a silent after-the-fact interruption, and it must leave no room for an
|
|
1682
|
+
* approval-is-coming reading.
|
|
1683
|
+
*/
|
|
1684
|
+
export const UNRESOLVED_TOOL_CALL_ERROR = "The tool did not return a result before the turn ended. It was never " +
|
|
1685
|
+
"executed, approved, or denied — no approval is pending for it.";
|
|
1686
|
+
/**
|
|
1687
|
+
* Settle this-turn tool calls that are still NON-TERMINAL when a turn
|
|
1688
|
+
* completes without pausing — the issue #965 invariant, the sibling of
|
|
1689
|
+
* {@link detectUnattributedHookBlocks}' #205 invariant ("a blocked tool must
|
|
1690
|
+
* never silently complete" → "an unresolved tool must never silently
|
|
1691
|
+
* complete").
|
|
1692
|
+
*
|
|
1693
|
+
* THE SHAPE THIS CATCHES. A tool that hangs INSIDE the Cursor agent runtime —
|
|
1694
|
+
* the production case is `generateImage`, which rides the SDK's
|
|
1695
|
+
* interaction-query channel rather than the ordinary tool path — streams a
|
|
1696
|
+
* tool_call start, never streams a result, and is invisible to every Stigmer
|
|
1697
|
+
* seam: the hook never denied it (no ledger entry), so the reconcile never
|
|
1698
|
+
* gated it, and the turn completes with the row still PENDING/RUNNING. Before
|
|
1699
|
+
* this sweep, the server's terminal settle (issue #207) stamped such rows
|
|
1700
|
+
* TOOL_CALL_INTERRUPTED silently AFTER the runner reported completion — the
|
|
1701
|
+
* transcript's last word stayed whatever the model claimed, which in
|
|
1702
|
+
* aex_01m1a6ww3nmp4952ar5v0g4g85 was a promise that an approval was pending
|
|
1703
|
+
* when none existed.
|
|
1704
|
+
*
|
|
1705
|
+
* Settling here instead makes the runner the author of the honest record: the
|
|
1706
|
+
* row gets TOOL_CALL_INTERRUPTED with {@link UNRESOLVED_TOOL_CALL_ERROR}, and
|
|
1707
|
+
* the caller (turn-boundary.ts) appends a system disclosure naming what never
|
|
1708
|
+
* ran.
|
|
1709
|
+
*
|
|
1710
|
+
* WHY INTERRUPTED AND NEVER FAILED. TOOL_CALL_INTERRUPTED is deliberately the
|
|
1711
|
+
* one settled status the monotonic merge guard lets live execution evidence
|
|
1712
|
+
* supersede (see the guard's note in this file, ~line 331): if this FAILED
|
|
1713
|
+
* execution is later RECOVERED, the harness checkpoint may re-execute the call
|
|
1714
|
+
* under its original id, and the replayed events must be able to advance the
|
|
1715
|
+
* row to its true outcome. A boundary-stamped FAILED would freeze it forever.
|
|
1716
|
+
*
|
|
1717
|
+
* WHY IT NEVER FAILS THE RUN (unlike #205). A foreign hook block is provably
|
|
1718
|
+
* adversarial — approval semantics are permanently broken, so completing would
|
|
1719
|
+
* always be a lie. An unresolved row can also be benign stream event-loss
|
|
1720
|
+
* where the tool actually ran; failing the run would convert those into
|
|
1721
|
+
* regressions. Disclosure restores honesty at zero regression risk.
|
|
1722
|
+
*
|
|
1723
|
+
* Scope and exclusions, in order:
|
|
1724
|
+
* - THIS turn's parent-transcript rows only (from `turnStartMessageIndex`):
|
|
1725
|
+
* seeded prior-turn rows were adjudicated by their own execution's settle,
|
|
1726
|
+
* and sub-agent inner rows are the server settle's concern — the parent row
|
|
1727
|
+
* (e.g. the Task call) is what the user sees. Mirrors #205's scoping.
|
|
1728
|
+
* - Only PENDING/RUNNING rows: every terminal row was adjudicated, and
|
|
1729
|
+
* WAITING_APPROVAL rows belong to the pause machinery (the caller only runs
|
|
1730
|
+
* this sweep on a NON-pausing turn, so none should exist here anyway).
|
|
1731
|
+
* - Only rows with NO denial-ledger entry of ANY kind (exact token, then the
|
|
1732
|
+
* normalized-path fallback — the same two identities every sweep in this
|
|
1733
|
+
* file uses): a ledger-attributed row is the unattended/secret/fail-closed
|
|
1734
|
+
* machinery's to settle, not ours.
|
|
1735
|
+
*
|
|
1736
|
+
* Returns the settled calls so the boundary can disclose and log them.
|
|
1737
|
+
*/
|
|
1738
|
+
export function settleUnresolvedToolCalls(messages, turnStartMessageIndex, ledger, workspaceRoot) {
|
|
1739
|
+
const ledgerTokens = new Set(ledger.map((e) => e.token));
|
|
1740
|
+
const ledgerNormalizedSalients = new Set();
|
|
1741
|
+
if (workspaceRoot) {
|
|
1742
|
+
for (const entry of ledger) {
|
|
1743
|
+
const decoded = decodeIdentityToken(entry.token);
|
|
1744
|
+
if (!decoded)
|
|
1745
|
+
continue;
|
|
1746
|
+
const normalized = normalizedFileSalient(decoded.key, decoded.salient, workspaceRoot);
|
|
1747
|
+
if (normalized)
|
|
1748
|
+
ledgerNormalizedSalients.add(normalized);
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
const matchesLedger = (tc) => {
|
|
1752
|
+
if (ledgerTokens.has(toolCallIdentityToken(tc)))
|
|
1753
|
+
return true;
|
|
1754
|
+
if (!workspaceRoot)
|
|
1755
|
+
return false;
|
|
1756
|
+
const id = toolIdentity(tc.name, tc.mcpServerSlug, toolCallArgs(tc));
|
|
1757
|
+
const normalized = normalizedFileSalient(id.key, id.salient, workspaceRoot);
|
|
1758
|
+
return !!normalized && ledgerNormalizedSalients.has(normalized);
|
|
1759
|
+
};
|
|
1760
|
+
const settled = [];
|
|
1761
|
+
for (const msg of messages.slice(Math.max(0, turnStartMessageIndex))) {
|
|
1762
|
+
for (const tc of msg.toolCalls) {
|
|
1763
|
+
if (tc.status !== ToolCallStatus.TOOL_CALL_PENDING &&
|
|
1764
|
+
tc.status !== ToolCallStatus.TOOL_CALL_RUNNING) {
|
|
1765
|
+
continue;
|
|
1766
|
+
}
|
|
1767
|
+
if (matchesLedger(tc))
|
|
1768
|
+
continue;
|
|
1769
|
+
tc.status = ToolCallStatus.TOOL_CALL_INTERRUPTED;
|
|
1770
|
+
tc.error = UNRESOLVED_TOOL_CALL_ERROR;
|
|
1771
|
+
tc.isStreaming = false;
|
|
1772
|
+
if (!tc.completedAt)
|
|
1773
|
+
tc.completedAt = utcTimestamp();
|
|
1774
|
+
settled.push({ toolCallId: tc.id, toolName: tc.name });
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
return settled;
|
|
1778
|
+
}
|
|
1676
1779
|
/**
|
|
1677
1780
|
* Stamp the tool calls the hook denied under UNATTENDED approval mode
|
|
1678
1781
|
* (DD-014) as terminal TOOL_CALL_SKIPPED rows with UNATTENDED_SKIP
|