REI Reconstruction Parity
When to Use
- Reimplement a single observed application or firmware behavior from evidence while preserving original product boundaries. Use for clean-room compatibility, API replacement, local rebuilds, feature-level parity testing, corpus design, differential tests and regression-proof delivery.
- When performing authorized, evidence-led reverse engineering with SHA-256 artifact tracking.
Entry contract
Use only the target the user provides or explicitly authorizes. Establish the question, artifact SHA-256, permitted scope, desired output and actually available tools. If repository source is complete, inspect it first instead of treating every task as binary RE.
Available tooling
Use the existing project test runner and REI case ledger. Build a fixture manifest with fixed input/output pairs. External REA analysis tools are optional sources, not proof of parity.
Procedure
- Turn observed behavior into a spec with explicit unknowns.
- Separate code ownership and reference evidence; do not copy private data or leaked credentials.
- Implement via adapter/gateway/feature flag, leaving the old core intact.
- Build golden tests, negative tests, metamorphic properties and timing tolerance where relevant.
- Publish parity coverage, mismatches, fallback and rollback procedures.
Evidence and limits
Do not copy source merely because decompilation is available or claim binary-identical reproduction without measurements.
For every conclusion record: target hash, source address/offset/file line, method and version, status (observed/inferred/unknown), coverage, alternative hypotheses, next verification. Do not invent installed tools or report target execution that did not happen.
See workflow checkpoints for outputs and acceptance criteria.
🏰 Rei Skills — Curated by Rootcastle Engineering & Innovation | Batuhan Ayrıbaş
Engineering Beyond Boundaries | admin@rootcastle.com
1---2name: rei-reconstruction-parity3description: "Specify and verify clean-room behavioral parity and differential test corpora from observed artifact evidence."4risk: safe5source: rootcastle-rei6category: reverse-engineering7metadata:8 source: https://skillmd.com/skills/rootcastleco/rei-reconstruction-parity9 tags: "reverse-engineering, reconstruction, parity-testing, clean-room, verification, rei-rea"10 upstream_repo: "https://github.com/rootcastleco/Rei-Reverse-engineer"11 curated_by: "rootcastle-rei"12---1314# REI Reconstruction Parity1516## When to Use1718- Reimplement a single observed application or firmware behavior from evidence while preserving original product boundaries. Use for clean-room compatibility, API replacement, local rebuilds, feature-level parity testing, corpus design, differential tests and regression-proof delivery.19- When performing authorized, evidence-led reverse engineering with SHA-256 artifact tracking.202122## Entry contract2324Use only the target the user provides or explicitly authorizes. Establish the question, artifact SHA-256, permitted scope, desired output and actually available tools. If repository source is complete, inspect it first instead of treating every task as binary RE.2526## Available tooling2728Use the existing project test runner and REI case ledger. Build a fixture manifest with fixed input/output pairs. External REA analysis tools are optional sources, not proof of parity.2930## Procedure31321. Turn observed behavior into a spec with explicit unknowns.332. Separate code ownership and reference evidence; do not copy private data or leaked credentials.343. Implement via adapter/gateway/feature flag, leaving the old core intact.354. Build golden tests, negative tests, metamorphic properties and timing tolerance where relevant.365. Publish parity coverage, mismatches, fallback and rollback procedures.3738## Evidence and limits3940Do not copy source merely because decompilation is available or claim binary-identical reproduction without measurements.4142For every conclusion record: target hash, source address/offset/file line, method and version, status (`observed`/`inferred`/`unknown`), coverage, alternative hypotheses, next verification. Do not invent installed tools or report target execution that did not happen.4344See [workflow checkpoints](references/workflow.md) for outputs and acceptance criteria.4546---4748> 🏰 **Rei Skills** — Curated by [Rootcastle Engineering & Innovation](https://www.rootcastle.com) | Batuhan Ayrıbaş 49> Engineering Beyond Boundaries | admin@rootcastle.com