Skip to content

feat(cli): --assume-opt-in for status and apply - #12

Merged
AlexeyShalaev merged 1 commit into
masterfrom
feat/apply-assume-opt-in
Oct 7, 2026
Merged

AlexeyShalaev merged 1 commit into
masterfrom
feat/apply-assume-opt-in

Conversation

@AlexeyShalaev

Copy link
Copy Markdown
Member

A hub that subscribes repositories through an org: or group: entry with opt_in: assumed left the local commands stuck. They cannot list the organisation, so a checkout without an opt-in file counted as not opted in. Taking a file back under the hub (apply --adopt) then refused until someone added a throwaway opt-in file. That happened in the bedrock-python rollout.

--assume-opt-in on status and apply settles it locally: the target counts as opted in, as such an entry would make it.

  • The report says so: opt_in: flag in JSON, "opted in by --assume-opt-in" in text.
  • An opt-in file still wins, enabled: false included. A repo: entry that subscribes the target still reports assumed.
  • The warnings about unresolved entries and unknown names mention the flag.
  • docs: guide/local (taking a file back, organisations), reference/output (the new opt_in value), the command reference and the agents page.

Tests cover a library the org entry may subscribe (status, golden text, apply writing the packs), a target without a name, a repo: entry, and enabled: false winning over the flag.

A hub that subscribes repositories through an org or group entry with opt_in: assumed left local commands stuck: they cannot list the organisation, so a checkout without an opt-in file counted as not opted in, and apply --adopt refused until someone added a throwaway opt-in file. --assume-opt-in settles it locally: the target counts as opted in, as such an entry would make it, and the report says so (opt_in: flag, 'opted in by --assume-opt-in'). An opt-in file, enabled: false included, still wins, and a repo: entry that subscribes the target still reports assumed.
@AlexeyShalaev
AlexeyShalaev merged commit fd79d01 into master Oct 7, 2026
22 checks passed
@AlexeyShalaev
AlexeyShalaev deleted the feat/apply-assume-opt-in branch October 7, 2026 14:19
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