Compare Source To Bundle
compare_source_to_bundleCompare a committed HistoricalSourceGraph with authenticated JavaScript bundle evidence to classify source files as unchanged, modified, removed, split, merged, duplicated, or unknown.
Instructions
Compare a cryptographically committed HistoricalSourceGraph with authenticated JavaScript Application Graph Evidence supplied inline or by exact same-session retained reference. Uses explicit exact-digest, source-map path, current-path, suffix, and basename signals with stable weights. Classifies unchanged, modified, removed, split, merged, duplicated, and unknown; incomplete coverage and ambiguous weak signals never become absence or forced matches.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"reference": {
"vcs": {
"head": null,
"kind": "none",
"dirty": null
},
"schema": "HistoricalSourceGraph",
"entries": [
{
"kind": "directory",
"path": "src",
"tree_state": "enumerated",
"limitations": [],
"classifications": [
"source"
]
},
{
"kind": "file",
"path": "src/main.ts",
"size": 128,
"sha256": "2222222222222222222222222222222222222222222222222222222222222222",
"language": "TypeScript",
"limitations": [],
"content_state": "hashed",
"classifications": [
"source"
]
}
],
"authority": "historical-reference",
"languages": [
"TypeScript"
],
"manifests": [],
"exclusions": [],
"provenance": {
"caller": "contract-example",
"importer": "rea",
"importer_version": "1"
},
"root_alias": "$REFERENCE_ROOT",
"limitations": [],
"root_sha256": "683969414c3e674a368392213c78021322fb39609b0c57f346b22da6464b2110",
"relationships": [],
"parse_failures": [],
"inventory_state": "complete"
},
"application": {
"kind": "retained-evidence",
"evidence_id": "ev_2a6371cd2a7665bdad6d37d9b3a69da558e9882a0696d195f1f1a7707f14b5e5"
}
},
"name": "compare_source_to_bundle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference | Yes | ||
| application | Yes |