docs: design issue 444 n1 input preconditions - #445
Merged
Conversation
Refs #444 #434 #407 #395 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E1ve5ae7r5n43cAzFGXycK
kappaseijin4claude
deleted the
docs/issue-444-n1-input-preconditions
branch
September 13, 2026 06:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Issue #444 の設計である。gate runner が N1 の native Claude を、プロンプトを投入できる画面まで進めるための前提を定める。
文書は
docs/decisions/2026-09-13T151535_issue-444-n1-input-preconditions.mdの 1 本だけで、実装は別 PR(agmsg_programmer_claude)で行う。Refs #444 #434 #407 #395
断定
$GATE_CLAUDE_CONFIG/.claude.jsonへhasCompletedOnboarding: true、theme: "dark"、projects.<GATE_REPO>.hasTrustDialogAccepted: trueの 3 つだけを merge して書く。原子的に書き、読み戻して確かめる。fresh と resume の起動直前に毎回行うCLAUDE_CODE_OAUTH_TOKENだけを見る。ファイルを読まず、argv にも載せず、継承させるだけ。ANTHROPIC_API_KEYとANTHROPIC_AUTH_TOKENは unset する。token が無ければ launcher を起動せずauth_token_absent。記録するのは present か absent かだけpty.rawから ANSI を除いた全文で、? for shortcutsを正に観測し、かつSelect login methodとQuick safety checkを一度も観測していないときだけ準備完了とする。30 秒で timeout、CLI 版が未確認ならunknown。阻害画面を突破するキー入力は送らない補足:
pilot-pty.pyに 120x40 の端末サイズ設定を加える(現状は未設定。grep 0 件、同じファイルでの正の対照あり)manual mode on)を使わない。gate の--settingsで表示が変わりうるため未確認の点(native smoke で判明する)
.claude.jsonを置いたパスは、verifier の報告に明記されていない。パスが違えば阻害画面が出るので、unknownで止まる。誤ったまま先へは進まない--settingsを渡したときの画面試験要件
fixture 試験 N1P-01〜15 を定めた(§7.1)。実 token は使わず、合成値で行う。
主な対照は次のとおり。
unknown、prompt 0 回).claude.jsonが symlink の場合と、RUN_ROOTの外を指す場合README への影響
無。gate harness は開発・受入用の内部ツールである。
🤖 Generated with Claude Code
https://claude.ai/code/session_01QCtgi8wVJDRaMwXHZmkHqT