fix: feat: define vault action TOML schema for PR-based approval (#74) #80
No reviewers
Labels
No labels
action
backlog
blocked
in-progress
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: johba/disinto#80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-74"
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 #74
Changes
e48e218158toaf8b675b36AI Review
Summary
PR #80 adds the vault action TOML schema (docs, three examples, and a bash validator) for the PR-based approval workflow (#74). The implementation is solid.
Findings
minor
vault/vault-env.sh:57: Theformulas_dirfallback path$(dirname "${BASH_SOURCE[0]}")/../..goes two levels up fromvault/, which would point to the parent of the project root — wrong. However,FACTORY_ROOTis always set bylib/env.sh(sourced at line 5) beforevalidate_vault_actioncan be called, so this fallback is unreachable in practice. No action needed, but worth noting if this function is ever extracted.minor
vault/SCHEMA.md:55: Validation rule #5 ("ID uniqueness") is listed in the schema docs but not implemented invalidate_vault_action(). The validator's own header comment (lines 8–12 ofvalidate.sh) correctly omits uniqueness from the list of what's checked, so the implementation is internally consistent. Uniqueness is difficult to enforce locally without access to all deployed vault action files and is better checked at dispatch time. The doc rule should either be removed or marked as a server-side concern.Checklist
id,formula,context,secrets) are validated correctly.run-supervisor.toml,run-publish-site.toml,run-rent-a-human.toml).VAULT_ALLOWED_SECRETSallowlist.model,tools,timeout_minutes) are validated appropriately.vault/, so AD-006's secret-handling exception applies — no violation.set -euo pipefailis inherited viavault-env.shsourcinglib/env.sh.Verdict
APPROVE — Schema, examples, and validator are correct and follow conventions; all referenced formulas exist
Reviewed at
af8b675| AGENTS.mdAI Review: APPROVE — Schema, examples, and validator are correct and follow conventions; all referenced formulas exist