Skip to content

fix: keep cross-repo OpenCode evidence healthy - #939

Open
seonghobae wants to merge 6 commits into
mainfrom
codex/fix-cross-repo-opencode-evidence
Open

fix: keep cross-repo OpenCode evidence healthy#939
seonghobae wants to merge 6 commits into
mainfrom
codex/fix-cross-repo-opencode-evidence

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary\n\n- Send a static User-Agent with the fixed Astral uv archive request so the trusted coverage bootstrap is accepted by the release host.\n- Preserve the fixed URL, no-proxy/no-redirect opener, bounded download, checksum, and executable-version checks.\n- Treat the observed cross-repository OpenCode App commit-status permission gap as an optional status-publication limitation; keep the exact-head formal review authoritative instead of failing the review job after the review is posted.\n- Add regression contracts for the request URL/header and cross-repository token guard.\n\nThis repairs the trusted coverage evidence path used by https://github.com/ContextualWisdomLab/naruon/pull/1317.\n\n## Verification\n\n- Linux amd64/Colima reproduction: 976 passed, 16 subtests passed.\n- Focused Linux amd64/Colima contracts: 96 passed.\n- Local docstring gate: 100%.\n- Python compile and git diff checks passed.\n\nNo admin merge, review dismissal, bypass, or security-gate suppression is requested.

Summary by CodeRabbit

  • 개선 사항

    • 교차 저장소 상태 게시 전, 정확한 커밋에 대한 공식 리뷰와 승인 상태를 검증합니다.
    • 리뷰 조회에 실패하거나 유효한 리뷰가 없으면 작업이 안전하게 실패합니다.
    • 신뢰된 패키지 다운로드 요청에 고정된 User-Agent를 적용합니다.
  • 테스트

    • 리뷰 상태 검증 및 다운로드 요청 형식에 대한 테스트를 강화했습니다.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@seonghobae, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 20 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: cb5d1a60-40e4-455b-9127-5d685a66afd1

📥 Commits

Reviewing files that changed from the base of the PR and between f97b9a4 and ac56651.

📒 Files selected for processing (3)
  • .github/workflows/strix.yml
  • tests/test_required_workflow_queue_contract.py
  • tests/test_strix_nvidia_nim_not_found_fallback.py

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d21ecaa1-a2b1-40aa-a300-26a19a01a182

📥 Commits

Reviewing files that changed from the base of the PR and between 6eb06cd and f97b9a4.

📒 Files selected for processing (4)
  • .github/workflows/opencode-review-dispatch.yml
  • scripts/ci/materialize_base_python_requirements.py
  • tests/test_opencode_agent_contract.py
  • tests/test_trusted_uv_download_contract.py

📝 Walkthrough

Walkthrough

교차 저장소 상태 공개 경로가 정확한 PR HEAD의 공식 OpenCode 리뷰를 검증한다. 신뢰된 uv 아카이브 다운로드는 고정 User-Agent를 포함한 정적 Request 객체를 사용한다. 관련 계약 테스트도 갱신했다.

Changes

OpenCode 리뷰 검증

Layer / File(s) Summary
정확한 HEAD 리뷰 검증과 계약 테스트
.github/workflows/opencode-review-dispatch.yml, tests/test_opencode_agent_contract.py
워크플로가 opencode-agent[bot] 또는 opencode-agentAPPROVED 또는 CHANGES_REQUESTED 리뷰를 정확한 PR_HEAD_SHA에 대해 조회한다. 조회 또는 검증에 실패하면 종료 코드 1을 반환한다. 테스트는 opencode-app 토큰과 fail-closed 동작을 확인한다.

신뢰된 uv 다운로드

Layer / File(s) Summary
고정 다운로드 요청과 계약 테스트
scripts/ci/materialize_base_python_requirements.py, tests/test_trusted_uv_download_contract.py
다운로더가 고정 릴리스 URL과 TRUSTED_UV_DOWNLOAD_USER_AGENT를 포함한 urllib.request.Request 객체를 생성한다. 테스트는 단일 요청 객체와 URL 동기화를 검증한다. 모듈 진입점 동작은 유지된다.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related issues

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 제목은 교차 저장소 OpenCode 리뷰 증거 검증 및 상태 게시 변경의 주요 목적을 간결하게 설명합니다.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-cross-repo-opencode-evidence

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 review

Perform a fresh read-only semantic review of exact current head 62497e56a6063074e47e8ff94bcbb951be030f25 against independently resolved live protected main 6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba. All nine exact-head quality/security/supply-chain workflows are now terminal-success, the PR is Ready and mergeable, no formal review exists, and zero review threads are unresolved.

Focus on the static fixed-URL/fixed-User-Agent uv request boundary, no-proxy/no-redirect behavior, bounded download/checksum/version enforcement, and the cross-repository OpenCode App status-publication guard. Verify that optional status publication cannot substitute for exact-head formal review or weaken branch protection. Review only; do not mutate, self-approve, enable auto-merge, or merge.

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Please perform a fresh read-only semantic review of exact current head f97b9a44201633d2a94bf73c6bb7fde900135553 against independently resolved live protected main 6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba. All nine exact-head quality/security/supply-chain workflows are terminal-success and zero review threads are unresolved.

Focus on the new fail-closed cross-repository status guard: unavailable github.token/OpenCode App commit-status publication may be skipped only after live target reviews prove an opencode-agent APPROVED or CHANGES_REQUESTED formal review bound to the exact head. Verify read failure, missing/stale review, author/state matching, cleanup, and that optional status evidence cannot replace formal review or branch protection. Review only; do not mutate, self-approve, enable auto-merge, or merge.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

head_sha='f97b9a44201633d2a94bf73c6bb7fde900135553'
base_sha='6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba'
repo='ContextualWisdomLab/.github'
pr_number='939'

echo '== Commit identity and ancestry =='
git cat-file -e "${head_sha}^{commit}"
git cat-file -e "${base_sha}^{commit}"
printf 'HEAD parent/base relationship: '
git merge-base --is-ancestor "$base_sha" "$head_sha" && echo yes || echo no
printf 'merge-base: '
git merge-base "$base_sha" "$head_sha"
printf 'checked-out HEAD: '
git rev-parse HEAD

echo '== Changed files and exact diff =='
git diff --name-status "$base_sha" "$head_sha"
git diff --unified=80 "$base_sha" "$head_sha" -- \
  .github/workflows/opencode-review-dispatch.yml \
  tests/test_opencode_agent_contract.py

echo '== Workflow outline and relevant control-flow context =='
ast-grep outline .github/workflows/opencode-review-dispatch.yml --items all || true
rg -n -C 12 --glob 'opencode-review-dispatch.yml' \
  'github\.token|opencode-app|commit.status|statuses|reviews|pulls|PR_HEAD_SHA|APPROVED|CHANGES_REQUESTED|exit 1|exit 0|repository_dispatch' \
  .github/workflows/opencode-review-dispatch.yml

echo '== Contract-test context =='
ast-grep outline tests/test_opencode_agent_contract.py --items all || true
rg -n -C 10 \
  'github\.token|opencode-app|commit.status|statuses|reviews|PR_HEAD_SHA|APPROVED|CHANGES_REQUESTED|exit.?1|exit.?0' \
  tests/test_opencode_agent_contract.py

echo '== Live PR identity, reviews, and check rollup =='
gh pr view "$pr_number" --repo "$repo" \
  --json number,state,isDraft,mergeable,headRefOid,baseRefOid,reviews,statusCheckRollup \
  --jq '{number,state,isDraft,mergeable,headRefOid,baseRefOid,reviews:[.reviews[]|{author:.author.login,state,commit:.commit.oid}],checks:[.statusCheckRollup[]|{name,conclusion,status,workflowName}]}'

Length of output: 161212


🏁 Script executed:

#!/bin/bash
set -euo pipefail

head_sha='f97b9a44201633d2a94bf73c6bb7fde900135553'
base_sha='6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba'
repo='ContextualWisdomLab/.github'
pr_number='939'

echo '== Commit ancestry =='
printf 'base ancestor of head: '
git merge-base --is-ancestor "$base_sha" "$head_sha" && echo yes || echo no
printf 'merge-base: '; git merge-base "$base_sha" "$head_sha"
printf 'current checkout: '; git rev-parse HEAD

echo '== Exact changed hunks: status-publication guard =='
git diff --unified=30 "$base_sha" "$head_sha" -- .github/workflows/opencode-review-dispatch.yml |
  sed -n '/Publish repository_dispatch OpenCode status/,+130p'

echo '== Exact changed hunks: regression contract =='
git diff --unified=30 "$base_sha" "$head_sha" -- tests/test_opencode_agent_contract.py |
  sed -n '1,260p'

