Skip to content

feat(reconcile): list installation repositories - #87

Merged
tbhb-agent merged 1 commit into
mainfrom
agent/gm-rec-d2-codex
Nov 23, 2026
Merged

tbhb-agent merged 1 commit into
mainfrom
agent/gm-rec-d2-codex

Conversation

@tbhb-agent

Copy link
Copy Markdown
Collaborator

Why

The reconciler design (#82, PR D2 of its split) needs the installation's repository list before it can walk each repository's pull requests. #83 merged the walk only, because the review fixes pushed the full lister past the 400 line limit. This PR adds the list back.

Behavior change

None for the running service, because no code calls the lister yet. Lister.Repositories returns each repository's ID and full name. It reads at most 10 pages and reports when the cap cut the list short.

Decisions

Only a list that fit on one page keeps its first-page tag. A tag on page one can't see a change confined to page two. Each read of a longer list fetches every page. After a failed page it clears the tags, and a 304 hands back a copy of the cached list. Callers can edit that copy freely. The code is the reviewed version from #83, taken from the branch commit before the split.

Deviations from the task

None.

Needs human judgment

None.

Risk

Low. The lister only reads from GitHub, and no caller exists yet.

Verification

bazelisk test //...
bazelisk run @tbhb_rules//lint:pr_size -- origin/main HEAD

All pass, with pr_size: code=112/400, except //deploy:deploy_test, which fails on macOS only. Tests cover the single-page tag, the two-page case with no tag, the 304 cache copy and the base path /api/v3/. A Codex run wrote the code, and a Claude session checked the diff against main before opening the PR.

Human steering

None.

Opened-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:9c58a18ca5ee6cf5;surface=exec
Assisted-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli

Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:9c58a18ca5ee6cf5;surface=exec
@tbhb-agent
tbhb-agent merged commit fad7166 into main Nov 23, 2026
8 checks passed
@tbhb-agent
tbhb-agent deleted the agent/gm-rec-d2-codex branch November 23, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant