Repository navigation
feat: add Telegram mode - two-way captain phone chat through the phone-inbox bridge - #1
Merged
Merged
Conversation
…e-inbox bridge Inert until a home opts in via the gitignored config/telegram-mode flag. Bootstrap then arms a byte-validated tg-watch.check.sh identity shim and a 30s cadence config, exactly the X-mode contract; the watcher dispatches the trusted bin/fm-tg-poll.sh, which surfaces pending phone-inbox note ids (never bodies, never text-derived filename slugs) as tg-message wakes with durable offer markers, pruning and a 30-minute re-offer. The fmtg-respond skill owns claim/classify/act/reply through the phone-inbox durable bridge, with fm-tg-link.sh and fm-tg-followup.sh carrying milestone and final follow-ups under a local cap and window. Reversible lifecycle actions only: destructive, irreversible, and security-sensitive actions still require the captain in a trusted session. No firstmate-side code reads the bot token.
The lint meta-contract pins the exact set of interop tests allowed a '# shellcheck source=bin/' directive; test files that source production libs use 'source=/dev/null', the same idiom as the X security and turn-end guard suites.
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.
Adds Telegram mode: two-way phone chat with firstmate through the existing phone-inbox bridge.
config/telegram-modeflag; a fresh clone behaves identically to today (tested).state/tg-watch.check.shidentity shim and a 30s watcher cadence config, the same contract as X mode; the watcher dispatches the trustedbin/fm-tg-poll.shonly on an exact byte match.fmtg-respondskill owns claim/classify/act/reply through phone-inbox's durable bridge, withbin/fm-tg-link.sh/bin/fm-tg-followup.shfor milestone and final follow-ups under a local cap and window.Validated by no-mistakes (run 01KYQGGP1AAKACECPG45JRGVXM): review findings fixed and re-verified across two rounds, tests, documentation, and pinned ShellCheck 0.11.0 lint all green. Two review findings were deliberately accepted by decision: follow-up threads of already-linked tasks may finish after opt-out, and the reply bridge subcommands ship ahead of the separate phone-inbox deployment with a documented stop-and-report path until it lands.
Pipeline
Updates from git push no-mistakes run
01KYQGGP1AAKACECPG45JRGVXM: intent, rebase, review (2 rounds, all accepted findings fixed and re-verified), test, document, and lint completed; the validated pipeline push published head815deb80572a50b9761d1d6f275c9ac47be3d010to this branch. The pipeline's own PR-creation step failed while the repository migrated to this fork (it inferred the old upstream as base), so this PR record was completed manually against the same validated pushed head with no further commits.