GeezerVison is showing github.com — fleet: orgs registry, App-JWT sync and fleet orgs list (#8884) by dezren39 · Pull Request #14023 · developing-today/code
Conversation
dezren39
commented
Nov 24, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Part of #8884
What
- New crate
pkgs/fleet/crates/fleet-orgs: Turso-backed registry (sync_runs, apps, orgs, installations), idempotent upserts, per-app pruning of installations not seen in a successful run, failed runs recorded as failed with prior rows kept.
- Sync uses each App's JWT against
GET /app and GET /app/installations, following every Link: rel="next". No OAuth org reads.
fleet orgs list table and --json, filters --app (GitHub App slug), --org, --permission NAME[=LEVEL], shows last successful sync time.
- Capability
orgs gated as a full-only feature (fleet feature orgs), domain registered in fleet-registry; docs in docs/verbs.md and doc/fleet/orgs-registry.md.
Verification
cd pkgs/fleet && cargo test --offline -p fleet-orgs -p fleet: all pass (126 unit + offline integration + proptest).
Defaults chosen (no question asked; detached)
- Turso store via HTTP
/v2/pipeline, URL from FLEET_ORGS_TURSO_URL, token from secret turso.fleet-orgs-token.
- App keys:
github-app.developing-today-fleet.private-key (app id 5612056, override FLEET_GH_APP_ID), kaneo.github-app-private-key/kaneo.github-app-id, github-app.backup-private-key/github-app.backup-app-id.
Open / deferred
fleet orgs list must match the hatch-personal registry doc (104 memberships). Not verifiable offline; needs a live sync.
--drift from the original issue body is not implemented; deferred.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T02:31:39Z",
"session_id": "ses_e5df4a0c09bffeoy5vOlMB0I2b",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/queue-21511-8884-fleet-orgs",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/queue-21511-8884-fleet-orgs",
"repo": "developing-today/code",
"branch": "queue/21511-8884-fleet-orgs",
"sha": "d3742fd7cd7d7f054a4464cde8b6bf32a1f31a43"
},
"auth_subject": "oc-code-08",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Issue scope note: this PR completes the implementation slice and its offline test oracle; it does not close #8884. Live 104-membership verification and --drift remain deferred follow-ups, as listed above.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 51 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1b333cd6-79ed-4092-aebc-d5c28985d631
Commits
-
Reviewing files that changed from the base of the PR and between 8b767a0 and d3ccc82.
Files ignored due to path filters: 1
-
pkgs/fleet/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 19
-
pkgs/fleet/Cargo.toml
pkgs/fleet/README.md
pkgs/fleet/crates/fleet-orgs/Cargo.toml
pkgs/fleet/crates/fleet-orgs/src/cli.rs
pkgs/fleet/crates/fleet-orgs/src/github.rs
pkgs/fleet/crates/fleet-orgs/src/jwt.rs
pkgs/fleet/crates/fleet-orgs/src/lib.rs
pkgs/fleet/crates/fleet-orgs/src/link.rs
pkgs/fleet/crates/fleet-orgs/src/list.rs
pkgs/fleet/crates/fleet-orgs/src/schema.rs
pkgs/fleet/crates/fleet-orgs/src/sql.rs
pkgs/fleet/crates/fleet-orgs/src/sync.rs
pkgs/fleet/crates/fleet-orgs/src/turso.rs
pkgs/fleet/crates/fleet-orgs/tests/registry.rs
pkgs/fleet/crates/fleet-registry/src/lib.rs
pkgs/fleet/crates/fleet/Cargo.toml
pkgs/fleet/crates/fleet/src/main.rs
pkgs/fleet/doc/fleet/orgs-registry.md
pkgs/fleet/docs/verbs.md
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Follow-up verification on e9a565a:
cargo test --manifest-path pkgs/fleet/Cargo.toml -p fleet-orgs --offline: passed (16 unit tests, 8 registry integration tests).
cargo run --manifest-path pkgs/fleet/Cargo.toml -p fleet --offline -- orgs --help: passed; help reports the capability included.
cargo build --manifest-path pkgs/fleet/Cargo.toml -p fleet --no-default-features --offline plus fleet orgs list: passed; unavailable capability exits 69.
- Dispatched
cargo test --offline -p fleet-orgs -p fleet through Fleet; run: https://github.com/developing-today-forks/fleet/actions/runs/45314408179.
The App-JWT endpoint fixture now verifies both pages and the Bearer token while matching ureq request targets. Org role and repo_count remain nullable because /app/installations does not provide them; populating them would require the prohibited OAuth org reads.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|