Skip to content

fix: bridge enforcement wiring, dedup helpers, version alignment#23

Merged
htafolla merged 1 commit intomasterfrom
fix/hermes-bridge-enforcement-and-cleanup
Mar 30, 2026
Merged

fix: bridge enforcement wiring, dedup helpers, version alignment#23
htafolla merged 1 commit intomasterfrom
fix/hermes-bridge-enforcement-and-cleanup

Conversation

@htafolla
Copy link
Copy Markdown
Owner

Fixes

HIGH: Core bridge.mjs missing command handlers

dispatchCommand() listed 9 commands in KNOWN_COMMANDS but only handled 4. The 5 missing commands (validate, codex-check, pre-process, post-process, hooks) all returned Unknown command.

  • validate: runs quality gate per-file, returns per-file results
  • codex-check: quality gate + deep enforcement via ValidatorRegistry with SNIPPET_SAFE_RULES filtering
  • pre-process: quality gate check on tool+args
  • post-process: stub (processors not available in standalone bridge)
  • hooks: full install/uninstall/list/status lifecycle

MEDIUM: Version drift

types.ts=2.0.0, plugin.yaml=2.1.0, init.py=v2.2 — all aligned to 2.2.0

LOW: Duplicate helpers in tools.py

Removed duplicate _call_bridge and _find_project_root, now delegates to init.py via lazy import.

LOW: Quality gate soft-fail

bridge.mjs returned passed:true when quality gate threw — now returns passed:false.

Verification

  • 120/120 Python tests pass
  • tsc --noEmit clean
  • All 9 core bridge commands tested live

Core bridge (src/core/bridge.mjs):
- Add 5 missing command handlers to dispatchCommand():
  validate, codex-check, pre-process, post-process, hooks
- codex-check uses ValidatorRegistry for deep analysis
- hooks handler: full install/uninstall/list/status lifecycle

Hermes plugin (src/integrations/hermes-agent/):
- tools.py: dedup helpers, delegate to __init__.py via lazy import
- bridge.mjs: quality gate soft-fail -> hard-fail on exception
- types.ts + plugin.yaml: version aligned to 2.2.0

120 Python tests pass. tsc clean.
@htafolla htafolla merged commit 048e66f into master Mar 30, 2026
14 of 17 checks passed
@htafolla htafolla deleted the fix/hermes-bridge-enforcement-and-cleanup branch March 30, 2026 20:26
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