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
oxa: GitHub App identity + shared GitHub broker for unattended work (own API budget) #38
Owner (2026-11-16): oxa should use a GitHub App (and similar setups) directly, not only a person's token.
Tonight the lab ran 10 agents + loops on the owner's personal token and exhausted its 5,000/h API budget; merging stalled ~40 min. A GitHub App (oxa-agent) now gives the lab loops their own budget via short-lived installation tokens (stopgap script on n0rpan).
Feature
oxa accepts a GitHub identity per role: the owner's token (interactive work), a GitHub App installation (unattended work: runner, lead, reviews), or a fine-grained token. Configured in user settings only; the private key lives in the protected credential store with the same file rules as other secrets; never printed, never in tool output or logs.
Installation tokens are minted from the app key (JWT RS256), cached until ~5 min before expiry, refreshed transparently; scoped to the configured repositories.
A shared GitHub broker in the lead/runner: one fetch per change, fanned out to agents (ETags / If-None-Match, since cursors), per-agent request accounting, and a budget guard that slows pollers before the limit is hit (remaining budget visible in status).
Same shape for similar setups: GitLab/Gitea app or project tokens later.
Done when
The runner and lead run a night of PR work on an App installation with the owner's personal budget untouched, and status shows API budget per identity.
O389 Air receipt: ordinary repository metadata and PR/issue reads/writes now use the existing connected GitHub authorization. Bounded current-head read and comment writes on oxstack/ox-llm#891/#812 succeeded; no key reads/copies, relay, token files or owner-token fallback. Existing 120s CI watcher44056418761 is retained without restart. Numeric budget verification attempted once through connected Fetch: /rate_limit is outside its allowed repository endpoints (INVALID_ARGUMENT); no budget numbers available from this connector. This does not block ordinary repository operations; a connector-supported numeric budget endpoint is the only missing verification operation. Air-to-n0 SSH remains blocked per coordinator; no attempt to bypass it.
O389 resumed through owner-approved /home/oscar/oxa-lab/app-token.py, captured internally for GH_TOKEN with fail-closed handling. Bounded current-head/since-only reads and completion writes succeeded. No owner login, connector identity inference, token output/copy, new broker or duplicated watcher. Previous artifact watcher is terminal0. Existing helper launcher now references the same approved reader; preserved without edits.
N0 manual validation gap for #93: the real oxa work --pr N --model M resolves the trusted gh executable and starts it for PR context; that command has no child-only App credential input analogous to the existing Board token-stdin path. N0 requires App-only access. The A/B cannot use the owner's linked identity or expose GH_TOKEN to the parent oxa process. The exact PR/head also keys durable task state; use independent Git common directories for the two runs so each model gets its own checkpoint and branch. This one-time measurement is local, with no publisher invocation.
Triage 2026-11-19: this issue is now tracked in #151 (Cluster: GitHub identity and credentials for unattended work, priority P0), planned PR 3: "App identity and review requester". It will be fixed there together with its related issues, not one by one.
Activity
n0rpan commentedon Nov 17, 2026
O389 Air receipt: ordinary repository metadata and PR/issue reads/writes now use the existing connected GitHub authorization. Bounded current-head read and comment writes on oxstack/ox-llm#891/#812 succeeded; no key reads/copies, relay, token files or owner-token fallback. Existing 120s CI watcher44056418761 is retained without restart. Numeric budget verification attempted once through connected Fetch: /rate_limit is outside its allowed repository endpoints (INVALID_ARGUMENT); no budget numbers available from this connector. This does not block ordinary repository operations; a connector-supported numeric budget endpoint is the only missing verification operation. Air-to-n0 SSH remains blocked per coordinator; no attempt to bypass it.
oxa-agent commentedon Nov 17, 2026
O389 resumed through owner-approved /home/oscar/oxa-lab/app-token.py, captured internally for GH_TOKEN with fail-closed handling. Bounded current-head/since-only reads and completion writes succeeded. No owner login, connector identity inference, token output/copy, new broker or duplicated watcher. Previous artifact watcher is terminal0. Existing helper launcher now references the same approved reader; preserved without edits.
oxa-agent commentedon Nov 18, 2026
N0 manual validation gap for #93: the real oxa work --pr N --model M resolves the trusted gh executable and starts it for PR context; that command has no child-only App credential input analogous to the existing Board token-stdin path. N0 requires App-only access. The A/B cannot use the owner's linked identity or expose GH_TOKEN to the parent oxa process. The exact PR/head also keys durable task state; use independent Git common directories for the two runs so each model gets its own checkpoint and branch. This one-time measurement is local, with no publisher invocation.
n0rpan commentedon Nov 19, 2026
Triage 2026-11-19: this issue is now tracked in #151 (Cluster: GitHub identity and credentials for unattended work, priority P0), planned PR 3: "App identity and review requester". It will be fixed there together with its related issues, not one by one.