Skip to content

fix(cli,mcp): target-pin flag の値なし指定を USAGE 拒否 + runner deadline と call timeout の整合 #383

Open

Description

@rebuildup

PR #379 CodeRabbit Major findings。

対象

  1. --project-file / --ae-version が値なし・空値で pin を silent disable する

    • devtools-cli/argv.mjs の parseArgs は bare --project-file を true、--project-file= を "" にする。cli.mjs:131 / mcp-server/server.mjs:299 の typeof === "string" マッピングは両方 undefined に落とし、--allow-mutation grant だけが残って「どの project にも pin されない mutation」が実行可能になる。
    • 対応: flag が存在するのに非空 string でない場合は session open 前に USAGE で refuse(cli.mjs, server.mjs の両方)。--ae-version も同様。
  2. runner deadline が call timeout を下回り得る(cli.mjs:133 付近)

    • --call-timeout-ms 30000 のみ指定すると runner の deadlineMs は default 10s のまま → call budget 内に終わる host op が 10s で UNKNOWN/quarantine される。
    • 対応: deadline 未指定時は callTimeoutMs を包含する default に導出するか、非互換な明示ペアを dispatch 前に拒否する。owned(a8n)/attached 両 session で一貫させる。

検証

  • cli.mjs / server.mjs の usage-path test(bare flag, =空値, 正常値)
  • deadline 導出の test

Refs #366, PR #379

Activity

  1. added a commit that references this issue on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions