Skip to content

[improvement](ci) Refine Codex review goal completion prompt#64658

Merged
zclllyybb merged 1 commit into
apache:masterfrom
zclllyybb:codex-shared-review-ledger
Jun 22, 2026
Merged

[improvement](ci) Refine Codex review goal completion prompt#64658
zclllyybb merged 1 commit into
apache:masterfrom
zclllyybb:codex-shared-review-ledger

Conversation

@zclllyybb

@zclllyybb zclllyybb commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Problem Summary: I modified the codex to support the codex exec --goal mode. The Codex review workflow now enters goal mode through the runner's --goal invocation, so the review instructions should describe the completion criteria and convergence process instead of telling the model to create the goal itself.

see modification in https://github.com/zclllyybb/codex/tree/codex-exec-goal

Verification:

### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary: The Codex review workflow now enters goal mode through the runner's --goal invocation, so the review instructions should describe the completion criteria and convergence process instead of telling the model to create the goal itself. This change keeps the shared-ledger subagent process, final convergence requirement, GitHub review verification, xhigh reasoning setting, and Litefuse trace input path aligned with the validated workflow behavior.

### Release note

None

### Check List (For Author)

- Test: Manual test
    - Verified the two committed files match fresh origin validation base commit ca89739.
    - Ran workflow YAML parsing locally.
    - Ran git diff --check for the committed files.
    - Validated on origin PR #49 via workflow run 27895281133, which succeeded, submitted 8 inline review comments, and uploaded Litefuse trace c3078f147a04f9ead1ddb64ba02562fb with no missing I/O.
- Behavior changed: No
- Does this need documentation: No
@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@zclllyybb

Copy link
Copy Markdown
Contributor Author

run buildall

@zclllyybb

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot 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.

Automated review completed. I found two blocking issues: the workflow installs and runs an unpinned executable fetched from mutable OSS storage in a privileged CI context, and the generic code-review skill now mandates subagent/GitHub-review side effects for all review uses instead of scoping them to goal-mode GitHub reviews where those tools and permissions are available.

Critical checkpoint conclusions:

  • Goal/test coverage: the PR targets Codex goal-mode review orchestration; the workflow changes implement that path, but the binary provenance and generic skill scoping issues are not covered by an enforceable validation.
  • Scope/focus: the change is mostly focused on the review runner and review skill, but the skill change broadens behavior beyond this runner.
  • Concurrency/lifecycle/config/compatibility: no Doris runtime concurrency, lifecycle, config, storage format, transaction, FE-BE protocol, or data-write path changes were found.
  • Parallel paths: workflow_call and workflow_dispatch share the changed runner path; ordinary/local code-review skill uses are the problematic parallel path.
  • Tests/results: no test result files are involved; I validated YAML parsing and diff whitespace locally, but did not run the workflow.
  • Observability/performance: not applicable beyond the existing workflow logging and Litefuse recording.

User focus: no additional user-provided focus was present.

Subagent conclusions: the workflow-focused pass proposed the unpinned executable finding; the skill-focused pass proposed the generic mandatory side-effect/subagent finding. I independently verified both against the diff, existing review context, SECURITY.md, and threat-model.md. Final convergence round ended with both subagents reporting NO_NEW_VALUABLE_FINDINGS for this comment set.

Comment thread .github/workflows/code-review-runner.yml
Comment thread .claude/skills/code-review/SKILL.md
@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Jun 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@zclllyybb zclllyybb merged commit 88991dc into apache:master Jun 22, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants