pub fn verify_binding(
response: &Value,
expected: &Identity,
) -> Result<(), Failure>Expand description
Checks the node returned the binding that was asked for.
This is the step whose absence is silent. Creation is idempotent by design, so a request that reuses an existing workspace answers 200 with a receipt; without comparing identities, a receipt for somebody else’s change reads exactly like success, and the adapter hands an agent a directory bound to a change it may not checkpoint.
§Errors
Returns a Failure when either identity is missing from the
response or differs from the expected one.