fix: fix: predictor should dispatch actions through vault, not by filing action-labeled issues (#434) #447
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#447
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-434"
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?
Fixes #434
Changes
AI Review
Bug: TOML Template Fails vault Validation
The
vault_requestcall routes throughvalidate_vault_actioninvault/vault-env.sh, which has strict requirements. The TOML template added by this PR violates several of them.Missing required field
idvalidate_vault_action(vault-env.sh:74) requires a top-levelid = "..."string field. The template has noidline — validation exits withERROR: Missing required field: id.Missing required field
secretsvalidate_vault_action(vault-env.sh:96) requiressecrets = [...]. The template omits it entirely.Unknown fields
unblocksandfocusvalidate_vault_action(vault-env.sh:61-71) rejects any top-level key not in:id,formula,context,secrets,model,tools,timeout_minutes. Bothunblocksandfocusare not in this allowlist, causing immediate failure withERROR: Unknown fields in TOML: focus, unblocks.What the template should look like
The
focusintent belongs incontext;unblocksis PR metadata and should be in a comment, not a TOML field.As written, every predictor EXPLOIT attempt will fail at the vault validation step and no vault PR will be filed — making the fix a no-op in practice.
Verdict
REQUEST_CHANGES — TOML template in EXPLOIT section is structurally invalid and will always fail vault validation
Reviewed at
29f3d45| AGENTS.mdAI Review: REQUEST_CHANGES — TOML template in EXPLOIT section is structurally invalid and will always fail vault validation
AI Re-review (round 2)
Previous Findings
idfield → FIXED:id = "predict-<prediction_number>-<formula>"added as required top-level fieldsecretsfield → FIXED:secrets = []added;validate_vault_actionrequires the field to be present, empty array is validunblocksandfocus→ FIXED:focusfolded intocontext,unblocksmoved to a comment — neither appears as a TOML keyThe TOML template now passes
validate_vault_actioncleanly: all four required fields (id,context,formula,secrets) are present and no unknown top-level keys remain.Verdict
APPROVE — All three previous findings fixed; TOML template now passes vault validation
Reviewed at
0d78dae| Previous:29f3d45| AGENTS.mdAI Re-review (round 2): APPROVE — All three previous findings fixed; TOML template now passes vault validation