Sitelet https://github.com/github/codeql/pull/23124
Skip to content

[Copilot Dreaming] Preserve injected Rust fixes and remove redundant guidance - #23124

Open
Copilot wants to merge 5 commits into
mainfrom
copilot/dream-curate-memories-20261113050900
Open

Copilot wants to merge 5 commits into
mainfrom
copilot/dream-curate-memories-20261113050900

Conversation

@Copilot

Copilot AI commented Nov 13, 2026

Copy link
Copy Markdown

🧠 How this helps Copilot

Bazel's setup recap and repeated neighboring-target instruction, together with Unified's architecture recap, give maintainers extra descriptions to keep aligned. Removing them avoids that duplicated upkeep without changing build or parser behavior.

Injected Rust source edits can appear correct to Cargo while remaining absent from Bazel's external inputs. Naming the tracked rust-analyzer patch beside the injection command gives Copilot the persistent edit target without another source-selection detour.

Unified repeats a hand-edit restriction that the same readers already receive from the root .expected-file instruction. Removing the Unified copy avoids maintaining a second prohibition while retaining its --learn update recipe.

Review commit by commit for each change's rationale and evidence.

Note

Copilot Dreaming curates this repository's Copilot instructions and skills in the background, proposing updates to help agents work here. Learn more about Copilot Dreaming.

Automated details

Source: curate-memories Dream, analyzing main at d1caf2a1b4e8.

Discarded guidance: A change to Unified's full-test command was withheld because this checkout does not establish the external runner's option contract; the command remains unchanged.

Copilot AI added 5 commits November 13, 2026 05:09
Repeating Bazel's module identity and build topology gives maintainers another description to keep aligned. MODULE.bazel already declares the module identity and internal-module override.
https://github.com/github/codeql/blob/d1caf2a1b4e8f0209fa7af81be129278e6dd8f56/MODULE.bazel#L1-L13

Standalone resolution is configured in .bazelrc.
https://github.com/github/codeql/blob/d1caf2a1b4e8f0209fa7af81be129278e6dd8f56/.bazelrc#L11-L14

The skill's Building standalone section retains the override-pair restriction, narrow stub-extension condition and internal-target prohibition.
https://github.com/github/codeql/blob/d1caf2a1b4e8f0209fa7af81be129278e6dd8f56/.github/skills/bazel/SKILL.md#L151-L174

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Stating the same target-copying duty twice gives maintainers two versions to keep aligned. The rest of the same bullet already requires the closest working neighbor and prefers wrappers for new code, while explaining the mixed packaging conventions.
https://github.com/github/codeql/blob/d1caf2a1b4e8f0209fa7af81be129278e6dd8f56/.github/skills/bazel/SKILL.md#L30-L31

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
A fix to injected Cargo or IDE sources can remain absent from Bazel's generator inputs, so finding the persistent edit target matters. The Bazel target excludes local src/codegen files and supplies them from the external rust-analyzer archive.
https://github.com/github/codeql/blob/d1caf2a1b4e8f0209fa7af81be129278e6dd8f56/rust/ast-generator/BUILD.bazel#L23-L50

That archive applies rust/ast-generator/patches/rust-analyzer.patch, making the tracked patch the place to retain such source changes.
https://github.com/github/codeql/blob/d1caf2a1b4e8f0209fa7af81be129278e6dd8f56/MODULE.bazel#L209-L218

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
An introductory summary of the active language and parser backend gives maintainers another implementation description to update as the extractor evolves. Language registration already identifies Swift as the active front end.
https://github.com/github/codeql/blob/d1caf2a1b4e8f0209fa7af81be129278e6dd8f56/unified/extractor/src/languages/mod.rs#L3-L20

The parser calls swift_syntax_rs::parse_to_json and adapts its result directly.
https://github.com/github/codeql/blob/d1caf2a1b4e8f0209fa7af81be129278e6dd8f56/unified/extractor/src/languages/swift/parse.rs#L11-L21

The task-directed Swift Parser and AST Mapping sections retain parser navigation, the in-process warning, schema regeneration and test prerequisites.
https://github.com/github/codeql/blob/d1caf2a1b4e8f0209fa7af81be129278e6dd8f56/unified/AGENTS.md#L10-L32

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Maintainers should not have to align two versions of the same hand-edit restriction for Unified expected files. The root expected-file instruction already applies to every .expected file and includes the nonempty-testFailures safeguard.
https://github.com/github/codeql/blob/d1caf2a1b4e8f0209fa7af81be129278e6dd8f56/.github/instructions/expected-files.instructions.md#L1-L4

That scoped instruction remains the prohibition's owner; Unified retains its existing runner-based update recipe.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Copilot
Copilot AI requested review from a team as code owners November 13, 2026 05:09
Copilot AI dynamic review requested due to automatic review settings November 13, 2026 05:09

Copilot AI left a comment

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.

🟢 Approval recommended

No active review issues are identified, and the documented guidance-only changes do not affect build, parser, or test behavior.

No open issues 🎉

What changed in this PR

This PR streamlines repository guidance for Copilot and maintainers without changing build, parser, or test behavior.

Changes:

  • Removes duplicated Unified architecture and expected-output guidance.
  • Simplifies Bazel setup and neighboring-target instructions.
  • Documents the tracked Rust Analyzer patch as the persistence point for injected Rust source changes.
File Description
unified/​AGENTS.md Removes redundant architecture and expected-output editing guidance while retaining the --learn workflow.
rust/​ast-generator/​README.md Identifies the tracked patch used to preserve injected Rust source changes in Bazel builds.
.github/​skills/​bazel/​SKILL.md Removes duplicated Bazel setup and neighboring-target guidance.

Review effort: Lite (dynamic)

@github-actions github-actions Bot added documentation Rust Pull requests that update Rust code Unified labels Nov 13, 2026

@asgerf asgerf left a comment

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.

Changes to unified LGTM. Can't really comment on the Rust or Bazel docs though.

@paldepind

Copy link
Copy Markdown
Contributor

The Rust change seems ok to me.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Rust Pull requests that update Rust code Unified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants