teleport-fix-scoped-kube-clusters

Based on#66339
SegmentInvestigate-and-fix
Typebug
## Task

Now that kube clusters can be scoped, unscoped users are losing visibility: when the same cluster name exists in two different scopes they only ever see one of them in resource listings, and `tsh kube ls` gives them no way to tell the duplicates apart.

Make resource listing return every cluster across scope boundaries while still collapsing genuine duplicates, and make `tsh kube ls` distinguish same-named clusters.

## General instructions

- The code repo is at /repo/teleport.
- You are inside of a Docker container. You may not be able to perform all operations you would normally be able to do on a local machine. Dependencies have not been pre-installed, and you may need to install them yourself.
- You are expected to act autonomously as a software engineer to complete tasks you are given.
- Do not stop until you feel you have completed the task and your code changes can be merged.
- You may need to use software engineering skills like analyzing the codebase, researching technologies, running services, analyzing logs, etc. to complete the task. Not all tasks will be solvable by reading source code alone.

Agent Results

AgentTastefulBasicVerifierValidationRubricBloatPractTasteCheated
Oracle
9/91.001.0x5.04.0
GPT-5.4
9/90.502.4x3.02.0
GPT-5.5
7/90.501.9x2.02.0
Opus 4.8
4/90.501.3x4.03.0
Gemini 3.1 Pro
3/90.500.2x3.02.0
Gemini 3.5 Flash
3/90.501.0x3.02.0
GLM-5.2
3/90.501.2x3.02.0
Kimi K2.6
3/90.500.3x3.02.0
Opus 4.7
3/90.500.9x3.02.0
Sonnet 4.6
3/90.502.0x3.02.0
Sonnet 5
3/90.500.7x3.03.0
No-Op
3/90.00
Agent details

Verifier Tests

Gemini 3.1 Pro3/9

Rubric Criteria

Gemini 3.1 Pro1/2
Fail → Pass
tsh_surfaces_scope
tsh_selection_handles_duplicates

Taste Scores

Patch Bloat0.2x
19 agent / 85 oracle SLOC, 2 / 4 files(raw: 2.2x)
Practice Alignment — 3.0/5
3
style consistency
2
pattern adherence
3
library usage
2
abstraction level
4
documentation fit
Relative Taste — 2.0/5
3
minimality
2
approach quality
2
hygiene
2
fluency
2
craftsmanship

Agent Patch