fix(classifier): enforce AI enablement interlock#13
Merged
Conversation
Load config/ai.yaml by default, emit no jobs while classification is disabled, and reject attempted AI artifact publication in the provenance gate. Document the explicit opt-in and cover the behavior with CLI and config tests.
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.
Problem
ai.enabledwas documented as an operational switch but was only displayed. The CLI also did not loadconfig/ai.yamlby default, so an absent explicit--configsilently used defaults.Changes
config/ai.yamlby default when it exists.classifier planwrites a valid empty manifest without README discovery or GitHub credentials.verify-ai-provenancewhile classification is disabled.Verification
pnpm p3-gatepassed: 66 test files, 458 tests, build, and schema drift checks.Operational use
Before the first executor run, commit a secret-free
config/ai.yamlwithai.enabled: true, one executor kind, and a conservative valid budget. The executor token remains external.