How DraftStack works
Pipeline
Section titled “Pipeline”A merged pull request starts the pipeline for each matching project.
-
DraftStack receives the GitHub webhook and identifies the monitored repository.
-
DraftStack fetches the diff, pull request title, description, comments, and reviews.
-
DraftStack builds docs context from the manifest, matched pages, project knowledge, and configured style guides.
-
DraftStack asks the model to plan the smallest safe docs update.
-
DraftStack asks the model to write candidate file changes from the plan, source diff, existing docs, and style guide requirements.
-
DraftStack reviews the candidate output for preservation, hallucinations, and blocking issues.
-
DraftStack stores a suggestion with the diff, affected files, confidence, and reasoning summary.
-
Approval creates a branch and draft GitHub pull request in the documentation repository.
DraftStack keeps non-target sections unchanged when it edits an existing page. That constraint prevents broad rewrites when a pull request only changes one endpoint, flag, or setup step.