fix(boot): make hook readiness check use openclaw hooks output

This commit is contained in:
zap
2026-03-05 21:32:36 +00:00
parent ad385d6462
commit bf6581f242

16
BOOT.md
View File

@@ -19,12 +19,16 @@ On gateway startup, run a silent security + readiness check for this workspace.
## Security checks
4. Check internal hooks enabled state:
- `session-memory`
- `command-logger`
- `bootstrap-extra-files`
- `boot-md`
- if any are disabled/missing, record warning with exact hook name
4. Check internal hooks enabled state (authoritative source: `openclaw hooks`):
- required hooks:
- `session-memory`
- `command-logger`
- `bootstrap-extra-files`
- `boot-md`
- `model-skill-injector`
- run `openclaw hooks` and treat `✓ ready` as installed+enabled
- if CLI/table parsing is ambiguous, mark `unknown` (do NOT report missing)
- only report warning when a required hook is clearly disabled/missing, with exact hook name
5. Check permissions:
- `~/.openclaw` should be `700`
- credential files under `~/.openclaw/credentials/` should be `600`