Skip to content

Add Rust EventEmitter shadow producer parity diagnostics #665

Description

@jununfly

This was generated by AI during triage.

Parent

Roadmap node 1-6-8-2. Rust shadow/double-read dynamic-dispatch edge migration follow-up in docs/plans/2026-06-27-rust-indexing-debt-to-rust-migration-roadmap.json.

Plan: docs/plans/2026-06-29-rust-event-emitter-shadow-producer-plan.md

What to build

Add the first Rust dynamic-dispatch shadow producer for JS/TS EventEmitter named-handler candidates. Rust should discover bounded shadow candidates and expose them through the existing profile/result payload. TypeScript should compare those candidates against the current TypeScript-written heuristic EventEmitter graph and report parity diagnostics. Rust-produced candidates must remain shadow-only and must not be consumed for graph writes.

Acceptance criteria

  • Rust core profile exposes EventEmitter named-handler shadow candidates with candidate count, bounded samples, and protocol-compatible metadata.
  • TypeScript finalization diagnostics compare Rust shadow candidates against TypeScript EventEmitter heuristic graph edges and report compared, matched, mismatch, reason, and sample fields.
  • Enabling the shadow producer does not change graph node/edge output; TypeScript remains the only production heuristic edge writer.
  • Tests cover the Rust producer profile contract, TypeScript parity contract, and no-graph-delta boundary on a bounded EventEmitter fixture.
  • Roadmap node 1-6-8-2 is updated with the completed evidence, while Agent Sufficiency A/B remains a later gate because this slice has no behavior change.

Blocked by

None - can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentFully specified and ready for an AFK agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions