Skip to content

Use task labels as agent display titles - #118

Merged
yansfil merged 4 commits into
mainfrom
fix/remove-auto-agent-name
Sep 20, 2026
Merged

yansfil merged 4 commits into
mainfrom
fix/remove-auto-agent-name

Conversation

@yansfil

@yansfil yansfil commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Keep Herdr and Sasu agent names as lifecycle and CLI targeting identifiers, but remove them from Hide's visible agent-title ladder.
  • Use the rolling context-label task everywhere an agent is named, with the workspace label as the only fallback when no task exists.
  • Remove the duplicate sidebar task field and route sidebar, pane header, search, Recent, Overview, lineage, settings, and stall notices through the core-owned identity_label.
  • Retire the legacy plugin-generated name token without clearing operator-assigned Herdr agent names.

Task titles are consistent across the sidebar, pane header, and Overview

Review focus

  • 사람이 판단할 것: Agent의 제어용 name을 화면에서 완전히 숨기고, 작업 맥락은 task와 workspace만으로 전달하는 제품 규칙이 맞는지 확인해 주세요.
  • 위험한 파일: herdr-core/src/sidebar.rs의 단일 identity ladder와 macos/Sources/HerdrMacOS/ShellView.swift의 agent/non-agent pane title 우선순위입니다.
  • 리뷰어에게 묻는 것: Agent pane에서는 task가 Herdr label보다 우선하고, non-agent pane에서는 명시적 Herdr label이 계속 우선하는 경계가 적절한지 확인해 주세요.

Risk surface

  • Runtime mutex: 잠금 안에서 새 I/O, subprocess, 직렬화 작업을 추가하지 않았고 기존 projection 문자열 선택만 단순화했습니다.
  • Snapshot wire: 기존 revisioned snapshot의 identity_label을 유일한 표시 제목으로 유지하고, 같은 빌드 안에서만 중복 소비되던 task 필드를 제거했습니다.
  • Ownership: Herdr는 agent name과 pane lifecycle을 계속 소유하고, core는 task에서 workspace로 fallback하는 사용자 표시 identity만 소유합니다.
  • High-frequency path: 이벤트, 타이머, worker, provider 호출을 추가하지 않았고 snapshot의 중복 문자열 한 개를 제거했습니다.

Evidence

  • 확인한 것: 최신 origin/main을 병합한 HEAD에서 Rust workspace 전체 테스트가 통과했습니다. Core는 577개 통과, 6개 환경 의존 테스트 제외였고 plugin 75개, CLI 5개, FFI 31개, hook 32개, hide-ai unit 40개와 integration 24개도 통과했습니다.
  • 확인한 것: Swift 전체 497개 테스트, Rust lint, 디자인 계약과 7개 디자인 회귀 테스트, 38개 script unit test, Herdr 0.9.1 protocol 22 schema 검사가 통과했습니다.
  • 확인한 것: name 우선 로직을 임시 복원했을 때 sidebar, lineage, settings, stall notice 관련 9개 관찰 가능 테스트가 실패해 회귀 테스트의 민감도를 확인했습니다.
  • 확인한 것: 별도 서명된 fixture 앱에서 agent id와 pane label을 fixture-agent-working으로 충돌시켜도 sidebar, pane header, Overview가 모두 task Connecting Rust bytes를 표시하는 것을 정확한 후보 PID와 window id로 확인했습니다.
  • 확인하지 못한 것과 그 이유: 실제 Sasu 실행을 새로 만들어 장시간 관찰하지는 않았습니다. Sasu가 전달하는 name과 동일한 충돌 조건을 fixture와 projection 테스트에서 재현했고, 운영 중인 설치 앱과 세션은 QA 과정에서 변경하지 않았습니다.
  • 화면 증거: 위 이미지는 merged HEAD의 전용 fixture bundle 창만 캡처한 것으로, 운영 앱은 계속 실행된 상태에서 건드리지 않았습니다.

AI tooling

  • 사람이 직접 작성 - [ ] 일부를 AI 도구로 작성 - [x] 대부분을 AI 도구로 작성

손으로 확인한 것: merged diff, title fallback 경계, 전체 테스트 결과, 별도 native fixture의 sidebar, pane header, Overview 표시를 직접 대조했습니다.

@yansfil
yansfil merged commit 015132c into main Sep 20, 2026
5 checks passed
@yansfil
yansfil deleted the fix/remove-auto-agent-name branch September 20, 2026 05:26
yansfil added a commit that referenced this pull request Sep 20, 2026
Related: PRD `agents/prd/checkout-row-d/prd.md`

## Summary

- Redesign the checkout sidebar row and Overview identity strip around
checkout, lifecycle, pull-request, check, agent, and inactive states,
including full review-state labels.
- Persist checkout purpose across live Herdr workspace tokens and Git
branch descriptions, with purpose entry during worktree creation and
actionable partial-failure outcomes.
- Emit the runtime-specific SessionStart purpose context from refreshed
hook version 2, and document the ownership and fallback model.
- Promote the approved badge and checkout component sheets into the
design library while keeping shell values bound to `HideTheme` tokens.

![Approved checkout row D
board](https://github.com/yansfil/pr-assets/blob/main/hide/checkout-row-d/a6a7b27/checkout-row-final.png?raw=true)

![Isolated native QA: collapsed, expanded, purpose sheet, and Overview
header](https://github.com/yansfil/pr-assets/blob/main/hide/checkout-row-d/a6a7b27/checkout-row-native-comparison.png?raw=true)

![Full Changes requested label in the narrow Overview
header](https://github.com/yansfil/pr-assets/blob/main/hide/checkout-row-d/a6a7b27/09-wrapped-full-review-state.png?raw=true)

## Related

- `agents/prd/checkout-row-d/prd.md`

## Review focus

- **사람이 판단할 것**: 승인된 보드와 실제 row 및 Overview의 정보 밀도, 목적 입력과 부분 실패 문구가 운영
흐름에 맞는지 확인해 주세요.
- **위험한 파일**: `herdr-core/src/workspace.rs`,
`herdr-core/src/worktree_control.rs`,
`herdr-core/src/runtime/session.rs`의 목적 권위와 미러 수명주기, 그리고 Swift sidebar 및
Overview projection이 핵심입니다.
- **리뷰어에게 묻는 것**: 마지막으로 남은 live workspace가 목적 권위를 갖고, 생성 직후 token write
실패의 fallback은 프로세스 수명 동안만 유지하는 해석이 PRD의 D-09와 D-13에 맞는지 봐 주세요.

## Risk surface

- **Runtime mutex**: lock 안에서는 작은 map과 in-flight 상태만 복제하거나 갱신합니다. Git 및
Herdr 작업은 기존 task-operation worker로 넘기며, lock 안에서 서브프로세스나 블로킹 I/O를 수행하지
않습니다.
- **Snapshot wire**: purpose와 원격 상태는 기존 revisioned navigator 및
remote-session snapshot에 포함됩니다. `WorkspaceInfo.tokens`는 wire 경계에서 보존되어
live workspace purpose를 투영합니다.
- **Ownership**: live workspace가 있으면 Herdr token이 권위이고, workspace가 사라지면
Git branch description이 내구성 있는 fallback입니다. core가 두 저장소 사이의 미러와 사용자 작업
결과를 소유합니다.
- **Herdr contract**: 배포된 v0.9.1 schema의 `WorkspaceInfo.tokens`와 CLI만
사용하며, pinned contract 검사가 통과했습니다.
- **Failure path**: D-13의 부분 실패 문구를 sheet에 표시하고 row는 실제 fallback 값을 유지하며
진단 로그에 원인을 남깁니다. 재시도 가능한 입력은 sheet에 보존됩니다.
- **High-frequency path**: session projection에서 작은 purpose 선택만 추가합니다.
Git subprocess는 tick 또는 tab 전환 경로에 없고, 미러 작업은 기존 단일 task queue에서 상태 전이에만
생성됩니다.

## Evidence

- **확인한 것**: main 통합 및 CI 구조 inventory 수정 후 최종 head `a6a7b27`에서 Rust
test, Swift test, Rust lint의 세 결정적 lane이 모두 통과했습니다. 통합 직전 제품 head
`8c6907d`의 개발 앱을 bundle id `me.grab.hide.checkout-row-d`, version
`0.0.0-dev+8c6907d`로 빌드했고 design contract와 Herdr v0.9.1 contract도
통과했습니다. 통합 충돌을 해결한 디자인 라이브러리는 다시 생성해 토큰 위반 0과 `Component 22` 계약을 확인했습니다.
- **토큰 실측**: 격리 서버에서 `herdr workspace report-metadata <ws> --source <id>
--token purpose=<value>`를 실행해 80자 절단, source 간 마지막 writer 우선, 이긴 source가
지우면 key가 사라지는 동작을 확인했습니다.
- **확인하지 못한 것과 그 이유**: 실제 VoiceOver 낭독, 지원하는 두 런타임의 실제 SessionStart 전달,
Herdr 0.9.0 원격, 주입한 부분 실패의 네이티브 화면은 자동화 안전 경계와 외부 런타임 조건 때문에 test 및
source contract로 확인했습니다. 제품 변경 head `8c6907d`에서 정확한 앱 build를 확인했고, 이후
main 통합과 inventory 수정은 최종 Swift 검증 및 CI로 확인했지만 안전하지 않은 global input을 피하기
위해 최종 head 화면을 다시 조작하지 않았습니다.
- **화면 증거**: 격리된 private Herdr server와 임시 Git fixture에서
collapsed/expanded rows, 목적 sheet와 저장/재시작 fallback, pull-request 상태와
popover, stale 상태를 exact-window capture로 확인했습니다. 특히
`09-wrapped-full-review-state.png`와
`10-wrapped-full-review-required.png`에서 `#118 Changes requested`와 `#119
Review required`가 생략 없이 표시됩니다. 증거는 저장소 정책에 따라 로컬 run directory에만 보존했습니다.

## AI tooling

- [ ] 사람이 직접 작성  - [x] 일부를 AI 도구로 작성  - [ ] 대부분을 AI 도구로 작성

**손으로 확인한 것**: 승인 PRD 및 디자인 보드와 네이티브 캡처를 대조했고, 정확한 bundle id와 version,
검증 보고서의 head 및 결과, 두 리뷰 라운드의 발견과 처분을 확인했습니다.

<details><summary>Verification record</summary>

- PRD: `agents/prd/checkout-row-d/prd.md` (sha256
7194feba6634e02ea4ce7dea685e24915b2cb5271b3343f881c69b757a08e1f5)
- Base `5926dbb` -> head `a6a7b27`, verified 2026-09-20T14:13:39.601Z:
PASS
- Verification report:
`agents/runs/checkout-row-d/verification-report.json` and
`agents/runs/checkout-row-d/verification-report.md`; source fingerprint
f01d8ef812c70c6725740ca8f47532490e9fe451957df1b1bf2b284e0d01b84e
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0, 503.0s)
  - S2: GREEN `bash scripts/verify-swift.sh test` (exit 0, 23.9s)
  - S3: GREEN `bash scripts/verify-cargo.sh lint` (exit 0, 3.7s)
- Reviews:
- Round 1 on `7adb5bf`: Fix now findings for stale PR muting without a
retained PR, double-failure creation fallback, nested-project purpose
targeting, separate PR-glyph accessibility, and unsupported-remote help
were fixed in `9103689`.
- Round 2 on `9103689`: the B13/B14/B17 live-workspace authority and
path-normalization finding was fixed in `b1446b8`; the B19
creation/mirror race was fixed with the PRD-minimum process-local
fallback in `8c6907d`.
- Round 2 suggestion to persist suppression across restart and cap it
was rejected because B19 and D-13 require only a closed sheet, fallback
row value, diagnostic, and retry. Restart persistence would add
unapproved state. It remains a follow-up candidate if a future
requirement calls for restart durability.
- Per explicit delivery direction, `b1446b8`, `8c6907d`, the
conflict-resolved main integration in `58a644f`, and CI inventory fix
`a6a7b27` did not receive a fresh review round. The shipped head is
covered by the final deterministic verification report; the product
changes before main integration have exact-head contract/build logs.
- The first CI run found `CoreCheckoutPurpose` missing from the existing
bridge responsibility inventory. `a6a7b27` registered the DTO, and its
focused structure tests passed before the full verification rerun.
- Evidence: 22 registered (13 screenshots, 9 logs), all local to
`agents/runs/checkout-row-d/` per repository policy.
- Changed paths in the base-to-head verification scope: 89 (see Files
changed, including changes integrated from main).

</details>
yansfil added a commit that referenced this pull request Oct 29, 2026
…wner flakes (#1813)

Closes with-hide/hide-private#119
Closes with-hide/hide-private#281
Closes with-hide/hide-private#118
Closes with-hide/hide-private#120
Closes with-hide/hide-private#201
Closes with-hide/hide-private#313
Related: with-hide/hide-private#189, with-hide/hide-private#288 (원인 미확정,
이 PR에서 닫지 않음)

## Summary

hided 통합 테스트의 core_move·remote_core·node_owner flaky와 macOS remote
mailbox nightly 실패를 원인에서 고칩니다.
제품 코드 변경은 하나: 두 writer가 같은 진단 로그에 쓸 때 기록이 서로 섞이던 것을, 기록 하나를 한 번에 쓰도록
고쳤습니다.
나머지는 테스트 쪽입니다: 상태 대신 짧은 시간이나 한 번의 읽기에 기대던 대기, 실패한 run이 남긴 바이너리로 찬 디스크,
macOS에서 runner의 `gh`가 fixture의 것보다 먼저 잡히던 PATH.
#189/#288은 재현되지 않아 범위에서 뺐고, lane이 이제 실패와 flaky run의 `rc-*` 로그를 남깁니다.
스크린샷 없음: 화면을 건드리지 않습니다.

<details><summary>이슈별 원인과 처리</summary>

- **#119** node_owner refusal: `writeln!`이 줄과 개행을 두 번 write해,
`record_now`와 writer 스레드 사이에 다른 기록이 끼었습니다(CI 로그에 refusal 줄 뒤로
`start.step`이 붙어 있음). 줄과 개행을 한 `write_all`로 씀.
- **#118** a_newer_app...: 기기 helper upload(디버그 `hided`·`hide` 각 140MB)가
30초 bound를 넘던 것. #1751이 이미 고쳤고, 이후 CI는 `upload sent 0, reused 3`, 약 9초에
ready. 이슈에 근거 코멘트.
- **#281** manifest refusal: #1751 이후 남은 두 실패. (a) move back이
rolled_back을 기록한 뒤 node role이 시작되는데(#962) 이 테스트만 role을 한 번 읽음 -> 모든 move
back rollback이 쓰는 `back_rolled_back` helper. (b) `os error 11`: fixture
renderer가 handshake와 첫 snapshot을 2초 socket read로 묶어, 호출자의 30초 wait를 즉시
실패시킴 -> read는 hang guard만, 실패 시 무엇을 기다렸는지 말함.
- **#120** linked state folder: 같은 job에서 `/tmp`가 `Disk quota exceeded`가
된 직후의 timeout. 앞선 실패 run마다 바이너리 약 0.9GB가 남은 탓 -> 남기는 run은 native
program을 지우고 로그만 남김. fixture가 만들어지기 전 setup이 실패한 run도 같음.
- **#313** a_failing_move_back_check...(이 PR의 첫 CI에서 발견): supervisor가
journal `done`을 move view가 `linking`을 벗어나기 전에 써서, 그 사이 요청이 `move_busy`로
거절됨 -> `forward_done`이 창의 move view `done`까지 기다림.
- **#201** macOS nightly(10-17 이후 매번 실패): core가 `not_logged_in`으로 답함.
macOS login shell의 `path_helper`가 시스템 폴더를 앞에 두어 runner의 `gh`가 먼저 잡힘 ->
fixture HOME의 `.zprofile` 등이 계정 PATH를 앞에 둠(web fixture의
`fixtureLoginShellPath`와 같은 방식).
- **node_owner `hide connect`**: 5초 wall-clock 단언은 부하에서 daemon 시작 시간을
쟀습니다(load 30에서 11.7초). 지우고, 종료가 다음 look에서 wait를 끝낸다는 것은
`wait_healthy_within`에 종료 신호를 주는 fake-clock 테스트로 증명. 통합 테스트는 파일과 이유만 봄.
- **#189/#288** remote_core 화면(같은 테스트): Linux remote_core 23개 x
8회(184회), 로컬 macOS 69회, nightly macOS 23/23에서 재현 없음. lane이 `rc-*`를 올리지
않아 증거가 메시지뿐이었음. 결과와 다음에 볼 곳은 두 이슈에 코멘트.

</details>

## Review

- **판단해 주세요**: renderer의 2초 read를 30초 hang guard로 바꾼 것은 대기 늘리기가 아니라, 첫
snapshot이라는 신호를 오는 즉시 읽고 시간 추측으로 실패하지 않게 한 것입니다(TESTING.md, Writing a
Rust test 5).
- **조심해서 볼 파일**: `herdr-core/src/diagnostics.rs` - failure path(시작 거부
기록)의 쓰기 방식.
- **조심해서 볼 파일**: `hided/tests/it/support/run.rs` - 남기는 run에서 ELF/Mach-O만
지우고 link는 따라가지 않음.
- **조심해서 볼 파일**: `.github/workflows/remote-mailbox.yml` - flaky run도 로그를
올림, `rc-*`는 `*.log`와 `Logs/*.jsonl`만(fixture 경로는 담김), artifact 이름에
attempt.
- **비용 검토**: 진단 기록 한 건마다 줄을 재사용 버퍼에 한 번 복사합니다(`writeln!`의 두 write 대신 한
`write_all`). 버퍼는 writer가 본 가장 긴 기록 크기에서 멈추고, 그 뒤 할당은 없습니다.

## Evidence

- **확인한 것**: 새 diagnostics 테스트가 예전 `writeln!`에서 3/3 실패(CI와 같은
`{...}{...}` 섞임), 고친 코드에서 통과.
- **확인한 것**: fake-clock 테스트에서 350ms에 종료한 daemon의 wait가 그 뒤 pause 없이 다음
look(425ms)에서 `exited with`로 끝남.
- **확인한 것**: 바뀐 core_move 7개 x 3회(21회) 로컬 macOS 실패 0, 남은 `/tmp/hcm-*`
없음. diagnostics·node_owner·run 20회 반복 실패 0(load 26~30).
- **확인한 것**: nightly `lane=macos` dispatch(run 40725749658)의 remote
mailbox macos-15 첫 시도 통과: remote_core 23/23(#201 테스트 포함), core_move
44/44, flaky 0.
- **확인한 것**: PR CI Linux remote mailbox: core_move 44/44, remote_core
23/23, flaky 0.
- **확인하지 못한 것**: #189/#288 원인(Linux CI에서만 약 8% run에서 실패, stress 184회 재현
없음).
- **확인하지 못한 것**: #201 수정 전 실패의 로컬 재현(이 Mac의 `/etc/paths` 폴더에 `gh`가 없음).
같은 nightly run의 web e2e macOS 실패는 이 diff와 무관.
- **확인하지 못한 것**: windows check의 web 단위 테스트
`web/src/practice/worlds.test.ts` 5초 timeout(이 diff와 무관)은 실패 job만 한 번
재실행해 통과.

<details><summary>Verification record</summary>

- Head: `def885735` (review fix on top of `c9290db54`)
- Base: `origin/main` (merge-order: Stay as you are)
- Local, macOS arm64: `cargo nextest -p herdr-core -p hided`
diagnostics·wait·node_owner 테스트 72/72 pass, 새 테스트 둘과 node_owner 20회 반복
실패 0, exit 확인을 deadline 뒤로 옮기면 새 cli 테스트 실패; clippy `-D warnings` 0
warnings, `cargo fmt --check` clean.
- Local, macOS arm64: core_move 7개(manifest, newer app, linked state,
failing move back, move back window, issues through move, staging
failure) x 3 = 21/21 pass at c9290db.
- CI: verify run 40729811159 at c9290db 39/39 pass (windows check 1회
재실행); nightly `lane=macos` run 40725749658 remote mailbox macos-15 pass.
- Temporary stress (51af1e7, reverted in c9290db): remote mailbox
ubuntu job 122933565889, remote_core 23 x 8 = 184 pass.
- Review fix (this head): node_owner fake-clock exit test, reused log
buffer, `rc-*` log allowlist.
- Changed paths: `herdr-core/src/diagnostics.rs`, `hided/src/cli.rs`,
`hided/tests/it/{node_owner,core_move}.rs`,
`hided/tests/it/support/{core_move,run}.rs`,
`hided/tests/it/support/remote_delivery/{mod,renderer}.rs`,
`.github/workflows/remote-mailbox.yml`.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant