You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f147938
Browse filesBrowse the repository at this point in the historyBrowse files
feat(github): support scoped App installation credentials for project automation (#2316)
Fixes#2311
Add GitHub App installation credentials alongside explicit gh-cli
profiles to the existing project GitHub brokers, Effects and audits. The
host verifies installation/repository/permissions, signs RS256 JWTs,
coalesces short-lived Token refreshes and handles private-key rotation.
Human Owner/Maintainer selection uses the existing v1 service and
durable receipts. Personal comments/reads retain independent user
credentials; no Owner/ambient fallback.
Publication and Release recovery fence identity changes while preserving
candidate/test/Review evidence, repository capability checks and
existing unknown-result reconciliation. Includes memory, architecture,
operator guide, changelog and OpenAPI (29 queries, 34 commands, 186
dispatches).
Dependency #2315 is merged. This PR now targets
delivery/ai-centric-development-service. Head
3ab3a1d only adds the dependency merge
parent; its tree 430d1af exactly equals
the verified implementation d31ae60. No
source content changed.
Validation: full TZ=UTC npm run verify at d31ae60 passed 4783 tests,
zero failures/skips, including six actual DSH runtime cases;
OpenAPI3.1/JSON Schema and canonical source checks passed. Selected
provider/runtime, local Git publication and durable selection/restart
tests passed. Basic remote CI and tests-ok passed at the
dependency-synchronization head (run41754260373). GitHub API responses
and model inference are deterministic fixtures, explicitly separate from
real service/protocol/filesystem/Git execution.
Not run: actual GitHub App installation/write acceptance (requires
separately authorized test App/repository), rollout or independent
Reviewer PASS. No existing services, operator credentials or
control-plane changes.
verified Webhook notifications and native wakeups both lead to the same inbox
16
16
service; private messages stay outside public SSE. [Contract](docs/agent-inbox.md).
17
17
Actual isolated DSH/HTTP and a separate receiver pass with deterministic inference;
18
-
live vendor acceptance and deployment remain separate. #2311is the next credential-provider change.
18
+
live vendor acceptance and deployment remain separate. #2311adds App installation credentials alongside gh-cli, human-only connection selection, and original broker/Effects identity fencing. [Credential contract](docs/github-automation.md); live App acceptance needs authorized test resources.
19
19
20
20
#2300 publishes the source-matched public [OpenAPI contract](docs/openapi/flybot.openapi.json)
21
21
and [third-party Bot guide](docs/third-party-bot-integration.md). Human-issued FBA scope,
Copy file name to clipboardExpand all lines: ROADMAP.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
#2308 adds one native/external inbox protocol, verified Webhook hints, durable
6
6
processing and Chief continuation. Preserve existing personal Chief/group contracts;
7
7
do not turn consultations into Tasks or inbox claims into executor identity.
8
-
Follow with #2311 GitHub App installation credentials alongside gh-cli; no live rollout.
8
+
#2311implements GitHub App credentials alongside gh-cli, scoped human selection and recovery fencing. Deterministic provider/runtime coverage is separate from real App acceptance; no live rollout.
9
9
10
10
#2183 adds scoped agent credentials over the existing member-session HTTP channel,
11
11
reuses per-participation safe/watch grants, and persists Task-origin provenance.
catch{thrownewEffectCancelled('Comment Project authority was revoked')}
32
33
constsettings=personal(actor,effect.projectId)
34
+
if(settings?.credential==='github-app')thrownewEffectCancelled('Personal operations require independent user credentials')
33
35
if(project.repository!==effect.payload.repository||settings?.login?.toLowerCase()!==effect.payload.login.toLowerCase())thrownewEffectCancelled('Comment repository or personal identity changed')
if(attempt?.publicationCredential&&attempt.publicationCredential!==githubCredentialBinding(projectGithubSettings(rt,projectOf(attempt.projectId,attempt)),attempt.requirement.repository??projectOf(attempt.projectId,attempt).repository))thrownewEffectCancelled('Publication GitHub connection changed; reconcile with the original identity')
75
78
if(!attempt||attempt.projectId!==effect.projectId||task?.deliveryAttemptId!==attempt.id||attempt.candidateSha!==effect.payload.candidateSha||['accepted','cancelled'].includes(task.status)||attempt.cancelRequested)thrownewEffectCancelled('Publication candidate was stopped, superseded or ended')
if(binding&&(binding.repository!==project.repository||!Number.isSafeInteger(binding.number)||binding.number<1||typeofbinding.branch!=='string'||!binding.branch||!/^[a-f0-9]{40}$/.test(binding.previousSha)||previous.pr&&previous.pr.sha!==previous.candidateSha))throwreject('Existing delivery PR binding is inconsistent; reconcile before rework')
if(pr.sha!==attempt.candidateSha||attempt.publicationBinding&&(pr.number!==attempt.publicationBinding.number||pr.repository!==attempt.publicationBinding.repository))throwreject('Published PR does not match candidate or existing binding')
583
600
if(attempt.cancelRequested)throwreject('Delivery was stopped')
0 commit comments