chore(legal): replace proprietary license with Apache-2.0 and add DCO#1
Merged
Merged
Conversation
Replace proprietary license with Apache License 2.0 to meet Linux Foundation AI & Data requirements for open-source project acceptance. Add NOTICE file with copyright attribution and Developer Certificate of Origin (DCO v1.1) for contribution sign-off compliance. Signed-off-by: deborahjacob-botanu <deborahjacob@botanu.ai> Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
deborahjacob-botanu
added a commit
that referenced
this pull request
Apr 24, 2026
…-24 P0 #1) Pre-change, the default install silently produced no judgeable content: set_input_content / set_output_content / set_retrieval_content no-op'd because their rate-gate evaluated ``random.random() < 0.0 == False``. The L2 evaluator judge then returned empty test cases for every span and eval_rollups stayed ``pending`` forever. Customers had to read the docs AND flip a config flag before the "SDK in → eval out" loop worked. Flipping the default to 0.10 (what the docs already recommended for production) inverts the failure mode from silent-no-eval to loud- content-captured-with-PII-risk. Three PII-defense layers still run on every captured attribute: 1. SDK in-process scrub (pii_scrub_enabled=True by default) 2. Collector credential-regex scrub on content attribute prefixes 3. Evaluator Presidio NER before judge calls Changes: - BotanuConfig.content_capture_rate default 0.0 → 0.10 - YAML loader fallback default matches (config.py:436) - Bootstrap logs content_capture_rate at every startup; warns when <= 0.0 so the "why are eval rollups empty" debugging path ends at a startup log line, not silently-dropped helper calls. - Tests: test_default_is_zero → test_default_is_ten_percent, test_env_var_invalid_ignored now expects 0.10 fallback. - Docs: api/configuration.md table + getting-started/configuration.md code sample both updated. All 150 SDK unit tests still pass. NOTE: working-tree had one unrelated pre-existing change to src/botanu/models/run_context.py — NOT included in this commit. Signed-off-by: Deborah Jacob <deborah@botanu.ai>
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.
Replace proprietary license with Apache License 2.0 to meet Linux Foundation AI & Data requirements for open-source project acceptance. Add NOTICE file with copyright attribution and Developer Certificate of Origin (DCO v1.1) for contribution sign-off compliance.