Repository navigation
Open
Description
- Owner: @Saanvi521 ·
minigit/index.py,tests/test_index.py,tests/test_checkout_safety.py - Deliverables: staging/status/diff segment for
docs/demo.md, accurate README examples,docs/writeups/module-2.md - Depends on: Week 8 - M2: Status/diff performance + working-tree regression checks #56; coordinate merge-state behavior with Week 8 - M3: History performance + final CLI consistency audit #57 and use the Week 8 checkpoint from Week 8 - M4: Network performance + final end-to-end checkpoint #58
- Branch from updated
main:docs/week9-working-tree-demo - Plan: Weeks 9-10 buffer, stretch goals, and demo prep
Current checkpoint (2026-11-18)
- Starting point: W8: feat/working-tree-performance-finalization #64 supplies the status/diff behavior and file-walk optimization; Polish log output and CLI errors #66 supplies the public merge-status API. Complete the concrete Week 8 - M2: Status/diff performance + working-tree regression checks #56 reproduction/helper/documentation gaps first.
- Remaining deliverables:
docs/writeups/module-2.md, the staged/unstaged and safe-checkout/conflict sections of the shared runbook, and a recorded teammate reproduction on Week 8 - M4: Network performance + final end-to-end checkpoint #58's integrated revision. - Coordinate the project-source trial in Week 9 - Team: Track the project with mini-git + recovery rehearsal #73 with the same examples so the team exercises real source changes without duplicating fixtures.
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
- 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.
- 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.
- 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.
- Rehearse conflict resolution with M3/M4: unresolved paths appear in status, editing alone does not mark a conflict resolved, explicit
addrecords the resolution, and the final commit restores a clean state. Cover deletion resolution in the existing automated tests. - 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.
- 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. - Reconcile README examples and the working-tree segment of
docs/demo.mdwith shipped behavior. Ask a teammate to run the steps without setup knowledge; record the tested revision and any blocker. - 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