error: "rule_disabled" to the LLM, which then adapts — typically by filing a pending item or summarising differently.
Orchestration + triage, not confidence judgement
What this means in practice:- The agent proposes matches for unmatched rows. A human approves.
- The agent drafts proposed resolutions for mismatch reports. A human marks
FIXED/REJECTED. - The agent never auto-links a result to a reference hotel.
- The agent never auto-marks a mismatch as fixed or rejected.
Rule set JSON shape
What the agent can vs cannot do (v1)
| Surface | Agent CAN | Agent CANNOT |
|---|---|---|
MappingJob | Trigger on upload + cron, poll, summarise | Cancel a running job (deferred) |
PartnerMappingResult (unmatched) | Search candidates, file proposed matches as pending | Auto-link a result |
PartnerMappingResult (matched) | Read, count, report | Modify or unlink |
MismatchReport | OPEN → IN_PROGRESS (rule-gated, default off), group, post proposed resolution | Auto-mark FIXED or REJECTED |
ReferenceHotelDuplicateReport | Read + summarise | Anything mutating (cross-tenant golden data) |
| Coverage statistics | Compute, alert, weekly digest | — |
mapping_mode_preference | Read | Change (rule-gated, default off) |
| Exports | Read | Auto-export (rule-gated, default off) |
| Bulk partner updates | Nothing | Nothing |
| Data sources (inbound) | Auto-pull (default on once configured) | Pull from unconfigured sources |
| Data sinks (outbound) | Auto-push (rule-gated, default off) | Push to unconfigured sinks |
| Memory + pending items | Read/write its own | — |
Versioning
Every rule-set save creates a new row withversion = max(version) + 1 and a supersedes_id pointing to the previous version. Every AgentRun records the version it executed under. The UI shows “this action was taken under rule set v3” alongside historic runs.
Editing rules
- Web UI
- API
Go to Agents → [your agent] → Settings → Rules. Toggle the rule, click Save. Active cycles finish under the old rule set; the next cycle picks up the new one.
Related
- Agents overview — what agents are and the trust model.
- Configuration reference — field-by-field.
- Audit and undo — every rule-set change is audit-logged.
- Cost and limits — separate from rules but co-enforced.