Skip to content

Week 9 - M2: Working-tree demo rehearsal + usability fixes #61

Open

Description

@aman-a-shah

Current checkpoint (2026-11-18)

Scope

Rehearse the working-tree story, fix concrete usability defects exposed by the rehearsal, and draft the module writeup. Complete the Week 7/8 prerequisites before final verification. Preserve the handwritten Myers helper, current diff comparison semantics, and existing staging/checkout safety contracts; M3 continues to own refs, HEAD, and pending merge state.

Steps

  1. Review Week 8 - M2: Status/diff performance + working-tree regression checks #56 and carry forward its unresolved findings with existing issue links. Reuse its regression coverage and measurements rather than restarting the performance pass.
  2. Prepare a short reproducible example of the three states: commit a file, edit and stage it, then edit it again. Show the staged snapshot and newer unstaged edit separately, then commit only the staged version. Include the commands and expected status/diff outcomes in M4's shared walkthrough.
  3. Rehearse safe branch switching with M3: clean checkout restores bytes, executable modes, and index; dirty work or an untracked collision is refused without losing local work. Use fresh CLI processes and disposable repositories.
  4. Rehearse conflict resolution with M3/M4: unresolved paths appear in status, editing alone does not mark a conflict resolved, explicit add records the resolution, and the final commit restores a clean state. Cover deletion resolution in the existing automated tests.
  5. Fix concrete output or error gaps found in those workflows. Keep output deterministic and readable when redirected; retain binary summaries, mode changes, missing-final-newline information, and clear paths. Keep status/diff read-only.
  6. Draft docs/writeups/module-2.md: index snapshots, building nested trees, the three-state status model, Myers diff and its reuse by merge, checkout safety, key tradeoffs, and what you would change next. Link the measured Week 8 results where relevant.
  7. Reconcile README examples and the working-tree segment of docs/demo.md with shipped behavior. Ask a teammate to run the steps without setup knowledge; record the tested revision and any blocker.
  8. Add focused regressions only for newly discovered failures, run scripts/quality-check.sh, and open a linked PR for teammate review. Optional stretch work follows the shared triage after the core demo is ready.

Done when

  • A teammate can reproduce staged-versus-unstaged behavior, safe checkout, and explicit conflict resolution
  • New usability fixes have focused regressions and preserve read-only/safety guarantees
  • README and the shared demo use the actual CLI and expected output
  • Module 2 writeup covers implementation, design decisions, tradeoffs, and lessons learned
  • Remaining findings have reproductions and owners; quality check is green; linked PR and review request are ready

Activity

  1. added
    module-2
    week-9
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

module-2week-9

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions