This repository was archived by the owner on Jun 26, 2026. It is now read-only.
RFC: Knowledge Distillation — Evolving /gsd:pr-branch from Filtering to Synthesis #3519
alexpalyan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context
The current implementation of
/gsd:pr-branchfocuses exclusively on filtering: it removes transient planning artifacts (phases/,research/,todos/) to clean up the Pull Request from AI "noise."While effective for noise reduction, this creates two critical issues for the project lifecycle:
ROADMAP.md,STATE.md) often contain numerous links to the deleted transient files (PLAN.md,SUMMARY.md), leaving the repository with "invalid" documentation.docs/).Proposal: The Distillation Pattern
We propose evolving
/gsd:pr-branchfrom a simple filter into a knowledge compiler. Instead of just deleting files, the tool should distill the essence of the.planning/artifacts into self-contained, human-readable documentation in thedocs/directory before cleaning the branch.1. Scratchpad vs. Final Report
.planning/remains the AI’s private "scratchpad" for rapid state updates and transient thoughts.docs/becomes the public, high-signal interface for human developers and reviewers.2. Artifact Mapping & Synthesis
We suggest a mapping where GSD artifacts are synthesized into standard documentation formats:
PROJECT.md/REQUIREMENTS.mddocs/VISION.md/docs/PRD.mdcodebase/(Explore maps)docs/ARCHITECTURE.mdphases/*/CONTEXT.md&RESEARCH.mddocs/adr/XXXX-name.md(ADR)phases/*/SUMMARY.mddocs/CHANGELOG.mdROADMAP.mddocs/ROADMAP.md(Human-readable)3. Link Sanitization
The tool should automatically rewrite Markdown links during synthesis. For example:
[Plan](.planning/phases/01-auth/PLAN.md)➡️[Phase 01: Auth (Completed)].Benefits for Solo Developers
docs/format even if the GSD tooling is not present.Implementation Path
This could be implemented as a new step in the
pr-branchworkflow or as a pre-hook for/gsd:ship. It would leverage thegsd-sdkto handle the extraction and templating logic.We believe this shift from "hiding AI tracks" to "AI reporting to humans" is a vital step in the evolution of agentic development workflows.
All reactions