Some checks failed
boundary-lint / PR boundary-claim (Lint (push) Has been skipped
boundary-lint / ban-list lint (Lint (push) Successful in 20s
boundary-lint / duplication-deadline (Layer 1/2) (push) Successful in 20s
ci / mutation test (broker) (push) Has been skipped
ci / test-health gate (push) Successful in 17s
Release Publish (Gitea session_helper) / verify-release-tag (push) Successful in 17s
ci / rust release (push) Successful in 2m13s
ci / rust debug (push) Successful in 2m45s
Release Publish (Gitea session_helper) / publish-linux-x86_64 (push) Failing after 3m8s
ci / python (push) Successful in 1m23s
The v0.7.35 cleanup lowered the Python coverage gate 80→78 to absorb
the loss of incidental live-helper coverage that the removed orphan
command tests were providing. Per project policy ("fix the actual
problem, not the metric"), this commit re-pays that debt with direct
unit tests for the affected helpers and restores the 80% gate in all
three locations (.pre-commit-config.yaml, .gitea/workflows/ci.yml,
.gitea/workflows/upload-session-helper-gitea.yml).
New tests in sublime/tests/test_cmd_tools.py
--------------------------------------------
* _refresh_local_cache_after_format full path (real helper now runs):
mapper + lane bookkeeping + finish() OK branch + sidecar emit
* _refresh_local_cache_after_format REMOTE_NOT_FOUND finish branch
* _present_remote_tool_result with non-empty diagnostics tuple drives
_apply_inline_diagnostics through map_diagnostics_batch +
inline_presentations_from_mapped_diagnostics + add_regions, plus
_remote_tool_footer_lines through unopened_files_summary and
tool_not_found_hint paths
* _apply_inline_diagnostics three early-return branches (no active view
/ view without file_name / no matching presentation)
* _remote_tool_footer_lines direct: unopened summary + unopened-mapped
count + hint
* _force_overwrite_remote three branches: SUCCESS, TRANSPORT_ERROR,
PERMISSION_DENIED fallthrough
* _precheck_remote_file_openability four branches: transport error /
missing-remote / blocked-by-guard / clean-metadata
* _eager_hydrate_workspace: sidecar persistence for valid entries,
bad-shape skip, RemoteFileKind.OTHER fallthrough
* _collect_remote_python_pipeline_results four paths: non-.py skip,
diagnostics-off skip, happy-path tuple, transport error returns None
* _trace_event JSONL append on enable, no-op on disable
* _default_remote_workspace_directory: handshake fast path + ssh \$HOME
fallback
Result: 1,317 tests pass at 80.08% coverage (was 79.21% at v0.7.35).
Floor restored to 80% across all three gate sites.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>