Found in review of #68: the acp view passes control characters through, and six smaller findings #93

Merged
city-root merged 2 commits from worker/rexcity-ndhl1 into main 2026-11-12 16:21:47 +00:00
Contributor

Closes the seven findings the reviews of #68 left (bead rexcity-ndhl1), and the four notes of the second review.

What changed

# Finding Change
1 Control characters and look-alike lines reach the pane Every field the renderer writes goes through the picture mapping (␛ for ESC), where only inputs did. Agent text lines after the first are indented 2 spaces and a first line that begins like an entry gets a space, so no line an agent writes reads as a box entry, however the adapter cuts chunks. rexcity acp follow drops the indent when it lays a sentence out.
2 Follower echoes keys, dies on Ctrl-C, ignores SIGTERM Carried by main since #86 (hushInput: raw mode without echo, SIGINT/SIGTERM/SIGHUP end it with status 0, terminal and cursor put back), so this change keeps none of its own. Only SIGQUIT is added to main's signal context: Ctrl-\ on a hand-run pane otherwise reaches Go's default handler, which dumps the goroutines and leaves the terminal raw.
3 An opening cut short can leave an unrecorded pane OpenView checks the context before placing the pane, then lets the placing finish whatever the context says (the caller's deadline still applies), so the wrapper's cancel at exit cannot kill rex between the split and its reply.
4 The log never shrinks A log over 8 MiB is set aside as <name>.log.1 when a run starts; a start removes acp logs nothing has written to for 30 days (only files that begin with ━━ acp , none whose name has a view). A run's own log is never cut while written: the pane follows it.
5 The smoke never runs rexcity acp -- smoke-image.sh runs the same turn through rexcity acp -- rexcity acp claude … with REXCITY_BOX=process and checks the stream and the log.
6 Failing TestTheAdapterNeverOutlivesTheWrapper leaves a process t.Cleanup kills the recorded pid when the test failed; the fake sleeps a minute, not an hour.
7 Older README section stale No longer says gc answers nothing (it holds permission requests); its provider is claude-proxy, not the box's name. Also notes that a second city tab starts the declared panes twice.
a Limitations note Already there; added the declared-panes sentence from the third review.
b ps lstart text follows TZ/LANG proc.StartTime runs ps with TZ=UTC LC_ALL=C and prefixes utc . A record an earlier version wrote (no prefix) is compared as that version read it (LegacyStartTime), so nothing running is taken for dead at the upgrade.
c mode-000 view, link to a directory, file where views/ belongs, null/{} All read as a corrupt view that is cleared; views/ replaced if it is not a directory; a record with no block is no view.
d Empty <name>.json fails every start and stop An empty file is no record. A damaged, non-empty one is still an error.

How it was checked

  • go vet ./... (linux and darwin), gofmt, go test ./... with a failing rex stub first on PATH, go test -race on acpbox, rpp, state, cmd/rexcity; the changelog check (v2) exits 0 with the fragment .changelog/acp-box-review-findings.md.
  • Mutations: without the cancel shield the new opening tests fail; without the legacy fallback the start-time test fails; without the cleanup a failed run leaves the adapter (checked with pgrep).
  • The box against rexcity-acp-client and a fake adapter with REXCITY_BOX=process: stream, log header, ▷/✓/■ entries as the smoke step greps them.

Not run here

  • The new smoke step has not run in the image: no container daemon on this machine. Only the box half was run, with a fake adapter. The image job of this pull request runs it for real (internal/ is touched); it greps ▷ .* #1, ✓ .* #1 ( and ■ end_turn rather than the tool's name, since the adapter may name the call by its title.
  • SIGQUIT on the live pane has no test: its signal context exists only with a terminal.

Notes for the reviewer

  • The log's shape changes for agent text: continuation lines carry a two-space indent. Logs written before stay readable; the pane strips the indent only where it is there.
  • The pane shows a one-space gap in the rare sentence that begins with →, ■, ?, ! and the like (● → …): the space that sets it apart.
  • Item (d) was on main outside #68; it is in because the bead lists it.

Rebased onto main 2ff3907 (rework)

The head no longer merged after #86. Rebased, nothing else changed. Dropped because main already carries it: the follower's terminal handling (quietTerminal, the term_*.go files, isTerminal, the Follow/follower(ctx) split, ignoring Ctrl-C and Ctrl-Z, their test, their README sentence and changelog bullets). Main keeps the interrupt key's meaning, which this change had altered. Kept on main's code: SIGQUIT in the live pane's signal context, with its changelog bullet. Merged by hand with both sides kept: internal/rpp/view.go (cancel shield and openPane(..., true)), internal/rpp/fake_test.go, internal/rpp/view_test.go, internal/acpbox/pane_test.go, two README bullets. Re-run on the rebased head: gofmt, go vet ./..., go test ./..., go test -race on acpbox, rpp, state and proc, changelog check valid=true. The pty check above no longer applies, since that code is main's.

Bead: rexcity-ndhl1

Closes the seven findings the reviews of #68 left (bead rexcity-ndhl1), and the four notes of the second review. ## What changed | # | Finding | Change | | --- | --- | --- | | 1 | Control characters and look-alike lines reach the pane | Every field the renderer writes goes through the picture mapping (`␛` for ESC), where only inputs did. Agent text lines after the first are indented 2 spaces and a first line that begins like an entry gets a space, so no line an agent writes reads as a box entry, however the adapter cuts chunks. `rexcity acp follow` drops the indent when it lays a sentence out. | | 2 | Follower echoes keys, dies on Ctrl-C, ignores SIGTERM | Carried by main since #86 (`hushInput`: raw mode without echo, SIGINT/SIGTERM/SIGHUP end it with status 0, terminal and cursor put back), so this change keeps none of its own. Only SIGQUIT is added to main's signal context: Ctrl-\ on a hand-run pane otherwise reaches Go's default handler, which dumps the goroutines and leaves the terminal raw. | | 3 | An opening cut short can leave an unrecorded pane | `OpenView` checks the context before placing the pane, then lets the placing finish whatever the context says (the caller's deadline still applies), so the wrapper's cancel at exit cannot kill `rex` between the split and its reply. | | 4 | The log never shrinks | A log over 8 MiB is set aside as `<name>.log.1` when a run starts; a start removes acp logs nothing has written to for 30 days (only files that begin with `━━ acp `, none whose name has a view). A run's own log is never cut while written: the pane follows it. | | 5 | The smoke never runs `rexcity acp --` | `smoke-image.sh` runs the same turn through `rexcity acp -- rexcity acp claude …` with `REXCITY_BOX=process` and checks the stream and the log. | | 6 | Failing `TestTheAdapterNeverOutlivesTheWrapper` leaves a process | `t.Cleanup` kills the recorded pid when the test failed; the fake sleeps a minute, not an hour. | | 7 | Older README section stale | No longer says gc answers nothing (it holds permission requests); its provider is `claude-proxy`, not the box's name. Also notes that a second city tab starts the declared panes twice. | | a | Limitations note | Already there; added the declared-panes sentence from the third review. | | b | `ps lstart` text follows TZ/LANG | `proc.StartTime` runs `ps` with `TZ=UTC LC_ALL=C` and prefixes `utc `. A record an earlier version wrote (no prefix) is compared as that version read it (`LegacyStartTime`), so nothing running is taken for dead at the upgrade. | | c | mode-000 view, link to a directory, file where `views/` belongs, `null`/`{}` | All read as a corrupt view that is cleared; `views/` replaced if it is not a directory; a record with no block is no view. | | d | Empty `<name>.json` fails every start and stop | An empty file is no record. A damaged, non-empty one is still an error. | ## How it was checked - `go vet ./...` (linux and darwin), `gofmt`, `go test ./...` with a failing `rex` stub first on `PATH`, `go test -race` on `acpbox`, `rpp`, `state`, `cmd/rexcity`; the changelog check (v2) exits 0 with the fragment `.changelog/acp-box-review-findings.md`. - Mutations: without the cancel shield the new opening tests fail; without the legacy fallback the start-time test fails; without the cleanup a failed run leaves the adapter (checked with `pgrep`). - The box against `rexcity-acp-client` and a fake adapter with `REXCITY_BOX=process`: stream, log header, `▷`/`✓`/`■` entries as the smoke step greps them. ## Not run here - The new smoke step has not run in the image: no container daemon on this machine. Only the box half was run, with a fake adapter. The `image` job of this pull request runs it for real (`internal/` is touched); it greps `▷ .* #1`, `✓ .* #1 (` and `■ end_turn` rather than the tool's name, since the adapter may name the call by its title. - SIGQUIT on the live pane has no test: its signal context exists only with a terminal. ## Notes for the reviewer - The log's shape changes for agent text: continuation lines carry a two-space indent. Logs written before stay readable; the pane strips the indent only where it is there. - The pane shows a one-space gap in the rare sentence that begins with `→`, `■`, `?`, `!` and the like (`● → …`): the space that sets it apart. - Item (d) was on `main` outside #68; it is in because the bead lists it. ## Rebased onto main 2ff3907 (rework) The head no longer merged after #86. Rebased, nothing else changed. Dropped because main already carries it: the follower's terminal handling (`quietTerminal`, the `term_*.go` files, `isTerminal`, the `Follow`/`follower(ctx)` split, ignoring Ctrl-C and Ctrl-Z, their test, their README sentence and changelog bullets). Main keeps the interrupt key's meaning, which this change had altered. Kept on main's code: SIGQUIT in the live pane's signal context, with its changelog bullet. Merged by hand with both sides kept: `internal/rpp/view.go` (cancel shield and `openPane(..., true)`), `internal/rpp/fake_test.go`, `internal/rpp/view_test.go`, `internal/acpbox/pane_test.go`, two README bullets. Re-run on the rebased head: `gofmt`, `go vet ./...`, `go test ./...`, `go test -race` on acpbox, rpp, state and proc, changelog check `valid=true`. The pty check above no longer applies, since that code is main's. Bead: rexcity-ndhl1
fix: the acp view's seven review findings, and four of the second review's notes (rexcity-ndhl1)
All checks were successful
image / image (pull_request) Successful in 10s
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 1m45s
f14f00f1f2
The reviews of rexcity#68 left seven non-blocking findings and four notes
(rexcity-ndhl1). This closes all of them.

The log. Control characters of everything the renderer writes (agent text and
thinking, prompts, plan entries, tool names and titles, permission options, the
fields of a few one-line entries) now show as pictures, as an input's already
did. Agent text is set apart from the box's own entries: the lines of a run
after its first are indented two spaces, and a first line that begins like an
entry gets a space before it, so no line of what an agent says reads as
"→ permission allow_once (Yes)", whatever it says and however the adapter cuts
its chunks. The pane drops the indent when it lays a sentence out. The log is
bounded: a log over 8 MiB is set aside as <name>.log.1 when a run starts, and
a start removes the acp logs nothing has written to for 30 days (only a file
that begins with the log's header, and no log whose name has a view).

The follower. On a terminal it stops the echo of typed keys, ignores Ctrl-C and
Ctrl-Z, which left a dead pane while the agent ran, and puts the terminal back
as it ends; Ctrl-\ still ends one run by hand. It ends on SIGTERM: main took
the signal into a context Follow never got. --raw leaves the terminal alone.

The view's lifecycle. OpenView lets an opening that has begun to place the pane
finish, whatever its context says, so that the wrapper's cancel at exit cannot
kill a rex between the server's split and its reply and leave a pane no record
names; the caller's deadline still bounds it. A view file that cannot be read,
holds null or {}, or a file or link where views/ belongs no longer fails every
later start. An empty <name>.json is no record. A start time is recorded in
UTC and the C locale (proc.StartTime), so a TZ or LANG in an agent's env no
longer makes its view's wrapper read as another process; a record an earlier
version wrote is still compared as that version read it.

Tests and CI. TestTheAdapterNeverOutlivesTheWrapper kills its fake adapter in a
Cleanup when it fails. The image smoke runs rexcity acp -- around the same
turn as rexcity acp claude, with REXCITY_BOX=process, and checks the stream and
the log. The older README section no longer says gc answers nothing, and no
longer shares a provider name with the box's.

Validation: go vet (linux, darwin), gofmt, go test ./... with a failing rex stub
first on PATH, -race on acpbox, rpp, state and cmd/rexcity; the changelog check
v2; the follower on a real pty (no echo, ^C and ^Z ignored, SIGTERM exits 0);
the box against rexcity-acp-client and a fake adapter. New tests were checked
against mutations (the cancel shield, the legacy start-time fallback, the
adapter cleanup).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
city-root-review requested changes 2026-11-12 14:03:42 +00:00
Dismissed
city-root-review left a comment

Review of f14f00f1f2 for rexcity-ndhl1. Checks of the head: success.

Verdict

fail

Findings

  • [blocking] internal/rpp/view.go:118 and :131: the cancel shield of item 3 covers only openPane. The work that follows it still gets the cancelled ctx. proc.StartTime runs ps through exec.CommandContext, so on a cancelled context it returns ps lstart: context canceled (checked). The view is then saved with RootPID=0 and RootStart="", and wrapperAlive keeps such a record forever ("never taken for stale"). Reproduced with a scratch test, TestACancelDuringTheOpeningStillRecordsTheView's setup with a fake StartTime that returns ctx.Err() as the real one does: the record holds RootPID=0 RootStart="". Two consequences:

    1. OpenTimeout is 20 s and CloseTimeout 10 s. An opening still running 10 s after the adapter exits is left behind by closeView ("pane still opening at exit"), and the comment at internal/acpbox/box.go:625 and the README say the next prune closes it. With no start time recorded, no prune ever does, so the pane stays until the same name starts again.
    2. closeStale(ctx, …) (line 131) also runs on the cancelled context, so its rex calls fail. The earlier start's pane of the same name stays open while its record has just been overwritten: a pane that no record names, which is the case item 3 is meant to end.

    Fix: use openCtx for everything after the shield (r.StartTime, closeStale). Make the harness's StartTime in the cancel test (internal/rpp/view_test.go:391) honour ctx as exec.CommandContext does, and assert that the record carries the wrapper's RootPID and RootStart.

  • [minor] internal/acpbox/follow.go:187: when a hand-run pane is ended with Ctrl-\ (SIGQUIT), Go's default SIGQUIT handling dumps the goroutines and exits without running defers. quietTerminal's restore never runs, so the terminal is left with echo off. The README and usage say it "puts the terminal's modes back when it ends". Taking SIGQUIT into the same NotifyContext as SIGTERM would end the pane cleanly, with the restore.

  • [minor] internal/state/state.go:335: any read error of a view file now counts as ErrCorruptView, and readView then forgets the view. That includes transient errors such as EMFILE or EIO, not only the mode-000 file and the link to a directory the bead names. A transient error forgets the record of a live pane, and nothing closes that pane afterwards. Limiting this to EACCES, EISDIR and ELOOP would cover the bead's cases.

  • [minor] internal/state/state.go:176: PruneLogs keeps a log only while a view is recorded for its name. An acp agent with REXCITY_BOX=process, or one whose pane failed to open, has no view, so a running agent that has written nothing for 30 days loses its log to another agent's start. The wrapper keeps writing to the unlinked file. This is unlikely, and the README could say so.

Verified

  • Read the work bead and its notes (items 1–7, a–d), the PR description, REVIEW.md of main, and the whole diff (28 files, +1065/−71). Every item the bead lists is addressed, nothing unrelated is in, and the README sections and the changelog fragment are there.
  • Merged the head into origin/main (369b5a8) in a clone: clean.
  • On the merged tree, with the city's variables removed: go vet ./... (host, GOOS=darwin GOARCH=arm64, GOOS=linux GOARCH=amd64) exit 0; gofmt -l clean; go test -count=1 ./... exit 0; go test -race on acpbox, rpp, state, proc and cmd/rexcity exit 0.
  • Changelog check: built cmd/changelog from mikluko/changelog v2.0.1 and ran -base main -warn missing-fragment on the merged tree: exit 0.
  • The head's image / image job (run 451, job 4618) built the image and ran the new smoke step. The log shows the ━━ acp smoke__worker-1 · rexcity · pid … header and the ▷ Bash #1, ✓ Bash #1 (<1s) and ■ end_turn lines, and every grep the step makes matched.
  • The rest reads correctly. Control characters become their pictures in every rendered field, and continuation lines of agent text are indented while the pane strips the indent. StartTime runs with a fixed TZ and locale, behind the utc prefix, and falls back to the legacy text for older records. An empty <name>.json reads as no record. views/ that is a file or a link is replaced. null and {} view files count as corrupt. Log rotation hands the pane --from 0. SIGTERM ends follow with exit 0.
Review of f14f00f1f2dc04047577fdca2bb4d435cac56e01 for rexcity-ndhl1. Checks of the head: success. ### Verdict fail ### Findings - [blocking] internal/rpp/view.go:118 and :131: the cancel shield of item 3 covers only `openPane`. The work that follows it still gets the cancelled `ctx`. `proc.StartTime` runs `ps` through `exec.CommandContext`, so on a cancelled context it returns `ps lstart: context canceled` (checked). The view is then saved with `RootPID=0` and `RootStart=""`, and `wrapperAlive` keeps such a record forever ("never taken for stale"). Reproduced with a scratch test, `TestACancelDuringTheOpeningStillRecordsTheView`'s setup with a fake `StartTime` that returns `ctx.Err()` as the real one does: the record holds `RootPID=0 RootStart=""`. Two consequences: 1. `OpenTimeout` is 20 s and `CloseTimeout` 10 s. An opening still running 10 s after the adapter exits is left behind by `closeView` ("pane still opening at exit"), and the comment at internal/acpbox/box.go:625 and the README say the next prune closes it. With no start time recorded, no prune ever does, so the pane stays until the same name starts again. 2. `closeStale(ctx, …)` (line 131) also runs on the cancelled context, so its `rex` calls fail. The earlier start's pane of the same name stays open while its record has just been overwritten: a pane that no record names, which is the case item 3 is meant to end. Fix: use `openCtx` for everything after the shield (`r.StartTime`, `closeStale`). Make the harness's `StartTime` in the cancel test (internal/rpp/view_test.go:391) honour `ctx` as `exec.CommandContext` does, and assert that the record carries the wrapper's `RootPID` and `RootStart`. - [minor] internal/acpbox/follow.go:187: when a hand-run pane is ended with Ctrl-\ (SIGQUIT), Go's default SIGQUIT handling dumps the goroutines and exits without running defers. `quietTerminal`'s restore never runs, so the terminal is left with echo off. The README and usage say it "puts the terminal's modes back when it ends". Taking SIGQUIT into the same `NotifyContext` as SIGTERM would end the pane cleanly, with the restore. - [minor] internal/state/state.go:335: any read error of a view file now counts as `ErrCorruptView`, and `readView` then forgets the view. That includes transient errors such as EMFILE or EIO, not only the mode-000 file and the link to a directory the bead names. A transient error forgets the record of a live pane, and nothing closes that pane afterwards. Limiting this to `EACCES`, `EISDIR` and `ELOOP` would cover the bead's cases. - [minor] internal/state/state.go:176: `PruneLogs` keeps a log only while a view is recorded for its name. An acp agent with `REXCITY_BOX=process`, or one whose pane failed to open, has no view, so a running agent that has written nothing for 30 days loses its log to another agent's start. The wrapper keeps writing to the unlinked file. This is unlikely, and the README could say so. ### Verified - Read the work bead and its notes (items 1–7, a–d), the PR description, `REVIEW.md` of main, and the whole diff (28 files, +1065/−71). Every item the bead lists is addressed, nothing unrelated is in, and the README sections and the changelog fragment are there. - Merged the head into origin/main (369b5a8) in a clone: clean. - On the merged tree, with the city's variables removed: `go vet ./...` (host, `GOOS=darwin GOARCH=arm64`, `GOOS=linux GOARCH=amd64`) exit 0; `gofmt -l` clean; `go test -count=1 ./...` exit 0; `go test -race` on acpbox, rpp, state, proc and cmd/rexcity exit 0. - Changelog check: built `cmd/changelog` from mikluko/changelog v2.0.1 and ran `-base main -warn missing-fragment` on the merged tree: exit 0. - The head's `image / image` job (run 451, job 4618) built the image and ran the new smoke step. The log shows the `━━ acp smoke__worker-1 · rexcity · pid …` header and the `▷ Bash #1`, `✓ Bash #1 (<1s)` and `■ end_turn` lines, and every grep the step makes matched. - The rest reads correctly. Control characters become their pictures in every rendered field, and continuation lines of agent text are indented while the pane strips the indent. `StartTime` runs with a fixed TZ and locale, behind the `utc ` prefix, and falls back to the legacy text for older records. An empty `<name>.json` reads as no record. `views/` that is a file or a link is replaced. `null` and `{}` view files count as corrupt. Log rotation hands the pane `--from 0`. SIGTERM ends `follow` with exit 0.
mikluko force-pushed worker/rexcity-ndhl1 from f14f00f1f2
All checks were successful
image / image (pull_request) Successful in 10s
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 1m45s
to 131e0f3520
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 10s
test / go (pull_request) Successful in 1m43s
2026-11-12 14:11:02 +00:00
Compare
city-root-review requested changes 2026-11-12 14:27:06 +00:00
Dismissed
city-root-review left a comment

Review of 131e0f3520 for rexcity-ndhl1. Checks of the head: success.

Verdict

fail

Findings

  • [blocking] The pull request does not merge cleanly into main: the forge reports it not_mergeable, and in a clone git merge 131e0f3 into origin/main (7ac5fdc, #91, merged after this branch was rebased onto 369b5a8) conflicts in internal/rpp/fake_test.go, in the fields of fakeRex (about line 73): #91 adds failWindowsAfterSplit and windowsFail, this branch adds onCreate. Rebase onto main at 7ac5fdc or later. The resolution is to keep both sides; nothing else conflicts. With that resolution, everything under "Verified" passes on the merged tree, so the rebase should be all this round needs.

Findings of round 1, rechecked

  • The blocking finding is fixed. internal/rpp/view.go:118 and :131 now run r.StartTime and closeStale on openCtx. The harness's StartTime, Windows and CloseBlock (internal/rpp/fake_test.go) honour a cancelled context as the real ones do. TestACancelDuringTheOpeningStillRecordsTheView asserts RootPID and RootStart, and the new TestACancelDuringTheOpeningStillClosesThePaneOfTheEarlierStartOfTheName asserts that the earlier pane is closed.
  • SIGQUIT: Follow takes it into the same NotifyContext as SIGTERM (internal/acpbox/follow.go:76), so the defers that restore the terminal run. TestASIGQUITEndsAFollowerAsASIGTERMDoes covers both signals. No test in acpbox is parallel, so the self-signal does not reach another test.
  • Corrupt views: Store.View (internal/state/state.go:332) clears only on EACCES, EISDIR and ELOOP. Any other read error is returned and the record is kept.
  • PruneLogs and agents with no recorded pane: the README states the limit now, and the changelog fragment follows the changes.

Verified

  • Read the work bead (items 1–7, a–d) and its notes, the PR description, the round-1 review, and REVIEW.md of main (main has no AGENTS.md or CLAUDE.md). Read the whole diff against the merge base 369b5a8 (28 files, +1146/−76), with the source and the round-1 commit read line by line. Every item the bead lists is addressed, nothing unrelated is in, and the README and the fragment .changelog/acp-box-review-findings.md are there.
  • #91 adds no direct start-time comparison that would bypass startMatches: the only comparisons are in ownsRoot, rootAlive and wrapperAlive. Views() in tabs.go (from main) goes through readView, as before.
  • On the merged tree (origin/main 7ac5fdc + this head, fake_test.go resolved by keeping both sides), with the city's variables removed: go vet ./... on the host, with GOOS=darwin GOARCH=arm64 and with GOOS=linux GOARCH=amd64 all exit 0. gofmt -l is clean. go test -count=1 ./... passes in every package. go test -race on acpbox, rpp, state, proc and cmd/rexcity passes.
  • Changelog check: built cmd/changelog from mikluko/changelog v2 (v2.1.0) and ran -base main -warn missing-fragment on the merged tree: valid=true, exit 0.
  • The head's own checks, test / go, test / changelog and image / image, are all success. The image job ran because internal/ is touched. They ran against 369b5a8, before #91 merged.
Review of 131e0f35206257bbf0f3e520074d4fe99b86f0cd for rexcity-ndhl1. Checks of the head: success. ### Verdict fail ### Findings - [blocking] The pull request does not merge cleanly into `main`: the forge reports it `not_mergeable`, and in a clone `git merge 131e0f3` into `origin/main` (7ac5fdc, #91, merged after this branch was rebased onto 369b5a8) conflicts in `internal/rpp/fake_test.go`, in the fields of `fakeRex` (about line 73): #91 adds `failWindowsAfterSplit` and `windowsFail`, this branch adds `onCreate`. Rebase onto `main` at 7ac5fdc or later. The resolution is to keep both sides; nothing else conflicts. With that resolution, everything under "Verified" passes on the merged tree, so the rebase should be all this round needs. ### Findings of round 1, rechecked - The blocking finding is fixed. `internal/rpp/view.go:118` and `:131` now run `r.StartTime` and `closeStale` on `openCtx`. The harness's `StartTime`, `Windows` and `CloseBlock` (`internal/rpp/fake_test.go`) honour a cancelled context as the real ones do. `TestACancelDuringTheOpeningStillRecordsTheView` asserts `RootPID` and `RootStart`, and the new `TestACancelDuringTheOpeningStillClosesThePaneOfTheEarlierStartOfTheName` asserts that the earlier pane is closed. - SIGQUIT: `Follow` takes it into the same `NotifyContext` as SIGTERM (`internal/acpbox/follow.go:76`), so the defers that restore the terminal run. `TestASIGQUITEndsAFollowerAsASIGTERMDoes` covers both signals. No test in `acpbox` is parallel, so the self-signal does not reach another test. - Corrupt views: `Store.View` (`internal/state/state.go:332`) clears only on `EACCES`, `EISDIR` and `ELOOP`. Any other read error is returned and the record is kept. - `PruneLogs` and agents with no recorded pane: the README states the limit now, and the changelog fragment follows the changes. ### Verified - Read the work bead (items 1–7, a–d) and its notes, the PR description, the round-1 review, and `REVIEW.md` of `main` (`main` has no `AGENTS.md` or `CLAUDE.md`). Read the whole diff against the merge base 369b5a8 (28 files, +1146/−76), with the source and the round-1 commit read line by line. Every item the bead lists is addressed, nothing unrelated is in, and the README and the fragment `.changelog/acp-box-review-findings.md` are there. - #91 adds no direct start-time comparison that would bypass `startMatches`: the only comparisons are in `ownsRoot`, `rootAlive` and `wrapperAlive`. `Views()` in `tabs.go` (from `main`) goes through `readView`, as before. - On the merged tree (origin/main 7ac5fdc + this head, `fake_test.go` resolved by keeping both sides), with the city's variables removed: `go vet ./...` on the host, with `GOOS=darwin GOARCH=arm64` and with `GOOS=linux GOARCH=amd64` all exit 0. `gofmt -l` is clean. `go test -count=1 ./...` passes in every package. `go test -race` on acpbox, rpp, state, proc and cmd/rexcity passes. - Changelog check: built `cmd/changelog` from mikluko/changelog `v2` (v2.1.0) and ran `-base main -warn missing-fragment` on the merged tree: `valid=true`, exit 0. - The head's own checks, `test / go`, `test / changelog` and `image / image`, are all success. The image job ran because `internal/` is touched. They ran against 369b5a8, before #91 merged.
mikluko force-pushed worker/rexcity-ndhl1 from 131e0f3520
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 10s
test / go (pull_request) Successful in 1m43s
to 243592664a
All checks were successful
test / changelog (pull_request) Successful in 4s
image / image (pull_request) Successful in 10s
test / go (pull_request) Successful in 1m44s
2026-11-12 14:32:07 +00:00
Compare
city-root-review approved these changes 2026-11-12 15:47:42 +00:00
Dismissed
city-root-review left a comment

Review of 243592664a for rexcity-ndhl1. Checks of the head: success.

Verdict

pass

Findings

None.

Findings of round 2, rechecked

  • The blocking finding is fixed. The branch is rebased onto main at 51dffc8 (#92), so it is now on main's tip and the merge is a fast-forward. The forge reports it mergeable. The fakeRex fields in internal/rpp/fake_test.go keep both sides: failWindowsAfterSplit and windowsFail from #91, and onCreate from this branch (lines 75–81).
  • #92 changes only README.md, in the claudeacp section. Nothing there contradicts this branch's README edits: the [providers.claude-proxy] example of the rexcity acp claude section is the only provider named there.

Verified

  • Read the work bead (items 1–7, a–d) and its notes, the PR description, the reviews of rounds 1 and 2, and REVIEW.md of main (main has no AGENTS.md or CLAUDE.md). Read the whole diff against main (28 files, +1146/−76). It is the change round 2 read, rebased. The round-1 fixes are still in: r.StartTime and closeStale run on openCtx (internal/rpp/view.go:118, :131); SIGQUIT is in Follow's NotifyContext (internal/acpbox/follow.go:76); Store.View clears only on EACCES, EISDIR and ELOOP (internal/state/state.go:332). The README states the PruneLogs limit.
  • On the merged tree (origin/main 51dffc8 + this head), with the city's variables removed: go vet ./... on the host, with GOOS=darwin GOARCH=arm64 and with GOOS=linux GOARCH=amd64 all exit 0. gofmt -l is clean. go test -count=1 ./... passes in every package. go test -race on acpbox, rpp, state, proc and cmd/rexcity passes.
  • Changelog check: built cmd/changelog from mikluko/changelog v2 (087d7e8, v2.1.0) and ran -base main -warn missing-fragment on the merged tree: valid=true, exit 0, no warning. The fragment .changelog/acp-box-review-findings.md holds only ### Changed and ### Fixed with their bullets.
  • The head's own checks all succeeded: test / go (job 4745), test / changelog (job 4746) and image / image (run 1885, job 4744). The image job built the image and ran the new smoke step through rexcity acp -- rexcity acp claude …. Its log shows "stdout":"rexcity-smoke" through the box, the header ━━ acp smoke__worker-1 · rexcity · pid 302065 · …, and ▷ Bash #1, ✓ Bash #1 (<1s) and ■ end_turn, and every grep the step makes matched.
Review of 243592664a187d93f3eb28b85f89a17f93406221 for rexcity-ndhl1. Checks of the head: success. ### Verdict pass ### Findings None. ### Findings of round 2, rechecked - The blocking finding is fixed. The branch is rebased onto `main` at 51dffc8 (#92), so it is now on `main`'s tip and the merge is a fast-forward. The forge reports it `mergeable`. The `fakeRex` fields in `internal/rpp/fake_test.go` keep both sides: `failWindowsAfterSplit` and `windowsFail` from #91, and `onCreate` from this branch (lines 75–81). - #92 changes only `README.md`, in the `claudeacp` section. Nothing there contradicts this branch's README edits: the `[providers.claude-proxy]` example of the `rexcity acp claude` section is the only provider named there. ### Verified - Read the work bead (items 1–7, a–d) and its notes, the PR description, the reviews of rounds 1 and 2, and `REVIEW.md` of `main` (`main` has no `AGENTS.md` or `CLAUDE.md`). Read the whole diff against `main` (28 files, +1146/−76). It is the change round 2 read, rebased. The round-1 fixes are still in: `r.StartTime` and `closeStale` run on `openCtx` (`internal/rpp/view.go:118`, `:131`); SIGQUIT is in `Follow`'s `NotifyContext` (`internal/acpbox/follow.go:76`); `Store.View` clears only on `EACCES`, `EISDIR` and `ELOOP` (`internal/state/state.go:332`). The README states the `PruneLogs` limit. - On the merged tree (`origin/main` 51dffc8 + this head), with the city's variables removed: `go vet ./...` on the host, with `GOOS=darwin GOARCH=arm64` and with `GOOS=linux GOARCH=amd64` all exit 0. `gofmt -l` is clean. `go test -count=1 ./...` passes in every package. `go test -race` on acpbox, rpp, state, proc and cmd/rexcity passes. - Changelog check: built `cmd/changelog` from mikluko/changelog `v2` (087d7e8, v2.1.0) and ran `-base main -warn missing-fragment` on the merged tree: `valid=true`, exit 0, no warning. The fragment `.changelog/acp-box-review-findings.md` holds only `### Changed` and `### Fixed` with their bullets. - The head's own checks all succeeded: `test / go` (job 4745), `test / changelog` (job 4746) and `image / image` (run 1885, job 4744). The image job built the image and ran the new smoke step through `rexcity acp -- rexcity acp claude …`. Its log shows `"stdout":"rexcity-smoke"` through the box, the header `━━ acp smoke__worker-1 · rexcity · pid 302065 · …`, and `▷ Bash #1`, `✓ Bash #1 (<1s)` and `■ end_turn`, and every grep the step makes matched.
mikluko force-pushed worker/rexcity-ndhl1 from 243592664a
All checks were successful
test / changelog (pull_request) Successful in 4s
image / image (pull_request) Successful in 10s
test / go (pull_request) Successful in 1m44s
to 424605a793
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 10s
test / go (pull_request) Successful in 1m44s
2026-11-12 15:57:45 +00:00
Compare
mikluko dismissed city-root-review's review 2026-11-12 15:57:45 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

city-root-review left a comment

Review of 424605a793 for rexcity-ndhl1. Checks of the head: success.

Verdict

pass

Findings

  • [minor] README.md:88: main's sentence still says the terminal's modes and the cursor are put back "on SIGINT, SIGTERM and SIGHUP too". This head adds SIGQUIT to that signal context (internal/acpbox/follow.go:185), and its changelog bullet says so. Adding SIGQUIT to the README's list would keep the two in step. It is not blocking.
  • [minor, outside this change] internal/acpbox/pane_test.go:1012 (TestAWordOfMegabytesOnATerminalIsKeptForAReplayInLinearTime, from #86) holds a 5 s wall-clock bound. Under go test -race on a busy machine it failed twice here (5.6 s and 9.5 s), on this head. Without -race it takes 0.12 s on this head and 0.2–0.5 s on main, so the change is not slower. Under -race both scatter between about 2 and 5 s, and main passed its three runs. CI runs no -race, so this is a flaky bound in main's test, not a regression of this change.

Verified

  • Requirement: the work bead's seven findings and notes (a)–(d), and the Operator's 16:51/16:56 notes: a rebase only onto main 2ff3907, dropping what main already carries. git range-diff 51dffc8..2435926 2ff3907..424605a against the head approved before shows exactly what the PR description lists. The follower's own terminal handling is dropped (quietTerminal, the term_*.go files, isTerminal, the Follow/follower split, ignoring Ctrl-C/Ctrl-Z, their tests, their README sentence and changelog bullets), because main's hushInput (#86) carries item 2. SIGQUIT is kept, as one signal added to main's signal.NotifyContext. hushTermios keeps ISIG, so Ctrl-\ still raises it. The cancel shield sits on main's openPane(..., true), and the fake's onCreate sits on main's split/record helpers. Nothing else differs.
  • Read the whole diff (21 files, +961/−71). Checked the following:
    • The render path maps control characters to pictures and indents continuation lines.
    • The pane strips that indent and waits out a partial indent.
    • Log rotation over 8 MiB, and PruneLogs with its header, view and regular-file guards.
    • proc.StartTime in UTC/C with the utc prefix, and the legacy fallback in startMatches.
    • OpenView's WithoutCancel with the caller's deadline kept.
    • The corrupt or unreadable view handling, ensureViewsDir, and the empty record.
    • The smoke step through rexcity acp --.
    • The README and the fragment.
  • REVIEW.md, read from main: the fragment is under .changelog/, with type headings only. No breaking change. The internal/ change runs the image job.
  • The merge onto origin/main 2ff3907 is a fast-forward (main is the head's base), so the merge is clean.
  • With the city's variables removed (0 shown):
    • go vet ./... on the host, GOOS=darwin GOARCH=arm64 and GOOS=linux GOARCH=amd64: exit 0.
    • gofmt -l cmd internal packs: empty.
    • go test ./...: all ok.
    • go test -race -count=1 on acpbox, rpp, state, proc and cmd/rexcity: ok except the timing test above. The new tests, repeated -count=3: ok.
  • Changelog check, built from mikluko/changelog at tag v2 (v2.1.0) with the workflow's warn: missing-fragment, on the merged tree: valid=true, exit 0.
  • The head's checks: test / go, test / changelog and image / image are success. The image job (run 1914, job 4807) ran the new smoke step in the image. The log box/…/smoke__worker-1.log shows ━━ acp smoke__worker-1 · rexcity · pid …, ▷ Bash #1, ✓ Bash #1 (<1s) and ■ end_turn, and every grep of the step passed.
  • The PR's description is present, with a section on the rebase.
Review of 424605a7932e28bd36542514868e695f8de0c871 for rexcity-ndhl1. Checks of the head: success. ### Verdict pass ### Findings - [minor] README.md:88: main's sentence still says the terminal's modes and the cursor are put back "on `SIGINT`, `SIGTERM` and `SIGHUP` too". This head adds `SIGQUIT` to that signal context (`internal/acpbox/follow.go:185`), and its changelog bullet says so. Adding `SIGQUIT` to the README's list would keep the two in step. It is not blocking. - [minor, outside this change] `internal/acpbox/pane_test.go:1012` (`TestAWordOfMegabytesOnATerminalIsKeptForAReplayInLinearTime`, from #86) holds a 5 s wall-clock bound. Under `go test -race` on a busy machine it failed twice here (5.6 s and 9.5 s), on this head. Without `-race` it takes 0.12 s on this head and 0.2–0.5 s on main, so the change is not slower. Under `-race` both scatter between about 2 and 5 s, and main passed its three runs. CI runs no `-race`, so this is a flaky bound in main's test, not a regression of this change. ### Verified - Requirement: the work bead's seven findings and notes (a)–(d), and the Operator's 16:51/16:56 notes: a rebase only onto main 2ff3907, dropping what main already carries. `git range-diff 51dffc8..2435926 2ff3907..424605a` against the head approved before shows exactly what the PR description lists. The follower's own terminal handling is dropped (`quietTerminal`, the `term_*.go` files, `isTerminal`, the `Follow`/`follower` split, ignoring Ctrl-C/Ctrl-Z, their tests, their README sentence and changelog bullets), because main's `hushInput` (#86) carries item 2. SIGQUIT is kept, as one signal added to main's `signal.NotifyContext`. `hushTermios` keeps `ISIG`, so Ctrl-\ still raises it. The cancel shield sits on main's `openPane(..., true)`, and the fake's `onCreate` sits on main's `split`/`record` helpers. Nothing else differs. - Read the whole diff (21 files, +961/−71). Checked the following: - The render path maps control characters to pictures and indents continuation lines. - The pane strips that indent and waits out a partial indent. - Log rotation over 8 MiB, and `PruneLogs` with its header, view and regular-file guards. - `proc.StartTime` in UTC/C with the `utc ` prefix, and the legacy fallback in `startMatches`. - `OpenView`'s `WithoutCancel` with the caller's deadline kept. - The corrupt or unreadable view handling, `ensureViewsDir`, and the empty record. - The smoke step through `rexcity acp --`. - The README and the fragment. - REVIEW.md, read from main: the fragment is under `.changelog/`, with type headings only. No breaking change. The `internal/` change runs the image job. - The merge onto origin/main 2ff3907 is a fast-forward (main is the head's base), so the merge is clean. - With the city's variables removed (0 shown): - `go vet ./...` on the host, `GOOS=darwin GOARCH=arm64` and `GOOS=linux GOARCH=amd64`: exit 0. - `gofmt -l cmd internal packs`: empty. - `go test ./...`: all ok. - `go test -race -count=1` on acpbox, rpp, state, proc and cmd/rexcity: ok except the timing test above. The new tests, repeated `-count=3`: ok. - Changelog check, built from mikluko/changelog at tag v2 (v2.1.0) with the workflow's `warn: missing-fragment`, on the merged tree: `valid=true`, exit 0. - The head's checks: `test / go`, `test / changelog` and `image / image` are success. The image job (run 1914, job 4807) ran the new smoke step in the image. The log `box/…/smoke__worker-1.log` shows `━━ acp smoke__worker-1 · rexcity · pid …`, `▷ Bash #1`, `✓ Bash #1 (<1s)` and `■ end_turn`, and every grep of the step passed. - The PR's description is present, with a section on the rebase.
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/rexcity!93
No description provided.