Skip to content

Drop the duplicate fixture keys the loops/runs merge left behind - #206

Merged
myzie merged 1 commit into
mainfrom
fix-merged-duplicate-fixture-keys
Aug 31, 2026
Merged

Drop the duplicate fixture keys the loops/runs merge left behind#206
myzie merged 1 commit into
mainfrom
fix-merged-duplicate-fixture-keys

Conversation

@myzie

@myzie myzie commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #205, on CodeRabbit's review of it.

What happened

#205 merged two sides that had each added owner / visibility / posture to
the same fixtures. In TypeScript the compiler caught this as TS1117 and I fixed
it before merge. Python has no such check — it silently keeps the last key — so
nine duplicate keys landed on main, with ruff's F601 as the only signal.

Why it matters

In three of the four files the losing copy was the one main had established, so
the fixtures quietly changed shape:

file before #205 after #205
test_create_or_adopt.py team / organization / team person / private / only_you
test_smoke.py team / private / team person / private / only_you
test_transcript.py team / private / team person / private / only_you
test_artifacts.py team / private / team unchanged (dead lines only)

Nothing asserts on these fields today, so no test was failing — but the fixtures
had stopped describing the contract main intended, which is exactly the kind of
drift that makes a later ownership test wrong for invisible reasons.

Removing the later duplicates restores the pre-merge values.

Also

Reflows the #205 changelog bullets to the four-line limit in the repo's changelog
guidelines, the other thing CodeRabbit flagged.

Verification

  • ruff check --select F601,F602 python/ — all checks passed
  • tsc --noEmit — clean
  • make test — Go ok, TypeScript 135/135, Python 134 passed and 2 skipped

🤖 Generated with Claude Code

https://claude.ai/code/session_01LbC7p6PaNNwijM86bWqEB4

#205 merged two sides that had each added owner/visibility/posture to the
same Python fixtures. Unlike TypeScript, where the compiler rejected the
duplicates as TS1117, Python silently keeps the last key, so nine repeated
keys landed on main and ruff's F601 was the only signal.

In test_create_or_adopt.py, test_smoke.py and test_transcript.py the losing
copy was the one main had established, so the fixtures quietly changed shape
— an agent fixture went from team/organization/team to person/private/
only_you, and two session fixtures likewise. Removing the later duplicates
restores the values main had before the merge. test_artifacts.py already
resolved to main's values; only the dead lines go.

No behavior change beyond the fixtures, and no assertion reads these fields.

Also reflows the #205 changelog bullets to the four-line limit in the repo's
changelog guidelines.

Verified: ruff F601/F602 clean, tsc clean, make test green — TypeScript
135/135, Python 134 passed and 2 skipped.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LbC7p6PaNNwijM86bWqEB4
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

On-demand reviews are free for the next 20 days. After that, they cost $0.25 per reviewed file.

Or wait 51 minutes for your next included review.

View limit details

Limit details: You’ve used the included review currently available. Your 64 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 327f523e-ddc9-4725-885c-2db234beb74e

📥 Commits

Reviewing files that changed from the base of the PR and between 0b1ba37 and 704e28c.

📒 Files selected for processing (5)
  • CHANGELOG.md
  • python/tests/test_artifacts.py
  • python/tests/test_create_or_adopt.py
  • python/tests/test_smoke.py
  • python/tests/test_transcript.py

Comment @coderabbitai help to get the list of available commands.

@myzie
myzie merged commit 00e10b9 into main Aug 31, 2026
5 checks passed
@myzie
myzie deleted the fix-merged-duplicate-fixture-keys branch August 31, 2026 11:15
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