Skip to content

Commit 5afe58c

Browse files
committed
fix: accept Claude URL elicitation notifications
1 parent 8b78a17 commit 5afe58c

7 files changed

Lines changed: 22 additions & 13 deletions

File tree

.github/spec-baselines.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"description": "Baseline hashes for canonical specification content. Human-facing URLs are kept separately from machine-readable content URLs.",
4-
"last_updated": "2026-08-12T22:03:57Z",
4+
"last_updated": "2026-08-16T21:03:54Z",
55
"sources": {
66
"s-tier": {
77
"agent-skills-spec": {
@@ -117,7 +117,7 @@
117117
"claude-code-memory": {
118118
"url": "https://code.claude.com/docs/en/memory",
119119
"content_url": "https://code.claude.com/docs/en/memory.md",
120-
"hash": "a4559956d8451c7133362cc3230c16712f8d5c68fcd1a2122bd5a2600181af56",
120+
"hash": "714ee359ae36615df0a70335ebc6bc78c42e01dcc32e616c736ded37c666d2b6",
121121
"rules": [
122122
"CC-MEM-001",
123123
"CC-MEM-002",
@@ -128,7 +128,7 @@
128128
"claude-code-hooks": {
129129
"url": "https://code.claude.com/docs/en/hooks",
130130
"content_url": "https://code.claude.com/docs/en/hooks.md",
131-
"hash": "7a561d9a32dc7a42fbb83bfc137b9c0f21cad45e1e9a25a81f3622bca118adc6",
131+
"hash": "bc6ebfe342d20f3e1100853deebf44c1aae2a12d612f74d421397ac275818da6",
132132
"rules": [
133133
"CC-HK-001",
134134
"CC-HK-002",
@@ -140,13 +140,14 @@
140140
"CC-HK-008",
141141
"CC-HK-010",
142142
"CC-HK-011",
143-
"CC-HK-012"
143+
"CC-HK-012",
144+
"CC-HK-025"
144145
]
145146
},
146147
"claude-code-skills": {
147148
"url": "https://code.claude.com/docs/en/skills",
148149
"content_url": "https://code.claude.com/docs/en/skills.md",
149-
"hash": "b52706dee098407fad34e0162b6799b971a29738e25ce0e0eccbe13c69c95b4c",
150+
"hash": "e950bbac5447c551c12d390892314432386331c2772e7aee203a0c74fc4c5312",
150151
"rules": [
151152
"CC-SK-001",
152153
"CC-SK-002",
@@ -159,7 +160,7 @@
159160
"claude-code-plugins": {
160161
"url": "https://code.claude.com/docs/en/plugins-reference",
161162
"content_url": "https://code.claude.com/docs/en/plugins-reference.md",
162-
"hash": "59d788845be508a182bae5cde6dba663e4eb8d3e77b43bf8c6088cce40ec6027",
163+
"hash": "8d7a7c0649dec858c9d48072af247092ec0c82678ed70b3d4251748c822124ed",
163164
"rules": [
164165
"CC-PL-002",
165166
"CC-PL-003",
@@ -171,7 +172,7 @@
171172
"claude-code-subagents": {
172173
"url": "https://code.claude.com/docs/en/sub-agents",
173174
"content_url": "https://code.claude.com/docs/en/sub-agents.md",
174-
"hash": "a9a788cd9bc21cb95e860c4ab6e63efe6b1c406e8f0aa1aee8e66ce5e128037e",
175+
"hash": "ca660359d8230ec7198f05a70943df5bb0474dfe71710a6955811d639890861f",
175176
"rules": [
176177
"CC-AG-001",
177178
"CC-AG-002",

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
- **CC-HK-025 Notification matcher compatibility**. Accept the documented
12+
`elicitation_url_dialog` matcher instead of reporting it as invalid, and
13+
advance the reviewed Claude Code hooks, memory, plugins, skills, and
14+
subagent specification baselines.
15+
1016
### Changed
1117
- **Tool release baselines**. Advanced Claude Code from `v2.1.232` to
1218
`v2.1.233` and Cline from `v4.1.9` to `v4.1.10`. Neither release changes an

crates/agnix-core/src/rules/hooks/helpers.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ const NOTIFICATION_MATCHERS: &[&str] = &[
242242
"idle_prompt",
243243
"auth_success",
244244
"elicitation_dialog",
245+
"elicitation_url_dialog",
245246
"elicitation_complete",
246247
"elicitation_response",
247248
"agent_needs_input",
@@ -2026,6 +2027,7 @@ mod tests {
20262027
"idle_prompt",
20272028
"auth_success",
20282029
"elicitation_dialog",
2030+
"elicitation_url_dialog",
20292031
"elicitation_complete",
20302032
"elicitation_response",
20312033
"agent_needs_input",

crates/agnix-rules/rules.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description": "Machine-readable source of truth for all validation rules. When adding a new rule, add it here AND in VALIDATION-RULES.md. CI parity tests enforce sync.",
33
"version": "1.1.0",
44
"total_rules": 448,
5-
"last_updated": "2026-08-15",
5+
"last_updated": "2026-08-17",
66
"schema": {
77
"evidence": {
88
"source_type": "spec|vendor_docs|vendor_code|paper|community",
@@ -1978,7 +1978,7 @@
19781978
"source_urls": [
19791979
"https://code.claude.com/docs/en/hooks"
19801980
],
1981-
"verified_on": "2026-07-02",
1981+
"verified_on": "2026-08-17",
19821982
"applies_to": {
19831983
"tool": "claude-code",
19841984
"file_types": [

knowledge-base/VALIDATION-RULES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ Rules are active by default. Deprecated rules should include `status`, `deprecat
910910
### CC-HK-025 [LOW] Invalid Matcher Value
911911
**Requirement**: Matcher values MAY be validated against known values per event
912912
**Detection**: Check matcher values against event-specific allowlists for SessionStart, Setup, SessionEnd, Notification, PreCompact, PostCompact, ConfigChange, StopFailure, and InstructionsLoaded
913-
**Notification values**: permission_prompt, idle_prompt, auth_success, elicitation_dialog, elicitation_complete, elicitation_response, agent_needs_input, agent_completed
913+
**Notification values**: permission_prompt, idle_prompt, auth_success, elicitation_dialog, elicitation_url_dialog, elicitation_complete, elicitation_response, agent_needs_input, agent_completed
914914
**Fix**: Manual
915915
**Source**: code.claude.com/docs/en/hooks
916916

knowledge-base/rules.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description": "Machine-readable source of truth for all validation rules. When adding a new rule, add it here AND in VALIDATION-RULES.md. CI parity tests enforce sync.",
33
"version": "1.1.0",
44
"total_rules": 448,
5-
"last_updated": "2026-08-15",
5+
"last_updated": "2026-08-17",
66
"schema": {
77
"evidence": {
88
"source_type": "spec|vendor_docs|vendor_code|paper|community",
@@ -1978,7 +1978,7 @@
19781978
"source_urls": [
19791979
"https://code.claude.com/docs/en/hooks"
19801980
],
1981-
"verified_on": "2026-07-02",
1981+
"verified_on": "2026-08-17",
19821982
"applies_to": {
19831983
"tool": "claude-code",
19841984
"file_types": [

website/docs/rules/generated/cc-hk-025.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ keywords: ["CC-HK-025", "invalid matcher value", "claude hooks", "validation", "
1313
- **Category**: `Claude Hooks`
1414
- **Normative Level**: `SHOULD`
1515
- **Auto-Fix**: `Yes (unsafe)`
16-
- **Verified On**: `2026-07-02`
16+
- **Verified On**: `2026-08-17`
1717

1818
## Applicability
1919

0 commit comments

Comments
 (0)