From 738bd24d6e24a76acb25d7cdc95f84687203e6ae Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 23 Nov 2026 15:53:36 -0500 Subject: [PATCH] fix(7733): a rule with triggers holds or refuses only the acts they match Rules 2, 4, 10 and 153 are set to hold and mounted on work.deliver. A push to dev therefore stopped four times in a row, once for each of them, although none of them governs a push to dev: their triggers (git push origin main, git tag, pytest, pull_request_write) name the acts they do govern. A rule that has triggers now stops an act only when one of them matched it. Reached by its moment alone, it is a line beside the work. A rule with no triggers still holds wherever it is mounted, because the mount is all that says where it applies. A mounted rule whose unscoped trigger also matched now counts as reached by the trigger, so it ranks as triggered and may stop the act. Co-Authored-By: Claude Opus 5.5 --- frontend/src/components/WeightProposals.vue | 3 ++- src/grimoire/services/retrieval_pipeline.py | 16 +++++++++--- src/grimoire/services/rule_triggers.py | 6 +++++ tests/test_rule_triggers.py | 27 +++++++++++++++++++++ 4 files changed, 48 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/WeightProposals.vue b/frontend/src/components/WeightProposals.vue index cbb4863f..037fdd9c 100644 --- a/frontend/src/components/WeightProposals.vue +++ b/frontend/src/components/WeightProposals.vue @@ -99,7 +99,8 @@ onMounted(load); Suggested from each rule's text and what happened when it reached sessions. Inform is a line beside the work; hold makes the act or reply wait until the rule has been read once (file edits are never held); enforce refuses the act it governs. A trigger reaches the - rule exactly, by the tool, path, command or word the act carries. + rule exactly, by the tool, path, command or word the act carries; a rule with triggers + holds or refuses only the acts they match, and elsewhere it is a line.