Skip to content

ci(pr-automation): use Helmcode review agents - #1819

Draft
Benoît Cortier (CBenoit) wants to merge 3 commits into
masterfrom
cbenoit-investigate-pasted-task
Draft

ci(pr-automation): use Helmcode review agents#1819
Benoît Cortier (CBenoit) wants to merge 3 commits into
masterfrom
cbenoit-investigate-pasted-task

Conversation

@CBenoit

@CBenoit Benoît Cortier (CBenoit) commented Aug 28, 2026

Copy link
Copy Markdown
Member

Replace Claude-specific jobs with a bounded OpenAI-compatible action backed by Helmcode.

Route specialists through base-branch policy, validate pinned protocol citations, and publish only the independently verified final review.

Keep model jobs read-only while preserving existing classification, quota, force, review-count, and serialized publication policies.

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

Replace Claude-specific jobs with a bounded OpenAI-compatible action
backed by Helmcode.

Route specialists in trusted code, validate pinned protocol citations,
and publish only the independently verified final review.

Keep model jobs read-only while preserving existing classification,
quota, force, review-count, and serialized publication policies.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates PR automation from Claude-specific jobs to bounded, read-only Helmcode agents with trusted routing, validation, and publication.

Changes:

  • Adds the OpenAI-compatible filesystem-agent action and CI coverage.
  • Introduces specialist routing, aggregation, provenance, and final-review validation.
  • Pins and sanitizes protocol sources while preserving automation gates and serialized publication.

Review scope: Protocol review was skipped because these changes do not affect RDP behavior.

Reviewed changes

Copilot reviewed 50 out of 53 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
xtask/src/check.rs Checks the action lockfile.
.github/workflows/labeler.yml Runs the new review pipeline.
.github/workflows/ci.yml Tests and verifies automation.
.github/PR_AUTOMATION.md Documents the new architecture.
.github/pr-automation/automation.test.js Tests automation policy and validation.
.github/pr-automation/write-state.js Publishes validated review state.
.github/pr-automation/validation.js Shares line validation.
.github/pr-automation/validate-reviewer.js Removes the legacy validator.
.github/pr-automation/validate-protocol-review.js Validates pinned citations.
.github/pr-automation/validate-final-review.js Validates final reviews.
.github/pr-automation/validate-classifier.js Adds specialist routing state.
.github/pr-automation/validate-candidate-review.js Validates specialist candidates.
.github/pr-automation/routing.js Defines trusted reviewer policy.
.github/pr-automation/review-pipeline.js Aggregates specialist runs.
.github/pr-automation/resolve-state.js Resolves new review state.
.github/pr-automation/prepare-review-sources.sh Sanitizes protocol sources.
.github/pr-automation/fetch-pr-evidence.sh Hardens model evidence.
.github/pr-automation/schemas/reviewer.json Removes the legacy schema.
.github/pr-automation/schemas/protocol-reviewer.json Removes the legacy protocol schema.
.github/pr-automation/schemas/final-review.json Defines final-review output.
.github/pr-automation/schemas/classifier.json Adds specialist selections.
.github/pr-automation/schemas/candidate-review.json Defines specialist output.
.github/pr-automation/prompts/skeptical.md Configures skeptical review.
.github/pr-automation/prompts/skeptical-reviewer.md Removes the legacy prompt.
.github/pr-automation/prompts/protocol-reviewer.md Updates protocol review output.
.github/pr-automation/prompts/general-reviewer.md Configures final verification.
.github/pr-automation/prompts/code-compressor.md Configures compression review.
.github/pr-automation/prompts/classifier.md Adds routing and duplicate context.
.github/pr-automation/agents/classifier.json Configures classification.
.github/pr-automation/agents/protocol.json Configures protocol review.
.github/pr-automation/agents/skeptical.json Configures skeptical review.
.github/pr-automation/agents/code-compressor.json Configures compression review.
.github/pr-automation/agents/general-reviewer.json Configures final review.
.github/actions/resilient-review-output/action.yml Removes the Claude wrapper.
.github/actions/resilient-review-output/validate.js Removes legacy validation.
.github/actions/openai-agent/action.yml Defines the new action.
.github/actions/openai-agent/src/index.js Starts the action.
.github/actions/openai-agent/src/main.js Handles action execution.
.github/actions/openai-agent/src/agent.js Implements bounded agent turns.
.github/actions/openai-agent/src/config.js Validates trusted configuration.
.github/actions/openai-agent/src/sandbox.js Enforces filesystem capabilities.
.github/actions/openai-agent/src/errors.js Defines safe errors.
.github/actions/openai-agent/src/limits.js Centralizes runtime limits.
.github/actions/openai-agent/test/agent.test.js Tests agent behavior.
.github/actions/openai-agent/test/config.test.js Tests configuration validation.
.github/actions/openai-agent/test/helpers.js Provides test workspaces.
.github/actions/openai-agent/test/main.test.js Tests action orchestration.
.github/actions/openai-agent/test/sandbox.test.js Tests sandbox boundaries.
.github/actions/openai-agent/package.json Declares action dependencies.
.github/actions/openai-agent/package-lock.json Locks dependencies.
.github/actions/openai-agent/dist/index.js Bundles the action runtime.
.github/actions/openai-agent/dist/licenses.txt Bundles dependency licenses.
.github/actions/openai-agent/.gitignore Excludes installed modules.
Files not reviewed (1)
  • .github/actions/openai-agent/package-lock.json: Generated file

Comment thread .github/pr-automation/write-state.js Outdated
Comment thread .github/actions/openai-agent/test/agent.test.js Outdated
Revalidate current review policy immediately before irreversible review
publication, check persistence, and review-count label changes.

Keep the output-budget regression test at top level so node:test always
executes its assertions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use only qwen3.6 for classification so model access failures surface
instead of silently consuming GLM capacity.

Describe workflow-controlled configuration and validated model data
precisely rather than labelling model-derived artifacts as trusted.

Remove fallback-only runtime state, outputs, and tests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants