Repository navigation
feat: add Droid harness support - #70
Closed
esotericzhang wants to merge 4 commits into
Closed
esotericzhang wants to merge 4 commits into
esotericzhang wants to merge 4 commits into
Conversation
This was referenced Aug 9, 2026
This was referenced Aug 10, 2026
This was referenced Aug 11, 2026
This was referenced Aug 11, 2026
This was referenced Aug 12, 2026
This was referenced Aug 27, 2026
pranaypratyush
added a commit
to pranaypratyush/firstmate
that referenced
this pull request
Aug 31, 2026
* fix(remote): relay autonomous secondmate status * no-mistakes(review): Enforce exact remote reply correlation boundaries * no-mistakes(review): Harden remote reply correlation parsing * no-mistakes(review): Require whole-token remote reply correlations * no-mistakes(document): Document remote lifecycle reply ingestion
This was referenced Oct 7, 2026
Why these values
Post-merge test plan (after the gitops rollout)
|
fritznoff
pushed a commit
to fritznoff/starship
that referenced
this pull request
Nov 2, 2026
…unchenguid#70) * Add host-level supervision outage sentinel * Add explicit sentinel disarm and alert backoff * Harden sentinel outage episode handling * no-mistakes(review): Fix sentinel path identity, hook alert latency, and episode backoff reset * Resolve sentinel review merge overlap * no-mistakes(review): Make sentinel check marker-only, add arm backoff, fix test selection * no-mistakes(review): Surface sentinel arm failures, make check diagnostic, split retry tunables * no-mistakes(review): Drop plist notifier seam, share arm-failure cooldown reader * no-mistakes(review): Merge supervision family map, dedup arm-failure reads, narrow smoke claim * no-mistakes(review): Arm sentinel only after healthy watcher, fix liveness proof and grace pinning * no-mistakes(review): Defer away-mode sentinel arm to daemon, require contention evidence * no-mistakes(review): Retry away sentinel arm on cadence, record host-alarm gaps * no-mistakes(review): Distinguish unsupported host from retryable sentinel arm failure * no-mistakes(test): Wait for committed delivery in real-launchd sentinel smoke * no-mistakes(review): Fix disarm-enable deadlock, add deliberate no-op arm status * no-mistakes(document): Add sentinel to script inventory and afk return evidence * no-mistakes(review): Declare the supervision sentinel fork surface The Declared fork surface CI job and tests/fm-fork-surface.test.sh both failed because the two files this PR adds, bin/fm-supervision-sentinel.sh and tests/fm-supervision-sentinel.test.sh, were unclaimed fork-only paths. Declare them in a supervision-outage-sentinel capability block with the in-place edits the sentinel makes, proven by its colocated test. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
fritznoff
pushed a commit
to fritznoff/starship
that referenced
this pull request
Nov 18, 2026
…finished (kunchenguid#70) * feat(bin): tell a Mothership card when work that ends in a report is finished Investigations, guides and drafts end in a report and no PR, so their room card only ever heard that work had started. Cleaning such a task up with its report kept (data/<task-id>/report.md, no PR, not a --force discard) now reports a new finished event: the card gets one fixed result line that it finished with a report the ship's owner holds, which settles it like a landing, and never any of the report's words. Only when the task's body names an address for the room, mothership-report: <https-url>, does the line say "Done: finished with a report." with that address as its link. The send takes the same path as every other card line: config/private-projects keeps it from every room, the link's allow-list and word check apply, a home with no room link runs nothing, and a failed send wakes the first mate without holding up or failing the cleanup. A job on the Ships view hears finished as dropped, so it leaves the view as before. * no-mistakes(review): Tell a card a report finished only for scouts * no-mistakes(review): Settle a card only when a scout's task closes * no-mistakes(review): Document that a held scout leaves its card open * no-mistakes(ci): Root cause (ci-4 Test coverage guard, ci-1 Behavior portable parallel 3, ci-3 Full suite): this PR raised the serial packing hint for tests/fm-procevent-mothership-reports.test.sh from 120000 to a provisional 185000 ms, based on one slow local macOS run. With that weight the largest portable serial shard models at 1202052 ms, 2052 ms over the 1200000 ms target. `bin/fm-test-run.sh --check-coverage` then failed, both in the guard job and inside tests/fm-test-run.test.sh, which ran in parallel shard 3. Full suite only rolls up the failed lanes. Invariant: every serial packing hint must reflect real CI cost, so the modeled largest shard stays within the 1200000 ms budget. This PR changed only that one hint, and that is the place the invariant breaks. Fix: in bin/fm-test-run.sh, set the hint to 132386 ms. That is the suite's completed, passing Ubuntu `FM_TEST_END` sample from this PR's own CI run 44068469247 (serial shard 9). This follows the policy in docs/fm-test-portable-shards.md that Ubuntu measurements replace provisional local ones. I updated the matching sentence in that doc to cite the run. Verified locally: - `bin/fm-test-run.sh --check-coverage` exits 0 with `FM_TEST_COVERAGE ok ... serial_max_ms=1198902 serial_budget_ms=1200000 serial_unhinted=0`. - The full `bash tests/fm-test-run.test.sh` run (about 19 minutes) printed no `not ok` lines. Its coverage-guard cases passed: "portable shard union, disjointness, and coverage guard hold" and "coverage guard bounds the unmeasured share and serial packing within twenty minutes". The exit-code echo came out blank, so the absence of failure lines is the only evidence the whole file passed. ci-2 (Behavior portable serial 6) is not caused by this PR. The only failing script there was tests/fm-afk-return.test.sh, case "the restored record did not recover its away window". It expected `away 11:06:19Z` but the brief showed `11:06:20Z`: the away entry and the return `begin` fell on different wall-clock seconds. That is a race in a pre-existing test of AFK code this PR does not touch (the diff has no bin/fm-afk*, bin/fm-supervision* or tests/fm-afk* changes). I left it unchanged. A rerun should pass, and the flake needs its own fix outside this PR
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
Make Factory Droid CLI a first-class verified Firstmate harness, functionally equivalent to the existing Claude, Codex, OpenCode, and Pi harnesses. The implementation should support Droid in harness detection and session locking, spawning ship/scout tasks and secondmates, turn-end signaling via Droid Stop hooks, busy-pane detection, teardown cleanup, skill discovery through Factory's .factory/skills path, self-update instruction-surface tracking, and project documentation. It should preserve Firstmate's safety posture by using Droid --auto high rather than unsafe permission bypass, keep runtime hook settings in state rather than project worktrees, ensure Droid sessions do not add agent co-author trailers, and include behavior tests for Droid launch templates, secondmate behavior, adapter acceptance, and busy-footer detection.
What Changed
--auto high..factory/skillsand updates Firstmate docs and skills to describe Droid behavior, co-author suppression, and instruction-surface handling.Risk Assessment
✅ Low: Captain, the changes are well-bounded harness-adapter additions with matching cleanup, detection, documentation, and focused behavior coverage, and I did not identify material merge-blocking risks.
Testing
Inspected the Droid harness change scope, ran focused behavior tests covering Droid ship and secondmate launch templates, verified adapter acceptance, busy-footer detection, wake handling, update instruction-surface tracking, and manually demonstrated Droid harness detection plus lock recognition; the relevant tests and checks passed, the working tree remained clean, and the only broad-suite attempt timed out before replacing it with focused validation.
Evidence: Focused Droid harness behavior test transcript
Evidence: Self-update instruction-surface test transcript
Evidence: Droid harness detection evidence
droidEvidence: Droid session-lock recognition evidence
lock: held by live harness pid 57396Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
git status --porcelainandgit diff --stat e2e730f8e7139e385a6eee3352eea1db9da6adeb..151c1516779ac4d0e5b9344d6f9a17ef7f5eae0d./tests/fm-droid-harness.test.sh; ./tests/fm-spawn-batch.test.sh; ./tests/fm-wake-queue.test.sh./tests/fm-update.test.shManual harness detection check using adroid-named shell wrapper around./bin/fm-harness.shManual session-lock status check using a livedroid-named process recorded in.lockAttempted broadfor t in ./tests/*.test.sh; do "$t"; done, which timed out in the long afk e2e test before useful full-suite coverage was produced✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.