feat: lib/vault.sh — helper for agents to create vault PRs on ops repo #75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Context
Any agent can request a vault action by creating a PR on the ops repo. This issue adds a shared library function that agents call to do that.
What to do
Create
lib/vault.shwith a function like:The function should:
vault/<action-id>vault/actions/<action-id>.tomlon that branchmainwith titlevault: <action-id>and body extracted from the TOML context fieldUse the Forgejo API (not git push) so it works from inside containers without SSH.
Considerations
lib/AGENTS.mddocumentationVerification
lib/vault.shand callvault_requestwith a test TOML — PR appears on ops repoDependencies
Depends on #74 (TOML schema + validator).