diff --git a/alembic/versions/0132_rule_field_judgments.py b/alembic/versions/0132_rule_field_judgments.py
new file mode 100644
index 00000000..32158fd0
--- /dev/null
+++ b/alembic/versions/0132_rule_field_judgments.py
@@ -0,0 +1,51 @@
+"""rule field judgments — proposed and judged enforcement, salience and triggers
+
+Revision ID: 0132
+Revises: 0131
+Create Date: 2026-11-23
+
+A pass reads each rule with its delivery history and proposes how strongly it
+should arrive and what should reach it; a person confirms or rejects each
+value. One row per (rule, field, value), so a rejected value is never proposed
+again and a rule the pass agreed with reads as looked at.
+"""
+import sqlalchemy as sa
+from alembic import op
+from sqlalchemy.dialects import postgresql
+
+revision = "0132"
+down_revision = "0131"
+branch_labels = None
+depends_on = None
+
+
+def upgrade() -> None:
+ op.create_table(
+ "rule_field_judgments",
+ sa.Column("id", sa.BigInteger(), primary_key=True),
+ sa.Column("rule_id", sa.BigInteger(),
+ sa.ForeignKey("rules.id", ondelete="CASCADE"), nullable=False),
+ sa.Column("field", sa.Text(), nullable=False),
+ sa.Column("value", sa.Text(), nullable=False),
+ sa.Column("state", sa.Text(), nullable=False, server_default="suggested"),
+ sa.Column("source", sa.Text(), nullable=False, server_default="pass"),
+ sa.Column("note", sa.Text(), nullable=True),
+ sa.Column("evidence", postgresql.JSONB(), nullable=True),
+ sa.Column("judged_at", sa.DateTime(timezone=True), nullable=True),
+ sa.Column("created_at", sa.DateTime(timezone=True), nullable=False,
+ server_default=sa.func.now()),
+ sa.UniqueConstraint("rule_id", "field", "value", name="uq_rule_field_judgments_value"),
+ sa.CheckConstraint(
+ "field IN ('enforcement', 'salience', 'trigger')", name="ck_rule_field_judgments_field",
+ ),
+ sa.CheckConstraint(
+ "state IN ('suggested', 'confirmed', 'rejected')", name="ck_rule_field_judgments_state",
+ ),
+ sa.CheckConstraint("source IN ('pass', 'edit')", name="ck_rule_field_judgments_source"),
+ )
+ op.create_index("ix_rule_field_judgments_rule_id", "rule_field_judgments", ["rule_id"])
+
+
+def downgrade() -> None:
+ op.drop_index("ix_rule_field_judgments_rule_id", table_name="rule_field_judgments")
+ op.drop_table("rule_field_judgments")
diff --git a/frontend/src/api/moments.ts b/frontend/src/api/moments.ts
index d4c8e11b..04788cee 100644
--- a/frontend/src/api/moments.ts
+++ b/frontend/src/api/moments.ts
@@ -1,4 +1,5 @@
import { apiGet, apiPost, apiDelete } from "@/api/client";
+import type { RuleEnforcement, RuleSalience, RuleTrigger } from "@/api/rulebooks";
/**
* The moments of work rules mount on, and the actions that
@@ -180,3 +181,77 @@ export function getProposals(ruleId?: number): Promise {
export function judgeProposals(judgments: MomentJudgment[]): Promise {
return apiPost("/api/retrieval/moments/proposals/judge", { judgments });
}
+
+/**
+ * Suggestions for how strongly a rule arrives (`enforcement`, `salience`) and
+ * which typed triggers reach it, from a pass that read the rule beside its
+ * delivery history. Nothing changes until a person confirms one.
+ * `GET /api/retrieval/weights/proposals`, the payload the
+ * `rule_weight_proposals` MCP tool returns.
+ */
+export type WeightField = "enforcement" | "salience" | "trigger";
+
+/** What happened when the rule reached a session, over `days`. */
+export interface WeightEvidence {
+ days?: number;
+ delivered?: number;
+ opened?: number;
+ places?: { at: string; delivered: number; opened: number }[];
+ pulled?: number;
+ applied?: number;
+ departed?: number;
+ misfire_days?: number;
+}
+
+export interface WeightProposal {
+ field: WeightField;
+ /** The enforcement or salience name; for a trigger, its stored form. */
+ value: string;
+ trigger?: RuleTrigger;
+ why: string;
+ source: "pass" | "edit";
+ evidence: WeightEvidence;
+ created_at: string | null;
+}
+
+export interface RuleWeightProposals {
+ id: number;
+ title: string;
+ kind: string;
+ statement: string;
+ when_to_apply: string;
+ home: "global" | "project";
+ enforcement: RuleEnforcement;
+ salience: RuleSalience;
+ mounted: string[];
+ triggers: RuleTrigger[];
+ proposals: WeightProposal[];
+}
+
+export interface WeightProposalsPayload {
+ rules: RuleWeightProposals[];
+ total: number;
+}
+
+export interface WeightJudgment {
+ rule_id: number;
+ field: WeightField;
+ value: string | RuleTrigger;
+ verdict: Verdict;
+ note?: string;
+}
+
+export interface WeightJudgeResult {
+ judged: { rule_id: number; field: WeightField; value: string; state: string }[];
+ refused: { rule_id: number; field?: string; error: string }[];
+}
+
+export function getWeightProposals(ruleId?: number): Promise {
+ return apiGet(`/api/retrieval/weights/proposals${ruleId ? `?rule_id=${ruleId}` : ""}`);
+}
+
+/** A confirm sets the field on the rule (a trigger is added beside its
+ * others); a reject stops that value being proposed again. */
+export function judgeWeightProposals(judgments: WeightJudgment[]): Promise {
+ return apiPost("/api/retrieval/weights/proposals/judge", { judgments });
+}
diff --git a/frontend/src/api/rulebooks.ts b/frontend/src/api/rulebooks.ts
index 7f20f6b1..e38fff40 100644
--- a/frontend/src/api/rulebooks.ts
+++ b/frontend/src/api/rulebooks.ts
@@ -56,8 +56,9 @@ export type RuleKind = "rule" | "preference";
/**
* What a rule does when it arrives, declared by its author. `inform` puts a
- * line beside the work; `hold` makes the reply or act it governs wait for one
- * read; `enforce` checks the act itself. A preference is always `inform`.
+ * line beside the work; `hold` makes the reply or command it governs wait for
+ * one read; `enforce` refuses an act its moment or trigger reaches. A
+ * preference is always `inform`.
*/
export type RuleEnforcement = "enforce" | "hold" | "inform";
/** How a rule ranks among rules of the same enforcement at a crowded moment. */
diff --git a/frontend/src/assets/rule-proposals.css b/frontend/src/assets/rule-proposals.css
new file mode 100644
index 00000000..1877d1d7
--- /dev/null
+++ b/frontend/src/assets/rule-proposals.css
@@ -0,0 +1,29 @@
+/* A proposal about a rule waiting on a person — the panels under
+ Settings › Moments that list mount proposals and weight suggestions.
+ Loaded scoped by each, so these class names stay local to the panels. */
+.proposals { display: flex; flex-direction: column; gap: var(--fs-space-2); }
+.sub-title { margin: 0; font-size: 0.95rem; color: var(--fs-text-primary); }
+.proposal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--fs-space-2); }
+.proposal-rule {
+ padding: var(--fs-space-3);
+ background: var(--fs-surface-page);
+ border: 1px dashed var(--fs-border-color);
+ border-radius: var(--fs-radius-md);
+}
+.rule-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--fs-space-2); }
+.rule-title { font-size: var(--fs-size-body-sm); color: var(--fs-text-primary); font-weight: var(--fs-weight-medium); }
+.rule-mounted { display: inline-flex; flex-wrap: wrap; gap: var(--fs-space-1); font-size: var(--fs-size-tiny); color: var(--fs-text-tertiary); }
+.rule-statement { margin: var(--fs-space-1) 0 var(--fs-space-2); font-size: var(--fs-size-body-sm); color: var(--fs-text-secondary); line-height: var(--fs-leading-body); }
+.proposal-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--fs-space-2); }
+.proposal-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--fs-space-2); font-size: var(--fs-size-body-sm); }
+.proposal-why { flex: 1 1 16rem; color: var(--fs-text-secondary); }
+.proposal-source { color: var(--fs-text-tertiary); font-size: var(--fs-size-tiny); }
+.proposal-actions { display: inline-flex; gap: var(--fs-space-2); margin-left: auto; }
+.proposal-kind { font-size: var(--fs-size-tiny); color: var(--fs-text-tertiary); }
+.proposal-reasons {
+ flex-basis: 100%;
+ margin: 0;
+ padding-left: var(--fs-space-4);
+ font-size: var(--fs-size-tiny);
+ color: var(--fs-text-tertiary);
+}
diff --git a/frontend/src/components/MomentProposals.vue b/frontend/src/components/MomentProposals.vue
index 90f26e59..43dd70e7 100644
--- a/frontend/src/components/MomentProposals.vue
+++ b/frontend/src/components/MomentProposals.vue
@@ -158,33 +158,6 @@ onMounted(load);
-
+
diff --git a/frontend/src/components/MomentsSettings.vue b/frontend/src/components/MomentsSettings.vue
index 44c8a8e7..90176625 100644
--- a/frontend/src/components/MomentsSettings.vue
+++ b/frontend/src/components/MomentsSettings.vue
@@ -3,6 +3,7 @@ import { computed, onMounted, ref } from "vue";
import { useMomentsStore } from "@/stores/moments";
import MomentProposals from "@/components/MomentProposals.vue";
import MomentRuleUsage from "@/components/MomentRuleUsage.vue";
+import WeightProposals from "@/components/WeightProposals.vue";
import type { MomentAction, MomentUsage } from "@/api/moments";
import { fmtDate } from "@/utils/dateFormat";
@@ -126,6 +127,7 @@ onMounted(() => store.load(true));
+
diff --git a/frontend/src/components/WeightProposals.vue b/frontend/src/components/WeightProposals.vue
new file mode 100644
index 00000000..cbb4863f
--- /dev/null
+++ b/frontend/src/components/WeightProposals.vue
@@ -0,0 +1,154 @@
+
+
+
+
+ How strongly rules arrive — waiting on you
+
+ The suggestions could not be loaded.
+ Try again
+
+
+
+ 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.
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/rules/RuleEditorSlideOver.vue b/frontend/src/components/rules/RuleEditorSlideOver.vue
index ff0f1423..41d6c76b 100644
--- a/frontend/src/components/rules/RuleEditorSlideOver.vue
+++ b/frontend/src/components/rules/RuleEditorSlideOver.vue
@@ -344,14 +344,16 @@ watch(() => props.ruleId, load);
- Hold — the reply or act it governs waits for one
- read of it. For a rule whose miss costs a rewrite.
+ Hold — the reply or command it governs waits until
+ the rule has been read once. File edits are never held. For a rule
+ whose miss costs a rewrite.
- Enforce — the act itself is checked. For a hard
+ Enforce — an act its moment or trigger reaches
+ does not run, every time, until you change the rule. For a hard
boundary.
diff --git a/frontend/src/components/rules/RuleListPane.vue b/frontend/src/components/rules/RuleListPane.vue
index 92713d0e..e7b86ee2 100644
--- a/frontend/src/components/rules/RuleListPane.vue
+++ b/frontend/src/components/rules/RuleListPane.vue
@@ -33,8 +33,8 @@ const emit = defineEmits<{
v-if="r.enforcement === 'hold' || r.enforcement === 'enforce'"
class="rule-chip"
:title="r.enforcement === 'hold'
- ? 'The reply or act it governs waits for one read of it'
- : 'The act it governs is checked against it'"
+ ? 'The reply or command it governs waits until it has been read once'
+ : 'An act it is reached by does not run until the rule changes'"
>{{ r.enforcement === "hold" ? "holds" : "enforced" }}