Skip to content

fix(evolution): reliable project evolution movie (#82) - #93

Merged
aMonteSl merged 2 commits into
v1.2.1from
claude/project-thread-kvvyg6-evolution
Nov 25, 2026
Merged

aMonteSl merged 2 commits into
v1.2.1from
claude/project-thread-kvvyg6-evolution

Conversation

@aMonteSl

Copy link
Copy Markdown
Collaborator

Requested by Adrián · project thread

Closes #82 (S10 of epic #72). Findings: EVO-1, 5, 8, 11, 13, 14, 15, 18 and LIFECYCLE-4 (docs/xr-audit/evolution.md, lifecycle.md).

What changes

  • EVO-5 (frames race):
    • each frame now loads from its own immutable /evolution/revision-N/data<i>.json, online as well as offline;
    • the shared data.json bridge is gone. applyFrameToBridge became resolveFrame, which only validates and copies nothing;
    • apply-frame errors are sent to the requester only, so they no longer stop playback for the whole room;
    • bridgeUrl is still set in the broadcast payload, so 1.2.0 scenes keep working.
  • LIFECYCLE-4 (mode cannot be re-entered): a pipeline that fails half-way is now torn down (failEvolutionPipeline) and rebuilt on the next seek. Component waits went from 1.2 s to 4 s.
  • EVO-14 (progress bar): progress messages carry completed. The bar shows finished revisions, only moves forward, and reaches 100%.
  • EVO-8 (cost), partial:
    • revision analyses run silent, so there is no VS Code toast per revision;
    • each revision's snapshot is deleted right after its analysis;
    • the payload cache is an LRU bounded at 128 entries.
  • EVO-11 (old movies):
    • only one revision-N folder is kept on disk;
    • Clear removes the whole evolution/ folder;
    • a new revision number never reuses an existing folder, so an export ships the current movie.
  • EVO-15 (playback):
    • Play on the last frame restarts the movie;
    • a replay of the same movie keeps the current frame;
    • setSpeed no longer restarts playback while a seek is in flight.
  • EVO-13 (manual picks):
    • picks are sorted oldest first online, the same as offline;
    • more than maxFrames picks is refused, by the client when the extra pick is made and by the server with a clear message.
  • EVO-18: the remote HEAD alias is filtered by its full ref, so it no longer appears as a branch named "origin".
  • EVO-1: S6 had already covered it. applySharedState now also ends the "generating" state.

Not done

Live evolution still materializes snapshots (one git show per file) and runs the directory analysis for each revision. Reusing the export's blob pipeline (GitTimelineBlobAnalyzer plus the worker pool) needs a payload-parity check first, so it is left as a follow-up and recorded in V1.2.1_STATUS.md.

Verification

  • npm test: 1,139 of 1,139 pass. ESLint warnings stay at 154. filesOver500 is unchanged; the helpers moved to projectEvolutionArtifacts.ts.
  • New and updated tests:
    • behavioural service tests: no shared bridge file, resolveFrame, silent analyses, no snapshot left on disk, monotonic completed, one revision on disk, Clear removes evolution/;
    • manual picks are played oldest first, and 25 picks are refused;
    • the remote HEAD alias is not listed (real git repository);
    • bridge test: a bad seek reaches the requester only.
  • Harnesses pass: xr-mode, project-evolution and xr. The project-evolution harness now asserts that each frame loads its own data<i>.json and that no bridge file is ever written.

Needs a manual check

  • Generating a movie in VS Code: no toast per revision, and the progress bar goes steadily to the end.
  • Two participants seeking at the same time.
  • Re-entering the mode on a Quest.

Generated by Claude Code

- Frames load from their own immutable dataN.json (EVO-5): the shared
  data.json bridge is gone, apply-frame only validates (resolveFrame) and
  its errors go to the requester alone.
- A half-built frame pipeline is torn down and rebuilt; component waits
  4 s instead of 1.2 s (LIFECYCLE-4).
- Progress reports revisions completed, monotonic to 100% (EVO-14).
- Revision analyses run silently, snapshots are deleted after analysis,
  the payload cache is bounded (EVO-8, partial).
- One movie on disk; Clear removes evolution/; revision numbers never
  reuse a folder, so an export ships the current movie (EVO-11).
- Play at the end restarts; a same-movie replay keeps the frame; a speed
  change never re-arms under a seek (EVO-15).
- Manual picks play oldest first; more than the limit is refused with a
  message (EVO-13). Remote HEAD alias no longer listed (EVO-18).

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) area: testing Test suites, harnesses, verification and inventories 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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FkKtAtQus8TVjhG9bhytC
@aMonteSl
aMonteSl merged commit a979bb3 into v1.2.1 Nov 25, 2026
7 checks passed
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: testing Test suites, harnesses, verification and inventories 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