PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
Hook tests run from the repository root with python3 -m unittest discover -s .agent-hooks -p '*_test.py'.
1. Gate script and prompts
- 1.1 Replace
.agent-hooks/review_gate.pywith the sibling project's gate script, translated to English, with the communication skill path, the code directoriesbackend/,agent/,frontend/src/,website/for the naming gate, the models and effort from design.md, and the implementation review checks built from the changed paths. Verify withpython3 -m py_compile .agent-hooks/review_gate.py. - 1.2 Add
common-prompt.mdwith the path-to-doc table from.claude/agents/reviewer.md, andplan-prompt.md,necessity-prompt.md,architecture-prompt.md,diff-prompt.md,naming-prompt.md,proposal-prompt.md,implementation-prompt.md, each citing this repository's docs. Addproposal-result.schema.jsonandimplementation-result.schema.json. Deletereview-prompt.md. Verify withgrep -rn "docs/architecture.md\|glossary\|just \|review-prompt" .agent-hooksreturning nothing. - 1.3 Port
review_gate_test.py, withmake,pnpm,npmandgolangci-lintstubs instead ofjust, plus tests that a backend change runs only the backend linter, a website change runs lint and build, a failing linter blocks the turn with the end of its output, an.agent-hookschange runs the hook tests, and anagent/code change starts the naming gate. Verify with the hook test command.
2. Hook wiring
- 2.1 Rewrite
.claude/settings.jsonand.codex/hooks.jsonwith every gate, the sibling project's hook timeouts and the worktree-safe script path. Verify withpython3 -m json.toolon both files and withecho '{"hook_event_name":"Stop","session_id":"manual-check","cwd":"'$PWD'"}' | python3 .agent-hooks/review_gate.py naming --client claudeprinting{}.
3. Agent instructions
- 3.1 Delete
.claude/agents/reviewer.md. - 3.2 In the root
AGENTS.md, replace "Mandatory compliance review" with "Review hooks", add the sections "OpenSpec", "Discussing a task in explore", "The best code is unwritten", "Documentation consistency", "Refactoring within a feature" and "Other agents' changes in the working tree", and remove the inventories, port numbers, command internals and the list of security scanners. Verify withgrep -n "reviewer subagent\|reviewer.md\|Opus\|4005\|CodeQL" AGENTS.mdreturning nothing. - 3.3 Replace the reviewer subagent references in
openspec/config.yamlwith the review hooks and add the architecture grounding rule for design. Verify withgrep -n "reviewer" openspec/config.yamlreturning nothing andopenspec validate port-review-gates --strictpassing.