Repository navigation
Description
Problem
On 2026-10-01, devops gh project reconcile reported success twice on board #2 while changing nothing. Its three faults are still present at release/v0.2.25 (9c879ae). An offline reproduction, with every gh call patched, shows each one. devops gh project sync, which runs reconcile, has the same adds and hides reconcile's stop (fault 4).
- An unknown or stale quota is treated as exhausted.
_is_graphql_quota_exhausted(src/devops_cli/github/projects.py:1087-1095) returns True in two cases: the ledger has no GraphQL entry, or the entry's reset time has passed.- It reads through
get_quota(github/rate_limiter.py:1146-1162), which never refreshes. - The limiter can ask
/rate_limit(_refresh_from_github,rate_limiter.py:903-933). Everyrun_ghcall does this throughacquire(:1745-1746,_resolve_quota_stateat:869-901). Reconcile checks the quota before its first call (projects.py:1206-1210) and returns. - The ledger is
.data/cache/gh_quota.json, relative to the working directory (config/defaults.py:30,rate_limiter.py:1313-1317). Reconciliation is therefore skipped in three cases: in a fresh worktree, from another directory, and more than an hour after the last GraphQL call. - The dry run then prints
✓ [DRY RUN] Would change 0 of 0 items on project #2 (0 field changes).and exits 0 (commands/gh.py:582-586). - refactor(github): one github session per identity owning token, quota and transport #767 (v0.2.26) gives each identity its own ledger directory, so every identity's first run will start with an empty ledger.
- The earlier claim that the roadmap service would hit this is wrong. No roadmap job calls reconcile, and the roadmap store reads through
run_gh, which refreshes.
- Adding cards uses up the budget for field writes, and the summary hides it.
- The live run spends one
MutationBudget(projects.py:90-110). Its limit is 25, fromDEFAULT_GH_MAX_PROJECT_MUTATIONS_PER_SYNC(config/defaults.py:730). _provision_missing_candidates(projects.py:1098-1123, called at:1219-1222) spends it before any field change (:1229-1238).--statedefaults toall(commands/gh.py:538-540). It selects both the items to evaluate and the items to add, so closed issues and pull requests that were never on the board get added.- fix(github): project reconcile rate quota exhaustion and unbounded candidate mutations #235 (v0.2.19) limited adds to open items. v0.2.21 (838c0d7) added
--statewith the defaultall, which undid that. - On 2026-10-01 all 25 writes were adds and no field changed. The command printed
✓ Changed 0 of 890 items on project #2 (0 field changes)., with 782 planned changes still outstanding. - The 890 counts every candidate, including the ones the run never evaluated (
projects.py:1239-1243). - Nothing records why the run stopped:
_can_continue_reconciliation(:1126-1142) and_apply_field_updates(:1040-1061) only write a log line;- the result has no stop reason and no count of what remains;
- a failed
item-editis dropped without a word (:1053-1059); - the command always exits 0.
- The live run spends one
- The dry run does not predict the live run.
- The dry run evaluates only candidates already on the board (
projects.py:1158-1159,:1224-1228). - The live run adds missing candidates first, then evaluates all of them.
- Reproduction setup: 3 cards on the board with 6 planned changes, 2 open issues and 1 closed issue off the board, and a budget of 3.
- The dry run plans 6 changes on 3 items.
- The live run adds feat(release): v0.1.9 #10, feat(release): v0.1.10 #11 and the closed feat(release): v0.1.11 #12, changes nothing and reports 6 items evaluated.
- The dry run evaluates only candidates already on the board (
gh project syncadds cards the same way, and hides reconcile's stop.sync_remote_project(projects.py:1247-1298) runssync_repository_issues_to_project(:851-879, called at:1281-1283) before it reconciles. That adds every open issue missing from the board. It adds no pull request, because_fetch_repository_issuesdrops them (:810).- Sync then calls reconcile with the default
state="open"(:1284-1287, default at:1188).--reconcile-fieldsdefaults to on (commands/gh.py:472-478). Reconcile's candidates areissues + prs(:1215-1217), so_provision_missing_candidates(:1219-1222) is the only code that puts an open pull request on the board. - Both adds spend the one budget sync creates (
:1280) before any field change. - Sync discards reconcile's result (
:1284-1287). It prints a count built from task files and exits 0 (commands/gh.py:500-506). It turns any exception into a warning, also with exit 0 (:507-509).
Neither command should add cards. Intake (#742, v0.2.25) is the single entry point that turns a candidate into an item by placing it on the board (CONTEXT.md, "Intake"). #742's constraints say "Everything enters through intake". #739 recorded that gh project sync "still adds every open issue. Intake (#742) replaces that." Neither #742 nor #878 removes that add: #742's body never mentions sync or github/projects.py, and #878 keeps the add and reports its count.
Both adds skip intake's duplicate check and placement. After #742, an issue that sync or reconcile puts on the board is an open item with no Priority. #742's resume rule finishes such an item without the duplicate check. If the issue has a priority/pN label, reconcile sets Priority first, and intake never sees the issue.
Pull requests are not items. The roadmap store's add_item refuses them ("only issues are Items", roadmap/github_store.py:556-565), and the store's Items and Candidates leave them out (roadmap/store.py:405-432). A pull request's progress already shows on its issue's card: reconcile forces the linked issue to In Review from the pull request's closing keyword or title (_extract_linked_issue_numbers, projects.py:1064-1084). That needs no pull request card.
Without the adds, the budget goes only to field changes on cards already on the board, and the dry run and the live run plan the same work.
The instructions say the adds happen. #742 rewrites the intake rules in both files (at its own commit: AGENTS.md :112-132, :172, the defect protocol and :329; docs/ROUTINE_TASKS.md :15, :60, :91-92 and :157). It leaves these lines (numbered at 9c879ae):
- AGENTS.md:354: "Every issue and pull request for the active milestone MUST be added as a project item ... using
devops gh project sync". - AGENTS.md:362 and docs/ROUTINE_TASKS.md:235: every PR must "be added as a project item to the project board".
- docs/ROUTINE_TASKS.md:40 ("Links PR to project board ... PR card created") and :236 ("transition the card to
In Review"). - AGENTS.md:313 and docs/ROUTINE_TASKS.md:26 and :50, which have sync put new issues on the board.
ai/instruction_generator.py contains none of these phrases, so they exist only in the two files.
The help also says reconcile writes Milestone (lang/en/help.py:767-770, commands/gh.py:547, ai/mcp/server.py:1763). It never does (projects.py:963-964, tests/test_github_projects_reconcile.py:120). Sync's help and its MCP description say the same, and say that sync adds open issues (help.py:763-766, server.py:1608). Its --reconcile-fields help names Milestone too (help.py:771-773).
The 2026-10-01 backfill was applied by hand from the dry run's plan with gh project item-edit. No open issue was moved to Done, because the board's Auto-close workflow was on at the time.
Acceptance criteria
-
Unknown quota. Stub the
/rate_limitread to return 5000 remaining with a future reset. A dry run then plans the stubbed board's changes instead of 0 of 0, in both cases below:- the ledger has no
graphqlentry; - the entry's reset time has passed.
refactor(github): the github session owns transport, ledger, error classes and link pagination #983 delivers the refresh itself. This test covers reconcile end to end and replaces
test_reconcile_project_custom_fields_skips_when_quota_unknown(tests/test_github_projects_reconcile.py:316). - the ledger has no
-
Unreadable quota. With no
graphqlentry and the/rate_limitread failing,devops gh project reconcileexits 1 and names the quota read as the cause. It prints no "Would change" or "Changed" line. -
Low quota. With 100 GraphQL points left, below the threshold of 500 (
config/defaults.py:727), the dry run and the live run both:- say the run did not start because of the GraphQL quota, with the points left and the reset time;
- exit 1.
The live run makes no write.
-
Reconcile adds nothing.
- Reconcile never runs
gh project item-add, whatever--stateis. - None of these, missing from the board, is added: an open issue, a closed issue, an open pull request and a merged pull request.
- The summary says
1 open issue is not on the board (awaiting intake: devops roadmap intake).Pull requests off the board are not counted.
- Reconcile never runs
-
Sync adds nothing. With
run_ghstubbed, a livedevops gh project syncagainst a board that is missing one open issue and one open pull request makes noitem-addcall. -
The add code is gone.
_provision_missing_candidates,sync_repository_issues_to_project,_sync_single_issue_itemand_add_project_item_with_fallbackare deleted.- So are their tests:
test_reconcile_project_custom_fields_empty_project_provisions_candidates(tests/test_github_projects_reconcile.py:289);test_sync_project_items_skips_when_quota_unknown(:332);test_sync_repository_issues_to_project(tests/test_github_projects.py:692);test_provision_and_reconcile_share_mutation_budget(tests/test_github_projects.py:1034).
- The patch of
sync_repository_issues_to_projectattests/test_github_projects.py:798is removed. rg -n '_provision_missing_candidates|sync_repository_issues_to_project|_sync_single_issue_item|_add_project_item_with_fallback' src testsreturns nothing.
-
Budget stop. Set up a budget of 3, two open issues missing from the board, and five planned field changes on cards already on the board. A live run then:
- applies three field changes;
- makes no
item-addcall; - prints
Stopped early (mutation budget of 3 reached): 2 planned changes remain.; - exits 1.
MCP
gh_project_reconcilereturns that line afterCommand exited with status 1. -
Quota stop during a run. With the stubbed quota dropping below the threshold after two writes, the run stops, names the GraphQL quota, gives the number of planned changes that remain, and exits 1.
-
Failed write. An
item-editthat exits 1 is not dropped. It is counted among the planned changes that remain, and the command exits 1. -
Sync reports reconcile's stop. When reconcile stops early or does not start inside a live
devops gh project sync, sync prints the linegh project reconcilewould print and exits 1. A sync whose reconcile applies every planned change exits 0. -
Dry run matches live run. Run both against the same stubbed board and repository.
items_evaluatedis the same in both and counts only items on the board.- The dry run's planned changes equal the live run's applied changes followed by its remaining ones.
This replaces
test_reconcile_project_custom_fields_dry_run_filters_offboard_candidates(:349). -
A complete run is unchanged. A live run that applies every planned change prints
Changed X of Y items on project #N (Z field changes).and exits 0.test_gh_project_reconcile(tests/test_gh_cmd.py:306) passes. -
feat(github): board-owned project status, declared field sources and truthful project sync #703's rules hold. Writes to cards that already have a Status stay limited to feat(github): board-owned project status, declared field sources and truthful project sync #703's forced cases. Pull request cards already on the board keep theirs, such as Done for a merged one. The
plan_item_changestests (tests/test_github_projects_reconcile.py:41-137) pass unchanged. -
Help.
- Reconcile's help, docstring and MCP description say it writes Status and Priority, not Milestone.
- Sync's help, its
--reconcile-fieldshelp and its MCP description say the same, and say that sync adds no issue or pull request to the board. uv run devops docs generateregeneratesdocs/commands/gh.mdanddocs/MCP_TOOLS.md.
-
Instructions. The lines listed under Problem are reworded by hand: AGENTS.md:313, :354 and :362, and docs/ROUTINE_TASKS.md:26, :40, :50, :235 and :236.
- New work reaches the board through
devops roadmap intake. - A pull request gets no card, and its progress shows on its issue's card.
- A line that feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740, feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742 or fix(github):gh project syncstops parsing task files and reports only what it wrote #878 has already rewritten is left as it is. AGENTS.mdis not regenerated withdevops ai agents(docs(agents): instruction surfaces state only what is true, anddevops ai agentsnever overwrites AGENTS.md #840).rg -n 'PR card created|Links PR to project board|be added as a project item' AGENTS.md docs/ROUTINE_TASKS.mdreturns nothing.
- New work reaches the board through
-
changelog.d/892.mdrecords the change. -
Tests stub
run_ghor the subprocess runner, never touch the network, and take under 1 s each.uv run devops cipasses. -
Person-run checks.
- With
DEVOPS_CLI_DATA_DIRset to an empty temporary directory,uv run devops gh project reconcile --project-number 2 --dry-runprints a plan instead of 0 of 0. uv run devops gh project reconcile --project-number 2does one of two things:- prints
Changed …and exits 0; - prints the stop line and exits 1. Running it again picks up where it stopped.
- prints
- Run
gh project item-list 2 --owner dan-petty --limit 1000 --format json --jq '.items | length'before and afteruv run devops gh project sync. It prints the same count.
- With
Key questions
- Does reconcile keep adding missing issues to the board? Proposed: no.
- Intake (feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742) is the single entry point that places items (CONTEXT.md; feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739; feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742: "intake is the only thing that adds items"). - Dropping the adds removes both the competition for the budget and the difference between the dry run and the live run.
- If reconcile should keep adding after all, it adds only open issues, only after every field change, and the dry run lists those adds.
- Intake (feat(github): single-entry item intake with duplicate detection and placement (
- Do new pull requests still get board cards? Proposed: no.
- Pull requests are not items ("only issues are Items",
roadmap/github_store.py:556-565;roadmap/store.py:405-432). Intake places issues only, so a pull request add would be a second add path, outside intake. - Reconcile still reads open pull requests to force a linked issue into In Review (
projects.py:1064-1084). That works without a pull request card. - Effect: neither
gh project syncnorgh project reconcileputs a new pull request on the board. feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739 counted 211 pull request cards on board 2 on 2026-10-01. Those cards stay, and reconcile and the board's "Pull request merged" workflow still move them to Done. A person can still add a pull request card by hand. - AGENTS.md:354 and :362 and docs/ROUTINE_TASKS.md:40, :235 and :236 are reworded to match (AC "Instructions").
- If the owner wants pull request cards after all, reconcile adds only open pull requests, only after every field change, and the dry run lists those adds.
- Pull requests are not items ("only issues are Items",
- Does
gh project syncchange? Proposed: yes, in three ways.- It adds no open issue:
sync_repository_issues_to_projectis deleted. This is the step feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739 said intake replaces, and neither feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742 nor fix(github):gh project syncstops parsing task files and reports only what it wrote #878 removes it. - It adds no open pull request, because reconcile's add was the only path (fault 4).
- It prints reconcile's stop line and exits 1 when reconcile stops early or does not start.
- Its dry run stays offline and unchanged (
projects.py:1256-1266). The count it prints from task files stays until fix(github):gh project syncstops parsing task files and reports only what it wrote #878 removes the task-file parse. - After this item, sync creates or finds the board, links it, provisions missing fields and reconciles fields on cards already on the board.
- It adds no open issue:
- Who fixes the unknown-quota read? Proposed: refactor(github): the github session owns transport, ledger, error classes and link pagination #983 (v0.2.28).
- refactor(github): the github session owns transport, ledger, error classes and link pagination #983 moves the quota check behind
_is_graphql_quota_exhaustedonto the session. That check then refreshes an unknown or expired entry from/rate_limitbefore deciding. - refactor(github): one github session per identity owning token, quota and transport #767's body still lists the same criterion from before the split into Part A and Part B.
- This item adds the reconcile-level tests and the reporting.
- If refactor(github): the github session owns transport, ledger, error classes and link pagination #983 moves past v0.2.29, this item makes
_is_graphql_quota_exhaustedcall the limiter's existing refresh (rate_limiter.py:903-933) itself, and refactor(github): the github session owns transport, ledger, error classes and link pagination #983 moves that call onto the session later.
- refactor(github): the github session owns transport, ledger, error classes and link pagination #983 moves the quota check behind
- Raise the default budget above 25? Proposed: no. The budget protects the shared GraphQL quota. Stopping early, saying so and running again is enough. A second run continues where the first stopped, because planning reads the board's current values.
- What counts as remaining, and what is the exit code? Proposed:
- Remaining means planned changes that were not applied, whatever the reason: the budget, the quota or a failed write.
- The command exits 1 when anything remains or the run did not start, and 0 otherwise.
- One non-zero code is enough, because the message names the cause.
- Does the dry run stop for the quota threshold? Proposed: yes. It runs the same check before reading the board, so it predicts whether a live run would start. It makes no writes, so the budget never stops it.
- Does
--statekeep defaulting toall? Proposed: yes. Without adds, it only selects which cards on the board are evaluated. Closed issues and merged pull requests need evaluating, so that their cards are forced to Done. - Does reconcile move onto refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768's roadmap store? Proposed: no. The store (
roadmap/store.py:440-539) could replace reconcile's reads and writes. That is a refactor with its own tests, and this item fixes the behaviour in place.
Depends on:
- refactor(github): the github session owns transport, ledger, error classes and link pagination #983 (v0.2.28) for the quota refresh. refactor(github): the github session owns transport, ledger, error classes and link pagination #983 itself depends on refactor(github): one github session per identity owning token, quota and transport #767 (v0.2.26).
- feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742 (v0.2.25) for intake, which places the issues sync and reconcile stop adding and which the summary and the instructions name.
This item lands after both. Nothing else in v0.2.29 touches github/projects.py, gh project sync or gh project reconcile.
Related:
- feat(github): board-owned project status, declared field sources and truthful project sync #703 (closed, v0.2.24): the forced-status rules.
- feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739 (closed, v0.2.25): intake replaces sync's add of every open issue. - refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768 (closed, v0.2.25): the roadmap store.
- fix(github): project reconcile rate quota exhaustion and unbounded candidate mutations #235 (closed, v0.2.19): where the quota check and the open-only adds came from.
- fix(github):
gh project syncstops parsing task files and reports only what it wrote #878 (backlog): sync's task-file count. After this item sync adds nothing, so fix(github):gh project syncstops parsing task files and reports only what it wrote #878's result reports the fields sync provisioned and reconcile's outcome, not issues added. fix(github):gh project syncstops parsing task files and reports only what it wrote #878 also rewords AGENTS.md:313. - feat(github): current release admission, cap, descoping and stall rules (
devops roadmap reprioritize) #740 (v0.2.25) and feat(github): single-entry item intake with duplicate detection and placement (devops roadmap intake) #742 (v0.2.25) also edit AGENTS.md and docs/ROUTINE_TASKS.md. - refactor(github): the board's priority field is the only priority source, and stray type labels merge into type/bug #880 (backlog): the priority source, which changes
declared_priority. There is no order constraint.
Consolidated from #878, #1010
Problem (added). Both items fix the sync and reconcile chain this item rewrites (commands/gh.py entry points, github/projects.py). Checked at 14e5da1:
- fix(github):
gh project syncstops parsing task files and reports only what it wrote #878.project syncstill parses task files (--task-file, defaultdocs/agent/tasks,commands/gh.py:460) and reports counts it never wrote (items_synced=len(items) + items_added,github/projects.py:1295; dry run:1263). The parser (parse_tasks_to_project_items,_ITEM_REGEX,_determine_section_status,ProjectItem) has no other caller. fix(github):gh project syncstops parsing task files and reports only what it wrote #878's planned rename toissues_addedno longer fits, because after this item sync adds nothing (fix(github):gh project syncstops parsing task files and reports only what it wrote #878's comment of 2026-10-02). - fix(github): gh project sync and reconcile resolve their template and task paths against the cwd and fail outside the repo root #1010. The template and task paths default to paths relative to the working directory (
commands/gh.py:438,:460,:464,:696;github/projects.py:113,:176,:279), so both commands fail from a subdirectory with a Rich traceback.reconcile_project_custom_fieldsloads the template even when the board number is given. With the task-file parse gone, only the template path and the-ncase remain.
Acceptance criteria (added).
- From fix(github):
gh project syncstops parsing task files and reports only what it wrote #878:--task-file, the task-file parse and theitemsparameter are removed fromproject syncandsync_remote_project.parse_tasks_to_project_itemsand its helpers,_ITEM_REGEX,_determine_section_statusandProjectItemare deleted, with their re-exports (github/__init__.py) and tests.rg -n 'parse_tasks_to_project_items|ProjectItem\b|--task-file' src tests docs/commands docs/CLI_REFERENCE.md AGENTS.mdreturns nothing. - From fix(github):
gh project syncstops parsing task files and reports only what it wrote #878: sync's result reports only what the run did: the fields it provisioned and reconcile's outcome (see "Sync reports reconcile's stop"). It reports no task-file count. A dry run calls norun_ghand prints no project number or count it did not read. - From fix(github): gh project sync and reconcile resolve their template and task paths against the cwd and fail outside the repo root #1010: the template path defaults to
.github/project-template.jsonunder the repository root (git rev-parse --show-toplevel, ascore/repo.pyresolves it), not the working directory. A CLI test runssync --dry-runandreconcile --dry-runaftermonkeypatch.chdirinto a subdirectory of a fake checkout and both resolve the file. - From fix(github): gh project sync and reconcile resolve their template and task paths against the cwd and fail outside the repo root #1010:
reconcile -n Ndoes not load the template. A missing template with-ngiven does not fail reconcile, and a missing file is reported in one line, not a traceback. - AGENTS.md:216 and :312 (fix(github):
gh project syncstops parsing task files and reports only what it wrote #878's lines) are reworded by hand with the lines listed under "Instructions".docs/commands/gh.mdanddocs/CLI_REFERENCE.mdare regenerated.
Key questions (added).
- Does MCP
gh_project_syncchange? (proposed, from fix(github):gh project syncstops parsing task files and reports only what it wrote #878) No. It never passes--task-file. - Should the dry run read the board? (proposed, from fix(github):
gh project syncstops parsing task files and reports only what it wrote #878) No. It stays offline. - Rename
items_synced? (proposed) Replace it with the provisioned fields and reconcile's outcome. No shim before 1.0. - Does refactor(github): board fields are written only through the roadmap store, and projects.py keeps provisioning #999 conflict? (proposed) No. refactor(github): board fields are written only through the roadmap store, and projects.py keeps provisioning #999 moves board writes onto the roadmap store after this item and keeps its fixes. refactor(github): the board's priority field is the only priority source, and stray type labels merge into type/bug #880 (priority source) stays separate and has no order constraint with this item.
Placement. v0.2.29 and P1 stay as placed by grooming. #878 was P2 backlog, and #1010 was P3 and not yet on the board. Effort grows from Medium to Medium-High.
Update 2026-10-08: delivered scope
Update 2026-10-08: delivered scope (fix/892-project-reconcile-stops)
How the delivery differs from the body:
- Quota source. refactor(github): the github session owns transport, ledger, error classes and link pagination #983 moved to the backlog, so this item's fallback applies, but the decision is made on GraphQL's own numbers. Reconcile first runs the roadmap store's budget query (
board_budget_args, thenrequire_budget, fix(github): GraphQL mutations and implicit-POSTgh apiwrites get the rate limiter's mutation pacing, decided from the request gh sends #1125), and its reply decides;gh api rate_limit(REST) once reported 4,899 points while GraphQL reported 17. When the ledger has no GraphQL entry, or one past its reset,run_gh'sacquirerefreshes it fromgh api rate_limitbefore that query. So an unknown quota is read, and an unreadable one fails there ('Failed to refresh rate limits from GitHub API', exit 1). There is one threshold,DEFAULT_GH_GRAPHQL_BUDGET_FLOOR(250);DEFAULT_GH_GRAPHQL_SAFETY_THRESHOLD(500) and_is_graphql_quota_exhaustedare deleted. Between writes, the ledger entry stops the run only when it is valid and below the floor.rate_limiter.pyis not edited. - Dry run (feat(cli): reachable
--dry-runpreviews for delegated commands #412, owner rule of 2026-10-04).--dry-runand the global dry run make no request; they list the requests a run makes, in order, including the board lookup when-nis absent.--planis the reading preview, so every criterion that says "dry run" (Unknown quota, Low quota, Dry run matches live run, the first person-run check) applies to--plan. MCPgh_project_reconciletakesmode: dry-run | plan | write, withplanas the default. Sync's dry run stays request-free and only describes a sync. - Write path. All changes are planned before any is made. A planned Status or Priority value that the board's field has no option for refuses the run,
--planincluded, before any write; the refusal names the value and the board's options. The old behaviour failed the same write on every run, which would block every later change now that a run stops at its first failed write. A faileditem-editstops the run and counts as remaining. The stop line names it ('the write of on #N failed: …') and prints gh's error as written. Under--state closedno awaiting-intake count is printed, because open issues are not listed. - fix(github): gh project sync and reconcile resolve their template and task paths against the cwd and fail outside the repo root #1010. The template defaults to
find_repo_root() / .github/project-template.jsonon every--templateoption. Reconcile reads the board's own field options (Status options required) through the roadmap store'sfield_list_argsandFieldListingPayload, failing closed on a failed, partial or empty read. It never loads the template; only the CLI does, to find the board when-nis absent. - Line numbers at 910b823. The AGENTS.md lines were :194, :221, :366, :406 and :414. Also reworded: docs/ROUTINE_TASKS.md :61 and :276, docs/agent/README.md:14, docs/agent/tasks/README.md (item 6 and the archival line), docs/SDLC.md:285, the GitHub project management knowledge-base page (including its stale 'reconciliation against docs/agent/tasks/' line),
ai/instruction_generator.py:412, and help'sproject_appandproject_audit. - Person-run checks are pending a person (see the task file). The first reads
uv run devops gh project reconcile --project-number 2 --plan. The third uses baregh project item-list 2 --owner dan-petty --limit 1000 --format json --jq '.items | length'before and afteruv run devops gh project sync.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 2, 2026
Grooming (2026-10-02): Priority p2-medium → p1-high.
Checked against the code at the release/v0.2.25 tip.
dan-petty commentedon Oct 2, 2026
Placed in v0.2.29 on 2026-10-02. v0.2.29 holds P1 work that has to land before v0.3.0, which v0.2.25 to v0.2.28 had no room for. Backlog P1 items were ranked by Value, then Effort, with defects and security fixes first at a tie. This item ranked in the top ten, and two of the release's twelve slots stay open for P1 items that surface before then.
dan-petty commentedon Oct 2, 2026
Refined to Ready on 2026-10-02 for v0.2.29. The body was checked claim by claim against release/v0.2.25 at 9c879ae, and a second agent then tried to refute it; every major objection was resolved in a revision. Cited lines were updated for code that moved, and the scope was corrected where merged work changed it. Acceptance criteria were tightened so each fails on the current code, and every key question now has a proposed answer.
dan-petty commentedon Oct 8, 2026
Premise check (2026-10-08, code at 910b823, gh 2.102.0): reconcile writes with
gh project item-edit <n> --owner --url --field --value(github/projects.py:997-1016) and reads fields withgh project field-list(:646-660).ProjectFields. That query also fetches the first 100 board items with all their field values.rateLimitforgh projectcalls, so the limiter charges each one an estimate of 2 (github/rate_limiter.py:1825-1831). The ledger that_is_graphql_quota_exhaustedreads (projects.py:1094-1100) therefore can't see this spend:Suggested amendment: write by node id (
--id/--project-id/--field-id, as the roadmap store'scard_edit_argsdoes, about 1 point per write), or re-readrateLimitfrom GraphQL before each write. The roadmap store has the same root cause; #1361 fixes it there.fix(github): project reconcile reads an unknown quota, adds no card a…
dan-petty-bot commentedon Oct 8, 2026
What changed
#1379, merged into
release/v0.2.29as 27d89af.28 file(s) changed.
How it was verified
Check runs at de30fe0:
Acceptance Criteria of
docs/agent/tasks/task-892-project-reconcile-stops-and-reports.md:graphqlledger entry, or one past its reset,reconcile --planthrough the realrun_ghrefreshes the ledger from the stubbedgh api rate_limitand plans the stubbed board's changes (test_reconcile_reads_an_unknown_quota_and_plans_the_board, replacingtest_reconcile_project_custom_fields_skips_when_quota_unknownandtest_is_graphql_quota_exhausted).gh api rate_limitfailing, the command exits 1 naming the rate-limit read and prints noWould changeorChangedline (test_reconcile_exits_1_naming_the_quota_read_when_github_cant_report_it).--planand the live run say the run did not start, with the points left and the reset time, and exit 1; the live run makes no write (test_reconcile_refuses_to_start_below_the_floor,test_reconcile_below_the_floor_does_not_start_and_exits_1).item-addfor an open issue, a closed issue, an open pull request or a merged one off the board, whatever--stateis; the summary reads1 open issue is not on the board (awaiting intake: devops roadmap intake).when open issues were listed (test_reconcile_never_adds_a_card_whatever_the_state).item-add(test_sync_adds_no_card_and_exits_0_when_reconcile_completes)._provision_missing_candidates,sync_repository_issues_to_project,_sync_single_issue_item,_add_project_item_with_fallbackand their tests are deleted, and thergcheck oversrcandtestsreturns nothing.item-add,Stopped early (mutation budget of 3 reached): 2 planned changes remain.and exit 1; MCPgh_project_reconcileraisesCommand exited with status 1:followed by that line.test_the_graphql_quota_stops_the_run_between_writes).item-editthat exits 1 stops the run, is counted among the remaining changes, and the command exits 1; gh's error is printed as written, brackets included (test_a_failed_writes_error_is_printed_as_gh_wrote_it).--planand the live run before any write, naming the value and the options (test_a_value_the_board_has_no_option_for_refuses_the_run_before_any_write).devops gh project syncwith onlyrun_ghstubbed, it prints the stop line and exits 1, or reconcile's refusal in one line with exit 1, and exits 0 when reconcile completes.items_evaluatedis equal and counts only cards on the board, and the plan's changes are the live run's applied changes followed by its remaining ones (test_the_plan_matches_the_live_run, replacingtest_reconcile_project_custom_fields_dry_run_filters_offboard_candidates).Changed 3 of 3 items on project #2 (5 field changes).and exits 0 (test_a_complete_live_run_prints_changed_and_exits_0).plan_item_changestests pass unchanged.--reconcile-fields, the docstrings and both MCP descriptions name Status and Priority only and say no card is added;docs/commands/gh.md,docs/CLI_REFERENCE.mdanddocs/MCP_TOOLS.mdare regenerated.docs/ROUTINE_TASKS.md,docs/agent/README.md,docs/agent/tasks/README.md,docs/SDLC.md, the GitHub project management knowledge-base page andai/instruction_generator.py;rg -n 'PR card created|Links PR to project board|be added as a project item' AGENTS.md docs/ROUTINE_TASKS.mdreturns nothing.gh project syncstops parsing task files and reports only what it wrote #878:--task-file, the task-file parse, theitemsparameter,ProjectItemand their re-exports and tests are deleted;rg -n 'parse_tasks_to_project_items|ProjectItem\b|--task-file' src tests docs/commands docs/CLI_REFERENCE.md AGENTS.mdreturns nothing. Sync reports only the fields it provisioned and reconcile's outcome, and its dry run calls norun_ghand prints no board number.sync --dry-runandreconcile --dry-runresolve it from a subdirectory of a fake checkout;reconcile -nloads no template; a missing template is one line, not a traceback.changelog.d/892.mdrecords the change. Tests stubrun_ghor gh's process, never reach the network, and each call phase stays under 1 s.DEVOPS_CLI_DATA_DIR=$(mktemp -d) uv run devops gh project reconcile --project-number 2 --planprints a plan instead of0 of 0.uv run devops gh project reconcile --project-number 2printsChanged …and exits 0, or the stop line and exits 1, or refuses in one line naming a value the board has no option for; after a stop, running it again picks up where it stopped.gh project item-list 2 --owner dan-petty --limit 1000 --format json --jq '.items | length'prints the same count before and afteruv run devops gh project sync.feat(release): v0.2.29 (#1455)