test(recovery): cover stale evidence registry cleanup - #233
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthrough백업 및 스키마 복구 증거 레지스트리에 stale weak-reference callback 회귀 테스트를 추가했다. 각 테스트는 replacement entry 보존을 검증하고 테스트 후 레지스트리를 정리한다. ChangesPostgreSQL 복구 증거 레지스트리
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This is a localized test-only change that adds regression coverage without changing production behavior; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
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
successwith required evidence or explicit no-source not-applicable evidence. -
Regression test: Keep the approval branch checking
needs.coverage-evidence.result == successbefore 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 head1ddfc3260cc8e7e981c5c3bdd4ba2206348f4143. -
Head SHA:
1ddfc3260cc8e7e981c5c3bdd4ba2206348f4143 -
Workflow run: 32003415023
-
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["Test: test_postgres_recovery_evidence_registry.py"]
S1 --> I1["regression suite"]
I1 --> R1["Review risk: Test: test_postgres_recovery_evidence_registry.py"]
R1 --> V1["targeted test run"]
OpenCode Review Overview
Pull request overviewOpenCode cannot approve yet because required coverage evidence did not pass. Review outcome1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence
Coverage evidenceCoverage evidence job did not run or did not publish coverage evidence. Changed-File Evidence Mapflowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Test: test_postgres_recovery_evidence_registry.py"]
S1 --> I1["regression suite"]
I1 --> R1["Review risk: Test: test_postgres_recovery_evidence_registry.py"]
R1 --> V1["targeted test run"]
|
|
@opencode-agent Please re-review the unchanged exact head |
Create a tree-identical branch commit after the authenticated OpenCode review failed before PR test execution while downloading the trusted central uv archive. This does not alter source/docs or count as passing evidence; all required workflows and the independent review must revalidate this new exact head.
|
@opencode-agent Please re-evaluate the current exact head |
There was a problem hiding this comment.
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
successwith required evidence or explicit no-source not-applicable evidence. -
Regression test: Keep the approval branch checking
needs.coverage-evidence.result == successbefore 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 head5951b7a4d779903b8924abaef2a387cae50b7f54. -
Head SHA:
5951b7a4d779903b8924abaef2a387cae50b7f54 -
Workflow run: 32069198553
-
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["Test: test_postgres_recovery_evidence_registry.py"]
S1 --> I1["regression suite"]
I1 --> R1["Review risk: Test: test_postgres_recovery_evidence_registry.py"]
R1 --> V1["targeted test run"]
|
@cwl-noema-review |
|
@opencode-agent review Please re-evaluate exact current head |
|
@cwl-noema-review Please perform a fresh independent review of exact current head |
Non-destructively retain the existing #237 scheduler-contract tree while adding current dependency-root #233 (3246971) as a merge parent. The former #233 tip and the current tip have the identical tree e362d62, so this ancestry repair introduces no additional semantic delta and transfers no predecessor checks or reviews.
Summary
Add deterministic regression coverage for stale weak-reference cleanup guards in the PostgreSQL backup and packaged-schema evidence registries. The tests prove that when a registry slot is replaced while an older weak reference is still live, the stale callback cannot delete the replacement entry. Production source and canonical documentation are unchanged.
Fresh exact protected/base/head boundary — 2026-09-07 KST
main:5913c4bad79d6bc29d7cc1c624abb7db2ea6a77c;01d231fde23b82e2ced258d7bfcb4721ed75706d;main;tests/test_postgres_recovery_evidence_registry.py;This branch was reconciled non-destructively with the current protected main. No force push, destructive rebase, predecessor-evidence transfer, protected-main direct write, or source duplication is used.
Exact-current repository evidence
The leaf repository's deterministic product/test/security lanes are terminal GREEN on exact
01d231fde23b82e2ced258d7bfcb4721ed75706d:33892586784: success;33892586880: success;33892586851: success;33892586757: success;33892586134: success;33892586044: success;33892583929: success.These successes do not override non-passing required compatibility/review workflows below.
Current required-workflow REDs
Three required central lanes remain terminal failure on this unchanged exact head.
CodeQL PR
33892586782The language detector succeeds, but both compatibility shards fail. On rerun attempt 2 the required job cannot find an authenticated exact-head
codeql-dispatch/<language>terminal status and terminates withExact CodeQL job was rerun without an authenticated terminal verdict.This is a central dispatch/settlement defect, not a test-only leaf source failure. Canonical repair remains.github#1902, with.github#1929retaining the downstream terminal-publication acceptance issue; the #1902 candidate is Draft/open and not mechanically mergeable, so no downstream success is inferred before protected integration and a fresh exact-head verdict.Required OpenCode Review
33892586092Bootstrap/admission/coverage evidence succeeds and the current-head OpenCode dispatch itself succeeds. The required job then re-reads reviews for exact
01d231fde..., finds no authenticated current-headAPPROVEDorCHANGES_REQUESTEDfromopencode-agent, and fails closed. Cross-repository status/review-publication observability belongs to central.github#691; do not synthesize a review or treat dispatch success as a verdict.Required Noema Review
33892586119Exact-head admission, repository-scoped
cwl-noema-reviewGitHub App credential minting, contextual-orchestrator sidecar provisioning, andorchestrator/freepreflight all succeed. The model-verdict request then fails after 1794 seconds with HTTP 502. Central.github#1948owns the shared free-route probe/replay budget and capacity evidence relevant to this failure class. The failure remains non-passing until the ordinary central owner path produces a current-head terminal review verdict; no shorter timeout, provider/model hard-code, paid fallback, or synthetic status substitutes for that evidence.Review/governance boundary
Formal review inventory contains three historical OpenCode
REQUEST_CHANGESrecords inDISMISSEDstate on predecessor heads plus a DevinCOMMENTEDreview. There is no qualifyingAPPROVEDreview on current exact head01d231fde...; COMMENTED/model evidence is not approval and historical dismissed reviews do not transfer.Live organization ruleset
18156473currently requires one approving review whilerequired_reviewersis empty and code-owner review is disabled. In the current one-human-maintainer topology that generic approval count is a central governance defect tracked by.github#772, not permission to self-approve or bypass. Preserve deterministic workflow/security/SAST/coverage/package/SBOM/provenance/thread/deletion/non-fast-forward controls while that rule is repaired centrally.Integration rule
Normal merge requires the unchanged exact head to remain repository-clean and every then-required central workflow to publish authenticated current-head terminal success under live governance, with the central approval contract structurally satisfiable without self-approval. Until that is true, keep this PR open/Ready and repair the central prerequisites rather than churning the leaf branch, fabricating approval, weakening protection, force-updating history, or using routine administrator bypass.
Refs #244, #157, #204 and central
.github#1902,.github#1929,.github#691,.github#1948,.github#772owner paths.