feat: add governed Hermes builder dispatch capability - #84333
feat: add governed Hermes builder dispatch capability#84333fanuman123 wants to merge 12 commits into
Conversation
dispatch_id=fb96f129-cef7-4b22-97c8-4a4bbd1c4b04 request_sha256=08745f29c8b9bda55e6033a3ee83c47242a7b1fa0401e3837c09d2d839a04596 live_execution_affected=false
PR: feat: add governed Hermes builder dispatch capability Large, security-sensitive PR — reviewed for the sharpest edges. The governance/attestation design (hash-pinned artifacts, idempotency reservations, fail-closed dispatch, 0600 file modes) is thorough; the issues below are in the kanban integration layer.
|
|
Superseded by refreshed PR #89934 because GitHub’s generated head ref for this PR remained pinned to the old commit after the fork branch advanced. #89934 points at exact reviewed head |
Summary
Adds the production
hermes.builder_dispatch.v1capability as a supervised local Unix-domain-socket service backed by Hermes Kanban.The implementation includes authenticated and idempotent dispatch handling, governed repository/worktree and path checks, confined builder tools, effective DeepSeek profile attestation, race-resistant completion evidence, adapter-owned result commits, cancellation handling, registered isolated validation, and an operator CLI covering preparation through evidence retrieval.
Why
The orchestrator needs a narrow, auditable way to delegate implementation work to Hermes without granting callers direct shell, process, unrestricted filesystem, approval, push, PR, merge, or live-execution authority.
Safety and behavior
0600local Unix socket.deepseek-builder/deepseek-v4-proroute with an empty fallback chain.Operator workflow
The
hermes orchestratecommand provideshealth,cycles,prepare,activate,start,status,evidence, andcancel. Preparation and activation start no worker; each cycle binds immutable objective, acceptance criteria, paths, repository commit, validation profile, and limits.Current published head
17a1af49a3b0382eee41414e4a51e8de399b326c649c20629eedea5a26d34b01ec8f3e14e96e9249Review-feedback follow-up
The current head hardens operational recovery paths:
Post-follow-up local validation:
git diff --check: passed;Fresh GitHub CI is pending for this exact head.
Prior canary validation
The earlier end-to-end canary completed successfully at commit
df864d81900bfcb11863e5b4fab6847915202390: registered tests and Ruff passed, strict validation passed, dispatch succeeded, worktree remained clean, and no duplicate rows or leftover validation resources remained.Publication status
No merge or self-approval has been performed.