fix(artifacts): describe incomplete Interface Builder graphs accurately

graph.truncated is also set for invalid archives, omitted dictionary keys
and fixed decode budgets, not only caller-selected limits, so the view's
unknown now points at coverage and limitations for the cause. The MCP
test requests the summary first and reads its retained pages before any
complete call, covering the flow where complete delivery cannot fit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kaoru0822
2026-10-14 02:40:06 +08:00
committed by morluto
co-authored by Claude Opus 5.5
parent f993d33028
commit da49ea2692
5 changed files with 33 additions and 32 deletions
@@ -132,7 +132,7 @@ describe("Interface Builder analysis views", () => {
items: report().graph.coverage,
source_truncated: true,
unknowns: expect.arrayContaining([
expect.stringContaining("stopped at a caller-selected bound"),
expect.stringContaining("The decoded graph is incomplete"),
]),
});
});
@@ -188,7 +188,7 @@ export const projectInterfaceBuilderView = (
"Rows describe recognized archive objects and connections only; unrecognized classes, fields and runtime-created UI remain unknown.",
...(graph.truncated
? [
"The decoder stopped at a caller-selected bound; page exhaustion does not establish absence of undecoded objects or connections.",
"The decoded graph is incomplete (see coverage and limitations for the cause); page exhaustion does not establish absence of undecoded objects or connections.",
]
: []),
],