Skip to content

Hide AI가 시작한 일은 자기 집에 두고, 운영자가 할 일이 있을 때만 Needs You에 올린다 - #1146

Merged
yansfil merged 16 commits into
mainfrom
spec/hide-ai-work-home
Oct 15, 2026
Merged

yansfil merged 16 commits into
mainfrom
spec/hide-ai-work-home

Conversation

@yansfil

@yansfil yansfil commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Related: PRD agents/prd/hide-ai-work-home/prd.md

Summary

  • Hide AI가 올리기 같은 일을 하려고 시작한 에이전트가 사이드바 트리, Sessions, 폰 목록, 배지에 운영자의 일처럼 섞여 나오던 것을 없앴습니다.
  • 그 일은 자기 집(지금은 Memory 탭)에서만 보이고, 운영자가 할 일이 있을 때만 Needs You에 한 줄로 올라옵니다.
  • 할 일은 에이전트가 직접 묻는 것, 올리기 PR이 리뷰를 기다리는 것(PR #n 리뷰), 체크가 실패하고 에이전트가 멈춘 것(CI 실패)입니다.
  • 그 줄을 누르면 pane이 아니라 Memory 탭에서 그 시도의 행이 열립니다.
  • PR이 머지되거나 닫히면 에이전트가 끝나고, 깨끗한 워크트리는 브랜치를 남기고 지워집니다. 더러운 워크트리는 그대로 두고 로그에 남깁니다.
  • 새 빌드가 모르는 작업 종류나 작업 종류가 없는 예전 기록은 장부를 깨지 않고 운영자 행으로 남습니다.

Review

  • 판단해 주세요: PR #n 리뷰, CI 실패 두 줄의 말과, 읽은 뒤에도 PR이 머지될 때까지 Needs You에 남는 규칙이 맞는지.
  • 조심해서 볼 파일: herdr-core/src/runtime/memory_promotion.rs - 추적 결과로 행의 차례를 정하고 정리까지 하는 failure path, 정리는 runtime lock 밖에서 돕니다.
  • 조심해서 볼 파일: herdr-core/src/agent_state/{axes,turn,tally}.rs, tally/scope.rs - 소유권 값 하나가 모든 목록의 포함 여부를 정하는 곳이고, snapshot에 실리는 고빈도 경로입니다.
  • 조심해서 볼 파일: herdr-core/src/coordination/mod.rs - 작업 종류가 닫힌 목록이 되고 알 수 없는 값도 장부가 읽는 호환 경로입니다.
  • 비용 검토: 차례 표는 추적 사실이 움직일 때만 다시 계산하고 값이 같으면 계보를 다시 만들지 않습니다. 정리는 한 번의 확인에 16개까지이고, 닿지 않는 기기는 자리를 차지하지 않으며 거절은 한 번만 기록합니다.

Evidence

  • 확인한 것: 마지막 헤드에서 Rust 테스트(herdr-core, hide-memory, hided와 통합 테스트), verify-cargo.sh lint, 웹 테스트 1603개, web typecheck, lint, 디자인 계약 검사가 통과했습니다.
  • 확인한 것: 실제 core와 고정된 Herdr, 브라우저, 가짜 gh(상태 파일을 테스트가 움직임)로 e2e가 통과했습니다(main의 로고 보기 모드 변경을 합친 뒤에도 17개)(main의 Needs You 고정 목록 변경을 합친 뒤에도, Hide AI 행은 고정 목록에 있고 누르면 Memory 행이 열립니다). 새 hide-ai-home 스펙이 심은 Memory 시도 한 건으로 다음을 봅니다.
    • PR이 열려 있고 체크가 통과하면 행이 Needs You에 Promote Memory · m43과 PR #924 review로 올라오고, 트리에는 없습니다.
    • 행을 누르면 pane을 포커스하지 않고 Memory 탭에서 그 시도의 행이 펼쳐집니다.
    • 체크가 실패하고 에이전트가 쉬면 같은 한 행의 말이 CI failed로 바뀝니다.
    • PR이 머지되면 행이 사라지고, 그 에이전트의 pane이 닫히고, 깨끗한 워크트리가 지워지고, 브랜치는 남습니다.
  • 확인한 것: 나머지 e2e는 Hide AI 행이 트리에서 빠지고 알 수 없는 종류가 운영자 행으로 남는 것, 사이드바, Sessions, blocked 상태, Memory 탭의 기존 흐름입니다.
  • 확인한 것: 정리의 각 경우(깨끗함, 더러움, 다른 에이전트, 이름만 비슷한 운영자 에이전트, 기록된 에이전트가 없음, 실행 중 프로그램, 이미 없음, 닿지 않음)는 단위 테스트로 확인했습니다.
  • 스크린샷: 올리지 않고 실행 폴더에만 두었습니다. 사이드바 Needs You 행의 PR #924 review 줄, 같은 행의 CI failed 줄, 눌러서 펼쳐진 Memory 탭 m43 행(PR 924, Open pull request, Open agent)을 담았습니다.
  • 확인하지 못한 것: 가짜 gh는 브라우저 셸에서 돌렸고 설치된 앱과 데스크톱 호스트는 건드리지 않았습니다. 웹 셸에는 알림 경로가 없어 "CI 실패로 바뀔 때 두 번째 알림 없음"은 라이브로 보지 못했고, 알림 키가 그룹 진입으로만 정해진다는 단위 테스트에 기댑니다.
  • 확인하지 못한 것: 폰 알림이 Needs You를 떠나는 행을 닫는 것은 10분 뒤이고, 데스크톱과 폰 알림 본문은 차례 문구 없이 일반 문구입니다. 재시작 직후 이미 알려진 PR 리뷰 행이 한 번 더 알림을 낼 수 있습니다.
  • 확인하지 못한 것: 정리가 .gitignore된 파일(.env, 캐시)은 워크트리와 함께 지웁니다. 이는 기존 워크트리 삭제와 같은 동작입니다. 막힌 워크트리(더러움, 다른 에이전트, 실행 중 프로그램)는 다음 시작에서만 다시 시도하고 로그에 남으며 기존 디스크 정리 검토에 나옵니다.
  • 확인하지 못한 것: Pen 라이브러리와 scripts/pen-hide-ai-origin.mjs는 아직 옛 Hide AI 그룹 머리를 그립니다. 후속 작업입니다.
  • 확인하지 못한 것: 풀 verify 두 번이 부하 의존 테스트(remote_spawn, opener_lifecycle) 한 건씩으로 실패했고, 단독 실행과 재실행에서는 통과했습니다. 이 변경과 무관합니다.
Verification record
  • PRD: agents/prd/hide-ai-work-home/prd.md (sha256 8a3ad4279d4270c6240dd787ebb0470db4b0e6c11798e319cefd58f0c6e3bca1)
  • Base 1f60d51 → head db134b2, verified 2026-10-15T10:30:55.178Z: PASS
  • Verification report: agents/runs/hide-ai-work-home/verification-report.json and agents/runs/hide-ai-work-home/verification-report.md; source fingerprint 35de99f0a9efdce503ae941d78ea862b4ed4d5ec028f8b1c8339f888cccff4ae
  • Suites:
    • S1: GREEN bash scripts/verify-cargo.sh test (exit 0)
    • S2: GREEN bash scripts/verify-cargo.sh lint (exit 0)
  • Reviews: Fidelity and Code (head c845450a5): gaps fixed in the final head - repeated refusal logged on every check, empty-task record without a diagnostic, block cause hidden behind the home's turn, cleanup fold hiding a kept worktree, retire starving behind an absent machine, stale home table, and the attempt's agent chosen by name prefix (now the agent the promotion recorded). Stands as accepted limits - restart can announce a home row once more, a kept worktree is retried only on the next start (decided in the PR, no polling), phone notice closes after the 10 min window. Follow-up on the fixes (head 43b9cfb2f): one low finding, fixed. Security (head aa0465ced): no critical or high findings; fixed - pane matching at a path boundary with trailing slashes, unknown task kind kept short and printable; stands - ignored files go with the worktree as with any worktree removal, a pane id reused by another agent inside the same retained worktree is not told apart by session, a retry reusing a branch between plan and removal.
  • Evidence: 10 registered (7 log, 3 screenshot); paths are local to the run directory
    • agents/runs/hide-ai-work-home/evidence/e2e-final.log
    • agents/runs/hide-ai-work-home/evidence/rust-test-final.log
    • agents/runs/hide-ai-work-home/evidence/e2e-home-turn.log
    • agents/runs/hide-ai-work-home/evidence/e2e-final-rebased.log
    • agents/runs/hide-ai-work-home/evidence/e2e-after-main-merge.log
    • agents/runs/hide-ai-work-home/evidence/e2e-home-after-main-merge.log
    • agents/runs/hide-ai-work-home/evidence/home-needs-you-pr-review.png
    • agents/runs/hide-ai-work-home/evidence/home-needs-you-ci-failed.png
    • agents/runs/hide-ai-work-home/evidence/home-memory-row-opened.png
    • agents/runs/hide-ai-work-home/evidence/e2e-after-logo-mode-merge.log
  • Changed paths: 40 (see Files changed)
  • Delivery: mode pr, branch spec/hide-ai-work-home, base main

…cleanup

A Hide AI agent whose task has a home (today a Memory card's promotion)
leaves every operator list and reaches Needs You only on the operator's
turn: its own question or block, a pull request to review, or failed
checks it is no longer working on. The core computes that turn from the
followed attempt's pull request and publishes it on the row.

When GitHub says the pull request merged or closed, the attempt's agent
is ended and its worktree removed if the tree is clean and nothing else
runs in it; the branch is kept. Attempts settled before an upgrade are
retired on the next start. A task kind this build does not know no longer
fails the ledger: that agent alone stays an operator row, with a
diagnostic.
…og Project

A row its home owns is drawn only by the raised Needs You and Sessions
lists, never under a checkout, and carries the catalog Project the home
belongs to so the shell can open it.
The sidebar tree has no Hide AI head any more, and a checkout Hide AI made
is drawn only while it is in front or an operator's agent works in it. A
Hide AI row in Needs You or Sessions words what its home waits for (PR
review, CI failure) after the agent's own ask, names it in the accessible
name, and opens the Memory tab on that attempt's row from a click, a digit
or a notification. Agent search and links still reach every row.
…g a refusal once with its path, and log a record with no task
@yansfil
yansfil force-pushed the spec/hide-ai-work-home branch from 3326839 to 950ed39 Compare October 15, 2026 07:01
@yansfil
yansfil merged commit 28f1f9e into main Oct 15, 2026
21 checks passed
@yansfil
yansfil deleted the spec/hide-ai-work-home branch October 15, 2026 11:07
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