Files
kilocode/packages/opencode/test
Bruno Agatao 63d35d06cf feat(cli): record why a tool call was denied on its metadata
Auto-approval provenance was only recorded on the metadata of allowed
tool calls (state.metadata.approval), so denied calls had no
structured explanation of which rule/config/agent denied them. Since
'kilo export' serializes state.metadata verbatim into the JSON session
log, denials showed up with no provenance at all.

Add PermissionProvenance.classifyDenial, which reads the deciding deny
rule off a DeniedError's tagged ruleset and classifies it the same way
approvals are classified. Wire it into SessionTools' ctx.ask via
Effect.tapErrorTag so denials are recorded before the tool call fails,
reusing the existing carryApproval/failToolCall preservation so the
metadata survives onto the final error state.
2026-07-30 18:04:39 +02:00
..
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-13 18:00:35 +02:00
2026-07-13 18:00:35 +02:00
2026-07-22 13:31:23 +02:00
2026-07-13 19:15:48 +02:00
2026-07-13 18:00:35 +02:00
2026-07-13 18:00:35 +02:00
2026-07-22 13:31:23 +02:00
2026-07-13 18:00:35 +02:00
2026-06-09 08:29:02 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 15:00:34 +02:00
2026-07-13 18:00:35 +02:00
2026-07-22 13:31:23 +02:00
2026-07-13 18:00:35 +02:00
2026-07-22 13:31:23 +02:00
2026-07-22 13:31:23 +02:00
2026-07-13 19:15:48 +02:00
2026-06-10 17:38:09 +02:00
2026-07-22 13:31:23 +02:00