Skip to content

fix(patchy): onboarding offers to tell Claude Code's auto mode that Patchy is the company's own - #676

Merged
allisonmahmood merged 2 commits into
mainfrom
t3/fix-claude-publish-safety-check
Oct 14, 2026
Merged

allisonmahmood merged 2 commits into
mainfrom
t3/fix-claude-publish-safety-check

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

A user's Claude Code agent built an internal report page and then couldn't publish it: auto mode's safety check refused patchy publish as "Excess Sensitive Detail". Auto mode treats any service its settings don't name as outside the company. To it, a Patchy page with file paths, code or figures looks like internal detail leaving for an unknown third party, even though the page is only visible to the company.

Auto mode has a supported way to say otherwise: an autoMode.environment entry in Claude Code's user settings, which is the fix its docs recommend for a destination an agent needs regularly. This adds a new onboarding step 3 for Claude Code users on a deployed instance:

  • The agent checks whether the settings already describe the instance as this company's own. An entry that names the host some other way is shown to the person before anything changes.
  • Otherwise it asks through AskUserQuestion. Auto mode reads the person's messages and the commands Claude runs, not Claude's own text. So the tool's recorded answer is what shows the person approved this change; a "yes" typed in reply to a question asked in prose may not count. The question says the entry applies to every project, that auto mode still checks each publish, and that public pages stay public.
  • On yes, it adds one entry to the Key internal services trust slot, saying company-scoped patches are readable only by members and public ones by anyone. It writes $defaults first when the array is new, because an array without $defaults replaces all of Claude Code's built-in entries. Undo removes that one entry and nothing else.
  • When auto mode blocks a publish later, the main skill has the agent read the rule the denial names. For most rules, the agent asks the person the same way whether to publish as is. Data Exfiltration is a hard rule that no approval clears, so the agent offers a page without the detail instead. In either case it offers the entry if it's missing, which covers people who set Patchy up before this change.

The look, welcome patch and sign-off steps move to 4–6. The glossary's Onboarding entry and the product doc's setup paragraph mention the new step.

Checked:

  • claude auto-mode config with the entry: the environment goes from 21 to 22 entries with $defaults, and drops to 1 without it.
  • User settings and --settings feed auto mode; project and local settings files don't, so the entry has to go in the user file.
  • I couldn't reproduce the original block. Over three rounds of headless auto-mode runs, with a stub patchy and a page containing code, paths and wallet addresses, all seven Patchy publishes went through, with and without the entry. The only block was on a run whose agent chose PatchPage instead. So this step rests on Claude Code's documented rules for what's internal, not on a reproduced before-and-after.
  • GPT 6.1 Sol review at xhigh: four medium findings (no undo, a loose skip condition, overclaiming copy, no hard-rule branch), all fixed. A second pass found nothing left.

Made by Claude Opus 5.5 via Claude Code in T3 Code

…atchy is the company's own

Claude Code's auto mode treats any service its settings don't name as outside
the company, so it can block a publish whose page carries internal detail. A
user's agent was stopped publishing an internal report as "Excess Sensitive
Detail".

Onboarding now asks Claude Code users, through AskUserQuestion so the
recorded answer is their approval, whether to add one autoMode.environment
entry naming the instance as the company's private cloud. A publish blocked
later asks the person the same way and offers the entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area size:s Under 100 changed lines labels Oct 14, 2026
Review fixes: the entry uses the Key internal services trust slot and says
public patches stay public; the question and completion copy say auto mode
still checks each publish; an entry naming the host another way is shown to
the person, not skipped; undo removes only this entry; a Data Exfiltration
block, which no approval clears, gets a revised page instead of a request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood merged commit a048aaa into main Oct 14, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the t3/fix-claude-publish-safety-check branch October 14, 2026 20:53
allisonmahmood added a commit that referenced this pull request Oct 14, 2026
… Patchy is smoother (#679)

Release 12's What's new entry, written from `b58b899`, ahead of
deploying it. `patchy` and `CURRENT_RELEASE` move to `0.12.0`, so CLIs
and patch repos installed before this deploy are told to upgrade.

| Change | PRs |
| --- | --- |
| Fixed: Links within a page jump to their section | #677 |
| Improved: Set up Patchy however you ask | #672, #674 |
| Improved: Claude Code can know Patchy is your company's own | #676 |
| Fixed: Your agent remembers Patchy after a Node.js update | #673 |
| Fixed: Sign-in codes say how many minutes they have left | #675 |
| Behind the scenes: uploaded pages and logos are checked within strict
limits | #678 |

Made by Claude Opus 5.5 via Claude Code in T3 Code

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant