Skip to content

refactor: remove ineffective A2AT_PROMPT_COMPLIANCE_ENABLED config - #198

Merged
zhangwenjun-huawei merged 1 commit into
project-openan:devfrom
zhangwenjun-huawei:dev
Sep 18, 2026
Merged

zhangwenjun-huawei merged 1 commit into
project-openan:devfrom
zhangwenjun-huawei:dev

Conversation

@zhangwenjun-huawei

Copy link
Copy Markdown
Contributor

Description

The A2AT_PROMPT_COMPLIANCE_ENABLED flag was parsed into PromptComplianceConfig but never consumed anywhere in the SDK: the prompt-compliance orchestrator is built unconditionally regardless of the flag. Remove the dead configuration to avoid misleading users.

  • Remove PromptCompliance key constants from A2ATConfigKeys
  • Delete PromptComplianceConfig and drop the promptCompliance component from A2ATConfig
  • Remove the entry from env.example and update affected tests

Related Issue(s)

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Other (describe below)

Checklist

  • I have read the CONTRIBUTING guide
  • All commits are signed off (git commit -s) per the DCO
  • New and existing tests pass locally
  • I have added tests that prove my fix is effective or my feature works (if applicable)
  • I have added or updated documentation as needed
  • New source files include the SPDX license header

Additional Context

The A2AT_PROMPT_COMPLIANCE_ENABLED flag was parsed into PromptComplianceConfig but never consumed anywhere in the SDK: the prompt-compliance orchestrator is built unconditionally regardless of the flag. Remove the dead configuration to avoid misleading users.

- Remove PromptCompliance key constants from A2ATConfigKeys
- Delete PromptComplianceConfig and drop the promptCompliance component from A2ATConfig
- Remove the entry from env.example and update affected tests

Signed-off-by: zhangwenjun-huawei <zhangwenjun19@huawei.com>
@zhangwenjun-huawei
zhangwenjun-huawei requested a review from a team as a code owner September 18, 2026 12:52
@zhangwenjun-huawei
zhangwenjun-huawei merged commit 7e10408 into project-openan:dev Sep 18, 2026
3 checks passed
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