Repository navigation
[copilot] Add removal audit skill - #13784
Closed
simonrozsival wants to merge 1 commit into
Closed
simonrozsival wants to merge 1 commit into
simonrozsival wants to merge 1 commit into
Conversation
Session review found removals that missed generated, native, build, packaging, and CI consumers. Add an on-demand repository-specific audit checklist and require evidence for liveness claims. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
simonrozsival
added a commit
that referenced
this pull request
Nov 26, 2026
Context: #13430 Context: #13780 A review found missing `external/android-api-docs` initialization in 22 local agent sessions. Fresh worktree builds fail late when `Mono.Android.xml` cannot be produced, even though the Unix and Windows build guides say preparation updates submodules. The `Prepare` target did not actually run that step. Run `git submodule update --init -- external/android-api-docs` from the repository root before the bootstrap builds. Both `make prepare` and solution preparation on Windows use this target. Git checks out the pinned submodule revision rather than following its upstream branch; when already at that revision, no checkout is needed. Initialization or checkout errors stop preparation instead of surfacing much later. Update the build guides to name the submodule explicitly. ### Relationship to other changes #13780 already merged agent-facing manual initialization guidance. This change addresses the build itself and contains no `.github/` edits, so it does not overlap the open `[copilot]` PRs (#13766, #13778, #13782, #13783, #13784, #13785). #13430 replaces preparation entry points but retains the `Prepare` target and does not initialize this submodule. Its `Prepare.proj` hunk was checked to apply on top of this change. It also rewrites both guide paragraphs edited here; if this merges first, keep #13430's replacement guide wording when resolving those documentation conflicts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The review found roughly 10 removal-related findings where a local reference search was not enough to establish that code or build wiring was unused. In .NET for Android, a value can be consumed through generated bindings, Java/JNI names, native exports and
DllImport, shipped MSBuild targets, packaging, workload inputs, CI configuration, or reflection. Moving a target can also silently dropFileWrites, copy, or packaging side effects even when the visible build still succeeds. Missing these edges creates regressions after an apparently straightforward cleanup.The new on-demand
removal-auditskill gives agents a repository-specific consumer checklist, then distinguishes evidence of build wiring from evidence of a live runtime consumer. It requires the removal summary to include the searches and results that establish no consumers, and to validate relevant remaining paths such as packaging or the affected runtime. It also points back to the existingXA####lifecycle rule rather than duplicating it.This focused skill is preferable to expanding always-loaded instructions: most tasks do not remove or retire cross-layer code, but those that do need a reliable search map. No new test or build policy is introduced; validation should target consumers identified by the audit.
Validation:
git diff --cached --checkpassed. No build or tests were run because this change adds agent documentation only.