← Files Vibe CodingARCHIVED FILE
skills/vibe-compatibility/references/reverse-engineering-audit.md
2.68 KB · Oct 4, 2026 · 12:34 UTC
# Reverse Engineering Audit ## Operation Inspect the named boundary and report supported findings. Do not edit product code. Include concrete evidence, impact, the owning source, one remediation direction and a meaningful validation route. Severity follows actual impact, not a category example. ## Goal and scope Reconstruct an existing system's observable contract from authorized evidence and preserve compatibility through differential and golden-master validation. ## Domain invariants - Scope and authorization are explicit; evidence acquisition does not bypass access controls, licensing restrictions, or safety boundaries. - Observed facts, inferred hypotheses, and unknowns are labelled separately with provenance, version, environment, and reproducible capture steps. - The contract includes accepted inputs, normalization, state, outputs, errors, timing/order, retries, side effects, persistence, and compatibility quirks—not only the happy-path schema. - Data model reconstruction distinguishes logical identity, storage representation, indexes/constraints, lifecycle, and derived/cached fields. - Protocol/file-format analysis preserves framing, encoding, endianness, lengths, checksums, optional/unknown fields, version negotiation, and malformed-input behavior. - Golden masters normalize only proven nondeterminism; semantic fields remain asserted, sensitive captures are redacted, and fixtures are versioned and reviewable. - A replacement or adapter is compared differentially against the reference over representative, edge, malformed, retry, restart, and concurrency cases. - Intentional deviations are explicit product decisions with migration/consumer evidence rather than accidental incompatibility. ## Audit method 1. Define the exact reference version/environment and capture authorized inputs/outputs/state/transcripts with timestamps and provenance. 2. Build a behavior matrix across normal, boundary, invalid, duplicate, concurrent, timeout, restart, and partial-failure cases. 3. Infer the smallest model explaining observations and design discriminating experiments for competing hypotheses. 4. Map every observed field/message/table/file element to producer, consumer, lifecycle, optionality, and compatibility behavior. 5. Compare current implementation/reference fixtures and classify deterministic mismatch, nondeterminism, environment variance, and unsupported unknown. ## Priority model - **P0:** compatibility break causing data corruption, unsafe commands, protocol desynchronization, or irreversible user impact. - **P1:** a material behavioral, wire-format, file-format, timing, or migration incompatibility. - **P2:** a lower-risk but concrete fidelity, diagnostics, or maintainability issue.
SHA-256: e428ebbc236ba2eb846624f8f31b9d5a50aa5a4158f099163474bf9214b23905