Skip to content

fix(ce-simplify-code): run the inline reviewer from its prompt asset - #2108

Open
SomSamantray wants to merge 1 commit into
EveryInc:mainfrom
SomSamantray:fix/ce-simplify-code-inline-persona
Open

SomSamantray wants to merge 1 commit into
EveryInc:mainfrom
SomSamantray:fix/ce-simplify-code-inline-persona

Conversation

@SomSamantray

Copy link
Copy Markdown
Contributor

Summary

ce-simplify-code Step 2 told a reviewer dispatched as a subagent to read its prompt asset, but framed that as "the subagent's prompt". A pass that runs inline — because the host has no subagent primitive or a dispatch failed — could read the instruction as not applying to it. When that happens the comment reviewer's persona never loads, so its keep list is absent and the generic "prune comments" instruction is all the model has.

This states the read for both paths and pins it with a contract test.

Fixes #2099.

Changes

  • skills/ce-simplify-code/SKILL.md Step 2: the read now applies "whether dispatched or inline", and the reviewer uses the full prompt-asset file as its instructions. The follow-on sentence says "use it verbatim" instead of "pass it verbatim" so it is true on both paths.
  • tests/pipeline-review-contract.test.ts: pins the inline read. Both assertions fail against the base blob and pass on this branch.

Deliberately unchanged: the issue's other half (small scopes appearing to skip reviewer dispatch) was not reproducible for the maintainer, and Step 2's preflight already states that size is never the reason to skip a pass. A size clause would stack a case onto a condition that already decides it.

Validation

  • bun run test:skill-guards — 947 pass, 17 skip, 0 fail.
  • bun test tests/pipeline-review-contract.test.ts — 79 pass, 0 fail. The new test goes red when the prose change is stashed, so the guard fails on the regressing variant.
  • bun run test --changed-since=ee3695a24ae1ccb205e4334b79799cb25c060247 — 4087 pass, 18 skip, 0 fail across 175 files. Python 3.12 was first on PATH; this checkout's default python3 is 3.9, which fails the pre-existing validate-doc-claims tests on main too.
  • bun run typecheck and bun run release:validate — pass. SKILL.md is 7,823 bytes (7,897 CRLF-adjusted), under the 8,000-byte Codex ratchet.
  • Behavioral eval: not run. Both host CLIs were installed but unauthenticated here — Claude Code returned "OAuth session expired and could not be refreshed", and Codex CLI failed token refresh (401). The mechanical checks above do not depend on either host.

Security Disclosure

No security-relevant changes.

Agent Disclosure

  • Tool: DeepSeek Harness

Step 2 told a dispatched reviewer to read its prompt asset, but the
sentence framed it as the subagent's prompt. A pass that runs inline --
because the host has no subagent primitive or a dispatch failed -- could
read that as not applying, so the comment reviewer's keep list never
loaded and reason-bearing comments were pruned.

State the read for both paths and pin it in the pipeline contract test.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T06:26:36.542266Z 7941f23 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ce-simplify-code: small scopes skip reviewer dispatch, and the inline path has no comment keep list

1 participant