* fix(resources): close output handles when pending-file admission fails
Rollback admitted pending files before closing their handles.
An admission failure skipped the close and left the descriptor open.
Close the handles after that failure, keep the unadmitted tree, and report the admission error.
A close failure stays on the admission error as cleanup.
* fix(resources): rethrow a refusal of an unowned output directory
create wrapped a non-empty accepted directory in SafeOutputTreeCreationFailure.
Callers then rolled that tree back, and the cleanup treated the caller's files as an unowned remainder.
Rethrow SafeOutputTreeDestinationRefusal when this call did not create the directory.
* fix(resources): retry pending-file cleanup without a closed handle
Store identity from the exclusive handle before the path check. Rollback closes that handle only after the identity is stored. A later rollback checks the path. A handle with no identity yet stays open.
* fix(resources): retain cleanup for a refused existing output directory
A withheld copy can find a caller file after its directory was planned empty. The refusal keeps the constructed tree so the writer can retry verification. Rollback preserves the root and leaves that file in place.
* fix(resources): report a refused existing directory as input
A file that appears in an accepted directory after planning belongs to the caller. create rethrows that refusal without attaching a tree. writeOutputTree reports an input error for the selected field. A tree this call created still rolls back through SafeOutputTreeCreationFailure.