Session Sync pipeline P0-P8 core + Hermes adapter completed
Date: 2026-07-01 KST Project: maester Repo: /home/tlswk/projects/maester-agent
Completed
- Added
session_sync/package: models, config, adapters, SQLite state, reconcile planner, Maester client, OpenRouter summarizer, executor, rolling index, service, watcher. - Added adapters for Claude Code, Codex CLI, and Hermes.
- Hermes uses
/home/tlswk/.hermes/state.dbread-only, joinssessions+ activemessages, excludessource in ('subagent','tool'), and treats~/.hermes/sessions/sessions.jsonas optional origin metadata only. - Added CLI scripts:
scripts/session_sync_reconcile.py,scripts/session_sync_watch.py,scripts/test_session_sync.py. - Added config:
config/session_sync.example.json. - Added docs:
docs/SESSION_SYNC_PIPELINE.md. - Added FastAPI endpoints:
GET /api/maester/session-sync/index,POST /api/maester/session-sync/reconcile.
Verification
python3 scripts/test_session_sync.py-> PASS: session sync P0-P8 core + hermes.python3 scripts/session_sync_reconcile.py --agent hermes --limit 3-> dry plan ok, 3 Hermes sessions discovered from state.db..venv/bin/python -m compileall api.py session_sync scripts/session_sync_reconcile.py scripts/session_sync_watch.py scripts/test_session_sync.py-> passed.- FastAPI TestClient dry-run reconcile -> 200, decision_counts
{'ingest': 1}. - FastAPI TestClient index -> 200.
python3 scripts/session_sync_watch.py --agent hermes --once-> exited cleanly.
Not executed
- No
--executelive write was run. - No bulk Maester ingest/update was run.
- No scheduler, cron, cloud routine, or systemd watcher was created. The watcher remains foreground/manual.
Remaining
- OpenClaude adapter remains pending because no local OpenClaude session root was found.
Worktree note
- Existing dirty
data/action_lifecycle_audit.jsonlwas present before this work and was left untouched.