Skip to content

feat(relay): harbor poll-shim trust + ack-before-spawn guard - #3463

Closed
derickdsouza wants to merge 1 commit into
kunchenguid:mainfrom
derickdsouza:feat/harbor-hitl-trust-and-relay-ack
Closed

derickdsouza wants to merge 1 commit into
kunchenguid:mainfrom
derickdsouza:feat/harbor-hitl-trust-and-relay-ack

Conversation

@derickdsouza

Copy link
Copy Markdown

Summary

  • fmx_poll_shim_valid honors config/harbor-telegram-hitl.poll-shim.registration.json so harbor telegram-hitl can replace x-watch.check.sh without watcher rejection (closes harbor harbor-hitl-trust-binding firstmate intake)
  • fm-spawn.sh refuses while any open state/x-inbox/*.json lacks state/x-context/<id>.answered.json — recorded by fm-x-reply.sh on the initial answer (fix: accept landed squash-merged PR heads #149 / relay-task-offloading ack-before-long-work)
  • Docs + fm-x-mode regression tests

Test plan

  • test_poll_shim_accepts_registered_harbor_alternate
  • test_spawn_refuses_open_inbox_without_ack
  • test_spawn_passes_inbox_guard_after_ack_marked

pm-dev follow-up

After merge: pull firstmate on pm-dev; re-run harbor install.sh; verify x-watch.check.sh accepted by watcher.

Made with Cursor

…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>
@greptile-apps

greptile-apps Bot commented Sep 1, 2026

Copy link
Copy Markdown

Confidence Score: 4/5

The 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

Comment thread bin/fm-x-lib.sh
Comment on lines +246 to +249
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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!

@derickdsouza

Copy link
Copy Markdown
Author

Closed per captain request — harbor deliverables remain on nivasritech/harbor; pm-dev running cherry-picked firstmate changes locally until intake path is decided.

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