Gronktayvius
High — src/Forge.Approvals.Cli/SqliteApprovalLedger.cs:40 and :44 and :45. Initialize locks down the directory and only then checks that it is empty. On Windows, SetAccessControl at line 40 installs an owner-only DACL and drops inherited ACEs. On Linux/macOS, File.SetUnixFileMode at line 44 forces mode 0700. The emptiness check is line 45. Directory.CreateDirectory leaves an existing directory in place, so a wrong path that already contains files is mutated and then the method throws, with no restore. Check the reparse-point and emptiness preconditions before any ACL or mode change. Create a new directory with its security descriptor in that create call, and if a post-lock re-check finds entries, fail without having altered some other directory.
High — src/Forge.Approvals.Notify/Notifications.cs:167 and :170. The marker is created with FileMode.CreateNew before WriteByte and Flush. If either write fails, the file is already on disk and the exception escapes. The next NotifyAsync takes the catch (IOException) when (File.Exists(marker)) path and returns without notifying. Publish by writing a temp file, fsyncing it, and renaming it onto the marker path. Delete a marker that was created in this call if the write or flush fails, and treat only a renamed marker as already notified.
Medium — src/Forge.Approvals.Twilio/TwilioProvider.cs:45, src/Forge.Approvals.Twilio/TwilioOptions.cs:18, and src/Forge.Approvals.Core/Models.cs:103. The device text is Kind, then the full canonical target JSON, then ticket, command SHA-256, effect, and label, and it is rejected when message.Length exceeds MaximumMessageCharacters (256). The fixed literals plus the 64-character SHA-256 leave 133 characters for kind, target, ticket, effect, and label. MaximumLabelCharacters is 80 and MaximumEffectCharacters is 32, so a Parse-legal summary and ticket cannot fit, and a long target crowds the command hash toward the end of the viewport. The real Twilio Verify push viewport needs live-doc verification. Reserve space for kind, ticket, and command SHA-256, cap the target text that can appear, and reject in Parse when the resulting device message would exceed 256.
Medium — src/Forge.Approvals.Notify/Notifications.cs:111 and :146. A timeout is still swallowed. log?.Invoke("Email notification timed out.") runs only when a delegate was passed, and the new parameter defaults to null. Existing EmailNotifier constructors therefore still return successfully with no log. Log the timeout on the default path through the same logger the outbox already accepts.
Medium — src/Forge.Approvals.Core/Models.cs:51. IsValid requires CreatedUtc and ExpiresUtc to be whole UTC seconds. The previous Create stored now.ToUniversalTime() with subsecond ticks, and FileRequestStore persists that JSON. Those in-flight requests now fail IsValid, so the gate, verifier, Twilio provider, and ledger all refuse them. Truncate at creation for new rows, and accept an already-stored timestamp by comparing Unix seconds when the rest of IsValid holds.