Add AI Disclosure Documenty#17
Closed
Stuart B. Wilkins (stuwilkins) wants to merge 4 commits into
Closed
Conversation
Add resolve_real_tool_binary() to lib/bwrap_sandbox_lib.sh. On managed hosts the dotfiles wrapper (~/.local/bin/opencode) shadows the real npm binary on PATH. command -v opencode then resolves to the wrapper; its directory gets added to SANDBOX_PATH and bind-mounted into the --clearenv sandbox, where AZURE_*/N2SNSCRIPTS_LIB are stripped and the wrapper fails with 'cannot locate gpg-passwd.sh' (the double-invocation bug). Fix: detect dotfiles wrappers by checking whether readlink -f resolves to a path containing /config/scripts/. If so, substitute the npm-prefix binary directly. Hard-error if the npm binary is also absent (returning the wrapper would silently recreate the bug). Non-npm tools (system packages) are unaffected — the candidate is returned unchanged. Wire resolve_real_tool_binary into all four wrappers: bwopencode, bwclaude, bwcodex, bwcopilot. Assisted-by: opencode:claude-opus-4-8 Assisted-by: opencode:claude-sonnet-4-6 Assisted-by: opencode:gpt-5.6-sol
Add --github-tokens to forward GH_TOKEN_* env vars into the sandbox so the agent can authenticate gh(1) via per-command token selection. Off by default; values are printed as REDACTED under --dry-run so tokens never reach the terminal. Assisted-by: opencode:claude-opus-4-8 Assisted-by: opencode:claude-sonnet-4-6
Add --restrict-branch-creation and --only-restrict-creation to apply an additive nsls2-restrict-branch-creation ruleset targeting ~ALL branches, blocking creation of names outside --exclude-branches (default main,preview; fnmatch, auto-prefixed refs/heads/). Validate --approvers team via API before applying (GitHub silently ignores unknown dismissal teams; requires read:org scope). Guard against empty --exclude-branches patterns. Document exit codes accurately. Rebased onto current main; conflict resolution preserved bash>=4 guard from ad7eca9 and pemdecompose row from upstream. Assisted-by: opencode:claude-opus-4-8 Assisted-by: opencode:claude-sonnet-4-6 Assisted-by: opencode:gpt-5.6-sol
Assisted-by: opencode:claude-sonnet-5
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.
Add AI Disclosure Banner to the repository and link in README.md