Repository navigation
Description
Problem Statement
ADR 0002 requires every roadmap job change to be made as the machine account, so a process must have exactly one GitHub identity. Today the token is found five ways, in different orders (all evidence checked at HEAD 9c879ae, branch release/v0.2.25):
get_github_token(config/settings.py:977-989, with_github_cli_tokenat:982): keyring, thenDEVOPS_CLI_GITHUB_TOKENandGITHUB_TOKEN, then config, thengh auth token. The registry entry is atsecurity/secrets.py:418and the provider order at:338-341. Its callers arecommands/ssh.py:168and:294,commands/repos.py:54,commands/review.py:730andcommands/analyze.py:482._resolve_github_token(commands/gh.py:131-146): three keyring names (github.token,github_token,github), thenDEVOPS_CLI_GITHUB_TOKEN,GITHUB_TOKENandGH_TOKEN, thengh auth token.resolve_github_token(github/graphql.py:640-654): environment, thengh auth token. It never reads the keyring._gh_auth_token(commands/config.py:77-92):gh auth tokenonly.config initoffers to copy that token into the keyring (:233-239) or prompts for a PAT (:247-253)._inject_gh_credentials(core/process.py:206-215, called by the sync runner at:248and the async runner at:389) gives each gh subprocessGH_TOKEN,GITHUB_TOKENorDEVOPS_CLI_GITHUB_TOKENfrom the environment. It never passes the keyring token, so gh falls back to its own stored login. git subprocesses get no token at all, becauseDEFAULT_DENIED_ENV_PATTERNS(core/process.py:86-94) drops*TOKEN*.
Not every gh subprocess goes through run_gh. _refresh_from_github (github/rate_limiter.py:903-913) runs gh api rate_limit through run_subprocess directly. core/ does not import github/ (no devops_cli.github import under src/devops_cli/core/).
When the keyring token and gh's login differ, one GitHubClient acts as two identities. Labels and milestones go through PyGithub with the keyring token (github/client.py:41-49). Issues go through run_gh (GhCliClient, :345) with gh's login. register_key_on_github (github/ssh.py:23-35) tries gh's login first and then the keyring token. ai/review/runner.py:1924-1925 builds its GitHubClient from whatever token its caller passes, or an empty string. There are five GitHubClient( constructions: commands/repos.py:63, commands/gh.py:155, ai/review/runner.py:1925, commands/analyze.py:512, github/ssh.py:40.
Quota and caching do not know about identity:
GitHubRateLimiterkeeps one quota file (resolve_quota_cache_path,rate_limiter.py:1313-1317,<data dir>/cache/gh_quota.json,CONST_GH_QUOTA_CACHE_FILENAMEatconfig/constants.py:677). It also keeps one response cache, keyed only by argv (get_cached,:1204-1210;_build_cache_key,:1383). A second identity therefore reads the first identity's quota and cached responses.- PyGithub never updates the ledger.
GitHubGraphQLClient(graphql.py:657) keeps its ownGraphQLTokenBucket(:225) and an ETag cache for GraphQL (RFC7234ETagCache,:135). GitHub documents conditional requests only for REST, and feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752 checked withgh api graphql -ithat GraphQL answers carry noETag. Its only caller isGitHubClient.get_repo_overview(client.py:56), and nothing calls that.GitHubGraphQLError(exceptions/git.py:118) is raised only by this client.
The transport, error classes, Link pagination, conditional requests and the move of the roadmap store, PR diff and signing key onto the session are #983 (v0.2.28), split out of this item.
Proposed Solution
One GitHub session per process. It has one identity and owns the token and the quota. #983 gives it the transport.
- Identity: on the first GitHub call,
gh auth tokenruns once and the result is kept. That command already appliesGH_TOKEN, thenGITHUB_TOKEN, then gh's stored login (checked with gh 2.102.0).session.login(GET /user) is fetched the first time it is read, then cached. - Pin: both subprocess runners in
core/process.pygive every gh and git subprocessGH_TOKENset to that token and noGITHUB_TOKEN. This replaces_inject_gh_credentials, so it covers gh calls that bypassrun_gh, such as_refresh_from_github. The lookup and the pin live incore/, becausecore/does not importgithub/. The session ingithub/reads its token from there. gh authis exempt:gh authsubcommands get the ambientGH_TOKENandGITHUB_TOKENunchanged, and never a token the pin added.- Per-identity quota and cache:
GitHubRateLimiter's quota file and response cache live in a directory per identity under the existing cache dir (<data dir>/cache/,CONST_CACHE_DIR_NAMEatconfig/constants.py:200). The directory is named by the first 16 hex characters of the token's SHA-256. No path, and no log line the ledger writes, contains a token or a login. This directory is where refactor(github): the github session owns transport, ledger, error classes and link pagination #983 later keeps its ETag store. - PyGithub: stays for now, and
GitHubClientis built only from the session's token, in one place. refactor(github): pull request, repository and ssh key calls move from pygithub onto the github session #891 (backlog) removes PyGithub. - Removed without shims:
- the token code:
get_github_tokenwith_github_cli_token(config/settings.py:977-989),commands/gh.py::_resolve_github_token,graphql.py::resolve_github_token,commands/config.py::_gh_auth_token, andconfig init's token import and PAT prompt (commands/config.py:233-253); core/process.py::_inject_gh_credentials;- the
github.tokenoption (config/options.py:5,:125,:222, keyring keygithub_tokenat:237, registry entrysecurity/secrets.py:418, env specconfig/env.py:13,:103,:230-231, theconfig showrow atcommands/config.py:119, the special case at:320and theaudit-keysdry-run list at:546) andDEVOPS_CLI_GITHUB_TOKEN, with their exports fromconfig/__init__.py(:362,:409,:447,:818,:829,:891); GitHubGraphQLClient,GraphQLTokenBucket,RFC7234ETagCache,GitHubClient.get_repo_overviewand.graphql, with their exports fromgithub/__init__.py(:29,:34,:36,:39,:144,:153,:172,:231), andGitHubGraphQLError(exceptions/git.py:118, exported atexceptions/__init__.py:56and:145), which only that client raises.verify_webhook_signatureandWebhookEventDispatcher(graphql.py:278,:295) stay for feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752.
- the token code:
- Docs and messages:
docs/ENV_VARS.md,docs/CLI_REFERENCE.mdanddocs/commands/config.mdare regenerated withuv run devops docs generate --sync-readme(the commanddevops ciruns atcommands/ci.py:361). The example key inlang/en/help.py:1109changes, which fixesCLI_REFERENCE.md:2260andconfig.md:123; theDEVOPS_CLI_GITHUB_TOKENrow atENV_VARS.md:58goes with the env spec.- README.md (
:17,:60) stops naminggithub.token. - The messages at
lang/en/messages.py:47,:208-210and:292-293,commands/repos.py:57andgithub/ssh.py:34say to rungh auth login. - The knowledge-base pages that teach
github.token, thegithub_tokenkeyring key,DEVOPS_CLI_GITHUB_TOKENorget_github_tokenare corrected:devops_cli/configuration_and_settings.md(:55,:115,:121),devops_cli/libraries/keyring.md(:52-64),devops_cli/libraries/pygithub.md(:38,:75),devops_cli/tasks/github_project_management.md(:177),it_domains/tools/keyring.md(:11-14,:26,:44-50,:75),it_domains/tools/github_cli.md(:11,:72) andit_domains/topics/zero_trust_security_and_compliance.md(:42). - The devcontainer gh-token move (
commands/devcontainer.py:1449) dropsDEVOPS_CLI_GITHUB_TOKENfrom its env check. It runs onlygh authsubcommands, which are exempt from the pin.
Scope
- New: a session module in
github/and the token lookup and pin incore/process.py. - Changed:
core/process.py,github/rate_limiter.py,github/client.py,github/ssh.py,github/graphql.py,github/__init__.py,exceptions/git.pyandexceptions/__init__.py(theGitHubGraphQLErrorremoval only),commands/gh.py,commands/config.py,commands/repos.py,commands/devcontainer.py,ai/review/runner.py,config/settings.py,config/env.py,config/options.py,config/__init__.py,security/secrets.py,lang/en/messages.py,lang/en/help.py,tests/conftest.py, README.md, three generated docs, seven knowledge-base pages. - Tests: the 19 test files that name a removed symbol (96 matches;
tests/test_github_graphql.pyalone has 33 across 20 tests and is deleted with the client;tests/test_config_commands.py11,tests/test_github_client.py9,tests/test_config_cmd.py7,tests/test_subprocess_env_boundary.py6) are rewritten or removed; new tests follow the acceptance criteria below. - Constraints:
- No GitHub API request is made as an identity other than the session's.
- No new dependencies (
httpx2==2.13.0atpyproject.toml:19providesMockTransport). - No aliases or shims for removed names.
- New tests use
httpx2.MockTransport(astests/web_fakes.py::StubWebdoes) and a patched subprocess runner, never touch the network, and take under 1 s each. They use structural tuple assertions until test(cli): retire the tuple-assert mandate and detect opaque tuple asserts and presence-only tests #851 settles that. - A changelog fragment
changelog.d/767.md;CHANGELOG.mdanddocs/ROADMAP.mdare not edited.
Key Questions
-
Does Part B (transport, ledger feed, error classes,
Linkpagination, conditional requests, store migration) ship in the same pull request as this item? Answered. No. The owner split it: this item keeps Part A (identity, pin, per-identity quota and cache, removals, docs) in v0.2.26, and Part B is refactor(github): the github session owns transport, ledger, error classes and link pagination #983 (v0.2.28), which depends on this item and lands after fix(github): pr monitor reports copilot as idle or completed when its timeline or reviews read fails #806. Part A alone is what feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 and feat(roadmap): run the roadmap jobs when they are due (devops roadmap run) #981 need in v0.2.26 (one identity,GH_TOKENpinned to gh and git) and already touches 20 source files, 19 test files, README, three docs and seven knowledge-base pages. Together the two parts exceed one reviewable pull request. -
Which identity does a terminal use, and does
github.tokenstay? Answered. The terminal uses gh's token.gh auth tokenalready appliesGH_TOKEN, thenGITHUB_TOKEN, then the stored login; this was checked with gh 2.102.0. The keyring copy goes, andDEVOPS_CLI_GITHUB_TOKENgoes with it. Reasons:- the keyring copy is what creates the second identity;
- it goes stale after
gh auth refresh; - the scope errors in the code already tell users to run
gh auth refresh(projects.py:343-344); - gh keeps its token in the system keyring, so nothing becomes plaintext.
This is a user-visible change:
config initloses its PAT and import prompts, andconfig showloses the GitHub token row. -
How does the service act as the machine account? Answered. By the same rule. feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741's
devops-cliSecret setsGH_TOKENto the machine account's classic token (ADR 0002).devops k8s push-secretsreads that token from gh's keyring entry for the account (gh auth token --user, agh authcall this item exempts from the pin), so no devops keyring copy returns. The service image (feat(release): production service image for scheduled jobs and webhook handlers #753) has no stored gh login, so a missingGH_TOKENfails rather than falling back. The service logssession.loginonce when it starts. -
When is the identity resolved, and what does it cost? Answered. Lazily, on the first GitHub call, once per process. That costs one
gh auth tokensubprocess. It never runs at import.GET /userruns only whensession.loginis read. -
Where does the pin live? Answered. In
core/, next to the two subprocess runners incore/process.py, where_inject_gh_credentialsis today. That covers every gh argv, including directrun_subprocesscalls, and keepscore/from importinggithub/. The session reads its token from there. -
Which adapter serves which calls? Answered. The gh adapter is
run_gh, and its argv callers stay unchanged,--paginateones included; rewriting them is not needed for one identity, because the pin covers them. The session's httpx2 methods (rest,graphql,paginate) arrive with refactor(github): the github session owns transport, ledger, error classes and link pagination #983. -
How is the ledger keyed by identity? Answered. By a directory per identity under the existing cache dir. The directory is named by the first 16 hex characters of the token's SHA-256. This needs no request, and no path contains a token or a login. It keys by token, not by account. GitHub counts all of an account's tokens against one hourly limit (ADR 0002, line 7), so two tokens of one account get two ledgers; each response's headers correct the figure.
-
Does PyGithub go in this PR? Answered. No; refactor(github): pull request, repository and ssh key calls move from pygithub onto the github session #891 removes it. That work touches the review, analyze, repos and SSH code and their tests, and the roadmap service does not use PyGithub. In this PR,
GitHubClientis built only from the session's token, so the identity constraint holds. Its calls bypass the ledger until refactor(github): pull request, repository and ssh key calls move from pygithub onto the github session #891 lands. -
What happens to
GhCliClient(client.py:345) and the webhook helpers ingraphql.py(:278,:295)? Answered. Nothing in this PR. refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768 replaced the duck-typed milestone and label clients for the roadmap;commands/gh.py:254still falls back toGhCliClient. feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752 movesverify_webhook_signatureand deletesWebhookEventDispatcher(752.md:78, :80). -
Does the devcontainer's gh-token move (
commands/devcontainer.py:1449) change? Answered. Only its env check changes: it dropsDEVOPS_CLI_GITHUB_TOKEN. It runs onlygh authsubcommands, and those are exempt from the pin. -
Does the pin cover git? Answered. Yes. git run through
run_subprocessgets the pinnedGH_TOKEN(todayDEFAULT_DENIED_ENV_PATTERNSatcore/process.py:86-94strips it), so thegh auth git-credentialhelper the service image sets in/etc/gitconfig(feat(release): production service image for scheduled jobs and webhook handlers #753, 753.md:47, :127) pushes as the session. feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743's cut, through fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982's shared release path, pusheschore/cut-vX.Y.Zfrom the service (the branch the owner fixed for feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743), which fails without it. A unit test checks that agit pushargv getsGH_TOKEN=A. -
How do existing tests avoid a real
gh auth token? Answered. The session gets a reset hook, likereset_github_rate_limiter(rate_limiter.py:1320), and an autouse fixture intests/conftest.pypins a fake token. The no-socket guard (prevent_external_network_calls,tests/conftest.py:99, in place since v0.2.16) and theisolate_gh_configfixture (:291-293, since v0.2.23, which pointsGH_CONFIG_DIRat a temp dir) are already there, so the new fixture goes next to them. Thegithub_roadmap_factoryfixture (:297) already refuses the GitHub roadmap store in tests for the same reason.
Acceptance Criteria
-
One identity. With
gh auth tokenscripted to print token A, a path makes oneGitHubClient.get_pr_diffcall, tworun_ghcalls and one_refresh_from_githubcall. The diff request sendsAuthorization: Bearer AthroughGitHubClient.get_pr_diff(refactor(github): the github session owns transport, ledger, error classes and link pagination #983 moves it ontosession.rest()). All three gh subprocesses getGH_TOKEN=Aand noGITHUB_TOKEN.gh auth tokenruns once. Test: a unit test usinghttpx2.MockTransportand a patched subprocess runner, next totests/test_github_client.py::test_get_pr_diff_normal_and_redirect(:248). -
Environment tokens are honoured. With
GH_TOKEN=Bin the process environment, the identity lookup passesGH_TOKENandGITHUB_TOKENthrough togh auth token, and the session's token is B. Test: a unit test that checks the env handed to the subprocess. -
No fallback. When
gh auth tokenfails, the first call raises the unauthenticated error and no other gh subprocess runs. Test: a unit test. -
gh authis exempt. With noGH_TOKENorGITHUB_TOKENin the environment and token A pinned,gh auth login,status,refresh,token,switch,logoutandsetup-gitget noGH_TOKEN. WithGH_TOKEN=Bin the environment, they get B unchanged. Test: a parametrized unit test. -
git gets the pin. A
git pushargv run throughrun_subprocessgetsGH_TOKEN=A. Test: a unit test intests/test_subprocess_env_boundary.py, replacingtest_run_subprocess_forwards_tokens_to_gh(:198) andtest_run_subprocess_forwards_explicit_env_devops_token(:215). -
Quota and cache per identity. Sessions for tokens A and B write separate quota files and response caches. A cached
gh apiread made as A is not served to B. No ledger or cache path contains a token or a login, and neither does any log line the ledger writes. Test: a unit test with a temporary data dir intests/test_github_rate_limiter.py. -
Removed names are gone. This command prints nothing; the reviewer runs it, and a unit test asserts that
github.tokenis not a config option:rg -n "resolve_github_token|get_github_token|_github_cli_token|_gh_auth_token|_inject_gh_credentials|GitHubGraphQLClient|GraphQLTokenBucket|RFC7234ETagCache|GitHubGraphQLError|get_repo_overview|DEVOPS_CLI_GITHUB_TOKEN|github\.token" src tests README.md docs/ENV_VARS.md docs/CLI_REFERENCE.md docs/commands/config.md -
PyGithub is built from the session.
rg -n "GitHubClient\(" srcshows a single construction, in the session module, which passes the session's token. A unit test checks that the client used byrepos,review(includingai/review/runner.py),analyze,sshandcommands/gh.py::_get_github_clientcarries the session's token. -
Docs regenerated.
uv run devops docs generate --sync-readmeleaves the tree unchanged, which thedocscheck ofuv run devops ci(commands/ci.py:443-447) verifies;tests/test_docs.py:94no longer expectsDEVOPS_CLI_GITHUB_TOKEN. -
Gate.
uv run devops cipasses within its 5-minute budget. Each new test runs in under 1 s underpytest --durations=0. No new test opens a socket, whichprevent_external_network_calls(tests/conftest.py:99) enforces, and no test runs a realgh. -
Pending a person (live GitHub, read-only), in a terminal logged in to gh, with no
GH_TOKENset:uv run devops gh issues list -R dan-petty/devops-cliprints the open issues.uv run devops gh milestones list -R dan-petty/devops-cliprints the milestones.GH_TOKEN=not-a-real-token uv run devops gh issues list -R dan-petty/devops-cliexits non-zero with the unauthenticated error and prints no issues.
Out of Scope
- Transport (
session.rest,session.graphqlandsession.paginateover httpx2), feeding the ledger fromx-ratelimit-*headers, the error classes and classifier that replace the string-matching sites (including the patterns atconfig/constants.py:340-357that fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431 hands over),Linkpagination inrun_ghincluding--slurpand--jq, conditional requests with the per-identity ETag store, the/rate_limitrefresh behind_is_graphql_quota_exhausted, and moving the roadmap store, PR diff and signing key onto the session: refactor(github): the github session owns transport, ledger, error classes and link pagination #983 (v0.2.28). - Removing PyGithub: refactor(github): pull request, repository and ssh key calls move from pygithub onto the github session #891 (backlog) moves the pull request, repository and SSH key calls onto the session.
GhCliClient(client.py:345) and the fallback atcommands/gh.py:254.verify_webhook_signatureandWebhookEventDispatcher(graphql.py:278,:295): feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752 moves the first and deletes the second.- The Projects V2 REST items read that the original body cited (
users/{owner}/projectsV2/{n}/itemswith cursor links, atef21785) no longer exists;fetch_project_itemsusesgh project item-list --limit 1000(projects.py:737-757) and stays on it. - The failure handling of the PR monitor's timeline and reviews reads: fix(github): pr monitor reports copilot as idle or completed when its timeline or reviews read fails #806 (v0.2.27).
- Request and throttle counters (feat(github): github api request and throttle counters for the devops-cli dashboard #814), the dashboard's quota view (feat(github): github tab in devops dashboard with an oldest-first pr queue, pr inspector, failing-log view and api quota (
tab-github) #685) and check reads (refactor(github): read a pull request's checks once, fail-closed, for wait, monitor and readiness #769) read this ledger later.
Dependencies
- feat(cli): extend the ruff rule set to the correctness families #420 (v0.2.26) lands first: its lint sweep edits
github/rate_limiter.pyandai/review/runner.py, which this item also edits (420.md:90, :121), so this item's PR only passes the widened rule set. - refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768 is delivered on this branch (
bf746de); its store's GitHub adapter moves onto the session in refactor(github): the github session owns transport, ledger, error classes and link pagination #983. - feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083 and feat(roadmap): run the roadmap jobs when they are due (
devops roadmap run) #981 (v0.2.26) depend on this item: the service acts as the machine account whose token feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741's Secret supplies asGH_TOKEN, relying on the pin reaching gh and git. feat(k8s): devops-cli runs in the homelab cluster as Jobs, and every cluster Secret is pushed from the keyring, also by deploy-stack (devops k8s push-secrets, devops k8s run-job) #741 (lands before this item) is related: its jobs' gh calls getGH_TOKENfrom the environment today (core/process.py:206-215), and a job'sgit pushauthenticates once this item lands. - feat(roadmap): run the roadmap jobs when they are due (
devops roadmap run) #981 (v0.2.26,devops roadmap run, last in the release) depends on this item: it readssession.login, acts as the logged-in person from a terminal and as the machine account in the service (981 body: "refactor(github): one github session per identity owning token, quota and transport #767 (one GitHub session)"), and its rate-budget check reads the pod'sGH_TOKEN. - feat(cli): service mode for
devops servewith github webhooks, a polling tick and per-repo job queues #752 (v0.2.26) does not depend on this item (752.md:173) but sharesgithub/graphql.py,github/__init__.pyandtests/test_github_graphql.pywith it (752.md:178); this item lands first so feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752's rebase drops hunks that are already gone, and it leavesverify_webhook_signatureandWebhookEventDispatcherin place for feat(cli): service mode fordevops servewith github webhooks, a polling tick and per-repo job queues #752. - feat(release): production service image for scheduled jobs and webhook handlers #753 (v0.2.26) does not depend on this item (753.md:191); it keeps
ghin the image because this item keeps the gh adapter, and relies on the pin reaching git so its credential helper authenticates the service's push (753.md:196). - fix(release): one fail-closed release path: cut branch from the remote release tip,
uv.lockbump, draft flag, required label and milestone #982 (v0.2.26, lands before feat(release): item closure summaries, generated changelog and automatic release cut (devops roadmap close) #743) fixes the cut branch aschore/cut-vX.Y.Zintomainand says this item suppliesGH_TOKENfor the service'sgit push(982 body: "refactor(github): one github session per identity owning token, quota and transport #767 pinsGH_TOKENforgit pushin the service"); nothing there waits on this item. - feat(release): item closure summaries, generated changelog and automatic release cut (
devops roadmap close) #743 (v0.2.26) waits on nothing here; its cut pusheschore/cut-vX.Y.Zfrom the service through fix(release): one fail-closed release path: cut branch from the remote release tip,uv.lockbump, draft flag, required label and milestone #982's release path, which needs this item's git pin (743.md:24, :162). - fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431 (v0.2.26) leaves the rate-limit patterns at
config/constants.py:340-357to the session work (431.md:95); this item leaves them in place and refactor(github): the github session owns transport, ledger, error classes and link pagination #983 replaces them. - fix(github): pr monitor reports copilot as idle or completed when its timeline or reviews read fails #806 (v0.2.27) shares no file with this item; it lands before refactor(github): the github session owns transport, ledger, error classes and link pagination #983, which changes the pagination behind the reads fix(github): pr monitor reports copilot as idle or completed when its timeline or reviews read fails #806 fixes (806.md:66-67).
- refactor(github): the github session owns transport, ledger, error classes and link pagination #983 (v0.2.28) depends on this item and lands after fix(github): pr monitor reports copilot as idle or completed when its timeline or reviews read fails #806: it adds
rest,graphqlandpaginateto the session module created here and writes its ETag store into the identity directory created here. - fix(telemetry): the project velocity dashboard reads the latest snapshot of each gauge, and the project gauges drop the _total suffix #974 (backlog) edits
commands/gh.py(974.md:23, :61); if it returns to a release, it rebases on this item. - Related: refactor(github): pull request, repository and ssh key calls move from pygithub onto the github session #891 (PyGithub removal), feat(ai): item refinement to ready with proposed decisions (
devops roadmap refine) #744 (devops roadmap refine, which later reads through the session), refactor(github): read a pull request's checks once, fail-closed, for wait, monitor and readiness #769, fix(github):gh milestones editwithout--statecloses the milestone #777, feat(github): github api request and throttle counters for the devops-cli dashboard #814, test(cli): whole-tree import-cycle and interface-layer invariants #848, feat(github): github tab in devops dashboard with an oldest-first pr queue, pr inspector, failing-log view and api quota (tab-github) #685. - Design: ADR 0002, ADR 0003.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
chore(docs): plan the architecture review's deepening candidates and …
chore(docs): plan the architecture review's deepening candidates and …
feat(release): v0.2.24 (#905)
dan-petty commentedon Oct 3, 2026
#741 (now the in-cluster runtime) lands before this item and is no longer a dependent; #1083 and #981 are. The machine account's token reaches the Secret from gh's keyring (
gh auth token --user), so no devops keyring copy returns.dan-petty commentedon Oct 4, 2026
Owner decision (2026-10-04) on the amended bad-token check: accepted as delivered.
GH_TOKEN=not-a-real-token,gh auth tokenprints the token it is given, so the lookup succeeds.Failed to refresh rate limits from GitHub API: HTTP 401: Bad credentials: exit 1, no traceback, no issues printed.Turning that into the unauthenticated error is now part of #983. The amendment adds the quota refresh as a classifier site, a unit test and a CLI test, and a person check that replaces this one.
refactor(github): one github session per identity (#767) (#1160)
dan-petty commentedon Oct 4, 2026
Closed by #1160, merged into
release/v0.2.26.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(release): v0.2.26 (#1178)