Skip to content

feat: issue-refinement-loop SubAgent 入出力契約を Agent SDK schema で型強制する #168

Open

Description

@squne121

Issue #127 で定義した ANCHOR_COMMENT_CONTEXT_V1 / ANCHOR_COMMENT_FACT_CHECK_RESULT_V1 を Agent SDK の outputFormat schema として実装し、typed tool / schema enforcement を実現する。Issue #127 の Out of Scope として分離されたスコープ。

Acceptance Criteria

  • codebase-investigator は Issue/PR mutation 系 tool(gh issue edit / gh issue close / gh pr merge 等)を実行できない(disallowedTools 設定または permission 制限で担保)
  • web-researcher は repo mutation / Issue mutation を実行できない(disallowedTools 設定または permission 制限で担保)
  • ANCHOR_COMMENT_FACT_CHECK_RESULT_V1 は JSON Schema / Zod / Pydantic のいずれかで schema validation される
  • schema validation failed の場合は retry し、再失敗時は human_escalation
  • final_classification を確定できるのは main thread / orchestrator のみ(SubAgent への委譲禁止)
  • mutation 実行前に final_classification と Safety Claim Gate をチェックする

Activity

  1. added
    enhancement
    on May 21, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions