healthcloud-cli 3.11.0__tar.gz → 3.11.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/PKG-INFO +8 -5
  2. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/README.md +7 -4
  3. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/errors.py +6 -1
  4. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/operations/operations.py +4 -2
  5. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/contracts/mcp-tools.manifest.json +466 -10
  6. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/pyproject.toml +1 -1
  7. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/.gitignore +0 -0
  8. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/hatch_build.py +0 -0
  9. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/__init__.py +0 -0
  10. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/admins/__init__.py +0 -0
  11. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/admins/commands.py +0 -0
  12. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/admins/group.py +0 -0
  13. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/admins/operations.py +0 -0
  14. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/__init__.py +0 -0
  15. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/actions/__init__.py +0 -0
  16. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/actions/commands.py +0 -0
  17. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/actions/group.py +0 -0
  18. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/actions/operations.py +0 -0
  19. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/actions/projections.py +0 -0
  20. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_files/__init__.py +0 -0
  21. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_files/commands.py +0 -0
  22. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_files/group.py +0 -0
  23. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_files/operations.py +0 -0
  24. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_files/projections.py +0 -0
  25. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_logs/__init__.py +0 -0
  26. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_logs/commands.py +0 -0
  27. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_logs/group.py +0 -0
  28. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_logs/operations.py +0 -0
  29. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agent_logs/projections.py +0 -0
  30. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agents/__init__.py +0 -0
  31. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agents/commands.py +0 -0
  32. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agents/group.py +0 -0
  33. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agents/operations.py +0 -0
  34. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/agents/projections.py +0 -0
  35. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/audit/__init__.py +0 -0
  36. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/audit/commands.py +0 -0
  37. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/audit/operations.py +0 -0
  38. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/audit/projections.py +0 -0
  39. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/auth.py +0 -0
  40. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/commands.py +0 -0
  41. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/compatibility.py +0 -0
  42. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/context.py +0 -0
  43. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/dashboard/__init__.py +0 -0
  44. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/dashboard/commands.py +0 -0
  45. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/dashboard/operations.py +0 -0
  46. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/dashboard/projections.py +0 -0
  47. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/data_sources/__init__.py +0 -0
  48. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/data_sources/commands.py +0 -0
  49. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/data_sources/group.py +0 -0
  50. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/data_sources/operations.py +0 -0
  51. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/data_sources/projections.py +0 -0
  52. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/departments/__init__.py +0 -0
  53. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/departments/commands.py +0 -0
  54. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/departments/group.py +0 -0
  55. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/departments/operations.py +0 -0
  56. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/departments/projections.py +0 -0
  57. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/domain_errors.py +0 -0
  58. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/endpoint.py +0 -0
  59. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/group.py +0 -0
  60. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/guardrails/__init__.py +0 -0
  61. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/guardrails/commands.py +0 -0
  62. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/guardrails/group.py +0 -0
  63. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/guardrails/operations.py +0 -0
  64. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/guardrails/projections.py +0 -0
  65. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/health_services/__init__.py +0 -0
  66. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/health_services/commands.py +0 -0
  67. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/health_services/group.py +0 -0
  68. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/health_services/operations.py +0 -0
  69. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/health_services/projections.py +0 -0
  70. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/operations/__init__.py +0 -0
  71. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/operations/commands.py +0 -0
  72. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/operations/group.py +0 -0
  73. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/operations/projections.py +0 -0
  74. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/organization/__init__.py +0 -0
  75. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/organization/commands.py +0 -0
  76. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/organization/group.py +0 -0
  77. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/organization/operations.py +0 -0
  78. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/organization/projections.py +0 -0
  79. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/output.py +0 -0
  80. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/paging.py +0 -0
  81. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/policies/__init__.py +0 -0
  82. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/policies/commands.py +0 -0
  83. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/policies/group.py +0 -0
  84. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/policies/operations.py +0 -0
  85. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/policies/projections.py +0 -0
  86. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/pretty.py +0 -0
  87. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/registry.py +0 -0
  88. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/results.py +0 -0
  89. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/runs/__init__.py +0 -0
  90. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/runs/commands.py +0 -0
  91. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/runs/group.py +0 -0
  92. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/runs/operations.py +0 -0
  93. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/runs/projections.py +0 -0
  94. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/__init__.py +0 -0
  95. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/commands.py +0 -0
  96. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/cron.py +0 -0
  97. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/group.py +0 -0
  98. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/operations.py +0 -0
  99. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/schedules/projections.py +0 -0
  100. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/session.py +0 -0
  101. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/sessions/__init__.py +0 -0
  102. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/sessions/commands.py +0 -0
  103. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/sessions/group.py +0 -0
  104. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/sessions/operations.py +0 -0
  105. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/sessions/projections.py +0 -0
  106. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/skills/__init__.py +0 -0
  107. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/skills/commands.py +0 -0
  108. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/skills/group.py +0 -0
  109. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/skills/operations.py +0 -0
  110. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/skills/projections.py +0 -0
  111. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/target.py +0 -0
  112. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/teams/__init__.py +0 -0
  113. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/teams/commands.py +0 -0
  114. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/teams/group.py +0 -0
  115. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/teams/operations.py +0 -0
  116. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/teams/projections.py +0 -0
  117. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tools/__init__.py +0 -0
  118. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tools/commands.py +0 -0
  119. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tools/group.py +0 -0
  120. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tools/operations.py +0 -0
  121. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tools/projections.py +0 -0
  122. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/tuning.py +0 -0
  123. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/ui.py +0 -0
  124. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/usage/__init__.py +0 -0
  125. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/usage/commands.py +0 -0
  126. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/usage/group.py +0 -0
  127. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/usage/operations.py +0 -0
  128. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/usage/projections.py +0 -0
  129. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/ams/windows_files.py +0 -0
  130. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/cli.py +0 -0
  131. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/context.py +0 -0
  132. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/contracts/__init__.py +0 -0
  133. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/main.py +0 -0
  134. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/manifest.py +0 -0
  135. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/output.py +0 -0
  136. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/params.py +0 -0
  137. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/tenants/__init__.py +0 -0
  138. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/tenants/commands.py +0 -0
  139. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/tenants/group.py +0 -0
  140. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/tenants/operations.py +0 -0
  141. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/healthcloud_cli/util.py +0 -0
  142. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/scripts/__init__.py +0 -0
  143. {healthcloud_cli-3.11.0 → healthcloud_cli-3.11.2}/scripts/bundle_manifest.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: healthcloud-cli
3
- Version: 3.11.0
3
+ Version: 3.11.2
4
4
  Summary: Command-line interface for the HealthCloud MCP gateway, generated from the shared MCP tool manifest.
5
5
  Project-URL: Issues, https://github.com/healthcloudservices/healthcloud-services/issues
6
6
  Project-URL: Repository, https://github.com/healthcloudservices/healthcloud-services
@@ -2416,8 +2416,9 @@ No audit row is written for the retry, and there is no idempotency key — the
2416
2416
  server's `status='dead_letter'` predicate **is** the idempotency, so a blind retry
2417
2417
  never duplicates work and a second attempt answers `404`.
2418
2418
 
2419
- What it refuses. A blank `--event-id`, a `.`/`..` segment or one containing `/` or
2420
- `\` — refused locally, before login and before any request, because the id
2419
+ What it refuses. A blank `--event-id`, one with leading/trailing whitespace, a
2420
+ `.`/`..` segment or one containing `/` or `\` — refused locally in both preview
2421
+ and confirmed runs, before login and before any request, because the id
2421
2422
  becomes the route's path segment and the server validates nothing at all. A
2422
2423
  missing `--event-id` is a usage error. A missing saved session is refused before
2423
2424
  any request. An installed SDK without the retry method, or whose `retry`
@@ -2597,8 +2598,10 @@ same message is exactly one stderr line, `error: <message> (<category>)`:
2597
2598
  `Not logged in; run \`hc login --environment <env> --tenant-id <tenant>\`.`
2598
2599
  - A `get` whose requested ID does not exist (HTTP 404): category `not_found`
2599
2600
  naming the ID, e.g. `Skill 'nosuch' was not found.` (a 404 on `list` stays
2600
- `validation`; departments keeps its legacy contract for all read statuses,
2601
- while department write 404s are `not_found` refusals naming the ID).
2601
+ `validation` for most domains; a department `get` 404 is `not_found` naming
2602
+ the requested department ID, while a department `list` 404 keeps its legacy
2603
+ `transport` classification. Department write 404s are `not_found` refusals
2604
+ naming the ID).
2602
2605
  - HTTP 401/403 map to `authentication`/`authorization`; 409 to `conflict`;
2603
2606
  network failures to `transport`; local output failures to `local_io`.
2604
2607
  - Any unexpected internal error is category `internal` with a generic message;
@@ -2398,8 +2398,9 @@ No audit row is written for the retry, and there is no idempotency key — the
2398
2398
  server's `status='dead_letter'` predicate **is** the idempotency, so a blind retry
2399
2399
  never duplicates work and a second attempt answers `404`.
2400
2400
 
2401
- What it refuses. A blank `--event-id`, a `.`/`..` segment or one containing `/` or
2402
- `\` — refused locally, before login and before any request, because the id
2401
+ What it refuses. A blank `--event-id`, one with leading/trailing whitespace, a
2402
+ `.`/`..` segment or one containing `/` or `\` — refused locally in both preview
2403
+ and confirmed runs, before login and before any request, because the id
2403
2404
  becomes the route's path segment and the server validates nothing at all. A
2404
2405
  missing `--event-id` is a usage error. A missing saved session is refused before
2405
2406
  any request. An installed SDK without the retry method, or whose `retry`
@@ -2579,8 +2580,10 @@ same message is exactly one stderr line, `error: <message> (<category>)`:
2579
2580
  `Not logged in; run \`hc login --environment <env> --tenant-id <tenant>\`.`
2580
2581
  - A `get` whose requested ID does not exist (HTTP 404): category `not_found`
2581
2582
  naming the ID, e.g. `Skill 'nosuch' was not found.` (a 404 on `list` stays
2582
- `validation`; departments keeps its legacy contract for all read statuses,
2583
- while department write 404s are `not_found` refusals naming the ID).
2583
+ `validation` for most domains; a department `get` 404 is `not_found` naming
2584
+ the requested department ID, while a department `list` 404 keeps its legacy
2585
+ `transport` classification. Department write 404s are `not_found` refusals
2586
+ naming the ID).
2584
2587
  - HTTP 401/403 map to `authentication`/`authorization`; 409 to `conflict`;
2585
2588
  network failures to `transport`; local output failures to `local_io`.
2586
2589
  - Any unexpected internal error is category `internal` with a generic message;
@@ -28,6 +28,7 @@ _MESSAGE_TEMPLATES = {
28
28
  }
29
29
 
30
30
  _RESOURCE_ID_KEYS = {
31
+ "departments": "department_id",
31
32
  "data-sources": "data_source_id",
32
33
  "guardrails": "guardrail_id",
33
34
  "health-services": "service_id",
@@ -120,6 +121,10 @@ _AMS_READ_DOMAINS = {
120
121
 
121
122
  def http_category(operation: str, status: object) -> str:
122
123
  """The bounded category for one HTTP status (writes reuse the same mapping)."""
124
+ # A department record read names an ID; collection-route failures retain
125
+ # the legacy transport classification rather than naming a missing record.
126
+ if operation == "departments.get" and status == 404:
127
+ return "not_found"
123
128
  shared_categories = {
124
129
  401: "authentication",
125
130
  403: "authorization",
@@ -138,7 +143,7 @@ def http_category(operation: str, status: object) -> str:
138
143
  # export: a 404 from the export request itself is converted to an ``unsupported``
139
144
  # refusal in ``export_agent`` before it reaches this mapping, because by then the
140
145
  # agent is known to exist.
141
- # Departments keeps its legacy transport contract for every read status.
146
+ # Other department read failures keep their legacy transport contract.
142
147
  # ``logs.list`` is a record read in the only sense that matters here: the
143
148
  # route names one agent and 404s when that agent is unknown or belongs to
144
149
  # another tenant. Reporting it as ``validation`` would hide the reason.
@@ -144,12 +144,14 @@ def validate_event_id(value: object, refusal: type[DomainReadRefused] = OutboxWr
144
144
  """The event id becomes a path segment, so it is refused locally when unusable.
145
145
 
146
146
  The server's route takes a plain ``str`` path parameter and validates nothing,
147
- so the CLI is the only refusal point for a blank id, a dot segment or a value
148
- that would change the path. No request is made for any of them.
147
+ so the CLI is the only refusal point for a blank or whitespace-padded id, a dot
148
+ segment or a value that would change the path. No request is made for any of them.
149
149
  """
150
150
 
151
151
  if not isinstance(value, str) or not value.strip():
152
152
  raise refusal("validation", "--event-id must be a nonblank string; nothing was sent.")
153
+ if value != value.strip():
154
+ raise refusal("validation", "--event-id must not have leading/trailing whitespace; nothing was sent.")
153
155
  if value in {".", ".."}:
154
156
  raise refusal("validation", "--event-id must not be a dot segment; nothing was sent.")
155
157
  if "/" in value or "\\" in value: