Hybrid Diff Stack Architecture (Source -> Symbols -> Normalized Bytes)

Status: Implemented in BinaryIndex DeltaSig (2026-02-16) Module: BinaryIndex with cross-module contracts (Symbols, EvidenceLocker, Policy, Attestor, ReleaseOrchestrator)

1. Objective

Produce compact, auditable patch artifacts that preserve developer intent and binary truth at the same time:

2. Implementation baseline (2026-02-16)

Implemented in src/BinaryIndex/__Libraries/StellaOps.BinaryIndex.DeltaSig/:

Current constraints:

3. Target contracts

3.1 Source semantic edit script (semantic_edit_script.json)

Required fields:

Determinism rules:

3.2 Symbol map (symbol_map.json)

Produced during build from DWARF/PDB + build metadata.

Required fields:

Determinism rules:

3.3 Symbol patch plan (symbol_patch_plan.json)

Joins source edits with concrete symbols.

Required fields:

3.4 Patch manifest (patch_manifest.json)

Binds per-symbol normalized deltas to evidence and policy.

Required fields:

4. Evidence and policy integration

EvidenceLocker stores four linked artifacts per release comparison:

  1. semantic edit script
  2. symbol maps (before/after)
  3. symbol patch plan
  4. normalized patch manifest + delta blobs

Policy hooks:

5. Verifier contract (Attestor/Doctor)

Verifier must prove all of the following before promotion:

6. Integration boundaries

Builder step (CI): emit symbol map and normalized segments.

ReleaseOrchestrator step: combine source edits, symbol maps, and normalized bytes into patch plan and manifest.

BinaryIndex/DeltaSig: own normalization and per-symbol diff generation.

Attestor/Doctor: own verification and attestation checks.

EvidenceLocker: own storage schema and query surfaces.

Policy: consume summarized patch-plan metrics and rule evaluations.

7. Implementation tracker

Execution is tracked in: