Skip to content

feat(review): add managed labeling runtime foundation #5406

Open

Description

@purp

User Story

As an OpenShell maintainer preparing automatic labeling of accepted issues and PRs, I need a reviewable runtime adapter and invocation selector that reuse the standalone /label-issue workflow, so we can validate the managed execution boundary before enabling automatic application.

Description

Deliver the runtime foundation for Part 3 of #5276: a Claude Managed Agents classification adapter, deterministic selection of acceptance events and authorized human invocations, offline regression coverage, and concise integration documentation.

The adapter consumes prepared evidence and trusted classification instructions and returns a proposal with an execution reference. The shared helper from #5355 retains eligibility, evidence preparation/expansion, semantic validation, label writes, checkpoints, and local reporting. Include an explicit request-preview/live smoke-test harness; do not activate automatic labeling as part of this foundation.

Context

Definition of Done

  • Provide a version-pinned, budget/deadline-bounded classifier adapter returning an unvalidated JSON proposal and session reference.
  • Keep tools, GitHub writes, eligibility, and checkpoint logic outside the remote classifier; preserve failed-session recovery and uncertain-write handling.
  • Select issue/PR acceptance events and authorized human PR-comment/manual invocations, including force, without independently deciding acceptance.
  • Cover completion, failures, pagination, human authorization, bot-applied acceptance, drafts, and request preview with offline tests registered in CI.
  • Document the shared-helper handoff and remaining activation prerequisites; install no automatic labeling workflow in this foundation.
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

    state:acceptedA maintainer decided OpenShell should pursue this issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions