Repository navigation
fix(ce-simplify-code): run the inline reviewer from its prompt asset - #2108
Open
SomSamantray wants to merge 1 commit into
Open
SomSamantray wants to merge 1 commit into
SomSamantray wants to merge 1 commit into
Conversation
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.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ce-simplify-codeStep 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.mdStep 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 onPATH; this checkout's defaultpython3is 3.9, which fails the pre-existingvalidate-doc-claimstests onmaintoo.bun run typecheckandbun run release:validate— pass.SKILL.mdis 7,823 bytes (7,897 CRLF-adjusted), under the 8,000-byte Codex ratchet.Security Disclosure
No security-relevant changes.
Agent Disclosure