agentfootprint 12.0.0 → 12.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/answer-account/templates.js +12 -6
- package/dist/answer-account/templates.js.map +1 -1
- package/dist/answer-validation/types.js.map +1 -1
- package/dist/core/agent/assessment/assess.js +94 -32
- package/dist/core/agent/assessment/assess.js.map +1 -1
- package/dist/core/agent/assessment/reasons.js +2 -2
- package/dist/core/agent/assessment/reasons.js.map +1 -1
- package/dist/core/agent/assessment/sources.js +61 -23
- package/dist/core/agent/assessment/sources.js.map +1 -1
- package/dist/core/agent/negativeClaims/delivery.js +10 -1
- package/dist/core/agent/negativeClaims/delivery.js.map +1 -1
- package/dist/esm/answer-account/templates.d.ts +1 -1
- package/dist/esm/answer-account/templates.js +12 -6
- package/dist/esm/answer-account/templates.js.map +1 -1
- package/dist/esm/answer-validation/types.d.ts +10 -0
- package/dist/esm/answer-validation/types.js.map +1 -1
- package/dist/esm/core/agent/assessment/assess.d.ts +6 -3
- package/dist/esm/core/agent/assessment/assess.js +95 -33
- package/dist/esm/core/agent/assessment/assess.js.map +1 -1
- package/dist/esm/core/agent/assessment/reasons.js +2 -2
- package/dist/esm/core/agent/assessment/reasons.js.map +1 -1
- package/dist/esm/core/agent/assessment/sources.d.ts +26 -1
- package/dist/esm/core/agent/assessment/sources.js +59 -22
- package/dist/esm/core/agent/assessment/sources.js.map +1 -1
- package/dist/esm/core/agent/assessment/types.d.ts +3 -1
- package/dist/esm/core/agent/negativeClaims/delivery.d.ts +9 -1
- package/dist/esm/core/agent/negativeClaims/delivery.js +10 -1
- package/dist/esm/core/agent/negativeClaims/delivery.js.map +1 -1
- package/dist/esm/identity/types.d.ts +12 -0
- package/dist/esm/identity/types.js.map +1 -1
- package/dist/esm/identity/withCredentialRetry.d.ts +5 -0
- package/dist/esm/identity/withCredentialRetry.js +16 -3
- package/dist/esm/identity/withCredentialRetry.js.map +1 -1
- package/dist/esm/lib/boundedJson.d.ts +27 -0
- package/dist/esm/lib/boundedJson.js +33 -0
- package/dist/esm/lib/boundedJson.js.map +1 -1
- package/dist/esm/mcp/gatewayTransport.d.ts +8 -0
- package/dist/esm/mcp/gatewayTransport.js +35 -2
- package/dist/esm/mcp/gatewayTransport.js.map +1 -1
- package/dist/identity/types.js.map +1 -1
- package/dist/identity/withCredentialRetry.js +16 -3
- package/dist/identity/withCredentialRetry.js.map +1 -1
- package/dist/lib/boundedJson.js +35 -1
- package/dist/lib/boundedJson.js.map +1 -1
- package/dist/mcp/gatewayTransport.js +35 -2
- package/dist/mcp/gatewayTransport.js.map +1 -1
- package/dist/types/answer-account/templates.d.ts +1 -1
- package/dist/types/answer-account/templates.d.ts.map +1 -1
- package/dist/types/answer-validation/types.d.ts +10 -0
- package/dist/types/answer-validation/types.d.ts.map +1 -1
- package/dist/types/core/agent/assessment/assess.d.ts +6 -3
- package/dist/types/core/agent/assessment/assess.d.ts.map +1 -1
- package/dist/types/core/agent/assessment/reasons.d.ts.map +1 -1
- package/dist/types/core/agent/assessment/sources.d.ts +26 -1
- package/dist/types/core/agent/assessment/sources.d.ts.map +1 -1
- package/dist/types/core/agent/assessment/types.d.ts +3 -1
- package/dist/types/core/agent/assessment/types.d.ts.map +1 -1
- package/dist/types/core/agent/negativeClaims/delivery.d.ts +9 -1
- package/dist/types/core/agent/negativeClaims/delivery.d.ts.map +1 -1
- package/dist/types/identity/types.d.ts +12 -0
- package/dist/types/identity/types.d.ts.map +1 -1
- package/dist/types/identity/withCredentialRetry.d.ts +5 -0
- package/dist/types/identity/withCredentialRetry.d.ts.map +1 -1
- package/dist/types/lib/boundedJson.d.ts +27 -0
- package/dist/types/lib/boundedJson.d.ts.map +1 -1
- package/dist/types/mcp/gatewayTransport.d.ts +8 -0
- package/dist/types/mcp/gatewayTransport.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@ export interface AccountTemplate {
|
|
|
39
39
|
readonly voucher: TemplateVoucher;
|
|
40
40
|
}
|
|
41
41
|
/** Bumped whenever any template's words change (a pinned digest enforces it). */
|
|
42
|
-
export declare const ANSWER_ACCOUNT_TEMPLATE_SET_VERSION =
|
|
42
|
+
export declare const ANSWER_ACCOUNT_TEMPLATE_SET_VERSION = 13;
|
|
43
43
|
/** The closed table. Ids are `row.part@version` in prose; the version lives on the entry. */
|
|
44
44
|
export declare const ANSWER_ACCOUNT_TEMPLATES: Readonly<{
|
|
45
45
|
'row.asked': AccountTemplate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/answer-account/templates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAE9E,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;CACnC;AAED,iFAAiF;AACjF,eAAO,MAAM,mCAAmC,KAAK,CAAC;AAKtD,6FAA6F;AAC7F,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/answer-account/templates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAE9E,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;CACnC;AAED,iFAAiF;AACjF,eAAO,MAAM,mCAAmC,KAAK,CAAC;AAKtD,6FAA6F;AAC7F,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+hBO,CAAC;AAE7C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,wBAAwB,CAAC"}
|
|
@@ -10,6 +10,16 @@ export interface AnswerCheck {
|
|
|
10
10
|
readonly path?: string;
|
|
11
11
|
/** Must have resolved through this validation's artifact capability. */
|
|
12
12
|
readonly evidenceRefs?: readonly ArtifactRef[];
|
|
13
|
+
/**
|
|
14
|
+
* The registered names of the tools a LIBRARY row is about: present only on a
|
|
15
|
+
* `.negativeClaims()` row (`agent:negative-claims:…`) that names one, beside its
|
|
16
|
+
* code in `reason` — the tools whose reads a typed negative cited, or the tool
|
|
17
|
+
* whose refusal said more than it read (`reason: 'declaration-overclaimed'`;
|
|
18
|
+
* the answer's standing rests on that tool's calls). Names only, never a value.
|
|
19
|
+
* An app validator's row never carries it: its rows are read as `id`,
|
|
20
|
+
* `disposition`, `reason`, `path` and `evidenceRefs` only.
|
|
21
|
+
*/
|
|
22
|
+
readonly tools?: readonly string[];
|
|
13
23
|
}
|
|
14
24
|
/** Why a requested artifact could not be delivered to the validator. */
|
|
15
25
|
export type AnswerEvidenceRefusal = 'closed' | 'invalid-input' | 'no-store' | 'missing-or-expired' | 'kind-mismatch' | 'digest-mismatch' | 'max-reads' | 'max-bytes' | 'invalid-record' | 'store-error';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/answer-validation/types.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAErE,gFAAgF;AAChF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,kEAAkE;IAClE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/answer-validation/types.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAErE,gFAAgF;AAChF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,kEAAkE;IAClE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,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AAiF;IACjF,QAAQ,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;IAC9C,oFAAoF;IACpF,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,4FAA4F;IAC5F,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,UAAU,CAAC;CAC5D;AAED;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,IAAI,0BAAoC;IACjD,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;gBAE5B,MAAM,EAAE,sBAAsB;CAqB3C"}
|
|
@@ -31,9 +31,12 @@
|
|
|
31
31
|
* continued conversation carries earlier turns' results in `history`, and a
|
|
32
32
|
* library frame (a correction, a nudge) is not a person's turn. The fold reads
|
|
33
33
|
* the tool results after that message, every coverage row of the run
|
|
34
|
-
* (`coverageDeclared` is never carried into a next turn), the conflict rows
|
|
35
|
-
*
|
|
36
|
-
*
|
|
34
|
+
* (`coverageDeclared` is never carried into a next turn), the conflict rows of
|
|
35
|
+
* this turn — one that names one of those calls, or one stamped with this turn
|
|
36
|
+
* whose readings the record does not all place in earlier turns
|
|
37
|
+
* (`conflictOfThisTurn`; the ledger IS carried, so rows about earlier turns'
|
|
38
|
+
* calls are left out), and the
|
|
39
|
+
* answer's own rows (`unsupportedValues`,
|
|
37
40
|
* `stoppedEarly`, `answerValidation`). "Rests on" is every call of the turn: it
|
|
38
41
|
* may over-report, it never hides.
|
|
39
42
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assess.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/assessment/assess.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"assess.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/assessment/assess.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAaH,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EAGtB,gBAAgB,EACjB,MAAM,YAAY,CAAC;AA65BpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,gBAAgB,EACxB,YAAY,CAAC,EAAE,sBAAsB,GACpC,gBAAgB,CAKlB;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,QAAQ,EAAE,OAAO,EACjB,YAAY,CAAC,EAAE,sBAAsB,GACpC,gBAAgB,CAGlB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACvB,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAC3C,YAAY,EAAE,sBAAsB,GAAG,SAAS,EAChD,MAAM,EAAE,OAAO,GACd,gBAAgB,CA0ClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reasons.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/assessment/reasons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEzF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,iDAAiD;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAChD,6FAA6F;IAC7F,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,sFAAsF;AACtF,eAAO,MAAM,OAAO,EAAE,SAAS,WAAW,
|
|
1
|
+
{"version":3,"file":"reasons.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/assessment/reasons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEzF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,iDAAiD;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAChD,6FAA6F;IAC7F,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,sFAAsF;AACtF,eAAO,MAAM,OAAO,EAAE,SAAS,WAAW,EAmMxC,CAAC;AAEH,sCAAsC;AACtC,wBAAgB,WAAW,CAAC,MAAM,EAAE,gBAAgB,GAAG,WAAW,CAKjE"}
|
|
@@ -33,7 +33,9 @@
|
|
|
33
33
|
* argument row behind `value-contingent` — the result it names (`result`):
|
|
34
34
|
* the reason is that a value came from results the model itself set aside;
|
|
35
35
|
* - an answer check that names its tool and not its call
|
|
36
|
-
* (`declaration-overclaimed
|
|
36
|
+
* (`declaration-overclaimed`, the report row's `tools` — kept by the one
|
|
37
|
+
* projection onto the report, `negativeClaims/delivery.ts` ·
|
|
38
|
+
* `reportWithNegatives`) — every call of that tool this turn: it may
|
|
37
39
|
* over-report, it never hides (the fold's rule for "rests on").
|
|
38
40
|
*
|
|
39
41
|
* A row that names no call, a call whose tool's name the record does not
|
|
@@ -41,8 +43,31 @@
|
|
|
41
43
|
* carriers, an answer check's tools) that names no call — beside the entries
|
|
42
44
|
* that do — is COUNTED in `unnamed`, never dropped and never guessed. Only a
|
|
43
45
|
* known call id is said once.
|
|
46
|
+
*
|
|
47
|
+
* ## A list is read by index, never through its own code
|
|
48
|
+
*
|
|
49
|
+
* Every list on a row — a conflict's readings, a contingent value's carriers,
|
|
50
|
+
* an answer check's tools, a request's `toolCalls` — is read through ONE
|
|
51
|
+
* reader, `rowList` (`lib/boundedJson.ts` · `readOwnList`, the bounded-copy
|
|
52
|
+
* convention as a reader): a plain array only, its own `length`, the own data
|
|
53
|
+
* property at each index, at most `MAX_ROW_LIST_ENTRIES`. A record handed to
|
|
54
|
+
* `assessAnswer` may be host-built, so a list can be sparse, carry its own
|
|
55
|
+
* iterator or put a getter at an index: the iterator and the getter are never
|
|
56
|
+
* called. A hole or a getter's entry names no call; the entries past the bound
|
|
57
|
+
* are counted, never read; a value that is not a plain array is not trusted as
|
|
58
|
+
* a list — one call the record cannot name. Each is counted in `unnamed`.
|
|
44
59
|
*/
|
|
60
|
+
import { type OwnList } from '../../../lib/boundedJson.js';
|
|
45
61
|
import type { AssessmentPointer, AssessmentReason, AssessmentReasonSource } from './types.js';
|
|
62
|
+
/** The most entries the fold reads off one list on a row; the rest are counted, never read. */
|
|
63
|
+
export declare const MAX_ROW_LIST_ENTRIES = 1000;
|
|
64
|
+
/**
|
|
65
|
+
* A list on a row, as the fold reads it — THE one reader, shared by the
|
|
66
|
+
* projection here and the fold's placement (`assess.ts` · `conflictOfThisTurn`,
|
|
67
|
+
* `callsNamedBy`): `readOwnList` at `MAX_ROW_LIST_ENTRIES`. `undefined` when
|
|
68
|
+
* the value is not a plain array.
|
|
69
|
+
*/
|
|
70
|
+
export declare function rowList(value: unknown): OwnList | undefined;
|
|
46
71
|
/** What the projection reads: the committed state, and this turn's results (for a tool-name join). */
|
|
47
72
|
export interface SourceRead {
|
|
48
73
|
readonly state: Readonly<Record<string, unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/assessment/sources.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/assessment/sources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAEH,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAQ9F,+FAA+F;AAC/F,eAAO,MAAM,oBAAoB,OAAQ,CAAC;AAE1C;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAE3D;AAgBD,sGAAsG;AACtG,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAClD,QAAQ,CAAC,WAAW,EAAE,SAAS;QAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/F;AAuHD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,gBAAgB,EACxB,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,EACpC,OAAO,EAAE,SAAS,iBAAiB,EAAE,EACrC,IAAI,EAAE,UAAU,GACf,sBAAsB,CAgCxB"}
|
|
@@ -60,7 +60,9 @@ export type AssessmentPointer = {
|
|
|
60
60
|
* - `empty-undeclared` — an empty rowset that said nothing about what it
|
|
61
61
|
* searched: silence recorded as silence;
|
|
62
62
|
* - `sources-conflict` — two readings the model stood on disagree (a
|
|
63
|
-
* `ConflictRow` naming a call of this turn
|
|
63
|
+
* `ConflictRow` naming a call of this turn, or stamped with this turn while
|
|
64
|
+
* the record does not place every reading in an earlier turn — a reading it
|
|
65
|
+
* cannot place counts in the source's `unnamed`);
|
|
64
66
|
* - `value-unsupported` — names or numbers in the answer appear in no tool
|
|
65
67
|
* result (`unsupportedValues`);
|
|
66
68
|
* - `value-survived-revision` — the same, after the one revision the gate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/assessment/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACvE;IACE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEN
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/assessment/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACvE;IACE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;CACzE"}
|
|
@@ -20,6 +20,14 @@ export declare function renderNegativeCandidate(candidate: unknown, config: Nega
|
|
|
20
20
|
correction: boolean;
|
|
21
21
|
allowed: boolean;
|
|
22
22
|
};
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Merge negative verdicts without manufacturing a successful host comparison.
|
|
25
|
+
*
|
|
26
|
+
* THE ONE PROJECTION of a negative row onto the report: its code becomes the
|
|
27
|
+
* check's `reason`, and the tools it names stay `tools` — the answer's fold
|
|
28
|
+
* reads both off this row (`assessment/assess.ts` · `readAnswerRows`,
|
|
29
|
+
* `assessment/sources.ts` · `callsOfCheck`), so a field it reads is never
|
|
30
|
+
* left behind here. A row that names no tool carries no `tools`.
|
|
31
|
+
*/
|
|
24
32
|
export declare function reportWithNegatives(report: AnswerValidationReport, answer: AnswerNegatives, allowed: boolean): AnswerValidationReport;
|
|
25
33
|
//# sourceMappingURL=delivery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delivery.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/negativeClaims/delivery.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EACV,gBAAgB,EACjB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAAe,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAG/F,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,aAAa,EAAE,U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AClC,QAAQ,CAAC,aAAa,EAAE,UAAU,GAAG,gBAAgB,CAAC;CACvD;AACD,MAAM,MAAM,mBAAmB,GAC3B,gBAAgB,CAAC,MAAM,CAAC,GACxB,yBAAyB,GACzB,qBAAqB,CAAC;AAC1B,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,aAAa,CAAC;IACxF,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,WAAW,EAAE,cAAc,GAAG,gBAAgB,GAAG,aAAa,CAAC;IACxE,sEAAsE;IACtE,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,yBAAyB,EAAE,CAAC;CACvD;AAED,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,MAAM,MAAM,eAAe,GAAG,OAAO,6BAA6B,EAAE,sBAAsB,CAAC;AAqF3F,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,OAAO,EAClB,MAAM,EAAE,sBAAsB,EAC9B,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,OAAO,EACpC,cAAc,GAAE,WAAW,GAAG,gBAAmC,GAChE;IAAE,SAAS,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,eAAe,CAAC;IAAC,UAAU,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAkMxF;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,sBAAsB,EAC9B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,OAAO,GACf,sBAAsB,CAuBxB"}
|
|
@@ -79,6 +79,18 @@ export interface CredentialRequest {
|
|
|
79
79
|
readonly request?: RequestContext;
|
|
80
80
|
/** Force a fresh authorization, bypassing any cached/refresh token. */
|
|
81
81
|
readonly forceReauth?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* The abort signal of the request this credential is for — present when the
|
|
84
|
+
* caller has one, as `gatewayTransport` does for every request it vends for.
|
|
85
|
+
*
|
|
86
|
+
* A provider that does work of its own (a token endpoint, a vault, an SDK
|
|
87
|
+
* call) should hand it on and stop when it fires: the request it would serve
|
|
88
|
+
* has been cancelled or ran out of time. Ignoring it is safe, never a leak:
|
|
89
|
+
* the caller stops waiting at the abort and never uses a credential that
|
|
90
|
+
* arrives after it. It is a live object, not data: never put it in a cache
|
|
91
|
+
* key, a log line or an error message.
|
|
92
|
+
*/
|
|
93
|
+
readonly signal?: AbortSignal;
|
|
82
94
|
}
|
|
83
95
|
/**
|
|
84
96
|
* A credential, ready to apply to a downstream request. It carries its `kind`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/identity/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,oFAAoF;AACpF,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,+BAA+B;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,8FAA8F;IAC9F,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IACnC,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;;;OAQG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC;IAClC,uEAAuE;IACvE,QAAQ,CAAC,WAAW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E,UAAU,CAAC;IAChC,8CAA8C;IAC9C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;oFACoF;AACpF,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG,+BAA+B,CAAC;AAElF;;;;;;;;;GASG;AACH,MAAM,WAAW,kBAAkB;IACjC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAClE;AAED,yEAAyE;AACzE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,gBAAgB,GAAG,CAAC,IAAI,gBAAgB,CAE7E;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC;;0DAEsD;IACtD,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CACpC;AAED;;;;;;GAMG;AACH,wBAAgB,8BAA8B,IAAI,kBAAkB,CAanE"}
|
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
* `issued` is success; `authorization-required` is a HUMAN flow (3LO
|
|
26
26
|
* consent), not a transient fault — retrying it would hammer the IdP
|
|
27
27
|
* without the user having authorized anything.
|
|
28
|
+
* • The request's `signal` (`CredentialRequest.signal`) is passed through to
|
|
29
|
+
* the wrapped provider, ends the backoff wait, and is checked immediately
|
|
30
|
+
* before every attempt, the first included: a request whose signal has
|
|
31
|
+
* fired never asks the provider (again), and the call rejects with the
|
|
32
|
+
* abort. An attempt already running is the provider's to stop.
|
|
28
33
|
* • After retries exhaust, the LAST error is rethrown — the call site
|
|
29
34
|
* behaves byte-identically to an unwrapped provider (fail-closed:
|
|
30
35
|
* `agentfootprint.credential.failed` emit + error tool result; the tool
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withCredentialRetry.d.ts","sourceRoot":"","sources":["../../../src/identity/withCredentialRetry.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"withCredentialRetry.d.ts","sourceRoot":"","sources":["../../../src/identity/withCredentialRetry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAIH,OAAO,EAAsB,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,KAAK,EAAE,kBAAkB,EAAuC,MAAM,YAAY,CAAC;AAE1F;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC;AAE1D;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,GAAE,0BAA+B,GACvC,kBAAkB,CAyCpB"}
|
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
export declare function ownData(value: unknown, allowed?: readonly string[]): Record<string, unknown>;
|
|
2
|
+
/** A list as {@link readOwnList} read it. */
|
|
3
|
+
export interface OwnList {
|
|
4
|
+
/** The entries read, in index order — a hole or an accessor entry is `undefined` (its getter never called). */
|
|
5
|
+
readonly entries: readonly unknown[];
|
|
6
|
+
/** How many entries the list holds past the bound — counted, never read. */
|
|
7
|
+
readonly unread: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Read a list the way {@link copyJson} reads an array — a plain array only
|
|
11
|
+
* (`Array.prototype`), its own `length`, the own DATA property at each index —
|
|
12
|
+
* as a READER that never refuses: at most `maxEntries` entries, a hole or an
|
|
13
|
+
* accessor entry read as `undefined` (the getter is never called), and the
|
|
14
|
+
* entries past the bound counted in `unread`, never walked. It never calls the
|
|
15
|
+
* list's iterator, a getter or a method, so a list from a record the library
|
|
16
|
+
* did not build cannot hide its entries or run code inside the reader.
|
|
17
|
+
* `undefined` when `value` is not a plain array: the caller says what that
|
|
18
|
+
* means for its own question, the conservative way.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const list = ['a'];
|
|
23
|
+
* list.length = 3; // a hole at 1 and 2
|
|
24
|
+
* Object.defineProperty(list, Symbol.iterator, { value: function* () {} }); // never called
|
|
25
|
+
* readOwnList(list, 2); // { entries: ['a', undefined], unread: 1 }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function readOwnList(value: unknown, maxEntries: number): OwnList | undefined;
|
|
2
29
|
/** JSON copy without invoking toJSON/getters or silently dropping data. */
|
|
3
30
|
export declare function copyJson(value: unknown, maxBytes: number, freeze: boolean, maxDepth?: number): unknown;
|
|
4
31
|
//# sourceMappingURL=boundedJson.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boundedJson.d.ts","sourceRoot":"","sources":["../../../src/lib/boundedJson.ts"],"names":[],"mappings":"AAGA,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkB5F;AAED,2EAA2E;AAC3E,wBAAgB,QAAQ,CACtB,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,OAAO,EACf,QAAQ,SAAM,GACb,OAAO,CA0ET"}
|
|
1
|
+
{"version":3,"file":"boundedJson.d.ts","sourceRoot":"","sources":["../../../src/lib/boundedJson.ts"],"names":[],"mappings":"AAGA,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkB5F;AAED,6CAA6C;AAC7C,MAAM,WAAW,OAAO;IACtB,+GAA+G;IAC/G,QAAQ,CAAC,OAAO,EAAE,SAAS,OAAO,EAAE,CAAC;IACrC,4EAA4E;IAC5E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAWnF;AAED,2EAA2E;AAC3E,wBAAgB,QAAQ,CACtB,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,OAAO,EACf,QAAQ,SAAM,GACb,OAAO,CA0ET"}
|
|
@@ -146,6 +146,14 @@ export type FetchLike = (input: string | URL | Request, init?: RequestInit) => P
|
|
|
146
146
|
* Build the `fetch` the MCP SDK will use: one that vends a credential, applies
|
|
147
147
|
* it to this one request, and keeps nothing.
|
|
148
148
|
*
|
|
149
|
+
* The vend is a wait, and it honours the request's abort signal — resolved as
|
|
150
|
+
* fetch resolves it (`init.signal`, else a Request input's own): the provider
|
|
151
|
+
* is handed it (`CredentialRequest.signal`), the wait ends at the abort with the
|
|
152
|
+
* abort, and the signal is checked again once the credential arrives. So an
|
|
153
|
+
* aborted or timed-out request is never sent: the gateway stops waiting and
|
|
154
|
+
* never uses a late credential. A provider that ignores cancellation may still
|
|
155
|
+
* finish its own work.
|
|
156
|
+
*
|
|
149
157
|
* Exported for tests — the secrecy invariant is asserted against this function
|
|
150
158
|
* directly, because that is where a leak would happen and driving a whole SDK
|
|
151
159
|
* to reach it would test less while looking like it tested more.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gatewayTransport.d.ts","sourceRoot":"","sources":["../../../src/mcp/gatewayTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,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CAUtD;AAgBD,0FAA0F;AAC1F,MAAM,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEjG;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,mBAAmB,EAC9B,SAAS,GAAE,SAA6C,GACvD,SAAS,CAuCX"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentfootprint",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.1",
|
|
4
4
|
"description": "The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|