Skip to content

fix: scope governance suppression to same line#70

Merged
CoderDeltaLAN merged 1 commit into
mainfrom
fix/governance-context-suppression-scope
Jun 17, 2026
Merged

fix: scope governance suppression to same line#70
CoderDeltaLAN merged 1 commit into
mainfrom
fix/governance-context-suppression-scope

Conversation

@CoderDeltaLAN

Copy link
Copy Markdown
Owner

Summary:

  • Scopes context-aware governance suppression to same-line negation or approval cues.
  • Prevents adjacent safe guidance from hiding a separate risky instruction line.
  • Updates regression tests and rule documentation for the narrower suppression boundary.

Verification:

  • Reproduction now reports AIRK-GOV003 for an unrelated adjacent dangerous line.
  • Targeted governance and CLI tests passed.
  • Full local check passed: 118 tests, Ruff, text hygiene, git whitespace.
  • Secret-like pattern scan passed.

Scope:

  • CHANGELOG.md
  • docs/RULES.md
  • src/agent_rules_kit/governance.py
  • tests/test_governance.py

@CoderDeltaLAN CoderDeltaLAN merged commit 3da1d16 into main Jun 17, 2026
1 check passed
@CoderDeltaLAN CoderDeltaLAN deleted the fix/governance-context-suppression-scope branch June 17, 2026 06:30
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