Skip to content

fix: add context_enhancer symlink step and Mandatory Pre-Action Protocol#25

Merged
ClaudioDrews merged 1 commit into
mainfrom
fix/injection-gap-and-setup-symlink
Jun 7, 2026
Merged

fix: add context_enhancer symlink step and Mandatory Pre-Action Protocol#25
ClaudioDrews merged 1 commit into
mainfrom
fix/injection-gap-and-setup-symlink

Conversation

@ClaudioDrews

Copy link
Copy Markdown
Owner

Two fixes discovered in production:

1. Qdrant injection silently broken since 2026-05-29

hooks.py imports from scripts.context_enhancer import ... which resolves to ~/.hermes/scripts/. The file was never placed there — it lived in the Memory OS repo. The except Exception: return [] pattern swallowed the ModuleNotFoundError, and [qdrant] context was never injected.

Fix: setup.sh Phase 5b creates a symlink from the Memory OS repo to the Hermes scripts directory.

2. Ground Truth hierarchy correct but behaviorally inert

The hierarchy has been documented since 2026-05-31. The agent reads it every turn. Under time pressure, it still defaults to "resolve fast" instead of checking injected context first.

Fix: Mandatory Pre-Action Protocol — a 4-step mechanical sequence (inventory → match → use/declare → act) that runs before every tool call. Added to rulebook.md and to the Memory OS documentation.

Changes

File Change
setup.sh +Phase 5b (symlink), Phase 9 (auto-apply protocol)
modifications/soul-rulebook.md +Mandatory Pre-Action Protocol section
modifications/execution-agent-protocol.md New — standalone protocol for setup.sh
layers/07-ground-truth.md +2026-06-07 discovery and fixes

setup.sh:
- Phase 5b: symlink context_enhancer.py to Hermes scripts dir
  (fixes silent ModuleNotFoundError that disabled [qdrant] injection)
- Phase 9: auto-apply execution-agent-protocol.md

modifications/soul-rulebook.md:
- New section: Mandatory Pre-Action Protocol (4-step enforcement)

modifications/execution-agent-protocol.md:
- Standalone protocol for automated application by setup.sh

layers/07-ground-truth.md:
- Document behavioral gap between knowing and executing Ground Truth rules
@ClaudioDrews ClaudioDrews merged commit a25f3a9 into main Jun 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant