Skip to content

fix(document-api): stop requiring alpha wording in overview check#3454

Merged
caio-pizzol merged 1 commit into
mainfrom
caio-pizzol/SD-3262-followup-stop-requiring-alpha
May 22, 2026
Merged

fix(document-api): stop requiring alpha wording in overview check#3454
caio-pizzol merged 1 commit into
mainfrom
caio-pizzol/SD-3262-followup-stop-requiring-alpha

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

The Document API is live, not in alpha. check-overview-alignment was still requiring /\balpha\b/i and /subject to (?:breaking )?changes?/i in apps/docs/document-api/available-operations.mdx. That requirement landed in SD-3262 (#3453) when the API's docs explicitly described it as alpha. Commit 1154ede removed the alpha warning from the docs (API is now live), which broke docapi:check on main: the script fails because it expects launch-phase framing that the docs correctly no longer have.

The fix is to retire the launch-phase requirements, not restore the warning. Per-PR gates should enforce durable structural correctness; they should not force old product positioning back into the docs.

Changes:

  • check-overview-alignment.ts: remove alpha disclaimer and subject-to-change disclaimer from REQUIRED_PATTERNS. Keep the generated reference link + generated-marker requirements, the forbidden-placeholders list, and the unknown-member-path detection.
  • Refresh the file header to describe what the gate actually enforces now, and call out that product-status framing is intentionally NOT enforced.
  • packages/document-api/scripts/README.md: update the script-index row description to match the new behavior (and the correct filename available-operations.mdx, not overview.mdx).

What's still enforced:

  • generated reference link exists in the overview page
  • Generated API surface start / end markers exist
  • No stale placeholder APIs (doc.query(...), doc.table(...), field-annotation selector examples, coming soon copy)
  • All editor.doc.* paths reference known API members

Verified: pnpm run docapi:sync:check → exit 0 (parity 403; outputs 446; examples 5; overview 404 member paths). docapi:check is now green on main once this lands.

After this merges, SD-3261 (retire check-doc-coverage) resumes.

The Document API is live, not in alpha. `check-overview-alignment` was
still requiring `/\balpha\b/i` and `/subject to (?:breaking )?changes?/i`
in `apps/docs/document-api/available-operations.mdx`. That requirement
landed in SD-3262 (#3453) when the API's docs explicitly described it
as alpha. Commit 1154ede removed the alpha warning from the docs
(API is now live), which broke `docapi:check` on main: the script
fails because it expects launch-phase framing that the docs correctly
no longer have.

The fix is to retire the launch-phase requirements, not restore the
warning. Per-PR gates should enforce durable structural correctness
(reference link present, generated markers present, no stale
placeholders, only known `editor.doc.*` paths). They should not force
old product positioning back into the docs.

Changes:

- `check-overview-alignment.ts`: remove `alpha disclaimer` and
  `subject-to-change disclaimer` from `REQUIRED_PATTERNS`. Keep the
  `generated reference link` + generated-marker requirements, the
  forbidden-placeholders list, and the unknown-member-path detection.
- Refresh the file header to describe what the gate actually enforces
  now, and call out that product-status framing is intentionally NOT
  enforced.
- `packages/document-api/scripts/README.md`: update the script-index
  row description so it matches the new behavior (and the correct
  filename `available-operations.mdx`, not `overview.mdx`).

Verified: `pnpm run docapi:sync:check` → exit 0 (parity 403; outputs
446; examples 5; overview 404 member paths).
@caio-pizzol caio-pizzol requested a review from a team as a code owner May 22, 2026 19:08
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 22, 2026

SD-3262

@caio-pizzol caio-pizzol merged commit 052cc2f into main May 22, 2026
27 checks passed
@caio-pizzol caio-pizzol deleted the caio-pizzol/SD-3262-followup-stop-requiring-alpha branch May 22, 2026 19:09
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 22, 2026

🎉 This PR is included in superdoc-cli v0.12.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 22, 2026

🎉 This PR is included in superdoc-sdk v1.11.0

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 22, 2026

🎉 This PR is included in @superdoc-dev/mcp v0.7.0

The release is available on GitHub release

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.

2 participants