3 phases, 6 plans, 16 requirements. Archives copied to milestones/. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4.9 KiB
4.9 KiB
| phase | plan | subsystem | tags | requires | provides | affects | tech-stack | key-files | key-decisions | patterns-established | requirements-completed | duration | completed | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 27-hermes-adapter | 01 | adapters |
|
|
|
|
|
|
|
|
|
2min | 2026-04-02 |
Phase 27 Plan 01: Hermes Adapter Integration Gaps Summary
Four HERM-01..04 integration gaps closed: hermes_local in SESSIONED_LOCAL_ADAPTERS, Toolsets field edit-only, and hermes session codec round-trip tests added
Performance
- Duration: 2 min
- Started: 2026-04-02T16:22:36Z
- Completed: 2026-04-02T16:24:58Z
- Tasks: 3
- Files modified: 3
Accomplishments
- Added
hermes_localtoSESSIONED_LOCAL_ADAPTERSin heartbeat.ts — orphan process liveness checks now handle detached Hermes child processes after server restart (HERM-03) - Created
ui/src/adapters/hermes-local/config-fields.tsxwith Toolsets field inside{!isCreate && ...}guard — no extraArgs corruption when creating new Hermes agents (HERM-02) - Added hermes session codec tests to
adapter-session-codecs.test.ts— both standardsessionIdand legacysession_idkey formats tested (HERM-04) - All 16 hermes-related tests pass (9 adapter-session-codecs + 7 hermes-dual-source)
Task Commits
Each task was committed atomically:
- Task 1: Fix heartbeat sessioned adapters and deduplicate constants -
0beaf195(feat) - Task 2: Fix create-mode toolsets field in HermesLocalConfigFields -
71128964(feat) - Task 3: Add hermes session codec test -
4f52a18f(test)
Files Created/Modified
server/src/services/heartbeat.ts- Added"hermes_local"to SESSIONED_LOCAL_ADAPTERS setui/src/adapters/hermes-local/config-fields.tsx- Created with Toolsets field inside !isCreate guard; Model field available in both modesserver/src/__tests__/adapter-session-codecs.test.ts- Added hermesSessionCodec import + 2 hermes test cases
Decisions Made
- Toolsets field restricted to edit mode:
CreateConfigValueshas notoolsetsfield, and mapping toolsets toextraArgsin create mode corrupts CLI args (buildHermesConfig splits extraArgs by whitespace) - Hermes session codec tests omit
cwdfield: hermes adapter only trackssessionId, unlike claude/codex/cursor/gemini which also trackcwd
Deviations from Plan
None - plan executed exactly as written.
Note: Task 1 description mentioned removing a duplicate gemini_local from AGENT_ADAPTER_TYPES. The worktree branch (worktree-agent-a4442902) already had a clean constants.ts with no duplicate — the deduplication had already been applied in a prior commit (79b61059). No change was needed; the acceptance criterion (no duplicates) was already satisfied.
Issues Encountered
hermes-local/config-fields.tsxwas not present in the worktree (only existed in commit history on other branches). Created the file from scratch matching the existing implementation from1c44dabfwith the required Toolsets fix applied.
Next Phase Readiness
- All four HERM-01..04 integration gaps closed
- Hermes adapter fully wired: spawning, heartbeat, session persistence, skill sync, cost tracking
- Ready for Ollama detection phase (HERM-05+) or further Hermes integration work
Phase: 27-hermes-adapter Completed: 2026-04-02