agentfootprint 14.8.0 → 14.9.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/CAPABILITIES.md +1 -0
- package/dist/adapters/observability/auditShapes/events/outcomes.js +2 -0
- package/dist/adapters/observability/auditShapes/events/outcomes.js.map +1 -1
- package/dist/core/agent/AgentBuilder.js +31 -36
- package/dist/core/agent/AgentBuilder.js.map +1 -1
- package/dist/core/agent/arguments/dispatch.js +5 -1
- package/dist/core/agent/arguments/dispatch.js.map +1 -1
- package/dist/core/agent/arguments/events.js +42 -0
- package/dist/core/agent/arguments/events.js.map +1 -0
- package/dist/core/agent/arguments/rows.js +13 -3
- package/dist/core/agent/arguments/rows.js.map +1 -1
- package/dist/core/agent/arguments/sourceCorrection.js +85 -0
- package/dist/core/agent/arguments/sourceCorrection.js.map +1 -0
- package/dist/core/agent/arguments/subflow.js +11 -3
- package/dist/core/agent/arguments/subflow.js.map +1 -1
- package/dist/core/agent/assessment/argumentRows.js +50 -0
- package/dist/core/agent/assessment/argumentRows.js.map +1 -0
- package/dist/core/agent/assessment/assess.js +43 -84
- package/dist/core/agent/assessment/assess.js.map +1 -1
- package/dist/core/agent/assessment/recordValues.js +9 -0
- package/dist/core/agent/assessment/recordValues.js.map +1 -0
- package/dist/core/agent/builder/assembly/build.js +13 -4
- package/dist/core/agent/builder/assembly/build.js.map +1 -1
- package/dist/core/agent/builder/honesty/layers.js +4 -0
- package/dist/core/agent/builder/honesty/layers.js.map +1 -1
- package/dist/core/agent/findings/ledger.js +4 -36
- package/dist/core/agent/findings/ledger.js.map +1 -1
- package/dist/core/agent/honesty/armed.js +15 -4
- package/dist/core/agent/honesty/armed.js.map +1 -1
- package/dist/core/agent/honesty/mounts.js +16 -26
- package/dist/core/agent/honesty/mounts.js.map +1 -1
- package/dist/core/agent/honesty/sourceCorpus.js +2 -0
- package/dist/core/agent/honesty/sourceCorpus.js.map +1 -1
- package/dist/core/agent/honesty/sourceInputs.js +29 -0
- package/dist/core/agent/honesty/sourceInputs.js.map +1 -0
- package/dist/core/agent/runValues.js.map +1 -1
- package/dist/core/agent/runtime/catalog/buildCatalog.js +3 -0
- package/dist/core/agent/runtime/catalog/buildCatalog.js.map +1 -1
- package/dist/core/agent/runtime/chart/chartDependencies.js +3 -0
- package/dist/core/agent/runtime/chart/chartDependencies.js.map +1 -1
- package/dist/core/agent/runtime/configuration/configure.js +6 -0
- package/dist/core/agent/runtime/configuration/configure.js.map +1 -1
- package/dist/core/agent/runtime/configuration/values.js.map +1 -1
- package/dist/core/agent/runtime/conversation/checkpointParts.js +42 -1
- package/dist/core/agent/runtime/conversation/checkpointParts.js.map +1 -1
- package/dist/core/agent/runtime/conversation/owner.js +11 -0
- package/dist/core/agent/runtime/conversation/owner.js.map +1 -1
- package/dist/core/agent/runtime/conversation/seedHistory.js +51 -1
- package/dist/core/agent/runtime/conversation/seedHistory.js.map +1 -1
- package/dist/core/agent/runtime/resume/owner.js +5 -0
- package/dist/core/agent/runtime/resume/owner.js.map +1 -1
- package/dist/core/agent/runtime/seed/factory.js +8 -0
- package/dist/core/agent/runtime/seed/factory.js.map +1 -1
- package/dist/core/agent/runtime/toolCalls/factory.js +3 -0
- package/dist/core/agent/runtime/toolCalls/factory.js.map +1 -1
- package/dist/core/agent/runtime/turn/owner.js +2 -1
- package/dist/core/agent/runtime/turn/owner.js.map +1 -1
- package/dist/core/agent/stages/argumentAsk.js +20 -1
- package/dist/core/agent/stages/argumentAsk.js.map +1 -1
- package/dist/core/agent/stages/seed.js +7 -50
- package/dist/core/agent/stages/seed.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/batch/assistantTurn.js +21 -0
- package/dist/core/agent/stages/toolCalls/batch/assistantTurn.js.map +1 -0
- package/dist/core/agent/stages/toolCalls/batch/dispatchContext.js +5 -23
- package/dist/core/agent/stages/toolCalls/batch/dispatchContext.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/batch/execute.js +74 -3
- package/dist/core/agent/stages/toolCalls/batch/execute.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/batch/inputResolutions.js +2 -2
- package/dist/core/agent/stages/toolCalls/batch/inputResolutions.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/batch/refusal.js +51 -1
- package/dist/core/agent/stages/toolCalls/batch/refusal.js.map +1 -1
- package/dist/core/runCheckpoint.js +13 -2
- package/dist/core/runCheckpoint.js.map +1 -1
- package/dist/core/runCheckpointTypes.js +3 -0
- package/dist/core/runCheckpointTypes.js.map +1 -0
- package/dist/esm/adapters/observability/auditShapes/events/outcomes.js +2 -0
- package/dist/esm/adapters/observability/auditShapes/events/outcomes.js.map +1 -1
- package/dist/esm/core/agent/AgentBuilder.d.ts +26 -36
- package/dist/esm/core/agent/AgentBuilder.js +31 -36
- package/dist/esm/core/agent/AgentBuilder.js.map +1 -1
- package/dist/esm/core/agent/arguments/dispatch.d.ts +1 -0
- package/dist/esm/core/agent/arguments/dispatch.js +1 -0
- package/dist/esm/core/agent/arguments/dispatch.js.map +1 -1
- package/dist/esm/core/agent/arguments/events.d.ts +11 -0
- package/dist/esm/core/agent/arguments/events.js +38 -0
- package/dist/esm/core/agent/arguments/events.js.map +1 -0
- package/dist/esm/core/agent/arguments/rows.d.ts +7 -3
- package/dist/esm/core/agent/arguments/rows.js +13 -3
- package/dist/esm/core/agent/arguments/rows.js.map +1 -1
- package/dist/esm/core/agent/arguments/sourceCorrection.d.ts +25 -0
- package/dist/esm/core/agent/arguments/sourceCorrection.js +78 -0
- package/dist/esm/core/agent/arguments/sourceCorrection.js.map +1 -0
- package/dist/esm/core/agent/arguments/sources.d.ts +2 -0
- package/dist/esm/core/agent/arguments/subflow.d.ts +2 -0
- package/dist/esm/core/agent/arguments/subflow.js +11 -3
- package/dist/esm/core/agent/arguments/subflow.js.map +1 -1
- package/dist/esm/core/agent/assessment/argumentRows.d.ts +27 -0
- package/dist/esm/core/agent/assessment/argumentRows.js +46 -0
- package/dist/esm/core/agent/assessment/argumentRows.js.map +1 -0
- package/dist/esm/core/agent/assessment/assess.js +3 -44
- package/dist/esm/core/agent/assessment/assess.js.map +1 -1
- package/dist/esm/core/agent/assessment/recordValues.d.ts +3 -0
- package/dist/esm/core/agent/assessment/recordValues.js +4 -0
- package/dist/esm/core/agent/assessment/recordValues.js.map +1 -0
- package/dist/esm/core/agent/builder/assembly/build.d.ts +1 -0
- package/dist/esm/core/agent/builder/assembly/build.js +13 -4
- package/dist/esm/core/agent/builder/assembly/build.js.map +1 -1
- package/dist/esm/core/agent/builder/honesty/layers.d.ts +3 -3
- package/dist/esm/core/agent/builder/honesty/layers.js +4 -0
- package/dist/esm/core/agent/builder/honesty/layers.js.map +1 -1
- package/dist/esm/core/agent/findings/ledger.js +1 -33
- package/dist/esm/core/agent/findings/ledger.js.map +1 -1
- package/dist/esm/core/agent/honesty/armed.d.ts +6 -2
- package/dist/esm/core/agent/honesty/armed.js +15 -4
- package/dist/esm/core/agent/honesty/armed.js.map +1 -1
- package/dist/esm/core/agent/honesty/inputsMountContract.d.ts +1 -0
- package/dist/esm/core/agent/honesty/mounts.js +15 -25
- package/dist/esm/core/agent/honesty/mounts.js.map +1 -1
- package/dist/esm/core/agent/honesty/sourceCorpus.d.ts +1 -0
- package/dist/esm/core/agent/honesty/sourceCorpus.js +2 -0
- package/dist/esm/core/agent/honesty/sourceCorpus.js.map +1 -1
- package/dist/esm/core/agent/honesty/sourceInputs.d.ts +9 -0
- package/dist/esm/core/agent/honesty/sourceInputs.js +25 -0
- package/dist/esm/core/agent/honesty/sourceInputs.js.map +1 -0
- package/dist/esm/core/agent/runValues.d.ts +2 -1
- package/dist/esm/core/agent/runValues.js.map +1 -1
- package/dist/esm/core/agent/runtime/catalog/buildCatalog.js +3 -0
- package/dist/esm/core/agent/runtime/catalog/buildCatalog.js.map +1 -1
- package/dist/esm/core/agent/runtime/chart/chartDependencies.d.ts +1 -0
- package/dist/esm/core/agent/runtime/chart/chartDependencies.js +3 -0
- package/dist/esm/core/agent/runtime/chart/chartDependencies.js.map +1 -1
- package/dist/esm/core/agent/runtime/configuration/configure.js +6 -0
- package/dist/esm/core/agent/runtime/configuration/configure.js.map +1 -1
- package/dist/esm/core/agent/runtime/configuration/types.d.ts +1 -0
- package/dist/esm/core/agent/runtime/configuration/values.d.ts +1 -0
- package/dist/esm/core/agent/runtime/configuration/values.js.map +1 -1
- package/dist/esm/core/agent/runtime/conversation/checkpointParts.d.ts +3 -1
- package/dist/esm/core/agent/runtime/conversation/checkpointParts.js +40 -0
- package/dist/esm/core/agent/runtime/conversation/checkpointParts.js.map +1 -1
- package/dist/esm/core/agent/runtime/conversation/owner.js +12 -1
- package/dist/esm/core/agent/runtime/conversation/owner.js.map +1 -1
- package/dist/esm/core/agent/runtime/conversation/seedHistory.d.ts +23 -0
- package/dist/esm/core/agent/runtime/conversation/seedHistory.js +49 -0
- package/dist/esm/core/agent/runtime/conversation/seedHistory.js.map +1 -1
- package/dist/esm/core/agent/runtime/resume/owner.js +6 -1
- package/dist/esm/core/agent/runtime/resume/owner.js.map +1 -1
- package/dist/esm/core/agent/runtime/seed/factory.js +8 -0
- package/dist/esm/core/agent/runtime/seed/factory.js.map +1 -1
- package/dist/esm/core/agent/runtime/toolCalls/factory.js +3 -0
- package/dist/esm/core/agent/runtime/toolCalls/factory.js.map +1 -1
- package/dist/esm/core/agent/runtime/turn/owner.js +3 -2
- package/dist/esm/core/agent/runtime/turn/owner.js.map +1 -1
- package/dist/esm/core/agent/stages/argumentAsk.js +20 -1
- package/dist/esm/core/agent/stages/argumentAsk.js.map +1 -1
- package/dist/esm/core/agent/stages/argumentAskDeps.d.ts +7 -1
- package/dist/esm/core/agent/stages/seed.d.ts +3 -1
- package/dist/esm/core/agent/stages/seed.js +7 -50
- package/dist/esm/core/agent/stages/seed.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/batch/assistantTurn.d.ts +6 -0
- package/dist/esm/core/agent/stages/toolCalls/batch/assistantTurn.js +17 -0
- package/dist/esm/core/agent/stages/toolCalls/batch/assistantTurn.js.map +1 -0
- package/dist/esm/core/agent/stages/toolCalls/batch/dispatchContext.js +5 -23
- package/dist/esm/core/agent/stages/toolCalls/batch/dispatchContext.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/batch/execute.js +75 -4
- package/dist/esm/core/agent/stages/toolCalls/batch/execute.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/batch/inputResolutions.d.ts +1 -1
- package/dist/esm/core/agent/stages/toolCalls/batch/inputResolutions.js +2 -2
- package/dist/esm/core/agent/stages/toolCalls/batch/inputResolutions.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/batch/refusal.d.ts +3 -0
- package/dist/esm/core/agent/stages/toolCalls/batch/refusal.js +49 -0
- package/dist/esm/core/agent/stages/toolCalls/batch/refusal.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/contracts/evidence.d.ts +1 -0
- package/dist/esm/core/agent/types/state/honesty.d.ts +4 -0
- package/dist/esm/core/agent/types.d.ts +1 -3
- package/dist/esm/core/runCheckpoint.d.ts +3 -208
- package/dist/esm/core/runCheckpoint.js +14 -3
- package/dist/esm/core/runCheckpoint.js.map +1 -1
- package/dist/esm/core/runCheckpointTypes.d.ts +219 -0
- package/dist/esm/core/runCheckpointTypes.js +2 -0
- package/dist/esm/core/runCheckpointTypes.js.map +1 -0
- package/dist/esm/events/payloads/findings.d.ts +2 -0
- package/dist/esm/recorders/core/typedEmit.d.ts +6 -1
- package/dist/esm/recorders/core/typedEmit.js +9 -2
- package/dist/esm/recorders/core/typedEmit.js.map +1 -1
- package/dist/esm/redaction/knownStrings/fields-0.d.ts +1 -1
- package/dist/esm/redaction/knownStrings/fields-0.js +1 -1
- package/dist/esm/redaction/knownStrings/fields-0.js.map +1 -1
- package/dist/esm/redaction/knownStrings/fields-1.d.ts +1 -1
- package/dist/esm/redaction/knownStrings/fields-1.js +1 -1
- package/dist/esm/redaction/knownStrings/fields-1.js.map +1 -1
- package/dist/esm/redaction/knownStrings/fields-2.d.ts +2 -0
- package/dist/esm/redaction/knownStrings/fields-2.js +2 -0
- package/dist/esm/redaction/knownStrings/fields-2.js.map +1 -1
- package/dist/esm/redaction/knownStrings/words-0.d.ts +1 -1
- package/dist/esm/redaction/knownStrings/words-0.js +1 -1
- package/dist/esm/redaction/knownStrings/words-0.js.map +1 -1
- package/dist/esm/redaction/knownStrings/words-1.d.ts +2 -2
- package/dist/esm/redaction/knownStrings/words-1.js +2 -2
- package/dist/esm/redaction/knownStrings/words-1.js.map +1 -1
- package/dist/esm/redaction/knownStrings/words-2.d.ts +2 -0
- package/dist/esm/redaction/knownStrings/words-2.js +2 -0
- package/dist/esm/redaction/knownStrings/words-2.js.map +1 -1
- package/dist/esm/redaction/runRedaction.d.ts +1 -1
- package/dist/esm/redaction/runRedaction.js +2 -2
- package/dist/esm/redaction/runRedaction.js.map +1 -1
- package/dist/recorders/core/typedEmit.js +9 -2
- package/dist/recorders/core/typedEmit.js.map +1 -1
- package/dist/redaction/knownStrings/fields-0.js +1 -1
- package/dist/redaction/knownStrings/fields-0.js.map +1 -1
- package/dist/redaction/knownStrings/fields-1.js +1 -1
- package/dist/redaction/knownStrings/fields-1.js.map +1 -1
- package/dist/redaction/knownStrings/fields-2.js +2 -0
- package/dist/redaction/knownStrings/fields-2.js.map +1 -1
- package/dist/redaction/knownStrings/words-0.js +1 -1
- package/dist/redaction/knownStrings/words-0.js.map +1 -1
- package/dist/redaction/knownStrings/words-1.js +2 -2
- package/dist/redaction/knownStrings/words-1.js.map +1 -1
- package/dist/redaction/knownStrings/words-2.js +2 -0
- package/dist/redaction/knownStrings/words-2.js.map +1 -1
- package/dist/redaction/runRedaction.js +2 -2
- package/dist/redaction/runRedaction.js.map +1 -1
- package/dist/types/adapters/observability/auditShapes/events/outcomes.d.ts.map +1 -1
- package/dist/types/core/agent/AgentBuilder.d.ts +26 -36
- package/dist/types/core/agent/AgentBuilder.d.ts.map +1 -1
- package/dist/types/core/agent/arguments/dispatch.d.ts +1 -0
- package/dist/types/core/agent/arguments/dispatch.d.ts.map +1 -1
- package/dist/types/core/agent/arguments/events.d.ts +12 -0
- package/dist/types/core/agent/arguments/events.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/rows.d.ts +7 -3
- package/dist/types/core/agent/arguments/rows.d.ts.map +1 -1
- package/dist/types/core/agent/arguments/sourceCorrection.d.ts +26 -0
- package/dist/types/core/agent/arguments/sourceCorrection.d.ts.map +1 -0
- package/dist/types/core/agent/arguments/sources.d.ts +2 -0
- package/dist/types/core/agent/arguments/sources.d.ts.map +1 -1
- package/dist/types/core/agent/arguments/subflow.d.ts +2 -0
- package/dist/types/core/agent/arguments/subflow.d.ts.map +1 -1
- package/dist/types/core/agent/assessment/argumentRows.d.ts +28 -0
- package/dist/types/core/agent/assessment/argumentRows.d.ts.map +1 -0
- package/dist/types/core/agent/assessment/assess.d.ts.map +1 -1
- package/dist/types/core/agent/assessment/recordValues.d.ts +4 -0
- package/dist/types/core/agent/assessment/recordValues.d.ts.map +1 -0
- package/dist/types/core/agent/builder/assembly/build.d.ts +1 -0
- package/dist/types/core/agent/builder/assembly/build.d.ts.map +1 -1
- package/dist/types/core/agent/builder/honesty/layers.d.ts +3 -3
- package/dist/types/core/agent/builder/honesty/layers.d.ts.map +1 -1
- package/dist/types/core/agent/findings/ledger.d.ts.map +1 -1
- package/dist/types/core/agent/honesty/armed.d.ts +6 -2
- package/dist/types/core/agent/honesty/armed.d.ts.map +1 -1
- package/dist/types/core/agent/honesty/inputsMountContract.d.ts +1 -0
- package/dist/types/core/agent/honesty/inputsMountContract.d.ts.map +1 -1
- package/dist/types/core/agent/honesty/mounts.d.ts.map +1 -1
- package/dist/types/core/agent/honesty/sourceCorpus.d.ts +1 -0
- package/dist/types/core/agent/honesty/sourceCorpus.d.ts.map +1 -1
- package/dist/types/core/agent/honesty/sourceInputs.d.ts +10 -0
- package/dist/types/core/agent/honesty/sourceInputs.d.ts.map +1 -0
- package/dist/types/core/agent/runValues.d.ts +2 -1
- package/dist/types/core/agent/runValues.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/catalog/buildCatalog.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/chart/chartDependencies.d.ts +1 -0
- package/dist/types/core/agent/runtime/chart/chartDependencies.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/configuration/configure.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/configuration/types.d.ts +1 -0
- package/dist/types/core/agent/runtime/configuration/types.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/configuration/values.d.ts +1 -0
- package/dist/types/core/agent/runtime/configuration/values.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/conversation/checkpointParts.d.ts +3 -1
- package/dist/types/core/agent/runtime/conversation/checkpointParts.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/conversation/owner.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/conversation/seedHistory.d.ts +23 -0
- package/dist/types/core/agent/runtime/conversation/seedHistory.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/resume/owner.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/seed/factory.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/toolCalls/factory.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/turn/owner.d.ts.map +1 -1
- package/dist/types/core/agent/stages/argumentAsk.d.ts.map +1 -1
- package/dist/types/core/agent/stages/argumentAskDeps.d.ts +7 -1
- package/dist/types/core/agent/stages/argumentAskDeps.d.ts.map +1 -1
- package/dist/types/core/agent/stages/seed.d.ts +3 -1
- package/dist/types/core/agent/stages/seed.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/batch/assistantTurn.d.ts +7 -0
- package/dist/types/core/agent/stages/toolCalls/batch/assistantTurn.d.ts.map +1 -0
- package/dist/types/core/agent/stages/toolCalls/batch/dispatchContext.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/inputResolutions.d.ts +1 -1
- package/dist/types/core/agent/stages/toolCalls/batch/inputResolutions.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/batch/refusal.d.ts +3 -0
- package/dist/types/core/agent/stages/toolCalls/batch/refusal.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/contracts/evidence.d.ts +1 -0
- package/dist/types/core/agent/stages/toolCalls/contracts/evidence.d.ts.map +1 -1
- package/dist/types/core/agent/types/state/honesty.d.ts +4 -0
- package/dist/types/core/agent/types/state/honesty.d.ts.map +1 -1
- package/dist/types/core/agent/types.d.ts +1 -3
- package/dist/types/core/agent/types.d.ts.map +1 -1
- package/dist/types/core/runCheckpoint.d.ts +3 -208
- package/dist/types/core/runCheckpoint.d.ts.map +1 -1
- package/dist/types/core/runCheckpointTypes.d.ts +220 -0
- package/dist/types/core/runCheckpointTypes.d.ts.map +1 -0
- package/dist/types/events/payloads/findings.d.ts +2 -0
- package/dist/types/events/payloads/findings.d.ts.map +1 -1
- package/dist/types/recorders/core/typedEmit.d.ts +6 -1
- package/dist/types/recorders/core/typedEmit.d.ts.map +1 -1
- package/dist/types/redaction/knownStrings/fields-0.d.ts +1 -1
- package/dist/types/redaction/knownStrings/fields-1.d.ts +1 -1
- package/dist/types/redaction/knownStrings/fields-2.d.ts +2 -0
- package/dist/types/redaction/knownStrings/fields-2.d.ts.map +1 -1
- package/dist/types/redaction/knownStrings/words-0.d.ts +1 -1
- package/dist/types/redaction/knownStrings/words-1.d.ts +2 -2
- package/dist/types/redaction/knownStrings/words-2.d.ts +2 -0
- package/dist/types/redaction/knownStrings/words-2.d.ts.map +1 -1
- package/dist/types/redaction/runRedaction.d.ts +1 -1
- package/dist/types/redaction/runRedaction.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { TypedScope } from 'footprintjs';
|
|
2
2
|
import type { AgentState } from '../../../types.js';
|
|
3
3
|
import type { ToolBatchFailure } from '../../toolCallShape.js';
|
|
4
|
+
import type { DispatchCall } from '../contracts/batchCall.js';
|
|
4
5
|
/** Malformed protocol IDs cannot acquire fabricated tool-result correlations. */
|
|
5
6
|
export declare function refuseToolBatch(scope: TypedScope<AgentState>, reason: ToolBatchFailure): void;
|
|
7
|
+
/** Valid IDs keep their genuine correlations; these notices contain no producer bytes. */
|
|
8
|
+
export declare function refuseSourceDeclarationBatch(scope: TypedScope<AgentState>, calls: readonly DispatchCall[], omittedCallIds: ReadonlySet<string>, shownCalls: readonly DispatchCall[]): void;
|
|
6
9
|
//# sourceMappingURL=refusal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refusal.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/agent/stages/toolCalls/batch/refusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"refusal.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/agent/stages/toolCalls/batch/refusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,gBAAgB,GAAG,IAAI,CA6B7F;AAED,0FAA0F;AAC1F,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,EAC7B,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,EACnC,UAAU,EAAE,SAAS,YAAY,EAAE,GAClC,IAAI,CA8CN"}
|
|
@@ -69,6 +69,7 @@ export interface ToolEvidencePort {
|
|
|
69
69
|
* `.inputsLayer()`; every other call runs exactly as it always did.
|
|
70
70
|
*/
|
|
71
71
|
readonly inputsLayer?: true;
|
|
72
|
+
readonly declarationCorrection?: 'once';
|
|
72
73
|
/**
|
|
73
74
|
* DECLARED SOURCES ARE ARMED (honesty layer 2, `.findings({ argumentSources:
|
|
74
75
|
* true })` or `.inputsLayer({ argumentSources: true })`) — present only
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evidence.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/agent/stages/toolCalls/contracts/evidence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,QAAQ,CAAC,iBAAiB,CAA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CAAC,CAAC;IAC/E,mFAAmF;IACnF,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAC1B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,IAAI,EACV,KAAK,CAAC,EAAE,SAAS,KACd,SAAS,gBAAgB,EAAE,GAAG,SAAS,CAAC;IAC7C;;kEAE8D;IAC9D,QAAQ,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IAC3C;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE;QACzB,OAAO,EAAE,OAAO,gDAAgD,EAAE,iBAAiB,GAAG,SAAS,CAAC;KACjG,CAAC;IACF;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE;QACd,QAAQ,CAAC,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,WAAW,GAAG,SAAS,CAAC;QACxE,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC;QAC5B;;;;WAIG;QACH,QAAQ,CAAC,MAAM,CAAC,EAAE;YAChB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;YAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;SAC9C,CAAC;KACH,CAAC;CACH"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export interface HonestyState {
|
|
2
|
+
/** One native protocol correction per human request; never a conversation-derived allowance. */
|
|
3
|
+
sourceDeclarationCorrectionSpent?: true;
|
|
4
|
+
/** Already masked omission observations, pending their actual batch-barrier settlement. */
|
|
5
|
+
argumentSourceOmissionRows?: readonly import('../../arguments/rows.js').ArgumentRow[];
|
|
2
6
|
/**
|
|
3
7
|
* Which honesty layers this run armed — the ONE run constant, written once
|
|
4
8
|
* by seed (`honesty/armed.ts`), absent on a run that armed none. A reader
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"honesty.d.ts","sourceRoot":"","sources":["../../../../../../src/core/agent/types/state/honesty.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;
|
|
1
|
+
{"version":3,"file":"honesty.d.ts","sourceRoot":"","sources":["../../../../../../src/core/agent/types/state/honesty.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,gGAAgG;IAChG,gCAAgC,CAAC,EAAE,IAAI,CAAC;IACxC,2FAA2F;IAC3F,0BAA0B,CAAC,EAAE,SAAS,OAAO,yBAAyB,EAAE,WAAW,EAAE,CAAC;IAEtF;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,wBAAwB,EAAE,aAAa,CAAC;IAC/D;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,OAAO,6BAA6B,EAAE,oBAAoB,CAAC;IAC9E;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;;OAOG;IACH,mBAAmB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACvD;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,SAAS,OAAO,4BAA4B,EAAE,kBAAkB,EAAE,CAAC;IACzF;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,OAAO,wBAAwB,EAAE,gBAAgB,CAAC;IAChE;;;;;;;;;;;;OAYG;IACH,mBAAmB,CAAC,EAAE,SAAS,OAAO,yBAAyB,EAAE,UAAU,EAAE,CAAC;IAC9E;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,UAAU,CAAC;CAC9B"}
|
|
@@ -164,9 +164,7 @@ export interface AgentOptions {
|
|
|
164
164
|
*
|
|
165
165
|
* Prefer the builder's `.inputsLayer()`. Absent → the chart is byte-identical.
|
|
166
166
|
*/
|
|
167
|
-
readonly inputsLayer?: boolean |
|
|
168
|
-
readonly argumentSources?: boolean;
|
|
169
|
-
};
|
|
167
|
+
readonly inputsLayer?: boolean | import('./honesty/armed.js').InputsLayerOptions;
|
|
170
168
|
/**
|
|
171
169
|
* THE RESULTS LAYER (honesty layer 3) — mount `sf-results` at the loop head
|
|
172
170
|
* even when no REGISTERED tool declares a `ToolPeriod`. A registered tool
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EACjB,YAAY,EACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,O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|
*/
|
|
56
|
+
import type { AgentRunCheckpoint, EvidenceRecoveryCheckpoint } from './runCheckpointTypes.js';
|
|
56
57
|
import type { LLMMessage } from '../provider-contract/types.js';
|
|
57
58
|
import type { ReplayPreparation } from '../thinking/replay.js';
|
|
58
59
|
import { type ReplayRetirement } from '../thinking/replayHistory.js';
|
|
@@ -62,213 +63,7 @@ import { type FindingsLedger } from './agent/findings/types.js';
|
|
|
62
63
|
import { type NegativeCheckpoint } from './agent/negativeClaims/checkpoint.js';
|
|
63
64
|
import type { ClaimVerificationState } from './agent/findings/verificationState.js';
|
|
64
65
|
import type { SourceEvidenceIndex } from '../artifacts/sourceEvidence/types.js';
|
|
65
|
-
|
|
66
|
-
* Restored only when retrying the same failed request, never on a new turn. */
|
|
67
|
-
export interface EvidenceRecoveryCheckpoint {
|
|
68
|
-
readonly revisionSpent: true;
|
|
69
|
-
/** Present only when the request carrying this instruction did not complete. */
|
|
70
|
-
readonly pending?: {
|
|
71
|
-
readonly instruction: string;
|
|
72
|
-
/** The figures dial's late line, when the pending revision has one. */
|
|
73
|
-
readonly conclusion?: string;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* JSON-serializable checkpoint of an in-progress agent run. Persist
|
|
78
|
-
* to ANY durable store (Redis / Postgres / S3 / disk / queue) and
|
|
79
|
-
* resume hours / days / deploys later via `agent.resumeOnError(...)`.
|
|
80
|
-
*
|
|
81
|
-
* **Stable shape** — the `version` field guards forward compat. v1
|
|
82
|
-
* → v2 transitions will be supported via a migration helper.
|
|
83
|
-
*/
|
|
84
|
-
export interface AgentRunCheckpoint {
|
|
85
|
-
/** Host-kept native source index. It contains refs only and does not authenticate an imported checkpoint. */
|
|
86
|
-
readonly sourceEvidence?: SourceEvidenceIndex;
|
|
87
|
-
/** Private admitted negative evidence; keep checkpoints on the trusted host. */
|
|
88
|
-
readonly negativeClaimState?: NegativeCheckpoint['negativeClaimState'];
|
|
89
|
-
readonly resultIdentities?: NegativeCheckpoint['resultIdentities'];
|
|
90
|
-
/** Schema version. v1 = conversation-history-based. */
|
|
91
|
-
readonly version: 1;
|
|
92
|
-
/** `runId` of the FAILING run — lets the consumer correlate a
|
|
93
|
-
* persisted checkpoint back to the original run's observability.
|
|
94
|
-
* NOT reused on resume: `resumeOnError` starts a fresh run with a
|
|
95
|
-
* fresh `runId` (only the conversation history is restored). */
|
|
96
|
-
readonly runId: string;
|
|
97
|
-
/** Conversation history at the LAST completed iteration boundary
|
|
98
|
-
* (LLM messages). The next iteration retries from here. */
|
|
99
|
-
readonly history: readonly LLMMessage[];
|
|
100
|
-
/** Index of the last completed iteration in the FAILING run
|
|
101
|
-
* (diagnostic — not consumed on resume). The resumed run restores
|
|
102
|
-
* this history but re-seeds its own iteration counter at 1 with a
|
|
103
|
-
* full `maxIterations` budget. */
|
|
104
|
-
readonly lastCompletedIteration: number;
|
|
105
|
-
/** Original input message. Surfaces in observability + lets the
|
|
106
|
-
* consumer correlate checkpoint to the user's request. */
|
|
107
|
-
readonly originalInput: {
|
|
108
|
-
readonly message: string;
|
|
109
|
-
};
|
|
110
|
-
/** Wall-clock when the checkpoint was captured. Diagnostic only. */
|
|
111
|
-
readonly checkpointedAt: number;
|
|
112
|
-
/**
|
|
113
|
-
* The same request's bounded evidence repair. `resumeOnError` restores this
|
|
114
|
-
* budget and any unsent feedback; `run({ continueFrom })` adds a new human
|
|
115
|
-
* turn and deliberately starts a fresh repair budget. Not conversation text.
|
|
116
|
-
* Absent for checkpoints written before request-scoped recovery.
|
|
117
|
-
*/
|
|
118
|
-
readonly evidenceRecovery?: EvidenceRecoveryCheckpoint;
|
|
119
|
-
/**
|
|
120
|
-
* Every span this conversation folded into a summary, oldest first — what
|
|
121
|
-
* makes a compacted conversation still a provable one after the process
|
|
122
|
-
* that compacted it is gone.
|
|
123
|
-
*
|
|
124
|
-
* Written by `.compaction()`; absent on a conversation that never folded,
|
|
125
|
-
* and absent on one stored by a runtime older than 8.2. Under the default
|
|
126
|
-
* `retain: 'conversation'` each span carries the folded messages verbatim;
|
|
127
|
-
* under `retain: 'discard'` the span is still here, naming what left, and
|
|
128
|
-
* only `messages` is absent.
|
|
129
|
-
*
|
|
130
|
-
* Join a summary in {@link history} to its span with `foldedSpanFor(...)` —
|
|
131
|
-
* by content fingerprint, never by index, because a later fold moves every
|
|
132
|
-
* index after it.
|
|
133
|
-
*
|
|
134
|
-
* **Version 1 still, deliberately.** An optional field is not a format
|
|
135
|
-
* change: a runtime that has never heard of `folded` reads this checkpoint,
|
|
136
|
-
* ignores it, and continues the conversation correctly — the summary is an
|
|
137
|
-
* ordinary message in `history` either way. Bumping the version would make
|
|
138
|
-
* an older deployment REFUSE a session it can serve perfectly well, which is
|
|
139
|
-
* the opposite of what the version field is for.
|
|
140
|
-
*/
|
|
141
|
-
readonly folded?: readonly FoldedSpan[];
|
|
142
|
-
/**
|
|
143
|
-
* The model's standings on its tool results (9.101.0) — the committed
|
|
144
|
-
* `AgentState.findingsLedger`, carried so a continued conversation keeps
|
|
145
|
-
* what the model already called a fact, left open, ruled out or dismissed,
|
|
146
|
-
* instead of re-deriving it from results the store no longer serves whole.
|
|
147
|
-
*
|
|
148
|
-
* Written only when the run's ledger is non-empty; absent on every
|
|
149
|
-
* conversation whose agent never called `.findings()` and on any stored by
|
|
150
|
-
* a runtime older than 9.101.0 — the {@link folded} rule: an optional field
|
|
151
|
-
* is not a format change, and a runtime that has never heard of this key
|
|
152
|
-
* reads the checkpoint, ignores it, and continues correctly. The rows are
|
|
153
|
-
* plain records and arrays only (the shape `recordFindings` writes), so
|
|
154
|
-
* they round-trip through JSON and `structuredClone` unchanged.
|
|
155
|
-
*
|
|
156
|
-
* **Version 1 still**, by the same documented rule as {@link folded} /
|
|
157
|
-
* {@link skillCursor}.
|
|
158
|
-
*/
|
|
159
|
-
readonly findingsLedger?: FindingsLedger;
|
|
160
|
-
/**
|
|
161
|
-
* Private, opt-in exact evidence and reservation counters. Unlike historical
|
|
162
|
-
* observations, this carrier can support later checks. A newest-version
|
|
163
|
-
* continuation must explicitly keep verification enabled, never discard it.
|
|
164
|
-
* Storage ownership/authenticity remains the checkpoint caller's obligation.
|
|
165
|
-
*/
|
|
166
|
-
readonly claimVerification?: ClaimVerificationState;
|
|
167
|
-
/**
|
|
168
|
-
* The conversation TURN the stored history ends on — the stored run's
|
|
169
|
-
* `AgentState.turnNumber` — carried while an honesty layer is armed.
|
|
170
|
-
*
|
|
171
|
-
* Every ledger row filed while a layer is armed carries its `turn`, and the
|
|
172
|
-
* answer's standing reads "this turn" by that stamp, so a stamp must never
|
|
173
|
-
* repeat in one conversation. The count of user messages in `history` cannot
|
|
174
|
-
* promise that: a window strategy or a compaction trims the stored history,
|
|
175
|
-
* and the count repeats and goes backwards — an earlier turn's verdict would
|
|
176
|
-
* then be folded as a later turn's. So the next run starts from this number:
|
|
177
|
-
* `run({ continueFrom })` is the turn after it, `resumeOnError` the same
|
|
178
|
-
* turn again. Written by both carriers (`checkpoint()` and the crash
|
|
179
|
-
* checkpoint), and only while a layer is armed — every other checkpoint
|
|
180
|
-
* keeps its exact byte shape.
|
|
181
|
-
*
|
|
182
|
-
* **Version 1 still**, by the same documented rule as {@link folded} /
|
|
183
|
-
* {@link findingsLedger}: an optional field is not a format change, and a
|
|
184
|
-
* runtime that has never heard of it continues the conversation correctly.
|
|
185
|
-
*/
|
|
186
|
-
readonly turnNumber?: number;
|
|
187
|
-
/**
|
|
188
|
-
* WHO this conversation belongs to — the `identity` the stored run was
|
|
189
|
-
* given, carried so that continuing it lands in the same namespace it
|
|
190
|
-
* started in (9.2.0).
|
|
191
|
-
*
|
|
192
|
-
* Before this field, continuing a conversation re-seeded identity from the
|
|
193
|
-
* resuming run's own id: every continued turn wrote its memory under a
|
|
194
|
-
* FRESH `conversationId`, so turn two's facts were stored somewhere turn
|
|
195
|
-
* three could not read them. Nothing threw, and the only symptom was an
|
|
196
|
-
* agent that kept forgetting — the same class of failure as a store that
|
|
197
|
-
* silently forgot everything looking exactly like a new user.
|
|
198
|
-
*
|
|
199
|
-
* Absent on a conversation stored before 9.2.0, and absent when the run
|
|
200
|
-
* never got an explicit identity (the default is derived from a runId, and
|
|
201
|
-
* carrying THAT forward would pin a whole conversation to one run's id).
|
|
202
|
-
* An explicit `identity` on the continuing call always wins.
|
|
203
|
-
*
|
|
204
|
-
* **Version 1 still**, on the same reasoning as {@link folded}: an optional
|
|
205
|
-
* field is not a format change, and a runtime that has never heard of it
|
|
206
|
-
* continues the conversation correctly.
|
|
207
|
-
*/
|
|
208
|
-
readonly identity?: MemoryIdentity;
|
|
209
|
-
/**
|
|
210
|
-
* WHERE the conversation's skill graph stood when the stored turn ended —
|
|
211
|
-
* the graph cursor, carried so a continued conversation can default its
|
|
212
|
-
* next turn's start to it (SG-C, 9.17.0).
|
|
213
|
-
*
|
|
214
|
-
* Written ONLY when the recording agent's graph declared
|
|
215
|
-
* `continuity: 'conversation'`; under the default `'turn'` the field is
|
|
216
|
-
* never written and the byte shape of every checkpoint is unchanged. On
|
|
217
|
-
* the continuing side it is honored only under the same declaration, and
|
|
218
|
-
* the RouteTurn cascade still judges it against the new message — an
|
|
219
|
-
* inherited cursor is a sticky DEFAULT, not a lock. An id the continuing
|
|
220
|
-
* graph does not know is dropped and recorded
|
|
221
|
-
* (`turn_routed.droppedResume`), never silently parked.
|
|
222
|
-
*
|
|
223
|
-
* **Version 1 still**, by the same documented rule as {@link folded} /
|
|
224
|
-
* {@link identity} / {@link agent}: an optional field is not a format
|
|
225
|
-
* change — an older runtime ignores it and continues correctly.
|
|
226
|
-
*/
|
|
227
|
-
readonly skillCursor?: string;
|
|
228
|
-
/**
|
|
229
|
-
* WHICH agent recorded this conversation — present only when that agent was
|
|
230
|
-
* given an explicit `Agent.create({ id })` (9.2.0).
|
|
231
|
-
*
|
|
232
|
-
* A conversation is a transcript, and a transcript can be replayed on any
|
|
233
|
-
* agent. Usually that is the point: a deploy that adds a tool or edits a
|
|
234
|
-
* prompt must still be able to continue yesterday's conversations, so the
|
|
235
|
-
* runtime cannot refuse on "the agent changed". But replaying the BILLING
|
|
236
|
-
* agent's conversation on the SUPPORT agent is a different mistake, and it
|
|
237
|
-
* used to be accepted in silence.
|
|
238
|
-
*
|
|
239
|
-
* The rule is the one the embedder fingerprint already uses: **ids decide
|
|
240
|
-
* only when BOTH sides named themselves.** A default id (`'agent'`) is not
|
|
241
|
-
* naming yourself, so the majority of callers — who never pass one — are
|
|
242
|
-
* never refused. Two sides that both chose a name and chose different ones
|
|
243
|
-
* are refused, by name.
|
|
244
|
-
*
|
|
245
|
-
* Version 1 still, for the same reason as the two fields above.
|
|
246
|
-
*/
|
|
247
|
-
readonly agent?: {
|
|
248
|
-
readonly id: string;
|
|
249
|
-
};
|
|
250
|
-
/** Where the failure happened. Diagnostic — surfaces in oncall
|
|
251
|
-
* triage so you can tell "LLM 500 mid-iteration" from "tool
|
|
252
|
-
* threw" from "validation kept failing". */
|
|
253
|
-
readonly failurePoint?: {
|
|
254
|
-
readonly iteration: number;
|
|
255
|
-
readonly phase: 'iteration' | 'tool' | 'llm' | 'unknown';
|
|
256
|
-
/**
|
|
257
|
-
* What was OPEN when it threw — `'call-llm'` for the model call, or the
|
|
258
|
-
* declared name of the tool that was running (8.14.0).
|
|
259
|
-
*
|
|
260
|
-
* Absent when nothing was open (a failure between brackets), which is the
|
|
261
|
-
* honest answer rather than a guess.
|
|
262
|
-
*
|
|
263
|
-
* **Never a URL, never a credential, never request or response content.**
|
|
264
|
-
* Only the literal string `'call-llm'` or a tool name the app itself
|
|
265
|
-
* declared. A checkpoint is persisted to Redis / Postgres / S3 and read by
|
|
266
|
-
* whoever is on call; nothing that could carry a secret goes in it. Do not
|
|
267
|
-
* "improve" this field into carrying the endpoint.
|
|
268
|
-
*/
|
|
269
|
-
readonly stage?: string;
|
|
270
|
-
};
|
|
271
|
-
}
|
|
66
|
+
export type { AgentRunCheckpoint, EvidenceRecoveryCheckpoint } from './runCheckpointTypes.js';
|
|
272
67
|
/**
|
|
273
68
|
* Thrown by `agent.run()` when a fault occurs mid-run. Carries the
|
|
274
69
|
* underlying error AND the last-known-good checkpoint. Catch this
|
|
@@ -448,7 +243,7 @@ findingsLedger?: FindingsLedger,
|
|
|
448
243
|
*/
|
|
449
244
|
turnNumber?: number,
|
|
450
245
|
/** Private evidence beside the same committed ledger; absent unless explicitly opted in. */
|
|
451
|
-
claimVerification?: ClaimVerificationState, negativeClaims?: NegativeCheckpoint, sourceEvidence?: SourceEvidenceIndex): AgentRunCheckpoint;
|
|
246
|
+
claimVerification?: ClaimVerificationState, negativeClaims?: NegativeCheckpoint, sourceEvidence?: SourceEvidenceIndex, sourceDeclarationCorrection?: AgentRunCheckpoint['sourceDeclarationCorrection']): AgentRunCheckpoint;
|
|
452
247
|
/**
|
|
453
248
|
* Validate a checkpoint at deserialization time. Catches forward-
|
|
454
249
|
* incompatible payloads (someone tries to resume a v3 checkpoint on
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runCheckpoint.d.ts","sourceRoot":"","sources":["../../../src/core/runCheckpoint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;
|
|
1
|
+
{"version":3,"file":"runCheckpoint.d.ts","sourceRoot":"","sources":["../../../src/core/runCheckpoint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAE9F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK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;;;;GAKG;AACH,UAAU,CAAC,EAAE,MAAM;AACnB,4FAA4F;AAC5F,iBAAiB,CAAC,EAAE,sBAAsB,EAC1C,cAAc,CAAC,EAAE,kBAAkB,EACnC,cAAc,CAAC,EAAE,mBAAmB,EACpC,2BAA2B,CAAC,EAAE,kBAAkB,CAAC,6BAA6B,CAAC,GAC9E,kBAAkB,CAiCpB;AA8JD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,kBAAkB,CAsKrE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,KAAK,GAAG,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAmBzF"}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import type { MemoryIdentity } from '../memory/identity/types.js';
|
|
2
|
+
import type { LLMMessage } from '../provider-contract/types.js';
|
|
3
|
+
import type { FoldedSpan } from './agent/window/types.js';
|
|
4
|
+
import type { FindingsLedger } from './agent/findings/types.js';
|
|
5
|
+
import type { ClaimVerificationState } from './agent/findings/verificationState.js';
|
|
6
|
+
import type { NegativeCheckpoint } from './agent/negativeClaims/checkpoint.js';
|
|
7
|
+
import type { SourceEvidenceIndex } from '../artifacts/sourceEvidence/types.js';
|
|
8
|
+
/** Internal repair state kept separately from the human conversation.
|
|
9
|
+
* Restored only when retrying the same failed request, never on a new turn. */
|
|
10
|
+
export interface EvidenceRecoveryCheckpoint {
|
|
11
|
+
readonly revisionSpent: true;
|
|
12
|
+
/** Present only when the request carrying this instruction did not complete. */
|
|
13
|
+
readonly pending?: {
|
|
14
|
+
readonly instruction: string;
|
|
15
|
+
/** The figures dial's late line, when the pending revision has one. */
|
|
16
|
+
readonly conclusion?: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* JSON-serializable checkpoint of an in-progress agent run. Persist
|
|
21
|
+
* to ANY durable store (Redis / Postgres / S3 / disk / queue) and
|
|
22
|
+
* resume hours / days / deploys later via `agent.resumeOnError(...)`.
|
|
23
|
+
*
|
|
24
|
+
* **Stable shape** — the `version` field guards forward compat. v1
|
|
25
|
+
* → v2 transitions will be supported via a migration helper.
|
|
26
|
+
*/
|
|
27
|
+
export interface AgentRunCheckpoint {
|
|
28
|
+
/** Host-kept native source index. It contains refs only and does not authenticate an imported checkpoint. */
|
|
29
|
+
readonly sourceEvidence?: SourceEvidenceIndex;
|
|
30
|
+
/** Private admitted negative evidence; keep checkpoints on the trusted host. */
|
|
31
|
+
readonly negativeClaimState?: NegativeCheckpoint['negativeClaimState'];
|
|
32
|
+
readonly resultIdentities?: NegativeCheckpoint['resultIdentities'];
|
|
33
|
+
/** Schema version. v1 = conversation-history-based. */
|
|
34
|
+
readonly version: 1;
|
|
35
|
+
/** `runId` of the FAILING run — lets the consumer correlate a
|
|
36
|
+
* persisted checkpoint back to the original run's observability.
|
|
37
|
+
* NOT reused on resume: `resumeOnError` starts a fresh run with a
|
|
38
|
+
* fresh `runId` (only the conversation history is restored). */
|
|
39
|
+
readonly runId: string;
|
|
40
|
+
/** Conversation history at the LAST completed iteration boundary
|
|
41
|
+
* (LLM messages). The next iteration retries from here. */
|
|
42
|
+
readonly history: readonly LLMMessage[];
|
|
43
|
+
/** Index of the last completed iteration in the FAILING run
|
|
44
|
+
* (diagnostic — not consumed on resume). The resumed run restores
|
|
45
|
+
* this history but re-seeds its own iteration counter at 1 with a
|
|
46
|
+
* full `maxIterations` budget. */
|
|
47
|
+
readonly lastCompletedIteration: number;
|
|
48
|
+
/** Original input message. Surfaces in observability + lets the
|
|
49
|
+
* consumer correlate checkpoint to the user's request. */
|
|
50
|
+
readonly originalInput: {
|
|
51
|
+
readonly message: string;
|
|
52
|
+
};
|
|
53
|
+
/** Wall-clock when the checkpoint was captured. Diagnostic only. */
|
|
54
|
+
readonly checkpointedAt: number;
|
|
55
|
+
/**
|
|
56
|
+
* The same request's bounded evidence repair. `resumeOnError` restores this
|
|
57
|
+
* budget and any unsent feedback; `run({ continueFrom })` adds a new human
|
|
58
|
+
* turn and deliberately starts a fresh repair budget. Not conversation text.
|
|
59
|
+
* Absent for checkpoints written before request-scoped recovery.
|
|
60
|
+
*/
|
|
61
|
+
readonly evidenceRecovery?: EvidenceRecoveryCheckpoint;
|
|
62
|
+
/** One source-declaration correction was spent on this request. Same-request
|
|
63
|
+
* recovery retains it; a new human turn resets it. Contains no source values. */
|
|
64
|
+
readonly sourceDeclarationCorrection?: {
|
|
65
|
+
readonly spent: true;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Every span this conversation folded into a summary, oldest first — what
|
|
69
|
+
* makes a compacted conversation still a provable one after the process
|
|
70
|
+
* that compacted it is gone.
|
|
71
|
+
*
|
|
72
|
+
* Written by `.compaction()`; absent on a conversation that never folded,
|
|
73
|
+
* and absent on one stored by a runtime older than 8.2. Under the default
|
|
74
|
+
* `retain: 'conversation'` each span carries the folded messages verbatim;
|
|
75
|
+
* under `retain: 'discard'` the span is still here, naming what left, and
|
|
76
|
+
* only `messages` is absent.
|
|
77
|
+
*
|
|
78
|
+
* Join a summary in {@link history} to its span with `foldedSpanFor(...)` —
|
|
79
|
+
* by content fingerprint, never by index, because a later fold moves every
|
|
80
|
+
* index after it.
|
|
81
|
+
*
|
|
82
|
+
* **Version 1 still, deliberately.** An optional field is not a format
|
|
83
|
+
* change: a runtime that has never heard of `folded` reads this checkpoint,
|
|
84
|
+
* ignores it, and continues the conversation correctly — the summary is an
|
|
85
|
+
* ordinary message in `history` either way. Bumping the version would make
|
|
86
|
+
* an older deployment REFUSE a session it can serve perfectly well, which is
|
|
87
|
+
* the opposite of what the version field is for.
|
|
88
|
+
*/
|
|
89
|
+
readonly folded?: readonly FoldedSpan[];
|
|
90
|
+
/**
|
|
91
|
+
* The model's standings on its tool results (9.101.0) — the committed
|
|
92
|
+
* `AgentState.findingsLedger`, carried so a continued conversation keeps
|
|
93
|
+
* what the model already called a fact, left open, ruled out or dismissed,
|
|
94
|
+
* instead of re-deriving it from results the store no longer serves whole.
|
|
95
|
+
*
|
|
96
|
+
* Written only when the run's ledger is non-empty; absent on every
|
|
97
|
+
* conversation whose agent never called `.findings()` and on any stored by
|
|
98
|
+
* a runtime older than 9.101.0 — the {@link folded} rule: an optional field
|
|
99
|
+
* is not a format change, and a runtime that has never heard of this key
|
|
100
|
+
* reads the checkpoint, ignores it, and continues correctly. The rows are
|
|
101
|
+
* plain records and arrays only (the shape `recordFindings` writes), so
|
|
102
|
+
* they round-trip through JSON and `structuredClone` unchanged.
|
|
103
|
+
*
|
|
104
|
+
* **Version 1 still**, by the same documented rule as {@link folded} /
|
|
105
|
+
* {@link skillCursor}.
|
|
106
|
+
*/
|
|
107
|
+
readonly findingsLedger?: FindingsLedger;
|
|
108
|
+
/**
|
|
109
|
+
* Private, opt-in exact evidence and reservation counters. Unlike historical
|
|
110
|
+
* observations, this carrier can support later checks. A newest-version
|
|
111
|
+
* continuation must explicitly keep verification enabled, never discard it.
|
|
112
|
+
* Storage ownership/authenticity remains the checkpoint caller's obligation.
|
|
113
|
+
*/
|
|
114
|
+
readonly claimVerification?: ClaimVerificationState;
|
|
115
|
+
/**
|
|
116
|
+
* The conversation TURN the stored history ends on — the stored run's
|
|
117
|
+
* `AgentState.turnNumber` — carried while an honesty layer is armed.
|
|
118
|
+
*
|
|
119
|
+
* Every ledger row filed while a layer is armed carries its `turn`, and the
|
|
120
|
+
* answer's standing reads "this turn" by that stamp, so a stamp must never
|
|
121
|
+
* repeat in one conversation. The count of user messages in `history` cannot
|
|
122
|
+
* promise that: a window strategy or a compaction trims the stored history,
|
|
123
|
+
* and the count repeats and goes backwards — an earlier turn's verdict would
|
|
124
|
+
* then be folded as a later turn's. So the next run starts from this number:
|
|
125
|
+
* `run({ continueFrom })` is the turn after it, `resumeOnError` the same
|
|
126
|
+
* turn again. Written by both carriers (`checkpoint()` and the crash
|
|
127
|
+
* checkpoint), and only while a layer is armed — every other checkpoint
|
|
128
|
+
* keeps its exact byte shape.
|
|
129
|
+
*
|
|
130
|
+
* **Version 1 still**, by the same documented rule as {@link folded} /
|
|
131
|
+
* {@link findingsLedger}: an optional field is not a format change, and a
|
|
132
|
+
* runtime that has never heard of it continues the conversation correctly.
|
|
133
|
+
*/
|
|
134
|
+
readonly turnNumber?: number;
|
|
135
|
+
/**
|
|
136
|
+
* WHO this conversation belongs to — the `identity` the stored run was
|
|
137
|
+
* given, carried so that continuing it lands in the same namespace it
|
|
138
|
+
* started in (9.2.0).
|
|
139
|
+
*
|
|
140
|
+
* Before this field, continuing a conversation re-seeded identity from the
|
|
141
|
+
* resuming run's own id: every continued turn wrote its memory under a
|
|
142
|
+
* FRESH `conversationId`, so turn two's facts were stored somewhere turn
|
|
143
|
+
* three could not read them. Nothing threw, and the only symptom was an
|
|
144
|
+
* agent that kept forgetting — the same class of failure as a store that
|
|
145
|
+
* silently forgot everything looking exactly like a new user.
|
|
146
|
+
*
|
|
147
|
+
* Absent on a conversation stored before 9.2.0, and absent when the run
|
|
148
|
+
* never got an explicit identity (the default is derived from a runId, and
|
|
149
|
+
* carrying THAT forward would pin a whole conversation to one run's id).
|
|
150
|
+
* An explicit `identity` on the continuing call always wins.
|
|
151
|
+
*
|
|
152
|
+
* **Version 1 still**, on the same reasoning as {@link folded}: an optional
|
|
153
|
+
* field is not a format change, and a runtime that has never heard of it
|
|
154
|
+
* continues the conversation correctly.
|
|
155
|
+
*/
|
|
156
|
+
readonly identity?: MemoryIdentity;
|
|
157
|
+
/**
|
|
158
|
+
* WHERE the conversation's skill graph stood when the stored turn ended —
|
|
159
|
+
* the graph cursor, carried so a continued conversation can default its
|
|
160
|
+
* next turn's start to it (SG-C, 9.17.0).
|
|
161
|
+
*
|
|
162
|
+
* Written ONLY when the recording agent's graph declared
|
|
163
|
+
* `continuity: 'conversation'`; under the default `'turn'` the field is
|
|
164
|
+
* never written and the byte shape of every checkpoint is unchanged. On
|
|
165
|
+
* the continuing side it is honored only under the same declaration, and
|
|
166
|
+
* the RouteTurn cascade still judges it against the new message — an
|
|
167
|
+
* inherited cursor is a sticky DEFAULT, not a lock. An id the continuing
|
|
168
|
+
* graph does not know is dropped and recorded
|
|
169
|
+
* (`turn_routed.droppedResume`), never silently parked.
|
|
170
|
+
*
|
|
171
|
+
* **Version 1 still**, by the same documented rule as {@link folded} /
|
|
172
|
+
* {@link identity} / {@link agent}: an optional field is not a format
|
|
173
|
+
* change — an older runtime ignores it and continues correctly.
|
|
174
|
+
*/
|
|
175
|
+
readonly skillCursor?: string;
|
|
176
|
+
/**
|
|
177
|
+
* WHICH agent recorded this conversation — present only when that agent was
|
|
178
|
+
* given an explicit `Agent.create({ id })` (9.2.0).
|
|
179
|
+
*
|
|
180
|
+
* A conversation is a transcript, and a transcript can be replayed on any
|
|
181
|
+
* agent. Usually that is the point: a deploy that adds a tool or edits a
|
|
182
|
+
* prompt must still be able to continue yesterday's conversations, so the
|
|
183
|
+
* runtime cannot refuse on "the agent changed". But replaying the BILLING
|
|
184
|
+
* agent's conversation on the SUPPORT agent is a different mistake, and it
|
|
185
|
+
* used to be accepted in silence.
|
|
186
|
+
*
|
|
187
|
+
* The rule is the one the embedder fingerprint already uses: **ids decide
|
|
188
|
+
* only when BOTH sides named themselves.** A default id (`'agent'`) is not
|
|
189
|
+
* naming yourself, so the majority of callers — who never pass one — are
|
|
190
|
+
* never refused. Two sides that both chose a name and chose different ones
|
|
191
|
+
* are refused, by name.
|
|
192
|
+
*
|
|
193
|
+
* Version 1 still, for the same reason as the two fields above.
|
|
194
|
+
*/
|
|
195
|
+
readonly agent?: {
|
|
196
|
+
readonly id: string;
|
|
197
|
+
};
|
|
198
|
+
/** Where the failure happened. Diagnostic — surfaces in oncall
|
|
199
|
+
* triage so you can tell "LLM 500 mid-iteration" from "tool
|
|
200
|
+
* threw" from "validation kept failing". */
|
|
201
|
+
readonly failurePoint?: {
|
|
202
|
+
readonly iteration: number;
|
|
203
|
+
readonly phase: 'iteration' | 'tool' | 'llm' | 'unknown';
|
|
204
|
+
/**
|
|
205
|
+
* What was OPEN when it threw — `'call-llm'` for the model call, or the
|
|
206
|
+
* declared name of the tool that was running (8.14.0).
|
|
207
|
+
*
|
|
208
|
+
* Absent when nothing was open (a failure between brackets), which is the
|
|
209
|
+
* honest answer rather than a guess.
|
|
210
|
+
*
|
|
211
|
+
* **Never a URL, never a credential, never request or response content.**
|
|
212
|
+
* Only the literal string `'call-llm'` or a tool name the app itself
|
|
213
|
+
* declared. A checkpoint is persisted to Redis / Postgres / S3 and read by
|
|
214
|
+
* whoever is on call; nothing that could carry a secret goes in it. Do not
|
|
215
|
+
* "improve" this field into carrying the endpoint.
|
|
216
|
+
*/
|
|
217
|
+
readonly stage?: string;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
//# sourceMappingURL=runCheckpointTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runCheckpointTypes.d.ts","sourceRoot":"","sources":["../../../src/core/runCheckpointTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEhF;+EAC+E;AAC/E,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAC;IAC7B,gFAAgF;IAChF,QAAQ,CAAC,OAAO,CAAC,EAAE;QACjB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAC7B,uEAAuE;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AAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAC;IACnC;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC;;iDAE6C;IAC7C,QAAQ,CAAC,YAAY,CAAC,EAAE;QACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;QACzD;;;;;;;;;;;;WAYG;QACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACH"}
|
|
@@ -164,6 +164,8 @@ export interface FindingsArgumentPayload {
|
|
|
164
164
|
readonly source?: ArgumentSource;
|
|
165
165
|
readonly asked?: ArgumentAsked;
|
|
166
166
|
readonly claimed?: ArgumentClaim;
|
|
167
|
+
readonly correction?: 'source-declaration-required';
|
|
168
|
+
readonly withheld?: 'batch-preempted';
|
|
167
169
|
readonly matched?: 'quote' | 'phrase' | 'spelling' | 'mention';
|
|
168
170
|
readonly reading?: true;
|
|
169
171
|
readonly earlier?: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findings.d.ts","sourceRoot":"","sources":["../../../../src/events/payloads/findings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,KAAK,EACL,MAAM,EACN,QAAQ,EACT,MAAM,sBAAsB,CAAC;AAG9B;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC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|
|
@@ -26,6 +26,11 @@ export interface EmitableScope {
|
|
|
26
26
|
* the same served payload (`src/redaction/runRedaction.ts` · `emitServed`).
|
|
27
27
|
* With no policy the payload passes through as it is.
|
|
28
28
|
*
|
|
29
|
+
* Internal writers may supply a same-event `servedPayload` for an actual tool's
|
|
30
|
+
* shown view. Private computation and the live-reply relay still receive the
|
|
31
|
+
* original payload; only the native record branch receives that view, then the
|
|
32
|
+
* caller policy. Both payloads must be detached plain data.
|
|
33
|
+
*
|
|
29
34
|
* @example
|
|
30
35
|
* typedEmit(scope, 'agentfootprint.stream.llm_start', {
|
|
31
36
|
* iteration: 1,
|
|
@@ -36,5 +41,5 @@ export interface EmitableScope {
|
|
|
36
41
|
* toolsCount: 0,
|
|
37
42
|
* });
|
|
38
43
|
*/
|
|
39
|
-
export declare function typedEmit<K extends AgentfootprintEventType>(scope: EmitableScope, type: K, payload: AgentfootprintEventMap[K]['payload']): void;
|
|
44
|
+
export declare function typedEmit<K extends AgentfootprintEventType>(scope: EmitableScope, type: K, payload: AgentfootprintEventMap[K]['payload'], servedPayload?: AgentfootprintEventMap[K]['payload']): void;
|
|
40
45
|
//# sourceMappingURL=typedEmit.d.ts.map
|