vault/validate_vault_action: blast_radius field rejected as unknown #454

Closed
opened 2026-04-08 20:06:03 +00:00 by dev-bot · 1 comment
Collaborator

Flagged by AI reviewer in PR #453.

Problem

vault/vault-env.sh validate_vault_action (line 70-73) validates field names against an allowlist that does NOT include blast_radius:

id|formula|context|secrets|model|tools|timeout_minutes

If an operator adds blast_radius = "low" to a vault action TOML (as documented in vault/SCHEMA.md and supported by vault/classify.sh), the validator rejects it with "ERROR: Unknown fields in TOML: blast_radius". The feature is documented and implemented but cannot be exercised without triggering a validation error.

Fix

Add blast_radius to the allowed fields list in validate_vault_action in vault/vault-env.sh.


Auto-created from AI review

Affected files

  • vault/vault-env.sh (line 76 — id|formula|context|secrets|model|tools|timeout_minutes|dispatch_mode allowlist)

Acceptance criteria

  • blast_radius is added to the allowed fields list in validate_vault_action in vault/vault-env.sh
  • A vault action TOML containing blast_radius = "low" passes validate_vault_action without error
  • A vault action TOML containing an unrecognised field (e.g. bogus_field = "x") still fails validation
  • vault/validate.sh and existing tests continue to pass after the change
Flagged by AI reviewer in PR #453. ## Problem `vault/vault-env.sh` `validate_vault_action` (line 70-73) validates field names against an allowlist that does NOT include `blast_radius`: ``` id|formula|context|secrets|model|tools|timeout_minutes ``` If an operator adds `blast_radius = "low"` to a vault action TOML (as documented in `vault/SCHEMA.md` and supported by `vault/classify.sh`), the validator rejects it with "ERROR: Unknown fields in TOML: blast_radius". The feature is documented and implemented but cannot be exercised without triggering a validation error. ## Fix Add `blast_radius` to the allowed fields list in `validate_vault_action` in `vault/vault-env.sh`. --- *Auto-created from AI review* ## Affected files - `vault/vault-env.sh` (line 76 — `id|formula|context|secrets|model|tools|timeout_minutes|dispatch_mode` allowlist) ## Acceptance criteria - [ ] `blast_radius` is added to the allowed fields list in `validate_vault_action` in `vault/vault-env.sh` - [ ] A vault action TOML containing `blast_radius = "low"` passes `validate_vault_action` without error - [ ] A vault action TOML containing an unrecognised field (e.g. `bogus_field = "x"`) still fails validation - [ ] `vault/validate.sh` and existing tests continue to pass after the change
dev-bot added the
tech-debt
label 2026-04-08 20:06:03 +00:00
gardener-bot added the
backlog
label 2026-04-09 00:11:24 +00:00
dev-bot self-assigned this 2026-04-09 00:14:02 +00:00
dev-bot added
in-progress
and removed
backlog
labels 2026-04-09 00:14:03 +00:00
dev-qwen added
blocked
and removed
in-progress
labels 2026-04-09 00:14:31 +00:00
Collaborator

Stale in-progress issue detected

Field Value
Detection reason no_assignee_no_open_pr_no_lock
Timestamp 2026-04-09T00:14:31Z
Status: This issue was labeled in-progress but has no assignee, no open PR, and no agent lock file.
Action required: A maintainer should triage this issue.
### Stale in-progress issue detected | Field | Value | |---|---| | Detection reason | `no_assignee_no_open_pr_no_lock` | | Timestamp | `2026-04-09T00:14:31Z` | **Status:** This issue was labeled `in-progress` but has no assignee, no open PR, and no agent lock file. **Action required:** A maintainer should triage this issue.
dev-bot removed their assignment 2026-04-09 00:19:03 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#454
No description provided.