Repository navigation
Withhold Content Screening from the 1.0 release - #2001
Open
Paul Lizer (paullizer) wants to merge 1 commit into
Open
Paul Lizer (paullizer) wants to merge 1 commit into
Paul Lizer (paullizer) wants to merge 1 commit into
Conversation
Content Screening caused problems across the application when turned on and is planned to return after 1.0. One constant, CONTENT_SCREENING_AVAILABLE in content_screening/contracts.py, now withholds it: - Stored settings load with enable_content_screening off, and a save that turns it on is refused with content_screening_unavailable (all three save paths go through validate_content_screening_settings). - The admin Content Screening tab, its classic pane and the Extraction notice are hidden; the classic workspace toolbar and the V2 "Screening scans" button follow the capability flag. - The chat check behavior settings that Content Safety also uses move to the Content Safety section, with the classic form marker that gates them. Documents already held keep their hold; owners can delete and re-upload them, and /content-review still resolves them. access.py is the document authorization layer and is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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
Content Screening caused problems across the application when it was turned on, and it is planned to return after 1.0 (December or January). This PR withholds it without removing any code. One constant,
CONTENT_SCREENING_AVAILABLE = Falseincontent_screening/contracts.py, controls it, and setting it toTruerestores the capability as it was.enable_content_screeningoff, and the loader saves that change. A save that turns it on returns400 content_screening_unavailable. All three save paths (classic admin form, V2 admin save,PUT /api/content-screening/configuration) go throughvalidate_content_screening_settings().WITHHELD_TAB_IDSinadmin_settings_nav.py), along with its classic pane and the Extraction tab notice. The classic workspace screening toolbar and the V2 "Screening scans" button now render only while the capability is on. Before, the button showed in every personal workspace even with it off.chat_content_settings_presentform marker moves with them. Without it, a classic save would ignore every chat content setting./content-reviewstill resolves them.content_screening/access.pyis the application's document authorization layer and is unchanged.Linked issue
None.
Release Notes & Latest Features
Is this visible to end users?
Is this admin-facing (Admin Settings, governance, deployment, config)?
Should this become a Latest Feature card?
Screenshot needed for the card?
Version bump
application/single_app/config.pyVERSIONthird segment bumped (0.261.511 → 0.261.512)deployers/version.txtnot needed becausedeployers/was not changedTesting / validation
functional_tests/test_content_screening_release_withheld.py(9 passed). It covers loading, the refused save, other saves that still validate, the navigation, where the shared fields now live, the classic templates and the workspace controls.test_admin_settings_fields_registry_integrity,test_v2_admin_appearance_parity,test_v2_admin_workspaces_parityandtest_v2_admin_security_paritynow check the schema againstDECLARED_ADMIN_NAV, which still includes the withheld tab.test_content_screening_settings_apiandtest_content_screening_empty_policy(through its loader) run withCONTENT_SCREENING_AVAILABLE=True, so they still cover activation as it will return.test_content_screening_admin_settings_fixreads the declared navigation.test_app_settings_store_consistencysupplies the new names its loader reads.test_group_document_management.py(239 passed) andtest_group_document_read_apis.py(211 passed) were run on their own, because they time out under parallel load.scripts/check_cosmos_response_boundaries.py: 0 review gaps after re-reviewingfunctions_settings.py(module digest only) and thetest_content_screening_settings_api.pyseam (import digest only).test_cosmos_document_boundaries.py51 passed.tsc --noEmitshows only the two existing missing-package errors (qrcode-generator,jsqr) from the localnode_modules.ui_tests/test_content_screening_classic.py,test_v2_content_screening.pyandtest_content_screening_policy_parity.pyturn screening on through the UI, so they cannot pass while it is withheld. CI does not run them.Documentation
docs/explanation/fixes/CONTENT_SCREENING_WITHHELD_FROM_RELEASE_FIX.mdSecurity checklist
🤖 Generated with Claude Code