Fixes
- A config that doesn't load is no longer silent. When the config on disk stops loading (a syntax error, an unreadable file, or a deleted one), the gateway keeps serving the last good config. Dropping every tool on a typo would punish you. But that also means a revocation in a broken hand edit hasn't taken effect. Now
toolhost status, toolhost doctor and bare toolhost say config invalid since <time>: <error>; still running the previous config, and doctor exits 1 until the config loads again.
- Tools that don't resolve are no longer silent. When two servers claim one tool name, the gateway serves no tools from any server until the clash is gone, as in v0.0.4. Now
status, doctor and bare toolhost say could not resolve the tools since <time>: <error>; serving no tools from any server until they resolve, and doctor exits 1 while it lasts.
- Both reports cover every gateway on the config, stdio ones included, and they work even when the config no longer parses.
- Deleting the config used to go unnoticed by a running gateway. It now counts as a config that doesn't load.
- Bare
toolhost with a broken config used to print nothing and exit 0. It now reports the error and exits 1.
- For a config that exists but doesn't parse,
doctor now says to correct the file. It used to suggest toolhost init, which refuses to overwrite it.
Changes you might notice
GET /status and toolhost status --json carry config_error and resolve_error, each {since, error}, while they last.
- While a gateway isn't serving what its config says, it keeps a note at
degraded/<pid>.json in the environment's state folder, ~/.toolhost/degraded/ for the global one. The note goes when the fault does, or when the gateway stops.
Release pipeline
- The verify step now names the repository when it downloads the draft release. In v0.0.4 the step failed, and the release was verified and published by hand.
Verify the download
cosign verify-blob --bundle checksums.txt.sigstore.json \
--certificate-identity-regexp 'https://github.com/gettoolhost/toolhost-local/.github/workflows/release.yml@.*' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
checksums.txt
sha256sum -c checksums.txt --ignore-missing
gh attestation verify toolhost_darwin_arm64.tar.gz -R gettoolhost/toolhost-local