Skip to content

[copilot] Add removal audit skill - #13784

Closed
simonrozsival wants to merge 1 commit into
mainfrom
dev/simonrozsival/removal-audit-skill-2026-11-25
Closed

simonrozsival wants to merge 1 commit into
mainfrom
dev/simonrozsival/removal-audit-skill-2026-11-25

Conversation

@simonrozsival

Copy link
Copy Markdown
Member

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 drop FileWrites, 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-audit skill 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 existing XA#### 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 --check passed. No build or tests were run because this change adds agent documentation only.

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 simonrozsival changed the title [docs] Add removal audit skill [copilot] Add removal audit skill Nov 25, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant