Repository navigation
feat(relay): harbor poll-shim trust + ack-before-spawn guard - #3463
derickdsouza wants to merge 1 commit into
Conversation
…guid#149) Extend fmx_poll_shim_valid to honor config/harbor-telegram-hitl.poll-shim.registration.json so harbor telegram-hitl can replace x-watch.check.sh without watcher rejection. Enforce relay ack-before-long-work: fm-x-reply records x-context/<id>.answered.json on the initial answer; fm-spawn refuses while any open x-inbox row lacks that marker. Co-authored-by: Cursor <cursoragent@cursor.com>
Confidence Score: 4/5The PR appears safe to merge, with a non-blocking architectural concern about coupling the shared relay validator to Harbor. The acknowledgement guard has no established blocking defect, but the alternate-shim implementation directly embeds one external integration’s filename and schema into the vendor-agnostic firstmate surface. Files Needing Attention: bin/fm-x-lib.sh, docs/configuration.md Reviews (1): Last reviewed commit: "feat(relay): harbor poll-shim trust + ac..." | Re-trigger Greptile |
| local file=$1 home=$2 reg exec_target expected_hash actual_hash version check_id | ||
| reg=$(fmx_poll_shim_registration_path "$home") | ||
| [ -f "$reg" ] || return 1 | ||
| command -v jq >/dev/null 2>&1 || return 1 |
There was a problem hiding this comment.
Harbor contract couples relay validator
The generic fmx_poll_shim_valid fallback embeds Harbor’s product-specific manifest path and registration schema in the shared relay library. Supporting additional integrations will require more vendor-specific branches here, conflicting with the repository’s requirement that the shared firstmate surface remain vendor-agnostic.
Context Used: If there is a VISION.md file at the root of the re... (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
Closed per captain request — harbor deliverables remain on nivasritech/harbor; pm-dev running cherry-picked firstmate changes locally until intake path is decided. |
Summary
fmx_poll_shim_validhonorsconfig/harbor-telegram-hitl.poll-shim.registration.jsonso harbor telegram-hitl can replacex-watch.check.shwithout watcher rejection (closes harborharbor-hitl-trust-bindingfirstmate intake)fm-spawn.shrefuses while any openstate/x-inbox/*.jsonlacksstate/x-context/<id>.answered.json— recorded byfm-x-reply.shon the initial answer (fix: accept landed squash-merged PR heads #149 / relay-task-offloading ack-before-long-work)fm-x-moderegression testsTest plan
test_poll_shim_accepts_registered_harbor_alternatetest_spawn_refuses_open_inbox_without_acktest_spawn_passes_inbox_guard_after_ack_markedpm-dev follow-up
After merge: pull firstmate on pm-dev; re-run harbor
install.sh; verifyx-watch.check.shaccepted by watcher.Made with Cursor