openclaw/docs/gateway
Josh Palmer 7a6c40872d
Agents: add system prompt safety guardrails (#5445)
* 🤖 agents: add system prompt safety guardrails

What:
- add safety guardrails to system prompt
- update system prompt docs
- update prompt tests

Why:
- discourage power-seeking or self-modification behavior
- clarify safety/oversight priority when conflicts arise

Tests:
- pnpm lint (pass)
- pnpm build (fails: DefaultResourceLoader missing in pi-coding-agent)
- pnpm test (not run; build failed)

* 🤖 agents: tighten safety wording for prompt guardrails

What:
- scope safety wording to system prompts/safety/tool policy changes
- document Safety inclusion in minimal prompt mode
- update safety prompt tests

Why:
- avoid blocking normal code changes or PR workflows
- keep prompt mode docs consistent with implementation

Tests:
- pnpm lint (pass)
- pnpm build (fails: DefaultResourceLoader missing in pi-coding-agent)
- pnpm test (not run; build failed)

* 🤖 docs: note safety guardrails are soft

What:
- document system prompt safety guardrails as advisory
- add security note on prompt guardrails vs hard controls

Why:
- clarify threat model and operator expectations
- avoid implying prompt text is an enforcement layer

Tests:
- pnpm lint (pass)
- pnpm build (fails: DefaultResourceLoader missing in pi-coding-agent)
- pnpm test (not run; build failed)
2026-01-31 15:50:15 +01:00
..
security Agents: add system prompt safety guardrails (#5445) 2026-01-31 15:50:15 +01:00
authentication.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
background-process.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
bonjour.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
bridge-protocol.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
cli-backends.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
configuration-examples.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
configuration.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
discovery.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
doctor.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
gateway-lock.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
health.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
heartbeat.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
index.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
local-models.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
logging.md refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
multiple-gateways.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
openai-http-api.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
openresponses-http-api.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
pairing.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
protocol.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
remote-gateway-readme.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
remote.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
sandbox-vs-tool-policy-vs-elevated.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
sandboxing.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
tailscale.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
tools-invoke-http-api.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
troubleshooting.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00