21 Static compatibility reports
raco mcp diff before.rkt after.rkt and manifest-diff compare published static declarations. Reports are ordered deterministically and include changed and unchanged fields. Removed declarations are breaking-removal; newly required arguments and changed known published resource URIs/templates are breaking-contract-change. Other static changes require review. New declarations are reported as added. Duplicate published identities are errors.
Known resource identities use their URI or URI template, not their display name. Different URIs may share a name; changing a name while retaining the URI requires review rather than reporting a removal. Unmatched resource entries with a unique name on each side are associated for a URI-replacement report only when both surfaces have fully known resource identities and no dynamic mounts. Otherwise known URI additions and removals are reported separately. Unknown resource URIs require review, including unmatched known URIs that an unknown counterpart could retain. Dynamic mounts also prevent definite addition/removal claims for declarations whose counterpart could be supplied by the unresolved mount.
Completion identities combine the target’s kind and published identity with the argument name. Prompt targets use their published name; resource targets resolve lexical references to their published URI/template, including through mounts and URI remappings. Equal display names therefore do not merge distinct resource or prompt completions. A completion targeting a resource excluded by a static view receives the same expansion diagnostic as other references to that resource. Older manifests without resolved resource-completion references require review; display names alone do not establish their identity.
Runtime interface construction resolves resource completion targets by declaration identity. A completion declared outside a mounted view can therefore target that view’s unique transformed resource. Missing and ambiguous identities are errors; an unrelated resource with the same URI does not satisfy the reference. Duplicate target/argument pairs are checked after resolution, both during static composition and by make-interface. make-runtime retains normalized completion targets when given a raw interface descriptor. If the supplied interface is already normalized, its descriptor identity is preserved. The same resolution applies to prompt completions across renamed and nested views. Views retain a private prompt declaration identity while preserving the public five-argument prompt-descriptor constructor. A separately constructed prompt with the same name does not satisfy a reference to the original declaration. Required scopes remain attached to the published target.
Compiler-owned source positions and incidental local-ID renumbering do not affect comparison. Local target IDs resolve to declaration identities before comparison; retargeting and local/external changes require review. Duplicate local IDs and dangling local targets are errors. Resource-reference origins retain their source and binding-provider identities so distinct providers with the same name are not collapsed. Older manifests without provider information cannot establish submodule distinctions. Schema properties named source or line remain application data and still participate in comparison. Ordinary tools and workflow tools share one published identity for comparison.
Every entry states that handler behavior was not compared. An unchanged static manifest does not establish handler equivalence or schema subsumption. Workflow reports identify known incompatible version changes, added/removed workflows, and stage changes requiring review. Identical stage metadata reports not-established-from-manifest; compatible executable code still requires the runtime’s independent version/fingerprint checks.