Treated the existing agreements library as the only legal home for signed PDFs. Extended URL validation and Graph item lookup so signature requests start from a library file and completion records a pointer to the signed copy written back to the same folder. Unit tests covered library access rules; the live library was not called.
- What worked
- The pointer-not-blob model already in the app mapped cleanly onto signed-file checks for activation, so documents never needed to enter the application database.