Repository navigation
feat(github): add restricted secondary connections - #6510
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryIncremental review of Files Reviewed (13 files)
What was verified in changed code
Previous Review Summaries (3 snapshots, latest commit 4b0f815)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 4b0f815)Status: No Issues Found | Recommendation: Merge Executive SummaryIncremental review of the test-only commit Files Reviewed (5 files)
Previous review (commit 60de8c0)Status: No Issues Found | Recommendation: Merge Executive SummaryIncremental review of the changes since Files Reviewed (20 files)
Test files were read for expected behavior but not reported on; generated Drizzle snapshots and journals were treated as generated. Verified fixes on current HEAD: the create-intent fingerprint again omits the default workflow purpose ( Previous review (commit c5d023a)Status: 6 Issues Found | Recommendation: Address before merge Executive SummaryThe highest-risk finding is that the new Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (91 files)Reviewed all changed files in PR #6510 against HEAD Explicitly checked and cleared: the Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
Summary
Allow an approved second Kilo organization to use an existing GitHub App installation from Slackbot and browser Cloud Agent without taking over the original connection or disabling its workflows.
workflowandagent_onlyroles on separate owner-scoped connections. Preserve exact connection identity and trusted purpose throughout managed agent sessions and credentials.GITHUB_SHARED_INSTALLATION_ORGANIZATION_IDSallowlist for admission. Already-allowlisted organizations need no additional opt-in or new feature flag.main, retaining its removal of the obsolete per-repository customization editor and regenerating migrations on its latest history.Verification
Visual Changes
Actual screenshots from local synthetic fixtures. Both columns use the current merged build: this compares the original workflow connection with a secondary connection, not two historical builds.
Secondary connection at mobile width
Reviewer Notes
0255_github_connection_roleadds the role column and generated CHECK.0256_github_connection_role_indexesexplicitly commits that DDL before building the unique indexes concurrently, then starts a separate transaction for backfill. This avoids extending the column/CHECK table lock through index builds and backfill. Separate filenames alone would not release it. Real-migrator probes on PG16 and PG18 confirmed the validated CHECK was committed and noAccessExclusiveLockremained at all three checkpoints. The initial CHECK still requires ordinary validation locking; this is not a zero-lock migration.GITHUB_SHARED_INSTALLATION_ORGANIZATION_IDSget secondary admission with this implementation.GITHUB_AGENT_ONLY_CONNECTIONS_ENABLEDwas removed. Existing connection-management, organization authorization, and multiple-installation rules remain unchanged. Deploy the role migrations and all affected web/Worker consumers together, and reconcile unresolved historical groups. No remote configuration change or deployment has been performed.60de8c0e2. Fixes preserve legacy create fingerprints, make bare--reportRolesread-only, validate non-GitHub replay identities, and clarify unknown-role/model-setting UI. The removed preview component stays removed. Missing broker authorization intentionally remains fail-closed, including cached grants; deploy the compatible broker before the consumers rather than bypassing reauthorization. Added regressions cover each disposition.test:allpassed: 7,489 unit tests, 721 Workers-runtime tests, and 1,595 wrapper tests, with three unit skips. The affected web matrix passed 600 tests across 45 suites, with one skip. The earlier PG16 SQL matrix passed 147 tests. Fresh full replays passed all 257 migrations on PG16 and PG18, with valid concurrent indexes and successful lock probes. Scoped typechecks, lint, formatting, and feature-diff whitespace checks passed.maincorrects the previously missing0204fixture reference. The standalone schema suite was rerun and now passes all 59 tests; this branch did not introduce a workaround or suppress that test.main, without rebasing or force-pushing. Consult the current GitHub merge/check status for subsequent base changes. New-head CI runs separately; local results above are not a claim that all GitHub checks have completed successfully.