feat(bin): add task lifecycle notification hook - #1405
Open
calcoloergosum wants to merge 2 commits into
Open
Conversation
calcoloergosum
force-pushed
the
fm/firstmate-notify-terminal-hook
branch
from
July 31, 2026 22:44
26318c1 to
edd2e5e
Compare
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Publish the already fully validated Firstmate task-lifecycle notification hook branch through the authenticated fork, open its pull request against kunchenguid/firstmate, and verify CI.
What Changed
bin/fm-notify.shemits optional, fail-opentask.ready/task.completedevents to a local executable configured viaconfig/notification-hook, sending one bounded privacy-safefirstmate.notification.v1JSON payload (≤512 bytes, stable SHA-256 event identity) on stdin with a clampedFM_NOTIFICATION_TIMEOUT_SECStimeout and size-capped fixed-token diagnostics instate/notification-hook.log.bin/fm-watch.shbecomes the singletask.readyemission owner, invoking the notifier on pending status signals with mode-specific readiness (local-only, direct-PR, green no-mistakes PR, scout report) resolved insidefm-notify.sh;bin/fm-teardown.shbecomes the singletask.completedowner, emitting only after a successful non-forced ship/scout teardown.tests/fm-notify.test.shand a teardown completion-emission test, and documents the hook acrossAGENTS.md,docs/configuration.md,docs/architecture.md,docs/scripts.md, anddocs/verification/runtime-backends.md.Testing
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
⏭️ **Review** - skipped
Step was skipped.
⏭️ **Test** - skipped
Step was skipped.
⏭️ **Document** - skipped
Step was skipped.
⏭️ **Lint** - skipped
Step was skipped.
✅ **Push** - passed
✅ No issues found.