pub fn duplicate_command_ids(doc: &IntrospectDocument) -> Vec<String>Expand description
Assert that every command_id in doc is unique.
Returns the duplicate ids on failure (one entry per duplicate command_id,
in the order they were first encountered). On success returns an empty vec.
This is the canonical uniqueness check the agent contract relies on; each binary calls it from a unit test to enforce the invariant in CI.