Skip to content

Keep unactionable failures off the screen and drop the Raycast marketing analysis - #106

Merged
yansfil merged 3 commits into
mainfrom
docs/state-surfacing-and-design-trim
Sep 19, 2026
Merged

yansfil merged 3 commits into
mainfrom
docs/state-surfacing-and-design-trim

Conversation

@yansfil

@yansfil yansfil commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

에이전트가 기능을 구현할 때 데이터가 만들 수 있는 상태를 전부 화면에 올리려는 경향이 있었고, 그 근거가 문서 표현에 있었다.
AGENTS.md의 "a refusal or a timeout keeps the core's value and says so"는 누구에게 말하는지 적지 않아 UI로 읽혔고(#105의 런치 alert가 그 결과), 디자인 캔버스 규칙은 "one frame per state the data can produce"라 상태 수만큼 보드를 그리게 했다.

  • 런타임 노트는 원칙 집합의 design Move live and remote Herdr parsing to the typed boundary #13("a state reaches the screen only where the operator would act on it; a failure they cannot act on goes to the log")을 가리키고, 로컬 사항만 남긴다: 조치 불가한 실패는 진단 로그로, alert/banner/sheet는 PRD 결정이지 기본값이 아니다.
  • Screen / 보드는 운영자가 다르게 보는 상태당 한 프레임; 로그 한 줄만 바뀌는 상태는 프레임이 없다.
  • DESIGN.md에서 Raycast 마케팅 사이트 분석 810줄(hero stripe, white CTA pill, 96px section rhythm, store card)을 지웠다. 셸이 참조하지 않던 값이고, 모든 surface 변경이 1400줄을 선독하게 만들고 있었다. front matter는 native 섹션이 참조하는 토큰만 남겼고, .help() 금지 규칙은 삭제된 Don't 목록에서 tooltip 섹션으로 옮겼다.

Review focus

  • 사람이 판단할 것: design #13을 원칙 집합에 추가한 것이 맞는지(oh-my-principle 220c86b). 이 PR은 그 결정을 전제로 한다.
  • 위험한 파일: DESIGN.md front matter. check-hide-design.mjs가 essence:와 .help() 문장을 요구하고 @google/design.md lint가 orphan token을 경고하므로, 두 file-icon 색은 shell-file-icon-* 컴포넌트로 묶었다.

Risk surface

diff는 문서와 Swift 주석 한 줄이라 런타임 위험면은 없다.

Evidence

  • 확인한 것: node scripts/check-hide-design.mjs (lint 0 errors 0 warnings, 필수 문장 3개 존재), bash scripts/check-git-worktree-presentation.sh, node scripts/check-design-contract.mjs (theme literals 0, 캔버스 146 generated values 일치), node scripts/check-hide-design-enforcement.mjs, bash scripts/check-no-workstation-identity.sh 모두 통과.
  • 확인하지 못한 것과 그 이유: 문서 변경이 이후 에이전트 세션의 행동을 실제로 바꾸는지는 다음 구현 PR에서만 관찰된다.

AI tooling

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

손으로 확인한 것: 삭제 범위(DESIGN.md 469-814행)에 native 규칙이 .help() 한 줄 외에 없음을 grep으로 대조했고, 남은 섹션이 참조하는 토큰 집합과 새 front matter가 일치함을 대조했다.

A refusal or timeout on a core-owned value recorded a diagnostic and was
described as saying so, which read as a licence to present it; the launch
alert in #105 was that reading. State the rule once in the runtime notes:
an outcome the operator cannot act on goes to the log, a screen carries a
state only when the operator would act differently on it, and a PRD draws
a frame per state the operator sees, not per state the data can produce.
The first 810 lines described Raycast's marketing site: hero stripes, a
white CTA pill, 96px section rhythm, store cards. None of it governed the
shell, and it made the design contract 1400 lines that every surface
change had to read. The front matter now carries only the tokens the
native sections reference, the two file-icon neutrals are named there
instead of as marketing text steps, and the native tooltip rule moved to
the tooltip section it belongs to.
The rule now lives in the principle set as design #13, so the runtime
notes keep only what is local: the log is where an unactionable failure
goes, and a presented surface is a PRD decision.
@yansfil
yansfil merged commit 057eee9 into main Sep 19, 2026
5 checks passed
@yansfil
yansfil deleted the docs/state-surfacing-and-design-trim branch September 19, 2026 13:06
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