Skip to content

feat(weave): add autocreate_project setting to weave.init#6989

Draft
gtarpenning wants to merge 1 commit into
masterfrom
gtarpenning/init-autocreate-setting
Draft

feat(weave): add autocreate_project setting to weave.init#6989
gtarpenning wants to merge 1 commit into
masterfrom
gtarpenning/init-autocreate-setting

Conversation

@gtarpenning
Copy link
Copy Markdown
Member

Summary

  • Adds autocreate_project (default True) to UserSettings, plus WEAVE_AUTOCREATE_PROJECT env var.
  • When False, weave.init('entity/project') raises UnableToCreateProjectError if the project doesn't exist instead of upserting it.
  • Customer request from T-Mobile: they want to gate project creation behind their W&B UI and avoid accidental project sprawl from typos in weave.init.

Testing

unit tests cover the existing-project and missing-project branches with the toggle off; existing project_creator + settings parity tests still pass.

Adds a new `autocreate_project` UserSettings field (default `True`) plus
matching `WEAVE_AUTOCREATE_PROJECT` env var. When disabled, `weave.init`
raises `UnableToCreateProjectError` if the project does not exist on the
server instead of upserting it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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