Skip to content

Mark support for projects that Bazel builds as experimental - #2222

Merged
Mikola Lysenko (mikolalysenko) merged 2 commits into
mainfrom
docs/bazel-experimental
Nov 25, 2026
Merged

Mikola Lysenko (mikolalysenko) merged 2 commits into
mainfrom
docs/bazel-experimental

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Everything socket-patch does differently in a Bazel workspace is now labelled experimental in the docs, with an "Experimental" tier of its own.

Docs only, three files, based on main.

Why

Decided by the maintainer on 2026-11-24. Support for Bazel workspaces is new. Every ruleset is an integration of its own, and a Bazel build fails late: a command can exit 0 and the build after it can still fail, or take the unpatched package. What the commands do there is expected to change as more workspaces are met, so the first release that carries it should not promise the stability of the rest of the matrix.

What changes

  • The v5 support tiers gain "Experimental", between Legacy and Not supported: new, tested in CI only on the build shapes its section lists; what a command does, what it writes and how it words a refusal can change in any v5.x release; a regression is not a release blocker. The tier introduction and the support policy name it as the exception to "keeps working through v5.x", and the policy says a tier can move up from it.
  • The tier table gains a row for a project in a Bazel workspace: hosted and vendored mode are Experimental where the Bazel table says Supported; agent mode has no tier there.
  • "Bazel workspaces: what is supported" opens with the statement and what it covers: the modes, what vex says, the .bazelignore lines, and the refusals and warnings that only a Bazel workspace brings, also for a project in the workspace that Bazel does not build. It says that a build can fail after exit 0 in any shape the table does not list as Supported, to build with Bazel before committing a result, and that none of it applies to a project in no Bazel workspace.
  • Every other Bazel section of docs/ecosystems.md, the two Bazel passages of docs/usage.md and the tier summary of docs/migrating-to-v5.md carry the label or a pointer to it.

The cells of the Bazel table keep their words: they say what was built and tested, and the tier says how much that is worth.

Not in this change

crates/socket-patch-cli/CLI_CONTRACT.md still lists the Bazel flags, variables and codes with no Experimental mark. They are marked in a separate change that is being prepared, together with a switch that turns the Bazel handling off. Until that lands the two documents disagree about those names.

How it was checked

  • The sentence that none of it applies outside a Bazel workspace rests on a read of every call from the rest of the code into the Bazel code on main: each returns once the lookup for a workspace file says there is none.
  • The anchors resolve. The page was not rendered.

Code review

Eight findings on the first commit, seven taken in the second:

  • The scope was "a project that Bazel builds"; it is now "in a Bazel workspace", since the Composer refusal and the .bazelignore lines act on any project in one.
  • The agent cell said agent mode runs as it does without Bazel, and used "Not supported" in a sense the tier table does not define. It now has no tier.
  • The vendored cell covered every ecosystem the section lists. It is scoped to what the Bazel table says is Supported.
  • The opening paragraph tied a failing build to shapes the page does not list, while the known problems list such shapes.
  • The tier introduction, the support policy and the migration guide had no word of the new tier.
  • The label stood in one section only.

Not taken here: the marks in CLI_CONTRACT.md, for the reason above.

🤖 Generated with Claude Code

Support for a project that Bazel builds is new, every ruleset is an
integration of its own, and a Bazel build fails late: a command can exit
0 and the build after it can still fail where a workspace is written in a
way the docs do not list. What the commands do there is expected to
change as such workspaces are met.

So the docs say it is experimental, in three places:

- the v5 support tiers gain an "Experimental" tier, between Legacy and
  Not supported: tested in CI on the shapes its section lists, free to
  change in any v5.x release, a regression not a release blocker;
- the tier table gains a row for a project that Bazel builds;
- "Bazel workspaces: what is supported" opens with the statement, and
  says that none of it applies to a project in no Bazel workspace.

Docs only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…described

A review of the first commit found the label too narrow and in too few
places:

- Its scope was "a project that Bazel builds", while some of what a Bazel
  workspace brings acts on any project in the workspace (the Composer
  refusal in vendored mode, the `.bazelignore` lines). The label now
  covers everything socket-patch does differently because a project is in
  a Bazel workspace, `vex` included.
- The opening paragraph tied a failing build after exit 0 to shapes the
  page does not list, while the section's own known problems list such
  shapes. It now says: any shape the table does not list as Supported.
- The tier row used "Not supported" for agent mode in a sense the tier
  table does not define, said agent mode runs as without Bazel (it writes
  `.bazelignore` lines and adds warnings there), and scoped vendored mode
  to every ecosystem the section lists. The row now gives agent mode no
  tier and scopes the others to what the Bazel table says is Supported.
- The tier introduction and the support policy promised that everything
  keeps working through v5.x, with no exception for the new tier. Both
  now name it, and the policy says a tier can move up from Experimental.
- Each other Bazel section, the two Bazel passages of docs/usage.md and
  the tier summary of docs/migrating-to-v5.md now carry the label or a
  pointer to it.

The Bazel flags, variables and codes of CLI_CONTRACT.md are marked in a
separate change that also adds an off switch.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@mikolalysenko
Mikola Lysenko (mikolalysenko) marked this pull request as ready for review November 24, 2026 20:47
@cursor

cursor Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Documentation-only policy and labeling; no runtime or API behavior changes in this PR.

Overview
Introduces an Experimental v5 support tier and applies it to everything socket-patch does differently in a Bazel workspace (modes, vex, .bazelignore, Bazel-only refusals/warnings).

The tier table and support policy document that Experimental behavior can change in any v5.x release (not a release blocker), can move up to Beta/Supported, and is exempt from the “keeps working through v5.x” rule. The ecosystem matrix adds a Bazel-workspace row: hosted/vendored are Experimental where the Bazel section says Supported; agent has no tier there.

Bazel workspaces: what is supported gains an opening policy paragraph (late build failures after exit 0, build with Bazel before commit, scope limited to projects in a workspace). Each other Bazel subsection in ecosystems.md, plus VEX/agent notes in usage.md and the tiers bullet in migrating-to-v5.md, cross-link or label that status.

Reviewed by Cursor Bugbot for commit afb5570. Configure here.

@mikolalysenko

Copy link
Copy Markdown
Collaborator Author

[agent] PR shepherd: review brief for the approver

What it does. Docs only. Adds an "Experimental" support tier and labels everything socket-patch does differently in a Bazel workspace (modes, vex, .bazelignore lines, Bazel-only refusals) as Experimental, so v5.x can change that behavior without breaking the stability promise for the rest of the matrix.

Risk. Low: three Markdown files, no code, no CLI or build behavior changes.

Look here

Verified

  • Read the whole diff. Every ## Bazel workspaces: … section (10 of them, on both the branch and current main) carries the label. No section was added on main since the branch point that would be missing it.
  • The #v5-support-tiers and #bazel-workspaces-what-is-supported anchors match real headings. No CRLF, no CHANGELOG.md change.
  • CI on afb5570: ci-ok and clippy pass. No review threads are open, and GitHub reports no conflict.

Changes I made. None.

Open questions

  • As the description says, crates/socket-patch-cli/CLI_CONTRACT.md still lists the Bazel flags, variables and codes with no Experimental mark, and a separate change is meant to fix that. Until it lands, the two documents disagree. Is that acceptable for a release cut in between?

Generated by Claude Code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[agent] Reviewed; no major findings.

Merged via the queue into main with commit e9a4cdd Nov 25, 2026
83 checks passed
@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the docs/bazel-experimental branch November 25, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants