[US-371] docs: quality gates & configuration reference (catalog of opt-in quality knobs)#375
[US-371] docs: quality gates & configuration reference (catalog of opt-in quality knobs)#375rucka wants to merge 3 commits into
Conversation
- Add reference/quality-gates-configuration.mdx: uniform-schema catalog (what · default · flag/mechanism · how to enable · owning page) for Pre-merge tiering, Coverage guardrail, Template override, Tag Projection, Criticality Table/Overrides — all framework-default OFF - Add "what is NOT optional" section: secret-scanning (gitleaks, R6.5/D24) always-on + base pipeline + full-suite default, never tier-scoped - Distinguish framework/dataset defaults from pair's own dogfood opt-ins - Nav: register page in reference/meta.json + link from reference/index.mdx - Cross-link from concepts/tag-driven-gates, reference/quality-model, customization/templates as the unifying index Refs: #371
Code Review — PR #375Review Information
Review SummaryOverall Assessment
Key Changes SummaryAdds one new reference page Business Value ValidationDelivers the story's value: a single discovery index for opt-in quality configuration. Verified reachable via nav + all three cross-links. Acceptance Criteria Verification
All 5 business rules satisfied (uniform schema, index-not-re-explanation, framework-vs-own defaults, content-only). Link & Build Integrity (verified statically)
Security ReviewN/A — pure MDX under Testing ReviewContent-only; no automated tests expected. Acceptance test is the docs build + link check (verified statically here). No coverage impact. Detailed Review CommentsPositive
Minor Issues 💡
Questions ❓ / By-design notes
Risk Assessment
DecisionAPPROVED WITH COMMENTS. All 5 ACs and all business rules met; content is accurate against every source of truth. Two Minor wording items (Full-suite-default framing; coverage-baseline "creates" phrasing) are worth a quick fix but do not block merge; the rest are by-design/transparency notes. |
…view) Resolve PR #375 review findings: - Tighten 'What is NOT optional' intro: distinguish truly always-on jobs (secret scanning, base pipeline) from the default-on full-suite state that Pre-merge tiering supersedes; annotate the Full-suite-default row. - Coverage guardrail how-to-enable: baseline file is maintainer-authored/ committed, not auto-created by the flag line. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…tup-gates (review) Catalog 'How to enable' cell said the maintainer must hand-create coverage-baseline.md and 'the flag does not generate it', contradicting concepts/tag-driven-gates.mdx and setup-gates (which scaffolds the file from the KB template). Rewrote: setup-gates scaffolds the file; the human commits the measured baseline values (advisory-only until then). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Remediation — round 2 (commits
|
PR Information
PR Title: [US-371] docs: quality gates & configuration reference (catalog of opt-in quality knobs)
Story/Epic: #371, parent epic #93
Type: Documentation
Priority: P1 (Should-Have)
Summary
What Changed
Adds one new docs-site reference page,
apps/website/content/docs/reference/quality-gates-configuration.mdx, that catalogs every opt-in quality configuration knob (pre-merge tiering, coverage guardrail, template override, tag projection, criticality table/overrides) in a uniform schema, plus a clearly separated "what is NOT optional" section for always-on mechanisms (deterministic secret scanning — gitleaks, R6.5/D24 — and the base pipeline). Wires the page into nav (reference/meta.json,reference/index.mdx) and cross-links it from the three related feature pages (concepts/tag-driven-gates.mdx,reference/quality-model.mdx,customization/templates.mdx).Why This Change
Opt-in quality mechanisms are currently discoverable only by reading through
concepts/,customization/, andreference/individually — there is no single place that tells a reader what exists, its default state, and how to turn it on. This page is that unifying index, content-only, introducing no new framework/skill/CLI logic.Story Context
User Story: As a team adopting pair (docs reader / tech lead evaluating what to turn on), I want one docs-site reference page that catalogs every opt-in quality configuration with a uniform schema — and explicitly flags what is instead mandatory/default-on — so that I discover, in one place, which quality mechanisms exist, their default state, and how to enable each.
Acceptance Criteria: All 5 ACs in #371 addressed in this single PR (see mapping below).
Changes Made
Implementation Details
quality-gates-configuration.mdx: opt-in catalog table with the uniform schema (What it is · Default · Adoption flag/mechanism · How to enable · Owning page) for Pre-merge tiering, Coverage guardrail, Template override, Tag Projection, Criticality Table/Overrides (AC1, AC2).disabledfor tiering & coverage guardrail) from pair's own dogfooding choice (guardrail enabled on this repo), so defaults quoted are never conflated with pair's project-level adoption (AC5, Business Rules).reference/meta.jsonandreference/index.mdx; added a## Related(or entry) link fromconcepts/tag-driven-gates.mdx,reference/quality-model.mdx,customization/templates.mdxback to the new page as the unifying index (AC4).Files Changed
apps/website/content/docs/reference/quality-gates-configuration.mdxapps/website/content/docs/reference/meta.json,apps/website/content/docs/reference/index.mdx,apps/website/content/docs/concepts/tag-driven-gates.mdx,apps/website/content/docs/reference/quality-model.mdx,apps/website/content/docs/customization/templates.mdxTesting
Test Coverage
pnpm --filter @pair/website build— full Next.js/MDX production build, 81 static pages generated successfully, no broken internal links.Test Results
Testing Strategy
/docs/reference/quality-gates-configuration, reachable from nav and from each of the three cross-linked feature pages.Documentation
Documentation Updates
Reviewer Guide
Review Focus Areas
disabledfor tiering & coverage guardrail, "KB default — no override" for templates,riskproposed / others off for tag projection, "absent" for criticality table) match the current source of truth inway-of-working.md,risk-matrix.md, and the tag-driven-gates/quality-model pages, and that pair's own dogfoodedCoverage guardrail: enabledis called out as a project-level opt-in, not the framework default.reference/meta.json's sidebar order andreference/index.mdx's list, and that the three related pages link back to it as the unifying index rather than duplicating its table.Testing the Changes
git checkout docs/US-371-quality-gates-configuration-reference pnpm install pnpm --filter @pair/website build pnpm --filter @pair/website dev # then open /docs/reference/quality-gates-configurationKey Test Scenarios
/docs/reference— the new page is listed and links to/docs/reference/quality-gates-configuration./docs/concepts/tag-driven-gates,/docs/reference/quality-model,/docs/customization/templates— confirm each has a working link back to the new catalog page.Dependencies & Related Work
Related PRs
Notes for reviewer (context not visible elsewhere): No ADR/ADL was needed — this is content-only, documents existing mechanisms, introduces no new decision. Classification (from the story):
risk:green/cost:green(docs-only change, no domain/coupling artifacts — coupling dimension excluded from tier per D21/D38).