Skip to content

Studio map: Accept writes system-map.json to the checkout #764

Done

Description

@danielrispler

Parent

#753

What to build

Accept's main way out writes the map into the main checkout, uncommitted, and it shows at once. #753, "Accepting" ("The map written", "Write") and user stories 23-25.

Acceptance criteria

  • The written map is the skeleton plus the edited text, the computed edges as import links with no reason, laws: [], flows: []; the server runs check_text first and refuses Accept with the problems if it fails.
  • Write system-map.json to <path> says it adds an uncommitted file like a CLAUDE.md; after writing, the map shows with "Map not committed yet" and no PR button, and the Map draft is deleted.
  • When an unreadable system-map.json is in the checkout, Write asks first, naming its first problem, and replaces it only on yes.
  • Tests: the written file passes check; the guard asks and replaces only on yes; the draft is deleted.
  • Snap fixtures: Accept's two ways out (the second muted until ticket 11), and the replace question.
  • docs/studio/behaviour/map.md describes Accept.

Reading

Touches

  • Files: server/src/map_draft.rs, ui/map-draft.ts, server/src/api.rs, ui/style.css, scripts/snap/fixtures-map.ts, docs/studio/behaviour/map.md
  • Session: auto mode
  • Route: strong · effort high — a trust boundary: writes a file into the user's repository, with a guard on an existing one

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 5972eae: Accept writes system-map.json to the checkout, asking before it replaces an unreadable one.

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

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