Skip to content

fix(content): match private visibility exactly - #335

Merged
tbhb-agent merged 2 commits into
mainfrom
agent/tools-content-exact
Nov 23, 2026
Merged

tbhb-agent merged 2 commits into
mainfrom
agent/tools-content-exact

Conversation

@tbhb-agent

@tbhb-agent tbhb-agent commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Why

The content scan skips its name rules for a private repository. It read the visibility with .upper(), so a lookalike spelling of "private" with a Turkish ı became PRIVATE. It also trusted a response about any repository.

Behavior change

create_issue and add_comment skip the name rules only when the repository response says exactly private and its full_name equals the requested repository name exactly, with no case folding. Any other answer scans as public.

Deviations from the task

None. This is the follow-up both review runs asked for in #333.

Risk

A host that reports a renamed repository under its old name now scans as public, which is the safe side.

Verification

tests/test_content.py passes 64 tests, including the visibility and name cases, and ruff passes.

Opened-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;surface=cli
Generated-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;started_at=2026-11-15T16:51:11Z;surface=cli

Generated-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;started_at=2026-11-15T16:51:11Z;surface=cli
@tbhb-agent
tbhb-agent requested a review from tbhb as a code owner November 23, 2026 13:32
…ules

Generated-by: LLM effort=medium;harness=claude-code:2.1.322;model=anthropic:claude-sonnet-5-5;session=sha-256-64:24ed779d56b187de;started_at=2026-11-15T16:51:11Z;surface=cli
@tbhb-agent
tbhb-agent merged commit ddbc896 into main Nov 23, 2026
5 checks passed
@tbhb-agent
tbhb-agent deleted the agent/tools-content-exact branch November 23, 2026 14:56
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