Handshake: declare MODIFY and ASK capability on the wire and tighten what the handshake negotiates

オープン
#533 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
json, typescript

調査の方向性

Start with docs/spec/conformance.md, docs/spec/instrument/specification.md, and the v0.1.0 handshake and request-envelope schemas; compare the cited sections and lines against the review notes linked in the issue. Each checklist item asks for protocol or schema decisions across multiple files, so agree on the intended behavior before editing. Done means all six items are resolved consistently, with normative text and schema validation aligned.

索引モデルが issue の本文から書いたものです。

説明

priority:P2 scope:deferred status:accepted type:proposal workstream:spec

Yaron Sheffer (@yaronf) reviewed the ACS docs and specification at release 0.1.4 and wrote up his notes in yaronf/ACS-Notes. This issue groups his notes on ClientHello, ServerHello, and capability negotiation. Each item is one of his notes, re-checked against integration at db457a8, and the line numbers are at that commit.

  • The specification asks the Guardian to learn out of band which hooks a client emits (docs/spec/conformance.md line 32 for subagentStart) while the same bullet says the optional hooks are "capability-negotiated via the handshake," and it never says why either mechanism is needed. The alternative is a rule on the harness: if the framework can observe or spawn an event, it MUST emit the hook, so absence means the event did not occur. Please either state the rationale for methods_implemented and methods_evaluated in the specification (for example a partial Guardian or an optional observability hook), or replace them with a fixed Core hook set plus conditional emission. Issue #16 (no signal for missing hook coverage) and issue #31 (methods_evaluated allows accept-and-ignore) cover detection, not this design.
  • §6.5 tells the Guardian to learn out of band whether a client can apply MODIFY and says v0.1 does not put that on the wire (docs/spec/instrument/specification.md line 206), and §9.2 does the same for ASK (line 335). ACS-Core already requires a handshake that declares methods_implemented and profiles_supported, so the client's ability to apply MODIFY and to route ASK belongs in ClientHello (specification/v0.1.0/handshake.json lines 8 to 66). Please add both capabilities to ClientHello and make the §6.5 and §9.2 substitutions key on them. Issue #147 (a substituted DENY looks like a policy DENY) covers the record of a substitution, not the declaration.
  • The method-name pattern ^(steps/|protocols/|agbom/|trace/|system/|handshake/|wrapped:).+ (specification/v0.1.0/handshake.json line 27, specification/v0.1.0/request-envelope.json line 14) accepts steps/notAHook, trace/foo, wrapped:!!!, and, because it has no $, a name followed by a newline and anything else. methods_implemented may be empty or hold duplicates, and methods_evaluated (line 79) and per_method_ms keys (line 116) have no pattern at all. Please define one end-anchored method-name grammar (known names, or a tight namespace/Name form plus the wrapped: form), apply it to all four places, and add minItems and uniqueItems. Separately, the handshake.json root (line 6) and the acs_schema.json reference to it (line 11) validate an empty object, and the request payload for handshake/hello is not checked against ClientHello. PR #496 (defer/subscribe) adds defer/ to the same two patterns and keeps the .+ form.
  • Transport negotiation does nothing a client can act on. handshake/hello already arrives on a concrete transport, selected_transport (specification/v0.1.0/handshake.json lines 82 to 85) carries no address, port, or command and has no description, and nothing says it must be one of transports_supported or what the agent does when it differs from the current connection. §13 lets a failed ping "renegotiate transport" (docs/spec/instrument/specification.md line 436) while deferring system/handshake_renegotiate to v0.2 (line 437). Please either delete transports_supported and selected_transport in v0.1, or specify the switch: which endpoint, when later hooks move, and what a mismatch means. Issue #165 and PR #348 (reference Guardian transport selection) fix the reference code only.
  • The ServerHello list in §4 (docs/spec/instrument/specification.md line 83) is an inventory, and several fields get no normative sentence anywhere. approver_types_supported and selected_transport appear nowhere else in docs/, methods_evaluated appears elsewhere only in the FAQ, timeout_config's default_ms and per_method_ms shape is schema-only, trace_emission gets one sentence about the collector endpoint, and the trace_emission descriptions cite a "Section 3.15" that does not exist (specification/v0.1.0/handshake.json lines 154 and 155). Please give each field a normative sentence or stop listing it. PR #352 (§10 verifier rules) would define signature_algorithms_supported, and issue #15 (handshake resolution rules) is related.
  • §4.1 says "Whether a Guardian can attach mid-flight to a session that started unguarded is undefined in v0.1" (docs/spec/instrument/specification.md line 102), which gives the Guardian an action the protocol does not have. Every v0.1 message is a request the Observed Agent sends, and v0.1 has no notifications (line 73), so a Guardian that was down at session start has nothing to send into that session. Please rephrase with the Observed Agent as the actor: say whether it may begin a handshake for a session_id it already started unguarded, and what happens to the actions it took before that hello. Issue #386 (re-handshake vs no renegotiation) asks the related legality question, and Bar Kaduri's pending default-deny PR for issue #32 will rewrite this paragraph, so whichever lands second should carry the change.

A PR that fixes only some of these items should say Refs with this issue number rather than Closes, so the issue stays open until the last item lands.

主要言語
TypeScript
スター
183
フォーク
56
平均マージ
3日 1時間
マージ済み PR(30日)
67

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GenAI-Security-Project/agent-control-standard のほかの issue

GenAI-Security-Project/agent-control-standard の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。