Enrich auto-rules.toml with provenance metadata #3
Labels
No labels
enhancement
observability
research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jbr870/claude-permit#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
When rules are auto-promoted to auto-rules.toml, the LLM reasoning, session context, and decision tier are discarded. Only a timestamp comment survives. Users reviewing their auto-rules can't answer "why was this rule created?" without digging through the audit log.
User Stories Served
Current State
Proposed Enhancement
Add metadata fields that the rule engine ignores but humans and tooling can read:
The rule engine already ignores unknown fields (serde
deny_unknown_fieldsis not set), so these are backwards-compatible.Context
See wiki: Data Capture Analysis — "Structural Issues §2: Auto-rules.toml loses provenance"