feat(cli): add optional patch-risk assessment to deterministic reviews - #629
Draft
tdullien1 wants to merge 2 commits into
Draft
Conversation
tdullien1
force-pushed
the
codex/deterministic-patch-risk-assessment
branch
3 times, most recently
from
August 24, 2026 10:04
515972a to
2385874
Compare
tdullien1
force-pushed
the
codex/deterministic-patch-risk-assessment
branch
from
August 24, 2026 12:26
2385874 to
caae917
Compare
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
Add optional patch-risk assessment as a separately reviewable extension to the deterministic minimality and coding-style review workflow.
Changes
--assess-patch-risksupport to both patching entry points and run assessment after the selected minimality and style stages.Testing
bun test --timeout 30000 tests-ts/cli-skills.test.ts tests-ts/cli-patch.test.ts— 66 tests passed.node scripts/generate-models.cjs --check— passed.node node_modules/typescript/bin/tsc --noEmit— passed.node node_modules/prettier/bin/prettier.cjs --check --ignore-path .gitignore --ignore-path .prettierignore '**/*.{cjs,mjs,js,ts,tsx,json,md}'— passed.Risk and rollout
Risk assessment is opt-in and disabled by default. Its reviewer runs read-only and cannot apply or merge patches. The public flag, bundled skill assets, optional schema, and Python helper requirements are isolated from the deterministic-review base so they can be reviewed, simplified, or rejected independently.
Public disclosure review