Memory operations
This client mirrors and verifies upstream-compatible behavior. Upstream runtimes remain the canonical protocol owners.
The memory folder holds a single manifest-aware helper that maps a harness-native agent/team name onto its canonical MemoryScope. The MemoryScope shape and the MemoryStore contract (remember/recall) are core (core/memory); this helper lives in the extension layer because the mapping depends on the CAVI TeamManifest. It resolves names — it does not read or write memory — so it extends the core contract rather than duplicating it.
Source: extensions/cavi/memory/.
Operation
resolveMemoryScope
Request body / Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| manifest | TeamManifest | required | Source of truth for teams and members. |
| name | string | required | Harness-native agent or team name. |
Response
| Field | Type | Description |
|---|---|---|
| domain | string | Resolved team id (present on any match). |
| member | string | Member id (present only on a member match). |
Example
const scope = resolveMemoryScope(manifest, "sigmund");
// { domain: "research", member: "sigmund" } | { domain: "research" } | undefined
if (scope) {
await memoryStore.recall({ query: "release notes", scope });
}