diff --git a/alembic/versions/0133_rule_delivery_plugin.py b/alembic/versions/0133_rule_delivery_plugin.py new file mode 100644 index 00000000..48a46c11 --- /dev/null +++ b/alembic/versions/0133_rule_delivery_plugin.py @@ -0,0 +1,26 @@ +"""rule deliveries record the plugin version that asked for the line + +Revision ID: 0133 +Revises: 0132 +Create Date: 2026-11-23 + +Only a plugin that sends its version reports every open, so the open-rate +readers count only deliveries that carry one. Existing rows stay null: they +were made while sessions ran a plugin that did not report opens of the rules +a hook had named, so their missing opens are not evidence. +""" +import sqlalchemy as sa +from alembic import op + +revision = "0133" +down_revision = "0132" +branch_labels = None +depends_on = None + + +def upgrade() -> None: + op.add_column("rule_deliveries", sa.Column("plugin", sa.Text(), nullable=True)) + + +def downgrade() -> None: + op.drop_column("rule_deliveries", "plugin") 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.