fix(boot): make hook readiness check use openclaw hooks output
This commit is contained in:
8
BOOT.md
8
BOOT.md
@@ -19,12 +19,16 @@ On gateway startup, run a silent security + readiness check for this workspace.
|
|||||||
|
|
||||||
## Security checks
|
## Security checks
|
||||||
|
|
||||||
4. Check internal hooks enabled state:
|
4. Check internal hooks enabled state (authoritative source: `openclaw hooks`):
|
||||||
|
- required hooks:
|
||||||
- `session-memory`
|
- `session-memory`
|
||||||
- `command-logger`
|
- `command-logger`
|
||||||
- `bootstrap-extra-files`
|
- `bootstrap-extra-files`
|
||||||
- `boot-md`
|
- `boot-md`
|
||||||
- if any are disabled/missing, record warning with exact hook name
|
- `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:
|
5. Check permissions:
|
||||||
- `~/.openclaw` should be `700`
|
- `~/.openclaw` should be `700`
|
||||||
- credential files under `~/.openclaw/credentials/` should be `600`
|
- credential files under `~/.openclaw/credentials/` should be `600`
|
||||||
|
|||||||
Reference in New Issue
Block a user