project-brief.md
Template
58 lines
# Project brief
Copy this file for each project. Replace the prompts with real answers, remove sections that do not apply, and freeze scope before implementation starts.
## Project at a glance
- **Project name:**
- **Owner & final approver:**
- **Engineering / design contact:**
- **Target launch date:**
- **Budget or time cap:**
- **Repository / staging / design links:**
## The problem
- **Who is this for, and what job are they trying to complete?**
- **How do they handle this today (and where does it break down)?**
- **What measurable workflow improvement should exist after release?**
- **What evidence supports this need, and what assumptions still need testing?**
## Smallest useful release
- **Primary end-to-end user flow:**
- **Must-have capabilities:**
- **Explicit non-goals (out of scope for this release):**
- **External dependencies & third-party services:**
### Data & privacy inventory
| Data collected | Purpose | Storage location & retention | How a user or owner deletes it |
| --- | --- | --- | --- |
| | | | |
## Constraints & technical boundaries
- **Supported browsers, viewports, keyboard & 200% zoom expectations:**
- **Accessibility & reduced-motion requirements:**
- **Hosting, performance, and integration constraints:**
- **Content, photography, and legal text owners + due dates:**
- **Key tradeoffs and reasoning (link to `decision-log.md` entries):**
## Risk register
| Risk | Likelihood | Impact | Mitigation / fallback | Owner |
| --- | --- | --- | --- | --- |
| | | | | |
## Acceptance matrix
| Flow or requirement | Observable pass condition | Verification method | Approver |
| --- | --- | --- | --- |
| | | | |
## Scope & change log
| Date | Requested change | Impact on scope, timeline, or cost | Approved by |
| --- | --- | --- | --- |
| | | | |
decision-log.md
Template
39 lines
# Decision log
Record important technical, product, and scope decisions as short Architecture Decision Records (ADRs). Keep entries concise so future maintainers know *why* a choice was made and when to revisit it.
## Index
| ID | Date | Decision | Status | Owner |
| --- | --- | --- | --- | --- |
| ADR-001 | YYYY-MM-DD | | Accepted / Proposed / Superseded | |
---
## ADR-001: [Short decision title]
- **Status:** Accepted
- **Date:** YYYY-MM-DD
- **Deciders:**
- **Related brief / issue:**
### Context
What problem, constraint, or tradeoff required a decision?
### Options considered
| Option | Strengths | Costs / risks |
| --- | --- | --- |
| Option A (Chosen) | | |
| Option B | | |
### Decision
State the chosen approach clearly in 2–4 sentences.
### Consequences & follow-up
- **What becomes easier:**
- **What becomes harder or requires extra care:**
- **Revisit trigger (what condition would justify changing this later?):**
launch-checklist.md
Template
63 lines
# Launch checklist
Adapt this starting point to your project. Mark an item `[x]` only after verifying it in a realistic environment. Record verification evidence—or a clear reason for marking an item N/A—in the log below.
- **Project:**
- **Release / tag / commit:**
- **Target environment:**
- **Reviewer:**
- **Date:**
- **Go / No-Go decision:**
## 01 / Using the app
- [ ] Complete the primary user task end-to-end in an environment matching production.
- [ ] Test invalid input, empty states, duplicate submissions, and failed dependency paths.
- [ ] Verify forms, confirmation emails/notifications, redirects, and download links end-to-end.
- [ ] Check mobile screens, wide desktop viewports, and 200% browser zoom without horizontal overflow.
- [ ] Confirm copy, contact links, prices, legal notices, and static assets are current.
## 02 / Accessibility
- [ ] Complete every primary action using only a keyboard with visible focus indicators.
- [ ] Verify form labels, error associations (`aria-describedby` / `role="alert"`), and heading order.
- [ ] Confirm meaningful `alt` text on informative images and `aria-hidden` on decorative visuals.
- [ ] Check text/control contrast and test with `prefers-reduced-motion: reduce`.
- [ ] Verify dialogs, drawers, and menus trap or restore focus cleanly and close on `Escape`.
## 03 / Data and security
- [ ] Verify authentication and authorization on every protected route, API, and admin action.
- [ ] Validate untrusted input and uploaded files (type, size, filename, storage path) on the server.
- [ ] Confirm secrets, debug pages, stack traces, and source maps are absent from public responses.
- [ ] Confirm `DEBUG=False`, HTTPS redirect, secure/HttpOnly cookies, CSRF, and CSP headers are active.
- [ ] Check dependency vulnerability advisories and verify personal data retention/deletion paths.
## 04 / Delivery and recovery
- [ ] Confirm DNS records, TLS certificates, environment variables, and cron/worker health.
- [ ] Run automated tests, static/asset build checks, and inspect migrations for destructive locks or data loss.
- [ ] Verify realistic page weight, caching headers, and compressed/responsive media assets.
- [ ] Take a fresh backup and verify restoration into a safe non-production target.
- [ ] Confirm rollback steps (see `rollback-runbook.md`), monitoring alerts, and post-deploy smoke checks.
## Environment & integration preflight
Record variable names and vault locations only—never paste actual secrets here.
| Variable or integration | Purpose | Confirmed in target env? | Secret / vault owner |
| --- | --- | --- | --- |
| | | | |
## Evidence & exceptions log
| Check or area | Status (Pass / N/A / Fail) | Evidence, test output, or exception reason |
| --- | --- | --- |
| | | |
## Release sign-off
- **Approved by:**
- **Deployed at (UTC):**
- **Live smoke-test verification:**
- **Post-launch follow-ups:**
handoff-guide.md
Template
65 lines
# Project handoff
Keep this file with the repository. Record **where** credentials are stored and **who** holds access—never paste passwords, API keys, recovery codes, or private keys here.
## Overview
- **Project & purpose:**
- **Production URL:**
- **Staging / preview URL:**
- **Repository URL & default branch:**
- **Current release / commit:**
- **Project owner:**
- **Engineering & support contacts:**
## Service & dependency inventory
| Component / service | Provider / host | Plan or quota limits | Billing / access owner | Renewal or review date |
| --- | --- | --- | --- | --- |
| App / web server | | | | |
| Database / storage | | | | |
| DNS / TLS | | | | |
| Transactional email | | | | |
## Run locally
- **Required runtimes & tool versions:**
- **Install & build commands:**
- **Required environment variable names (and where authorized maintainers fetch values):**
- **Database setup & safe sample data command:**
- **Local dev start command & URL:**
- **Test, lint, and asset build verification commands:**
## Deploy & roll back
- **Who can approve and trigger production releases:**
- **Exact deployment command or CI workflow:**
- **Database migration steps & lock/data-loss checks:**
- **Post-deploy smoke checks (URLs, forms, logs):**
- **Previous known-good release & rollback steps (see `rollback-runbook.md`):**
- **When a rollback requires a database restore instead of code revert alone:**
## Data, backups & access
- **Primary data stores, retention periods, and deletion workflows:**
- **Automated backup schedule & off-host storage location:**
- **Last verified restore drill (date, environment tested, result):**
- **Exact restore command / procedure:**
- **Credential vault / password manager collection:**
- **Account transfer & former-contractor access revocation checklist:**
## Maintenance cadence
- **On every deploy:**
- **Weekly (logs, disk space, failed jobs, error queue):**
- **Monthly (dependency updates, TLS/domain check, backup restore spot-check):**
- **Quarterly (access audit, unused keys/accounts cleanup, dependency major upgrades):**
- **Known limitations & open issues:**
## Acceptance
- [ ] Owner has confirmed access to repository, hosting, domain/DNS, and vault.
- [ ] Maintainer ran local setup, test suite, and reviewed deployment/rollback commands.
- [ ] Latest backup restore procedure has been verified and documented.
- [ ] Support scope, escalation path, and known limitations are agreed.
- **Accepted by & date:**
rollback-runbook.md
Template
44 lines
# Rollback & incident runbook
Use this runbook during production incidents or failed deployments. Keep commands exact, test restore procedures before launch, and never paste secrets here.
## First 5 minutes (Triage)
- [ ] Confirm the symptom (HTTP 5xx, broken auth/form, asset mismatch, slow queries, or third-party outage).
- [ ] Identify scope: all users, specific route, or single integration.
- [ ] Halt any in-progress deployment or automated migration.
- [ ] Capture recent logs, current commit/image tag, and error timestamps before restarting services.
## Recovery decision table
| Situation | Safe recovery path | Watch out for |
| --- | --- | --- |
| Bad app code or template change (no schema migration) | Roll back to previous release tag/image and verify static assets | Cached CDN/browser manifests if asset hashes changed |
| Misconfigured environment variable or feature flag | Fix env config in host/vault and restart service | Verify secret rotation didn't invalidate active sessions |
| Additive DB migration (`CREATE TABLE` / nullable column) + bad app code | Roll back app release; leave additive schema intact or reverse cleanly | Do not blindly run destructive reverse migrations in production |
| Destructive DB migration or corrupted data write | Put app in maintenance mode, restore pre-deploy snapshot, then deploy previous release | Data created between backup timestamp and restore will be lost—record window |
| Third-party API/SMTP outage | Verify graceful degradation/error handling and queue or log failed jobs | Avoid tight retry loops that exhaust rate limits |
## Code rollback procedure
1. Identify the last known-good release/commit/image: `<command or tag lookup>`
2. Check out or redeploy the previous release: `<exact deploy/rollback command>`
3. Rebuild or verify collected static assets / cache manifest: `<command>`
4. Restart the application service and confirm healthy status: `<health command>`
5. Re-run critical smoke tests (home, auth/admin, primary form, static CSS/JS HTTP 200).
## Database restore procedure
1. Confirm pre-incident backup file and checksum from `<backup location>`.
2. Stop write traffic / background workers before replacing the database.
3. Restore into a verification copy first if time permits; otherwise execute restore command: `<exact restore command>`
4. Run integrity check and verify schema migration state (`migrate --check` / table row sanity check).
5. Resume traffic and verify key user journeys end-to-end.
## Post-incident review
- **Incident date & duration:**
- **User / business impact:**
- **Triggering change or root cause:**
- **What slowed down detection or recovery?**
- **Preventive fixes (test, alert, guard, or runbook update) with owner & due date:**
example-brief.md
Fictional sample
54 lines
# Example brief: a workshop booking page
> **Fictional example:** This is a worked sample for a fictional ceramics studio, not a real client project. Use it to gauge the level of detail to aim for in `project-brief.md`.
## Project at a glance
- **Project name:** Kiln & Wheel Weekend Workshop page
- **Owner & final approver:** Maya Reyes (studio owner)
- **Engineering / design contact:** Mark Ocampos
- **Target launch date:** Two weeks from kickoff, before autumn registrations open
- **Budget or time cap:** Two weeks of part-time implementation
- **Repository / staging / design links:** `https://example.invalid/repo` · `https://staging.example.invalid`
## The problem
- **Who is this for, and what job are they trying to complete?** Local adults looking for a beginner-friendly weekend activity who want dates, pricing, location, and a fast way to reserve a seat.
- **How do they handle this today?** Visitors currently message the studio on social media to ask about open dates, materials fees, and cancellation rules.
- **Desired workflow improvement:** Visitors can check dates, pricing, studio address, and FAQs on one page and go straight to the existing booking checkout link.
- **Evidence & open assumptions:** Organizer counted 24 repeat DMs last month asking for schedule and materials cost. *Assumption to confirm:* whether visitors need parking and transit notes on the page.
## Smallest useful release
- **Primary end-to-end user flow:** Land on page → scan upcoming dates, price, and what is included → open booking checkout in the studio's existing booking provider.
- **Must-have capabilities:** Accessible schedule & pricing section, verified workshop photos, studio address & transit directions, clear FAQ, and direct booking link + fallback email contact.
- **Explicit non-goals (out of scope):** Custom user accounts, on-site payment checkout, gift card balances, or email newsletter automation.
- **External dependencies:** Existing third-party booking provider handles seat inventory, payments, and confirmation emails.
### Data & privacy inventory
| Data collected | Purpose | Storage location & retention | How a user or owner deletes it |
| --- | --- | --- | --- |
| None on this landing site | Booking happens on the third-party provider | Server stores standard short-lived access logs only (14 days) | Logs rotate automatically; booking data managed under provider policy |
## Constraints & technical boundaries
- **Supported browsers, viewports, keyboard & 200% zoom:** Current Chrome, Safari, Firefox, and mobile browsers; full keyboard operability with visible focus; zero horizontal scroll at 320px width and 200% zoom.
- **Accessibility & reduced-motion:** Semantic headings, descriptive link labels, compressed images with `alt` text, and `prefers-reduced-motion` respected.
- **Hosting & content boundaries:** Deploy as static/lightweight HTML+CSS on existing host; organizer supplies final dates, pricing, and cleared photos 5 days before launch.
- **Key tradeoffs:** Linking out to the existing booking tool instead of building custom checkout saves ~3 weeks and avoids storing payment or attendee PII (recorded in `decision-log.md`).
## Risk register
| Risk | Likelihood | Impact | Mitigation / fallback | Owner |
| --- | --- | --- | --- | --- |
| Workshop dates sell out or shift after launch | High | Medium | Document 2-minute date update + redeploy workflow in `handoff-guide.md` | Maya Reyes |
| Third-party booking URL changes between drafts | Medium | High | Verify live URL on mobile & desktop in launch checklist before promotion | Mark Ocampos |
## Acceptance matrix
| Flow or requirement | Observable pass condition | Verification method | Approver |
| --- | --- | --- | --- |
| Core booking flow | Visitor sees next date, full address, total price, and booking button above the fold | Desktop & phone manual review | Maya Reyes |
| Keyboard & zoom check | Every link, FAQ accordion, and CTA works via `Tab`/`Enter` and wraps cleanly at 200% zoom | Manual keyboard + zoom audit | Mark Ocampos |
| Asset & link check | All photos load in WebP/responsive sizes; booking link opens exact active session | Live staging smoke test | Both |
example-handoff.md
Fictional sample
50 lines
# Example handoff: a workshop booking page
> **Fictional example:** This companion worked example shows how `handoff-guide.md` and release verification look for the fictional ceramics workshop site in `example-brief.md`. Never put real passwords, tokens, or private client details in versioned files.
## Overview
- **Project & purpose:** Kiln & Wheel Weekend Workshop informational page linking to external booking checkout.
- **Production URL:** `https://workshop.example.invalid`
- **Repository URL & default branch:** `https://example.invalid/kiln-workshop` (`main`)
- **Current release / commit:** `v1.0.0` (`a1b2c3d`)
- **Project owner:** Maya Reyes (`owner@example.invalid`)
- **Engineering & support contact:** Mark Ocampos
## Service & dependency inventory
| Component / service | Provider / host | Plan or limits | Billing / access owner | Renewal or review date |
| --- | --- | --- | --- | --- |
| Static site hosting + TLS | Example Cloud Host | 100 GB bandwidth / mo | Maya Reyes | Monthly auto-renew |
| Domain registrar & DNS | Example Registrar | `.example` domain | Maya Reyes | 2027-08-15 |
| Booking & checkout | External Booking Co. | Existing studio plan | Maya Reyes | Existing subscription |
## Run locally
- **Required runtimes:** Node 22 LTS (optional local preview server) or any static file server (`python3 -m http.server 8080`).
- **Build & link check command:** `npm run check` (validates HTML, broken internal links, and image alt attributes).
- **Environment variables:** None required at runtime (`BOOKING_URL` is configured at build time via `site.config.json`).
## Deploy & roll back
- **Who can approve and trigger releases:** Maya Reyes approves copy/dates; either Maya or Mark can trigger deployment.
- **Deployment workflow:** Update dates in `data/sessions.json`, commit to `main`, and push—CI builds static files, runs `npm run check`, and publishes on pass.
- **Post-deploy smoke checks:** Open production URL on mobile and desktop, verify updated workshop date, test FAQ toggles via keyboard, and click booking CTA to confirm it opens the right checkout session.
- **Rollback steps:** In the host dashboard, promote previous deployment `v0.9.4` (1-click instant rollback, zero database state involved) and verify live URL returns HTTP 200.
## Data, backups & access
- **Primary data stores:** Static repository only; no user accounts or database stored on this host.
- **Backup & restore verification:** Repository mirrored in GitHub + local archive; tested clean clone + build (`npm run check`) on 2026-10-12.
- **Credential vault:** Registrar, hosting, and booking logins are stored in the studio's shared password manager (`Studio Ops` vault); developer access is scoped to repository deploy key only.
## Evidence & release sign-off (sample)
| Check or area | Status | Verification evidence |
| --- | --- | --- |
| Primary booking flow (desktop + mobile) | Pass | Tested live booking link on Safari iOS and Firefox desktop; opens Autumn Cohort checkout |
| Keyboard & 200% zoom | Pass | Tabbed through skip link, FAQ `<details>`, and booking CTA; no horizontal scroll at 320px / 200% zoom |
| Security headers & HTTPS | Pass | Confirmed HSTS, CSP (`default-src 'self'`), and zero mixed-content warnings |
| Database backup & restore | N/A | Static site only; no application database used |
- **Accepted by:** Maya Reyes — 2026-10-14