Compatibility & protocols · Audit
Reverse Engineering Audit
Reconstruct an existing system's observable contract from authorized evidence and preserve compatibility through differential and golden-master validation.
Vibe Coding 1.3.0 · vibe-compatibility · English technical instructions
Use this workflow
Use this workflow in Codex or Claude Code with the free Vibe Coding plugin. Choose your assistant and prompt language, then add your task details after the prompt.
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
- Define the exact reference version/environment and capture authorized inputs/outputs/state/transcripts with timestamps and provenance.
- Build a behavior matrix across normal, boundary, invalid, duplicate, concurrent, timeout, restart, and partial-failure cases.
- Infer the smallest model explaining observations and design discriminating experiments for competing hypotheses.
- Map every observed field/message/table/file element to producer, consumer, lifecycle, optionality, and compatibility behavior.
- 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.
Workflow ID: reverse-engineering-audit · View the versioned source · Shared workflow and authority rules