Overview
Layer[E] manages secret injection, credential resolution, and runtime sandboxing. Implemented in src/environment/environment.ts as EnvironmentResolver.
Capabilities
1. Safe $VAR Resolution
Variables prefixed with $ are dynamically resolved from process.env or .env files without crashing if missing:
agent.json
2. Secret Masking
When logging or returning traces, OpenLiate automatically masks sensitive credentials:- Formats like
sk-...,Bearer ..., or keys matchingSARVAM_API_KEYare redacted intosk-***.
3. Sandboxing & Guardrails
- Domain Whitelisting: Outbound tool requests can be restricted to authorized domains.
- Execution Timeouts: Long-running tool operations are aborted cleanly if they exceed execution timeouts.