echo '== Guard source with line numbers =='
nl -ba .github/workflows/opencode-review-dispatch.yml |
  sed -n '7828,7895p'

echo '== Exact-head Strix workflow runs =='
gh run list --repo "$repo" --workflow strix.yml --commit "$head_sha" --limit 20 \
  --json databaseId,event,status,conclusion,headSha,url,workflowName \
  --jq '.[] | {databaseId,event,status,conclusion,headSha,url,workflowName}'

echo '== Current branch-protection requirements =='
gh api "repos/${repo}/branches/main/protection" \
  --jq '{required_status_checks,required_pull_request_reviews,required_linear_history,allow_force_pushes,allow_deletions}' \
  || true

Length of output: 13167


🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo='ContextualWisdomLab/.github'
head_sha='f97b9a44201633d2a94bf73c6bb7fde900135553'

echo '== Current exact-head Strix runs =='
gh run list --repo "$repo" --workflow strix.yml --commit "$head_sha" --limit 20 \
  --json databaseId,event,status,conclusion,headSha,url,workflowName \
  --jq '.[] | {databaseId,event,status,conclusion,headSha,url,workflowName}'

echo '== Branch protection: required checks and reviews =='
gh api "repos/${repo}/branches/main/protection" |
  jq '{
    required_status_check_contexts: (.required_status_checks.contexts // []),
    strict_required_status_checks: (.required_status_checks.strict // null),
    required_approving_review_count: (.required_pull_request_reviews.required_approving_review_count // 0),
    dismiss_stale_reviews: (.required_pull_request_reviews.dismiss_stale_reviews // false),
    require_code_owner_reviews: (.required_pull_request_reviews.require_code_owner_reviews // false),
    require_last_push_approval: (.required_pull_request_reviews.require_last_push_approval // false),
    enforce_admins: (.enforce_admins.enabled // false)
  }'

echo '== Current live PR review and check state =='
gh pr view 939 --repo "$repo" --json headRefOid,reviews,statusCheckRollup \
  --jq '{
    head: .headRefOid,
    reviews: [.reviews[] | {author:.author.login,state,commit:.commit.oid}],
    active_or_non_success_checks: [
      .statusCheckRollup[]
      | select(.status != "COMPLETED" or ((.conclusion // "") | ascii_upcase | IN("SUCCESS","SKIPPED","NEUTRAL") | not))
      | {name,status,conclusion,workflowName}
    ]
  }'

Length of output: 2589


@seonghobae I completed the read-only semantic review of f97b9a44201633d2a94bf73c6bb7fde900135553 against 6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba.

I found no source-level defect in the new cross-repository status-publication guard.

  • The base commit is the exact merge base of the reviewed head.
  • The guard reads all paginated PR reviews.
  • A skipped cross-repository status requires a review with the exact PR_HEAD_SHA.
  • The guard accepts only opencode-agent[bot] or opencode-agent.
  • The guard accepts only APPROVED or CHANGES_REQUESTED.
  • Review API read failure, missing review evidence, stale review evidence, wrong author, and wrong state fail with exit 1.
  • The temporary review-evidence file is removed by the EXIT trap.
  • A verified formal review exits before the optional commit-status write. The status skip does not create substitute approval evidence.

The regression contract checks the required guard structure and failure path. It is static coverage. It does not execute mocked API failure or review-payload cases.

Live verification is incomplete:

  • The exact-head Strix Security Scan run 31549269071 is still in_progress.
  • PR #939 has no formal reviews.
  • GitHub returned HTTP 403 for the main branch-protection endpoint. I could not independently verify the required-review and required-check policy.

Therefore, the statement that all exact-head checks are terminal-success is not supported by the live data. I did not approve, merge, enable auto-merge, or modify repository state.

I applied the existing exact-current-head evidence rule during this review.


🧠 Learnings used
Learnt from: seonghobae
Repo: ContextualWisdomLab/.github PR: 0
File: :0-0
Timestamp: 2026-08-05T13:44:10.007Z
Learning: For PR `#782`, only successful checks associated with the exact current head are valid merge evidence. Do not treat queued, in-progress, cancelled, predecessor-head, temporary-workflow, or administrative-bypass results as passing evidence. Before a formal approval, verify that the direct security and supply-chain workflows, the permanent hourly NVIDIA NIM contract, current-head reviews, unresolved-thread checks, and an independent approval have completed successfully.

Learnt from: CR
Repo: ContextualWisdomLab/.github PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-07-29T06:47:25.581Z
Learning: Applies to opencode.jsonc : All reviewer agents in `opencode.jsonc` must keep `"edit": "deny"`; reviewers must never implement changes.
⚠️ Action not completed

Already reviewed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Copy Markdown
Contributor Author

@opencode-agent review

Perform a fresh read-only semantic review of exact current head ac5665148bb113f92e97d2fc49a729bca2f050b5 against independently resolved live protected main 6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba. All nine exact-head quality, security, and supply-chain workflows are terminal-success and zero review threads are unresolved.

Review the fail-closed exact-head formal-review guard and the subsequent Strix outage-gate changes as one current tree. Keep source-review evidence distinct from workflow/provider evidence. Do not mutate, self-approve, enable auto-merge, dismiss reviews, weaken gates, or merge.

Copy link
Copy Markdown
Contributor Author

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

Review exact current head ac5665148bb113f92e97d2fc49a729bca2f050b5 only. All nine exact-head quality, security, and supply-chain workflows are terminal-success. Validate the stable User-Agent bootstrap boundary and the cross-repository commit-status limitation: a formal exact-head review must remain authoritative, status publication may be optional only after live review verification, and review lookup failure or missing approval must fail closed. Review only; do not mutate, merge, release, or alter protections.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

repo='ContextualWisdomLab/.github'
pr='939'
head='ac5665148bb113f92e97d2fc49a729bca2f050b5'
base='6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba'

echo '== Exact commit identity =='
git cat-file -e "${head}^{commit}"
git cat-file -e "${base}^{commit}"
printf 'checked-out head: '; git rev-parse HEAD
printf 'base is ancestor: '; git merge-base --is-ancestor "$base" "$head" && echo yes || echo no
printf 'merge base: '; git merge-base "$base" "$head"

echo '== Changed files =='
git diff --name-status "$base" "$head"

echo '== Focused exact diff =='
git diff --unified=45 "$base" "$head" -- \
  scripts/ci/materialize_base_python_requirements.py \
  tests/test_trusted_uv_download_contract.py \
  .github/workflows/opencode-review-dispatch.yml \
  tests/test_opencode_agent_contract.py

echo '== Python module outline =='
ast-grep outline scripts/ci/materialize_base_python_requirements.py --items all || true

echo '== Trusted uv request and enforcement context =='
rg -n -C 14 --glob 'materialize_base_python_requirements.py' \
  'TRUSTED_UV_DOWNLOAD|Request\(|urlopen\(|ProxyHandler|HTTPRedirectHandler|timeout|read\(|sha256|checksum|version|extract' \
  scripts/ci/materialize_base_python_requirements.py

echo '== Trusted uv contract context =='
ast-grep outline tests/test_trusted_uv_download_contract.py --items all || true
rg -n -C 10 \
  'Request|urlopen|User-Agent|TRUSTED_UV_DOWNLOAD|ProxyHandler|HTTPRedirectHandler|timeout|sha256|version' \
  tests/test_trusted_uv_download_contract.py

echo '== Status-publication guard context =='
rg -n -C 16 --glob 'opencode-review-dispatch.yml' \
  'Publish repository_dispatch OpenCode status|github\.token|opencode-app|reviews|PR_HEAD_SHA|opencode-agent|APPROVED|CHANGES_REQUESTED|exit 1|exit 0|statuses|commit.status' \
  .github/workflows/opencode-review-dispatch.yml

echo '== Status-guard contract context =='
rg -n -C 10 \
  'github\.token|opencode-app|reviews|PR_HEAD_SHA|opencode-agent|APPROVED|CHANGES_REQUESTED|exit.?1|exit.?0|status' \
  tests/test_opencode_agent_contract.py

echo '== Live PR exact-head state =='
gh pr view "$pr" --repo "$repo" \
  --json number,state,isDraft,mergeable,headRefOid,baseRefOid,reviews,statusCheckRollup \
  --jq '{
    number,state,isDraft,mergeable,headRefOid,baseRefOid,
    reviews:[.reviews[]|{author:.author.login,state,commit:.commit.oid}],
    checks:[.statusCheckRollup[]|{name,status,conclusion,workflowName,headSha}]
  }'

echo '== Branch protection, if readable =='
gh api "repos/${repo}/branches/main/protection" \
  --jq '{
    required_status_checks: (.required_status_checks // null),
    required_pull_request_reviews: (.required_pull_request_reviews // null),
    enforce_admins: (.enforce_admins.enabled // null)
  }' || echo 'Branch-protection query was unavailable.'

Length of output: 156484


🏁 Script executed:

#!/bin/bash
set -euo pipefail

head='ac5665148bb113f92e97d2fc49a729bca2f050b5'
base='6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba'

echo '== Checkout and ancestry =='
printf 'checkout='; git rev-parse HEAD
printf 'merge_base='; git merge-base "$base" "$head"
printf 'base_ancestor='; git merge-base --is-ancestor "$base" "$head" && echo yes || echo no

echo '== Changed paths at exact revisions =='
git diff --name-status "$base" "$head"

echo '== Exact trusted uv diff =='
git diff --unified=25 "$base" "$head" -- \
  scripts/ci/materialize_base_python_requirements.py \
  tests/test_trusted_uv_download_contract.py

echo '== Exact trusted uv implementation =='
git show "${head}:scripts/ci/materialize_base_python_requirements.py" |
  nl -ba |
  sed -n '/TRUSTED_UV_DOWNLOAD/,/^[[:space:]]*def /p'

echo '== Exact trusted uv contract functions =='
git show "${head}:tests/test_trusted_uv_download_contract.py" |
  nl -ba |
  sed -n '/test_urlopen_receives_one_static_release_request/,/^[[:space:]]*def /p'

echo '== Exact status guard diff =='
git diff --unified=28 "$base" "$head" -- \
  .github/workflows/opencode-review-dispatch.yml \
  tests/test_opencode_agent_contract.py |
  sed -n '/Publish repository_dispatch OpenCode status/,+180p'

echo '== Exact status guard implementation =='
git show "${head}:.github/workflows/opencode-review-dispatch.yml" |
  nl -ba |
  sed -n '7828,7918p'

echo '== Exact status guard contract =='
git show "${head}:tests/test_opencode_agent_contract.py" |
  nl -ba |
  sed -n '1997,2053p'

Length of output: 12650


🏁 Script executed:

#!/bin/bash
set -euo pipefail

head='ac5665148bb113f92e97d2fc49a729bca2f050b5'
base='6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba'

numbered_range() {
  start="$1"
  end="$2"
  awk -v start="$start" -v end="$end" 'NR >= start && NR <= end { printf "%6d  %s\n", NR, $0 }'
}

echo '== Trusted uv downloader and enforcement =='
git show "${head}:scripts/ci/materialize_base_python_requirements.py" |
  numbered_range 55 285

echo '== Trusted uv request contract =='
git show "${head}:tests/test_trusted_uv_download_contract.py" |
  numbered_range 1 180

echo '== Exact cross-repository status guard =='
git show "${head}:.github/workflows/opencode-review-dispatch.yml" |
  numbered_range 7828 7918

echo '== Exact cross-repository status contract =='
git show "${head}:tests/test_opencode_agent_contract.py" |
  numbered_range 1997 2053

echo '== Strix exact diff and contracts =='
git diff --unified=30 "$base" "$head" -- \
  .github/workflows/strix.yml \
  tests/test_required_workflow_queue_contract.py \
  tests/test_strix_nvidia_nim_not_found_fallback.py

Length of output: 48876


@seonghobae I completed a read-only semantic review of exact head ac5665148bb113f92e97d2fc49a729bca2f050b5 against 6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba.

I found no blocking source-level defect.

  • The checked-out commit matches the requested head.
  • The requested base is the exact merge base.

Trusted uv bootstrap

  • The request URL is a fixed HTTPS literal.
  • The request uses the fixed User-Agent value cwl-trusted-uv-materializer/1.
  • The code creates one static urllib.request.Request.
  • The code passes that request to one urlopen call.
  • The opener disables proxies.
  • The redirect handler rejects every redirect.
  • The response URL must remain https://releases.astral.sh on port 443.
  • The archive download has a 64 MiB bound.
  • The archive SHA-256 is checked before extraction.
  • The extracted executable has a 64 MiB bound.
  • The executable version must equal uv 0.12.1.
  • The static contract verifies the request URL and the fixed User-Agent.

Cross-repository commit-status limitation

  • When only github-token or opencode-app is available for a cross-repository target, the workflow reads the full paginated review history.
  • The skip path requires an OpenCode review bound to the exact PR_HEAD_SHA.
  • The accepted authors are opencode-agent[bot] and opencode-agent.
  • The accepted formal-review states are APPROVED and CHANGES_REQUESTED.
  • A review lookup failure exits with status 1.
  • Missing, stale, wrong-author, or wrong-state review evidence exits with status 1.
  • The temporary review-evidence file is removed through the EXIT trap.
  • The successful skip path exits before any commit-status write. It does not create substitute review evidence.
  • The regression contract covers the guard structure and both failure and skip paths.

Strix outage gate

  • Provider or backend unavailability now leaves the required Strix check failed.
  • The workflow no longer converts incomplete provider evidence into a neutral success.

Live evidence

  • PR #939 is open, mergeable, and points to the reviewed head.
  • The observed rollup contains terminal successful quality and security checks. Administrative cancellation checks are skipped.
  • The live review list is empty. Therefore, the live PR does not currently provide formal-review evidence.
  • GitHub returned HTTP 403 for the main branch-protection endpoint. I could not independently verify required-review or required-check policy.

I applied the existing exact-current-head evidence rule during this review. I did not modify repository state, approve, merge, release, dismiss reviews, or change protections.


🧠 Learnings used
Learnt from: seonghobae
Repo: ContextualWisdomLab/.github PR: 0
File: :0-0
Timestamp: 2026-08-05T13:44:10.007Z
Learning: For PR `#782`, only successful checks associated with the exact current head are valid merge evidence. Do not treat queued, in-progress, cancelled, predecessor-head, temporary-workflow, or administrative-bypass results as passing evidence. Before a formal approval, verify that the direct security and supply-chain workflows, the permanent hourly NVIDIA NIM contract, current-head reviews, unresolved-thread checks, and an independent approval have completed successfully.

You are interacting with an AI system.

@seonghobae seonghobae left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Exact-current-head read-only review request for ac5665148bb113f92e97d2fc49a729bca2f050b5 against protected main@6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba.

This is now the canonical repair after closing superseded #943. Review the combined causal boundaries: fixed-origin static User-Agent for trusted uv bootstrap; proof of an exact-head formal OpenCode review before tolerating unavailable cross-repository status publication; and fail-closed Strix behavior when provider evidence is incomplete. Nine directly observed exact-head hosted workflows, including Trusted uv Materializer Quality CI, are terminal-success and no inline thread exists.

Do not transfer #943 evidence, update this branch, synthesize author approval, neutralize missing security evidence, or bypass protection.

@seonghobae
seonghobae enabled auto-merge (squash) August 12, 2026 10:46

Copy link
Copy Markdown
Contributor Author

Canonical exact-current-head review dispatch for ac5665148bb113f92e97d2fc49a729bca2f050b5 over protected main@6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba.

Review the combined root-cause repair only: fixed-origin static User-Agent for the trusted uv bootstrap; exact-head formal-review proof before tolerating unavailable cross-repository commit-status publication; and fail-closed Strix provider evidence. Trusted uv Materializer Quality CI, CodeQL PR, Python Security, Security Scan, SAST Semgrep, Secret Scan, OSV-Scanner PR, Scorecard PR, and SBOM Generation are terminal-success on this exact head. No review thread exists. #943 is historical and its evidence does not transfer.

Keep this request read-only. Do not update the branch, synthesize author approval, merge, release, neutralize missing security evidence, or weaken protection.

@coderabbitai review
@opencode-agent review
@cwl-noema-review review
@strix review

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Rate Limit Exceeded

@seonghobae have exceeded the limit for the number of chat messages per hour. Please wait 31 minutes and 25 seconds before sending another message.

Copy link
Copy Markdown
Contributor Author

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

Review exact current head ac5665148bb113f92e97d2fc49a729bca2f050b5 against protected main@6eb06cdd08c79a06f7b390069d4ffa49e2eb7dba. This is the canonical combined repair after superseded #943 was closed. Validate: the fixed Astral archive request has one static repository-owned User-Agent while preserving literal URL, no-proxy/no-redirect, bounded bytes, checksum/member/version checks; cross-repository commit-status publication may be skipped only after the target PR API proves a formal OpenCode APPROVED or CHANGES_REQUESTED review anchored to the exact head, with review-fetch/missing-review paths failing closed; and Strix provider/backend unavailability remains failed incomplete security evidence, never a neutral success. All nine observed exact-head hosted workflows are terminal-success and there are no inline threads. Review only; do not mutate, merge, release, or bypass protections.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Rate Limit Exceeded

@seonghobae have exceeded the limit for the number of chat messages per hour. Please wait 29 minutes and 5 seconds before sending another message.

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.

1 participant