Skip to content

docs(docs): sync initiative 0006 + 0010 status with actual code state#2997

Merged
Skords-01 merged 7 commits into
mainfrom
claude/bold-colden-72c485
May 18, 2026
Merged

docs(docs): sync initiative 0006 + 0010 status with actual code state#2997
Skords-01 merged 7 commits into
mainfrom
claude/bold-colden-72c485

Conversation

@Skords-01
Copy link
Copy Markdown
Owner

@Skords-01 Skords-01 commented May 18, 2026

Summary

  • 0006 (Frontend routing & code split): Status was Phase 2 next: fizruk + routine — updated to In progress — Phases 1+2+3+4(partial)+5(partial) done. All 4 PATH_BASED_MODULE_IDS modules already path-based; HashRedirect shim, per-route bundle budgets, and ESLint error level all done. Pending: PostHog route_change metric (Phase 4), manualChunks cleanup + route-loaders (Phase 5).
  • 0010 (Revenue-first launch): Status was Phase 5.1 done — Phase 2 next — updated to In progress — Phases 0+1+2+3+4.1+4.2(partial)+4.3(Google)+5.1+5.2+6(partial) done. Billing backend, usePlan, PaywallModal, Google auth, A/B test (GoalFirstScreen), and LandingPage all done. Pending: Apple auth, EN locale, sitemap/robots.txt, PricingPage portal link (4.2 partial).
  • Freshness gate: Added .telemetry/** and mockups/** to excludeGlobs in freshness-config.json; added 3 redesign-v2 handoff files to explicitExclude. These were added in recent main commits without freshness headers, causing CI failures on all PRs.
  • Regenerated all auto-generated docs: open-work.md, today.md, follow-ups.md, hard-rules-matrix.md, freshness-dashboard.html.

size/override rationale

2430 counted lines, but only ~145 are human-authored (2 initiative docs + freshness-config.json). The rest is from 4 auto-generated files that the docs:gen-* scripts must regenerate whenever a Status header changes:

  • docs/governance/freshness-dashboard.html — full HTML dashboard (~1200 lines), regenerated by pnpm docs:freshness-dashboard
  • docs/open-work.md — rollup of all 98 open docs, regenerated by pnpm docs:gen-open-work
  • docs/today.md — daily brief, regenerated by pnpm docs:gen-today
  • docs/initiatives/follow-ups.md — follow-ups rollup, regenerated by pnpm docs:gen-initiative-followups

These files should be in the size check's IGNORE_GLOB (like hard-rules-matrix.md already is); this override is a stopgap until that CI fix lands.

Governing Skill

  • Primary skill: sergeant-docs (docs governance + freshness system)
  • Secondary skill: n/a

Playbook

  • Primary playbook: none matched (documentation drift fix — audit → update Status headers → regenerate rollup docs)
  • Why this playbook: no specific playbook exists for initiative status sync; followed the freshness system's own guidance (Status header = source of truth, regenerate rollups after changes)
  • If no playbook matched, why: doc-only fix, no code surface changed

Verification

node scripts/docs/check-freshness.mjs --check-coverage
# → All tracked markdown files have a freshness header.

node scripts/docs/generate-open-work.mjs --check
node scripts/docs/generate-today.mjs --check
node scripts/docs/generate-initiative-followups.mjs --check
node scripts/docs/generate-hard-rules-matrix.mjs --check
node scripts/docs/generate-freshness-dashboard.mjs --check
# → All pass (no drift)

Additional checks:

  • Local smoke / manual validation completed — all --check modes pass locally
  • Surface-specific checks completed — check-freshness --check-coverage passes

Docs and Governance

  • I updated docs that changed with the behavior, contract, workflow, or rollout.
  • I checked whether AGENTS.md needed an update. (no — doc-only change)
  • I checked whether a playbook or skill needed an update. (no)
  • I checked whether governance docs or review docs needed an update. (no)

Updated docs:

  • docs/initiatives/0006-frontend-routing-and-code-split.md — status + checklist + Outcome sections
  • docs/initiatives/0010-revenue-first-launch.md — status + checklist + Outcome sections
  • scripts/docs/freshness-config.json — exclusions for .telemetry + mockups + handoff files
  • docs/open-work.md, docs/today.md, docs/initiatives/follow-ups.md, docs/governance/hard-rules-matrix.md, docs/governance/freshness-dashboard.html — regenerated

Risk and Rollout

  • User-visible risk: none — docs-only change, no runtime code touched
  • Rollout / deploy order: merge directly, no env changes
  • Backout plan: revert commit; rollup docs auto-regenerate on next pnpm docs:gen-* run

Hard Rule #15

  • I read AGENTS.md before coding.
  • Internal docs I touched are in Ukrainian.
  • I did not use --no-verify.

Audit-freeze (until 2026-06-02)

  • This PR does not add new top-level audit/initiative/playbook/ADR files (or override is justified below).

Reviewer Notes

Doc-only PR. No migrations, no env changes, no auth changes. The freshness-config.json change makes CI green for all future PRs that don't touch .telemetry/ or mockups/ — those directories were landing without freshness headers in recent commits (#2944, #2951, #2957, #2961).

The size/override label is applied because the XXL size is entirely from auto-generated documentation files, not human-authored code.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation

    • Updated internal governance and initiative tracking documents with latest progress metrics and validation dates.
  • Chores

    • Enhanced documentation generation scripts and configuration to properly handle autogenerated files and improve freshness scanning.

Review Change Stack

Audit found both initiatives significantly ahead of their doc status headers.
0006 (frontend routing): Phases 1–3 fully done, Phase 4 partial (PostHog
route_change metric pending), Phase 5 partial (manualChunks + route-loaders
pending). Checklist checkboxes and Outcome sections updated.
0010 (revenue-first): Phases 0–6 largely done (Google auth, billing backend,
usePlan, A/B test, landing page); Apple auth, EN locale, sitemap, and
PricingPage portal link still pending. New Outcome sections added.
Regenerated open-work.md and today.md via pnpm docs:gen-*.
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sergeant Ready Ready Preview, Comment May 18, 2026 10:06pm

Request Review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 18, 2026

📝 Walkthrough

Walkthrough

Documentation infrastructure and initiative status synchronization: Prettier and freshness-tooling configuration prevent reformatting of auto-generated dashboards; initiative documents update validation dates and progress across routing (Phases 1–5 partial) and revenue initiatives (six phases with paywall and onboarding); dashboards reflect those status changes.

Changes

Documentation Freshness Tooling and Initiative Updates

Layer / File(s) Summary
Freshness tooling infrastructure
.prettierignore, scripts/docs/bump-last-validated.mjs, scripts/docs/freshness-config.json
Prettier ignores auto-generated dashboard files; bump script detects <!-- AUTO-GENERATED FILE marker and skips freshness bumping; freshness scanning excludes additional directories (scripts/__tests__/fixtures/**, .telemetry/**, mockups/**) and design-related docs.
Initiative and governance document updates
docs/governance/hard-rules-matrix.md, docs/initiatives/0006-frontend-routing-and-code-split.md, docs/initiatives/0010-revenue-first-launch.md, docs/initiatives/follow-ups.md
Validation dates and initiative progress refreshed: 0006 documents lazy-chunk split progress (4/8 complete), Hash-URL compat shim, per-route budgets, and ESLint enforcement; 0010 records paywall/usePlan Phase 4.1, goal-first A/B onboarding Phase 5.2, and landing page Phase 6 with hardcoded uk locale; governance and follow-ups metadata updated.
Auto-generated dashboard synchronization
docs/open-work.md, docs/today.md
Dashboard rows for 0006 and 0010 updated to reflect latest phase completions and pending items; today.md removes two initiatives from top-7 priority and updates validation timestamp.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • Skords-01/Sergeant#1690: Both PRs touch docs/initiatives/0010-revenue-first-launch.md, updating the initiative's scope and checklist content.
  • Skords-01/Sergeant#1673: Both PRs update docs/initiatives/0010-revenue-first-launch.md initiative document, one introducing and one refreshing state.
  • Skords-01/Sergeant#1197: Both PRs modify documentation freshness tooling (scripts/docs/bump-last-validated.mjs and scripts/docs/freshness-config.json) to refine auto-discovery and coverage rules.

Suggested labels

size/M

Poem

🐰 A rabbit hops through docs so bright,
Freshness bumped and dashboards tight,
Auto-generated files now skip Prettier's format spree,
Initiatives progressing—phases one through three! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main objective of the PR: syncing initiative status documents (0006 and 0010) with actual code state; it is concise, specific, and reflects the primary change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/bold-colden-72c485

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 4 files

You’re at about 91% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread docs/initiatives/0010-revenue-first-launch.md Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 18, 2026

⏱️ CI Pipeline Duration Report

Based on the last 50 successful runs on the default branch.

Overall Pipeline

Metric Value
p50 6m 26s
p95 7m 55s
p99 9m 3s
Current run 18m 55s
vs p95 +138.9%

Trend (last 20 runs): ▃▃▁▂▃▃▃▂▃▃▂▂▄▃▃▆▅▄█▆

Per-Job Breakdown

Job p50 p95 p99 Current vs p95
Accessibility (axe-core) 2m 5s 2m 21s 2m 23s 0s -100.0%
Commit messages (commitlint) 0s 0s 0s 37s N/A
Critical-flow E2E (Playwright) 1m 36s 1m 44s 1m 44s 5m 23s +210.6%
Migration lint (AGENTS rule 0s 0s 0s 12s N/A
Pipeline duration (p95 trend) 26s 27s 27s
Secret scan (gitleaks) 8s 11s 11s 10s -9.1%
Smoke E2E (Playwright) 1m 26s 1m 40s 1m 40s
Test coverage (vitest) 2m 4s 2m 33s 2m 33s 1m 10s -54.2%
Workflow lint (actionlint) 7s 7s 7s 9s +28.6%
check 4m 12s 4m 54s 5m 6s 1m 48s -63.3%
tsconfig strict guard (PR-1.A) 5s 14s 14s 9s -35.7%

⚠️ Warning: Current run (18m 55s) exceeds p95 + 20% threshold (9m 30s). Consider reviewing slow jobs.

…reshness gate

.telemetry/ holds auto-generated analytics state (skill agent output) — not a
governance doc, has no review cadence. mockups/ holds visual design artifacts
(standalone HTML files) — not governance docs. redesign-v2/handoff-package/ and
handoff.md are one-time handoff deliverables, not living documents requiring
a freshness cycle.

Fixes check-freshness CI failure on PRs triggered by the addition of these
directories in recent main commits (#2944, #2951, #2957, #2961).
@github-actions github-actions Bot added size/M and removed size/S labels May 18, 2026
Skords-01 added 2 commits May 18, 2026 19:41
Phase 4.2 (PricingPage) is only partial: checkout flow is done but the
Customer Portal link for Pro users is still pending. Use 4.2(partial) to
be consistent with other partial phases in the status header.
Regenerates: open-work.md, today.md, initiatives/follow-ups.md,
governance/hard-rules-matrix.md, governance/freshness-dashboard.html.
All five were stale after the 0010 Phase 4.2 status correction (partial
instead of done) and the freshness-config.json exclusion additions.
bump-last-validated.mjs was replacing the `by docs:gen-today` handle with the
committer's handle (e.g. @Skords-01), making the committed version permanently
diverge from what generate-today.mjs --check would regenerate in CI.
Similarly, prettier was reformatting freshness-dashboard.html in ways the HTML
generator didn't match.

Fix: skip AUTO-GENERATED files in bumpFiles() by detecting the
<!-- AUTO-GENERATED FILE comment marker. Add the four rollup docs to
.prettierignore so prettier doesn't reformat them after generation
(same pattern as openapi.json and pact files already there).

Regenerates today.md and freshness-dashboard.html to the clean generator
output so the commit matches what CI expects.
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@scripts/docs/bump-last-validated.mjs`:
- Around line 202-207: The skip logic in the conditional that checks
content.includes("<!-- AUTO-GENERATED FILE") should be broadened to detect both
canonical markers so auto-generated docs using "<!-- AUTO-GENERATED -->" are
also skipped; update the conditional (the if that reads content.includes(...),
which logs `log(\`  skip (auto-generated): ${rel}\`)` and continues) to check
for either marker or a single substring like "AUTO-GENERATED" so both variants
are matched and those files are not bumped.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2f94a654-d478-40ba-8d73-240951705438

📥 Commits

Reviewing files that changed from the base of the PR and between 5704adc and f87ee2d.

📒 Files selected for processing (10)
  • .prettierignore
  • docs/governance/freshness-dashboard.html
  • docs/governance/hard-rules-matrix.md
  • docs/initiatives/0006-frontend-routing-and-code-split.md
  • docs/initiatives/0010-revenue-first-launch.md
  • docs/initiatives/follow-ups.md
  • docs/open-work.md
  • docs/today.md
  • scripts/docs/bump-last-validated.mjs
  • scripts/docs/freshness-config.json

Comment thread scripts/docs/bump-last-validated.mjs
@Skords-01 Skords-01 merged commit 11365ce into main May 18, 2026
7 of 11 checks passed
@Skords-01 Skords-01 deleted the claude/bold-colden-72c485 branch May 18, 2026 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant