Skip to content

Studio map: the map reads from the default branch, else the checkout, else a pending PR #757

Done

Description

@danielrispler

Parent

#753

What to build

A system-map.json in the main checkout shows at once, uncommitted, as the user's own agent wrote it. The map reads (1) the default branch, (2) else the checkout file, (3) else a pending map in the data folder (written by a later ticket). A checkout map that fails check is drawn with its problems; an unreadable one shows the empty screen with its reason; a folder that is no git repository says so and offers nothing. #753, "Reading the map" and "Projects" (the non-git guard).

Acceptance criteria

  • read_map reads the three sources in that order; MapState gains from (default-branch, checkout, pending-pr); the default branch keeps today's guarded fetch, the other two need none.
  • The readable/unreadable boundary stays today's (convert + parse_lenient): readable is drawn whatever check says; unreadable shows the empty screen with its reason.
  • For a checkout map only, the server runs system_map::check on the working tree, and its problems show as a banner over the map: the count, the first three, a way to copy them all. The default branch's map gets none.
  • The map's head shows from in #map-ref's place: "Map not committed yet" for checkout; "Map waiting on PR #N" and "Map not in the repo" for pending-pr (the PR state comes from ticket 11; here the pending file's own fields).
  • A project whose folder has no git root shows "not a git repository: no map" and offers no scan, prompt or run.
  • A Rust table test over a temporary repository: default only; checkout only; pending only; default beside a checkout file (default wins); an unreadable checkout file; a readable checkout file failing check; a non-git folder. Each asserts status, from and the banner.
  • Snap fixtures: the banner, "Map not committed yet", and the non-git guard; docs/studio/behaviour/map.md gains the read order.

Reading

Touches

  • Files: server/src/map.rs, ui/types.ts, ui/map.ts, ui/style.css, scripts/snap/fixtures-map.ts, docs/studio/behaviour/map.md
  • Session: auto mode
  • Route: strong · effort high — a wire type (MapState.from) and a new map source the page and eight readers trust

Activity

  1. added
    ready-for-agent
    on Nov 27, 2026
  2. danielrispler commented on Nov 28, 2026

    @danielrispler
    OwnerAuthor

    Resolved in PR #776 (squash e6034bf on main), spec #753. Built on the integration branch as 124fc12: the map reads from the default branch, else the checkout, else a pending PR.

    Route outcome: strong·high claude/opus → pass | 15m

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions