refactor: return complete tool results inline
This commit is contained in:
@@ -33,7 +33,7 @@ const proofEvidence = (id: string) =>
|
||||
|
||||
const processEvidence = () =>
|
||||
createEvidence(undefined, PROCESS_PROVIDER, {
|
||||
predicateType: "rea.process-capture/v4",
|
||||
predicateType: "rea.process-capture",
|
||||
operation: "capture_process_scenario",
|
||||
parameters: {},
|
||||
result: jsonValueSchema.parse(
|
||||
@@ -80,8 +80,7 @@ const request = (
|
||||
): ReconstructionObligationLedgerInput => ({
|
||||
evidence_bundle: createEvidenceBundle(records),
|
||||
reviewed_obligations: [],
|
||||
manifest: { schema_version: 1, bindings: [], contradictions: [] },
|
||||
limits: { max_obligations: 100 },
|
||||
manifest: { bindings: [], contradictions: [] },
|
||||
page: { offset: 0, limit: 50 },
|
||||
...overrides,
|
||||
});
|
||||
@@ -121,7 +120,6 @@ describe("reconstruction obligation ledger", () => {
|
||||
const result = build(
|
||||
request([capture, proof], {
|
||||
manifest: {
|
||||
schema_version: 1,
|
||||
bindings: [
|
||||
{
|
||||
obligation_id: obligation.obligation_id,
|
||||
@@ -224,7 +222,7 @@ describe("reconstruction obligation ledger", () => {
|
||||
const result = build(
|
||||
request([evidence], {
|
||||
reviewed_obligations: reviewed,
|
||||
manifest: { schema_version: 1, bindings, contradictions: [] },
|
||||
manifest: { bindings, contradictions: [] },
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -297,7 +295,6 @@ describe("reconstruction obligation ledger fail-closed behavior", () => {
|
||||
request([original, proof], {
|
||||
reviewed_obligations: [reviewed],
|
||||
manifest: {
|
||||
schema_version: 1,
|
||||
bindings: [binding, binding],
|
||||
contradictions: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user