You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defer Lane 1 checkpoint deploy until after technical edit
The Lane 1 checkpoint deploy now happens after the technical edit
completes (when the author checks the PR description checkbox), not
after Lead Civil approval. The technical edit reads source MDX
directly via /technical-edit and posts inline comments on the PR, so
no deploy is required during that stage. The live site only ever sees
the post-tech-edit version of the document, and the Director reviews
the same version that will eventually be merged.
Updates the stage-progression workflow's two relevant comment
templates and the corresponding Lane 1 descriptions in both planning
documents.
Copy file name to clipboardExpand all lines: .github/workflows/stage-progression.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ jobs:
98
98
if (checkboxChecked) {
99
99
await removeLabel('stage:ai-editor-review');
100
100
await addLabels(['stage:director-review']);
101
-
await postComment(`✅ **Technical edit marked complete** by the author.\n\nAdvancing to **Director review**.\n\n@usace-rmc/docs-admin please:\n1. If revisions were pushed during the technical edit, trigger a fresh checkpoint deploy of this branch\n2. Assign a member of @usace-rmc/docs-director via the Reviewers sidebar\n\nThe Director will review at the live URL.`);
101
+
await postComment(`✅ **Technical edit marked complete** by the author.\n\nAdvancing to **Director review**.\n\n@usace-rmc/docs-admin next steps:\n1. Trigger a checkpoint deploy of branch \`${branch}\` via Actions → Deploy to GitHub Pages → Run workflow (this is the first deploy of this PR to the live site, with the DRAFT watermark)\n2. Approve the deploy at the production environment gate\n3. Post the live URL in a comment on this PR\n4. Assign a member of @usace-rmc/docs-director via the Reviewers sidebar\n\nThe Director will review at the live URL. If the Director requests changes and the author pushes fixes, re-trigger the checkpoint deploy to refresh the live URL.`);
102
102
}
103
103
}
104
104
return;
@@ -116,7 +116,7 @@ jobs:
116
116
comment = `✅ **Peer review approved** by @${reviewer}.\n\nAdvancing to **RMC Lead Civil review**.\n\n@usace-rmc/docs-admin please assign the appropriate Lead Civil via the Reviewers sidebar. The Lead Civil reviews on the preview URL.`;
117
117
} else if (existingStage === 'stage:lead-civil-review') {
118
118
nextStage = 'stage:ai-editor-review';
119
-
comment = `✅ **Lead Civil review approved** by @${reviewer}.\n\nThe document is ready to be **deployed to the live site** (watermarked) for the technical edit and Director review phases.\n\n@usace-rmc/docs-admin next steps:\n1. Trigger a checkpoint deploy of branch \`${branch}\` via Actions → Deploy to GitHub Pages → Run workflow\n2. Approve the deploy at the production environment gate\n3. Post the live URL in a comment on this PR\n4. Run the \`/technical-edit\` Claude Code skill against this PR (or assign a human technical editor)\n\nAfter the author addresses the technical edit comments and checks the completion checkbox, the document will advance to Director review.`;
119
+
comment = `✅ **Lead Civil review approved** by @${reviewer}.\n\nAdvancing to **technical edit**.\n\n@usace-rmc/docs-admin please run the \`/technical-edit\` Claude Code skill against this PR (or assign a human technical editor). The technical edit reviews the document source MDX directly and posts inline comments on the PR — **no live deploy is needed at this stage**.\n\nAfter the author addresses the technical edit comments and checks the completion checkbox in the PR description, the document will advance to Director review and the site admin will deploy it to the live site (watermarked) at that point.`;
120
120
} else if (existingStage === 'stage:director-review') {
121
121
nextStage = 'stage:ready-to-merge';
122
122
comment = `✅ **Director review approved** by @${reviewer}.\n\nThis PR is **ready for final merge and publication**.\n\n@usace-rmc/docs-admin next steps:\n1. Check out this branch (locally or via github.dev)\n2. Flip the document's \`draft\` flag to \`false\`\n3. Update \`00-version-history.mdx\` with reviewer and approver names\n4. Commit and push\n5. Merge this PR to \`main\`\n6. Approve the final production deploy in the Actions tab`;
Copy file name to clipboardExpand all lines: planning/01-repo-implementation.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ This document describes every structural change to the `usace-rmc/rmc-software-d
9
9
1. Author opens PR with branch prefix `docs/new/`. Preview workflow publishes to unadvertised preview URL.
10
10
2. Peer reviewer reviews on **preview URL**, approves.
11
11
3. RMC Lead Civil reviews on **preview URL**, approves.
12
-
4.Site admin triggers checkpoint deploy of PR branch to **production URL**(watermarked).
13
-
5.AI technical edit: someone with Claude Code runs `/technical-edit`, which posts inline review comments on the PR. Author addresses comments, checks a checkbox in the PR description to confirm completion.
12
+
4.AI technical edit: someone with Claude Code runs `/technical-edit`, which reads the source MDX and posts inline review comments on the PR. Author addresses comments, checks a checkbox in the PR description to confirm completion. **No live deploy at this stage**— the technical edit works on source files.
13
+
5.Site admin triggers checkpoint deploy of PR branch to **production URL** (watermarked). This is the first time the document appears on the live site.
14
14
6. Director reviews on **live URL**, approves with one click.
15
15
7. Site admin flips draft flag to `false`, merges PR to `main`, approves final deploy (watermark removed).
16
16
@@ -419,7 +419,7 @@ jobs:
419
419
if (checkboxChecked) {
420
420
await removeLabel('stage:ai-editor-review');
421
421
await addLabels(['stage:director-review']);
422
-
await postComment(`✅ **Technical edit marked complete** by the author.\n\nAdvancing to **Director review**.\n\n@usace-rmc/docs-admin please:\n1. If revisions were pushed during the technical edit, trigger a fresh checkpoint deploy of this branch\n2. Assign a member of @usace-rmc/docs-director via the Reviewers sidebar\n\nThe Director will review at the live URL.`);
422
+
await postComment(`✅ **Technical edit marked complete** by the author.\n\nAdvancing to **Director review**.\n\n@usace-rmc/docs-admin next steps:\n1. Trigger a checkpoint deploy of branch \`${branch}\` via Actions → Deploy to GitHub Pages → Run workflow (this is the first deploy of this PR to the live site, with the DRAFT watermark)\n2. Approve the deploy at the production environment gate\n3. Post the live URL in a comment on this PR\n4. Assign a member of @usace-rmc/docs-director via the Reviewers sidebar\n\nThe Director will review at the live URL. If the Director requests changes and the author pushes fixes, re-trigger the checkpoint deploy to refresh the live URL.`);
423
423
}
424
424
}
425
425
return;
@@ -437,7 +437,7 @@ jobs:
437
437
comment = `✅ **Peer review approved** by @${reviewer}.\n\nAdvancing to **RMC Lead Civil review**.\n\n@usace-rmc/docs-admin please assign the appropriate Lead Civil via the Reviewers sidebar. The Lead Civil reviews on the preview URL.`;
438
438
} else if (existingStage === 'stage:lead-civil-review') {
439
439
nextStage = 'stage:ai-editor-review';
440
-
comment = `✅ **Lead Civil review approved** by @${reviewer}.\n\nThe document is ready to be **deployed to the live site** (watermarked) for the technical edit and Director review phases.\n\n@usace-rmc/docs-admin next steps:\n1. Trigger a checkpoint deploy of branch \`${branch}\` via Actions → Deploy to GitHub Pages → Run workflow\n2. Approve the deploy at the production environment gate\n3. Post the live URL in a comment on this PR\n4. Run the \`/technical-edit\` Claude Code skill against this PR (or assign a human technical editor)\n\nAfter the author addresses the technical edit comments and checks the completion checkbox, the document will advance to Director review.`;
440
+
comment = `✅ **Lead Civil review approved** by @${reviewer}.\n\nAdvancing to **technical edit**.\n\n@usace-rmc/docs-admin please run the \`/technical-edit\` Claude Code skill against this PR (or assign a human technical editor). The technical edit reviews the document source MDX directly and posts inline comments on the PR — **no live deploy is needed at this stage**.\n\nAfter the author addresses the technical edit comments and checks the completion checkbox in the PR description, the document will advance to Director review and the site admin will deploy it to the live site (watermarked) at that point.`;
441
441
} else if (existingStage === 'stage:director-review') {
442
442
nextStage = 'stage:ready-to-merge';
443
443
comment = `✅ **Director review approved** by @${reviewer}.\n\nThis PR is **ready for final merge and publication**.\n\n@usace-rmc/docs-admin next steps:\n1. Check out this branch (locally or via github.dev)\n2. Flip the document's \`draft\` flag to \`false\`\n3. Update \`00-version-history.mdx\` with reviewer and approver names\n4. Commit and push\n5. Merge this PR to \`main\`\n6. Approve the final production deploy in the Actions tab`;
Copy file name to clipboardExpand all lines: planning/02-documentation-guide-implementation.md
+15-13Lines changed: 15 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ This chapter and the six that follow describe the review and approval process fo
82
82
83
83
Every change falls into one of four lanes based on its scope:
84
84
85
-
**Lane 1: New document.** Peer review → Lead Civil review → Technical edit → Director approval. The document is deployed to the live site (watermarked) after Lead Civil approval so the technical edit and Director review happen at the document's final URL.
85
+
**Lane 1: New document.** Peer review → Lead Civil review → Technical edit → Director approval. The peer review, Lead Civil review, and technical edit all happen against the preview URL or the source files. Only after the technical edit completes does the site admin deploy the document to the live site (watermarked) for Director review at the document's final URL.
86
86
87
87
**Lane 2: Major revision.** Peer review → Lead Civil review. Entire review happens on the preview site. Site admin deploys the final version after Lead Civil approval.
88
88
@@ -92,7 +92,7 @@ Every change falls into one of four lanes based on its scope:
92
92
93
93
## The draft watermark
94
94
95
-
Documents flagged as drafts display a large diagonal "DRAFT" watermark. For Lane 1, the watermark appears on the live site during the technical edit and Director review phases, signaling to any reader that the content is not yet authoritative. The watermark is removed when the site admin flips the draft flag after Director approval.
95
+
Documents flagged as drafts display a large diagonal "DRAFT" watermark. For Lane 1, the watermark appears on the live site during the Director review phase only — the document is not deployed to the live site until the technical edit is complete. The watermark signals to any reader who happens to find the live URL that the content is not yet authoritative. The watermark is removed when the site admin flips the draft flag after Director approval.
96
96
97
97
For Lanes 2 and 3, the document under revision only exists on the preview site during review. The currently-published version on the live site is never watermarked.
98
98
@@ -141,7 +141,7 @@ If a document revision was accidentally pushed to a branch that doesn't start wi
141
141
142
142
**Required reviews.** Peer review → RMC Lead Civil review → Technical edit (AI-assisted) → Director approval.
143
143
144
-
**What happens.** The document is first visible only on the unadvertised PR preview URL, where peer review and Lead Civil reviewhappen. After Lead Civil approval, the site admin deploys the PR branch to the live production site with the DRAFT watermark. The technical edit and Director review both happen on the live URL. After Director approval, the site admin flips the draft flag, merges the PR, and deploys the final version — removing the watermark.
144
+
**What happens.** The document is first visible only on the unadvertised PR preview URL, where peer review, Lead Civil review, and the technical edit all happen (the technical edit reads the source MDX directly via `/technical-edit` and posts inline comments — it does not need a deployed version). Only after the author marks the technical edit complete does the site admin deploy the PR branch to the live production site with the DRAFT watermark. The Director then reviews on the live URL. After Director approval, the site admin flips the draft flag, merges the PR, and deploys the final version — removing the watermark.
@@ -229,7 +229,7 @@ For suggested changes (pre-filled code blocks), you can click "Commit suggestion
229
229
230
230
## The technical edit (Lane 1)
231
231
232
-
After Lead Civil approval and the checkpoint deploy, the technical edit stage begins. A team member runs the `/technical-edit` Claude Code skill, which posts inline review comments on the PR. These comments cover grammar, tense, clarity, terminology, and Section 508 compliance.
232
+
After Lead Civil approval, the technical edit stage begins. A team member runs the `/technical-edit` Claude Code skill, which reads the source MDX files directly and posts inline review comments on the PR. These comments cover grammar, tense, clarity, terminology, and Section 508 compliance. **The document is not yet deployed to the live site at this stage** — the technical edit works on source files, so the live deploy is deferred until the technical edit is complete.
233
233
234
234
Address each comment the same way you address human reviewer comments — push fixes, reply, and the site admin or you can resolve threads as they're addressed.
235
235
@@ -241,7 +241,7 @@ Checking this box is what advances the document to Director review. Don't check
241
241
242
242
## Where reviewers read your document
243
243
244
-
For Lane 1: peer review and Lead Civil review happen on the **preview URL**. After Lead Civil approval, the site admin deploys the document to the **live production site** (watermarked). The technical edit and Director review happen at the live URL. If you push revisions during these phases, the site admin re-deploys so the live URL stays current.
244
+
For Lane 1: peer review and Lead Civil review happen on the **preview URL**. The technical edit reads the source MDX directly via `/technical-edit` and posts inline comments on the PR — no deploy is involved. Only after you mark the technical edit complete does the site admin deploy the document to the **live production site** (watermarked) for **Director review**. If you push revisions during Director review, the site admin re-deploys so the live URL stays current.
245
245
246
246
For Lanes 2, 3, and 4: all review happens on the preview URL only.
247
247
@@ -331,7 +331,7 @@ The technical edit is an AI-assisted editorial review that checks the document f
331
331
332
332
## When it happens
333
333
334
-
The technical edit occurs after the RMC Lead Civil approves a Lane 1 PR and after the site admin has deployed the document to the live site (watermarked). At this point, the document has already been reviewed for technical accuracy by the peer reviewer and for technical quality by the Lead Civil. The technical edit focuses exclusively on editorial quality and accessibility compliance.
334
+
The technical edit occurs after the RMC Lead Civil approves a Lane 1 PR. At this point, the document has already been reviewed for technical accuracy by the peer reviewer and for technical quality by the Lead Civil. The technical edit focuses exclusively on editorial quality and accessibility compliance, and reads the source MDX files directly — **no live deploy is needed at this stage**. The document is only deployed to the live site after the technical edit is complete, and that deploy is for the Director review phase.
335
335
336
336
## How it works
337
337
@@ -366,7 +366,7 @@ The review prompt is a versioned file in the repository at `.github/ai-review/te
366
366
367
367
## Fallback to a human editor
368
368
369
-
A site admin can route any document to a human technical editor instead of (or in addition to) the AI review. The human editor follows the same workflow as peer reviewers and Lead Civils: they're assigned to the PR, review the document (on the live URL for Lane 1), post comments, and submit their review. The author addresses comments the same way. The only difference is that advancement to Director review requires the human editor to click Approve rather than the author checking the checkbox.
369
+
A site admin can route any document to a human technical editor instead of (or in addition to) the AI review. The human editor follows the same workflow as peer reviewers and Lead Civils: they're assigned to the PR, review the document on the **preview URL** (the technical edit happens before any live deploy), post comments, and submit their review. The author addresses comments the same way. The only difference is that advancement to Director review requires the human editor to click Approve rather than the author checking the checkbox.
370
370
371
371
## Who can run the skill
372
372
@@ -467,23 +467,25 @@ For Lane 1, you assign up to three people across the lifecycle: the peer reviewe
467
467
468
468
## Running a checkpoint deploy (Lane 1)
469
469
470
-
After Lead Civil approval, deploy the PR branch to the live site (watermarked):
470
+
After the author marks the technical edit complete (the PR advances to `stage:director-review`), deploy the PR branch to the live site (watermarked) for the Director's review:
471
471
472
472
1. Repo → **Actions** tab → click **Deploy to GitHub Pages** in the sidebar
473
473
2. Click **Run workflow** dropdown (upper right)
474
474
3. Enter the PR branch name in the **ref** field
475
475
4. Click **Run workflow**
476
476
5. When the build completes, click **Review deployments** → check `production` → **Approve and deploy**
477
477
6. Verify the document on the live URL with the watermark
478
-
7. Post a comment on the PR with the live URL so the technical editor and Director know where to read
478
+
7. Post a comment on the PR with the live URL so the Director knows where to read
479
479
480
-
Re-deploy whenever the author pushes revisions during the technical edit or Director review. Post a comment noting the update.
480
+
This is the **first** time the document appears on the live site. The peer review, Lead Civil review, and technical edit all happened earlier on the preview URL or against source files; the live deploy is deferred until the document has passed editorial review.
481
+
482
+
Re-deploy whenever the author pushes revisions during Director review. Post a comment noting the update.
481
483
482
484
## Running the technical edit
483
485
484
-
After the checkpoint deploy, run `/technical-edit` from Claude Code while on the PR branch. If you don't have Claude Code access, coordinate with a team member who does.
486
+
After Lead Civil approval (the PR advances to `stage:ai-editor-review`), run `/technical-edit` from Claude Code while on the PR branch. If you don't have Claude Code access, coordinate with a team member who does. **No deploy is required at this stage** — the technical edit reads the source MDX directly.
485
487
486
-
The AI posts inline review comments. The author addresses them and checks the PR description checkbox to advance.
488
+
The AI posts inline review comments. The author addresses them and checks the PR description checkbox to advance the PR to Director review, at which point you'll run the checkpoint deploy.
487
489
488
490
## Preparing the final merge
489
491
@@ -504,7 +506,7 @@ Lane 4: no version history update needed.
504
506
505
507
Every deploy pauses at the production environment gate. You receive an email. Navigate to Actions → the workflow run → Review deployments → check `production` → Approve and deploy.
506
508
507
-
A Lane 1 document may involve multiple deploys: one checkpoint after Lead Civil approval, re-deploys during technical edit/Director review, and one final deploy after merge.
509
+
A Lane 1 document may involve multiple deploys: one checkpoint after the technical edit completes (for Director review), optional re-deploys during Director review if the author pushes fixes, and one final deploy after merge.
0 commit comments