agentfootprint 15.0.0 → 15.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/agent/AgentBuilder.js +5 -5
- package/dist/core/agent/findings/reserved.js +1 -2
- package/dist/core/agent/findings/reserved.js.map +1 -1
- package/dist/core/agent/findings/serve.js +3 -4
- package/dist/core/agent/findings/serve.js.map +1 -1
- package/dist/core/agent/findings/verificationCheckpoint.js +2 -2
- package/dist/core/agent/findings/verificationCheckpoint.js.map +1 -1
- package/dist/core/agent/findings/verificationState.js +2 -3
- package/dist/core/agent/findings/verificationState.js.map +1 -1
- package/dist/esm/core/agent/AgentBuilder.d.ts +5 -5
- package/dist/esm/core/agent/AgentBuilder.js +5 -5
- package/dist/esm/core/agent/findings/reserved.d.ts +1 -2
- package/dist/esm/core/agent/findings/reserved.js +1 -2
- package/dist/esm/core/agent/findings/reserved.js.map +1 -1
- package/dist/esm/core/agent/findings/serve.d.ts +3 -4
- package/dist/esm/core/agent/findings/serve.js +3 -4
- package/dist/esm/core/agent/findings/serve.js.map +1 -1
- package/dist/esm/core/agent/findings/verificationCheckpoint.js +2 -2
- package/dist/esm/core/agent/findings/verificationCheckpoint.js.map +1 -1
- package/dist/esm/core/agent/findings/verificationState.js +2 -3
- package/dist/esm/core/agent/findings/verificationState.js.map +1 -1
- package/dist/esm/core/agent/types/state/delivery.d.ts +4 -11
- package/dist/esm/integrity/claim-binding/capture.js +2 -2
- package/dist/esm/security/extractSequence.d.ts +14 -37
- package/dist/esm/security/extractSequence.js +31 -75
- package/dist/esm/security/extractSequence.js.map +1 -1
- package/dist/esm/semantics/overclaim.d.ts +3 -3
- package/dist/esm/semantics/overclaim.js +3 -3
- package/dist/esm/semantics/overclaim.js.map +1 -1
- package/dist/integrity/claim-binding/capture.js +2 -2
- package/dist/security/extractSequence.js +31 -75
- package/dist/security/extractSequence.js.map +1 -1
- package/dist/semantics/overclaim.js +3 -3
- package/dist/semantics/overclaim.js.map +1 -1
- package/dist/types/core/agent/AgentBuilder.d.ts +5 -5
- package/dist/types/core/agent/findings/reserved.d.ts +1 -2
- package/dist/types/core/agent/findings/reserved.d.ts.map +1 -1
- package/dist/types/core/agent/findings/serve.d.ts +3 -4
- package/dist/types/core/agent/findings/serve.d.ts.map +1 -1
- package/dist/types/core/agent/findings/verificationState.d.ts.map +1 -1
- package/dist/types/core/agent/types/state/delivery.d.ts +4 -11
- package/dist/types/core/agent/types/state/delivery.d.ts.map +1 -1
- package/dist/types/security/extractSequence.d.ts +14 -37
- package/dist/types/security/extractSequence.d.ts.map +1 -1
- package/dist/types/semantics/overclaim.d.ts +3 -3
- package/dist/types/semantics/overclaim.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -18,37 +18,14 @@
|
|
|
18
18
|
* precondition policy ("verify before transfer") be met by a call that never
|
|
19
19
|
* ran.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* counts once a later call that runs reuses its id, and a call that ran
|
|
30
|
-
* drops out once a later reuse of its id is denied. The in-flight check
|
|
31
|
-
* has the same limit: a call never answered — a halt's later siblings, a
|
|
32
|
-
* paused turn continued after `abandonPause()` — counts once a later call
|
|
33
|
-
* that runs reuses its id, because the id then has a result. Pairing the
|
|
34
|
-
* deny and the in-flight checks by position too would change the
|
|
35
|
-
* sequence of runs that never met a settlement, which this release does
|
|
36
|
-
* not do; settling those two doors with the marker is the named follow-up
|
|
37
|
-
* (`src/core/README.md` · "Not covered yet").
|
|
38
|
-
* • SETTLED — by position (`settledProposals`, 9.113.0): a settled message
|
|
39
|
-
* carries `LLMMessage.notDispatched` — the marker, never its sentence —
|
|
40
|
-
* and it settles the ONE proposal it answers. An id alone cannot say
|
|
41
|
-
* which proposal that is: a provider may reuse an id across turns, and
|
|
42
|
-
* the library's own fallback ids are minted per provider INSTANCE
|
|
43
|
-
* (`adapters/llm/OllamaProvider.ts` · `nextToolCallId`, and its
|
|
44
|
-
* Foundry Local and Gemini twins), so a fresh process that resumes a
|
|
45
|
-
* stored checkpoint mints the settled call's id again for a call that
|
|
46
|
-
* really runs. Paired by id, that real call would bring the settled one
|
|
47
|
-
* back into the sequence — a "verify before transfer" policy met by a
|
|
48
|
-
* verify that never ran — and a settled reuse would drop a call that
|
|
49
|
-
* did run. Paired by position, each proposal is judged by its own answer.
|
|
50
|
-
*
|
|
51
|
-
* A history without a settled message pairs exactly as before 9.113.0.
|
|
21
|
+
* The proposal's recorded position owns its answer. A provider can repeat an
|
|
22
|
+
* id, including when a fresh instance resumes a stored checkpoint and restarts
|
|
23
|
+
* its id counter. An unanswered proposal is outside the sequence. A paired
|
|
24
|
+
* settlement (`notDispatched`), non-entry or input cancellation proves the call
|
|
25
|
+
* did not dispatch. A result marked `outcome-unknown` stays as a possible dispatch.
|
|
26
|
+
* For records without a result origin, the existing synthetic deny prefix
|
|
27
|
+
* still excludes a refusal. The reader adds no settlement to an unanswered
|
|
28
|
+
* call. The remaining settlement producers are described in `src/core/README.md`.
|
|
52
29
|
*
|
|
53
30
|
* INNER CALLS. A call a tool made through `ctx.tools.call` whose function was
|
|
54
31
|
* entered rides the result message of the call the model made
|
|
@@ -56,8 +33,8 @@
|
|
|
56
33
|
* follows that call in the sequence, in the order the tool made them, marked
|
|
57
34
|
* `inner: true` — so a rule over "read a secret, then post it" sees a step a
|
|
58
35
|
* composing tool took exactly where it took it. A refused inner call is not on
|
|
59
|
-
* the message, as a denied model call is not in the sequence.
|
|
60
|
-
*
|
|
36
|
+
* the message, as a denied model call is not in the sequence. These entries
|
|
37
|
+
* come from the very same result used for the outer call.
|
|
61
38
|
*/
|
|
62
39
|
import type { InnerCallRan } from '../provider-contract/innerCalls.js';
|
|
63
40
|
import type { LLMMessage, ToolCallEntry } from '../provider-contract/types.js';
|
|
@@ -74,15 +51,15 @@ export interface ExtractSequenceOptions {
|
|
|
74
51
|
readonly resolveProviderId?: (toolName: string) => string | undefined;
|
|
75
52
|
}
|
|
76
53
|
/**
|
|
77
|
-
* Walk `history` in order
|
|
78
|
-
*
|
|
79
|
-
*
|
|
54
|
+
* Walk `history` in order and collect tool calls with a paired answer that
|
|
55
|
+
* could represent a dispatch. A paired answer alone does not prove entry
|
|
56
|
+
* or completion.
|
|
80
57
|
*
|
|
81
58
|
* @param history Conversation history at check time.
|
|
82
59
|
* @param iteration Current ReAct iteration (used to tag the proposed
|
|
83
60
|
* call's iteration if you append it).
|
|
84
61
|
* @param options Optional resolver for `providerId`.
|
|
85
|
-
* @returns The
|
|
62
|
+
* @returns The recorded call sequence, in chronological order.
|
|
86
63
|
*/
|
|
87
64
|
export declare function extractSequence(history: readonly LLMMessage[], iteration: number, options?: ExtractSequenceOptions): ToolCallEntry[];
|
|
88
65
|
/** The gate's sequence uses the working values. Its public counterparts use the shown view. */
|
|
@@ -18,37 +18,14 @@
|
|
|
18
18
|
* precondition policy ("verify before transfer") be met by a call that never
|
|
19
19
|
* ran.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* counts once a later call that runs reuses its id, and a call that ran
|
|
30
|
-
* drops out once a later reuse of its id is denied. The in-flight check
|
|
31
|
-
* has the same limit: a call never answered — a halt's later siblings, a
|
|
32
|
-
* paused turn continued after `abandonPause()` — counts once a later call
|
|
33
|
-
* that runs reuses its id, because the id then has a result. Pairing the
|
|
34
|
-
* deny and the in-flight checks by position too would change the
|
|
35
|
-
* sequence of runs that never met a settlement, which this release does
|
|
36
|
-
* not do; settling those two doors with the marker is the named follow-up
|
|
37
|
-
* (`src/core/README.md` · "Not covered yet").
|
|
38
|
-
* • SETTLED — by position (`settledProposals`, 9.113.0): a settled message
|
|
39
|
-
* carries `LLMMessage.notDispatched` — the marker, never its sentence —
|
|
40
|
-
* and it settles the ONE proposal it answers. An id alone cannot say
|
|
41
|
-
* which proposal that is: a provider may reuse an id across turns, and
|
|
42
|
-
* the library's own fallback ids are minted per provider INSTANCE
|
|
43
|
-
* (`adapters/llm/OllamaProvider.ts` · `nextToolCallId`, and its
|
|
44
|
-
* Foundry Local and Gemini twins), so a fresh process that resumes a
|
|
45
|
-
* stored checkpoint mints the settled call's id again for a call that
|
|
46
|
-
* really runs. Paired by id, that real call would bring the settled one
|
|
47
|
-
* back into the sequence — a "verify before transfer" policy met by a
|
|
48
|
-
* verify that never ran — and a settled reuse would drop a call that
|
|
49
|
-
* did run. Paired by position, each proposal is judged by its own answer.
|
|
50
|
-
*
|
|
51
|
-
* A history without a settled message pairs exactly as before 9.113.0.
|
|
21
|
+
* The proposal's recorded position owns its answer. A provider can repeat an
|
|
22
|
+
* id, including when a fresh instance resumes a stored checkpoint and restarts
|
|
23
|
+
* its id counter. An unanswered proposal is outside the sequence. A paired
|
|
24
|
+
* settlement (`notDispatched`), non-entry or input cancellation proves the call
|
|
25
|
+
* did not dispatch. A result marked `outcome-unknown` stays as a possible dispatch.
|
|
26
|
+
* For records without a result origin, the existing synthetic deny prefix
|
|
27
|
+
* still excludes a refusal. The reader adds no settlement to an unanswered
|
|
28
|
+
* call. The remaining settlement producers are described in `src/core/README.md`.
|
|
52
29
|
*
|
|
53
30
|
* INNER CALLS. A call a tool made through `ctx.tools.call` whose function was
|
|
54
31
|
* entered rides the result message of the call the model made
|
|
@@ -56,22 +33,22 @@
|
|
|
56
33
|
* follows that call in the sequence, in the order the tool made them, marked
|
|
57
34
|
* `inner: true` — so a rule over "read a secret, then post it" sees a step a
|
|
58
35
|
* composing tool took exactly where it took it. A refused inner call is not on
|
|
59
|
-
* the message, as a denied model call is not in the sequence.
|
|
60
|
-
*
|
|
36
|
+
* the message, as a denied model call is not in the sequence. These entries
|
|
37
|
+
* come from the very same result used for the outer call.
|
|
61
38
|
*/
|
|
62
39
|
/** Prefix the framework writes on synthetic deny tool_results. Used to
|
|
63
40
|
* distinguish "denied but in history" from "actually dispatched". */
|
|
64
41
|
export const SYNTHETIC_DENY_PREFIX = '[permission denied:';
|
|
65
42
|
/**
|
|
66
|
-
* Walk `history` in order
|
|
67
|
-
*
|
|
68
|
-
*
|
|
43
|
+
* Walk `history` in order and collect tool calls with a paired answer that
|
|
44
|
+
* could represent a dispatch. A paired answer alone does not prove entry
|
|
45
|
+
* or completion.
|
|
69
46
|
*
|
|
70
47
|
* @param history Conversation history at check time.
|
|
71
48
|
* @param iteration Current ReAct iteration (used to tag the proposed
|
|
72
49
|
* call's iteration if you append it).
|
|
73
50
|
* @param options Optional resolver for `providerId`.
|
|
74
|
-
* @returns The
|
|
51
|
+
* @returns The recorded call sequence, in chronological order.
|
|
75
52
|
*/
|
|
76
53
|
export function extractSequence(history, iteration, options = {}) {
|
|
77
54
|
return deriveSequence(history, iteration, options.resolveProviderId, (call) => call.args);
|
|
@@ -82,8 +59,7 @@ export function extractSequenceForPolicy(history, iteration, innerArgsOf) {
|
|
|
82
59
|
}
|
|
83
60
|
function deriveSequence(history, iteration, resolveProviderId, innerArgsOf) {
|
|
84
61
|
const sequence = [];
|
|
85
|
-
const results =
|
|
86
|
-
const { settled, innerCalls } = pairedResults(history);
|
|
62
|
+
const results = pairedResults(history);
|
|
87
63
|
// Track iteration as we walk: each assistant turn with toolCalls
|
|
88
64
|
// increments the iteration counter for the entries it produces. The
|
|
89
65
|
// exact iteration mapping is approximate because we don't store it
|
|
@@ -94,16 +70,17 @@ function deriveSequence(history, iteration, resolveProviderId, innerArgsOf) {
|
|
|
94
70
|
if (msg.role !== 'assistant' || !msg.toolCalls || msg.toolCalls.length === 0)
|
|
95
71
|
continue;
|
|
96
72
|
for (const [callAt, tc] of msg.toolCalls.entries()) {
|
|
97
|
-
|
|
73
|
+
const answer = results.get(proposalKey(turnAt, callAt));
|
|
74
|
+
if (answer === undefined || answer.notDispatched !== undefined)
|
|
75
|
+
continue;
|
|
76
|
+
const origin = answer.toolResultOrigin;
|
|
77
|
+
if (origin === 'not-entered' || origin === 'input-cancelled')
|
|
78
|
+
continue;
|
|
79
|
+
if (origin === undefined &&
|
|
80
|
+
typeof answer.content === 'string' &&
|
|
81
|
+
answer.content.startsWith(SYNTHETIC_DENY_PREFIX)) {
|
|
98
82
|
continue;
|
|
99
|
-
|
|
100
|
-
if (answer === undefined)
|
|
101
|
-
continue; // no tool_result yet → in-flight
|
|
102
|
-
const result = typeof answer.content === 'string' ? answer.content : '';
|
|
103
|
-
if (result.startsWith(SYNTHETIC_DENY_PREFIX))
|
|
104
|
-
continue; // denied, never ran
|
|
105
|
-
if (settled.has(proposalKey(turnAt, callAt)))
|
|
106
|
-
continue; // settled on resume, never dispatched
|
|
83
|
+
}
|
|
107
84
|
const entry = {
|
|
108
85
|
name: tc.name,
|
|
109
86
|
args: tc.args,
|
|
@@ -113,7 +90,7 @@ function deriveSequence(history, iteration, resolveProviderId, innerArgsOf) {
|
|
|
113
90
|
}),
|
|
114
91
|
};
|
|
115
92
|
sequence.push(entry);
|
|
116
|
-
for (const inner of
|
|
93
|
+
for (const inner of answer.calls ?? []) {
|
|
117
94
|
sequence.push({
|
|
118
95
|
name: inner.toolName,
|
|
119
96
|
args: innerArgsOf(inner),
|
|
@@ -149,23 +126,7 @@ function proposalKey(turnAt, callAt) {
|
|
|
149
126
|
return `${turnAt}:${callAt}`;
|
|
150
127
|
}
|
|
151
128
|
/**
|
|
152
|
-
*
|
|
153
|
-
* read, paired by id as they always were. A settled message
|
|
154
|
-
* (`LLMMessage.notDispatched`) is left out: it is the library's sentence for a
|
|
155
|
-
* call that never ran, not a result, so a settled id is not answered by it —
|
|
156
|
-
* and a deny the id carried before a later settlement still reads as a deny.
|
|
157
|
-
*/
|
|
158
|
-
function resultsById(history) {
|
|
159
|
-
const results = new Map();
|
|
160
|
-
for (const msg of history) {
|
|
161
|
-
if (msg.role !== 'tool' || !msg.toolCallId || msg.notDispatched !== undefined)
|
|
162
|
-
continue;
|
|
163
|
-
results.set(msg.toolCallId, msg);
|
|
164
|
-
}
|
|
165
|
-
return results;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* The proposals the batch settlement answered (9.113.0), keyed by
|
|
129
|
+
* Recorded replies by proposal position, keyed by
|
|
169
130
|
* {@link proposalKey}. Pairing is POSITIONAL — the rule the settlement itself
|
|
170
131
|
* writes by (`core/agent/stages/toolCalls/batch/paused.ts` · `pausedBatchOf`: only an
|
|
171
132
|
* answer AFTER the proposing turn counts): a `role: 'tool'` message answers
|
|
@@ -175,8 +136,7 @@ function resultsById(history) {
|
|
|
175
136
|
* proposal — which is how a reused id keeps its two calls apart.
|
|
176
137
|
*/
|
|
177
138
|
function pairedResults(history) {
|
|
178
|
-
const
|
|
179
|
-
const innerCalls = new Map();
|
|
139
|
+
const results = new Map();
|
|
180
140
|
/** id → the still-unanswered proposals of it on the latest turn that proposed it, in call order. */
|
|
181
141
|
const open = new Map();
|
|
182
142
|
for (const [turnAt, msg] of history.entries()) {
|
|
@@ -194,13 +154,9 @@ function pairedResults(history) {
|
|
|
194
154
|
if (msg.role !== 'tool' || !msg.toolCallId)
|
|
195
155
|
continue;
|
|
196
156
|
const answered = open.get(msg.toolCallId)?.shift();
|
|
197
|
-
if (answered
|
|
198
|
-
|
|
199
|
-
if (msg.notDispatched !== undefined)
|
|
200
|
-
settled.add(answered);
|
|
201
|
-
else if (msg.calls !== undefined)
|
|
202
|
-
innerCalls.set(answered, msg.calls);
|
|
157
|
+
if (answered !== undefined)
|
|
158
|
+
results.set(answered, msg);
|
|
203
159
|
}
|
|
204
|
-
return
|
|
160
|
+
return results;
|
|
205
161
|
}
|
|
206
162
|
//# sourceMappingURL=extractSequence.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractSequence.js","sourceRoot":"","sources":["../../../src/security/extractSequence.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"extractSequence.js","sourceRoot":"","sources":["../../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AC,EAAE;oBAAE,SAAS;gBACvB,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;YACzF,CAAC;YACD,KAAK,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,QAAQ;gBAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;YACtD,SAAS;QACX,CAAC;QACD,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,GAAG,CAAC,UAAU;YAAE,SAAS;QACrD,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,CAAC;QACnD,IAAI,QAAQ,KAAK,SAAS;YAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACzD,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
* curly-apostrophe folding. They are a gate's net, not a grammar: a phrasing
|
|
43
43
|
* they miss is a missed finding, never a pass. The fuller detection grammar
|
|
44
44
|
* (clauses, negation scope, languages) belongs to the delivery check, a later
|
|
45
|
-
* piece; it may reuse these lists. {@link OVERCLAIM_PHRASES_VERSION}
|
|
46
|
-
*
|
|
45
|
+
* piece; it may reuse these lists. Update {@link OVERCLAIM_PHRASES_VERSION}
|
|
46
|
+
* when editing either authored phrase list.
|
|
47
47
|
*/
|
|
48
48
|
import type { ToolAbsence } from './coverage/types.js';
|
|
49
|
-
/**
|
|
49
|
+
/** Update when editing {@link NON_EXISTENCE} or {@link WRONGNESS}. */
|
|
50
50
|
export declare const OVERCLAIM_PHRASES_VERSION = 1;
|
|
51
51
|
/** The opt-in rule sets `check:semantics` takes (`rules: ['overclaim']`). */
|
|
52
52
|
export type SemanticsRuleSet = 'overclaim';
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
* curly-apostrophe folding. They are a gate's net, not a grammar: a phrasing
|
|
43
43
|
* they miss is a missed finding, never a pass. The fuller detection grammar
|
|
44
44
|
* (clauses, negation scope, languages) belongs to the delivery check, a later
|
|
45
|
-
* piece; it may reuse these lists. {@link OVERCLAIM_PHRASES_VERSION}
|
|
46
|
-
*
|
|
45
|
+
* piece; it may reuse these lists. Update {@link OVERCLAIM_PHRASES_VERSION}
|
|
46
|
+
* when editing either authored phrase list.
|
|
47
47
|
*/
|
|
48
48
|
import { readAbsence, readCoverageLedger } from './coverage/recognize.js';
|
|
49
49
|
import { namesFacetOf } from './coverage/among.js';
|
|
50
50
|
import { readToolResultEnvelope } from './toolEffects.js';
|
|
51
|
-
/**
|
|
51
|
+
/** Update when editing {@link NON_EXISTENCE} or {@link WRONGNESS}. */
|
|
52
52
|
export const OVERCLAIM_PHRASES_VERSION = 1;
|
|
53
53
|
/** The closed list of rule sets, as data. */
|
|
54
54
|
export const SEMANTICS_RULE_SETS = ['overclaim'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overclaim.js","sourceRoot":"","sources":["../../../src/semantics/overclaim.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,
|
|
1
|
+
{"version":3,"file":"overclaim.js","sourceRoot":"","sources":["../../../src/semantics/overclaim.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAAE,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C;YAClB,MAAM;QACR,CAAC;QACD,MAAM,OAAO,GAAG,kBAAkB,CAAC,EAAE,CAAC,CAAC;QACvC,IAAI,OAAO,KAAK,SAAS;YAAE,MAAM;QACjC,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IACtB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.evidenceSnapshot = exports.finalizeEvidence = exports.captureReturnedEvidence = exports.captureDispatch = exports.readResultIdentity = exports.resultIdentityOf = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Internal dispatch/return/delivery receipt boundary. Only part of it is live.
|
|
6
|
-
* The result-identity codec (`resultIdentityOf`, `readResultIdentity`)
|
|
7
|
-
*
|
|
6
|
+
* The result-identity codec (`resultIdentityOf`, `readResultIdentity`) supports
|
|
7
|
+
* searches that reach execution and armed negative-claim capture. The coverage
|
|
8
8
|
* row's `claim-result/<namespace>/<runId>/<n>` ID comes from it. The capture
|
|
9
9
|
* functions (`captureDispatch`, `captureReturnedEvidence`, `finalizeEvidence`,
|
|
10
10
|
* `evidenceSnapshot`) are not mounted in the Agent; only tests call them. The
|
|
@@ -19,37 +19,14 @@
|
|
|
19
19
|
* precondition policy ("verify before transfer") be met by a call that never
|
|
20
20
|
* ran.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* counts once a later call that runs reuses its id, and a call that ran
|
|
31
|
-
* drops out once a later reuse of its id is denied. The in-flight check
|
|
32
|
-
* has the same limit: a call never answered — a halt's later siblings, a
|
|
33
|
-
* paused turn continued after `abandonPause()` — counts once a later call
|
|
34
|
-
* that runs reuses its id, because the id then has a result. Pairing the
|
|
35
|
-
* deny and the in-flight checks by position too would change the
|
|
36
|
-
* sequence of runs that never met a settlement, which this release does
|
|
37
|
-
* not do; settling those two doors with the marker is the named follow-up
|
|
38
|
-
* (`src/core/README.md` · "Not covered yet").
|
|
39
|
-
* • SETTLED — by position (`settledProposals`, 9.113.0): a settled message
|
|
40
|
-
* carries `LLMMessage.notDispatched` — the marker, never its sentence —
|
|
41
|
-
* and it settles the ONE proposal it answers. An id alone cannot say
|
|
42
|
-
* which proposal that is: a provider may reuse an id across turns, and
|
|
43
|
-
* the library's own fallback ids are minted per provider INSTANCE
|
|
44
|
-
* (`adapters/llm/OllamaProvider.ts` · `nextToolCallId`, and its
|
|
45
|
-
* Foundry Local and Gemini twins), so a fresh process that resumes a
|
|
46
|
-
* stored checkpoint mints the settled call's id again for a call that
|
|
47
|
-
* really runs. Paired by id, that real call would bring the settled one
|
|
48
|
-
* back into the sequence — a "verify before transfer" policy met by a
|
|
49
|
-
* verify that never ran — and a settled reuse would drop a call that
|
|
50
|
-
* did run. Paired by position, each proposal is judged by its own answer.
|
|
51
|
-
*
|
|
52
|
-
* A history without a settled message pairs exactly as before 9.113.0.
|
|
22
|
+
* The proposal's recorded position owns its answer. A provider can repeat an
|
|
23
|
+
* id, including when a fresh instance resumes a stored checkpoint and restarts
|
|
24
|
+
* its id counter. An unanswered proposal is outside the sequence. A paired
|
|
25
|
+
* settlement (`notDispatched`), non-entry or input cancellation proves the call
|
|
26
|
+
* did not dispatch. A result marked `outcome-unknown` stays as a possible dispatch.
|
|
27
|
+
* For records without a result origin, the existing synthetic deny prefix
|
|
28
|
+
* still excludes a refusal. The reader adds no settlement to an unanswered
|
|
29
|
+
* call. The remaining settlement producers are described in `src/core/README.md`.
|
|
53
30
|
*
|
|
54
31
|
* INNER CALLS. A call a tool made through `ctx.tools.call` whose function was
|
|
55
32
|
* entered rides the result message of the call the model made
|
|
@@ -57,8 +34,8 @@
|
|
|
57
34
|
* follows that call in the sequence, in the order the tool made them, marked
|
|
58
35
|
* `inner: true` — so a rule over "read a secret, then post it" sees a step a
|
|
59
36
|
* composing tool took exactly where it took it. A refused inner call is not on
|
|
60
|
-
* the message, as a denied model call is not in the sequence.
|
|
61
|
-
*
|
|
37
|
+
* the message, as a denied model call is not in the sequence. These entries
|
|
38
|
+
* come from the very same result used for the outer call.
|
|
62
39
|
*/
|
|
63
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64
41
|
exports.extractSequenceForPolicy = exports.extractSequence = exports.SYNTHETIC_DENY_PREFIX = void 0;
|
|
@@ -66,15 +43,15 @@ exports.extractSequenceForPolicy = exports.extractSequence = exports.SYNTHETIC_D
|
|
|
66
43
|
* distinguish "denied but in history" from "actually dispatched". */
|
|
67
44
|
exports.SYNTHETIC_DENY_PREFIX = '[permission denied:';
|
|
68
45
|
/**
|
|
69
|
-
* Walk `history` in order
|
|
70
|
-
*
|
|
71
|
-
*
|
|
46
|
+
* Walk `history` in order and collect tool calls with a paired answer that
|
|
47
|
+
* could represent a dispatch. A paired answer alone does not prove entry
|
|
48
|
+
* or completion.
|
|
72
49
|
*
|
|
73
50
|
* @param history Conversation history at check time.
|
|
74
51
|
* @param iteration Current ReAct iteration (used to tag the proposed
|
|
75
52
|
* call's iteration if you append it).
|
|
76
53
|
* @param options Optional resolver for `providerId`.
|
|
77
|
-
* @returns The
|
|
54
|
+
* @returns The recorded call sequence, in chronological order.
|
|
78
55
|
*/
|
|
79
56
|
function extractSequence(history, iteration, options = {}) {
|
|
80
57
|
return deriveSequence(history, iteration, options.resolveProviderId, (call) => call.args);
|
|
@@ -87,8 +64,7 @@ function extractSequenceForPolicy(history, iteration, innerArgsOf) {
|
|
|
87
64
|
exports.extractSequenceForPolicy = extractSequenceForPolicy;
|
|
88
65
|
function deriveSequence(history, iteration, resolveProviderId, innerArgsOf) {
|
|
89
66
|
const sequence = [];
|
|
90
|
-
const results =
|
|
91
|
-
const { settled, innerCalls } = pairedResults(history);
|
|
67
|
+
const results = pairedResults(history);
|
|
92
68
|
// Track iteration as we walk: each assistant turn with toolCalls
|
|
93
69
|
// increments the iteration counter for the entries it produces. The
|
|
94
70
|
// exact iteration mapping is approximate because we don't store it
|
|
@@ -99,16 +75,17 @@ function deriveSequence(history, iteration, resolveProviderId, innerArgsOf) {
|
|
|
99
75
|
if (msg.role !== 'assistant' || !msg.toolCalls || msg.toolCalls.length === 0)
|
|
100
76
|
continue;
|
|
101
77
|
for (const [callAt, tc] of msg.toolCalls.entries()) {
|
|
102
|
-
|
|
78
|
+
const answer = results.get(proposalKey(turnAt, callAt));
|
|
79
|
+
if (answer === undefined || answer.notDispatched !== undefined)
|
|
80
|
+
continue;
|
|
81
|
+
const origin = answer.toolResultOrigin;
|
|
82
|
+
if (origin === 'not-entered' || origin === 'input-cancelled')
|
|
83
|
+
continue;
|
|
84
|
+
if (origin === undefined &&
|
|
85
|
+
typeof answer.content === 'string' &&
|
|
86
|
+
answer.content.startsWith(exports.SYNTHETIC_DENY_PREFIX)) {
|
|
103
87
|
continue;
|
|
104
|
-
|
|
105
|
-
if (answer === undefined)
|
|
106
|
-
continue; // no tool_result yet → in-flight
|
|
107
|
-
const result = typeof answer.content === 'string' ? answer.content : '';
|
|
108
|
-
if (result.startsWith(exports.SYNTHETIC_DENY_PREFIX))
|
|
109
|
-
continue; // denied, never ran
|
|
110
|
-
if (settled.has(proposalKey(turnAt, callAt)))
|
|
111
|
-
continue; // settled on resume, never dispatched
|
|
88
|
+
}
|
|
112
89
|
const entry = {
|
|
113
90
|
name: tc.name,
|
|
114
91
|
args: tc.args,
|
|
@@ -118,7 +95,7 @@ function deriveSequence(history, iteration, resolveProviderId, innerArgsOf) {
|
|
|
118
95
|
}),
|
|
119
96
|
};
|
|
120
97
|
sequence.push(entry);
|
|
121
|
-
for (const inner of
|
|
98
|
+
for (const inner of answer.calls ?? []) {
|
|
122
99
|
sequence.push({
|
|
123
100
|
name: inner.toolName,
|
|
124
101
|
args: innerArgsOf(inner),
|
|
@@ -154,23 +131,7 @@ function proposalKey(turnAt, callAt) {
|
|
|
154
131
|
return `${turnAt}:${callAt}`;
|
|
155
132
|
}
|
|
156
133
|
/**
|
|
157
|
-
*
|
|
158
|
-
* read, paired by id as they always were. A settled message
|
|
159
|
-
* (`LLMMessage.notDispatched`) is left out: it is the library's sentence for a
|
|
160
|
-
* call that never ran, not a result, so a settled id is not answered by it —
|
|
161
|
-
* and a deny the id carried before a later settlement still reads as a deny.
|
|
162
|
-
*/
|
|
163
|
-
function resultsById(history) {
|
|
164
|
-
const results = new Map();
|
|
165
|
-
for (const msg of history) {
|
|
166
|
-
if (msg.role !== 'tool' || !msg.toolCallId || msg.notDispatched !== undefined)
|
|
167
|
-
continue;
|
|
168
|
-
results.set(msg.toolCallId, msg);
|
|
169
|
-
}
|
|
170
|
-
return results;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* The proposals the batch settlement answered (9.113.0), keyed by
|
|
134
|
+
* Recorded replies by proposal position, keyed by
|
|
174
135
|
* {@link proposalKey}. Pairing is POSITIONAL — the rule the settlement itself
|
|
175
136
|
* writes by (`core/agent/stages/toolCalls/batch/paused.ts` · `pausedBatchOf`: only an
|
|
176
137
|
* answer AFTER the proposing turn counts): a `role: 'tool'` message answers
|
|
@@ -180,8 +141,7 @@ function resultsById(history) {
|
|
|
180
141
|
* proposal — which is how a reused id keeps its two calls apart.
|
|
181
142
|
*/
|
|
182
143
|
function pairedResults(history) {
|
|
183
|
-
const
|
|
184
|
-
const innerCalls = new Map();
|
|
144
|
+
const results = new Map();
|
|
185
145
|
/** id → the still-unanswered proposals of it on the latest turn that proposed it, in call order. */
|
|
186
146
|
const open = new Map();
|
|
187
147
|
for (const [turnAt, msg] of history.entries()) {
|
|
@@ -199,13 +159,9 @@ function pairedResults(history) {
|
|
|
199
159
|
if (msg.role !== 'tool' || !msg.toolCallId)
|
|
200
160
|
continue;
|
|
201
161
|
const answered = open.get(msg.toolCallId)?.shift();
|
|
202
|
-
if (answered
|
|
203
|
-
|
|
204
|
-
if (msg.notDispatched !== undefined)
|
|
205
|
-
settled.add(answered);
|
|
206
|
-
else if (msg.calls !== undefined)
|
|
207
|
-
innerCalls.set(answered, msg.calls);
|
|
162
|
+
if (answered !== undefined)
|
|
163
|
+
results.set(answered, msg);
|
|
208
164
|
}
|
|
209
|
-
return
|
|
165
|
+
return results;
|
|
210
166
|
}
|
|
211
167
|
//# sourceMappingURL=extractSequence.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractSequence.js","sourceRoot":"","sources":["../../src/security/extractSequence.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"extractSequence.js","sourceRoot":"","sources":["../../src/security/extractSequence.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;;;AAKH;sEACsE;AACzD,QAAA,qBAAqB,GAAG,qBAAqB,CAAC;AAY3D;;;;;;;;;;GAUG;AACH,SAAgB,eAAe,CAC7B,OAA8B,EAC9B,SAAiB,EACjB,UAAkC,EAAE;IAEpC,OAAO,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5F,CAAC;AAND,0CAMC;AAED,+FAA+F;AAC/F,SAAgB,wBAAwB,CACtC,OAA8B,EAC9B,SAAiB,EACjB,WAAyD;IAEzD,OAAO,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;AACpE,CAAC;AAND,4DAMC;AAED,SAAS,cAAc,CACrB,OAA8B,EAC9B,SAAiB,EACjB,iBAA8D,EAC9D,WAAyD;IAEzD,MAAM,QAAQ,GAAoB,EAAE,CAAC;IACrC,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAEvC,iEAAiE;IACjE,oEAAoE;IACpE,mEAAmE;IACnE,qEAAqE;IACrE,wCAAwC;IACxC,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,KAAK,MAAM,CAAC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,CAAC;IACzC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;QAC9C,IAAI,GAAG,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;YAC7B,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAoB,CAAC;YAC7C,KAAK,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;gBAC7D,IAAI,CAAC,IAAI,CAAC,EAAE;oBAAE,SAAS;gBACvB,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;YACzF,CAAC;YACD,KAAK,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,QAAQ;gBAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;YACtD,SAAS;QACX,CAAC;QACD,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,GAAG,CAAC,UAAU;YAAE,SAAS;QACrD,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,CAAC;QACnD,IAAI,QAAQ,KAAK,SAAS;YAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACzD,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
* curly-apostrophe folding. They are a gate's net, not a grammar: a phrasing
|
|
44
44
|
* they miss is a missed finding, never a pass. The fuller detection grammar
|
|
45
45
|
* (clauses, negation scope, languages) belongs to the delivery check, a later
|
|
46
|
-
* piece; it may reuse these lists. {@link OVERCLAIM_PHRASES_VERSION}
|
|
47
|
-
*
|
|
46
|
+
* piece; it may reuse these lists. Update {@link OVERCLAIM_PHRASES_VERSION}
|
|
47
|
+
* when editing either authored phrase list.
|
|
48
48
|
*/
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
50
|
exports.absencesIn = exports.absenceIssues = exports.refusalIssues = exports.isNotReadResult = exports.isExemptMessage = exports.wrongnessPhrase = exports.nonExistencePhrase = exports.SEMANTICS_RULE_SETS = exports.OVERCLAIM_PHRASES_VERSION = void 0;
|
|
51
51
|
const recognize_js_1 = require("./coverage/recognize.js");
|
|
52
52
|
const among_js_1 = require("./coverage/among.js");
|
|
53
53
|
const toolEffects_js_1 = require("./toolEffects.js");
|
|
54
|
-
/**
|
|
54
|
+
/** Update when editing {@link NON_EXISTENCE} or {@link WRONGNESS}. */
|
|
55
55
|
exports.OVERCLAIM_PHRASES_VERSION = 1;
|
|
56
56
|
/** The closed list of rule sets, as data. */
|
|
57
57
|
exports.SEMANTICS_RULE_SETS = ['overclaim'];
|