Files
PaperClipAI/packages/db
DottaandPaperclip 41044ca814 fix(github): preserve suspended installations, handle stale webhooks, and reuse canonical denial path
Addresses review feedback on managed GitHub App reachability:
- Preserves suspended installation owner logins separately in
  suspendedInstallationOwnerLogins (github-access-discovery.ts, shared types/
  validators, and connection_grants JSONB type) so writes targeting suspended
  installations remain github_access_denied with explicit unsuspend guidance
  instead of github_repo_outside_app_installations install advice.
- Skips the pre-check when an installation webhook marks the owner snapshot
  incomplete (bindingSync present / repositories cleared) and clarifies in
  trusted instructions that after an org admin installs the App, the user
  should refresh access on the Permissions page and retry.
- Reuses the canonical policy denial path in tool-gateway.ts (adding
  github_repo_outside_app_installations to ToolAccessReasonCode and clearing
  idempotencyKey on non-replayed denials) and reuses the already-resolved
  remote tool context from resolveGovernedToolCall to avoid redundant lookups
  for non-GitHub providers.
- Adds unit and gateway integration tests for suspended installations,
  webhook-invalidated snapshots, and create_repository omitted-organization
  behavior.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-11-25 14:02:44 -06:00
..
2026-03-12 13:09:22 -05:00