Overview
| Artifact ID: | bd3e11763891da52c7488c1a27ce2019382fdb2295fac4511cdbc2383bfcf64a |
|---|---|
| Ticket: | c4e7169bee3a46910715ac808c27b38d72b2792d
web: show a conflicted landing as blocked, and disable accept |
| User & Date: | ai-local on 2026-08-23 21:37:58 |
Changes
- icomment:
Done. zit#131's probe is now the only way quarry learns mergeability. - `zit landing show -R` is read on landing.get for OPEN records only — a settled one merged or did not, and probing it spends a store read to answer what history already settled. Parsed states: clean, up-to-date, conflict (N) with one `conflict PATH` line each. - A conflicted landing renders BLOCKED: the paths named, and the instruction ("merge the target into your branch, resolve, push") rather than just a warning. `AcceptState()` is the one function the button and the banner both read, so they cannot disagree. - Accept is DISABLED while conflicted, never offered-and-failing. - Exit 5 is distinguished from exit 1 in zitcli: 5 becomes a typed *LandingConflict carrying the paths and maps to ErrInvalid — a state to render. 1 stays ErrNoEntry — a fault to report. - Unknown (`""`) is never treated as clean. A store quarry cannot shell into answers nothing, and offering accept on an unchecked branch is the exact failure the probe exists to prevent. Tests: the parse pinned against real zit output (probe on stdout, refusal on stderr where each line carries the verb prefix and one is prose); an end-to-end harness test that builds genuinely divergent branches in a real store, opens a landing, and asserts the page says "conflicts with", names f.txt, and does NOT render the accept control. - mimetype: "text/x-markdown"
- resolution changed to: "Fixed"
- status changed to: "Closed"