Repository navigation
feat(pm-stack): the platform makes an app-asked roadmap change as a PR against the roadmap file (#13497) - #14311
Merged
Merged
Conversation
#13497) Second half of #13497. A change asked for in the PM app (Plan.intake, kind "change") against a capability with a roadmap file is now also made by the platform itself: the change is applied to the roadmap file where it lives and opened as a pull request against that file. - pm-stack/console/src/roadmap-change.ts: applyRoadmapChange applies one checked change to a roadmap file's text (a row added, moved, marked built, dropped, or retitled), read the same way parseRoadmap reads it; openRoadmapChangePr reads the file from main, writes the changed file — and only that file — to a fresh branch through the contents API, and opens the pull request. What cannot be made mechanically (a sub-item; a rewrite in words) is refused with its reason. - Plan.intake: after the issue is filed and the task queued, a change with a roadmap file attempts the pull request; success is recorded on the issue and returned as IntakeResult.pr, failure becomes a note and the intake stands as issue and task, as before. - The app's intake answer names the pull request when one was made. - PM book: the intake Behaviour line in reference/console-views.md updated in the same change. Tests: bun test in pm-stack/console — 576 pass, 0 fail, including 10 new in test/roadmap-change.test.ts. The pull-request test is the acceptance check: across every call the path makes, the only file written is the roadmap file, on the branch the pull request opens from, so the generated diff touches only that file.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Member
Author
|
Lane code-h (task 23256, 2026-11-24): PR is clean, unheld, not draft. Not merging yet: the Proof check was skipped on head, and the lane shell route cannot run the tests. Parked until Proof is green on the head SHA; no code changed here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second half of #13497: the platform makes a roadmap change asked for in the app as a pull request against the roadmap file.
What this does
When the owner asks for a roadmap change in the PM app (
Plan.intake, kindchange) against a capability that has a roadmap file, the platform now makes the change itself:pm-stack/console/src/roadmap-change.ts(new):applyRoadmapChangeapplies one checked change to the file's text — a row added, moved, marked built, dropped, or retitled — reading the file the same wayparseRoadmapdoes, and touching nothing outside the one row.openRoadmapChangePrreads the file from main, writes the changed file to a fresh branch through the contents API, and opens the pull request. Everything goes throughOps.gh, so it runs unchanged on a machine and at the edge.Plan.intake: the issue is filed and the triage task queued exactly as before; then the pull request is attempted. On success it is recorded on the issue and returned asIntakeResult.pr(the app's answer names it). On refusal or failure the answer carries the reason as a note and the intake stands as issue and task alone.Acceptance check
The generated PR diff touches only the roadmap file — by construction (one branch, one contents write) and by test:
test/roadmap-change.test.tsrecords every GitHub call the path makes and asserts the only file written is the roadmap file, on the branch the pull request opens from, with the change visible when the written content is read back throughparseRoadmap.Tests
bun testinpm-stack/console: 576 pass, 0 fail (10 new). Typecheck shows only the two pre-existing missing-type-package errors (@cloudflare/workers-types,bun), none in the changed files.Book
The PM book's intake Behaviour line (
pm-stack/book/reference/console-views.md) is updated in this same PR, per the book-live-update rule.Queue task 22878. This PR is the deliverable; merging it completes #13497's second half.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-24T10:53:03Z", "session_id": null, "lane": null, "host": "amd", "worktree": "/home/user/wt-lane-22878-roadmap", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/wt-lane-22878-roadmap", "repo": "developing-today/code", "branch": "lane/22878-roadmap-change-pr", "sha": "37b3a80419b5955ba911f289b4df81849177ac09" }, "auth_subject": "oc-code-05", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.