Skip to content

Commit d0e7237

Browse files
mikolalysenkoclaude
andcommitted
Add the release focus and a Bazel ledger
INSTRUCTIONS.md gains two sections that every hunter reads: what to hunt first (the common path in each mode, then the workflows people have, then friction), and a release focus for the first release since v5.1.0 (cells tested before 2026-11-11 count as untested, and regressions against the published release come first). It also says that this file wins where an older prompt disagrees with it. discussions.json maps a new `bazel` key to discussion #2262, and state/bazel.md seeds its coverage matrix from the rows of "Bazel workspaces: what is supported" in docs/ecosystems.md. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent 3ba48fa commit d0e7237

3 files changed

Lines changed: 66 additions & 1 deletion

File tree

‎INSTRUCTIONS.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,34 @@ The product's first rule is "do no harm": a project that installed and built
1818
cleanly before socket-patch touched it must still do so afterwards. A finding
1919
that breaks a user's install, build or CI ranks above one that misses a patch.
2020

21+
Your prompt may be older than this file. Where the two disagree (how often
22+
you run, macOS or Windows coverage, probe branches, what to hunt first), this
23+
file wins.
24+
25+
## What to hunt, in this order
26+
1. The common path, end to end, in each mode on a realistic project: scan,
27+
apply the patch (agent `apply`, `vendor`, or the hosted redirect), a fresh
28+
install with {NAME}, the project loading or building the patched code,
29+
`vex`, then rollback or remove and another install.
30+
2. The workflows people actually have with {NAME}: the focus areas your
31+
prompt lists, and the project shapes in step 4 of "Each run".
32+
3. Friction: a message that confuses or misleads, a suggested remedy that
33+
doesn't work when followed, a step the user has to guess. A person who has
34+
never seen this tool should get through the common path without reading
35+
source code.
36+
37+
Odd edge cases come after all three.
38+
39+
## Release focus
40+
A release is being prepared from `main`, the first since v5.1.0 (2026-11-11).
41+
Until it is tagged:
42+
- A coverage cell last tested before 2026-11-11, or with no date, counts as
43+
untested. Re-run the common-path cells before anything else.
44+
- Regressions come first. When something fails on `main`, run the same steps
45+
with the latest published release (step 2 of "Each run"). If the release
46+
passes, start the issue's summary with "Regression since v5.1.0." and name
47+
the first bad commit when you can find it.
48+
2149
## GitHub access
2250
GraphQL is blocked in cloud sessions (HTTP 403), so `gh issue ...`, `gh pr ...`
2351
and `gh api graphql` fail. Don't try them. Use REST through `gh api`, or the

‎discussions.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
"maven": 318,
1919
"gradle": 319,
2020
"nuget": 320,
21-
"composer": 321
21+
"composer": 321,
22+
"bazel": 2262
2223
}

‎state/bazel.md‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[agent] Progress ledger for the scheduled Bazel workspaces bug-hunt routine (label pm:bazel).
2+
3+
Last run: none yet (routine created 2026-11-26).
4+
5+
Bazel support is experimental. The rows below are the rows of "Bazel workspaces: what is supported" in `docs/ecosystems.md`, which says what each cell promises and with which conditions. A cell here records what this routine saw on a real Bazel build: pass (Bazel release, date), fail (issue number), blocked (why) or untested.
6+
7+
## Coverage matrix
8+
9+
| Ecosystem, and how Bazel takes its packages | Hosted | Vendored | Agent (not supported: the build must still pass) | VEX | Nightly CI legs on `main` |
10+
|---|---|---|---|---|---|
11+
| npm: aspect_rules_js over a pnpm lock | untested | untested | untested | untested | unchecked |
12+
| PyPI: rules_python `pip.parse` over a requirements file | untested | untested | untested | untested | unchecked |
13+
| Go: gazelle `go_deps.from_file` over `go.mod` | untested | untested | untested | untested | unchecked |
14+
| RubyGems: rules_ruby `ruby.bundle_fetch` over `Gemfile.lock` | untested | untested | untested | untested | unchecked |
15+
| Cargo: rules_rust `crate.from_cargo` over `Cargo.lock` | untested | untested | untested | untested | unchecked |
16+
| NuGet: `nuget.from_lock` over `packages.lock.json` | untested | untested | untested | untested | unchecked |
17+
| Composer: a rule that runs `composer install` from `composer.lock` | untested | untested (declines by design) | untested | untested | unchecked |
18+
| Maven: rules_jvm_external `maven.install` with a `lock_file` | untested | untested | untested | untested | unchecked |
19+
20+
| Outside a Bazel build | Result |
21+
|---|---|
22+
| A project in no Bazel workspace behaves exactly as v5.1.0 did | untested |
23+
| A project in a Bazel workspace that Bazel does not build | untested |
24+
25+
## Backlog
26+
1. Feasibility: install a pinned Bazel with `scripts/install-bazel.sh` and build one fixture workspace under `crates/socket-patch-cli/tests/fixtures/bazel`. Record every host the sandbox can't reach.
27+
2. The latest nightly run of each `bazel-*.yml` workflow on `main`: which legs are red, and whether an open issue covers each.
28+
3. A project in no Bazel workspace: the same commands on `main` and on v5.1.0 give the same files, output and exit codes.
29+
4. Hosted mode, one ecosystem per run, in the order of the table: the mode's one command, `bazel build`, the patched package in the build, `vex`, the undo, `bazel build` again.
30+
5. Vendored mode, the same way, for the rows the docs list as Supported; for the rows that decline, the command exits 1, writes nothing and the build still passes.
31+
6. Agent mode in a Bazel workspace: the message says what to use instead, and the build still passes.
32+
7. `vex` in each row: `not_affected` only for a package the Bazel build takes patched.
33+
8. The docs table against what you saw: a cell that promises more than the build holds.
34+
35+
## Known non-bugs
36+
See `known-non-bugs/bazel.md` (none yet).

0 commit comments

Comments
 (0)