From ef6ac904f4ac15354ce0633fcc878539f562c25d Mon Sep 17 00:00:00 2001 From: Armando Montanez Date: Wed, 30 Sep 2026 21:30:58 -0700 Subject: [PATCH] Never use param files in aquery commands When param files are enabled (e.g. on Windows by default), command line flags are placed in an external file that can only be generated at build time. Because these don't generate during `aquery` time, when an agent tries to view them they may or may not exist thanks to prior (potentially stale) `build` commands. This can throw some models into confusion loops as they try to reason about why they can't get the information they need. This adjusts the skill to instruct agents to run `aquery` commands with param files disabled. --- SKILL.md | 5 +++++ scripts/extract_bazel.py | 1 + 2 files changed, 6 insertions(+) diff --git a/SKILL.md b/SKILL.md index 1b5af20..fa05f5e 100644 --- a/SKILL.md +++ b/SKILL.md @@ -253,9 +253,14 @@ instead of being a warning nobody reads. > through, or record genuinely-irreducible differences in `any2bazel.json`. > - Use the **same platform/options** as the CMake configure in step 2, or the > two sides aren't comparable. +> - **Always** call aquery with `--features=-compiler_param_file` and +> `--features=-linker_param_file` to disable use of param files. Param files +> are never generated during `aquery` calls, so when they're in use they'll +> always point to files that are either stale, or do not exist at all. ```bash bazel aquery 'mnemonic("CppCompile|ObjcCompile|CppLink|CppArchive", //...)' \ + --features=-compiler_param_file --features=-linker_param_file \ [--config=] [--copt=... --cxxopt=...] \ --output=jsonproto > aquery.json python3 scripts/extract_bazel.py aquery.json model.bazel.json diff --git a/scripts/extract_bazel.py b/scripts/extract_bazel.py index f87b4f0..0551ab4 100644 --- a/scripts/extract_bazel.py +++ b/scripts/extract_bazel.py @@ -25,6 +25,7 @@ Usage: bazel aquery 'mnemonic("CppCompile|ObjcCompile|CppLink|CppArchive", //...)' \ + --features=-compiler_param_file --features=-linker_param_file \ --output=jsonproto > aquery.json python3 extract_bazel.py aquery.json model.bazel.json