Skip to content

Add review artifact persistence and user overlay mechanism#721

Open
Focus695 wants to merge 1 commit intogarrytan:mainfrom
Focus695:feat/review-artifact-and-user-overlay
Open

Add review artifact persistence and user overlay mechanism#721
Focus695 wants to merge 1 commit intogarrytan:mainfrom
Focus695:feat/review-artifact-and-user-overlay

Conversation

@Focus695
Copy link
Copy Markdown

@Focus695 Focus695 commented Mar 31, 2026

Summary

  • plan-eng-review: Auto-persist full review findings to ~/.gstack/projects/{slug}/eng-reviews/ as markdown. Future sessions can recover context without re-running the review. The file includes all issues (P0-P3), user decisions, architecture diagrams, test coverage diagrams, and implementation order.
  • gstack-upgrade: Add user overlay step after ./setup completes. Copies files from ~/.gstack/user-overlay/<skill-name>/ over the freshly-upgraded skill directory, preserving user customizations that would otherwise be lost to git reset --hard.

What problem does this solve?

  1. Lost review context: After /plan-eng-review completes, the detailed findings only exist in the JSONL metadata log and the conversation. If the session ends, all the structured findings (issues, decisions, diagrams) are gone. This PR writes a persistent markdown file that future sessions can read.

  2. Updates destroy customizations: gstack-upgrade uses git reset --hard origin/main + ./setup, which destroys any local edits users made to skill files. The user overlay mechanism (~/.gstack/user-overlay/) gives users a safe place to store their customizations that survive upgrades.

Files changed

  • plan-eng-review/SKILL.md.tmpl + generated SKILL.md — adds "Review Artifact" section
  • gstack-upgrade/SKILL.md.tmpl + generated SKILL.md — adds "Step 4.5: Apply user overlay" (existing vendored sync moved to Step 4.6)

Test plan

  • Run /plan-eng-review and verify ~/.gstack/projects/{slug}/eng-reviews/ gets a markdown file
  • Create overlay at ~/.gstack/user-overlay/plan-eng-review/SKILL.md.tmpl, run /gstack-upgrade, verify overlay is applied
  • Verify vendored copy sync still works (Step 4.6)
  • Run bun run gen:skill-docs to confirm regeneration is clean

Two changes to improve gstack's persistence across sessions and upgrades:

1. plan-eng-review: Auto-persist full review findings to
   ~/.gstack/projects/{slug}/eng-reviews/ as markdown. Future
   sessions can recover context without re-running the review.

2. gstack-upgrade: Add user overlay step after ./setup completes.
   Copies files from ~/.gstack/user-overlay/<skill-name>/ over the
   freshly-upgraded skill directory, preserving user customizations
   that would otherwise be lost to git reset --hard.
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.

1 participant