Skip to content

Trace: replace exact Pi spec-source copies with pointers #3715

Open

Description

@waveywaves

Problem

The compatibility matrix marks Pi spec-source pointers as No. Exact copies of captured text specifications remain inline in Pi raw-session evidence, duplicating material content.

Scope

Implement Pi's trace.SpecCopyReplacer using the existing pointer pipeline. Replace only exact supported reads and writes of captured text sources while preserving transformed, partial, or ambiguous content.

Acceptance criteria

  • Implement SpecCopyReplacer for Pi with a compile-time interface check.
  • Replace exact full-file reads and writes with pointer.New(digest) across every Pi raw-session stream.
  • Keep partial, transformed, computed, and unsupported copies inline.
  • Return correct replaced/skipped finder reports.
  • Cover selected root and supported child streams once Pi subagent evidence is available.
  • Add malformed-content and ordering regressions.
  • Run the live spec-pointer scenario and confirm the stored material resolves while supported duplicates are absent.
  • Update the compatibility matrix from measured results.

Non-goals

  • Image extraction or pasted-image deduplication.
  • Rewriting arbitrary shell output that cannot be matched exactly.

Dependencies

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions