Skip to content

[codex] fix plan reviews to prefer repo-local design docs#703

Open
malikrohail wants to merge 1 commit intogarrytan:mainfrom
malikrohail:malikrohail/fix-local-design-doc-fallback-682
Open

[codex] fix plan reviews to prefer repo-local design docs#703
malikrohail wants to merge 1 commit intogarrytan:mainfrom
malikrohail:malikrohail/fix-local-design-doc-fallback-682

Conversation

@malikrohail
Copy link
Copy Markdown
Contributor

Summary

  • prefer repo-local DESIGN.md / design-system.md before ~/.gstack/projects/... history in plan review design-doc discovery
  • apply the same fallback after /office-hours prerequisite runs so the resumed review stays scoped to the current subproject
  • add a generated-skill regression test for the repo-local fallback

Root Cause

Plan review design-doc discovery only looked in ~/.gstack/projects/$SLUG/..., which is repo-scoped rather than subproject-scoped. In monorepos or multi-product branches, that could pick up the wrong historical design doc even when the current product already had a local DESIGN.md.

Validation

  • bun test test/gen-skill-docs.test.ts

Fixes #682.

@malikrohail malikrohail marked this pull request as ready for review March 31, 2026 08:50
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.

improvements when single branch uses multiple projects

1 participant