From b57671cb42ed16687d0b0ea8ff43d3643e045aef Mon Sep 17 00:00:00 2001 From: g0at <50488370+g1at@users.noreply.github.com> Date: Sun, 22 Nov 2026 16:30:29 +0800 Subject: [PATCH] feat(evidence): find direct referrers by linked Evidence ID (#11709) * feat(evidence): find direct referrers by linked Evidence ID * docs(evidence): record real APK referrer verification --------- Co-authored-by: gensokyo-dev Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> --- docs/reference/mcp-contracts.md | 23 ++- .../tools/get_evidence_bundle.json | 2 +- src/application/EvidenceBundleCommands.ts | 1 + .../investigation/InspectEvidenceBundle.ts | 3 + src/cli/analysisViewCommands.ts | 4 +- src/contracts/sessionToolContracts.ts | 2 +- src/contracts/sessionToolSchemas.ts | 7 +- src/domain/evidenceRecordSummary.ts | 35 +++- tests/boundary/cli/analysisViewCli.test.ts | 108 ++++++++++++ .../mcp/evidenceLinkInspectionMcp.test.ts | 156 +++++++++++++++++- 10 files changed, 321 insertions(+), 20 deletions(-) diff --git a/docs/reference/mcp-contracts.md b/docs/reference/mcp-contracts.md index 4449d336a2..4e8bd4556f 100644 --- a/docs/reference/mcp-contracts.md +++ b/docs/reference/mcp-contracts.md @@ -568,22 +568,35 @@ To find missing sources before a downstream analysis refuses them, read record payload. `filters` select the starting records, while membership is checked against every record in the session or file, so a filtered-out source is `retained`, not missing. Rows (`evidence_id`, `linked_evidence_id`, `status`) are -in canonical order, default to `link_status: "missing"` and page with `offset` and -`limit` (default 64); `links` counts every inspected link regardless of that -selection. `traversal: "direct"` (the default) reads the selected records' own +in canonical order and page with `offset` and `limit` (default 64). +`linked_evidence_id` optionally selects direct citations to one exact Evidence +ID, including an ID missing from the current session or file. With this selector, +`link_status` defaults to `"all"`; otherwise it defaults to `"missing"`. +`links` counts target-matching links before status filtering or paging. +`traversal: "direct"` (the default) reads the selected records' own links and sets `retained_closure` to null, because it makes no closure claim. `traversal: "retained-closure"` also follows retained links, as composed workflows such as `build_call_path` do, and reports `complete` or `incomplete`; anything -beyond a missing link remains unknown. Missing means absent from this session or +beyond a missing link remains unknown. Closure completeness covers all examined +outgoing links, even when the target selector hides some rows. The target +selector does not change source filters or traverse incoming links transitively. +Missing means absent from this session or file, not nonexistent, and neither status describes analysis coverage. Importing a missing source changes this membership without changing any Evidence ID. +For example, `{"detail":"links","linked_evidence_id":"ev_<64 lowercase hex characters>"}` +returns the retained direct referrers in the current investigation. An optional +`filters.evidence_id` still selects a source record, not the cited target. +No matches means no direct referrers among the examined retained records; it +does not establish absence elsewhere or validate a conclusion. For a portable exported bundle, the CLI shares this projection: `rea inspect-evidence-bundle '{"path":"/tmp/evidence.json","detail":"summary","filters":{"operation":"analyze_function"},"offset":0,"limit":64}' --format json`. Follow `page.next_offset` to discover further matching records without their payloads, or omit both paging fields for the complete summary. `"detail":"records"` with an `evidence_id` filter returns that complete record, -and `"detail":"links"` reads link membership. +and `"detail":"links"` reads link membership. Add `linked_evidence_id` to that +links request to select direct referrers in the file, using the same semantics +as MCP. The target selector is rejected for other detail modes. The CLI validates and materializes that local bundle under its existing memory budget; summary delivery does not make arbitrary large files cheap to import. diff --git a/scripts/verify/advertised-schemas/tools/get_evidence_bundle.json b/scripts/verify/advertised-schemas/tools/get_evidence_bundle.json index 4f67d6fd0a..e8cef5a92e 100644 --- a/scripts/verify/advertised-schemas/tools/get_evidence_bundle.json +++ b/scripts/verify/advertised-schemas/tools/get_evidence_bundle.json @@ -1,6 +1,6 @@ { "schemas": { - "input compact": "a23336a36554f9ba", + "input compact": "8b160f97b4161054", "output compact": "9cda19dfa1310afa" }, "patterns": { diff --git a/src/application/EvidenceBundleCommands.ts b/src/application/EvidenceBundleCommands.ts index 5e9e9fbda4..c5de266339 100644 --- a/src/application/EvidenceBundleCommands.ts +++ b/src/application/EvidenceBundleCommands.ts @@ -266,6 +266,7 @@ export const inspectEvidenceBundleCommand = async ( readonly offset?: number | undefined; readonly limit?: number | undefined; readonly traversal?: "direct" | "retained-closure" | undefined; + readonly linked_evidence_id?: string | undefined; readonly link_status?: "missing" | "retained" | "all" | undefined; }, signal?: AbortSignal, diff --git a/src/application/investigation/InspectEvidenceBundle.ts b/src/application/investigation/InspectEvidenceBundle.ts index db9ac5f1f9..f897e6ffa2 100644 --- a/src/application/investigation/InspectEvidenceBundle.ts +++ b/src/application/investigation/InspectEvidenceBundle.ts @@ -18,6 +18,7 @@ const DELIVERY_FIELDS = [ ["offset", ["summary", "records", "links"]], ["limit", ["summary", "records", "links"]], ["traversal", ["links"]], + ["linked_evidence_id", ["links"]], ["link_status", ["links"]], ] as const; @@ -30,6 +31,7 @@ export const inspectEvidenceBundle = ( readonly offset?: number | undefined; readonly limit?: number | undefined; readonly traversal?: "direct" | "retained-closure" | undefined; + readonly linked_evidence_id?: string | undefined; readonly link_status?: "missing" | "retained" | "all" | undefined; }, ): Result< @@ -85,6 +87,7 @@ export const inspectEvidenceBundle = ( return ok( inspectEvidenceLinks(bundle, options.filters, { traversal: options.traversal, + linkedEvidenceId: options.linked_evidence_id, linkStatus: options.link_status, offset: options.offset, limit: options.limit, diff --git a/src/cli/analysisViewCommands.ts b/src/cli/analysisViewCommands.ts index b188eeb143..24190cef17 100644 --- a/src/cli/analysisViewCommands.ts +++ b/src/cli/analysisViewCommands.ts @@ -36,10 +36,10 @@ export const registerAnalysisViewCommands = ( ): void => { registerCliCommand(cli, CLI_COMMANDS.inspectEvidenceBundle, { description: - "Inspect a local Evidence bundle completely, as optionally paged discovery metadata, as a page of selected complete records, or as direct-link and retained-closure membership.", + "Inspect a local Evidence bundle completely, as optionally paged discovery metadata, as a page of selected complete records, or as direct-link and retained-closure membership and direct referrers.", args: z.object({ inputJson: jsonInputArgument( - "JSON or JSON file with absolute path, detail, optional record filters, summary/records/links offset/limit, and links traversal/link_status", + "JSON or JSON file with absolute path, detail, optional source-record filters, summary/records/links offset/limit, and links traversal/linked_evidence_id/link_status (default all with a linked ID, otherwise missing)", inspectEvidenceBundleCliInputSchema, ), }), diff --git a/src/contracts/sessionToolContracts.ts b/src/contracts/sessionToolContracts.ts index 7ae3a60b9c..420d0e00ad 100644 --- a/src/contracts/sessionToolContracts.ts +++ b/src/contracts/sessionToolContracts.ts @@ -254,7 +254,7 @@ export const SESSION_TOOL_CONTRACTS = [ session( "get_evidence_bundle", toolEffects(), - "Read retained Evidence and tracked questions without rerunning providers. Default complete returns an importable canonical bundle. detail summary lists record metadata; offset or limit pages matches in canonical Evidence ID order with page.next_offset, while omitting both returns every match. Summary matching-record and link counts cover all filtered records. detail records pages complete records with unchanged IDs and missing direct evidence_links, but is not an importable bundle. detail links inspects retained/missing links without payloads; traversal retained-closure follows retained links and defaults to missing rows. Summary/records/links filters accept Evidence ID, operation, target SHA-256, analysis-profile digest or canonical procedure address. Metadata keeps retention distinct from truncated/unavailable source coverage. Use a discovered evidence_id with a compatible inspect_analysis_view to read selected facts.", + "Read retained Evidence and tracked questions without rerunning providers; detail links with linked_evidence_id finds direct referrers, even if the cited ID is missing here. Default complete returns an importable canonical bundle. detail summary lists record metadata; offset or limit pages matches in canonical Evidence ID order with page.next_offset, while omitting both returns every match. Summary matching-record and link counts cover all filtered records. detail records pages complete records with unchanged IDs and missing direct evidence_links, but is not an importable bundle. detail links inspects retained/missing links without payloads; traversal retained-closure follows retained links; link_status defaults to all with linked_evidence_id, otherwise missing. Summary/records/links source filters accept Evidence ID, operation, target SHA-256, analysis-profile digest or canonical procedure address. Metadata keeps retention distinct from truncated/unavailable source coverage. Use a discovered evidence_id with a compatible inspect_analysis_view to read selected facts.", getEvidenceBundleInputSchema, ), { diff --git a/src/contracts/sessionToolSchemas.ts b/src/contracts/sessionToolSchemas.ts index 6df5410f8d..90cffb0ab7 100644 --- a/src/contracts/sessionToolSchemas.ts +++ b/src/contracts/sessionToolSchemas.ts @@ -39,10 +39,15 @@ export const getEvidenceBundleInputSchema = z.strictObject({ .describe( "links only: direct (default) reads the selected records' own links; retained-closure also follows retained links.", ), + linked_evidence_id: prefixedDigestSchema("ev") + .optional() + .describe( + "links only: return direct links to this exact Evidence ID, including when that target is missing here. Source filters and outgoing traversal still select the examined records; this does not follow incoming links transitively.", + ), link_status: evidenceLinkStatusFilterSchema .optional() .describe( - "links only: rows to return, default missing. Counts always cover every inspected link.", + "links only: rows to return, default all with linked_evidence_id, otherwise missing. Counts cover target-matching links before this status filter.", ), }); diff --git a/src/domain/evidenceRecordSummary.ts b/src/domain/evidenceRecordSummary.ts index 130f6f8721..5a707e5118 100644 --- a/src/domain/evidenceRecordSummary.ts +++ b/src/domain/evidenceRecordSummary.ts @@ -318,7 +318,7 @@ export const evidenceLinkTraversalSchema = z.enum([ "direct", "retained-closure", ]); -/** Which inspected links a page returns; counts always cover all of them. */ +/** Which target-matching links a page returns; counts precede this filter. */ export const evidenceLinkStatusFilterSchema = z.enum([ "missing", "retained", @@ -338,6 +338,7 @@ export const evidenceLinkInspectionSchema = z.strictObject({ kind: z.literal("evidence-link-inspection"), filters: z.record(z.string(), z.string()), traversal: evidenceLinkTraversalSchema, + linked_evidence_id: prefixedDigestSchema("ev").exactOptional(), link_status: evidenceLinkStatusFilterSchema, total_retained_records: countSchema, matching_records: countSchema, @@ -350,13 +351,15 @@ export const evidenceLinkInspectionSchema = z.strictObject({ retained: countSchema, missing: countSchema, }) - .describe("Every link read from the examined records, before link_status."), + .describe( + "Every link read from the examined records that matches linked_evidence_id when supplied, before link_status and paging.", + ), // domain-vocabulary: whether every direct evidence_link in the walked subgraph is retained in this bundle, not analysis coverage. retained_closure: z .enum(["complete", "incomplete"]) .nullable() .describe( - "With retained-closure traversal, incomplete means a link could not be followed, so what lies beyond it remains unknown. Null for direct traversal or an empty selection, which make no closure claim.", + "With retained-closure traversal, incomplete means an outgoing link could not be followed, so what lies beyond it remains unknown. This covers every examined link, independently of linked_evidence_id and link_status. Null for direct traversal or an empty selection, which make no closure claim.", ), offset: countSchema, limit: z.int().positive(), @@ -386,12 +389,15 @@ export const inspectEvidenceLinks = ( readonly linkStatus?: | z.infer | undefined; + readonly linkedEvidenceId?: string | undefined; readonly offset?: number | undefined; readonly limit?: number | undefined; } = {}, ): EvidenceLinkInspection => { const traversal = options.traversal ?? "direct"; - const linkStatus = options.linkStatus ?? "missing"; + const linkedEvidenceId = options.linkedEvidenceId; + const linkStatus = + options.linkStatus ?? (linkedEvidenceId === undefined ? "missing" : "all"); // optional-fact-default: a request default for paging, not an observed fact. const offset = options.offset ?? 0; const limit = options.limit ?? EVIDENCE_LINK_INSPECTION_LIMIT; @@ -415,6 +421,7 @@ export const inspectEvidenceLinks = ( } const rows: EvidenceLinkInspection["rows"] = []; const counts = { total: 0, retained: 0, missing: 0 }; + let hasMissingLink = false; let matchingLinks = 0; // Bundle order is canonical, so a page stays stable across requests. for (const evidence of bundle.records) { @@ -422,6 +429,8 @@ export const inspectEvidenceLinks = ( if (!examined.has(id)) continue; for (const link of directLinksOf(evidence)) { const status = retained.has(link) ? "retained" : "missing"; + if (status === "missing") hasMissingLink = true; + if (linkedEvidenceId !== undefined && link !== linkedEvidenceId) continue; counts.total += 1; counts[status] += 1; if (linkStatus !== "all" && linkStatus !== status) continue; @@ -435,6 +444,9 @@ export const inspectEvidenceLinks = ( kind: "evidence-link-inspection", filters: selectedFilters(filters), traversal, + ...(linkedEvidenceId === undefined + ? {} + : { linked_evidence_id: linkedEvidenceId }), link_status: linkStatus, total_retained_records: bundle.records.length, matching_records: matching, @@ -444,14 +456,21 @@ export const inspectEvidenceLinks = ( retained_closure: traversal === "direct" || examined.size === 0 ? null - : counts.missing === 0 - ? "complete" - : "incomplete", + : hasMissingLink + ? "incomplete" + : "complete", offset, limit, matching_links: matchingLinks, next_offset: end < matchingLinks ? end : null, rows, - limitations: [...EVIDENCE_LINK_INSPECTION_LIMITATIONS], + limitations: [ + ...EVIDENCE_LINK_INSPECTION_LIMITATIONS, + ...(linkedEvidenceId === undefined + ? [] + : [ + "Referrers are direct citations from the examined retained records only; zero matches does not establish absence elsewhere or validate a conclusion.", + ]), + ], }; }; diff --git a/tests/boundary/cli/analysisViewCli.test.ts b/tests/boundary/cli/analysisViewCli.test.ts index 320d95b784..717f09116f 100644 --- a/tests/boundary/cli/analysisViewCli.test.ts +++ b/tests/boundary/cli/analysisViewCli.test.ts @@ -939,6 +939,114 @@ cliTest( }, ); +cliTest( + "finds direct Evidence referrers in a portable bundle with source filters and stable pages", + async ({ cli }) => { + const root = await createTestTempDirectory("rea-evidence-referrers-cli-"); + const path = join(root, "evidence.json"); + const target = analysisViewLayoutEvidence(); + const absent = createEvidence( + unknownTarget("not-observed"), + target.provider, + { + operation: "missing_source", + parameters: {}, + result: {}, + }, + ); + const referrers = ["trace_feature", "find_strings"].map((operation) => + createEvidence(unknownTarget("not-observed"), target.provider, { + operation, + parameters: {}, + result: {}, + evidenceLinks: [ + target.evidence_id, + target.evidence_id, + absent.evidence_id, + ], + }), + ); + await writeFile( + path, + JSON.stringify(createEvidenceBundle([target, ...referrers])), + ); + const query = async (options: Record) => { + const response = await cli.run({ + arguments: [ + "inspect-evidence-bundle", + JSON.stringify({ path, detail: "links", ...options }), + "--json", + ], + environment: { + HOME: root, + XDG_CONFIG_HOME: root, + XDG_CACHE_HOME: root, + }, + }); + expect(response.exitCode, response.stderr).toBe(0); + return response.json; + }; + const targetFilter = { linked_evidence_id: target.evidence_id }; + const rows = referrers + .map(({ evidence_id }) => ({ + evidence_id, + linked_evidence_id: target.evidence_id, + status: "retained", + })) + .sort((left, right) => (left.evidence_id < right.evidence_id ? -1 : 1)); + expect(await query(targetFilter)).toMatchObject({ + ...targetFilter, + link_status: "all", + links: { total: 2, retained: 2, missing: 0 }, + rows, + }); + expect(await query({ ...targetFilter, limit: 1 })).toMatchObject({ + matching_links: 2, + next_offset: 1, + rows: rows.slice(0, 1), + }); + expect(await query({ ...targetFilter, limit: 1, offset: 1 })).toMatchObject( + { + matching_links: 2, + next_offset: null, + rows: rows.slice(1), + }, + ); + expect( + await query({ ...targetFilter, filters: { operation: "trace_feature" } }), + ).toMatchObject({ + matching_records: 1, + links: { total: 1 }, + rows: [expect.any(Object)], + }); + expect( + await query({ linked_evidence_id: absent.evidence_id }), + ).toMatchObject({ + links: { total: 2, retained: 0, missing: 2 }, + rows: referrers.map(() => expect.objectContaining({ status: "missing" })), + }); + const invalid = await cli.run({ + arguments: [ + "inspect-evidence-bundle", + JSON.stringify({ path, detail: "summary", ...targetFilter }), + "--json", + ], + }); + expect(invalid.exitCode).toBe(1); + expect(invalid.json).toMatchObject({ + code: "invalid_request", + details: { + issues: [ + expect.objectContaining({ + path: ["linked_evidence_id"], + expected: "detail: links", + }), + ], + }, + }); + }, +); + cliTest( "formats the full caller-admitted native inventory page as Markdown and JSON", async ({ cli }) => { diff --git a/tests/boundary/mcp/evidenceLinkInspectionMcp.test.ts b/tests/boundary/mcp/evidenceLinkInspectionMcp.test.ts index c860892b1d..5fbacd6c9a 100644 --- a/tests/boundary/mcp/evidenceLinkInspectionMcp.test.ts +++ b/tests/boundary/mcp/evidenceLinkInspectionMcp.test.ts @@ -56,7 +56,7 @@ const PARTIAL = [top, middle, leaf, unrelated]; const connect = async ( options: { - readonly profile?: "compact"; + readonly profile?: "off" | "compact"; readonly records?: readonly ReturnType[]; readonly maximumResponseBytes?: number; } = {}, @@ -71,7 +71,7 @@ const connect = async ( serverOptions: { environment: { ...process.env, - REA_MCP_INPUT_SCHEMA_PROFILE: options.profile ?? "compact", + REA_MCP_INPUT_SCHEMA_PROFILE: "compact", REA_MCP_OUTPUT_SCHEMA_PROFILE: options.profile ?? "compact", }, ...(options.maximumResponseBytes === undefined @@ -98,6 +98,14 @@ const connect = async ( const validation = schemaValidation.assertions; expect(validation.validateSchema(inputSchema)).toBe(true); expect(validation.validateSchema(outputSchema)).toBe(true); + if (advertised.outputSchema !== undefined) + expect(validation.validateSchema(advertised.outputSchema)).toBe(true); + expect( + validation.validate(inputSchema, { + detail: "links", + linked_evidence_id: "not-an-evidence-id", + }), + ).toBe(false); const resultOf = async (args: Record) => { expect( validation.validate(inputSchema, args), @@ -105,6 +113,11 @@ const connect = async ( ).toBe(true); const result = await reply(args); expect(result.isError, JSON.stringify(result)).not.toBe(true); + if (advertised.outputSchema !== undefined) + expect( + validation.validate(advertised.outputSchema, result.structuredContent), + JSON.stringify(validation.errors), + ).toBe(true); return z.object({ result: z.unknown() }).parse(result.structuredContent) .result; }; @@ -352,12 +365,151 @@ it("reports the source a composed workflow refuses, and clears it on import", as ); }); +it.each(["off", "compact"] as const)( + "finds direct referrers without changing source selection or closure (%s)", + async (profile) => { + const second = record("find_strings", [leaf.evidence_id, leaf.evidence_id]); + const indirect = record("trace_impact", [top.evidence_id]); + const records = [...PARTIAL, second, indirect]; + const { links, session } = await connect({ profile, records }); + const target = { linked_evidence_id: leaf.evidence_id }; + const rows = [top, second] + .sort((left, right) => (left.evidence_id < right.evidence_id ? -1 : 1)) + .map(({ evidence_id }) => ({ + evidence_id, + linked_evidence_id: leaf.evidence_id, + status: "retained", + })); + expect(await links(target)).toMatchObject({ + ...target, + traversal: "direct", + link_status: "all", + matching_records: records.length, + examined_records: records.length, + links: { total: 2, retained: 2, missing: 0 }, + retained_closure: null, + matching_links: 2, + next_offset: null, + rows, + }); + const first = await links({ ...target, limit: 1 }); + expect(first.rows).toEqual(rows.slice(0, 1)); + expect(first.next_offset).toBe(1); + const last = await links({ ...target, limit: 1, offset: 1 }); + expect(last.rows).toEqual(rows.slice(1)); + expect(last.next_offset).toBeNull(); + expect(last.links).toEqual(first.links); + + // Existing filters still describe source records, not the cited target. + expect(await links({ ...target, ...exactly(top) })).toMatchObject({ + matching_records: 1, + examined_records: 1, + rows: [expect.objectContaining({ evidence_id: top.evidence_id })], + }); + expect(await links({ ...target, ...exactly(leaf) })).toMatchObject({ + matching_records: 1, + links: { total: 0 }, + rows: [], + }); + expect(await links({ ...target, link_status: "missing" })).toMatchObject({ + links: { total: 2, retained: 2, missing: 0 }, + matching_links: 0, + rows: [], + }); + expect( + await links({ linked_evidence_id: source.evidence_id }), + ).toMatchObject({ + links: { total: 1, retained: 0, missing: 1 }, + rows: [ + { + evidence_id: middle.evidence_id, + linked_evidence_id: source.evidence_id, + status: "missing", + }, + ], + }); + expect( + await links({ linked_evidence_id: unrelated.evidence_id }), + ).toMatchObject({ matching_links: 0, rows: [] }); + + // The hidden missing source still prevents an outgoing closure claim. + expect( + await links({ + ...target, + ...exactly(top), + traversal: "retained-closure", + }), + ).toMatchObject({ + matching_records: 1, + examined_records: 3, + links: { total: 1, retained: 1, missing: 0 }, + retained_closure: "incomplete", + rows: [expect.objectContaining({ evidence_id: top.evidence_id })], + }); + expect(session.exportEvidenceBundle()).toEqual( + createEvidenceBundle(records), + ); + }, +); + +it("updates referrer membership after atomic import and leaves no rows after reset", async () => { + const { client, links } = await connect({ records: [middle] }); + const target = { linked_evidence_id: source.evidence_id }; + expect(await links(target)).toMatchObject({ + links: { total: 1, retained: 0, missing: 1 }, + rows: [expect.objectContaining({ status: "missing" })], + }); + const root = await createTestTempDirectory("rea-evidence-referrers-"); + const path = join(root, "sources.json"); + const relocated = createEvidence( + { ...TARGET, path: "/moved/a.macho" }, + GHIDRA, + { + operation: middle.operation, + parameters: middle.parameters, + result: middle.normalized_result, + evidenceLinks: middle.evidence_links, + }, + ); + expect(relocated.evidence_id).toBe(middle.evidence_id); + for (const retained of [middle, middle, relocated]) { + await writeFile( + path, + JSON.stringify(createEvidenceBundle([source, retained])), + ); + const imported = await client.callTool({ + name: "import_evidence_bundle", + arguments: { path }, + }); + expect(imported.isError, JSON.stringify(imported)).not.toBe(true); + expect(await links(target)).toMatchObject({ + total_retained_records: 2, + links: { total: 1, retained: 1, missing: 0 }, + rows: [expect.objectContaining({ status: "retained" })], + }); + } + const reset = await client.callTool({ + name: "reset_investigation", + arguments: {}, + }); + expect(reset.isError, JSON.stringify(reset)).not.toBe(true); + expect(await links(target)).toMatchObject({ + total_retained_records: 0, + matching_records: 0, + links: { total: 0, retained: 0, missing: 0 }, + rows: [], + }); +}); + it("refuses link selections outside link delivery and names a smaller page", async () => { const { reply } = await connect(); for (const [detail, field, value, expected] of [ ["summary", "traversal", "direct", "detail: links"], ["records", "link_status", "all", "detail: links"], ["complete", "traversal", "retained-closure", "detail: links"], + ["summary", "linked_evidence_id", source.evidence_id, "detail: links"], + ["records", "linked_evidence_id", source.evidence_id, "detail: links"], + ["complete", "linked_evidence_id", source.evidence_id, "detail: links"], [ "complete", "offset",