Skip to content

feat(tools): pin gh-dash and ship .gh-dash.yml for the oldest-first PR queue and issue triage #1882

Closed

Description

@dan-petty

Friction

The dashboard GitHub tab (#685) shipped on 2026-10-21 in one commit (7f61846a: 1,932 lines added, 706 of them tests). It has never loaded a queue from live GitHub. Both of its GraphQL queries ask for statusCheckRollup { pageInfo }, and GitHub rejects that field. The tab also polls GitHub every 60 seconds whenever the dashboard runs. A person who wants the oldest-first pull request queue, or issue triage, in a terminal has no working tool.

An open tool does this job: gh-dash, a terminal dashboard for pull requests and issues. Each tab is a GitHub search filter, and a key can run a shell command.

Evidence

  • src/devops_cli/github/pr_queue.py:60-62 and 132-134 ask for statusCheckRollup { pageInfo { hasNextPage } }. On 2026-10-22, fetch_pr_queue("dan-petty", "devops-cli", 1) raised GitHubOperationError: Field 'pageInfo' doesn't exist on type 'StatusCheckRollup'. The 28 tests in tests/test_github_dashboard.py give the parser hand-written dicts and never send the query.
  • gh-dash v4.26.2: Go, MIT license, released 2026-10-16, last push 2026-10-17, 12,663 stars, 95 open issues and 16 open pull requests (GitHub search API, 2026-10-22). One person wrote 353 of 585 commits. AI_POLICY.md bans contributions that an LLM wrote or found. A person files every upstream issue.
  • The real installer (install_binary) installed the pinned linux-amd64 build in a scratch home. It checked the sha256, linked gh-dash, and _at_pin returned True. All four hashes were also checked by download (see tools-lock-entries.md).
  • An offline run of the pinned binary (dummy host, no token use) with gh-dash --config .gh-dash.yml loaded the file. It started 4 PR section fetches, then 3 issue fetches after s, then 1 notification fetch after a second s. GH_DASH_CONFIG was set to a file that does not exist, and the flag won.
  • Config lookup, from the source (internal/config/parser.go): --config, then GH_DASH_CONFIG, then .gh-dash.yml in the current directory (not the git root), then the global file. The first start always writes ~/.config/gh-dash/config.yml.
  • Budget, measured with GraphQL dry runs on queries rebuilt from the source (one point of error per query is possible): a PR section costs 1 point at 20 rows and 2 at 50, an issue section 1 point at 20 rows. A full refresh of the PR view costs 5 points. A first selection of a row costs up to 2 points, and a second selection before the next refresh costs 0. A key command or a terminal focus loads the next page of the current section while one exists, at 1 point a page. The key s cycles PRs, Issues, Notifications. With the stock config the Notifications view makes up to 160 lookups at once (8 sections of 20), which is up to 320 GraphQL points and about 168 REST calls (source reading, not run against GitHub).

Proposed remedy

Add these files and edits:

  • src/devops_cli/tools_lock/tools.lock: the [binary.gh-dash] block from tools-lock-entries.md, and the note for the header.
  • .gh-dash.yml at the repository root (63 lines). Four PR tabs (Queue, Failing CI, Needs review, Drafts), each with sort:created-asc. Three issue tabs (Triage and quality, P0 and P1, No milestone). One notification section (reason:review-requested), includeReadNotifications: false and notificationsLimit: 5. refetchIntervalMinutes: 15. Keys w (monitor, then waits for Enter), T (checks), D (unresolved threads) and d (diff), which run devops pr ... with {{.PrNumber}} and {{.RepoName}} only. The first line is a modeline that points to the vendored schema.
  • tests/fixtures/gh_dash_schema/: the 14 JSON files that gh-dash publishes for v4.26.2 (21,018 bytes), their folder layout unchanged, with LICENSE.txt (MIT, Dolev Hadar) and a VERSION file that holds 4.26.2. The files equal https://gh-dash.dev/schema.json and its referenced files, and the output of docs/src/pages/schema*.json.ts in the v4.26.2 tag (compared as JSON on 2026-10-22). Each file has one added trailing newline, so the end-of-file-fixer hook changes nothing.
  • tests/test_gh_dash_config.py: 10 tests (see Tests).
  • tests/test_tools_lock.py: add "gh-dash" to _REQUIRED_TOOLS.
  • pyproject.toml, [tool.mutmut] also_copy: add ".gh-dash.yml".
  • docs/DEVCONTAINER_USAGE.md: a short "Terminal tools" paragraph for gh-dash and k9s. It says: start gh-dash at the root of the clone with gh-dash --config .gh-dash.yml; the first start writes ~/.config/gh-dash/config.yml; gh-dash sends one release-check request to api.github.com at start and has no switch; its approve, merge, close, ready, reopen, update, assign, label and comment keys stay active and use the person's own token; agents never start it.
  • changelog.d/<issue>.md under ### Added.

What it deletes

Nothing. The pull request "refactor(ui): delete the dashboard GitHub tab; gh-dash replaces it" deletes the tab after this change merges.

Tests

tests/test_gh_dash_config.py has 10 tests and runs in under one second in a scratch tree. They check: the shipped config breaks no rule of the strict schema (unknown keys forbidden in every object, and the keys that the parser reads and the published schema lacks added: notificationsSections, includeReadNotifications, defaults.notificationsLimit); four negative controls (a misspelt section key, a misspelt default key, a misspelt keybinding key, a section with no filter); the VERSION of the schema equals the pin in tools.lock; every PR section has sort:created-asc; the "Triage and quality" filter equals the filter of the "Triage & Quality Table" view in .github/project-template.json; a key command uses only RepoName, PrNumber and IssueNumber; the first step of each key command resolves in the real command tree (resolve_devops_argv). The test imports referencing, which jsonschema already requires and uv.lock already holds at 0.37.0. deptry runs on src only (ci.py:751).

Person-run steps

  1. Run devops install-tools --tool gh-dash, then devops install-tools --check.
  2. In a terminal, at the root of the clone, run gh-dash --config .gh-dash.yml. Use your own token (GH_TOKEN, or gh auth login). Check that four PR tabs show, that Queue is oldest first, and that w, T, D and d run the devops commands and return to gh-dash.
  3. Run devops gh rate-limit, keep gh-dash open on the PR tab for 30 minutes, run it again, and report the change of the graphql line. Expected: about 7 points at start, 5 per refresh, and up to 2 per row you select. The graphql line is quiet: it showed 0 of 5,000 used at 13:32 UTC on 2026-10-22, while core showed 923.
  4. Say whether you use GH_DASH_CONFIG or a global gh-dash config, and whether the host terminal has a Nerd Font. The container cannot set the font.
  5. File upstream issues by hand. Find each defect without an LLM (AI_POLICY.md).

Cost (written)

  • Apply, from the drafts: about 300 lines and 21 KB of vendored JSON; about half a day; about 25k to 40k tokens (estimate).
  • Upkeep: a bump edits 1 version, 4 URLs, 4 hashes, and replaces the vendored schema. It happens only on need.
  • Fix cost: gh-dash has one main maintainer. If it stops, pin the last good release, then fork.
  • The internal alternative cost 1,932 lines and does not load.

Dependencies

None. The pull request "feat(tools): pin tuicr with a no-update-check config template and .tuicrignore" edits the same two files (tools.lock, tests/test_tools_lock.py) and opens after this one.

Acceptance criteria

  • devops install-tools --tool gh-dash installs the pinned build, and devops install-tools --check exits 0.
  • gh-dash --config .gh-dash.yml at the clone root shows the four PR tabs, the three issue tabs and one notification tab.
  • uv run pytest tests/test_gh_dash_config.py tests/test_tools_lock.py passes, and uv run devops ci passes.
  • A person has reported the GraphQL change over 30 minutes in the pull request.
  • No agent starts gh-dash (the permission entries come from the pull request "docs(review): the human review round ...").

Size: M.

Proposed design

Problem statement

The existing GitHub dashboard tab in devops-cli fails to load live data from GitHub due to unsupported GraphQL queries and excessive polling. Users need a working terminal tool for oldest-first PR queues and issue triage.

Acceptance criteria

  • Criterion 1: devops install-tools --tool gh-dash installs the pinned build of gh-dash and devops install-tools --check exits 0
    Verification: Run 'devops install-tools --tool gh-dash' followed by 'devops install-tools --check' and verify both commands complete successfully
  • Criterion 2: gh-dash --config .gh-dash.yml at the clone root shows four PR tabs, three issue tabs and one notification tab
    Verification: Execute 'gh-dash --config .gh-dash.yml' from repository root and confirm it displays exactly four PR tabs (Queue, Failing CI, Needs review, Drafts), three issue tabs (Triage and quality, P0 and P1, No milestone) and one notification tab
  • Criterion 3: uv run pytest tests/test_gh_dash_config.py tests/test_tools_lock.py passes
    Verification: Run 'uv run pytest tests/test_gh_dash_config.py tests/test_tools_lock.py' and verify all tests pass without failures
  • Criterion 4: A person has reported the GraphQL change over 30 minutes in the pull request
    Verification: Verify that a report was made documenting GraphQL usage patterns observed during a 30-minute monitoring period
  • Criterion 5: No agent starts gh-dash (the permission entries come from the pull request 'docs(review): the human review round ...')
    Verification: Confirm that no automated agents or processes are configured to start gh-dash automatically, based on the documented permission settings

Key questions

None.

Open questions

  • What is the exact version of gh-dash that needs to be pinned? (missing verified source)
  • What are the required PR tabs for the gh-dash configuration? (missing verified source)
  • What are the required issue tabs for the gh-dash configuration? (missing verified source)
  • What is the notification section configuration for gh-dash? (missing verified source)
  • What keybindings are defined for gh-dash in the configuration? (missing verified source)
  • Which files need to be added for the gh-dash implementation? (missing verified source)

Fit

Needs splitting into 7 items:

  1. Add gh-dash binary to tools.lock
  2. Create .gh-dash.yml configuration file
  3. Add schema fixtures for gh-dash validation
  4. Implement tests for gh-dash configuration
  5. Update tools lock test suite
  6. Update pyproject.toml with new config files
  7. Update DEVCONTAINER_USAGE.md documentation

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    on Oct 22, 2026
  2. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/feature. The candidate adds a new tool and configuration for issue triage and PR queue management.
    • Priority: P2-Medium. This improves developer experience but doesn't block core functionality or fix an urgent issue.
    • Value: Medium. Provides useful developer tooling for managing PRs and issues, improving workflow efficiency.
    • Effort: High. Involves integrating a new binary, creating configuration files, and updating tests with extensive fixture data.
  3. added this to the v0.2.39 milestone on Oct 22, 2026
  4. added
    status/in-progress
    on Oct 22, 2026
  5. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    Proposal needs splitting into 7 items at ae8c2d9 (see proposed design in issue body).

  6. added a commit that references this issue on Oct 22, 2026
    3c38f0b
  7. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1889, merged into release/v0.2.39 as 3c38f0b.

    Cause

    A person who wants the oldest-first pull request queue, or issue triage, in a terminal has no working tool. The dashboard GitHub tab has never loaded a queue from live GitHub. Both of its GraphQL queries ask for statusCheckRollup { pageInfo }, and GitHub rejects that field. Its 28 tests give the parser hand-written dictionaries and never send the query. The tab also polls GitHub every 60 seconds.

    24 file(s) changed.

    How it was verified

    Check runs at dc8c031:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Static Analysis: pass
    • Rule Pack Tests: pass
    • Changed-Test Independence: pass
    • Tests & Coverage: pass
    • Analyze (python): pass
    • Fail-to-Pass Check: pass
    • Analyze (actions): pass
    • Fail-to-Pass Self-Check: pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1882-pin-gh-dash-and-ship-config.md:

    • tools.lock pins gh-dash 4.26.2 with a SHA-256 and an https URL for each platform: test_the_packaged_lock_holds_every_tool_install_tools_installs and test_every_binary_build_is_an_https_url_with_a_sha256.
    • devops install-tools --tool gh-dash installs the pinned build, and devops install-tools --check exits 0.
    • The shipped config breaks no rule of the strict schema, and four defects each fail it: test_the_shipped_config_breaks_no_rule_of_the_strict_schema and test_the_strict_schema_refuses_a_misspelt_or_missing_key.
    • The vendored schema is the schema of the pinned version: test_the_vendored_schema_is_the_schema_of_the_pinned_gh_dash.
    • Every pull request tab lists the oldest pull request first: test_every_pr_section_lists_the_oldest_pull_request_first.
    • The triage tab has the filter of the board view: test_the_triage_section_filters_like_the_triage_view_of_the_board.
    • A key command uses no template value that can hold shell syntax, and its first step is a real devops command: test_a_key_binding_names_no_template_value_that_can_hold_shell_syntax and test_every_key_binding_runs_a_devops_command_that_exists.
    • The config holds only ASCII and sets no glyph: test_the_shipped_config_holds_only_ascii.
    • The config hides every glyph cell that the schema lets it hide: test_the_shipped_config_hides_every_glyph_cell_the_schema_lets_it_hide.
    • tests/test_gh_dash_config.py and tests/test_tools_lock.py pass. They run offline and never start gh-dash. devops ci passes in the pre-push hook before the push.
    • changelog.d/1882.md records the change. CHANGELOG.md and docs/ROADMAP.md are not edited.
    • The docs say how to start gh-dash: docs/DEVCONTAINER_USAGE.md.
    • Not done: the permission entries that stop an agent from starting gh-dash. The sentence "Agents never start gh-dash." is in docs/DEVCONTAINER_USAGE.md. The entries that enforce it are a person-run change to .claude/settings.json. They come with #1884, which pins tuicr. Its second part is the human review round.
    • Pending a person: run devops install-tools --tool gh-dash, then devops install-tools --check. The check prints that every tool is linked at its locked version and exits 0.
    • Pending a person: at the root of the clone, run gh-dash --config .gh-dash.yml with your own token. Check that four pull request tabs, three issue tabs and one notification tab show. Check that Queue lists the oldest pull request first. Check that w, T, D and d run the devops commands and return to gh-dash. Check how the terminal shows the icons in the preview pane, the notification rows and the column headers.
    • Pending a person: run devops gh rate-limit. Keep gh-dash open on the pull request tab for 30 minutes. Run devops gh rate-limit again. Report the change of the graphql line in the pull request. Expect about 7 points at start, 5 for each refresh and up to 2 for each row you select.
    • Pending a person: say whether you use GH_DASH_CONFIG or a global gh-dash config. Say whether the terminal on the host has a Nerd Font.
    • Pending a person: file each upstream gh-dash issue by hand. Find each defect without an LLM, because AI_POLICY.md of gh-dash bans contributions that an LLM wrote or found.
  8. removed
    status/in-progress
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions