sync_board should propagate note title changes to phase board items #192
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-api#192
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
plan-pal-e-docs→ Board Workflow → discovered scope from Westside docs syncRepo
forgejo_admin/pal-e-apiUser Story
As a session agent updating phase notes
I want
sync_boardto detect and propagate title drift on phase itemsSo that board titles stay accurate without manual intervention
Context
When a phase note title changes (e.g. "Phase 11: Girls Tryout — March 21" → "March 24"), the board item title stays stale.
sync_boardreconciles columns (backlog/in_progress/done) based on note status, but does not detect or propagate title drift.The
update_board_itemAPI already supportstitle(PATCH endpoint + SDK). The gap is only insync_boardlogic.Pattern to follow:
sync_issues(lines 458-462 inroutes/boards.py) already detects drift — apply the same pattern to phase items insync_board.Discovered during Westside Phase 11 date correction (2026-03-22). Review:
review-281-2026-03-22.File Targets
Files the agent should modify:
src/pal_e_docs/routes/boards.py—sync_boardfunction (line 324+), add title drift detection for phase items following thesync_issuespattern (lines 458-462)Files the agent should NOT touch:
src/pal_e_docs/routes/boards.pyupdate_board_itemendpoint — already supports titlesrc/pal_e_docs/schemas.pyBoardItemUpdate— already has title fieldAcceptance Criteria
sync_boarddetects when a phase board item title differs from its linked note title and updates itupdatedcount in sync responseTest Expectations
pytest tests/ -k board_sync or sync_boardConstraints
sync_issuesdrift detection pattern (lines 458-462)sync_boardalready returns created/updated/skipped counts — title updates should incrementupdatedChecklist
Related
project-pal-e-docs— project this affectssop-board-workflow— board workflow SOPphase-wkq-11-girls-tryout— the note that exposed this gapreview-281-2026-03-22— ticket review noteScope Review: NEEDS_REFINEMENT
Review note:
review-281-2026-03-22The API and SDK already support
titleonupdate_board_item. The real gap is the MCP tool layer (pal-e-docs-mcp), not this repo.src/pal_e_docs/services/board_sync.pydoes not exist — sync logic is inroutes/boards.pyatsync_board(line 251). Fix the file target.titleparam is inpal-e-docs-mcp/src/pal_e_docs_mcp/tools/boards.py— needs its own issue onforgejo_admin/pal-e-docs-mcp.sync_issuesalready handles title drift (lines 394-399) — same pattern applies.Rescoped per review-ticket verdict
Per review
review-281-2026-03-22:This issue is now scoped to
sync_boardtitle drift only.update_board_itemAPI already supportstitle. The gap is in the MCP tool layer (pal-e-docs-mcp), tracked separately.src/pal_e_docs/routes/boards.py(functionsync_boardat line 251), notservices/board_sync.py.MCP tool gap tracked in separate issue on
pal-e-docs-mcp.Board API: update_board_item should support title fieldto sync_board should propagate note title changes to phase board itemsScope Review: NEEDS_REFINEMENT
Review note:
review-281-2026-03-28Re-review after prior rescope (review-281-2026-03-22). Template is complete and scope is correct (sync_board title drift only). Four minor fixes needed before READY:
[LABEL]Addstory:superuser-maintainlabel to board item #281 (missing traceability)[LABEL]Addarch:board-apilabel to board item #281 (convention isarch:notscope:)[BODY]Update stale line numbers: sync_board is at line 324 (not 251+), sync_issues drift pattern is at lines 458-462 (not 394-399)[BODY]Update Repo field fromforgejo_admin/pal-e-docstoforgejo_admin/pal-e-api(repo was renamed)