| test(provenance): rewrite integration tests with real pipeline components
Replace TestArchiveIdPreGeneration which mocked MemoryWriteAPI,
get_session_manager, get_write_api, _async_drain with a real
MemoryWriteAPI → CandidatePipeline → ContextWriter pipeline using
InMemoryContextFS. Only LLM remains mocked.
Move InMemoryContextFS from tests/integration/core/ to
tests/integration/conftest.py for sharing across subdirectories.
Fix _preference_input to use routing_key field name matching real
schema. Replace _make_fs mock in react_loop tests with shared
InMemoryContextFS fixture.
Co-Authored-By: Claude glm-5.1 <noreply@anthropic.com>
| 15 天前 |
| test(provenance): rewrite integration tests with real pipeline components
Replace TestArchiveIdPreGeneration which mocked MemoryWriteAPI,
get_session_manager, get_write_api, _async_drain with a real
MemoryWriteAPI → CandidatePipeline → ContextWriter pipeline using
InMemoryContextFS. Only LLM remains mocked.
Move InMemoryContextFS from tests/integration/core/ to
tests/integration/conftest.py for sharing across subdirectories.
Fix _preference_input to use routing_key field name matching real
schema. Replace _make_fs mock in react_loop tests with shared
InMemoryContextFS fixture.
Co-Authored-By: Claude glm-5.1 <noreply@anthropic.com>
| 15 天前 |
| chore: bootstrap ContextEngine agent team scaffold v2
团队协调文件:
- CLAUDE.md: 完整 v3.1 设计(URI规范/写入策略/检索规则/接触点/commit规范/待决事项)
- team/tasks.md: Phase 0/1/2/3 全量任务(含 providers + service + 里程碑 commit 任务)
- team/roles/: 五个 Teammate 详细角色说明
- team/LEADER_PROMPT.md: Leader 分阶段 spawn/解散 Teammate 的完整操作说明
项目骨架:
- core/ extraction/ commit/ index/ retrieval/ providers/ service/ tests/ 目录结构
- agfs/: OpenViking AGFS(git@github.com:c4pt0r/agfs.git)
- pyproject.toml + .gitignore + 各包 __init__.py
| 2 个月前 |
| test(provenance): rewrite integration tests with real pipeline components
Replace TestArchiveIdPreGeneration which mocked MemoryWriteAPI,
get_session_manager, get_write_api, _async_drain with a real
MemoryWriteAPI → CandidatePipeline → ContextWriter pipeline using
InMemoryContextFS. Only LLM remains mocked.
Move InMemoryContextFS from tests/integration/core/ to
tests/integration/conftest.py for sharing across subdirectories.
Fix _preference_input to use routing_key field name matching real
schema. Replace _make_fs mock in react_loop tests with shared
InMemoryContextFS fixture.
Co-Authored-By: Claude glm-5.1 <noreply@anthropic.com>
| 15 天前 |
| chore: vendor AGFS server + SDK, cleanup dead code, update deps
- Vendor AGFS Go server and Python SDK into agfs/ directory
- Update OpenClaw plugin path for new AGFS mount structure
- Increase LLM/embedder timeout to 120s for production reliability
- Add gitignore entries for eval output (api_logs, result)
- Update embedder config and test fixtures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| 1 个月前 |
| refactor(service): inject context into messages as system messages for KV-cache efficiency
- Move all dynamic content from systemPromptAddition into messages array
as system messages, ordered by stability: Profile → Archive → Session
State → [original] → Working Set
- systemPromptAddition/systemPromptSuffix/memoryUserMessage set to empty
- Trim messages already compressed by RollingCompressor to avoid
duplication between session state and raw conversation
- Simplify plugin assemble handler to pass through messages directly
- Update integration tests for new message injection behavior
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| 1 个月前 |
| feat(memory): refine compact mechanism runtime state
| 11 天前 |
| feat: Docker deployment — openclaw + ogmem plugin Dockerfile
| 1 个月前 |
| refactor: align codebase, cleanup, extraction enhancement, README rewrite
Align all code layers with canonical architecture.
Update OpenClaw plugin and Docker deployment.
Enhance extraction with temporal/entity fields and few-shot examples.
Rewrite README around Agent context lifecycle:
6 lifecycle hooks, 27 context operators, ContextFS virtual filesystem.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| 1 个月前 |
| feat: Docker deployment — openclaw + ogmem plugin Dockerfile
| 1 个月前 |
| fix(tests): update AGFS configuration for local testing
- scripts/startup.sh: Use project-local AGFS binary at agfs/agfs-server/build/
- scripts/startup.sh: Update AGFS_BASE_URL to port 1833 (matching config.yaml)
- scripts/startup.sh: Update AGFS_DATA_DIR to project-local .agfs_data
- tests/conftest.py: Change default AGFS_BASE_URL from port 8080 to 1833
- tests/integration/test_full_pipeline.py: Configure mock_llm with tool call fixture
Enables local testing without requiring system-wide AGFS installation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| 2 个月前 |
| feat(pgdirect): SQL-backed storage backend replacing AGFS
Direct PostgreSQL storage implementation:
- SQLContextFS: full ContextFS implementation with RLS tenant isolation
- SQLOutboxStore: listen-notify based async indexing
- SQLRelationStore, SQLArchiveStore: relation and session persistence
- SQLControlPlaneStore: multi-instance auth state sharing
- Shared connection pool (PoolAdapterMixin) with health checks
- Atomic write+outbox in single transaction
- Archive chain support (soft delete + outbox event)
- Owner-level ACL with visible_owner_spaces
- PostgreSQL schema with idempotent ensure_schema()
- Updated docs/setup scripts to replace AGFS with PostgreSQL
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| 26 天前 |
| feat(memory): refine compact mechanism runtime state
| 11 天前 |
| fix(test): bind RLS tenant before DELETE on relation_edges, fix fallback to_uri assertion
- SET LOCAL app.account_id before DELETE so it succeeds under FORCE ROW
LEVEL SECURITY; assert rowcount == 1 to confirm the delete actually
happened and the fallback path is truly exercised.
- Replace the weak new_uri not in to_uri or old_uri not in to_uri
assertion with old_uri not in fallback_to plus `target_uri in
fallback_to` — verifies the expected rewritten value is present and
no stale to_uri leaked.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
| 4 天前 |
| refactor: align codebase, cleanup, extraction enhancement, README rewrite
Align all code layers with canonical architecture.
Update OpenClaw plugin and Docker deployment.
Enhance extraction with temporal/entity fields and few-shot examples.
Rewrite README around Agent context lifecycle:
6 lifecycle hooks, 27 context operators, ContextFS virtual filesystem.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| 1 个月前 |