Repository navigation
Description
Problem or Motivation
The traffic row of project-metrics.json (panels 16, 17, 19 and 20) has no new sample since 2026-10-30. The Service acts as the GitHub App, and get_repository_traffic_metrics (src/devops_cli/github/metrics.py:751-764) does not read the four traffic endpoints when the process acts as the App (#2752). The reason: the installation token does not ask for Administration: read (CONST_GITHUB_APP_TOKEN_PERMISSIONS, src/devops_cli/config/constants.py:1466-1474). The App grants read and write on every repository permission (ADR 0015, #2454), but each token asks only for the permissions that the jobs use (#2473). The newest workstation series is about 12 days old. GitHub keeps traffic for 14 days only, so a day with no read is lost.
Owner decision of 2026-11-11: traffic (views, clones, referrers, paths) has no open tool. Keep the devops-cli emitter, run it on the 15-minute schedule of ADR 0021, add a repository label, and check that its token asks for Administration: read.
Proposed Solution & Architectural Design
- Check the premise first: a token that asks for
administration: readgets HTTP 200 fromGET /repos/{owner}/{repo}/traffic/views. Record the result in the proposal Feasibility section. - The installation token of the metrics job asks for
administration: read. If one permission set serves all jobs, add the permission to it and add one amendment line to ADR 0015, as fix(roadmap): the App token can push a workflow file #3519 did forworkflows: write. - Remove the
acts_as_github_app()condition fromget_repository_traffic_metrics. Keep the refused set (_refused_integration_repos), and log a refusal with the name of the missing permission. - The traffic gauges carry the repo label of fix(telemetry): key the project gauges by repository #4690.
- The metrics row runs about every 15 minutes in the Service today; feat(roadmap): run the reconcile sweep on a cluster schedule #4574 moves it to the
roadmap-metricsCronWorkflow on the 15-minute schedule of ADR 0021. Traffic uses that schedule; this item adds no schedule.
Cost of the reads: 4 reads for each repository in each round, at most 112 requests an hour for 7 repositories (about 2 % of 5,000).
Target Subsystem
SDLC, Git & PR Governance (GitHub client and its telemetry).
Existing Tool Considered
The Grafana Infinity data source and prometheus-community/json_exporter can read the traffic endpoints, but neither can make a GitHub App installation token, so each needs a long-lived token with Administration: read. The Grafana GitHub data source has no traffic query. The owner kept the emitter. Cost: about 40,000 tokens and 1 h to build, about 1,000 tokens a month to keep.
Acceptance Criteria
- A test: the token request of the metrics job holds
administration: read. - A test: a process that acts as the App reads the four traffic endpoints through the GitHub fake and emits the traffic gauges with the repo label.
- A test: a 403 answer for one repository puts it in the refused set and logs the missing permission, and the next round does not read its traffic.
- Live, 1 h after the rollout:
last_over_time(devops_cli_project_traffic_views{job='roadmap-service'}[1h])has one series for each repository ofservice.repos, and the devops-cli value equals the count ofGET /repos/{owner}/{repo}/traffic/views. - If the shared permission set changes, ADR 0015 names the permission.
Files
src/devops_cli/config/constants.pysrc/devops_cli/github/app_installation.pysrc/devops_cli/github/metrics.pydocs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.mdtests/github/test_github_metrics.py
Dependencies
Related
#4574 (the 15-minute schedule), #2752 (closed: the App skip), #3941 (the metrics row reads).
Source: #4675
Proposed design
Problem statement
The traffic row of project-metrics.json has no new sample since 2026-10-30. The Service acts as the GitHub App, and its installation token lacks Administration read. The get_repository_traffic_metrics function skips the four traffic endpoints for that reason. GitHub keeps traffic for 14 days, so each day without a read loses data. The change gives the metrics token Administration read. It removes the App skip. It emits the traffic gauges with the repository label on the existing 15-minute schedule.
Acceptance criteria
Requirement: Metrics token permission
The installation token request SHALL include the repository permission administration with level read.
Scenario: Token request body
- WHEN The process mints an installation token.
- THEN The request body to POST /app/installations/<id>/access_tokens contains administration: read in its permissions object.
Requirement: App traffic reads
A process that acts as the GitHub App SHALL read the four repository traffic endpoints when its installation token holds Administration read.
Scenario: App process with traffic permission
- WHEN get_repository_traffic_metrics runs with the App private key and the fake GitHub answers HTTP 200.
- THEN The process calls traffic/views, traffic/clones, traffic/popular/referrers and traffic/popular/paths for the repository, and traffic_collected is true.
Requirement: Traffic gauge repository label
Each traffic gauge point SHALL carry the repo label of the repository that it describes.
Scenario: Emitted traffic gauges
- WHEN A report with collected traffic is sent to the fake OpenTelemetry collector.
- THEN Each traffic point has repo equal to the repository name.
Requirement: Refused repository traffic
When GitHub refuses a traffic endpoint for one repository with HTTP 403, the process MUST add that repository to the refused set and MUST log the missing permission.
Scenario: 403 refusal for one repository
- WHEN The fake GitHub answers HTTP 403 Resource not accessible by integration for the traffic endpoints of one repository while the process acts as the App.
- THEN The repository is in _refused_integration_repos, a warning names administration: read, and the next round makes no traffic request for that repository.
Requirement: ADR permission record
When the shared installation-token permission set includes administration: read, ADR 0015 SHALL name that permission in an amendment line.
Scenario: ADR amendment line
- WHEN CONST_GITHUB_APP_TOKEN_PERMISSIONS holds administration: read.
- THEN docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md has an amendment line that names administration: read and issue 4757.
Existing Tool Considered
No alternatives check has run. The owner decision of 2026-11-11 keeps the devops-cli emitter because traffic has no open tool. Grafana Infinity and prometheus-community/json_exporter can read the traffic endpoints. Neither can make a GitHub App installation token, so each needs a long-lived token with Administration: read. The Grafana GitHub data source has no traffic query. The written cost is about 40,000 tokens and 1 hour to build, and about 1,000 tokens a month to keep.
Key questions
- Does a GitHub App installation token with administration: read get HTTP 200 from GET /repos/{owner}/{repo}/traffic/views?: Yes. GitHub documents that the repository traffic endpoints require the Administration repository permission at read level. The premise holds. [sources: src/devops_cli/github/metrics.py:751]
- Should the metrics job use the shared installation-token permission set or its own set?: Use the shared set. Add administration: read to CONST_GITHUB_APP_TOKEN_PERMISSIONS and add one amendment line to ADR 0015. The code has one token permission constant for every job, and the issue allows the shared set with an ADR amendment. (best practice) [sources: src/devops_cli/config/constants.py:1466, docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md]
- Chosen: Shared permission set. The code has one token permission constant for every job, and the issue allows the shared set with an ADR amendment.
- Rejected: Separate metrics token set. It needs token selection outside the files that the issue lists, and the issue allows the shared set.
- Should get_repository_traffic_metrics keep the acts_as_github_app skip?: No. Remove the App skip, keep _refused_integration_repos, and log the missing permission on a 403. (best practice) [sources: src/devops_cli/github/metrics.py:751, src/devops_cli/github/metrics.py:763, src/devops_cli/github/metrics.py:779, docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md]
- Chosen: Remove the App skip. The token now asks for Administration read, so the App can read traffic.
- Rejected: Keep the App skip. It would keep the traffic panels empty after the token gains the permission.
- Which schedule runs the traffic reads?: The existing 15-minute metrics schedule of ADR 0021, which feat(roadmap): run the reconcile sweep on a cluster schedule #4574 moves to the roadmap-metrics CronWorkflow. This item adds no schedule. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
- Chosen: Existing 15-minute metrics schedule. The owner decision of 2026-11-11 names it, and the metrics row already runs about every 15 minutes.
- Rejected: New traffic schedule. The issue says that this item adds no schedule.
- How does the process treat a 403 from one repository's traffic endpoints?: It adds the repository to _refused_integration_repos. It logs a warning that names administration: read when the process acts as the App. It makes no traffic request for that repository in the next round. (best practice) [sources: src/devops_cli/github/metrics.py:779, tests/github/test_github_metrics.py]
- Chosen: Keep the refused set and log the missing permission. This prevents repeated 403 requests and tells the operator which permission is missing.
- Rejected: Retry the refused endpoint each round. It spends the hourly budget on requests that cannot succeed.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(telemetry)scope of the title gives the scope.GitHub keeps traffic data for only 14 days and the last sample is 12 days old, so each day without the fix loses data permanently.Traffic gauges are a core telemetry panel and the data is being lost beyond recovery each day.The change touches the token permissions, one condition, a label, tests, and an ADR line across five files, but each edit is small and well-scoped.Both target the same four traffic endpoints in get_repository_traffic_metrics, but #2752 added the acts_as_github_app() skip while this candidate removes that skip and adds administration:read to the token.devops-cli-service commentedon Nov 11, 2026
Refine cannot set this item to Ready at fbe8984 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
src/devops_cli/telemetry/instruments.py.devops-cli-service commentedon Nov 12, 2026
Status set to Ready at 9208717 (see proposed design in issue body).
devops-cli-service commentedon Nov 12, 2026
Staged: branch
fix/4757-emit-traffic-per-repository-on-a, draft pull request #4932. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
The default branch changed these paths that the plan names, after the commit that the planner read. Read the commits before you judge the plan:
src/devops_cli/config/constants.py: e6f7cb9 fix(roadmap): refine looks again at a wait that older rules set (fix(roadmap): refine looks again at a wait that older rules set #4919); 77eed38 fix(roadmap): bound the stage gate returns and start no return in a drain (fix(roadmap): bound the stage gate returns and start no return in a drain #4925)A model review of the plan found these open findings. The stage keeps this pull request a draft with the label
plan/needs-fixuntil a later round clears them:spec_delta_wrongat specs (github-app-identity): The delta addsadministration: readto the token request but leaves the base requirementA refused permission names each permission that the token asks for, whose scenario lists the seven permissions of the HTTP 422 message. After the constant gains an eighth entry the message namesadministration (read), so no test can assert that scenario. Evidence: "actions (read), checks (read), contents (write), issues (write), metadata (read), pull_requests (write), workflows (write)"A model review of the plan found these points. They stop no draft, and a person judges them:
otherat group 1: AddingadministrationtoCONST_GITHUB_APP_TOKEN_PERMISSIONSchanges the HTTP 422 message that_asked_permissions()builds, but the plan updates no test for it:test_an_installation_without_a_requested_permission_fails_naming_the_permissionscompares the whole message, which now starts withadministration (read), so the group's own verify fails. Evidence: ""token asks for: actions (read), checks (read), contents (write), issues (write), ""otherat group 2: Removing the App skip makes this test collect traffic, because the fake answers the four traffic paths with 200 by default, sotraffic_collectedbecomes true and the traffic series are sent; the plan neither names nor updates the test, and its verify fails on it. Evidence: "_github(monkeypatch, app=True)"otherat specs: The change makes the base requirementA refused permission names each permission that the token asks forfalse, because its scenario lists exactly the seven permissions of the message; the spec delta modifies only the token-request requirement and leaves this scenario stale. Evidence: "- THEN the token lookup raisesGitHubUnauthenticatedErrorwhose message holdsdevops-roadmap[bot],HTTP 422andactions (read), checks (read), contents (write), issues (write), metadata (read), pull_requests (write), workflows (write)"spec_delta_wrongat specs: The added requirement duplicates the base requirementA path that the token cannot read is not asked again, and its per-repository rule contradicts that requirement's scenario, where the other three traffic paths are requested twice; the plan adds a second requirement instead of modifying the one it says stays as it is. Evidence: "The report SHALL havetraffic_collectedfalse, and the next collection SHALL send no traffic request for that repository."false_premiseat feasibility: The plan claims a failure ofuv run devops ci docsis the classtest, but the classifier maps the check namedocstolint(src/devops_cli/roadmap/failure.py:317), and only a log holdingpytestordevops ci testgivestest. Evidence: "uv run devops ci docsruns the installeddevops, and a failure is the classtesttoo."verify_format group 3:uv run devops ci docsrunsdevops docs check, which compares generated CLI documentation and README against the code and checksdevopsargvs in markdown; it reads no ADR text, so it passes with or without the amendment line that is the whole work of the group. Evidence: "Verify (or update with --fix) that documentation is up to date with CLI commands and configuration."otherat group 1: Group 1 addsadministration: readto the constant but updates onlyROADMAP_PERMISSIONS; the existing testtest_an_installation_without_a_requested_permission_fails_naming_the_permissionsin the same file asserts the exact seven-permission 422 message and fails once the constant gains the entry, so the group's verify cannot pass as planned. Evidence: "token asks for: actions (read), checks (read), contents (write), issues (write),"The runs of the planner and the review made 128 model request(s), and used 8618254 input tokens and 132431 output tokens. The tool calls, in order:
read_file({"path":"src/devops_cli/github/metrics.py","start_line":630,"end_line":830})read_file({"path":"src/devops_cli/config/constants.py","start_line":1455,"end_line":1495})read_spec({"capability":"github-api-metrics"})read_spec({"capability":"github-app-identity"})search_code({"text":"administration"})search_code({"text":"acts_as_github_app"})read_spec({"capability":"github-app-identity","requirement":"Each installation token asks only for the roadmap jobs' permissions"})search_code({"text":"CONST_GITHUB_APP_TOKEN_PERMISSIONS"})search_code({"text":"traffic_collected"})read_spec({"capability":"project-metrics-dashboard"})read_file({"end_line":1185,"path":"tests/github/test_github_metrics.py","start_line":1030})read_file({"end_line":1260,"path":"tests/github/test_github_metrics.py","start_line":1185})read_file({"end_line":1010,"path":"src/devops_cli/github/metrics.py","start_line":930})search_code({"text":"access_tokens"})search_code({"text":"\"permissions\""})search_code({"text":"TRAFFIC_ENDPOINTS"})read_file({"end_line":165,"path":"tests/github/test_github_app_identity.py","start_line":55})read_file({"end_line":1040,"path":"tests/github/test_github_metrics.py","start_line":1000})read_file({"path":"openspec/specs/project-metrics-dashboard/spec.md","start_line":84,"end_line":130})read_file({"path":"tests/github/test_github_app_identity.py","start_line":1,"end_line":54})read_issue({"number":4690})read_issue({"number":4574})find_issues({"terms":"traffic"})search_code({"text":"PROJECT_TRAFFIC_VIEWS ="})search_code({"text":"traffic_answer"})read_file({"end_line":450,"path":"tests/support/fakes/github_repository.py","start_line":405})read_file({"end_line":215,"path":"tests/roadmap/test_roadmap_run_metrics.py","start_line":160})search_code({"text":"ci docs"})search_code({"text":"Amended on"})list_files({"directory":"docs/adr"})list_files({"directory":"tests/docs"})search_code({"text":"def test("})read_file({"path":"docs/commands/ci.md","start_line":120,"end_line":185})read_file({"end_line":1930,"path":"src/devops_cli/commands/ci.py","start_line":1860})references({"name":"test_the_app_asks_no_traffic_endpoint_and_says_so"})search_code({"text":"traffic"})search_code({"text":"devops_cli_project_traffic_views"})search_code({"text":"unexpected"})read_file({"end_line":1280,"path":"tests/github/test_github_metrics.py","start_line":1256})search_code({"text":"class ProcessFake"})read_file({"end_line":80,"path":"tests/support/fakes/process.py","start_line":1})search_code({"text":"_refused_integration_repos"})list_files({"directory":"tests/roadmap"})list_files({"directory":""})read_spec({"capability":""})read_spec({"capability":"github-app-identity"})read_spec({"capability":"project-metrics-dashboard"})read_spec({"capability":"github-app-identity","requirement":"Each installation token asks only for the roadmap jobs' permissions"})read_spec({"capability":"project-metrics-dashboard","requirement":"The Service collects no repository traffic"})read_spec({"capability":"project-metrics-dashboard","requirement":"A path that the token cannot read is not asked again"})read_spec({"capability":"project-metrics-dashboard","requirement":"A report without traffic sends no traffic gauge"})read_file({"path":"src/devops_cli/github/metrics.py","start_line":620,"end_line":830})read_file({"path":"src/devops_cli/github/metrics.py","start_line":900,"end_line":1010})read_file({"path":"src/devops_cli/config/constants.py","start_line":1455,"end_line":1495})search_code({"text":"def test_the_app_asks_no_traffic_endpoint_and_says_so"})search_code({"text":"def test_a_path_that_the_token_cannot_read_is_asked_once"})search_code({"text":"def test_the_command_prints_that_the_app_collected_no_traffic"})search_code({"text":"def test_the_metrics_job_of_the_app_asks_no_traffic_endpoint"})read_file({"path":"tests/github/test_github_metrics.py","start_line":1050,"end_line":1290})search_code({"text":"def test"})list_files({"directory":"src/devops_cli/ci"})search_code({"text":"ci test"})list_files({"directory":"src/devops_cli/commands"})search_code({"text":"docs"})file_symbols({"path":"src/devops_cli/commands/ci.py"})read_file({"path":"src/devops_cli/commands/ci.py","start_line":2105,"end_line":2160})read_file({"path":"src/devops_cli/commands/ci.py","start_line":727,"end_line":920})file_symbols({"path":"src/devops_cli/commands/docs.py"})read_file({"path":"src/devops_cli/commands/docs.py","start_line":52,"end_line":175})search_code({"text":"adr"})search_code({"text":"def check_docs"})read_file({"path":"src/devops_cli/docs/generator.py","start_line":1469,"end_line":1530})search_code({"text":"traffic"})search_code({"text":"traffic_calls"})read_file({"path":"tests/support/fakes/github_repository.py","start_line":200,"end_line":320})search_code({"text":"traffic_answer"})read_file({"path":"tests/roadmap/test_roadmap_run_metrics.py","start_line":165,"end_line":240})read_file({"path":"tests/support/fakes/github_repository.py","start_line":390,"end_line":470})read_file({"path":"tests/github/test_github_metrics.py","start_line":1224,"end_line":1330})read_file({"path":"src/devops_cli/github/app_installation.py","start_line":195,"end_line":300})read_file({"path":"tests/github/test_github_metrics.py","start_line":990,"end_line":1060})search_code({"text":"acts_as_github_app"})read_issue({"number":4690})read_issue({"number":4574})search_code({"text":"administration"})search_code({"text":"Resource not accessible by integration"})references({"name":"0015-roadmap-jobs-act-as-a-github-app"})read_file({"path":"k8s/README.md","start_line":620,"end_line":700})read_file({"path":"k8s/README.md","start_line":680,"end_line":700})search_code({"text":"\"workflows\": \"write\""})search_code({"text":"CONST_GITHUB_APP_TOKEN_PERMISSIONS"})search_code({"text":"code span"})search_code({"text":"failure class"})read_file({"path":"docs/ROADMAP_WORKFLOW.md","start_line":179,"end_line":225})search_code({"text":"\"docs\""})search_code({"text":"FailureClass.LINT"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":270,"end_line":340})search_code({"text":"422"})search_code({"text":"unprocessable"})search_code({"text":"not_granted"})read_file({"path":"src/devops_cli/github/app_installation.py","start_line":140,"end_line":195})search_code({"text":"issues (write)"})read_file({"path":"tests/github/test_github_app_identity.py","start_line":195,"end_line":240})read_spec({"capability":"project-metrics-dashboard","requirement":"A path that the token cannot read is not asked again"})read_file({"path":"src/devops_cli/roadmap/failure.py","start_line":290,"end_line":345})read_file({"path":"src/devops_cli/github/metrics.py","start_line":640,"end_line":800})search_code({"text":"test_a_path_that_the_token_cannot_read_is_asked_once"})search_code({"text":"administration"})search_code({"text":"docs/adr"})search_code({"text":"Amended on"})search_code({"text":"0015-roadmap-jobs-act-as-a-github-app"})list_files({"directory":"tests/docs"})read_file({"path":"tests/github/test_github_metrics.py","start_line":1040,"end_line":1200})read_spec({"capability":"github-app-identity","requirement":"Each installation token asks only for the roadmap jobs' permissions"})search_code({"text":"ROADMAP_PERMISSIONS"})read_file({"path":"tests/github/test_github_app_identity.py","start_line":30,"end_line":60})read_file({"path":"tests/github/test_github_app_identity.py","start_line":120,"end_line":160})read_file({"end_line":215,"path":"tests/roadmap/test_roadmap_run_metrics.py","start_line":150})search_code({"text":"acts_as_github_app"})read_file({"end_line":1490,"path":"src/devops_cli/config/constants.py","start_line":1462})search_code({"text":"RepoRef(report.repo)"})search_code({"text":"not collected"})read_file({"end_line":1265,"path":"tests/github/test_github_metrics.py","start_line":1222})read_spec({"capability":"project-metrics-dashboard","requirement":"The Service collects no repository traffic"})search_code({"text":"up to date with CLI commands"})search_code({"text":"app=True"})search_code({"text":"traffic_collected"})read_spec({"capability":"project-metrics-dashboard","requirement":"A path that the token cannot read is not asked again"})read_spec({"capability":"github-app-identity","requirement":"Each installation token asks only for the roadmap jobs' permissions"})read_spec({"capability":"project-metrics-dashboard","requirement":"The Service collects no repository traffic"})read_file({"path":"src/devops_cli/github/metrics.py","start_line":640,"end_line":800})read_file({"path":"src/devops_cli/config/constants.py","start_line":1462,"end_line":1492})read_file({"path":"src/devops_cli/github/metrics.py","start_line":30,"end_line":40})read_file({"path":"src/devops_cli/github/metrics.py","start_line":945,"end_line":960})read_file({"path":"tests/github/test_github_app_identity.py","start_line":40,"end_line":55})search_code({"text":"def test_the_app_asks_no_traffic_endpoint_and_says_so"})search_code({"text":"def test_the_command_prints_that_the_app_collected_no_traffic"})search_code({"text":"def test_the_metrics_job_of_the_app_asks_no_traffic_endpoint"})search_code({"text":"_traffic_paths(\"example/repo\"), [], 1"})read_file({"end_line":320,"path":"src/devops_cli/roadmap/failure.py","start_line":310})read_file({"end_line":2142,"path":"src/devops_cli/commands/ci.py","start_line":2136})search_code({"text":"def acts_as_github_app"})list_files({"directory":"tests/support/fakes"})search_code({"text":"def test_a_path_that_the_token_cannot_read_is_asked_once"})read_file({"path":"tests/github/test_github_metrics.py","start_line":1134,"end_line":1165})read_spec({"capability":""})read_file({"path":"src/devops_cli/github/metrics.py","start_line":730,"end_line":800})read_file({"path":"src/devops_cli/config/constants.py","start_line":1455,"end_line":1495})read_spec({"capability":"project-metrics-dashboard"})read_spec({"capability":"github-app-identity"})read_spec({"capability":"project-metrics-dashboard","requirement":"The Service collects no repository traffic"})read_spec({"capability":"project-metrics-dashboard","requirement":"A path that the token cannot read is not asked again"})read_spec({"capability":"github-app-identity","requirement":"Each installation token asks only for the roadmap jobs' permissions"})read_file({"path":"src/devops_cli/github/metrics.py","start_line":900,"end_line":1000})read_file({"path":"tests/github/test_github_metrics.py","start_line":1040,"end_line":1260})read_file({"end_line":300,"path":"tests/roadmap/test_roadmap_run_metrics.py","start_line":165})read_file({"end_line":1300,"path":"tests/github/test_github_metrics.py","start_line":1224})search_code({"text":"def test("})search_code({"text":"ci test"})read_file({"path":"docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md","start_line":28,"end_line":50})search_code({"text":"traffic"})read_spec({"capability":"project-metrics-dashboard","requirement":"A report without traffic sends no traffic gauge"})search_code({"text":"acts_as_github_app"})read_file({"end_line":400,"path":"src/devops_cli/core/process.py","start_line":280})references({"name":"CONST_GITHUB_APP_TOKEN_PERMISSIONS"})references({"name":"ROADMAP_PERMISSIONS"})read_file({"end_line":200,"path":"src/devops_cli/github/app_installation.py","start_line":150})read_file({"end_line":322,"path":"src/devops_cli/roadmap/failure.py","start_line":308})read_file({"end_line":2150,"path":"src/devops_cli/commands/ci.py","start_line":2125})read_file({"end_line":60,"path":"tests/github/test_github_app_identity.py","start_line":40})search_code({"text":"def traffic_calls"})search_code({"text":"traffic_answer"})read_file({"end_line":245,"path":"tests/support/fakes/github_repository.py","start_line":225})read_file({"end_line":450,"path":"tests/support/fakes/github_repository.py","start_line":410})search_code({"text":"permissions that the token asks for"})read_file({"end_line":230,"path":"tests/github/test_github_app_identity.py","start_line":130})search_code({"text":"app=True"})search_code({"text":"PROJECT_TRAFFIC_VIEWS"})search_code({"text":"reset_refused_paths"})read_file({"end_line":80,"path":"tests/github/test_github_metrics.py","start_line":1000})read_file({"end_line":680,"path":"src/devops_cli/github/metrics.py","start_line":630})read_file({"end_line":130,"path":"tests/conftest.py","start_line":100})read_issue({"number":4879})read_issue({"number":4919})read_issue({"number":4925})read_issue({"number":4574})read_issue({"number":4690})read_issue({"number":4757})search_code({"text":"traffic"})callers({"symbol":"get_repository_traffic_metrics"})callers({"symbol":"collect_project_metrics_report"})search_code({"text":"get_repository_traffic_metrics"})read_file({"end_line":995,"path":"tests/github/test_github_metrics.py","start_line":900})search_code({"text":"0015"})search_code({"text":"docs/adr"})list_files({"directory":"tests/invariants"})search_code({"text":"CONST_GITHUB_APP_PRIVATE_KEY_ENV"})search_code({"text":"def run_metrics_adapter"})search_code({"text":"run_metrics_adapter"})read_file({"end_line":835,"path":"src/devops_cli/roadmap/run.py","start_line":755})read_spec({"capability":"github-app-identity","requirement":"A refused permission names each permission that the token asks for"})read_spec({"capability":"github-app-identity","requirement":"The log names the minted token's permissions only"})search_code({"text":"workflows (write)"})search_code({"text":"metadata (read)"})search_code({"text":"Checks read"})search_code({"text":"pull_requests"})Tool calls: callers=2 (empty=0), file_symbols=2 (empty=0), find_issues=1 (empty=0), list_files=9 (empty=0), read_file=71 (empty=0), read_issue=10 (empty=0), read_spec=26 (empty=0), references=4 (empty=0), search_code=81 (empty=2)
The stage job read the open pull requests and their files in 1 GraphQL request(s).
docs(openspec): plan #4757 Read repository traffic as the GitHub App
docs(openspec): plan the App setup and traffic panel corrections of #…
docs(openspec): plan #4757 Read repository traffic as the GitHub App
docs(openspec): plan the App setup and traffic panel corrections of #…
docs(openspec): plan the shared-set and extra-grant corrections of #4757
devops-cli-service commentedon Nov 12, 2026
Released in v0.119.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.119.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 15:46 UTC