Skip to content
Merged
6 changes: 5 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ When tasks process templates (system prompts, HTTP call bodies, property instruc
| `context` | `Map<String, Object>` | Input context variables set per turn | `{{context.language}}` |
| `properties` | `Map<String, Object>` | Conversation properties — raw values from `ConversationProperties.toMap()` | `{properties.preferred_language}` |
| `memory` | `Map` with `current`, `last`, `past` | Conversation step data from the pipeline | `{memory.current.output}`, `{memory.last.input}` |
| `snippets` | `Map<String, Object>` | Prompt Snippets — auto-injected from `PromptSnippetService` | `{{snippets.cautious_mode}}` |
| `vars` | `Map<String, Object>` | Global Variables — deployment-wide config from `GlobalVariableResolver` | `{{vars.default-model}}` |
| `userInfo` | `Map` with `userId` | Authenticated user identity | `{{userInfo.userId}}` |
| `conversationInfo` | `Map` with `conversationId`, `agentId`, etc. | Conversation metadata | `{{conversationInfo.agentId}}` |
| `conversationLog` | `String` | Formatted conversation history | `{{conversationLog}}` |
Expand Down Expand Up @@ -635,6 +637,8 @@ This is because `ConversationProperties.put()` stores `property.getValueString()
| `{memory.current.output}` | Output text for current step | |
| `{memory.last.input}` | Previous step's input | |
| `{context.key}` | Context variable set by client | `{context.language}` |
| `{snippets.name}` | Prompt snippet content | `{snippets.cautious_mode}` |
| `{vars.key}` | Global variable value | `{vars.default-model}` |
| `{userInfo.userId}` | Authenticated user ID | |
| `{conversationInfo.agentId}` | Current agent ID | |
| `{conversationInfo.conversationId}` | Current conversation ID | |
Expand Down Expand Up @@ -740,7 +744,7 @@ Matcher: "actions" : "ask_for_model"
| `step` | Cleared at end of turn |
| `conversation` | Lives for the session (default for most agent-building properties) |
| `longTerm` | Persisted to `usermemories` collection across conversations |
| `secret` | Auto-vaulted: plaintext stored in SecretsVault, raw input scrubbed from memory, vault reference (`${eddivault:...}`) stored as property value |
| `secret` | Auto-vaulted: plaintext stored in SecretsVault, raw input scrubbed from memory, vault reference (`${vault:...}`) stored as property value |

> **Warning**: `scope: "secret"` requires the vault to be active (`EDDI_VAULT_MASTER_KEY` env var set). If vault is disabled (common in dev mode), `autoVaultSecret()` fails and falls back to storing plaintext — but logs an ERROR that may confuse users. For wizard-style agents that collect API keys and pass them to an endpoint (like the Agent Father), prefer `scope: "conversation"` and delegate vaulting to the receiving service.

Expand Down
1 change: 1 addition & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

- [Security](security.md)
- [Secrets Vault](secrets-vault.md)
- [Global Variables](global-variables.md)
- [Audit Ledger](audit-ledger.md)
- [GDPR / CCPA Compliance](gdpr-compliance.md)
- [HIPAA Compliance](hipaa-compliance.md)
Expand Down
6 changes: 3 additions & 3 deletions docs/a2a-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Configure remote A2A agents in your LLM task configuration. They are discovered
{
"url": "https://remote-eddi.example.com/a2a/agents/support-agent",
"name": "support-agent",
"apiKey": "${eddivault:remote-agent-key}",
"apiKey": "${vault:remote-agent-key}",
"timeoutMs": 30000,
"skillsFilter": ["order-tracking"]
}
Expand All @@ -96,11 +96,11 @@ Configure remote A2A agents in your LLM task configuration. They are discovered
|---|---|---|---|
| `url` | string | *required* | Base URL of the remote A2A agent |
| `name` | string | from Agent Card | Display name (used in tool naming) |
| `apiKey` | string | — | **Must be a vault reference** (`${eddivault:...}`) to prevent secret leakage |
| `apiKey` | string | — | **Must be a vault reference** (`${vault:...}`) to prevent secret leakage |
| `timeoutMs` | long | `30000` | Timeout for A2A operations |
| `skillsFilter` | string[] | all skills | Only expose specific skills (by id or name) |

> **⚠️ Security:** Always use vault references (`${eddivault:my-key}`) for API keys. Raw keys trigger a runtime warning and risk leakage in configuration exports. See [Secrets Vault](secrets-vault.md).
> **⚠️ Security:** Always use vault references (`${vault:my-key}`) for API keys. Raw keys trigger a runtime warning and risk leakage in configuration exports. See [Secrets Vault](secrets-vault.md).

### How It Works

Expand Down
2 changes: 1 addition & 1 deletion docs/audit-ledger.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ All string values in audit entries pass through the `SecretRedactionFilter` befo
- Anthropic API keys (`sk-ant-...`)
- Bearer tokens (JWTs and opaque tokens)
- Generic API key patterns (`apikey=...`, `token=...`, etc.)
- Vault references (`${eddivault:...}`)
- Vault references (`${vault:...}`)

Redaction is applied recursively to nested maps and lists.

Expand Down
Loading
Loading