test(acceptance): cover detached HEAD and branch flow-through (#2909) - #3151
test(acceptance): cover detached HEAD and branch flow-through (#2909)#3151swayamg20 wants to merge 3 commits into
Conversation
dbc52d2 to
09be9db
Compare
Adversarial squad review + maintenance rerollThree independently profile-loaded lenses reviewed the test-only aggregate diff: Verdict:
Evidence: both added tests pass on current main rebase ( Maintenance only: rebased conflict-free onto current |
|
Automated review — corrected and condensed after validation. No code was modified. Verdict: approve. This is a focused red-first acceptance-test change that exercises the operator-visible The test's strict No blocking findings. |
|
Adversarial review of Verdict: approve. One of the two new tests is a genuine, mutation-proven regression guard; the other pins behaviour that is weaker than its name suggests. Nothing here is blocking. EvidenceRan the whole file on this head: Mutation test of the flow-through claim — injected So Should fix (non-blocking)1. The detached-HEAD test does not guard the sentinel it is named after. Its own docstring concedes the mechanism: a detached invocation becomes 2. Both new tests run 3. Two assertions are coupled to prose. 4. No CI evidence, and the branch is stale. Authoritative state: Verified sound
|
Summary
spec-kitty accept --diagnose --jsonCLI boundary.Why Now
PR #2906 introduced these two low-risk branches, and #2909 tracks the remaining coverage gaps. Maintainer review requested proof through the active public acceptance path rather than helper-level coverage alone.
What This PR Does
_git_head_ofsentinel regression requested by Follow-up: test-coverage nits from PR #2906 (detached-HEAD sentinel + accept-gate branch flow-through e2e) #2909.branch=null, blocked bymission_branch, and prevented from reaching matrix judgment.HEADmakes the corresponding CLI test fail.Effect on Existing Projects
Validation
uv run pytest -q tests/acceptance/test_gate_execution_context.py— 28 passeduv run pytest -q tests/acceptance/— 61 passeduv run ruff check tests/acceptance/test_gate_execution_context.pyuv run mypy --strict tests/acceptance/test_gate_execution_context.pygit diff --checkTickets / Contracts
Mission Artifacts
Follow-ups
AI Assistance Disclosure
AI assistance was used to inspect the repository, draft the tests, and run validation.
Closes #2909
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.