de07bd5fab
A held port made 'hermes serve' print only uvicorn's bare 'ERROR: [Errno 98/10048] error while attempting to bind on address' and exit 1 — indistinguishable from a broken backend for the desktop spawn and wrapping scripts. - Preflight bind probe (matching uvicorn's SO_REUSEADDR bind flags) before uvicorn.Server; on conflict print machine-readable 'BACKEND_PORT_IN_USE port=<port>' + a human hint naming likely holders, exit 75 (EX_TEMPFAIL — existing repo convention, see gateway/restart.py, kanban_db.py). - Probe-to-bind race covered: SystemExit(1) from uvicorn's own bind failure is re-checked and translated on both POSIX and Windows runner paths. - --port 0 (ephemeral) short-circuits the probe: unchanged behavior. - HERMES_BACKEND_READY contract untouched. - Tests: real held-socket repro (sentinel + exit 75, sabotage-proven to fail as bare exit 1 without the fix), free-port boot regression, ephemeral-port regression, probe/classification units. - Docs: port-conflict paragraph under 'hermes serve' in reference/cli-commands.md.
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.