Skip to content

feat(model-selection): replay structural governor on current review workflow - #1008

Merged
seonghobae merged 12 commits into
mainfrom
fix/model-selection-current-review-987
Aug 24, 2026
Merged

feat(model-selection): replay structural governor on current review workflow#1008
seonghobae merged 12 commits into
mainfrom
fix/model-selection-current-review-987

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Supersedes #987 without changing its reviewed product tree.

Exact source head: 42b849c4c05c4464205c3afe71e39ce8c0cdae2a. Repository CI, Security Scan, CodeQL, and Semgrep are terminal-success on this SHA, with no unresolved review threads.

The governor keeps factor retention separate from structural selection, consumes explicit model-relation evidence instead of names, requires the relation-appropriate already-computed LR/bootstrap/Vuong stage, and fails closed when recovery or intended-score interpretation evidence is insufficient. Python provides validation/policy orchestration only; likelihoods, bootstrap/Vuong statistics, recovery, and other numerical psychometrics remain Rust-owned.

#987's formal OpenCode CHANGES_REQUESTED is solely central coverage-evidence run 32124705657. This successor creates a fresh pull-request event for the current central workflow without source churn, force-push, review dismissal, or gate weakening.


Open in Devin Review

@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

An error occurred during the review process. Please try again later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Contributor Author

@opencode-agent @cwl-noema-review Please independently review exact current head 42b849c4c05c4464205c3afe71e39ce8c0cdae2a against live main. Exact-head CI 32207581456, Security Scan 32207581480, CodeQL 32207581574, and SAST Semgrep 32207581437 are terminal-success and inline review threads are empty. Verify that factor retention remains separate from structural selection, relation evidence—not model names—selects the appropriate already-computed LR/bootstrap/Vuong stage, recovery/score-interpretation insufficiency fails closed, and production psychometric arithmetic remains Rust-owned. Do not transfer #987 predecessor evidence.

@opencode-agent opencode-agent 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.

Pull request overview

OpenCode cannot approve yet because required coverage evidence did not pass.

Review outcome

1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence

  • Problem: The required coverage-evidence job result was failure, so OpenCode cannot establish approval sufficiency for this head.

  • Root cause: Automated approval is only valid when the same-head coverage-evidence job proves supported repository test suites passed and configured docstring gates passed or were advisory, or reports not applicable because no supported source files or package manifests exist. Missing, failed, skipped, unavailable, or unsupported-tooling test evidence is a blocker.

  • Fix: Install or configure the repository test/docstring evidence tooling when source files or package manifests exist, rerun the current-head coverage-evidence job, and approve only after it reports success with required evidence or explicit no-source not-applicable evidence.

  • Regression test: Keep the approval branch checking needs.coverage-evidence.result == success before posting APPROVE, and publish REQUEST_CHANGES when coverage-evidence blocker states such as cancelled, skipped, failed, unsupported-tooling, or below-100 evidence are present.

  • Result: REQUEST_CHANGES

  • Reason: coverage-evidence result was failure, so required test/docstring evidence was not proven for current head 42b849c4c05c4464205c3afe71e39ce8c0cdae2a.

  • Head SHA: 42b849c4c05c4464205c3afe71e39ce8c0cdae2a

  • Workflow run: 32213328042

  • Workflow attempt: 1

Coverage evidence

Coverage evidence job did not run or did not publish coverage evidence.

Changed-File Evidence Map

flowchart LR
  PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
  Evidence --> S1["Docs (2 files)"]
  S1 --> I1["operator or user guidance"]
  I1 --> R1["Review risk: Docs (2 files)"]
  R1 --> V1["docs review"]
  Evidence --> S2["Changed file (2 files)"]
  S2 --> I2["repository behavior"]
  I2 --> R2["Review risk: Changed file (2 files)"]
  R2 --> V2["required checks"]
  Evidence --> S3["Test (3 files)"]
  S3 --> I3["regression suite"]
  I3 --> R3["Review risk: Test (3 files)"]
  R3 --> V3["targeted test run"]
Loading

@opencode-agent

Copy link
Copy Markdown
Contributor

OpenCode Review Overview

  • Head SHA: 42b849c4c05c4464205c3afe71e39ce8c0cdae2a
  • Workflow run: 32213328042
  • Workflow attempt: 1
  • Gate result: REQUEST_CHANGES (approval step)

Pull request overview

OpenCode cannot approve yet because required coverage evidence did not pass.

Review outcome

1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence

  • Problem: The required coverage-evidence job result was failure, so OpenCode cannot establish approval sufficiency for this head.

  • Root cause: Automated approval is only valid when the same-head coverage-evidence job proves supported repository test suites passed and configured docstring gates passed or were advisory, or reports not applicable because no supported source files or package manifests exist. Missing, failed, skipped, unavailable, or unsupported-tooling test evidence is a blocker.

  • Fix: Install or configure the repository test/docstring evidence tooling when source files or package manifests exist, rerun the current-head coverage-evidence job, and approve only after it reports success with required evidence or explicit no-source not-applicable evidence.

  • Regression test: Keep the approval branch checking needs.coverage-evidence.result == success before posting APPROVE, and publish REQUEST_CHANGES when coverage-evidence blocker states such as cancelled, skipped, failed, unsupported-tooling, or below-100 evidence are present.

  • Result: REQUEST_CHANGES

  • Reason: coverage-evidence result was failure, so required test/docstring evidence was not proven for current head 42b849c4c05c4464205c3afe71e39ce8c0cdae2a.

  • Head SHA: 42b849c4c05c4464205c3afe71e39ce8c0cdae2a

  • Workflow run: 32213328042

  • Workflow attempt: 1

Coverage evidence

Coverage evidence job did not run or did not publish coverage evidence.

Changed-File Evidence Map

flowchart LR
  PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
  Evidence --> S1["Docs (2 files)"]
  S1 --> I1["operator or user guidance"]
  I1 --> R1["Review risk: Docs (2 files)"]
  R1 --> V1["docs review"]
  Evidence --> S2["Changed file (2 files)"]
  S2 --> I2["repository behavior"]
  I2 --> R2["Review risk: Changed file (2 files)"]
  R2 --> V2["required checks"]
  Evidence --> S3["Test (3 files)"]
  S3 --> I3["regression suite"]
  I3 --> R3["Review risk: Test (3 files)"]
  R3 --> V3["targeted test run"]
Loading

@opencode-agent
opencode-agent Bot disabled auto-merge August 19, 2026 04:58

Copy link
Copy Markdown
Contributor Author

@opencode-agent review
@cwl-noema-review review

Fresh re-review request: ContextualWisdomLab/.github#1136 has merged, fixing the central coverage-evidence bug (_install_trusted_uv() target-triple validation) that caused the prior REQUEST_CHANGES verdict on this PR. Please re-review exact current head 42b849c4c05c4464205c3afe71e39ce8c0cdae2a — the underlying infrastructure blocker is now resolved on .github main. Do not transfer evidence from any prior head.


Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

@opencode-agent Please re-review unchanged exact head 42b849c4c05c4464205c3afe71e39ce8c0cdae2a against live main@04d0bc21a2a20693bcf16108cd76d394fe844d23. Repository CI, Security Scan, CodeQL, and Semgrep are terminal-success on this exact head and inline review threads are empty. The formal CHANGES_REQUESTED is central coverage run 32213328042, created before .github main advanced to 9e9f59f3ac1e96a960c021b131d768c238f4c21a (fix(ci): verify trusted uv target-triple output (#1136), 2026-08-19T09:24:32Z), which repairs the trusted-uv materialization boundary. Please regenerate same-head coverage/formal review evidence under the current central contract.

@seonghobae
seonghobae enabled auto-merge (squash) August 19, 2026 13:22
@opencode-agent
opencode-agent Bot disabled auto-merge August 19, 2026 13:59

Copy link
Copy Markdown
Contributor Author

@opencode-agent review
@cwl-noema-review review

Re-dispatch unchanged exact head 42b849c4c05c4464205c3afe71e39ce8c0cdae2a under central .github@bbedc1a51ec1a2421f129955c629b3cd0507a4ec. Repository CI, Security Scan, CodeQL, and Semgrep are terminal-success and inline threads are empty. The sole formal CHANGES_REQUESTED came from central coverage run 32213328042 before #1136 corrected trusted-uv verification; central main now also includes #1140's OIDC permission repair for scheduler callers. Generate fresh same-head coverage/formal review evidence without transferring the old infrastructure verdict.

@seonghobae seonghobae closed this Aug 19, 2026
@seonghobae seonghobae reopened this Aug 19, 2026
@seonghobae seonghobae closed this Aug 19, 2026
@seonghobae seonghobae reopened this Aug 19, 2026
@seonghobae
seonghobae enabled auto-merge (squash) August 20, 2026 02:58
@opencode-agent
opencode-agent Bot disabled auto-merge August 20, 2026 03:42
@seonghobae

Copy link
Copy Markdown
Contributor Author

@opencode-agent review
@cwl-noema-review review

Re-review the exact current head 42b849c4c05c4464205c3afe71e39ce8c0cdae2a against protected main base 04d0bc21a2a20693bcf16108cd76d394fe844d23; do not transfer older coverage-era verdicts. Local focused validation passed: 53 tests across structural-selection governor, governor edge cases, and model-relation contracts. Please evaluate the current patch and Checks only.

@seonghobae
seonghobae enabled auto-merge (squash) August 20, 2026 04:24
@opencode-agent
opencode-agent Bot disabled auto-merge August 20, 2026 04:47
@seonghobae
seonghobae enabled auto-merge (squash) August 20, 2026 04:55
@opencode-agent
opencode-agent Bot disabled auto-merge August 20, 2026 06:24
@seonghobae

Copy link
Copy Markdown
Contributor Author

Current-head review for 42b849c: required checks are terminal-success on this exact head. Existing formal review state predates the current evidence or was tied to an earlier coverage-evidence attempt; no source failure is shown. Please reacquire approval against this exact head. @opencode-agent review @cwl-noema-review review

@seonghobae
seonghobae enabled auto-merge (squash) August 20, 2026 07:27
@seonghobae

Copy link
Copy Markdown
Contributor Author

@opencode-agent review\n@cwl-noema-review review\n\nPlease review exact current head 42b849c. Bind every review and approval decision to this SHA and current main. Existing review state is not sufficient evidence for this head; use current Checks and changed-file evidence only.

Copy link
Copy Markdown
Contributor Author

@opencode-agent review

Please independently review exact unchanged head 42b849c4c05c4464205c3afe71e39ce8c0cdae2a against live protected main. Current exact-head CI, Security Scan, CodeQL, and Semgrep are terminal-success and current inline threads are empty. Re-fetch the current coverage/package/provenance evidence and verify that factor retention remains separate from structural selection, relation evidence selects the correct LR/bootstrap/Vuong stage, and all production numerical statistics remain Rust-owned before issuing a formal verdict.

@opencode-agent
opencode-agent Bot disabled auto-merge August 20, 2026 07:53
@seonghobae

Copy link
Copy Markdown
Contributor Author

Current-head re-review request for 42b849c4c05c4464205c3afe71e39ce8c0cdae2a against protected main. The prior REQUEST_CHANGES verdict cited predecessor or superseded coverage evidence; re-fetch the exact current-head coverage-evidence result and review the complete current diff. Do not transfer predecessor-head findings or approvals. @opencode-agent review @cwl-noema-review review

@seonghobae
seonghobae enabled auto-merge (squash) August 20, 2026 17:55
@opencode-agent
opencode-agent Bot disabled auto-merge August 20, 2026 19:53
@seonghobae
seonghobae enabled auto-merge (squash) August 20, 2026 20:04

Copy link
Copy Markdown
Contributor Author

@opencode-agent @cwl-noema-review Re-review the exact current head 42b849c4c05c4464205c3afe71e39ce8c0cdae2a.

The prior current-head REQUEST_CHANGES only reported unavailable/failed coverage evidence from an earlier run. Current CI, Security Scan, SAST Semgrep, and CodeQL runs for this exact head are terminal-success. Re-evaluate this head and publish independent approvals only from fresh evidence; do not reuse prior-head reviews. Protected merge policy remains unchanged.

@opencode-agent
opencode-agent Bot disabled auto-merge August 20, 2026 22:12
@seonghobae
seonghobae enabled auto-merge (squash) August 20, 2026 22:44

Copy link
Copy Markdown
Contributor Author

@opencode-agent Please perform a review-only formal review of exact current PR head 42b849c4c05c4464205c3afe71e39ce8c0cdae2a. Re-check changed-file scope, current-head findings, unresolved threads, mergeability, and every required Check. Do not reuse a stale review, mutate the branch, self-approve, or merge.

@seonghobae

Copy link
Copy Markdown
Contributor Author

Current-head fix for 3aec7c0:

  • Added docstrings to the hostile string fixture class and callback so the focused docstring gate reaches 100%.
  • Focused structural-selection, relation-contract tests: 53 passed; Ruff, compileall, and git diff --check passed.
  • Reviewed the governor end-to-end: it remains a transport/gating layer only; relation-appropriate numerical procedures and recovery evidence are required before selection, and no arithmetic was added to Python.
  • Normal squash auto-merge remains enabled; fresh hosted checks and the independent formal review gate still control merge.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@opencode-agent opencode-agent Bot added area: ci-cd CI, GitHub Actions, checks, release, or supply chain priority: medium Normal-priority or P2 work status: needs-review Open pull request requiring current-head review or checks type: feature New or expanded product capability labels Aug 22, 2026
@seonghobae
seonghobae merged commit 551e24f into main Aug 24, 2026
38 checks passed
@seonghobae
seonghobae deleted the fix/model-selection-current-review-987 branch August 24, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci-cd CI, GitHub Actions, checks, release, or supply chain priority: medium Normal-priority or P2 work status: needs-review Open pull request requiring current-head review or checks type: feature New or expanded product capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant