Skip to content

Project evolution follows the checked-out history (S11) - #94

Open
aMonteSl wants to merge 1 commit into
v1.2.1from
claude/project-thread-kvvyg6-history
Open

aMonteSl wants to merge 1 commit into
v1.2.1from
claude/project-thread-kvvyg6-history

Conversation

@aMonteSl

Copy link
Copy Markdown
Collaborator

Requested by Adrián · project thread

Closes #83. Part of #72. Findings EVO-6, EVO-7, EVO-12, EVO-19 (docs/xr-audit/evolution.md).

What changes

  • EVO-6, the timeline is HEAD's first-parent history. listTimelineSources(maxCount, tip = 'HEAD', exclude?) walks git log --first-parent instead of --all. As a result:

    • stashes, notes and other branches are no longer frames;
    • a merge is one step of the branch it landed on;
    • nothing newer than the checkout plays before the final frame.

    The picker's commit list uses --branches --tags --remotes instead of --all.

  • EVO-7, the whole history is covered. The new core/history/projectEvolutionTimeline.ts handles the Auto movie and range movies.

    • Auto movie: it lists the whole history, then thins it to 240 candidates spread over all of it, first and last included. The index and the picker cost the same as with the old newest-240 window.
    • Range movie: Git resolves the ends (isAncestor, mergeBase), so they can come in either order. Ends on diverging branches start from their merge base. An end that cannot be resolved gives a sentence, not a raw code. resolveTimelineIndex and TIMELINE_SCAN_LIMIT are removed.
    • Tags: tags whose peeled object is not a commit are not offered.
  • EVO-12, no hidden export limits.

    • The 1000 clamp is gone.
    • The log is streamed through the new core/history/gitLineStream.ts, which keeps the same timeout, cancel signal and error codes as runGit, so a large history cannot overflow a buffer.
    • countTimelineCommits uses rev-list --first-parent --count HEAD and returns 0 in an empty repository.
    • The export prompt names the checked-out branch's history and says that other branches, stashes and notes are not exported.
  • EVO-19: PROJECT_EVOLUTION_XR.md now matches the code. The CHANGELOG [1.2.1] section and V1.2.1_STATUS.md are updated.

Behaviour change, by design of the story: the export no longer includes other branches.

Verification

  • npm test: 1149/1149 passed, with ESLint at 154 warnings (budget unchanged) and the guardrails unchanged.
  • New test/analysis/gitTimeline.test.cjs has 7 tests, all on real repositories:
    • a stash, a note, a newer branch and a detached HEAD;
    • a merge counted as one step;
    • 300 commits sampled from the root commit, with an old tag as the range start;
    • a range picked in either order and one across diverging branches;
    • a tree tag that is not offered;
    • 1,100 commits where "latest 1,050" returns exactly 1,050;
    • an empty repository.

Generated by Claude Code

The timeline is the first-parent history of HEAD, never --all, so stashes,
notes and other branches are no longer frames (EVO-6). The whole history is
listed (streamed) and thinned to 240 candidates from the first commit; a
range is resolved by Git in either order, diverging ends from their merge
base (EVO-7). Tags on trees or blobs are not offered. No 1000 clamp on the
export's latest N, and the prompt names the branch's history (EVO-12).
PROJECT_EVOLUTION_XR.md matches the code (EVO-19).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FkKtAtQus8TVjhG9bhytC
@aMonteSl aMonteSl added tfm Adds the issue to the TFM board automatically. Do not remove area: extension VS Code extension host (TypeScript): commands, launcher, servers, services area: xr-scene Browser runtimes of the XR scenes and LivePanel (A-Frame/BabiaXR, templates/components) stream: xr-bugfix-1.2.1 Epic #72: review and fix the XR environment, shipped in 1.2.1 labels Nov 25, 2026 — with Claude
@aMonteSl aMonteSl self-assigned this Nov 25, 2026

This branch has not been deployed

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

Labels

area: extension VS Code extension host (TypeScript): commands, launcher, servers, services area: xr-scene Browser runtimes of the XR scenes and LivePanel (A-Frame/BabiaXR, templates/components) stream: xr-bugfix-1.2.1 Epic #72: review and fix the XR environment, shipped in 1.2.1 tfm Adds the issue to the TFM board automatically. Do not remove

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants