agentfootprint 9.112.2 → 9.113.0
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/CHANGELOG.md +296 -0
- package/CLAUDE.md +1 -0
- package/dist/adapters/observability/audit.js +8 -0
- package/dist/adapters/observability/audit.js.map +1 -1
- package/dist/adapters/observability/otel.js +44 -2
- package/dist/adapters/observability/otel.js.map +1 -1
- package/dist/adapters/observability/xray.js +19 -0
- package/dist/adapters/observability/xray.js.map +1 -1
- package/dist/adapters/types.js.map +1 -1
- package/dist/core/Agent.js +11 -1
- package/dist/core/Agent.js.map +1 -1
- package/dist/core/agent/composeRequest.js +19 -11
- package/dist/core/agent/composeRequest.js.map +1 -1
- package/dist/core/agent/coverage/absent.js +163 -7
- package/dist/core/agent/coverage/absent.js.map +1 -1
- package/dist/core/agent/coverage/answer.js +3 -1
- package/dist/core/agent/coverage/answer.js.map +1 -1
- package/dist/core/agent/coverage/read.js +15 -11
- package/dist/core/agent/coverage/read.js.map +1 -1
- package/dist/core/agent/findings/ledger.js +27 -5
- package/dist/core/agent/findings/ledger.js.map +1 -1
- package/dist/core/agent/findings/offer.js +29 -9
- package/dist/core/agent/findings/offer.js.map +1 -1
- package/dist/core/agent/findings/serve.js +76 -7
- package/dist/core/agent/findings/serve.js.map +1 -1
- package/dist/core/agent/findings/types.js.map +1 -1
- package/dist/core/agent/findings/unsettled.js +276 -0
- package/dist/core/agent/findings/unsettled.js.map +1 -0
- package/dist/core/agent/stages/callLLM.js +30 -8
- package/dist/core/agent/stages/callLLM.js.map +1 -1
- package/dist/core/agent/stages/route.js +10 -2
- package/dist/core/agent/stages/route.js.map +1 -1
- package/dist/core/agent/stages/toolCalls.js +247 -31
- package/dist/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/core/agent/stages/window.js +5 -2
- package/dist/core/agent/stages/window.js.map +1 -1
- package/dist/core/agent/toolResultCap.js +0 -0
- package/dist/core/agent/toolResultCap.js.map +1 -1
- package/dist/core/agent/window/ledgerFactPins.js +13 -2
- package/dist/core/agent/window/ledgerFactPins.js.map +1 -1
- package/dist/core/agent/window/toolNames.js +17 -2
- package/dist/core/agent/window/toolNames.js.map +1 -1
- package/dist/core/checkin.js +5 -1
- package/dist/core/checkin.js.map +1 -1
- package/dist/core/runCheckpoint.js +26 -2
- package/dist/core/runCheckpoint.js.map +1 -1
- package/dist/esm/adapters/observability/audit.d.ts +8 -0
- package/dist/esm/adapters/observability/audit.js +8 -0
- package/dist/esm/adapters/observability/audit.js.map +1 -1
- package/dist/esm/adapters/observability/otel.d.ts +17 -2
- package/dist/esm/adapters/observability/otel.js +44 -2
- package/dist/esm/adapters/observability/otel.js.map +1 -1
- package/dist/esm/adapters/observability/xray.d.ts +8 -0
- package/dist/esm/adapters/observability/xray.js +19 -0
- package/dist/esm/adapters/observability/xray.js.map +1 -1
- package/dist/esm/adapters/types.d.ts +49 -0
- package/dist/esm/adapters/types.js.map +1 -1
- package/dist/esm/core/Agent.js +11 -1
- package/dist/esm/core/Agent.js.map +1 -1
- package/dist/esm/core/agent/composeRequest.d.ts +10 -7
- package/dist/esm/core/agent/composeRequest.js +19 -11
- package/dist/esm/core/agent/composeRequest.js.map +1 -1
- package/dist/esm/core/agent/coverage/absent.d.ts +31 -4
- package/dist/esm/core/agent/coverage/absent.js +160 -6
- package/dist/esm/core/agent/coverage/absent.js.map +1 -1
- package/dist/esm/core/agent/coverage/answer.js +3 -1
- package/dist/esm/core/agent/coverage/answer.js.map +1 -1
- package/dist/esm/core/agent/coverage/index.d.ts +1 -1
- package/dist/esm/core/agent/coverage/read.d.ts +9 -1
- package/dist/esm/core/agent/coverage/read.js +16 -12
- package/dist/esm/core/agent/coverage/read.js.map +1 -1
- package/dist/esm/core/agent/coverage/types.d.ts +42 -0
- package/dist/esm/core/agent/findings/ledger.d.ts +23 -6
- package/dist/esm/core/agent/findings/ledger.js +27 -5
- package/dist/esm/core/agent/findings/ledger.js.map +1 -1
- package/dist/esm/core/agent/findings/offer.d.ts +23 -6
- package/dist/esm/core/agent/findings/offer.js +27 -8
- package/dist/esm/core/agent/findings/offer.js.map +1 -1
- package/dist/esm/core/agent/findings/serve.d.ts +19 -6
- package/dist/esm/core/agent/findings/serve.js +77 -8
- package/dist/esm/core/agent/findings/serve.js.map +1 -1
- package/dist/esm/core/agent/findings/types.d.ts +81 -1
- package/dist/esm/core/agent/findings/types.js.map +1 -1
- package/dist/esm/core/agent/findings/unsettled.d.ts +121 -0
- package/dist/esm/core/agent/findings/unsettled.js +271 -0
- package/dist/esm/core/agent/findings/unsettled.js.map +1 -0
- package/dist/esm/core/agent/stages/callLLM.js +30 -8
- package/dist/esm/core/agent/stages/callLLM.js.map +1 -1
- package/dist/esm/core/agent/stages/route.js +10 -2
- package/dist/esm/core/agent/stages/route.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls.d.ts +90 -2
- package/dist/esm/core/agent/stages/toolCalls.js +244 -31
- package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/esm/core/agent/stages/window.js +5 -2
- package/dist/esm/core/agent/stages/window.js.map +1 -1
- package/dist/esm/core/agent/toolResultCap.d.ts +4 -1
- package/dist/esm/core/agent/toolResultCap.js +0 -0
- package/dist/esm/core/agent/toolResultCap.js.map +1 -1
- package/dist/esm/core/agent/types.d.ts +5 -0
- package/dist/esm/core/agent/window/ledgerFactPins.d.ts +10 -1
- package/dist/esm/core/agent/window/ledgerFactPins.js +13 -2
- package/dist/esm/core/agent/window/ledgerFactPins.js.map +1 -1
- package/dist/esm/core/agent/window/strategy.d.ts +2 -1
- package/dist/esm/core/agent/window/toolNames.d.ts +16 -1
- package/dist/esm/core/agent/window/toolNames.js +17 -2
- package/dist/esm/core/agent/window/toolNames.js.map +1 -1
- package/dist/esm/core/checkin.js +5 -1
- package/dist/esm/core/checkin.js.map +1 -1
- package/dist/esm/core/runCheckpoint.js +26 -2
- package/dist/esm/core/runCheckpoint.js.map +1 -1
- package/dist/esm/events/payloads.d.ts +76 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/bug-report/transcript.d.ts +5 -0
- package/dist/esm/lib/bug-report/transcript.js +1 -0
- package/dist/esm/lib/bug-report/transcript.js.map +1 -1
- package/dist/esm/lib/semantics/projection.js +1 -0
- package/dist/esm/lib/semantics/projection.js.map +1 -1
- package/dist/esm/lib/time-travel/receipt.d.ts +4 -3
- package/dist/esm/lib/time-travel/receipt.js +4 -3
- package/dist/esm/lib/time-travel/receipt.js.map +1 -1
- package/dist/esm/lib/time-travel/servedView.js +13 -9
- package/dist/esm/lib/time-travel/servedView.js.map +1 -1
- package/dist/esm/lib/trace-toolpack/traceToolpack.js +130 -17
- package/dist/esm/lib/trace-toolpack/traceToolpack.js.map +1 -1
- package/dist/esm/memory/causal/evidenceRecorder.d.ts +2 -0
- package/dist/esm/memory/causal/evidenceRecorder.js +13 -0
- package/dist/esm/memory/causal/evidenceRecorder.js.map +1 -1
- package/dist/esm/recorders/observability/AgentThinkingTraceRecorder.d.ts +2 -0
- package/dist/esm/recorders/observability/AgentThinkingTraceRecorder.js +11 -0
- package/dist/esm/recorders/observability/AgentThinkingTraceRecorder.js.map +1 -1
- package/dist/esm/recorders/observability/BoundaryRecorder.d.ts +10 -1
- package/dist/esm/recorders/observability/BoundaryRecorder.js +9 -1
- package/dist/esm/recorders/observability/BoundaryRecorder.js.map +1 -1
- package/dist/esm/recorders/observability/FlowchartRecorder.d.ts +4 -1
- package/dist/esm/recorders/observability/FlowchartRecorder.js +13 -1
- package/dist/esm/recorders/observability/FlowchartRecorder.js.map +1 -1
- package/dist/esm/recorders/observability/LiveStateRecorder.d.ts +2 -0
- package/dist/esm/recorders/observability/LiveStateRecorder.js +9 -0
- package/dist/esm/recorders/observability/LiveStateRecorder.js.map +1 -1
- package/dist/esm/recorders/observability/RouteRecorder.js +5 -0
- package/dist/esm/recorders/observability/RouteRecorder.js.map +1 -1
- package/dist/esm/recorders/observability/StatusRecorder.js +7 -0
- package/dist/esm/recorders/observability/StatusRecorder.js.map +1 -1
- package/dist/esm/recorders/observability/ToolChoiceRecorder.js +5 -0
- package/dist/esm/recorders/observability/ToolChoiceRecorder.js.map +1 -1
- package/dist/esm/recorders/observability/commentary/commentaryTemplates.js +18 -2
- package/dist/esm/recorders/observability/commentary/commentaryTemplates.js.map +1 -1
- package/dist/esm/recorders/observability/status/statusTemplates.js +5 -0
- package/dist/esm/recorders/observability/status/statusTemplates.js.map +1 -1
- package/dist/esm/security/extractSequence.d.ts +36 -5
- package/dist/esm/security/extractSequence.js +99 -26
- package/dist/esm/security/extractSequence.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/bug-report/transcript.js +1 -0
- package/dist/lib/bug-report/transcript.js.map +1 -1
- package/dist/lib/semantics/projection.js +1 -0
- package/dist/lib/semantics/projection.js.map +1 -1
- package/dist/lib/time-travel/receipt.js +4 -3
- package/dist/lib/time-travel/receipt.js.map +1 -1
- package/dist/lib/time-travel/servedView.js +13 -9
- package/dist/lib/time-travel/servedView.js.map +1 -1
- package/dist/lib/trace-toolpack/traceToolpack.js +130 -17
- package/dist/lib/trace-toolpack/traceToolpack.js.map +1 -1
- package/dist/memory/causal/evidenceRecorder.js +13 -0
- package/dist/memory/causal/evidenceRecorder.js.map +1 -1
- package/dist/recorders/observability/AgentThinkingTraceRecorder.js +11 -0
- package/dist/recorders/observability/AgentThinkingTraceRecorder.js.map +1 -1
- package/dist/recorders/observability/BoundaryRecorder.js +9 -1
- package/dist/recorders/observability/BoundaryRecorder.js.map +1 -1
- package/dist/recorders/observability/FlowchartRecorder.js +13 -1
- package/dist/recorders/observability/FlowchartRecorder.js.map +1 -1
- package/dist/recorders/observability/LiveStateRecorder.js +9 -0
- package/dist/recorders/observability/LiveStateRecorder.js.map +1 -1
- package/dist/recorders/observability/RouteRecorder.js +5 -0
- package/dist/recorders/observability/RouteRecorder.js.map +1 -1
- package/dist/recorders/observability/StatusRecorder.js +7 -0
- package/dist/recorders/observability/StatusRecorder.js.map +1 -1
- package/dist/recorders/observability/ToolChoiceRecorder.js +5 -0
- package/dist/recorders/observability/ToolChoiceRecorder.js.map +1 -1
- package/dist/recorders/observability/commentary/commentaryTemplates.js +18 -2
- package/dist/recorders/observability/commentary/commentaryTemplates.js.map +1 -1
- package/dist/recorders/observability/status/statusTemplates.js +5 -0
- package/dist/recorders/observability/status/statusTemplates.js.map +1 -1
- package/dist/security/extractSequence.js +99 -26
- package/dist/security/extractSequence.js.map +1 -1
- package/dist/types/adapters/observability/audit.d.ts +8 -0
- package/dist/types/adapters/observability/audit.d.ts.map +1 -1
- package/dist/types/adapters/observability/otel.d.ts +17 -2
- package/dist/types/adapters/observability/otel.d.ts.map +1 -1
- package/dist/types/adapters/observability/xray.d.ts +8 -0
- package/dist/types/adapters/observability/xray.d.ts.map +1 -1
- package/dist/types/adapters/types.d.ts +49 -0
- package/dist/types/adapters/types.d.ts.map +1 -1
- package/dist/types/core/Agent.d.ts.map +1 -1
- package/dist/types/core/agent/composeRequest.d.ts +10 -7
- package/dist/types/core/agent/composeRequest.d.ts.map +1 -1
- package/dist/types/core/agent/coverage/absent.d.ts +31 -4
- package/dist/types/core/agent/coverage/absent.d.ts.map +1 -1
- package/dist/types/core/agent/coverage/answer.d.ts.map +1 -1
- package/dist/types/core/agent/coverage/index.d.ts +1 -1
- package/dist/types/core/agent/coverage/index.d.ts.map +1 -1
- package/dist/types/core/agent/coverage/read.d.ts +9 -1
- package/dist/types/core/agent/coverage/read.d.ts.map +1 -1
- package/dist/types/core/agent/coverage/types.d.ts +42 -0
- package/dist/types/core/agent/coverage/types.d.ts.map +1 -1
- package/dist/types/core/agent/findings/ledger.d.ts +23 -6
- package/dist/types/core/agent/findings/ledger.d.ts.map +1 -1
- package/dist/types/core/agent/findings/offer.d.ts +23 -6
- package/dist/types/core/agent/findings/offer.d.ts.map +1 -1
- package/dist/types/core/agent/findings/serve.d.ts +19 -6
- package/dist/types/core/agent/findings/serve.d.ts.map +1 -1
- package/dist/types/core/agent/findings/types.d.ts +81 -1
- package/dist/types/core/agent/findings/types.d.ts.map +1 -1
- package/dist/types/core/agent/findings/unsettled.d.ts +122 -0
- package/dist/types/core/agent/findings/unsettled.d.ts.map +1 -0
- package/dist/types/core/agent/stages/callLLM.d.ts.map +1 -1
- package/dist/types/core/agent/stages/route.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls.d.ts +90 -2
- package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
- package/dist/types/core/agent/stages/window.d.ts.map +1 -1
- package/dist/types/core/agent/toolResultCap.d.ts +4 -1
- package/dist/types/core/agent/toolResultCap.d.ts.map +1 -1
- package/dist/types/core/agent/types.d.ts +5 -0
- package/dist/types/core/agent/types.d.ts.map +1 -1
- package/dist/types/core/agent/window/ledgerFactPins.d.ts +10 -1
- package/dist/types/core/agent/window/ledgerFactPins.d.ts.map +1 -1
- package/dist/types/core/agent/window/strategy.d.ts +2 -1
- package/dist/types/core/agent/window/strategy.d.ts.map +1 -1
- package/dist/types/core/agent/window/toolNames.d.ts +16 -1
- package/dist/types/core/agent/window/toolNames.d.ts.map +1 -1
- package/dist/types/core/checkin.d.ts.map +1 -1
- package/dist/types/core/runCheckpoint.d.ts.map +1 -1
- package/dist/types/events/payloads.d.ts +76 -1
- package/dist/types/events/payloads.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/bug-report/transcript.d.ts +5 -0
- package/dist/types/lib/bug-report/transcript.d.ts.map +1 -1
- package/dist/types/lib/semantics/projection.d.ts.map +1 -1
- package/dist/types/lib/time-travel/receipt.d.ts +4 -3
- package/dist/types/lib/time-travel/receipt.d.ts.map +1 -1
- package/dist/types/lib/time-travel/servedView.d.ts.map +1 -1
- package/dist/types/lib/trace-toolpack/traceToolpack.d.ts.map +1 -1
- package/dist/types/memory/causal/evidenceRecorder.d.ts +2 -0
- package/dist/types/memory/causal/evidenceRecorder.d.ts.map +1 -1
- package/dist/types/recorders/observability/AgentThinkingTraceRecorder.d.ts +2 -0
- package/dist/types/recorders/observability/AgentThinkingTraceRecorder.d.ts.map +1 -1
- package/dist/types/recorders/observability/BoundaryRecorder.d.ts +10 -1
- package/dist/types/recorders/observability/BoundaryRecorder.d.ts.map +1 -1
- package/dist/types/recorders/observability/FlowchartRecorder.d.ts +4 -1
- package/dist/types/recorders/observability/FlowchartRecorder.d.ts.map +1 -1
- package/dist/types/recorders/observability/LiveStateRecorder.d.ts +2 -0
- package/dist/types/recorders/observability/LiveStateRecorder.d.ts.map +1 -1
- package/dist/types/recorders/observability/RouteRecorder.d.ts.map +1 -1
- package/dist/types/recorders/observability/ToolChoiceRecorder.d.ts.map +1 -1
- package/dist/types/recorders/observability/commentary/commentaryTemplates.d.ts.map +1 -1
- package/dist/types/recorders/observability/status/statusTemplates.d.ts.map +1 -1
- package/dist/types/security/extractSequence.d.ts +36 -5
- package/dist/types/security/extractSequence.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -14,5 +14,5 @@ export { absenceEvidenceProjection } from './evidence.js';
|
|
|
14
14
|
export { mergeItems, normalizeCoverageList, sameItem } from './items.js';
|
|
15
15
|
export { coverage, COVERAGE_MARKER, COVERAGE_NOTE, coverageOfLedger, readCoverageLedger, } from './ledger.js';
|
|
16
16
|
export { readCoverageResult, type CoverageFacts, type CoverageReading } from './read.js';
|
|
17
|
-
export type { AbsenceDeclaration, Coverage, CoverageDeclaration, CoverageInput, CoverageItem, CoveredResult, DeclaredCoverage, ToolAbsence, } from './types.js';
|
|
17
|
+
export type { AbsenceDeclaration, Coverage, CoverageDeclaration, CoverageInput, CoverageItem, CoveredResult, DeclaredCoverage, ToolAbsence, TryInsteadTool, } from './types.js';
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/coverage/index.ts"],"names":[],"mappings":"AAAA;;;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mB,EACnB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,cAAc,GACf,MAAM,YAAY,CAAC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* returned — byte for byte.
|
|
16
16
|
*/
|
|
17
17
|
import type { ToolResultStatus } from '../../../lib/injection-engine/toolOutcome.js';
|
|
18
|
-
import type { Coverage } from './types.js';
|
|
18
|
+
import type { Coverage, TryInsteadTool } from './types.js';
|
|
19
19
|
/** One coverage statement found in a result, before the caller stamps it with
|
|
20
20
|
* the call it came from. */
|
|
21
21
|
export interface CoverageFacts {
|
|
@@ -23,6 +23,14 @@ export interface CoverageFacts {
|
|
|
23
23
|
readonly coverage: Coverage;
|
|
24
24
|
/** Present for `'absence'` — what the search was for. */
|
|
25
25
|
readonly lookedFor?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Present for `'absence'` when it declared a sentence (9.113.0) — trimmed,
|
|
28
|
+
* as `absent()` mints it, and never parsed for a tool name. Not a piece of
|
|
29
|
+
* coverage, so it sits beside `coverage` rather than inside it.
|
|
30
|
+
*/
|
|
31
|
+
readonly tryInstead?: string;
|
|
32
|
+
/** Present for `'absence'` when it declared a typed tool (9.113.0) — a copy. */
|
|
33
|
+
readonly tryInsteadTool?: TryInsteadTool;
|
|
26
34
|
}
|
|
27
35
|
/** What one recognized result declares. `undefined` from
|
|
28
36
|
* {@link readCoverageResult} means "neither shape": untouched path. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/coverage/read.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/coverage/read.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AASrF,OAAO,KAAK,EAAE,QAAQ,EAAe,cAAc,EAAE,MAAM,YAAY,CAAC;AAExE;6BAC6B;AAC7B,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,yDAAyD;IACzD,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,gFAAgF;IAChF,QAAQ,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC;CAC1C;AAgBD;wEACwE;AACxE,MAAM,WAAW,eAAe;IAC9B;;;;;;;OAOG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IACnC;gFAC4E;IAC5E,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAC;CAC7C;AAID;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,CAuB9E"}
|
|
@@ -58,6 +58,29 @@ export interface CoverageDeclaration {
|
|
|
58
58
|
readonly notChecked?: readonly CoverageInput[];
|
|
59
59
|
readonly cannotCover?: readonly CoverageInput[];
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* The other TOOL a suggestion points at, typed (9.113.0) — `tryInsteadTool`
|
|
63
|
+
* on the declaration, `try_instead_tool` on the envelope.
|
|
64
|
+
*
|
|
65
|
+
* The `tryInstead` sentence puts a tool's name inside prose ("…or check
|
|
66
|
+
* cluster_inventory for the collected names."), and a reader that wants to
|
|
67
|
+
* know WHICH tool was suggested could only find out by parsing that sentence.
|
|
68
|
+
* This library never parses a tool name out of prose, so the name rides here
|
|
69
|
+
* as data — BESIDE the sentence, never in its place: `try_instead` stays a
|
|
70
|
+
* string, so every reader of it reads what it always read.
|
|
71
|
+
*
|
|
72
|
+
* `tool` is NOT looked up. The tool may be served by a provider that resolves
|
|
73
|
+
* per iteration, or be offered on a later turn; `absent()` requires a
|
|
74
|
+
* non-empty name and records it as declared. Which names a provider accepts is
|
|
75
|
+
* `core/tools.ts` · `assertValidToolName`'s question, and the library only
|
|
76
|
+
* warns about it (dev mode), here as at `defineTool`.
|
|
77
|
+
*/
|
|
78
|
+
export interface TryInsteadTool {
|
|
79
|
+
/** The tool's registered name, as a call would name it. */
|
|
80
|
+
readonly tool: string;
|
|
81
|
+
/** Why that tool, in the author's words ("it lists the collected names"). */
|
|
82
|
+
readonly why?: string;
|
|
83
|
+
}
|
|
61
84
|
/** What a tool author passes to {@link import('./absent.js').absent}. */
|
|
62
85
|
export interface AbsenceDeclaration {
|
|
63
86
|
/**
|
|
@@ -83,8 +106,22 @@ export interface AbsenceDeclaration {
|
|
|
83
106
|
* `window: '7d'`, or ask for a different interface"). Optional, and the
|
|
84
107
|
* highest-value optional field in the shape: the loop this primitive stops
|
|
85
108
|
* is a model with nowhere else to go.
|
|
109
|
+
*
|
|
110
|
+
* Prose for the model. Nothing in this library reads a tool name out of it:
|
|
111
|
+
* when the sentence points at another tool, name that tool in
|
|
112
|
+
* {@link AbsenceDeclaration.tryInsteadTool} as well.
|
|
86
113
|
*/
|
|
87
114
|
readonly tryInstead?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The other TOOL the suggestion points at, as data (9.113.0) —
|
|
117
|
+
* `{ tool, why? }`. Beside the sentence, not instead of it: the sentence is
|
|
118
|
+
* what the model is told, this is what a reader reads without parsing
|
|
119
|
+
* prose. Either may be given without the other; when both are given they
|
|
120
|
+
* must name the same tool, and the library cannot check that they do — it
|
|
121
|
+
* would have to read a tool name out of the sentence. ONE tool; a list is
|
|
122
|
+
* refused (see `absent.ts` · `readToolSuggestion` for why).
|
|
123
|
+
*/
|
|
124
|
+
readonly tryInsteadTool?: TryInsteadTool;
|
|
88
125
|
}
|
|
89
126
|
/**
|
|
90
127
|
* The rendered absence — the exact object a tool hands back and the model
|
|
@@ -109,7 +146,12 @@ export interface ToolAbsence {
|
|
|
109
146
|
/** Stated as data as well as prose — the note can be skimmed past, a
|
|
110
147
|
* `true` in a field named for the question cannot. */
|
|
111
148
|
readonly retry_returns_the_same: true;
|
|
149
|
+
/** The author's sentence. A string, always — the typed tool rides its own
|
|
150
|
+
* key, so a reader of this one never has to narrow it. */
|
|
112
151
|
readonly try_instead?: string;
|
|
152
|
+
/** The typed tool the suggestion points at (9.113.0), as declared — the
|
|
153
|
+
* author's words, `{ tool, why? }`. The model reads it as written. */
|
|
154
|
+
readonly try_instead_tool?: TryInsteadTool;
|
|
113
155
|
/** The static sentence. Never interpolated — see `absent.ts`. */
|
|
114
156
|
readonly note: string;
|
|
115
157
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/coverage/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,+EAA+E;AAC/E,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,YAAY,CAAC;AAElD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IAC1C,QAAQ,CAAC,UAAU,EAAE,SAAS,YAAY,EAAE,CAAC;IAC7C,QAAQ,CAAC,WAAW,EAAE,SAAS,YAAY,EAAE,CAAC;CAC/C;AAED,2EAA2E;AAC3E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IAC5C,QAAQ,CAAC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C;IAC3C,iEAAiE;IACjE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,yEAAyE;AACzE,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,OAAO;IACxC,QAAQ,CAAC,WAAW,EAAE;QACpB,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;QAC3C,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;QAC/C,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;QAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,wCAAwC;IACxC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAiB,SAAQ,QAAQ;IAChD,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -19,9 +19,14 @@
|
|
|
19
19
|
* filed by the two moments `contingent.ts` serves: the route
|
|
20
20
|
* decider's answer and the dispatch loop's call) — identities,
|
|
21
21
|
* enums and numbers only. Assertion values, `settles`, `line`, the
|
|
22
|
-
* judged state
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* judged state, the contingent VALUE and — on an
|
|
23
|
+
* `unsettled-by-absence` row — a TOOL's own words (its envelope's
|
|
24
|
+
* `notChecked`, `cannotCover` and `tryInstead`) live in the
|
|
25
|
+
* committed key under whatever redaction the run configured; an
|
|
26
|
+
* event stream fans out to sinks we do not control. That row
|
|
27
|
+
* (9.113.0, filed by the same two moments through
|
|
28
|
+
* `unsettled.ts · withUnsettledRows`) emits nothing of its own, as
|
|
29
|
+
* a conflict row emits nothing of its own.
|
|
25
30
|
*
|
|
26
31
|
* ## Append only, last wins, conflicts are a fold
|
|
27
32
|
*
|
|
@@ -43,7 +48,7 @@
|
|
|
43
48
|
*/
|
|
44
49
|
import { type Conflict } from '../../../integrity/assertion/conflicts.js';
|
|
45
50
|
import { type Assertion } from '../../../integrity/assertion/types.js';
|
|
46
|
-
import { type BasisRow, type DeclaredOn, type FindingsDeclaration, type FindingsLedger, type FindingsRow, type JudgmentRow, type StandingRow } from './types.js';
|
|
51
|
+
import { type BasisRow, type DeclaredOn, type FindingsDeclaration, type FindingsLedger, type FindingsRow, type JudgmentRow, type StandingRow, type UnsettledByAbsenceRow } from './types.js';
|
|
47
52
|
/** The scope surface this file needs. Structurally a `TypedScope<AgentState>`. */
|
|
48
53
|
export interface FindingsScope {
|
|
49
54
|
findingsLedger?: FindingsLedger;
|
|
@@ -77,6 +82,16 @@ export interface LedgerFold {
|
|
|
77
82
|
readonly conflicts: readonly Conflict[];
|
|
78
83
|
/** Whether any result has a standing at all. */
|
|
79
84
|
readonly hasStanding: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* The ruled-out standings that rest on an absence (9.113.0): the LAST
|
|
87
|
+
* `unsettled-by-absence` row per result, kept only while that result's
|
|
88
|
+
* CURRENT standing (`standingOf`) is still `ruled-out` — a later `fact`,
|
|
89
|
+
* `open` or `noise` moved the model's word, and a row beside the earlier
|
|
90
|
+
* word describes a standing that no longer stands. In the order each
|
|
91
|
+
* result first got a row. The piece's `unsettled by absence` section reads
|
|
92
|
+
* this and nothing else (`serve.ts · findingsLedgerPiece`).
|
|
93
|
+
*/
|
|
94
|
+
readonly unsettled: ReadonlyMap<string, UnsettledByAbsenceRow>;
|
|
80
95
|
}
|
|
81
96
|
/**
|
|
82
97
|
* Fold a ledger to its current reading. Pure; safe on a spread of the
|
|
@@ -89,8 +104,10 @@ export declare function foldLedger(rows: readonly FindingsRow[]): LedgerFold;
|
|
|
89
104
|
* key that first disagreed at this write, and emit one event per basis or
|
|
90
105
|
* standing row. No-op on an empty list, so an armed agent whose model
|
|
91
106
|
* declared nothing never writes the key — its commit log is the one it
|
|
92
|
-
* always had. Callers pass basis and standing rows
|
|
93
|
-
*
|
|
107
|
+
* always had. Callers pass basis and standing rows — each standing followed
|
|
108
|
+
* by the `unsettled-by-absence` row the rule files beside it, when it files
|
|
109
|
+
* one (`unsettled.ts · withUnsettledRows`); conflict rows are this function's
|
|
110
|
+
* to write.
|
|
94
111
|
*/
|
|
95
112
|
export declare function recordFindings(scope: FindingsScope, rows: readonly FindingsRow[]): void;
|
|
96
113
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/ledger.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAGH,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAErF,OAAO,EAEL,KAAK,QAAQ,EAGb,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,WAAW,EAEhB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC3B,MAAM,YAAY,CAAC;AAEpB,kFAAkF;AAClF,MAAM,WAAW,aAAa;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC9C;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ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EACjB,SAAS,CAAC,EAAE,MAAM,GACjB,QAAQ,CAoBV"}
|
|
@@ -18,7 +18,11 @@
|
|
|
18
18
|
* standingRowsFrom` resolves a named id against. The offer and the
|
|
19
19
|
* identity source read the SAME served history, so every id the
|
|
20
20
|
* offer lists resolves: the law "the offer is what the model may
|
|
21
|
-
* COPY" holds at the row, not only at the schema.
|
|
21
|
+
* COPY" holds at the row, not only at the schema. All of them ask
|
|
22
|
+
* ONE predicate, `isResultMessage`: a message the batch settlement
|
|
23
|
+
* wrote (9.113.0, `LLMMessage.notDispatched`) is served — the model
|
|
24
|
+
* reads its sentence — and is no result, so it is never offered,
|
|
25
|
+
* resolved or counted undeclared.
|
|
22
26
|
*
|
|
23
27
|
* WHY AN OFFER. On a hosted model the ask "by its tool_result id" produced
|
|
24
28
|
* standings named by ORDINAL ("0", "1"), recorded as `unknownId` and settling
|
|
@@ -62,10 +66,21 @@ import type { FindingsLedger, Standing, StandingRow } from './types.js';
|
|
|
62
66
|
*/
|
|
63
67
|
export declare const RETIRING_STANDINGS: readonly Standing[];
|
|
64
68
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* the
|
|
69
|
+
* Is this message a tool's RESULT — the only thing a standing can be about?
|
|
70
|
+
* A `role: 'tool'` message the batch settlement wrote (9.113.0,
|
|
71
|
+
* `LLMMessage.notDispatched`) is not: the call never ran, so there is nothing
|
|
72
|
+
* to stand on. Read off the marker, never the sentence — which is why every
|
|
73
|
+
* caller hands these functions the COMMITTED conversation, not the wire,
|
|
74
|
+
* where `stripFrameworkFields` has already removed the marker (ids and order
|
|
75
|
+
* are the same either way).
|
|
76
|
+
*/
|
|
77
|
+
export declare function isResultMessage(m: LLMMessage): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* The `role: 'tool'` ids on a message list, in wire order, each once — a
|
|
80
|
+
* settled message excluded (`isResultMessage`). A message without an id, or
|
|
81
|
+
* with an empty one, contributes nothing. The collapse (`serve.ts ·
|
|
82
|
+
* collapseJudged`) never changes an id, so the list is the same before and
|
|
83
|
+
* after it.
|
|
69
84
|
*/
|
|
70
85
|
export declare function servedToolCallIds(messages: readonly LLMMessage[]): readonly string[];
|
|
71
86
|
/**
|
|
@@ -107,7 +122,9 @@ export declare function offeredResultIds(messages: readonly LLMMessage[], rows:
|
|
|
107
122
|
* order changes no row; it is the source the rows resolved against before
|
|
108
123
|
* the history joined). An id in neither is `unknownId`, as written. A tool
|
|
109
124
|
* message with no `toolName` yields a result with none: nothing is invented
|
|
110
|
-
* for it.
|
|
125
|
+
* for it. A settled message (`isResultMessage`) is no result, so a model that
|
|
126
|
+
* names its id anyway files `unknownId` — the batch never holds one: a
|
|
127
|
+
* settled call never joins `toolResults`.
|
|
111
128
|
*/
|
|
112
129
|
export declare function knownResults(messages: readonly LLMMessage[], previousBatch?: readonly PreviousResult[]): readonly PreviousResult[];
|
|
113
130
|
//# sourceMappingURL=offer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/offer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/offer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAExE;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAAS,QAAQ,EAA0C,CAAC;AAE7F;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,CAEtD;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,SAAS,UAAU,EAAE,GAAG,SAAS,MAAM,EAAE,CAWpF;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,GAC3C,MAAM,EAAE,CASV;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,GAC3C,MAAM,EAAE,CAWV;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,SAAS,UAAU,EAAE,EAC/B,IAAI,EAAE,cAAc,GAAG,SAAS,GAC/B,SAAS,MAAM,EAAE,CAGnB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,SAAS,UAAU,EAAE,EAC/B,aAAa,GAAE,SAAS,cAAc,EAAO,GAC5C,SAAS,cAAc,EAAE,CAkB3B"}
|
|
@@ -26,7 +26,13 @@
|
|
|
26
26
|
* on the record — one line per `ContingentRow`, the value the model used
|
|
27
27
|
* and every result that carried it with the standing the model gave that
|
|
28
28
|
* result (`contingent.ts` is the rule; this only quotes the rows; the
|
|
29
|
-
* heading says the lines are the library's join, not a declaration).
|
|
29
|
+
* heading says the lines are the library's join, not a declaration). After
|
|
30
|
+
* it, `unsettled by absence (read off the record):` (9.113.0) quotes the
|
|
31
|
+
* rows the fold keeps beside a ruled-out standing whose only witness was an
|
|
32
|
+
* absence — what the envelope, as the model was served it, said it did not
|
|
33
|
+
* check and its `try_instead`, in its own field names (`unsettled.ts` is
|
|
34
|
+
* the rule, and quotes nothing the model was not served; the model's own
|
|
35
|
+
* ruled-out line stays in `limitations`, exactly as declared). Every
|
|
30
36
|
* bucket is bounded
|
|
31
37
|
* (`FINDINGS_PIECE_LIMITS`) and every overflow is STATED; an empty bucket is
|
|
32
38
|
* omitted rather than rendered as "no facts". A basis-only ledger
|
|
@@ -133,14 +139,15 @@ export declare function isCollapsedToolResult(value: unknown): value is Collapse
|
|
|
133
139
|
* section: the piece's sections are separated by a blank line, and an id
|
|
134
140
|
* carrying `\n\nfacts (declared by the model):\n…` would otherwise render as
|
|
135
141
|
* a second, forged, library-authored bucket. `pieceChars` is the ceiling the
|
|
136
|
-
* other three imply for the whole piece (header + the four buckets
|
|
137
|
-
* contingent section at their cap + two count
|
|
142
|
+
* other three imply for the whole piece (header + the four buckets, the
|
|
143
|
+
* contingent section and the unsettled section at their cap + two count
|
|
144
|
+
* lines at theirs + the ask):
|
|
138
145
|
* stated, not enforced by a cut, and pinned by `serve.test.ts` ("the whole
|
|
139
146
|
* piece stays under pieceChars"), which measures a ledger at every cap at
|
|
140
147
|
* once against it.
|
|
141
148
|
*/
|
|
142
149
|
export declare const FINDINGS_PIECE_LIMITS: Readonly<{
|
|
143
|
-
/** Lines per text bucket (facts, limitations, evidenceRefs, nextSteps, contingent) before `+K more`. */
|
|
150
|
+
/** Lines per text bucket (facts, limitations, evidenceRefs, nextSteps, contingent, unsettled) before `+K more`. */
|
|
144
151
|
readonly bucketLines: 64;
|
|
145
152
|
/** Ids per count line (noise, undeclared) before `+K more`. */
|
|
146
153
|
readonly listedIds: 32;
|
|
@@ -148,8 +155,8 @@ export declare const FINDINGS_PIECE_LIMITS: Readonly<{
|
|
|
148
155
|
readonly lineChars: 240;
|
|
149
156
|
/** Chars per id on a count line before `…[clipped N chars]` — an id is an identifier. */
|
|
150
157
|
readonly idChars: 64;
|
|
151
|
-
/** The whole piece's ceiling in chars, implied by the three bounds above (raised for the fifth capped section, 9.110.0). */
|
|
152
|
-
readonly pieceChars:
|
|
158
|
+
/** The whole piece's ceiling in chars, implied by the three bounds above (raised for the fifth capped section, 9.110.0, and the sixth, 9.113.0). */
|
|
159
|
+
readonly pieceChars: 114688;
|
|
153
160
|
}>;
|
|
154
161
|
/**
|
|
155
162
|
* Compose the findings piece for one request, or `undefined` when no result
|
|
@@ -168,6 +175,12 @@ export declare function findingsLedgerPiece(rows: FindingsLedger | undefined, se
|
|
|
168
175
|
* ticket. The SAME array instance when nothing collapses; otherwise a new
|
|
169
176
|
* array of the same length and order in which only the collapsed entries
|
|
170
177
|
* are new objects.
|
|
178
|
+
*
|
|
179
|
+
* Hand it the COMMITTED conversation and strip afterwards (9.113.0): a
|
|
180
|
+
* message the batch settlement wrote is recognised by its marker
|
|
181
|
+
* (`offer.ts` · `isResultMessage`), which `stripFrameworkFields` removes. A
|
|
182
|
+
* collapsed entry keeps every other field, so stripping after is the same
|
|
183
|
+
* wire as stripping before.
|
|
171
184
|
*/
|
|
172
185
|
export declare function collapseJudged(messages: readonly LLMMessage[], rows: FindingsLedger | undefined, mode: FindingsServeMode): readonly LLMMessage[];
|
|
173
186
|
//# sourceMappingURL=serve.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/serve.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/serve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAK7D,OAAO,EAAmB,iBAAiB,EAAiB,MAAM,YAAY,CAAC;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAe,MAAM,YAAY,CAAC;AAKxE,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,+FAA+F;AAC/F,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG,aAAa,CAAC;AA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.js';
|
|
32
|
+
import type { CoverageItem } from '../coverage/types.js';
|
|
32
33
|
/** The reserved optional property every SERVED tool schema carries when armed. */
|
|
33
34
|
export declare const RESERVED_ARGUMENT: "_findings";
|
|
34
35
|
/** The reserved top-level key a JSON answer may carry its standings under. */
|
|
@@ -285,7 +286,86 @@ export interface ContingentRow {
|
|
|
285
286
|
readonly carriers: readonly ContingentCarrier[];
|
|
286
287
|
readonly iteration: number;
|
|
287
288
|
}
|
|
288
|
-
|
|
289
|
+
/**
|
|
290
|
+
* A `ruled-out` standing whose ONLY witness is an absence (9.113.0) — the
|
|
291
|
+
* library's row BESIDE the model's, never a rewrite of it. "Nothing was
|
|
292
|
+
* found" is not "ruled out": a lookup that matched nothing witnesses no
|
|
293
|
+
* negative, so a ruling-out that rests on it alone is not settled by its
|
|
294
|
+
* witness — and the envelope already says why (what it did not check) and
|
|
295
|
+
* where the settling would be (its `try_instead`). `findings/unsettled.ts`
|
|
296
|
+
* is the one rule; `ledger.ts · recordFindings` files the row immediately
|
|
297
|
+
* after the standing it is beside, keyed to that standing's `toolCallId`.
|
|
298
|
+
* The model's `StandingRow` is untouched and served exactly as declared.
|
|
299
|
+
*
|
|
300
|
+
* TWO WITNESSES, BOTH REQUIRED. A row is filed only when the dispatch door
|
|
301
|
+
* recorded the standing's result as an absence (`stages/toolCalls.ts ·
|
|
302
|
+
* declareCoverage` — the delivered status `'absent'`, the `tools.absent`
|
|
303
|
+
* event, a `kind: 'absence'` row on `AgentState.coverageDeclared`; the rule
|
|
304
|
+
* never re-reads a return to decide that, so the record holds one answer to
|
|
305
|
+
* "did the tool return an absence?") AND the model was SERVED one. The door
|
|
306
|
+
* records the return before the after-tool chain, the tool's own ceiling
|
|
307
|
+
* and placement act, and the model rules out on what it READ: a result an
|
|
308
|
+
* after-tool rule denied, a refusal, a placement ticket or a summary was no
|
|
309
|
+
* absence to the model, so nothing is filed beside a ruling-out on it.
|
|
310
|
+
*
|
|
311
|
+
* A RECORD OF A CHECK, NOT A FOLD. Written once, at the moment the standing
|
|
312
|
+
* was filed, and never recomputed, never updated. The record needs it
|
|
313
|
+
* STORED because what it is read from does not last as long as the
|
|
314
|
+
* standing: `coverageDeclared` is per run (a continued conversation or a
|
|
315
|
+
* `resumeOnError` starts without it — it is not on the `AgentRunCheckpoint`),
|
|
316
|
+
* and the served result leaves `history` when the window evicts it
|
|
317
|
+
* (`stages/window.ts`). The model needs
|
|
318
|
+
* it SERVED for a different reason: from the next call on, a ruled-out
|
|
319
|
+
* result is a ticket on the wire (`serve.ts · collapseJudged`), so the
|
|
320
|
+
* piece's section is where the envelope's boundary still reaches it. Which
|
|
321
|
+
* rows are CURRENT — the last per result, while that result's standing is
|
|
322
|
+
* still `ruled-out` — is the ledger's one fold (`ledger.ts · foldLedger`,
|
|
323
|
+
* its `unsettled` map), never this row's.
|
|
324
|
+
*
|
|
325
|
+
* Every field is in its author's words AS THE MODEL WAS SERVED THEM, never
|
|
326
|
+
* inferred and never more than the model read: `notChecked` / `cannotCover`
|
|
327
|
+
* are the served envelope's `not_checked` / `cannot_cover`, `tryInstead` its
|
|
328
|
+
* `try_instead` STRING — so a scrub an after-tool rule applied is honored,
|
|
329
|
+
* and a word governance withheld never reaches the row (the door's own
|
|
330
|
+
* copies are its witness, never quoted). These are tool-authored words in
|
|
331
|
+
* the committed key, under whatever redaction the run configured (the
|
|
332
|
+
* `ledger.ts` payload law).
|
|
333
|
+
*
|
|
334
|
+
* THE NAME. The ledger's own verb negated — `settles` is what an `open`
|
|
335
|
+
* standing says would settle it — and the cause in the coverage vocabulary
|
|
336
|
+
* (`absent()`, the delivered status `'absent'`). It reuses no standing value
|
|
337
|
+
* (round 1 re-filed the standing as `open`, a second writer of the model's
|
|
338
|
+
* word) and no disposition word (the checker's). THE FIELD: the design
|
|
339
|
+
* (decisions memo § 2.1, page § 5.6) names the carried sentence `settles`;
|
|
340
|
+
* it ships as `tryInstead`, the envelope's own field name, because `settles`
|
|
341
|
+
* is the MODEL's word on an `open` standing and calling the tool's sentence
|
|
342
|
+
* "what settles it" would be an inference — a reader of this row looks for
|
|
343
|
+
* `tryInstead`, never `settles`.
|
|
344
|
+
*/
|
|
345
|
+
export interface UnsettledByAbsenceRow {
|
|
346
|
+
readonly kind: 'unsettled-by-absence';
|
|
347
|
+
/** The ruled-out RESULT — the key of the standing this row is beside. */
|
|
348
|
+
readonly toolCallId: string;
|
|
349
|
+
/**
|
|
350
|
+
* The SERVED envelope's `not_checked` (the served result's leading JSON
|
|
351
|
+
* object — a framework note joined after it is not part of it) — a
|
|
352
|
+
* bounding ledger's first, then the absence's, repeats dropped (the one
|
|
353
|
+
* recognizer's order, which the door files in too). An item that names no
|
|
354
|
+
* ground is left out. Present only when non-empty.
|
|
355
|
+
*/
|
|
356
|
+
readonly notChecked?: readonly CoverageItem[];
|
|
357
|
+
/** The served envelope's `cannot_cover`, by the same rule. Present only when non-empty. */
|
|
358
|
+
readonly cannotCover?: readonly CoverageItem[];
|
|
359
|
+
/**
|
|
360
|
+
* The served absence's `try_instead`, the STRING byte for byte — never
|
|
361
|
+
* parsed, never trimmed, never read for a tool name. Present only when
|
|
362
|
+
* that string is non-blank.
|
|
363
|
+
*/
|
|
364
|
+
readonly tryInstead?: string;
|
|
365
|
+
/** The standing's iteration — the moment the check ran. */
|
|
366
|
+
readonly iteration: number;
|
|
367
|
+
}
|
|
368
|
+
export type FindingsRow = BasisRow | StandingRow | ConflictRow | JudgmentRow | JudgmentErrorRow | ContingentRow | UnsettledByAbsenceRow;
|
|
289
369
|
/** The committed key: flat, append-only, a fresh array on every write. */
|
|
290
370
|
export type FindingsLedger = readonly FindingsRow[];
|
|
291
371
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAA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AC,WAAW,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/C;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,2DAA2D;IAC3D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,WAAW,GACX,WAAW,GACX,WAAW,GACX,gBAAgB,GAChB,aAAa,GACb,qBAAqB,CAAC;AAE1B,0EAA0E;AAC1E,MAAM,MAAM,cAAc,GAAG,SAAS,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* findings/unsettled — "nothing was found" is not "ruled out".
|
|
3
|
+
*
|
|
4
|
+
* Pattern: one pure rule over (a standing the model just declared, the
|
|
5
|
+
* result the model was served for it, the coverage the dispatch
|
|
6
|
+
* door recorded); the sibling of `contingent.ts`. That one asks
|
|
7
|
+
* "did the model build on a result it had set aside?"; this one
|
|
8
|
+
* asks "did the model set something aside on a result that held
|
|
9
|
+
* nothing?".
|
|
10
|
+
* Role: core/ layer leaf. The two moments that file standings —
|
|
11
|
+
* `stages/toolCalls.ts` (a call's `_findings.previous`) and
|
|
12
|
+
* `stages/route.ts` (the answer's) — pass their standing rows
|
|
13
|
+
* through `withUnsettledRows` on the way to `ledger.ts ·
|
|
14
|
+
* recordFindings`, the one writer, so a derived row lands in the
|
|
15
|
+
* same write, immediately after the standing it is beside.
|
|
16
|
+
* Emits: N/A — and the writer emits nothing for the row either (the
|
|
17
|
+
* conflict row's precedent; see `ledger.ts · recordFindings`).
|
|
18
|
+
*
|
|
19
|
+
* ## The owner's ask, and the rule that answers it
|
|
20
|
+
*
|
|
21
|
+
* A model rules out an HBA path because an HBA lookup keyed on a storage
|
|
22
|
+
* cluster's name found nothing — and the lookup's own envelope said it never
|
|
23
|
+
* checked whether that name is a host at all. The model's `ruled-out` is its
|
|
24
|
+
* word and stays its word: the library never writes a standing (round 1 of
|
|
25
|
+
* the design re-filed it as `open`, which made the library a second writer
|
|
26
|
+
* of the model's word — docs/design/2026-09-honest-answer-ledger.md § 14,
|
|
27
|
+
* R12). What the library adds is a row BESIDE it:
|
|
28
|
+
*
|
|
29
|
+
* a `ruled-out` standing whose ONLY witness is an absence gets an
|
|
30
|
+
* `unsettled-by-absence` row, keyed to the standing's `toolCallId`,
|
|
31
|
+
* carrying what the envelope says was not checked and its `try_instead`
|
|
32
|
+
* as printed.
|
|
33
|
+
*
|
|
34
|
+
* The fences, because they are the rule's honesty:
|
|
35
|
+
* - TWO FACTS, TWO OWNERS, BOTH REQUIRED. "Did the tool return an absence?"
|
|
36
|
+
* has one owner: the dispatch door (`stages/toolCalls.ts ·
|
|
37
|
+
* declareCoverage`), which reads the value the tool RETURNED through the
|
|
38
|
+
* one recognizer (`coverage/read.ts · readCoverageResult`), delivers the
|
|
39
|
+
* status `'absent'`, emits `tools.absent` and files the call's rows on
|
|
40
|
+
* `AgentState.coverageDeclared`. This rule never re-reads a result to
|
|
41
|
+
* decide that: an envelope a tool returned as TEXT (an MCP server in its
|
|
42
|
+
* default text mode) was no absence at the door (no status, no event, no
|
|
43
|
+
* row), so it is none here either, and the record holds one answer, not
|
|
44
|
+
* two. "Was the model SERVED an absence?" has another owner: the result as
|
|
45
|
+
* the model was served it (`offer.ts · knownResults`, the identity source
|
|
46
|
+
* the standing itself resolved against). The door records the return
|
|
47
|
+
* BEFORE the after-tool chain, the tool's own ceiling and placement act,
|
|
48
|
+
* so an after-tool `deny` ("the model does not get to read this"), a
|
|
49
|
+
* ceiling's refusal, a placement ticket, a summary or an agent cap's cut
|
|
50
|
+
* leave the door's rows saying absence while the model read something
|
|
51
|
+
* else. A ruling-out rests on what the model READ: the row is filed only
|
|
52
|
+
* when both hold, and it never quotes a word the model was not served.
|
|
53
|
+
* - THE ROW'S WORDS ARE WHAT THE MODEL WAS SERVED. The served string's
|
|
54
|
+
* LEADING JSON object — the dispatch loop serves the value's
|
|
55
|
+
* serialization and joins any framework note AFTER it (a step
|
|
56
|
+
* boundary's, a refused effect's, the repeated-call note) — read by the
|
|
57
|
+
* one recognizer, bare or bounded by `coverage()`. `notChecked` /
|
|
58
|
+
* `cannotCover` are that object's lists merged in the recognizer's order
|
|
59
|
+
* (a bounding ledger first, then the absence; repeats dropped), so a
|
|
60
|
+
* scrub the chain applied is honored; `tryInstead` is its absence's
|
|
61
|
+
* `try_instead`, carried byte for byte when it is a non-blank string —
|
|
62
|
+
* never parsed and never read for a tool name (a tool name found inside
|
|
63
|
+
* prose is an inference). Every item is read, never trusted: copied as
|
|
64
|
+
* `{ what, why? }`, and one that names no ground left out — a row the
|
|
65
|
+
* checkpoint door would refuse is never filed. The door's own copies are
|
|
66
|
+
* the witness that the tool returned an absence, and nothing more: they
|
|
67
|
+
* are never quoted.
|
|
68
|
+
* - RULED-OUT ONLY. `open` is already unsettled in the model's own word, and
|
|
69
|
+
* `noise` says the result held nothing worth reading — which an absence
|
|
70
|
+
* is. Only a ruling-out claims more than its witness can hold.
|
|
71
|
+
* - A RECORD OF A CHECK. The row is written once, at the standing's moment,
|
|
72
|
+
* and never recomputed (`types.ts · UnsettledByAbsenceRow`); which rows are
|
|
73
|
+
* CURRENT is the ledger's one fold (`ledger.ts · foldLedger`).
|
|
74
|
+
* - TOTAL. Every reader here takes what other code wrote and refuses a shape
|
|
75
|
+
* it cannot read by filing nothing, never by throwing: a derived row must
|
|
76
|
+
* never fail the run.
|
|
77
|
+
*
|
|
78
|
+
* Not read, and named in the README so nobody reads it as covered: a zero-row
|
|
79
|
+
* array (no door records a zero-row reading of the value a tool returned, and
|
|
80
|
+
* counting the SERVED string would count a text `'[]'` that
|
|
81
|
+
* `integrity/empty-lookup/check.ts · readLookupResult` declines — a second
|
|
82
|
+
* answer), a result whose door rows are not on this run's state — an
|
|
83
|
+
* earlier turn of a continued conversation, or a run before `resumeOnError`
|
|
84
|
+
* (`coverageDeclared` is per run and not on the `AgentRunCheckpoint`) — and
|
|
85
|
+
* the envelope's TYPED suggestion, `try_instead_tool`: the row carries the
|
|
86
|
+
* `try_instead` string alone, because nothing in this release reads a typed
|
|
87
|
+
* tool off the row (the join that would, `source-not-consulted`, is not
|
|
88
|
+
* built).
|
|
89
|
+
*
|
|
90
|
+
* `.findings()` must be armed for any of this to run — both call sites sit
|
|
91
|
+
* inside the ledger's gate — and the door's key is read only for a
|
|
92
|
+
* `ruled-out` standing whose result was SERVED as an absence, so a run whose
|
|
93
|
+
* model rules out no such result records the bytes it always did.
|
|
94
|
+
*/
|
|
95
|
+
import type { DeclaredCoverage } from '../coverage/types.js';
|
|
96
|
+
import type { PreviousResult } from './ledger.js';
|
|
97
|
+
import type { FindingsRow, StandingRow, UnsettledByAbsenceRow } from './types.js';
|
|
98
|
+
/**
|
|
99
|
+
* The rule for ONE standing: the derived row beside it, or nothing. Only a
|
|
100
|
+
* `ruled-out` standing on a result the run identified (the same `known` list
|
|
101
|
+
* `ledger.ts · standingRowsFrom` resolved it against) whose served string
|
|
102
|
+
* reads as an absence AND whose call the door recorded as one (`declared` is
|
|
103
|
+
* `AgentState.coverageDeclared`).
|
|
104
|
+
*/
|
|
105
|
+
export declare function unsettledRowOf(standing: StandingRow, known: readonly PreviousResult[], declared: readonly DeclaredCoverage[]): UnsettledByAbsenceRow | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* The standings in declaration order, each followed immediately by its
|
|
108
|
+
* derived row when the rule files one — what both moments hand to
|
|
109
|
+
* `recordFindings`. The standing rows are the caller's objects, pushed
|
|
110
|
+
* as they are: a batch the rule files nothing beside comes back row for row.
|
|
111
|
+
*
|
|
112
|
+
* `readDeclared` hands over `AgentState.coverageDeclared` and is called at
|
|
113
|
+
* most once, and only for a standing the rule reads (a `ruled-out` on an
|
|
114
|
+
* identified result) whose served result reads as an absence — a pure
|
|
115
|
+
* reading of strings the moment already holds, taken first. A tracked read
|
|
116
|
+
* is visible to every recorder (a narrative line, a `readKeys` entry under
|
|
117
|
+
* `writeProvenance`), so an armed run whose model rules out only results
|
|
118
|
+
* that held something reads nothing it did not read before (the
|
|
119
|
+
* `contingent.ts · hasSetAsideStanding` gate's precedent).
|
|
120
|
+
*/
|
|
121
|
+
export declare function withUnsettledRows(standings: readonly StandingRow[], known: readonly PreviousResult[], readDeclared: () => readonly DeclaredCoverage[]): FindingsRow[];
|
|
122
|
+
//# sourceMappingURL=unsettled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unsettled.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/findings/unsettled.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FG;AAMH,OAAO,KAAK,EAAgB,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AACxF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAUlF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,WAAW,EACrB,KAAK,EAAE,SAAS,cAAc,EAAE,EAChC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,GACpC,qBAAqB,GAAG,SAAS,CAInC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,SAAS,WAAW,EAAE,EACjC,KAAK,EAAE,SAAS,cAAc,EAAE,EAChC,YAAY,EAAE,MAAM,SAAS,gBAAgB,EAAE,GAC9C,WAAW,EAAE,CAaf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callLLM.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/callLLM.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAA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AC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,mBAAmB,EAAE,QAAQ,CAAC;IACzD;;;;;;OAMG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAC7C;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,CAAC;CAC5C;AAaD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,gBAAgB,GACrB,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAmzBlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAehE,OAAO,EAGL,KAAK,yBAAyB,EA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