Skip to content

Add differential analysis and reconstruction verification workflows #37

Closed

Description

@morluto

Goal

Turn low-level evidence into repeatable cross-version and reconstruction comparisons.

Workflows

  • compare_artifacts
  • compare_bundles
  • compare_functions
  • find_changed_behavior
  • build_call_path
  • correlate_static_and_runtime
  • verify_reconstruction
  • create_residual_unknowns_ledger

Requirements

  • Normalize provider-specific identities without hiding raw evidence.
  • Separate observed changes, derived relationships, hypotheses, contradictions, and unresolved branches.
  • Compare symbols, imports, exports, strings, metadata, CFG shape, call relationships, resources, protocols, and runtime observations where available.
  • Support multiple versions and multiple providers in one investigation.
  • Cite stable evidence IDs for every conclusion.
  • Bound expensive comparisons and expose progress, pagination, and exported artifacts.

Acceptance criteria

  • Two fixture versions yield a deterministic classified change report.
  • A reconstruction can be checked against a behavioral and structural specification.
  • Missing evidence is reported as unknown, never as equivalence.
  • The residual-unknowns ledger recommends concrete next probes.

Roadmap expansion

Child work

Comparisons normalize only declared volatile fields and classify unchanged, added, removed, changed, truncated, and unknown. Every conclusion cites both evidence sets. Missing, unauthorized, stale, or truncated evidence never implies equivalence.

Reconstruction workspace and coverage-closure workstream

Differential tools need a durable graph that proves which authoritative surfaces and finite claims are actually owned and verified by a reconstruction. Add a reconstruction workspace rather than relying on aggregate test counts or narrative completion claims.

Workspace responsibilities

  • Import deterministic surface inventories from artifact, semantic, protocol, process, browser, Electron, and native evidence.
  • Map each required surface to one primary reconstructed owner or an explicit allowed disposition.
  • Register finite claims, replacement boundaries, verifier contracts, required dimensions, freshness, repetitions, and normalization.
  • Ingest canonical Evidence v2 and verifier results.
  • Detect missing/duplicate/stale owners, authority routing, undistributed code, missing verifiers, weak authority, skips, truncation, contradictions, and unresolved unknowns.
  • Compute fail-closed replacement readiness and recommend the highest-impact next probe.

Correctness

Ownership does not prove parity. Component tests cannot cover unnamed process/package/UI/native claims. Changed artifacts, schemas, owner paths, normalization, verifier contracts, or evidence invalidate dependent closure. Missing and stale facts remain unknown. Concurrent agents update through monotonic CAS revisions.

Completion fixture

Use an intentionally incomplete reconstructed CLI whose component suite is green but one command process, persistence effect, and packaged entrypoint remain unowned. The workspace must report partial. Add each missing proof independently and advance only the claims it covers. A candidate that imports the authority must never become replacement-ready.

Track the full schema and workflow in #268.

Activity

  1. added
    enhancement
    P1: high
    area: server
    area: tests
    roadmap
    on Jul 12, 2026
  2. morluto commented on Jul 17, 2026

    @morluto
    OwnerAuthor

    Current main delivers artifact, function, bundle, process, and web comparison; changed-behavior and call-path workflows; static/runtime correlation; residual unknowns; and reconstruction verification/coverage workspaces. Remaining scope is authoritative multi-provider/version fixture closure and the focused gaps in #61, #65, and #67.

  3. morluto commented on Jul 20, 2026

    @morluto
    OwnerAuthor

    Split into focused child issues:

    These replace the broad remaining scope in this issue. Closing this parent can happen once all children are closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1: higharea: serverarea: testsenhancementroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions