PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
1. Toolchain
- 1.1 Add
mise.tomlwith the versions listed in design.md, pinning just, lefthook and process-compose to their latest release exactly. If mise is not installed on the host, stop and ask the user to install it. Verify thatmise installsucceeds and thatmise exec -- goose --version,mise exec -- swag --versionandmise exec -- golangci-lint versionprint the pinned versions.
2. Module Justfiles
- 2.1 Add
backend/Justfilewith a check-onlylint(golangci-lint fmt --diffandgolangci-lint run), a writingformat, andpull-testcontainersandclean-testcontainers, carrying over the image pattern and retry loop frombackend/Makefile. Keepbackend/Makefileuntil task 3.5. Verify thatjust --justfile backend/Justfile lintpasses and leavesgit status --short backendunchanged, thatjust --justfile backend/Justfile pull-testcontainersexits 0, and thatgrep -n 'FAILED to pull' backend/Justfileshows the message next to anexit 1. - 2.2 Add
agent/verification/Justfilewithrun,build,test, a check-onlylint, a writingformat,e2eande2e-clean, loading.envthe way the Makefile did, then deleteagent/verification/Makefile. Verify thatjust lint,just buildandjust testpass inagent/verificationand thatjust lintleavesgit status --short agentunchanged.
3. Root recipes and scripts
- 3.1 Add a shared helper under
scripts/that creates the libedit shim and prepends it toLD_LIBRARY_PATH, failing with the install hint whenlibedit.so.0is missing. Verify withbash -non the helper and by sourcing it and checking thatlddon a bundledassets/tools/x64client resolveslibedit.so.2. - 3.2 Add
scripts/test.shand the roottestandpull-testcontainersrecipes as design.md describes, with theEXIT/INT/TERMtrap that kills remaining children and removes containers labelledorg.testcontainers. Verify withbash -n scripts/test.shandjust --dry-run test, and by searching the script:grep -n 'trap' scripts/test.shshowsEXIT,INTandTERM,grep -n 'label=org.testcontainers' scripts/test.shmatches inside the cleanup function, andgrep -nE 'docker compose (down|stop)' scripts/test.shprints nothing. - 3.3 Add
scripts/dev.sh,process-compose.yamland the rootrunrecipe as design.md describes, moving the stale-port logic frombackend/Makefileand stopping onlybackend-dbon exit. Verify withbash -n scripts/dev.sh,just --dry-run runand a process-compose dry run ofprocess-compose.yamlthat reports no config error. Then search the script:docker compose stop backend-dbsits in the exit trap,swag initandpnpm --dir frontend install --frozen-lockfilecome before theprocess-composeline, andgrep -n 'docker compose down' scripts/dev.shprints nothing. - 3.4 Add the root
test-filesystemrecipe with the same image andCASEhandling as the rootMakefile, then delete the rootMakefile. Verify withjust --dry-run test-filesystemandCASE=bind-root just --dry-run test-filesystem. - 3.5 Delete
backend/Makefilenow that the shim, the suite steps and the stale-port logic have moved. Verify thatls Makefile backend/Makefile agent/verification/Makefilefails for all three paths and thatgrep -rn 'libedit.so.2\|/proc/net/tcp' scriptsfinds the carried-over logic.
4. Frontend formatter and linter
- 4.1 Add oxfmt with
frontend/oxfmt.config.tsas design.md describes, set theformatandformat:checkscripts, and remove Prettier, its plugins andfrontend/.prettierrc.js. Verify thatpnpm installsucceeds andpnpm format:checkruns and lists files rather than failing on configuration. - 4.2 Reformat the whole frontend with
pnpm format, changing nothing else in this task. Verify thatpnpm format:check,pnpm testandpnpm buildpass. - 4.3 Add oxlint and load
eslint-plugin-i18nextwith the patchedno-literal-stringwrapper throughjsPlugins. Verify that oxlint reports a temporary file underfrontend/srcholding a hardcoded label, then delete that file. If the plugin cannot run under oxlint, stop and ask the user before going further. - 4.4 Complete
frontend/oxlint.config.tswith the React and TypeScript rules, set thelintscript to oxlint, remove ESLint, its plugins andfrontend/eslint.config.js, and fix or reasonably suppress the new findings. Verify thatpnpm lint,pnpm testandpnpm buildpass. - 4.5 Add the
typecheckscript runningtsc -b. Verify thatpnpm typecheckpasses.
5. Root lint and format
- 5.1 Add the root
lintandformatrecipes that delegate to the backend, the verification agent and the frontend, with frontend lint runningformat:check,lintandtypecheck. Verify thatjust formatfollowed byjust lintpasses at the root. Then add a temporary file underfrontend/srcwith a hardcoded label, check that rootjust lintexits non-zero and names that file, and delete the file.
6. Commit hook
- 6.1 Add
lefthook.ymlas design.md describes, delete.pre-commit-config.yaml, and replace the pre-commit entry in.dockerignorewith the new tooling files. Verify thatmise exec -- lefthook validatepasses. Then stage a temporary unformatted file underfrontend/src, runmise exec -- lefthook run pre-commit, and confirm thatgit show :<path>prints the formatted content and that the output lists the backend and agent jobs as skipped. Unstage and delete the file afterwards.
7. Dev Container removal
- 7.1 Delete
.devcontainer/and reword the Dev Container comment in.gitattributes. Verify thatgit grep -n -i devcontainer -- ':!openspec/changes/archive'matches only this change's artifacts.
8. CI
- 8.1 Update the frontend lint, backend test, filesystem and verification agent e2e jobs in
.github/workflows/ci-release.ymlas design.md describes, pinningjdx/mise-actionby commit SHA. Reword the two comments in the backend test job that name the Makefile'stesttarget: the Ryuk comment and the timeout comment. Verify that the workflow parses withpython3 -c 'import yaml,sys; yaml.safe_load(open(sys.argv[1]))' .github/workflows/ci-release.ymland thatgit grep -n -E 'make |prettier|Makefile' .github/workflowsprints nothing.
9. Documentation and agent configuration
- 9.1 Rewrite the development environment section of the root
AGENTS.mdfor a Fedora host with mise. Add a command table with the purpose ofjust run,just test,just test-filesystem,just pull-testcontainers,just lint,just format, the goose create, up and down commands andswag init, without describing their internal steps. Update the linting section. Verify thatgit grep -n -E 'make (test|lint|run|e2e|swagger|migration)|test-fedora|Dev Container' AGENTS.mdprints nothing. - 9.2 Replace the
makereferences inbackend/AGENTS.md,agent/verification/AGENTS.md,backend/README.mdandassets/tools/README.md. Verify thatgit grep -n -E '\bmake (test|lint|run|e2e|swagger|migration)|test-fedora|run-fedora' -- ':!openspec/changes/archive' ':!openspec/changes/migrate-dev-tooling-to-just'prints nothing. - 9.3 Update
openspec/config.yamlso its context names a Fedora host with mise andjust, and its task rules namejust lint,just buildandjust testinagent/verification, and excludejust testandjust test-filesystemat the root instead of themaketargets. Verify thatopenspec validate migrate-dev-tooling-to-just --strictpasses andgrep -n make openspec/config.yamlprints nothing. - 9.4 Replace
makewithjustin the comments of.agent-hooks/review_gate.pyand in the stubs and assertions of.agent-hooks/review_gate_test.py. Verify thatpython3 -m unittest discover -s .agent-hooks -p '*_test.py'passes.