Skip to content

[Story] Unify the historical comparison, project evolution and export services #38

Done

Description

@aMonteSl

As a developer adding a new Git-based analysis (a natural next step of the TFM),
I want the historical comparison and project evolution services to share one composition of session context and job gating,
so that a new Git-backed mode reuses it instead of copying ~95 duplicated lines.

Scope (ROADMAP W5-01..W5-11 with §E overrides: composition, not a base class)

  • Behavioural characterization of both services and their bridges (W5-01).
  • One toPortableRelativePath (3 copies → 1) (W5-02).
  • GitAnalysisSessionContext + SingleJobGate composition; constructor wiring, getAvailability, getSession, filterSources stay in each service file (text pins) (W5-03).
  • Unreachable missing-target guard (only with the dataflow argument + precondition test), shared analyzeSource, decoratePayload (W5-04..06).
  • Evolution worker re-validation, executeEvolution phases 2 and 4, router mode descriptor table (W5-07..09).
  • Export-folder wizard with a discriminated result (W5-10..11).

Acceptance criteria

  • historical ↔ evolution duplicated lines ~95 → ≤ 25.
  • npm test, test:analysis and test:project-evolution-harness green; manual F5 check of historical comparison, project evolution and Export Analysis Folder recorded.
  • No change in the messages, files or folder layout an export produces.

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. added
    tfm
    user-story
    on Nov 25, 2026
  3. aMonteSl commented on Nov 25, 2026

    @aMonteSl
    CollaboratorAuthor

    Done in #51, merged into v1.2.1 with CI green on Linux, macOS and Windows (two Windows-only test fixes landed in the PR: an 8.3 short-path comparison and a concurrent-dispose race in the new characterization). Service duplication 146 → 18 lines. F5 checks are in .claude/docs/v1.2.1/sessions/38-git-services.md for the final verification (#43).


    Generated by Claude Code

  4. added
    area: extension
    stream: cleanup-refactor
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: extensionstream: cleanup-refactortfmuser-story

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions