Skip to content

Deployment and Safety

Before releasing an agent engineering project, answer two questions: can it work reliably, and can it fail under control?

Pre-release checks

  • Build passes.
  • Link audit passes.
  • Example project tests pass.
  • Permission boundaries are documented.
  • Secrets do not enter the repository or model context.
  • Failure paths have understandable errors.
  • Rollback path is clear.

Permission model

PermissionRiskRecommendation
Read filesSensitive content exposureLimit directories and filter secrets
Write filesUser work can be damagedShow diff first and preserve rollback
Run commandsArbitrary side effectsSandbox, allowlist, least privilege
Network accessData exfiltrationUse only required domains
DeployReal users affectedPreview branches, confirmation, rollback

Observability and rollback

Keep:

  • Build logs.
  • Key route smoke checks.
  • A path for users to report issues.
  • A rollback path to the last known-good version.

Practice

Write a safety note for an MCP tool that writes files:

  1. Which directories can it write?
  2. How does it show a diff first?
  3. How does rollback work?
  4. How does the Harness verify permission denial?

Next: return to the Learning Map or open Examples.

基于 MIT 许可发布