agent-memory
Use when implementing or consuming scoped PKG recall, approval-gated remember and communication-rule imports in @jeswr/agent-memory.
- License 许可
- MIT
- 所属仓库
- jeswr/solid-sdk
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- agent-memory
- description
- Use when implementing or consuming scoped PKG recall, approval-gated remember and communication-rule imports in @jeswr/agent-memory.
02 资源文件 18
- 参考文档package.json1.3 KB
- 参考文档README.md6.3 KB
- 脚本src/index.ts137 B
- 脚本src/memory.ts16.1 KB
- 脚本src/rules.ts1.5 KB
- 脚本src/testing.ts462 B
- 脚本src/types.ts3.6 KB
- 脚本test/css-process.mjs2.0 KB
- 脚本test/css.test.ts4.1 KB
- 脚本test/exports.test.ts1.7 KB
- 脚本test/helpers.ts3.8 KB
- 脚本test/import.test.ts5.9 KB
- 脚本test/parity.test.ts2.3 KB
- 脚本test/recall.test.ts10.9 KB
- 脚本test/remember.test.ts10.3 KB
- 参考文档tsconfig.json212 B
- 参考文档tsconfig.test.json201 B
- 脚本vitest.config.ts190 B
03 SKILL.md 正文
<!-- AUTHORED-BY Codex GPT-6.1-Sol -->
@jeswr/agent-memory
Read README.md and agent DESIGN §7 before changing behavior. Reuse @jeswr/pkg-memory for the existing Python-compatible builder; do not fork its UUIDv5 or graph logic. The root exports createAgentMemory, DEFAULT_MEMORY_SCOPE and types. ./testing exports the explicit createMemoryApprovalQueue fake.
The host supplies an authenticated Solid StorageClient, existing owner-private memory/pending containers, a verified/revocation-checked MemoryMandate loader, an authoritative approval-key resolver, a durable idempotent approval queue and the canonical KG SHACL shapes. Do not infer signed memoryScope from unsigned configuration or model input. Purpose policy belongs in the host loader.
Recall requires Current status, no elapsed invalidation and every category in the current scope. An absent scope defaults to exact pd:Preference; an empty scope means none. Never expose excluded sibling graphs, source graphs or pending data. Keep listing/body bounds and direct containment checks.
Origin classification is trusted host context. Only owner-typed conversation claims are SelfReportedExplicit. Everything inferred requires a rule plan. Every remember and one-time YAML import is staged and approval-gated. YAML import is strict rules: [{id, rule}], with a full source revision and synthetic tests only.
Verify real signed owner approvals against exact staged bytes and destination; a valid deny is a refusal. Validate with real rdf-engine (or injected equivalent) before conditional copy/delete, checking approval expiry again after validation. Never default to a conforming fake validator or fetch shapes implicitly. Preserve conflicting targets and pending edits. Document copy/delete partial completion.
Use Node >=24, ESM exports, workspace deps, Biome and Vitest. Keep regressions for scope/privacy, provenance, signed approvals, real SHACL, race/retry behavior and local CSS. Never call live providers or pods or use real credentials in tests.
04 同仓库更多 Skills
storage-conformance
Work on @jeswr/storage-conformance, the shared storage conformance suite package in the Solid SDK workspace.
fetch-rdf-engine-tests
Maintain fetch-rdf's real Node WASM parser integration tests without introducing a reverse engine dependency in fetch-rdf.
alpha
Use when checking fixtures, including folded YAML descriptions.
widget
Use when testing package skills: YAML quoting works.
web-seo
Use when improving technical and entity SEO for a modern personal, portfolio, documentation, or marketing site, including crawlable HTML, canonical metadata, sitemap and robots, Person/ProfilePage JSON-LD, Core Web Vitals, and honest ranking expectations.
solid-wac
Use when implementing or auditing Solid server WAC authorization, ACL creation and inheritance, auxiliary-resource escalation, method-to-mode mapping, 401 versus 403 challenges, WAC-Allow, or defensive typed ACL parsing with @solid/object and @rdfjs/wrapper.