Skip to content

test(config): cover the deferring-global skip path of the --global isolation gate#36

Merged
alex-mextner merged 1 commit into
mainfrom
w2/rig-config-isolation-followup
Jun 17, 2026
Merged

test(config): cover the deferring-global skip path of the --global isolation gate#36
alex-mextner merged 1 commit into
mainfrom
w2/rig-config-isolation-followup

Conversation

@alex-mextner

Copy link
Copy Markdown
Owner

Follow-up to #20 (the rig config set --global isolation gate). The multi-model review of #20 flagged a coverage gap: the agent_tools_source is None early return in _validate_layer_in_isolation — the branch that lets a global config legitimately defer its checkout to per-repo/env without a spurious catalog scan — had no test.

What

  • New test test_cli_set_global_without_own_source_skips_isolated_catalog_scan: a --global set of a non-catalog key, where the global file pins no own agent_tools_source, must succeed and skip the isolated catalog scan. TDD-verified — removing the guard makes the deferring config get wrongly rejected and the test fails.
  • Cleanups from the same review: trimmed the duplicated call-site comment (the rationale lives in the helper docstring) and dropped a stray (codex P2) triage tag from a test comment.

Test-only + comment changes; full suite green (771 passed, 8 skipped).

🤖 Generated with Claude Code

…lidation

Follow-up to the `rig config set --global` isolation gate (#20). Multi-model review
flagged that the `agent_tools_source is None` early return — the branch that lets a global
config legitimately defer its checkout to per-repo/env without a spurious catalog scan —
had no test. Add one: a `--global` set of a non-catalog key, with a global file that pins
no own `agent_tools_source`, must succeed and skip the isolated catalog scan (TDD-verified:
drop the guard and the deferring config is wrongly rejected).

Also fold in the review's small cleanups: trim the duplicated call-site comment (the why
lives in the helper docstring) and drop a stray `(codex P2)` triage tag from a test comment.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@alex-mextner alex-mextner merged commit b7a993b into main Jun 17, 2026
13 checks passed
@alex-mextner alex-mextner deleted the w2/rig-config-isolation-followup branch June 17, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant