Repository navigation
feat(factorydroid): round-trip native permissionRules through the override - #3447
Merged
dyoshikawa merged 4 commits intoOct 14, 2026
Merged
Conversation
…rride Factory Droid now documents `permissionRules` (versioned allow/ask/block rules) as the recommended command policy and deprecates the legacy command lists. Add `permissionRules` to FACTORYDROID_OVERRIDE_KEYS so import lifts it into the `factorydroid` override (and the settings.local.json guardrail names it), and type it in the override schema. Default emission still targets commandAllowlist/commandDenylist, because permissionRules is org-gated and depends on the Droid version. Refs #3414 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012y9fNo2AAJdGocxvsHtDhv
Factory documents a prefix position as either a token or a non-empty list of alternative tokens (e.g. `["git", ["status", "diff", "log"]]`). Accept that form, require non-empty prefixes, and keep the override JSDoc attached to its schema. Refs #3414 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012y9fNo2AAJdGocxvsHtDhv
…ctorydroid-permission-rules # Conflicts: # src/generated/docs-content.ts # src/types/permissions.ts
…ctorydroid-permission-rules # Conflicts: # src/generated/docs-content.ts
dyoshikawa
deleted the
resolve-issue-3414-factorydroid-permission-rules
branch
October 14, 2026 19:02
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Factory Droid now documents native
permissionRules({ "version": 1, "rules": [...] }withallow/ask/blockdecisions) as the recommended command policy, and markscommandAllowlist/commandDenylist/commandBlocklistas deprecated but still respected. This PR makespermissionRulesa first-class key of thefactorydroidpermissions override:permissionRulestoFACTORYDROID_OVERRIDE_KEYS, so import lifts an existing block into thefactorydroidoverride and thesettings.local.jsonguardrail names it.FactorydroidPermissionsOverrideSchema(id,decisionenum,match.prefix,tests,reason,enabled; loose so newer upstream fields pass through).commandAllowlist.docs/reference/file-formats.mdand the feature-research reference.Upstream references:
Remaining (maintainer decision)
allow/ask/denyshould also (or instead) be emitted as nativepermissionRules. The docs say the feature must be "enabled for your organization and supported by your Droid version", and each rule needstests, so default emission still targets the legacy lists. This would likely need to be opt-in or written alongside them.docs.factory.aiURLs todocs.factory.com(the old host redirects).Refs #3414
🤖 Generated with Claude Code
https://claude.ai/code/session_012y9fNo2AAJdGocxvsHtDhv