Repository navigation
Conversation
Architecture-Review: unchanged; this test-only change preserves the delivery and trust behavior. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on d4a2bd0c84790acb5818e0ac7e27e486fd46633f, 61.3s: approve (0 critical, 0 important, 3 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
| ], | ||
| ], | ||
| ) | ||
| MINIMAL = '[repo]\nname = "o/n"\n' |
There was a problem hiding this comment.
suggestion: MINIMAL is defined twice
MINIMAL = '[repo]\nname = "o/n"\n' is defined at the top of the module (line 10) and again just before test_invalid_content. Ruff's F811 does not flag a plain reassignment, so this passes lint, but a later edit to one copy would quietly diverge from the other. Smallest fix: delete the second definition, which also saves two lines.
| review = approval() | {"state": "COMMENTED"} | ||
| reviews = { | ||
| "absent": [], "APPROVED": [approval()], "revoked": [approval(), review | {"state": "DISMISSED"}], | ||
| "untrusted": [review | {"user": {"login": "attacker"}}], "stale": [approval("b" * 40)], |
There was a problem hiding this comment.
suggestion: The "stale" case now tests the ancestor-review path instead of a commit_id/marker mismatch
The old "stale" fixture was a COMMENTED review with commit_id = b*40 and a marker that still said head=HEAD. In eligibility.readiness_review, that review failed eligible_review(marked, HEAD) because of the commit_id == head filter at src/loopzero/eligibility.py:80. The new approval("b" * 40) changes both commit_id and the marker to b*40. That routes the case through the ancestor path (reviewed = b*40), where it stays pending for a different reason: the body has no valid evidence or primary-review summary. As a result, no case in this matrix still covers a review whose marker claims the current head while GitHub binds it to another commit. If you want to keep that guard, use approval() | {"commit_id": "b" * 40} for "stale". It costs no extra lines.
|
|
||
| from loopzero import worktree | ||
| from tests.conftest import commit_file, git, git_environment, init_git_repo | ||
| from tests.test_setup import SETUP, setup_commands |
There was a problem hiding this comment.
suggestion: test_worktree imports a helper from another test module
from tests.test_setup import SETUP, setup_commands couples two test modules together, and setup_commands("sh", "", text=...) uses an empty prefix plus a text override that only this caller needs. The repo already imports between test modules (tests.test_github and tests.test_candidate in test_hosted), so this is acceptable. Still, moving setup_commands into tests/conftest.py would avoid hidden dependencies between test modules.
Architecture-Review: unchanged; the conflict resolution preserves the hosted check and test contracts. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero delta review by codex on 0538de6989538cdaeae37afaebb2c076783367d8, 33.1s: approve (0 critical, 0 important, 1 suggestion)
Same-family fallback: independent reviewers failed: claude: not authenticated. Cross-family review is preferred.
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: e6cdcfef4d61afe9c0c3e9d54cb65c0330994548923ba8d52866cd91abbbe360
| if error in {"head", "metadata", "merged"}: | ||
| changes = {"head": {"headRefOid": "b" * 40}, "metadata": {"labels": [{"name": "hold"}]}, | ||
| "merged": {"state": "MERGED"}} | ||
| publisher.respond_pr_view(pr_json(**changes[error])) |
There was a problem hiding this comment.
suggestion: Distinguish head changes from metadata changes in the final-read tests
The head and metadata cases accept any LoopZeroError and expect the same status sequence. Because the metadata fingerprint includes the head SHA, removing the dedicated head-change check would still pass the head case through the generic metadata error. Set message to the expected diagnostic for each case. Also pass branch="lz/task" on the second read so each fixture changes only the field under test.
|
@Mergifyio queue |
🚫 Left the queue · conflict with base branch1 min in the queue, with no time running CI. So far
Reason The pull request conflicts with Conflicting file: Before this, the pull request was held in the queue behind 2 pull requests ahead of it. To get back in the queue
Times in UTC · dashboard · how the merge queue works |
Consolidate overlapping test cases to recover 152 lines
Context and goal
Refs #575
Acceptance
Evidence
The resolved merge removes 155 net test lines. It preserves #1766’s hosted snapshot-change cases and REST-call bounds. Focused runs passed in each of the eight retained test modules.
Eight isolated spot mutants caused assertion failures in the retained tests: skipped architecture acknowledgment, reversed default network setting, missing-review verdict misreported as success, separated stderr when merging streams, reversed completed-order selection, missing empty-key rejection, ignored stage-runner fallback, and uncommitted content included in the review diff.
The hosted review matrix shares the same readiness evaluator as the retained CLI tests for pending and dismissed verdicts. The ordinary closed-predecessor case is also exercised by the more demanding publisher-failure case.
Base
Base: ec7a26f
Validation
Recorded for
0538de698953uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review