Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
priority/p2-mediumPriority P2: standard workscope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationtype/bugType bug: the code does not do what it must
Description
Context & Rationale
Since #703, the help and docs say devops gh project sync does not read task files (lang/en/help.py:757-760, docs/agent/tasks/README.md:13, docs/MCP_TOOLS.md:69). The code still reads them:
sync_projecttakes--task-file, which defaults todocs/agent/tasks(commands/gh.py:523-530). It parses every task file (:551) and builds the "synchronized N items (Backlog: x, Done: y)" line from those counts (:552-575).sync_remote_project(github/projects.py:1377-1428) never writes those items, but adds them to its count:items_synced=len(items) + items_added(:1425).- A dry run returns project Release v0.1.8 #1 and
len(items)without reading GitHub (:1386-1396). - At ef21785,
parse_tasks_to_project_items(Path('docs/agent/tasks'))returns 1,499 items (1,430 Done, 69 Backlog). Each one is reported as synchronized. - The parser (
projects.py:128-282, withProjectItemat:74) has no other caller.github/__init__.py:101,112,160,212re-exports it. AGENTS.md:216("Synchronize task items") and:312("linking card lifecycles with docs/agent/tasks/") repeat the old claim.
Scope & Deliverables
Deliverable:
- Remove
--task-file, the parse and theitemsparameter fromproject syncandsync_remote_project. - Delete these, with their re-exports and their tests (
tests/test_github_projects.py:32,:58,:117,:615):parse_tasks_to_project_itemsand its private helpers;_ITEM_REGEX;_determine_section_status;ProjectItem.
- The result reports only what the run wrote: the issues it added to the board and the fields it provisioned.
- A dry run says what a live run would do. It prints no project number or count that it did not read.
- Reword
AGENTS.md:216and:312, and regeneratedocs/commands/gh.mdanddocs/CLI_REFERENCE.md.
Acceptance criteria:
rg -n 'parse_tasks_to_project_items|ProjectItem\b|--task-file' src tests docs/commands docs/CLI_REFERENCE.md AGENTS.mdreturns nothing.- A test with
run_ghstubbed checks that a live sync which adds 2 issues reports 2, whatever task files exist on disk. - A dry-run test checks that
run_ghis never called and that the output contains no project number. uv run devops cipasses. The changed tests run offline in under 0.1 s each.
Key questions:
- Does feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739 cover this? (proposed) No. feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739 removesgh issues sync-roadmap,reconcile-roadmapandgithub/roadmap_sync.py, but notproject sync. - Does MCP
gh_project_syncchange? (proposed) No. It never passes--task-file(ai/mcp/server.py:1609-1619), so the file fix(mcp): mcp tools and resources call commands and options that exist #836 is changing is not touched. - Should the dry run read the board? (proposed) No. It stays offline: it lists the template's fields and says that open issues will be added.
- Rename
items_synced? (proposed) Yes, toissues_added, since that is all it counts. No shim before 1.0.
Constraint:
- Reconcile behaves exactly as feat(github): board-owned project status, declared field sources and truthful project sync #703 left it.
- refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768's roadmap store later replaces these reads. This item only deletes dead code and fixes the count.
- Tests stub
run_ghand never touch the network.
Strategic Alignment
- Milestone: Backlog (proposed; reprioritization places it)
- Depends on: none
- Related:
- feat(github): board-owned project status, declared field sources and truthful project sync #703 left this behind.
- Split from feat(github): pr readiness requires an issue-linked, completed task file #704.
- refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768 later replaces these reads.
- docs(agents): instruction surfaces state only what is true, and
devops ai agentsnever overwrites AGENTS.md #840 makes the instruction surfaces state only what is true.
Split off #704 during the v0.2.25/v0.2.26 readiness review (2026-10-01): This was the 'honest sync' part of #704. It is a different command and module from the readiness blocker, so keeping it there would make #704's PR deliver two things. It is also left over from #703: that item reworded the help and docs to say task files are not read, but the code still parses them and counts them as synchronized.
Metadata
Metadata
Assignees
Labels
priority/p2-mediumPriority P2: standard workscope/githubGitHub Projects v2, Views, Milestones, Labels, and PR automationtype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 2, 2026
Note from refining #892 (2026-10-02, now in v0.2.29). #892's refined scope deletes
sync_repository_issues_to_project, the step in sync that adds every open issue to the board; intake (#742) takes over adding items. After #892, sync adds no issues, so this item's rename ofitems_syncedtoissues_addedno longer fits. It should drop the count and report the fields provisioned and reconcile's outcome instead. #892 also edits AGENTS.md:313, which this item touches as well, so whichever lands second rebases.dan-petty commentedon Oct 3, 2026
Merged into #892: sync's task-file parse and its count sit in the same sync/reconcile chain that #892 rewrites, and #892 now reports only what the run did. This item's criteria are carried there.