feat(application): wire Android and Apple inventory graph tools (#852)

* feat(application): wire Android and Apple inventory graph tools

Expose project_android_application_graph and project_apple_application_graph
through CLI and MCP so authenticated inventory Evidence can be projected
without a provider launch.

* fix(application): use producer root occurrence IDs in graph examples

Catalog examples constructed root occurrence IDs from artifact_id +
logical_path, but inventory validation authenticates "." with
{ root: root_artifact_id }. Align the examples and regenerate catalogs
after rebasing onto main (application family count 11).

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
morluto
2026-10-07 13:34:48 +08:00
committed by GitHub
co-authored by Cursor Agent
parent da0970672d
commit e0fd8207a1
24 changed files with 501 additions and 35 deletions
@@ -18,6 +18,8 @@ const JSON_COMMANDS = [
"build-reconstruction-obligation-ledger",
],
["evaluate-reconstruction-coverage", "evaluate-reconstruction-coverage"],
["project-android-application-graph", "project-android-application-graph"],
["project-apple-application-graph", "project-apple-application-graph"],
["import-managed-reconstruction", "import-managed-reconstruction"],
["verify-managed-native-boundaries", "verify-managed-native-boundaries"],
["project-managed-application-graph", "project-managed-application-graph"],
+12
View File
@@ -8,6 +8,8 @@ import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js";
import { SUPPORTED_CLIENT_DEFINITIONS } from "../../../src/application/SupportedClients.js";
import {
ANDROID_APPLICATION_PROVIDER,
APPLE_APPLICATION_PROVIDER,
ARTIFACT_GRAPH_PROVIDER,
JAVASCRIPT_APPLICATION_PROVIDER,
JAVASCRIPT_APPLICATION_WORKFLOW_PROVIDER,
@@ -108,6 +110,8 @@ describe("canonical product catalog", () => {
IDA_PROVIDER_IDENTITY,
NATIVE_MACOS_PROVIDER_IDENTITY,
ARTIFACT_GRAPH_PROVIDER,
ANDROID_APPLICATION_PROVIDER,
APPLE_APPLICATION_PROVIDER,
MANAGED_STATIC_PROVIDER,
MANAGED_WORKFLOW_PROVIDER,
CDP_BROWSER_PROVIDER_IDENTITY,
@@ -164,6 +168,14 @@ describe("canonical product catalog", () => {
"trace_application_feature",
"trace_javascript_semantics",
]);
expect(
catalog.providers.find(({ id }) => id === ANDROID_APPLICATION_PROVIDER.id)
?.capabilities,
).toEqual(["project_android_application_graph"]);
expect(
catalog.providers.find(({ id }) => id === APPLE_APPLICATION_PROVIDER.id)
?.capabilities,
).toEqual(["project_apple_application_graph"]);
expect(
catalog.providers.find(({ id }) => id === MANAGED_WORKFLOW_PROVIDER.id)
?.capabilities,