test-remediation-method
Test remediation
Input: mode=audit|quarantine|consolidate, prepared native audit/inventory, target,
output root, explicit accepted scope, authorizations and required gate configuration.
Output: native audit or remediation ledger plus project-result envelope. Audit is
report-only; quarantine/consolidation apply only explicitly accepted actions.
Load the testing:test-hygiene skill and project-protocol:project-protocol. Reuse a prepared
bundle only for the same target and snapshot; otherwise load testing:test-preparation.
Before mutation check ownership, preserved starting edits, authorization, baseline,
required local/remote lanes and recovery point. Capture pre_phase_sha immediately
before each phase; hard reset requires an exclusively owned clean isolated worktree.
Read references/audit.md or references/consolidate.md in this skill; a quarantine
request uses the audit's accepted remediation section, not another detection pass.
For quarantine paths, exclusion configuration and the native ledger, read
references/quarantine-layout.md inside this skill. This is the sole layout owner.