Repository navigation
Description
Parents and context
- release(goal): converge final swarm candidate, sync source, publish 0.11, and back-sync K #2379 — supplemental
0.11.0descendant qualification - test(lsp): isolate boundary-gap saved-workspace fixtures from the enclosing checkout HEAD #2371 / PR test(lsp): complete boundary-gap saved-workspace fixture isolation (#2371) #2381 — acceptance-complete boundary-gap LSP fixture isolation
- test(doctor): eliminate the parallel ExecutableFileBusy race in the hanging-tool timeout stress harness #2378 / PR test(doctor): publish the hanging-tool shim atomically under parallel load (#2378) #2382 — doctor parallel timeout-fixture repair
Observed failure
The hosted Test Analytics run for PR #2382 failed exactly one test:
editor_agent_loop_fixture_outputs_match_expected
with:
ripr: agent verify before artifact has invalid repository HEAD `HEAD`
The same broad failure can block unrelated test-only PRs because the fixture helper currently runs:
git rev-parse HEAD
and accepts stdout without checking command status or validating that the result is a concrete 40-character hexadecimal commit ID. When Git cannot resolve the checkout, rev-parse can echo the unresolved token HEAD; the fixture then commits that symbolic value into an artifact that correctly requires a concrete repository identity.
Outcome
Make CLI smoke fixture artifact binding use one validated concrete repository-head helper.
The helper must:
- run
git rev-parse --verify HEAD^{commit}in the intended repository root; - require successful command status;
- require exactly 40 ASCII hexadecimal characters;
- include bounded stdout/stderr context when Git fails;
- optionally accept the GitHub Actions
GITHUB_SHAonly when it is itself valid and represents the current Actions checkout identity; - never commit
HEAD, an empty string, a branch name, or another unresolved revision into a canonical artifact.
Use the helper in every CLI smoke fixture writer that currently extracts repository HEAD without checking the command result.
Exact current seam
At minimum:
crates/ripr/tests/cli_smoke.rs
write_bound_repo_exposure_fixture
bind_repo_exposure_fixture_with_worktree
The editor-agent loop test must continue to use actual generated before/after artifacts and must retain byte/semantic comparison with the committed expected outputs.
Required regression proof
- valid committed fixture repository returns its exact 40-character SHA
- unresolved/unborn/non-repository
HEADfails with actionable context rather than returningHEAD - malformed
GITHUB_SHAcannot become fixture authority - valid Actions checkout fallback is accepted only under the documented test boundary
-
editor_agent_loop_fixture_outputs_match_expectedpasses under ordinarycargo test - the same test passes under nextest/Test Analytics parallel execution
- agent verify/receipt tamper and currentness tests remain green
- no production artifact validation is weakened
-
cargo test --workspaceand protectedRipr Rust Small Resultpass under normal parallelism
Scope
Test support and CLI smoke fixtures only. Production receipt/artifact validation must remain strict.
Non-goals
- accepting symbolic refs as canonical repository identity;
- weakening exact current-head checks;
- changing receipt schema or public output;
- serializing the suite;
- mixing the LSP or doctor fixture patches into this PR;
- changing release version, support tier, candidate ref, or publication authority.
Release relationship
This is a candidate-qualification baseline blocker. #2381 and #2382 should be re-tested against main after this repair lands; neither patch should be widened to absorb it. #2379 includes the repair in the supplemental denominator when selecting the next immutable candidate.
Activity
coderabbitai commentedon Jul 24, 2026
🔗 Related PRs
#2381 - test(lsp): complete boundary-gap saved-workspace fixture isolation (
#2371) [open]#2382 - test(doctor): publish the hanging-tool shim atomically under parallel load (
#2378) [open]📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
EffortlessSteven commentedon Jul 24, 2026
Active exclusive writer claim
This is the second active writer lane alongside #2382. PR #2381 is parked as
result_submittedwith no active mutation. Read-only review may proceed concurrently; no second branch-mutating writer is authorized for this seam.test(cli): stage the concrete repository-HEAD fixture patch (#2383)
ci(claimed): validate and apply the #2383 test-fixture patch
ci(claimed): isolate #2383 patch, format, and cage stages
ci(claimed): replace malformed #2383 diff with an exact source transform
ci(claimed): apply #2383 through an exact source transform
test(cli): require concrete fixture repository HEADs (#2383)
EffortlessSteven commentedon Jul 24, 2026
Verification update
PR #2384 revision
1d2d6273da6b133384127a674834f931feb00c69now has:editor_agent_loop_fixture_outputs_match_expectedgreen;The protected
Routed Rust Smalljob still has one command failure. Disposable read-only PR #2385 is running the exact current merge tree with every required command separated and transcripted. No #2384 source mutation will occur until that command is named.test(cli): normalize expected fixture commit IDs (#2383)
test(cli): reject whitespace-padded fixture commit IDs (#2383)
test(cli): require concrete fixture repository HEADs (#2383)
EffortlessSteven commentedon Jul 25, 2026
Accepted closeout
Merged PR #2384 as squash commit:
The merged tree includes the complete reviewed contract:
git rev-parse --verify HEAD^{commit}with status checking;GITHUB_SHAfallback only at the GitHub Actions workspace-root boundary after Git failure;Evidence:
3a73ccc2…passed every protected command on a clean GitHub-hosted runner; diagnostic artifactdiagnose-2384-final-30140987170, digestsha256:805eb0fa1cc4763e5a8568a0c2998aafa206b539cda20530639f27e5f44ca35a;Claim boundary: this fixes fixture repository identity and does not weaken production artifact validation or complete 0.11 candidate qualification.