agentfootprint 14.9.0 → 14.9.2
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/CAPABILITIES.md +1 -1
- package/dist/core/agent/AgentBuilder.js +5 -5
- package/dist/core/agent/arguments/serve/schema.js +4 -4
- package/dist/core/agent/arguments/serve/schema.js.map +1 -1
- package/dist/core/agent/arguments/sources.js +4 -9
- package/dist/core/agent/arguments/sources.js.map +1 -1
- package/dist/core/agent/findings/reserved.js +28 -38
- package/dist/core/agent/findings/reserved.js.map +1 -1
- package/dist/core/agent/findings/sourceContractFeedback.js +57 -0
- package/dist/core/agent/findings/sourceContractFeedback.js.map +1 -0
- package/dist/core/agent/findings/types.js +3 -2
- package/dist/core/agent/findings/types.js.map +1 -1
- package/dist/core/agent/sourceContract.js +213 -0
- package/dist/core/agent/sourceContract.js.map +1 -0
- package/dist/core/agent/stages/callLLM.js +12 -15
- package/dist/core/agent/stages/callLLM.js.map +1 -1
- package/dist/core/agent/stages/seed.js +2 -9
- package/dist/core/agent/stages/seed.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/batch/execute.js +5 -1
- package/dist/core/agent/stages/toolCalls/batch/execute.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/batch/refusal.js +3 -8
- package/dist/core/agent/stages/toolCalls/batch/refusal.js.map +1 -1
- package/dist/core/slots/buildToolsSlot.js +11 -37
- package/dist/core/slots/buildToolsSlot.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/arguments/serve/schema.d.ts +3 -3
- package/dist/esm/core/agent/arguments/serve/schema.js +4 -4
- package/dist/esm/core/agent/arguments/serve/schema.js.map +1 -1
- package/dist/esm/core/agent/arguments/sources.d.ts +2 -5
- package/dist/esm/core/agent/arguments/sources.js +2 -8
- package/dist/esm/core/agent/arguments/sources.js.map +1 -1
- package/dist/esm/core/agent/findings/reserved.d.ts +16 -36
- package/dist/esm/core/agent/findings/reserved.js +20 -32
- package/dist/esm/core/agent/findings/reserved.js.map +1 -1
- package/dist/esm/core/agent/findings/sourceContractFeedback.d.ts +9 -0
- package/dist/esm/core/agent/findings/sourceContractFeedback.js +52 -0
- package/dist/esm/core/agent/findings/sourceContractFeedback.js.map +1 -0
- package/dist/esm/core/agent/findings/types.d.ts +2 -2
- package/dist/esm/core/agent/findings/types.js +2 -2
- package/dist/esm/core/agent/findings/types.js.map +1 -1
- package/dist/esm/core/agent/sourceContract.d.ts +37 -0
- package/dist/esm/core/agent/sourceContract.js +204 -0
- package/dist/esm/core/agent/sourceContract.js.map +1 -0
- package/dist/esm/core/agent/stages/callLLM.js +12 -15
- package/dist/esm/core/agent/stages/callLLM.js.map +1 -1
- package/dist/esm/core/agent/stages/seed.js +2 -9
- package/dist/esm/core/agent/stages/seed.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/batch/execute.js +5 -1
- package/dist/esm/core/agent/stages/toolCalls/batch/execute.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/batch/refusal.d.ts +1 -1
- package/dist/esm/core/agent/stages/toolCalls/batch/refusal.js +3 -8
- package/dist/esm/core/agent/stages/toolCalls/batch/refusal.js.map +1 -1
- package/dist/esm/core/slots/buildToolsSlot.d.ts +7 -9
- package/dist/esm/core/slots/buildToolsSlot.js +2 -28
- package/dist/esm/core/slots/buildToolsSlot.js.map +1 -1
- package/dist/esm/time-travel/servedView/assembly.js +2 -2
- package/dist/esm/time-travel/servedView/assembly.js.map +1 -1
- package/dist/esm/time-travel/servedView/system.d.ts +2 -1
- package/dist/esm/time-travel/servedView/system.js +4 -2
- package/dist/esm/time-travel/servedView/system.js.map +1 -1
- package/dist/esm/time-travel/servedView/tools.d.ts +2 -1
- package/dist/esm/time-travel/servedView/tools.js +10 -5
- package/dist/esm/time-travel/servedView/tools.js.map +1 -1
- package/dist/time-travel/servedView/assembly.js +2 -2
- package/dist/time-travel/servedView/assembly.js.map +1 -1
- package/dist/time-travel/servedView/system.js +4 -2
- package/dist/time-travel/servedView/system.js.map +1 -1
- package/dist/time-travel/servedView/tools.js +10 -5
- package/dist/time-travel/servedView/tools.js.map +1 -1
- package/dist/types/core/agent/AgentBuilder.d.ts +5 -5
- package/dist/types/core/agent/arguments/serve/schema.d.ts +3 -3
- package/dist/types/core/agent/arguments/serve/schema.d.ts.map +1 -1
- package/dist/types/core/agent/arguments/sources.d.ts +2 -5
- package/dist/types/core/agent/arguments/sources.d.ts.map +1 -1
- package/dist/types/core/agent/findings/reserved.d.ts +16 -36
- package/dist/types/core/agent/findings/reserved.d.ts.map +1 -1
- package/dist/types/core/agent/findings/sourceContractFeedback.d.ts +10 -0
- package/dist/types/core/agent/findings/sourceContractFeedback.d.ts.map +1 -0
- package/dist/types/core/agent/findings/types.d.ts +2 -2
- package/dist/types/core/agent/findings/types.d.ts.map +1 -1
- package/dist/types/core/agent/sourceContract.d.ts +38 -0
- package/dist/types/core/agent/sourceContract.d.ts.map +1 -0
- package/dist/types/core/agent/stages/callLLM.d.ts.map +1 -1
- package/dist/types/core/agent/stages/seed.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/batch/execute.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/batch/refusal.d.ts +1 -1
- package/dist/types/core/agent/stages/toolCalls/batch/refusal.d.ts.map +1 -1
- package/dist/types/core/slots/buildToolsSlot.d.ts +7 -9
- package/dist/types/core/slots/buildToolsSlot.d.ts.map +1 -1
- package/dist/types/time-travel/servedView/assembly.d.ts.map +1 -1
- package/dist/types/time-travel/servedView/system.d.ts +2 -1
- package/dist/types/time-travel/servedView/system.d.ts.map +1 -1
- package/dist/types/time-travel/servedView/tools.d.ts +2 -1
- package/dist/types/time-travel/servedView/tools.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assembly.js","sourceRoot":"","sources":["../../../../src/time-travel/servedView/assembly.ts"],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AAY,CAAC,UAAU,CAAC;YACjC,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;YACvC,GAAG,CAAC,QAAQ,KAAK,IAAI,IAAI,EAAE,QAAQ,EAAE,CAAC;SACvC;QACD,IAAI;KACL,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LLMToolSchema } from '../../provider-contract/types.js';
|
|
1
2
|
import type { InjectionRecord } from '../../recorders/core/types.js';
|
|
2
3
|
import type { findingsLedgerPiece } from '../../core/agent/findings/serve.js';
|
|
3
4
|
import type { ontologyPiece } from '../../ontology/serve.js';
|
|
@@ -11,5 +12,5 @@ type ComposedPiece = InjectionRecord | Exclude<RecoveryPiece | OntologyPiece | F
|
|
|
11
12
|
/** Read the initial system pieces before the conversation and findings. */
|
|
12
13
|
export declare function systemInputs(location: EpochLocation, served: boolean): readonly [injections: InjectionRecord[], iteration: number, recovery: RecoveryPiece];
|
|
13
14
|
/** Project the ordered system pieces; text is joined only at final assembly. */
|
|
14
|
-
export declare function systemPieces(injections: InjectionRecord[], recovery: RecoveryPiece, ontology: OntologyPiece | undefined, findings: FindingsPiece): readonly [composedPieces: ComposedPiece[], pieces: ServedPiece[]];
|
|
15
|
+
export declare function systemPieces(injections: InjectionRecord[], recovery: RecoveryPiece, ontology: OntologyPiece | undefined, findings: FindingsPiece, tools: readonly LLMToolSchema[] | undefined): readonly [composedPieces: readonly ComposedPiece[], pieces: ServedPiece[]];
|
|
15
16
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { projectSourceInstructions } from '../../core/agent/sourceContract.js';
|
|
1
2
|
import { contributingPieces } from '../../core/agent/composeRequest.js';
|
|
2
3
|
import { evidenceRecoveryPiece } from '../../core/agent/evidence/recovery.js';
|
|
3
4
|
import { readAtCall } from './recordReads.js';
|
|
@@ -13,12 +14,12 @@ export function systemInputs(location, served) {
|
|
|
13
14
|
return [injections, iteration, recovery];
|
|
14
15
|
}
|
|
15
16
|
/** Project the ordered system pieces; text is joined only at final assembly. */
|
|
16
|
-
export function systemPieces(injections, recovery, ontology, findings) {
|
|
17
|
+
export function systemPieces(injections, recovery, ontology, findings, tools) {
|
|
17
18
|
// ── the system prompt, joined ──────────────────────────────────────────
|
|
18
19
|
// Injections, then the recovery piece, then the ontology piece, then the
|
|
19
20
|
// findings piece — the fixed order the stage joins in. Every request-only
|
|
20
21
|
// piece is joined, never committed as an injection.
|
|
21
|
-
const
|
|
22
|
+
const initialPieces = recovery === undefined && ontology === undefined && findings === undefined
|
|
22
23
|
? injections
|
|
23
24
|
: [
|
|
24
25
|
...injections,
|
|
@@ -26,6 +27,7 @@ export function systemPieces(injections, recovery, ontology, findings) {
|
|
|
26
27
|
...(ontology === undefined ? [] : [ontology]),
|
|
27
28
|
...(findings === undefined ? [] : [findings]),
|
|
28
29
|
];
|
|
30
|
+
const composedPieces = projectSourceInstructions(initialPieces, tools);
|
|
29
31
|
const pieces = contributingPieces(composedPieces).map((record) => ({
|
|
30
32
|
text: record.rawContent,
|
|
31
33
|
slot: record.slot,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../src/time-travel/servedView/system.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../src/time-travel/servedView/system.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAI/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAG9E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAS9C,2EAA2E;AAC3E,MAAM,UAAU,YAAY,CAC1B,QAAuB,EACvB,MAAe;IAEf,0EAA0E;IAC1E,0EAA0E;IAC1E,uDAAuD;IACvD,MAAM,UAAU,GAAG,CAAC,UA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,IAAI,EAAE,MAAM,CAAC,UAAU;QACvB,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAC,CAAC,CAAC;IACJ,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -5,5 +5,6 @@ import type { EpochLocation } from '../epochs.js';
|
|
|
5
5
|
export declare function toolsAt(location: EpochLocation, served: boolean): readonly [
|
|
6
6
|
registered: LLMToolSchema[],
|
|
7
7
|
withheld: ReturnType<typeof toolsWithheld>,
|
|
8
|
-
forced: string | undefined
|
|
8
|
+
forced: string | undefined,
|
|
9
|
+
schemasUnknown: boolean
|
|
9
10
|
];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { toolsWithheld } from '../../core/agent/composeRequest.js';
|
|
2
2
|
import { FORCED_OUTPUT_TOOL_KEY } from '../../core/agent/receipt/receipt.js';
|
|
3
|
+
import { readAtCall as recordedAtCall } from '../epochs.js';
|
|
4
|
+
import { isPlaceholder } from '../../redaction/marker.js';
|
|
3
5
|
import { readAtCall, readRunConstant } from './recordReads.js';
|
|
4
6
|
/** A committed tool list, or `undefined` when the key held no array — which is
|
|
5
7
|
* what makes it a FALLBACK CHAIN and not a merge: the first key that holds a
|
|
@@ -25,12 +27,15 @@ export function toolsAt(location, served) {
|
|
|
25
27
|
// read first and the fallback is reached only when it holds no array, so no
|
|
26
28
|
// agent recording changes.
|
|
27
29
|
const withheld = toolsWithheld(readAtCall(location, 'wrapUpAsked', served), readAtCall(location, 'toolsOffAfterRevision', served));
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
const agentSchemas = toolListOf(readAtCall(location, 'dynamicToolSchemas', served));
|
|
31
|
+
const schemasUnknown = withheld === null &&
|
|
32
|
+
served &&
|
|
33
|
+
(isPlaceholder(recordedAtCall(location, 'dynamicToolSchemas')) ||
|
|
34
|
+
(agentSchemas === undefined && isPlaceholder(recordedAtCall(location, 'toolSchemas'))));
|
|
35
|
+
const dynamic = agentSchemas ?? toolListOf(readAtCall(location, 'toolSchemas', served)) ?? [];
|
|
36
|
+
const registered = withheld !== null || schemasUnknown ? [] : dynamic;
|
|
32
37
|
const forcedRaw = readRunConstant(location, FORCED_OUTPUT_TOOL_KEY, served);
|
|
33
38
|
const forced = typeof forcedRaw === 'string' && forcedRaw.length > 0 ? forcedRaw : undefined;
|
|
34
|
-
return [registered, withheld, forced];
|
|
39
|
+
return [registered, withheld, forced, schemasUnknown];
|
|
35
40
|
}
|
|
36
41
|
//# sourceMappingURL=tools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../../src/time-travel/servedView/tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE/D;;0EAE0E;AAC1E,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;AACvE,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,OAAO,CACrB,QAAuB,EACvB,MAAe;
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../../src/time-travel/servedView/tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAE7E,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,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C,QAAQ,EAAE,sBAAsB,EAAE,MAAM,CAAC,CAAC;IAC5E,MAAM,MAAM,GAAG,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7F,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -19,8 +19,8 @@ function viewOf(location, served) {
|
|
|
19
19
|
const [conversation, committed, history] = (0, conversation_js_1.conversationAt)(location, served);
|
|
20
20
|
const [findings, asSent, lateLayout, recordedBound, initialLayoutUnknown] = (0, findings_js_1.findingsAt)(location, served, committed, history);
|
|
21
21
|
const ontology = (0, ontology_js_1.ontologyAt)(location, served);
|
|
22
|
-
const [
|
|
23
|
-
const [
|
|
22
|
+
const [registered, withheld, forced, schemasUnknown] = (0, tools_js_1.toolsAt)(location, served);
|
|
23
|
+
const [composedPieces, pieces] = (0, system_js_1.systemPieces)(injections, recovery, ontology, findings, schemasUnknown ? undefined : registered);
|
|
24
24
|
const [requestOnly, layoutUnknown] = (0, requestOnly_js_1.requestOnlyAt)(location, served, asSent, registered, withheld, iteration, committed, lateLayout, recordedBound, initialLayoutUnknown);
|
|
25
25
|
const gaps = (0, gaps_js_1.gapsOf)(location, layoutUnknown, conversation, read, forced, served);
|
|
26
26
|
return (0, value_js_1.frozenView)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assembly.js","sourceRoot":"","sources":["../../../src/time-travel/servedView/assembly.ts"],"names":[],"mappings":";;;AAAA,0EAAsE;AAGtE,2CAAyD;AACzD,uDAAmD;AACnD,+CAA2C;AAC3C,+CAA2C;AAC3C,yCAAqC;AACrC,qDAAiD;AACjD,uCAAmC;AACnC,qDAA+C;AAC/C,yCAAsD;AAEtD,gFAAgF;AAChF,SAAgB,MAAM,CAAC,QAAuB,EAAE,MAAe;IAC7D,MAAM,I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AC,EAAE,MAAM,EAAE;QAC1D,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAA,uBAAY,EAAC,MAAM,CAAC,EAAE,WAAW,EAAE;QACvD,KAAK,EAAE;YACL,KAAK,EAAE,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;YACpF,OAAO,EAAE,IAAA,uBAAY,EAAC,UAAU,CAAC;YACjC,GAAG,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;YACvC,GAAG,CAAC,QAAQ,KAAK,IAAI,IAAI,EAAE,QAAQ,EAAE,CAAC;SACvC;QACD,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAtDD,wBAsDC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.systemPieces = exports.systemInputs = void 0;
|
|
4
|
+
const sourceContract_js_1 = require("../../core/agent/sourceContract.js");
|
|
4
5
|
const composeRequest_js_1 = require("../../core/agent/composeRequest.js");
|
|
5
6
|
const recovery_js_1 = require("../../core/agent/evidence/recovery.js");
|
|
6
7
|
const recordReads_js_1 = require("./recordReads.js");
|
|
@@ -17,12 +18,12 @@ function systemInputs(location, served) {
|
|
|
17
18
|
}
|
|
18
19
|
exports.systemInputs = systemInputs;
|
|
19
20
|
/** Project the ordered system pieces; text is joined only at final assembly. */
|
|
20
|
-
function systemPieces(injections, recovery, ontology, findings) {
|
|
21
|
+
function systemPieces(injections, recovery, ontology, findings, tools) {
|
|
21
22
|
// ── the system prompt, joined ──────────────────────────────────────────
|
|
22
23
|
// Injections, then the recovery piece, then the ontology piece, then the
|
|
23
24
|
// findings piece — the fixed order the stage joins in. Every request-only
|
|
24
25
|
// piece is joined, never committed as an injection.
|
|
25
|
-
const
|
|
26
|
+
const initialPieces = recovery === undefined && ontology === undefined && findings === undefined
|
|
26
27
|
? injections
|
|
27
28
|
: [
|
|
28
29
|
...injections,
|
|
@@ -30,6 +31,7 @@ function systemPieces(injections, recovery, ontology, findings) {
|
|
|
30
31
|
...(ontology === undefined ? [] : [ontology]),
|
|
31
32
|
...(findings === undefined ? [] : [findings]),
|
|
32
33
|
];
|
|
34
|
+
const composedPieces = (0, sourceContract_js_1.projectSourceInstructions)(initialPieces, tools);
|
|
33
35
|
const pieces = (0, composeRequest_js_1.contributingPieces)(composedPieces).map((record) => ({
|
|
34
36
|
text: record.rawContent,
|
|
35
37
|
slot: record.slot,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../src/time-travel/servedView/system.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../src/time-travel/servedView/system.ts"],"names":[],"mappings":";;;AACA,0EAA+E;AAI/E,0EAAwE;AACxE,uEAA8E;AAG9E,qDAA8C;AAS9C,2EAA2E;AAC3E,SAAgB,YAAY,CAC1B,QAAuB,EACvB,MAAe;IAEf,0EAA0E;IAC1E,0EAA0E;IAC1E,uDAAuD;IACvD,MAAM,UAAU,GAAG,CAAC,IAAA,2BAAU,EAAC,QAAQ,EAAE,wBAAwB,EAAE,MAAM,CAAC;QACxE,EAAE,CAAsB,CAAC;IAC3B,MAAM,SAAS,GAAG,IAAA,2BAAU,EAAC,QAAQ,EAAE,WAAW,EAAE,MAAM,CAAW,CAAC;IACtE,MAAM,QAAQ,GAAG,IAAA,mCAAqB,EACpC,IAAA,2BAAU,EAAC,QAAQ,EAAE,kBAAkB,EAAE,MAAM,CAAgD,EAC/F,IAAA,2BAAU,EAAC,QAAQ,EAAE,sBAAsB,EAAE,MAAM,CAAwB,EAC3E,SAAS,CACV,CAAC;IACF,OAAO,CAAC,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/composeRequest.js");
|
|
5
5
|
const receipt_js_1 = require("../../core/agent/receipt/receipt.js");
|
|
6
|
+
const epochs_js_1 = require("../epochs.js");
|
|
7
|
+
const marker_js_1 = require("../../redaction/marker.js");
|
|
6
8
|
const recordReads_js_1 = require("./recordReads.js");
|
|
7
9
|
/** A committed tool list, or `undefined` when the key held no array — which is
|
|
8
10
|
* what makes it a FALLBACK CHAIN and not a merge: the first key that holds a
|
|
@@ -28,13 +30,16 @@ function toolsAt(location, served) {
|
|
|
28
30
|
// read first and the fallback is reached only when it holds no array, so no
|
|
29
31
|
// agent recording changes.
|
|
30
32
|
const withheld = (0, composeRequest_js_1.toolsWithheld)((0, recordReads_js_1.readAtCall)(location, 'wrapUpAsked', served), (0, recordReads_js_1.readAtCall)(location, 'toolsOffAfterRevision', served));
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
const agentSchemas = toolListOf((0, recordReads_js_1.readAtCall)(location, 'dynamicToolSchemas', served));
|
|
34
|
+
const schemasUnknown = withheld === null &&
|
|
35
|
+
served &&
|
|
36
|
+
((0, marker_js_1.isPlaceholder)((0, epochs_js_1.readAtCall)(location, 'dynamicToolSchemas')) ||
|
|
37
|
+
(agentSchemas === undefined && (0, marker_js_1.isPlaceholder)((0, epochs_js_1.readAtCall)(location, 'toolSchemas'))));
|
|
38
|
+
const dynamic = agentSchemas ?? toolListOf((0, recordReads_js_1.readAtCall)(location, 'toolSchemas', served)) ?? [];
|
|
39
|
+
const registered = withheld !== null || schemasUnknown ? [] : dynamic;
|
|
35
40
|
const forcedRaw = (0, recordReads_js_1.readRunConstant)(location, receipt_js_1.FORCED_OUTPUT_TOOL_KEY, served);
|
|
36
41
|
const forced = typeof forcedRaw === 'string' && forcedRaw.length > 0 ? forcedRaw : undefined;
|
|
37
|
-
return [registered, withheld, forced];
|
|
42
|
+
return [registered, withheld, forced, schemasUnknown];
|
|
38
43
|
}
|
|
39
44
|
exports.toolsAt = toolsAt;
|
|
40
45
|
//# sourceMappingURL=tools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/time-travel/servedView/tools.ts"],"names":[],"mappings":";;;AACA,0EAAmE;AACnE,oEAA6E;AAE7E,qDAA+D;AAE/D;;0EAE0E;AAC1E,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;AACvE,CAAC;AAED,2EAA2E;AAC3E,SAAgB,OAAO,CACrB,QAAuB,EACvB,MAAe;
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/time-travel/servedView/tools.ts"],"names":[],"mappings":";;;AACA,0EAAmE;AACnE,oEAA6E;AAE7E,4CAA4D;AAC5D,yDAA0D;AAC1D,qDAA+D;AAE/D;;0EAE0E;AAC1E,SAAS,UAAU,CAAC,KAAc;IAChC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;AACvE,CAAC;AAED,2EAA2E;AAC3E,SAAgB,OAAO,CACrB,QAAuB,EACvB,MAAe;IAOf,0EAA0E;IAC1E,4EAA4E;IAC5E,0EAA0E;IAC1E,+DAA+D;IAC/D,kEAAkE;IAClE,mCAAmC;IACnC,EAAE;IACF,4EAA4E;IAC5E,2EAA2E;IAC3E,qEAAqE;IACrE,0EAA0E;IAC1E,yEAAyE;IACzE,4EAA4E;IAC5E,4EAA4E;IAC5E,2BAA2B;IAC3B,MAAM,QAAQ,GAAG,IAAA,iCAAa,EAC5B,IAAA,2BAAU,EAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,CAAC,EAC3C,IAAA,2BAAU,EAAC,QAAQ,EAAE,uBAAuB,EAAE,MAAM,CAAC,CACtD,CAAC;IACF,MAAM,YAAY,GAAG,UAAU,CAAC,IAAA,2BAAU,EAAC,QAAQ,EAAE,oBAAoB,EAAE,MAAM,CAAC,CAAC,CAAC;IACpF,MAAM,cAAc,GAClB,QAAQ,KAAK,IAAI;QACjB,MAAM;QACN,CAAC,IAAA,yBAAa,EAAC,IAAA,sBAAc,EAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAC;YAC5D,CAAC,YAAY,KAAK,SAAS,IAAI,IAAA,yBAAa,EAAC,IAAA,sBAAc,EAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5F,MAAM,OAAO,GAAG,YAAY,IAAI,UAAU,CAAC,IAAA,2BAAU,EAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IAC9F,MAAM,UAAU,GAAG,QAAQ,KAAK,IAAI,IAAI,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IACtE,MAAM,SAAS,GAAG,IAAA,gCAAe,EAAC,QAAQ,EAAE,mCAAsB,EAAE,MAAM,CAAC,CAAC;IAC5E,MAAM,MAAM,GAAG,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7F,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;AACxD,CAAC;AAvCD,0BAuCC"}
|
|
@@ -1199,9 +1199,9 @@ export declare class AgentBuilder {
|
|
|
1199
1199
|
*
|
|
1200
1200
|
* `argumentSources: true` checks the model's `_findings.from`: a person's
|
|
1201
1201
|
* quote, a result ID, an earlier answer, app text or an assumed choice. It
|
|
1202
|
-
* serves `from` alone
|
|
1203
|
-
* `.findings()`,
|
|
1204
|
-
*
|
|
1202
|
+
* serves `from` alone without the ledger; source-armed ASK tools require our
|
|
1203
|
+
* envelope. With `.findings()`, `basis` stays required; other observations stay
|
|
1204
|
+
* optional. An untraced ASK value raises the existing typed human question.
|
|
1205
1205
|
*
|
|
1206
1206
|
* `declarationCorrection: 'once'` optionally holds the whole proposed batch
|
|
1207
1207
|
* for one missing-declaration correction before that question. It requires
|
|
@@ -1459,8 +1459,8 @@ export declare class AgentBuilder {
|
|
|
1459
1459
|
*
|
|
1460
1460
|
* WHY. A long tool-using run serves every result back in full on every
|
|
1461
1461
|
* call, and what the model already stood on, left open, ruled out or found
|
|
1462
|
-
* to be noise is nowhere but in its head.
|
|
1463
|
-
*
|
|
1462
|
+
* to be noise is nowhere but in its head. `_findings` observations stay
|
|
1463
|
+
* optional; source-armed ASK declarations require our envelope. The model
|
|
1464
1464
|
* declares a `basis` for each call before the result exists ('direct' when
|
|
1465
1465
|
* it expects the answer, 'exploratory' when it is looking) and, on its next
|
|
1466
1466
|
* tool call or as a top-level `_findings.previous` on a JSON answer, the
|
|
@@ -10,8 +10,8 @@ export declare const ASK_SENTENCE = "The tool's rule asks the person for this va
|
|
|
10
10
|
/**
|
|
11
11
|
* The sentence a ruled `ask` property carries under DECLARED SOURCES
|
|
12
12
|
* (`.findings({ argumentSources: true })`, `.inputsLayer({ argumentSources:
|
|
13
|
-
* true })`) in place of `ASK_SENTENCE`:
|
|
14
|
-
*
|
|
13
|
+
* true })`) in place of `ASK_SENTENCE`: at the place the model decides whether
|
|
14
|
+
* to send a value, it names the nested declaration and all verified source kinds.
|
|
15
15
|
* Under the arm a present value with no traced source is asked of the person
|
|
16
16
|
* (`resolve.ts`), so "leave it out unless the person gave it" alone told the
|
|
17
17
|
* model that SENDING the value was the whole of its statement: in the paid
|
|
@@ -26,7 +26,7 @@ export interface ServeOptions {
|
|
|
26
26
|
* Declared sources are armed (`.findings({ argumentSources: true })` or
|
|
27
27
|
* `.inputsLayer({ argumentSources: true })`) AND this tool's served schema
|
|
28
28
|
* carries `_findings.from`: an `ask` property says where the model declares
|
|
29
|
-
* the
|
|
29
|
+
* the value's source, and an answered note says a later call may cite the
|
|
30
30
|
* answer. The CALLER decides it per tool, by the rule the planters and the
|
|
31
31
|
* dispatch peel ask (`findings/reserved.ts` · `ownsReservedArgument`, which
|
|
32
32
|
* this leaf cannot import): a tool whose author owns `_findings` is served
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../src/core/agent/arguments/serve/schema.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAG5E,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../../src/core/agent/arguments/serve/schema.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAG5E,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAatF;;;;GAIG;AACH,eAAO,MAAM,YAAY,4FACkE,CAAC;AAO5F;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,QAAkB,CAAC;AAEpD,2DAA2D;AAC3D,MAAM,WAAW,YAAY;IAC3B;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B;AAgBD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,aAAa,EACrB,IAAI,EAAE,aAAa,GAAG,SAAS,EAC/B,OAAO,CAAC,EAAE,YAAY,GACrB,aAAa,CAwCf;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,SAAS,aAAa,EAAE,EAChC,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,EAChD,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,YAAY,GAAG,SAAS,GAC9D,SAAS,aAAa,EAAE,CAQ1B"}
|
|
@@ -39,10 +39,8 @@
|
|
|
39
39
|
* a nested / non-primitive value — not ruled in this version); or an earlier
|
|
40
40
|
* entry already named the same argument (the first wins).
|
|
41
41
|
*/
|
|
42
|
-
|
|
43
|
-
export type DeclaredSourceKind
|
|
44
|
-
/** The five, in the order the served schema enumerates them. */
|
|
45
|
-
export declare const DECLARED_SOURCE_KINDS: readonly DeclaredSourceKind[];
|
|
42
|
+
import { type DeclaredSourceKind } from '../sourceContract.js';
|
|
43
|
+
export { DECLARED_SOURCE_KINDS, type DeclaredSourceKind } from '../sourceContract.js';
|
|
46
44
|
/** One `_findings.from` entry, as the reader kept it. */
|
|
47
45
|
export interface DeclaredSource {
|
|
48
46
|
/** A top-level argument of the call, carrying a primitive value. */
|
|
@@ -90,5 +88,4 @@ export interface CallSources {
|
|
|
90
88
|
/** Full parser fault, irrespective of which native row owns the display count. Correction arm only. */
|
|
91
89
|
readonly declarationMalformed?: true;
|
|
92
90
|
}
|
|
93
|
-
export {};
|
|
94
91
|
//# sourceMappingURL=sources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/arguments/sources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAIH,
|
|
1
|
+
{"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/arguments/sources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAIH,OAAO,EAAyB,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEtF,yDAAyD;AACzD,MAAM,WAAW,cAAc;IAC7B,oEAAoE;IACpE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACpC,gFAAgF;IAChF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,+EAA+E;AAC/E,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,SAAS,cAAc,EAAE,CAAC;IACzC,4EAA4E;IAC5E,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,KAAK,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAgCrD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,GAAG,WAAW,CAexE;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,SAAS,cAAc,EAAE,CAAC;IACzC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,uGAAuG;IACvG,QAAQ,CAAC,oBAAoB,CAAC,EAAE,IAAI,CAAC;CACtC"}
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* - Never mutate a schema or an args object: every changed value is a
|
|
20
20
|
* rebuilt copy, and an unchanged one is the SAME reference (so an unarmed
|
|
21
21
|
* path, or a schema the author already decorated, is byte-identical).
|
|
22
|
-
* -
|
|
23
|
-
* `additionalProperties
|
|
22
|
+
* - Observations stay optional. Source-armed ASK declarations alone require
|
|
23
|
+
* our envelope; `additionalProperties` and the author's own property win.
|
|
24
24
|
* - Never coerce, never infer: a field that fails its enum check is dropped
|
|
25
25
|
* and COUNTED (`malformed`), never defaulted. An absent declaration stays
|
|
26
26
|
* absent — `splitFindings` returns no `findings` for it.
|
|
@@ -42,8 +42,15 @@
|
|
|
42
42
|
* `unprovable` so a later call cannot falsify a sentence.
|
|
43
43
|
*/
|
|
44
44
|
import type { LLMToolSchema } from '../../../provider-contract/types.js';
|
|
45
|
+
import { type SourceDecorationOptions } from '../sourceContract.js';
|
|
46
|
+
export { FINDINGS_FROM_PROPERTY, FINDINGS_INSTRUCTION_ID } from '../sourceContract.js';
|
|
45
47
|
import { type FindingsDeclaration } from './types.js';
|
|
46
48
|
type PlainObject = Readonly<Record<string, unknown>>;
|
|
49
|
+
/**
|
|
50
|
+
* The first sentence of `FINDINGS_DESCRIPTION` — the versioned marker by which
|
|
51
|
+
* `withoutFindingsArgument` recognises the library's decoration when the
|
|
52
|
+
* reference is gone (a committed tool list is a `structuredClone`; see there).
|
|
53
|
+
*/
|
|
47
54
|
/**
|
|
48
55
|
* How many ids an offer lists at most: the newest results the model may
|
|
49
56
|
* still name come first, and the late DATA reports omitted whole IDs
|
|
@@ -51,36 +58,13 @@ type PlainObject = Readonly<Record<string, unknown>>;
|
|
|
51
58
|
*/
|
|
52
59
|
export declare const FINDINGS_OFFER_CAP = 32;
|
|
53
60
|
/**
|
|
54
|
-
* The
|
|
55
|
-
*
|
|
61
|
+
* The observational property stays frozen and optional. Source-armed ASK
|
|
62
|
+
* projections alone require its container. `basis` is required INSIDE it so a model
|
|
56
63
|
* that opens the object says why it made the call.
|
|
57
64
|
*/
|
|
58
65
|
export declare const FINDINGS_ARGUMENT_SCHEMA: PlainObject;
|
|
59
|
-
/**
|
|
60
|
-
|
|
61
|
-
* argument value of the call came from, planted ONLY under the sources arm
|
|
62
|
-
* (`.findings({ argumentSources: true })` or `.inputsLayer({ argumentSources:
|
|
63
|
-
* true })`) and ONLY on a tool that declares argument rules
|
|
64
|
-
* (`withFindingsArgument`'s `from` option, `withSourcesArgument`): planted
|
|
65
|
-
* everywhere it would cost every served tool its bytes before any benefit is
|
|
66
|
-
* measured.
|
|
67
|
-
*
|
|
68
|
-
* THE ONE PLACE `from` IS EXPLAINED (step 5, review round 1 of the bench). The
|
|
69
|
-
* sources' meanings live in `source`'s description, what the record keeps in
|
|
70
|
-
* the array's, and there is no second copy in the system prompt: the paid
|
|
71
|
-
* step-5 run served both (a 447-character instruction line beside this
|
|
72
|
-
* property) and the explanation cost its characters twice on every request.
|
|
73
|
-
* The wording is positive on purpose — the first draft opened "Optional:" and
|
|
74
|
-
* closed "Leave an argument out rather than guess", and the model read `from`
|
|
75
|
-
* as a place to cite RESULTS (34 of its 35 `from` arrays named a result; not
|
|
76
|
-
* one named the person's words unless it also named a result). A value with
|
|
77
|
-
* no entry is not refused; the sentence says what the record then holds.
|
|
78
|
-
*
|
|
79
|
-
* Says what the model may declare and what the record keeps, and nothing
|
|
80
|
-
* about what serving does; judged by `unprovable` at the strictest lifetime
|
|
81
|
-
* in `test/modelFacingSurfaces.test.ts`.
|
|
82
|
-
*/
|
|
83
|
-
export declare const FINDINGS_FROM_PROPERTY: PlainObject;
|
|
66
|
+
/** The base decoration with `from` — built once, served by reference like the base. */
|
|
67
|
+
export declare const FINDINGS_ARGUMENT_SCHEMA_WITH_FROM: Readonly<Record<string, unknown>>;
|
|
84
68
|
/**
|
|
85
69
|
* The reserved property DECLARED SOURCES plant WITHOUT the findings ledger
|
|
86
70
|
* (`.inputsLayer({ argumentSources: true })` on an agent that never called
|
|
@@ -114,7 +98,6 @@ export declare function findingsAnswerSchema(): PlainObject;
|
|
|
114
98
|
* declared-sources corpus leaves the library's own instruction out of the
|
|
115
99
|
* app's text by it.
|
|
116
100
|
*/
|
|
117
|
-
export declare const FINDINGS_INSTRUCTION_ID = "findings-ledger";
|
|
118
101
|
/**
|
|
119
102
|
* The always-on system instruction `.findings()` registers (the twin of
|
|
120
103
|
* `outputSchema()`'s piece). It asks; it promises nothing about serving.
|
|
@@ -168,13 +151,11 @@ export declare const FINDINGS_ANSWER_ASK: string;
|
|
|
168
151
|
* `undefined` (a name nothing answers) owns nothing.
|
|
169
152
|
*/
|
|
170
153
|
export declare function ownsReservedArgument(schema: LLMToolSchema | undefined): boolean;
|
|
171
|
-
/** Plant the stable
|
|
154
|
+
/** Plant the stable findings schema. The host's optional/source-ASK capability is
|
|
172
155
|
* fixed for a tool; mutable result IDs live in the late request DATA, never
|
|
173
156
|
* here. Author-owned properties win and decorating twice is idempotent.
|
|
174
157
|
*/
|
|
175
|
-
export declare function withFindingsArgument(schema: LLMToolSchema, options?:
|
|
176
|
-
readonly from?: boolean;
|
|
177
|
-
}): LLMToolSchema;
|
|
158
|
+
export declare function withFindingsArgument(schema: LLMToolSchema, options?: SourceDecorationOptions): LLMToolSchema;
|
|
178
159
|
/**
|
|
179
160
|
* DECLARED SOURCES WITHOUT THE FINDINGS LEDGER (`.inputsLayer({
|
|
180
161
|
* argumentSources: true })`, no `.findings()`): a REBUILT copy of a RULED
|
|
@@ -192,7 +173,7 @@ export declare function withFindingsArgument(schema: LLMToolSchema, options?: {
|
|
|
192
173
|
* withSourcesArgument(searchLogs.schema).inputSchema.properties._findings; // FINDINGS_SOURCES_SCHEMA
|
|
193
174
|
* ```
|
|
194
175
|
*/
|
|
195
|
-
export declare function withSourcesArgument(schema: LLMToolSchema): LLMToolSchema;
|
|
176
|
+
export declare function withSourcesArgument(schema: LLMToolSchema, sourceContract?: boolean): LLMToolSchema;
|
|
196
177
|
/**
|
|
197
178
|
* The served `inputSchema` WITHOUT the library's decoration: when
|
|
198
179
|
* `properties._findings` is the decoration (`isFindingsDecoration` — the
|
|
@@ -262,5 +243,4 @@ export interface SplitFindings {
|
|
|
262
243
|
* the same readable declaration, the same malformed count.
|
|
263
244
|
*/
|
|
264
245
|
export declare function splitFindings(args: PlainObject, arms?: DeclarationArms): SplitFindings;
|
|
265
|
-
export {};
|
|
266
246
|
//# sourceMappingURL=reserved.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reserved.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/reserved.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAmB,CAAC;IACxC,+CAA+C;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,aAAa,CAStF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Native error data only; served ASK contracts and optional observations share the same grammar. */
|
|
2
|
+
export declare function sourceDeclarationSchema(findings: boolean): Readonly<Record<string, unknown>>;
|
|
3
|
+
/** No values enter this port. Undefined preserves the native human fallback before spend. */
|
|
4
|
+
export declare function prepareSourceContractFeedback(calls: readonly {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
}[], omissions: readonly {
|
|
7
|
+
readonly toolCallId: string;
|
|
8
|
+
readonly argument: string;
|
|
9
|
+
}[], findings: boolean): readonly string[] | undefined;
|
|
10
|
+
//# sourceMappingURL=sourceContractFeedback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceContractFeedback.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/sourceContractFeedback.ts"],"names":[],"mappings":"AAUA,qGAAqG;AACrG,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAE5F;AAUD,6FAA6F;AAC7F,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,EACzC,SAAS,EAAE,SAAS;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAAE,EAChF,QAAQ,EAAE,OAAO,GAChB,SAAS,MAAM,EAAE,GAAG,SAAS,CA+B/B"}
|
|
@@ -39,8 +39,8 @@ import type { ScriptRow } from '../scripts/types.js';
|
|
|
39
39
|
import type { CallRow, CallWindowRow, ClockOnResumeRow, ClockRow, TimeAnswerRow, TimeReplyRow, SourceClockRow, TimeDerivedRow, TimeReadingRow } from '../../../time/rows.js';
|
|
40
40
|
import type { CoverageItem } from '../../../semantics/coverage/types.js';
|
|
41
41
|
import type { ClaimVerificationRow } from './verificationTypes.js';
|
|
42
|
-
/**
|
|
43
|
-
export
|
|
42
|
+
/** Reserved metadata: optional observations; source-armed ASK declarations require our envelope. */
|
|
43
|
+
export { RESERVED_ARGUMENT } from '../sourceContract.js';
|
|
44
44
|
/** The reserved top-level key a JSON answer may carry its standings under. */
|
|
45
45
|
export declare const RESERVED_ANSWER_KEY: "_findings";
|
|
46
46
|
/** Why the model makes a call: it expects the answer, or it is looking. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,KAAK,EACV,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,cAAc,EACd,cAAc,EACd,cAAc,EACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,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U,CAAC,EAAE,MAAM,CAAC;IAC7B,2DAA2D;IAC3D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;8EAC8E;AAC9E,MAAM,MAAM,oBAAoB,GAAG,OAAO,4CAA4C,EAAE,QAAQ,GAAG;IACjG,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,WAAW,GACnB,OAAO,cAAc,EAAE,mBAAmB,GAC1C,oBAAoB,GACpB,QAAQ,GACR,WAAW,GACX,WAAW,GACX,WAAW,GACX,gBAAgB,GAChB,aAAa,GACb,qBAAqB,GAGrB,oBAAoB,GAIpB,WAAW,GAGX,SAAS,GAKT,WAAW,GACX,kBAAkB,GAGlB,mBAAmB,GACnB,iBAAiB,GAMjB,SAAS,GACT,cAAc,GAWd,QAAQ,GACR,gBAAgB,GAChB,OAAO,GACP,cAAc,GACd,aAAa,GACb,aAAa,GACb,YAAY,GACZ,cAAc,GACd,cAAc,CAAC;AAEnB,0EAA0E;AAC1E,MAAM,MAAM,cAAc,GAAG,SAAS,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** Map/Lens — immutable model contract for the existing native source admission. No readers or state. */
|
|
2
|
+
import type { LLMToolSchema } from '../../provider-contract/types.js';
|
|
3
|
+
import { type RuledToolLike } from '../../tools/declare.js';
|
|
4
|
+
type PlainObject = Readonly<Record<string, unknown>>;
|
|
5
|
+
export declare const RESERVED_ARGUMENT: "_findings";
|
|
6
|
+
export declare const FINDINGS_MARKER = "Findings v1 (reserved by the agent runtime).";
|
|
7
|
+
export declare const FINDINGS_INSTRUCTION_ID = "findings-ledger";
|
|
8
|
+
export declare const OPTIONAL_FINDINGS_HEAD = "Findings v1. Tool schemas carry an optional `_findings` argument; declare it on your tool calls.";
|
|
9
|
+
export type DeclaredSourceKind = 'user' | 'result' | 'turn' | 'app' | 'assumed';
|
|
10
|
+
export declare const DECLARED_SOURCE_KINDS: readonly DeclaredSourceKind[];
|
|
11
|
+
export declare const SOURCE_DECLARATION_PATH: readonly string[];
|
|
12
|
+
/** Legacy observational grammar remains identical on off/unruled/assume-only cohorts. */
|
|
13
|
+
export declare const FINDINGS_FROM_PROPERTY: PlainObject;
|
|
14
|
+
export declare const SOURCE_ASK_HINT: string;
|
|
15
|
+
/** Eligibility comes from the actual winning implementation's accepted native rules. */
|
|
16
|
+
export declare function hasSourceObligation(tool: RuledToolLike | undefined): boolean;
|
|
17
|
+
export declare function requireSourceContract(input: PlainObject, planted: PlainObject): PlainObject;
|
|
18
|
+
/** The closed comment restores only our own token; it never grants admission or evidence. */
|
|
19
|
+
export declare function withoutSourceRequirement(input: PlainObject, envelope: unknown): PlainObject;
|
|
20
|
+
/** Error-only minimal schema, derived from the same served ASK grammar. No values enter it. */
|
|
21
|
+
export declare function sourceDeclarationView(planted: PlainObject): PlainObject;
|
|
22
|
+
interface InstructionPiece {
|
|
23
|
+
readonly rawContent?: string;
|
|
24
|
+
readonly source?: string;
|
|
25
|
+
readonly sourceId?: string;
|
|
26
|
+
readonly contentHash?: string;
|
|
27
|
+
readonly contentSummary?: string;
|
|
28
|
+
}
|
|
29
|
+
/** Current offered contract only. Benign presentation metadata, never an ownership/security proof. */
|
|
30
|
+
export declare function projectSourceInstructions<T extends InstructionPiece>(pieces: readonly T[], schemas: readonly LLMToolSchema[] | undefined): readonly T[];
|
|
31
|
+
export interface SourceDecorationOptions {
|
|
32
|
+
readonly from?: boolean;
|
|
33
|
+
readonly sourceContract?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/** Dynamic winner and static seed share the same declaration projection, with no catalog of our own. */
|
|
36
|
+
export declare function sourceSchemasOnWire(schemas: readonly LLMToolSchema[], tools: ReadonlyMap<string, RuledToolLike> | undefined, findings: boolean, sources: boolean, ledger: (schema: LLMToolSchema, options?: SourceDecorationOptions) => LLMToolSchema, source: (schema: LLMToolSchema, required?: boolean) => LLMToolSchema): readonly LLMToolSchema[];
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=sourceContract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceContract.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/sourceContract.ts"],"names":[],"mappings":"AAAA,yGAAyG;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAoC,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI9F,KAAK,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAWrD,eAAO,MAAM,iBAAiB,aAAuB,CAAC;AACtD,eAAO,MAAM,eAAe,iDAAiD,CAAC;AAC9E,eAAO,MAAM,uBAAuB,oBAAoB,CAAC;AACzD,eAAO,MAAM,sBAAsB,qGACiE,CAAC;AACrG,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;AAChF,eAAO,MAAM,qBAAqB,EAAE,SAAS,kBAAkB,EAM7D,CAAC;AACH,eAAO,MAAM,uBAAuB,mBAA6C,CAAC;AAElF,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,EAAE,WAqBnC,CAAC;AAUH,eAAO,MAAM,eAAe,QAGmD,CAAC;AA4ChF,wFAAwF;AACxF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,OAAO,CAK5E;AASD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,GAAG,WAAW,CAe3F;AAED,6FAA6F;AAC7F,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,GAAG,WAAW,CAY3F;AAED,+FAA+F;AAC/F,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW,CAevE;AAED,UAAU,gBAAgB;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AACD,sGAAsG;AACtG,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,gBAAgB,EAClE,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,OAAO,EAAE,SAAS,aAAa,EAAE,GAAG,SAAS,GAC5C,SAAS,CAAC,EAAE,CAgCd;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;CACnC;AACD,wGAAwG;AACxG,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,SAAS,aAAa,EAAE,EACjC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,SAAS,EACrD,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,uBAAuB,KAAK,aAAa,EACnF,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,aAAa,GACnE,SAAS,aAAa,EAAE,CAkB1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callLLM.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/callLLM.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"callLLM.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/callLLM.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAK3D;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAoE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAmF9C;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,gBAAgB,GACrB,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAgiClD;AAED,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/seed.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"seed.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/seed.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAGlE,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,KAAK,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAIhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAA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A0CD;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,aAAa,GAClB,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAUzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/agent/stages/toolCalls/batch/execute.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/agent/stages/toolCalls/batch/execute.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAKvE,8GAA8G;AAC9G,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,oBAAoB,EAC1B,UAAU,EAAE,kBAAkB,EAC9B,YAAY,EAAE,kBAAkB,GAC/B,eAAe,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAwRpD"}
|
|
@@ -5,5 +5,5 @@ import type { DispatchCall } from '../contracts/batchCall.js';
|
|
|
5
5
|
/** Malformed protocol IDs cannot acquire fabricated tool-result correlations. */
|
|
6
6
|
export declare function refuseToolBatch(scope: TypedScope<AgentState>, reason: ToolBatchFailure): void;
|
|
7
7
|
/** Valid IDs keep their genuine correlations; these notices contain no producer bytes. */
|
|
8
|
-
export declare function refuseSourceDeclarationBatch(scope: TypedScope<AgentState>, calls: readonly DispatchCall[],
|
|
8
|
+
export declare function refuseSourceDeclarationBatch(scope: TypedScope<AgentState>, calls: readonly DispatchCall[], contents: readonly string[], shownCalls: readonly DispatchCall[]): void;
|
|
9
9
|
//# sourceMappingURL=refusal.d.ts.map
|