Build a disposable learning site that consumes a test CMS and publishes static routes through a preview and production-like edge. Seed 47 published lessons, 6 drafts, and 2 private notes. A passing project shows all 47 public routes, no public draft routes, a traceable deployment and CMS snapshot, bounded stale content, and a recovery path after a broken frontend template. Keep the test account and cache separate from any live publication account.
Project: publish, unpublish, and recover a headless learning site
Construct the release record
Capture source commit, build artifact digest, output directory, deployment ID, target branch, CMS snapshot revision, and expected route count. Paginate the CMS collection until every published ID is received. Reject duplicate slugs and malformed records before building. Run a public-path smoke check against the production-like hostname; inspect the route body, status, canonical path, and index links. Save probe responses with the release record.
Acceptance ledger
Published IDs: 47 distinct records
Public draft or private routes: 0
Duplicate webhook effect: 0
Unpublish propagation: within 900 seconds
Preview credential in browser bundle: 0
Broken links in changed page graph: 0
Rollback: prior artifact reads current CMS snapshotInject publication faults
Publish a new record, then deliver its webhook twice. Edit and unpublish it; replay the earlier publish event after the unpublish event. The route must follow current CMS state, not the last webhook received. Drop one webhook entirely and run inventory reconciliation to restore parity. Hold an old edge response through one cache cycle, purge the affected route and topic index, and measure the actual stale window. Try a candidate preview with draft access, then prove that the production-like hostname cannot serve its draft slug.
Recover the public page graph
Deploy a faulty template that breaks a related-lesson link. Fail the smoke gate, restore the prior artifact, and verify it can render records already published under the new CMS revision. If it cannot, use a compatible forward fix or hide the incompatible route under the agreed policy. Record the deployment switch, independent CMS state, cache state, and final public probes. The exercise is incomplete if only the homepage passes.
Common Mistakes
- Do not use a preview URL as production proof.
- Do not let an old event republish a withdrawn lesson.
- Do not claim rollback repaired CMS data or cached pages without probing them.
Connected lessons
- Web publishing evidence: prove the build, deployment, and live route separately
- Headless CMS publishing: define which records become public routes
- CMS webhooks: handle duplicate, reordered, and missing publication events
- Published content caches: bound the stale window and purge the right key
- Preview and production publishing: keep content and configuration separate
- Web release rollback: check the page graph and preserve content state
- DevOps projects
