← Back to Pull requests

[Probe] Introduce probe dialect #1

Open
nanjo712 opened this pull request with 1054 lines diff across 25 files
View on GitHub
nanjo712 nanjo712 commented on Jun 26, 2026 14:05 UTC
Author

No description provided by author.

Diff: 1054 lines (+1043 / -11) across 25 files Reviewer: nanjo712 Review duration: 142963m
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.96) × (1 − Review Confidence (0.81)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.96 · 1054 lines diff across 25 files
0.96
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.88 · 5 substantive comment(s)
0.88
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
80%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.400
Self Review self_review
0.140
Mass File Touch mass_file_touch
0.080
Empty Description empty_description
0.060
Real PR Conversation Timeline
27 items
nanjo712 nanjo712 commented on Jun 26, 2026 16:21 UTC
Author

@codex review

chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Jun 26, 2026 16:28 UTC
Code Review
lib/Conversion/FIRRTLToHW/LowerToHW.cpp:1
@@ -3436,6 +3514,85 @@ FIRRTLLowering::handleUnloweredOp(Operation *op) {
   return LoweringFailure;
 }
 
+Value FIRRTLLowering::castToHWProbePayload(Value value, Type type) {
+  if (value.getType() == type)
+    return value;
+  if (type_isa<FIRRTLType>(value.getType())) {
+    if (auto lowered = getLoweredValue(value))
+      return castToHWProbePayload(lowered, type);
+    if (auto castOp = value.getDefiningOp<mlir::UnrealizedConversionCastOp>())
+      if (castOp.getNumOperands() == 1 &&
+          !type_isa<FIRRTLType>(castOp.getOperand(0).getType()))
+        return castToHWProbePayload(castOp.getOperand(0), type);
+  }
+  return mlir::UnrealizedConversionCastOp::create(builder, type, value)
+      .getResult(0);
+}
+
+LogicalResult FIRRTLLowering::visitExpr(RefSendOp op) {
+  auto probeType = lowerProbeType(op.getType());
+  if (!probeType)
+    return op.emitOpError("lower-to-core only supports read-only, unlayered "
+                          "FIRRTL probes");
+
+  auto elementType = cast<probe::RefType>(probeType).getElementType();
+  auto input = castToHWProbePayload(op.getBase(), elementType);
+  return setLowering(op, probe::SendOp::create(builder, input));
+}
+
+LogicalResult FIRRTLLowering::visitExpr(RefResolveOp op) {
+  auto input = getLoweredValue(op.getRef());
+  if (!input)
+    return failure();
+  auto refType = dyn_cast<probe::RefType>(input.getType());
+  if (!refType)
+    return op.emitOpError("expected lowered probe reference");
+  auto read = probe::ReadOp::create(builder, input);
+  return setLowering(op, castToHWProbePayload(read.getResult(),
+                                              lowerType(op.getType())));

<sub><sub>!P2 Badge</sub></sub> Preserve zero-width resolves as removed values

When the resolved probe payload is zero width, this path still creates a probe.read and records its i0 result. Other FIRRTL expression lowerings return Value() for zero-bit results; otherwise debug builds hit the setLowering zero-width assertion, and release builds make downstream zero-width connects see a real i0 instead of taking the existing handleZeroBit path. A firrtl.ref.resolve of !firrtl.probe<uint<0>> should be handled before creating the read.

Useful? React with 👍 / 👎.

chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Jun 26, 2026 16:28 UTC
Code Review
lib/Conversion/FIRRTLToHW/LowerToHW.cpp:1
@@ -345,13 +347,40 @@ struct CircuitLoweringState {
   ///  A wrapper to the FIRRTLUtils::lowerType, required to ensure safe addition
   ///  of TypeScopeOp for all the TypeDecls.
   Type lowerType(Type type, Location loc) {
+    if (lowerToCore) {
+      if (auto refType = type_dyn_cast<RefType>(type)) {
+        if (refType.getForceable() || refType.getLayer())
+          return {};
+        auto elementType = lowerType(refType.getType(), loc);
+        if (!elementType)
+          return {};
+        return probe::RefType::get(elementType);

<sub><sub>!P2 Badge</sub></sub> Avoid routing choice probe outputs through SV wires

Lowering every unlayered FIRRTL RefType port to !probe.ref also affects valid output-probe ports on firrtl.instance_choice. The existing instance-choice lowering creates an sv.wire for each output using lowerType(port.type), so an output probe becomes !hw.inout<!probe.ref<...>>; hw.inout elements must be HW value types, not probe handles, and the choice output can no longer verify or be emitted. Please special-case probe outputs in the instance-choice path or reject them cleanly.

Useful? React with 👍 / 👎.

chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Jun 26, 2026 16:28 UTC
Reviewer

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0c4fdd7fb6

<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>

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".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

    </details>

    nanjo712 nanjo712 commented on code on Jun 26, 2026 16:56 UTC
    Code Review
    lib/Conversion/FIRRTLToHW/LowerToHW.cpp:1
    @@ -3436,6 +3514,85 @@ FIRRTLLowering::handleUnloweredOp(Operation *op) {
       return LoweringFailure;
     }
     
    +Value FIRRTLLowering::castToHWProbePayload(Value value, Type type) {
    +  if (value.getType() == type)
    +    return value;
    +  if (type_isa<FIRRTLType>(value.getType())) {
    +    if (auto lowered = getLoweredValue(value))
    +      return castToHWProbePayload(lowered, type);
    +    if (auto castOp = value.getDefiningOp<mlir::UnrealizedConversionCastOp>())
    +      if (castOp.getNumOperands() == 1 &&
    +          !type_isa<FIRRTLType>(castOp.getOperand(0).getType()))
    +        return castToHWProbePayload(castOp.getOperand(0), type);
    +  }
    +  return mlir::UnrealizedConversionCastOp::create(builder, type, value)
    +      .getResult(0);
    +}
    +
    +LogicalResult FIRRTLLowering::visitExpr(RefSendOp op) {
    +  auto probeType = lowerProbeType(op.getType());
    +  if (!probeType)
    +    return op.emitOpError("lower-to-core only supports read-only, unlayered "
    +                          "FIRRTL probes");
    +
    +  auto elementType = cast<probe::RefType>(probeType).getElementType();
    +  auto input = castToHWProbePayload(op.getBase(), elementType);
    +  return setLowering(op, probe::SendOp::create(builder, input));
    +}
    +
    +LogicalResult FIRRTLLowering::visitExpr(RefResolveOp op) {
    +  auto input = getLoweredValue(op.getRef());
    +  if (!input)
    +    return failure();
    +  auto refType = dyn_cast<probe::RefType>(input.getType());
    +  if (!refType)
    +    return op.emitOpError("expected lowered probe reference");
    +  auto read = probe::ReadOp::create(builder, input);
    +  return setLowering(op, castToHWProbePayload(read.getResult(),
    +                                              lowerType(op.getType())));

    Done.

    nanjo712 nanjo712 commented on code on Jun 26, 2026 16:56 UTC
    Code Review
    lib/Conversion/FIRRTLToHW/LowerToHW.cpp:1
    @@ -345,13 +347,40 @@ struct CircuitLoweringState {
       ///  A wrapper to the FIRRTLUtils::lowerType, required to ensure safe addition
       ///  of TypeScopeOp for all the TypeDecls.
       Type lowerType(Type type, Location loc) {
    +    if (lowerToCore) {
    +      if (auto refType = type_dyn_cast<RefType>(type)) {
    +        if (refType.getForceable() || refType.getLayer())
    +          return {};
    +        auto elementType = lowerType(refType.getType(), loc);
    +        if (!elementType)
    +          return {};
    +        return probe::RefType::get(elementType);

    Done.

    nanjo712 nanjo712 commented on Jun 26, 2026 16:57 UTC
    Author

    @codex review

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Jun 26, 2026 17:05 UTC
    Code Review
    lib/Dialect/Probe/ProbeTypes.cpp:1
    @@ -0,0 +1,40 @@
    +//===- ProbeTypes.cpp - Probe dialect types -------------------------------===//
    +//
    +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
    +// See https://llvm.org/LICENSE.txt for license information.
    +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
    +//
    +//===----------------------------------------------------------------------===//
    +
    +#include "circt/Dialect/Probe/ProbeTypes.h"
    +#include "circt/Dialect/HW/HWTypes.h"
    +#include "circt/Dialect/Probe/ProbeDialect.h"
    +#include "mlir/IR/Builders.h"
    +#include "mlir/IR/DialectImplementation.h"
    +
    +using namespace circt;
    +using namespace probe;
    +using namespace mlir;
    +
    +//===----------------------------------------------------------------------===//
    +// TableGen
    +//===----------------------------------------------------------------------===//
    +
    +#define GET_TYPEDEF_CLASSES
    +#include "circt/Dialect/Probe/ProbeTypes.cpp.inc"
    +
    +LogicalResult RefType::verify(function_ref<InFlightDiagnostic()> emitError,
    +                              Type elementType) {

    <sub><sub>!P2 Badge</sub></sub> Allow clock payloads for FIRRTL probes

    When lower-to-core lowers a valid FIRRTL read-only probe of a clock, lowerType maps the payload to !seq.clock, but this verifier rejects it because seq.clock is not an hw::isHWValueType; the probe.send operand constraint has the same limitation. Designs with !firrtl.probe<clock> ports or firrtl.ref.send of clocks therefore fail verification instead of being represented in the new probe dialect. Please either admit seq::ClockType as a probe payload or explicitly lower clock probes through i1.

    Useful? React with 👍 / 👎.

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Jun 26, 2026 17:05 UTC
    Reviewer

    💡 Codex Review

    Here are some automated review suggestions for this pull request.

    Reviewed commit: 6cbb3767a0

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    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".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

    </details>

    nanjo712 nanjo712 commented on code on Jun 26, 2026 17:15 UTC
    Code Review
    lib/Dialect/Probe/ProbeTypes.cpp:1
    @@ -0,0 +1,40 @@
    +//===- ProbeTypes.cpp - Probe dialect types -------------------------------===//
    +//
    +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
    +// See https://llvm.org/LICENSE.txt for license information.
    +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
    +//
    +//===----------------------------------------------------------------------===//
    +
    +#include "circt/Dialect/Probe/ProbeTypes.h"
    +#include "circt/Dialect/HW/HWTypes.h"
    +#include "circt/Dialect/Probe/ProbeDialect.h"
    +#include "mlir/IR/Builders.h"
    +#include "mlir/IR/DialectImplementation.h"
    +
    +using namespace circt;
    +using namespace probe;
    +using namespace mlir;
    +
    +//===----------------------------------------------------------------------===//
    +// TableGen
    +//===----------------------------------------------------------------------===//
    +
    +#define GET_TYPEDEF_CLASSES
    +#include "circt/Dialect/Probe/ProbeTypes.cpp.inc"
    +
    +LogicalResult RefType::verify(function_ref<InFlightDiagnostic()> emitError,
    +                              Type elementType) {

    Done.

    nanjo712 nanjo712 commented on Jun 26, 2026 17:15 UTC
    Author

    @codex review

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Jun 26, 2026 17:21 UTC
    Code Review
    lib/Dialect/Probe/ProbeTypes.cpp:1
    @@ -0,0 +1,44 @@
    +//===- ProbeTypes.cpp - Probe dialect types -------------------------------===//
    +//
    +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
    +// See https://llvm.org/LICENSE.txt for license information.
    +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
    +//
    +//===----------------------------------------------------------------------===//
    +
    +#include "circt/Dialect/Probe/ProbeTypes.h"
    +#include "circt/Dialect/HW/HWTypes.h"
    +#include "circt/Dialect/Probe/ProbeDialect.h"
    +#include "circt/Dialect/Seq/SeqTypes.h"
    +#include "mlir/IR/Builders.h"
    +#include "mlir/IR/DialectImplementation.h"
    +
    +using namespace circt;
    +using namespace probe;
    +using namespace mlir;
    +
    +//===----------------------------------------------------------------------===//
    +// TableGen
    +//===----------------------------------------------------------------------===//
    +
    +#define GET_TYPEDEF_CLASSES
    +#include "circt/Dialect/Probe/ProbeTypes.cpp.inc"
    +
    +LogicalResult RefType::verify(function_ref<InFlightDiagnostic()> emitError,
    +                              Type elementType) {
    +  if ((!hw::isHWValueType(elementType) &&
    +       !isa<seq::ClockType>(elementType)) ||
    +      hw::hasHWInOutType(elementType))

    <sub><sub>!P2 Badge</sub></sub> Allow clocks nested inside probe payloads

    When a FIRRTL probe wraps an aggregate containing a clock, lowerType produces a !hw.struct/!hw.array whose leaf is !seq.clock. This verifier only special-cases a top-level seq.clock, while hw::isHWValueType returns false for aggregates with clock leaves, so otherwise legal read-only probes such as !firrtl.probe<bundle<clk: clock, data: uint<1>>> lower to probe.ref types/probe.send ops that fail verification. Please make the predicate/verifier recurse over aggregates and accept HW values or clocks at the leaves while still rejecting inouts.

    Useful? React with 👍 / 👎.

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Jun 26, 2026 17:21 UTC
    Reviewer

    💡 Codex Review

    Here are some automated review suggestions for this pull request.

    Reviewed commit: 1c615e7933

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    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".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

    </details>

    nanjo712 nanjo712 commented on code on Jun 26, 2026 17:28 UTC
    Code Review
    lib/Dialect/Probe/ProbeTypes.cpp:1
    @@ -0,0 +1,44 @@
    +//===- ProbeTypes.cpp - Probe dialect types -------------------------------===//
    +//
    +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
    +// See https://llvm.org/LICENSE.txt for license information.
    +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
    +//
    +//===----------------------------------------------------------------------===//
    +
    +#include "circt/Dialect/Probe/ProbeTypes.h"
    +#include "circt/Dialect/HW/HWTypes.h"
    +#include "circt/Dialect/Probe/ProbeDialect.h"
    +#include "circt/Dialect/Seq/SeqTypes.h"
    +#include "mlir/IR/Builders.h"
    +#include "mlir/IR/DialectImplementation.h"
    +
    +using namespace circt;
    +using namespace probe;
    +using namespace mlir;
    +
    +//===----------------------------------------------------------------------===//
    +// TableGen
    +//===----------------------------------------------------------------------===//
    +
    +#define GET_TYPEDEF_CLASSES
    +#include "circt/Dialect/Probe/ProbeTypes.cpp.inc"
    +
    +LogicalResult RefType::verify(function_ref<InFlightDiagnostic()> emitError,
    +                              Type elementType) {
    +  if ((!hw::isHWValueType(elementType) &&
    +       !isa<seq::ClockType>(elementType)) ||
    +      hw::hasHWInOutType(elementType))

    Done.

    nanjo712 nanjo712 commented on Jun 26, 2026 17:28 UTC
    Author

    @codex review

    nanjo712 nanjo712 commented on Jun 26, 2026 17:34 UTC
    Author

    @codex review

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Jun 26, 2026 17:39 UTC
    Code Review
    lib/Conversion/FIRRTLToHW/LowerToHW.cpp:1
    @@ -1636,7 +1700,10 @@ LogicalResult FIRRTLModuleLowering::lowerModulePortsAndMoveBody(
         auto resultHWType = loweringState.lowerType(port.type, port.loc);
         if (!resultHWType.isInteger(0)) {
           auto output =
    -          castFromFIRRTLType(newArg.getResult(), resultHWType, outputBuilder);
    +          loweringState.lowerToCore && type_isa<RefType>(port.type)
    +              ? newArg.getResult()

    <sub><sub>!P2 Badge</sub></sub> Route non-elided probe outputs through a cast

    When a probe output port has any use besides its firrtl.ref.define (for example the module also firrtl.ref.resolves that output), tryEliminatingConnectsToValue returns null and this path feeds the temporary FIRRTL firrtl.wire result directly to hw.output. The wire lowering only records a backedge, and the RefDefineOp lowering returns after updating that backedge, so the hw.output operand is never rewritten; the pass later sees the FIRRTL wire still has a use/illegal FIRRTL type and fails instead of lowering the valid module.

    Useful? React with 👍 / 👎.

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Jun 26, 2026 17:39 UTC
    Reviewer

    💡 Codex Review

    Here are some automated review suggestions for this pull request.

    Reviewed commit: a6f520b675

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    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".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

    </details>

    nanjo712 nanjo712 commented on code on Jun 26, 2026 17:49 UTC
    Code Review
    lib/Conversion/FIRRTLToHW/LowerToHW.cpp:1
    @@ -1636,7 +1700,10 @@ LogicalResult FIRRTLModuleLowering::lowerModulePortsAndMoveBody(
         auto resultHWType = loweringState.lowerType(port.type, port.loc);
         if (!resultHWType.isInteger(0)) {
           auto output =
    -          castFromFIRRTLType(newArg.getResult(), resultHWType, outputBuilder);
    +          loweringState.lowerToCore && type_isa<RefType>(port.type)
    +              ? newArg.getResult()

    Done.

    nanjo712 nanjo712 commented on Jun 26, 2026 17:49 UTC
    Author

    @codex review

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Jun 26, 2026 17:57 UTC
    Code Review
    lib/Conversion/FIRRTLToHW/LowerToHW.cpp:1
    @@ -3716,6 +3872,11 @@ LogicalResult FIRRTLLowering::visitDecl(WireOp op) {
       if (!resultType)
         return failure();
     
    +  if (circuitState.lowerToCore && type_isa<RefType>(origResultType)) {
    +    createBackedge(op.getResult(), resultType);

    <sub><sub>!P2 Badge</sub></sub> Avoid failing on dead probe wires

    When lower-to-core sees a firrtl.wire whose type is a probe, this always registers a tracked backedge. If that probe wire is dead or has no firrtl.ref.define, the final backedge-resolution loop reports the self-mapped backedge as sink does not have a driver even when no lowered op uses it, unlike ordinary unused FIRRTL wires. This makes lower-to-core reject modules that merely contain an unused probe wire; skip creating/tracking the backedge for unused probe wires or only diagnose unresolved backedges that still have uses.

    Useful? React with 👍 / 👎.

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Jun 26, 2026 17:57 UTC
    Reviewer

    💡 Codex Review

    Here are some automated review suggestions for this pull request.

    Reviewed commit: a2b69c6161

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    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".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

    </details>

    nanjo712 nanjo712 commented on code on Jun 26, 2026 18:12 UTC
    Code Review
    lib/Conversion/FIRRTLToHW/LowerToHW.cpp:1
    @@ -3716,6 +3872,11 @@ LogicalResult FIRRTLLowering::visitDecl(WireOp op) {
       if (!resultType)
         return failure();
     
    +  if (circuitState.lowerToCore && type_isa<RefType>(origResultType)) {
    +    createBackedge(op.getResult(), resultType);

    Done.

    nanjo712 nanjo712 commented on Jun 26, 2026 18:12 UTC
    Author

    @codex review

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Jun 26, 2026 18:18 UTC
    Code Review
    lib/Conversion/FIRRTLToHW/LowerToHW.cpp:1
    @@ -5273,6 +5454,23 @@ LogicalResult FIRRTLLowering::visitStmt(MatchingConnectOp op) {
       return success();
     }
     
    +LogicalResult FIRRTLLowering::visitStmt(RefDefineOp op) {
    +  if (!circuitState.lowerToCore)
    +    return failure();
    +  auto src = getLoweredValue(op.getSrc());
    +  if (!src)
    +    return failure();
    +  auto dest = getPossiblyInoutLoweredValue(op.getDest());
    +  if (!dest)
    +    return failure();
    +  if (updateIfBackedge(dest, src))
    +    return success();
    +  if (dest == src)
    +    return success();
    +  op.getDest().replaceAllUsesExcept(op.getSrc(), op);

    <sub><sub>!P2 Badge</sub></sub> Drive subprobe definitions through the parent probe

    When lower-to-core sees a firrtl.ref.define whose destination is a firrtl.ref.sub of a probe wire or output, dest is the lowered probe.subfield/probe.subindex result rather than the aggregate probe backedge, so updateIfBackedge(dest, src) does not drive the parent. Rewriting remaining FIRRTL uses of the subprobe cannot update the parent backedge or any reads already lowered before the define, leaving aggregate probe outputs or later parent uses undriven. Please either lower these partial defines into an aggregate probe value or reject them explicitly.

    Useful? React with 👍 / 👎.

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Jun 26, 2026 18:18 UTC
    Reviewer

    💡 Codex Review

    Here are some automated review suggestions for this pull request.

    Reviewed commit: c549f067f9

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    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".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

    </details>

    Reviewers
    Assignees
    nanjo712 nanjo712
    Labels
    risk: low confidence: 80.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 96% (HIGH) · Higher = larger blast radius
    96%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 80.7% · Lower = rushed or shallow review
    80.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.5% · Safe to merge
    18.5%
    Repository