You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warn-mode policy violations not surfaced in install output (silent) #834
When org policy has enforcement: warn and an apm install triggers a violation, the violation is collected by logger.policy_violation(severity='warn') and pushed to logger.diagnostics, but the user-facing install summary (rendered by apm_diagnostics) does not show it.
Final summary shows no policy issues (incorrect — should warn)
Expected
Warn-mode violations should surface visibly in the final install summary so a developer notices and pins/aligns or asks for an exemption before CI fails on apm audit --ci.
Block-mode violations DO surface correctly (different code path, immediate stop).
The discovered 'str' object has no attribute 'get' error on apm install --mcp <allowed-server> (when registry lookup happens for an allowed-by-policy server) is a separate install bug, not policy-related.
Acceptance
Warn-mode policy violations appear in the -- Diagnostics -- section of apm install output.
Same per-violation formatting as block mode (denied-by-pattern, allow-list, etc.).
No regression in block-mode behavior.
Filed as W4-live follow-up alongside #829 and #831.
Activity
fix(policy): in-PR resolution of #834 (warn-mode rendering) and #831 …
docs(changelog): record in-PR resolution of #834 and #831 under #827
feat(policy): enforce apm-policy.yml at install time (#832)
chore: prepare v0.9.1 release
chore: prepare v0.9.1 release (#838)
feat(policy): enforce apm-policy.yml at install time (#832)
chore: prepare v0.9.1 release (#838)