Parent: #318
Goal
Turn the workspace, package, and release boundaries established in Stage 1 into enforceable v2 repository rules.
Scope
- Add ESLint restrictions for cross-package source imports and imports from private packages by applications.
- Add a dependency-graph check for forbidden directions and cycles.
- Require the agreed pnpm workspace protocol.
- Make CI install with a frozen pnpm lockfile.
- Run linting, type checking, unit tests, production builds, package metadata checks, and tarball consumer checks.
- Build Storybook and run Playwright E2E against package entry points.
- Ensure CI and release jobs do not bypass packages through source aliases.
- Verify that
release-v2.yml publishes only intended public packages.
- Verify that v2 prereleases remain under
next and cannot update latest.
- Verify every public entry point present at the approved split commit or added by an approved synchronized v1 contract change, including
@gravity-ui/graph/playwright when applicable.
- Update and verify required-check contexts in the
v2 ruleset when CI job names change, without leaving merges permanently blocked.
- Document required local verification commands.
Acceptance criteria
Parent: #318
Goal
Turn the workspace, package, and release boundaries established in Stage 1 into enforceable v2 repository rules.
Scope
release-v2.ymlpublishes only intended public packages.nextand cannot updatelatest.@gravity-ui/graph/playwrightwhen applicable.v2ruleset when CI job names change, without leaving merges permanently blocked.Acceptance criteria
nextdist-tag guards are required release gates.v2ruleset match the final CI job names and do not leave valid pull requests permanently blocked.