The tracked-item delete path in quick() called shutil.rmtree() on any tracked directory without consulting the protection list, which only the empty-dir sweep used. guess_category() files every path under cache/ as "temp", so a terminal command that merely mentioned $HERMES_HOME/cache tracked the directory itself, and 7 days later quick() removed cache/ wholesale — taking cache/terminal (terminal snapshots) with it and breaking every later command with a mktemp "No such file or directory". Fix: _is_protected_dir() — a tracked DIRECTORY that is HERMES_HOME itself or sits under an _EMPTY_DIR_PROTECTED_TOP_LEVEL tree is never tracked by guess_category(), never listed by dry_run(), and skipped (logged SKIPPED, entry dropped) by quick(). Files under cache/ still age out as before. kanban/ (task attachments and workspaces have their own lifecycle) is added to both _NEVER_TRACK_TOP_LEVEL and _EMPTY_DIR_PROTECTED_TOP_LEVEL; stale pre-fix "test" entries under it are dropped by the existing re-validation instead of deleted. The kanban row was first proposed in #80842 (@nicha16). Fixes #114552
Website
This website is built using Docusaurus, a modern static website generator.
Installation
yarn
Local Development
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
Using SSH:
USE_SSH=true yarn deploy
Not using SSH:
GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
Diagram Linting
CI runs ascii-guard to lint docs for ASCII box diagrams. Use Mermaid (````mermaid`) or plain lists/tables instead of ASCII boxes to avoid CI failures.