Repository navigation
fix(agents): stop scripting the routine no-action reply - #35
Merged
Merged
Conversation
* fix(session-start): relaunch missing second mates * fix(test): detect completed parallel workers * no-mistakes(review): Isolate session-start recovery test cleanup * no-mistakes(review): Complete backend-safe secondmate session recovery * no-mistakes(review): Resolve Zellij task ownership before recovery * no-mistakes(review): Recover relocated Zellij ghost tabs safely * no-mistakes(review): Restore conservative Zellij recovery boundary * no-mistakes(review): Reject malformed tmux recovery targets * no-mistakes(document): Align secondmate recovery documentation * no-mistakes: apply CI fixes
…id#967) * fix(herdr): reclaim resumed task projections safely * no-mistakes(review): Enforce safe Herdr reclaim close boundaries * no-mistakes(document): docs: clarify Herdr restart projection contract
…id#994) * docs: separate current guides from verification * no-mistakes(review): Restore Herdr 0.7.5 restart-reclaim verification evidence
…d#997) * feat(claude): Stop-owned tokenless watcher continuity via asyncRewake auto-arm Claude primaries (main home and marked secondmate homes) no longer depend on the model remembering to re-arm the watcher after each wake. A tracked Stop asyncRewake hook (bin/fm-claude-stop-autoarm.sh, timeout 28800s) fires on every turn end, claims one home-scoped single-flight owner, foregrounds bin/fm-watch-arm.sh inside the hook-owned process tree, and translates an actionable close or typed watcher failure into exactly one exit-2 rewake. The hook scopes to genuine primary checkouts, requires the session lock to be held by its own harness ancestor, stays inert while AFK owns triage or the home is idle, and hands AFK transitions mid-cycle to the daemon without rewaking. The synchronous turn-end guard gains a --claude cooperative mode: it ignores stop_hook_active (true on every post-continuation stop, which is what re-opened the 2026-07-21 blind window), waits briefly for a watcher health proof, a live auto-arm owner claim, or a fresh rewake epoch, and re-blocks only when the auto-arm genuinely failed to establish - bounded to 3 consecutive blocks per session, safely below Claude Code's 8-block override, then a degraded allow with a visible systemMessage. Codex keeps the previous one-block loop guard byte-identically, and Pi, OpenCode, and Grok adapters are untouched. Continuity PreToolUse gate and durable wake queue are preserved; the gate's recovery guidance now names the Stop-owned re-arm and reserves manual background arms for auto-arm failure. Claude supervision protocol, harness-adapters facts, architecture, configuration, and continuity docs updated; docs/turnend-guard.md records the 2026-07-24 Claude 2.1.218 contract revalidation (tokenless multi-cycle rewake, no-dedup, timeout process-group kill, 8-block cap, interactive non-stall) and the 2.1.219 product live E2Es. Regression matrix: hermetic tests cover scope, identity, AFK, need, single-flight, translation, guard cooperation, budget, and registration; the new live E2E proves two full tokenless auto-arm rewake cycles with zero model arm commands; Pi and OpenCode Option B live E2Es pass unchanged. * no-mistakes(review): Fix Claude X-mode auto-arm continuity backstop * no-mistakes(review): Remove unsupported Claude contract-lab verification claims * no-mistakes(document): Update Claude auto-arm continuity documentation
* Clean stale Herdr projections at session start * no-mistakes(document): Document stale Herdr session-start projection cleanup * no-mistakes(review): Enforce locked exact Herdr projection cleanup * no-mistakes(review): Fail closed on unverified session lock ownership * no-mistakes(review): Serialize session lock acquisition atomically * no-mistakes(document): Align session-start and Herdr cleanup documentation * no-mistakes(document): Generalize lock-refusal diagnostics * no-mistakes(lint): Avoid reserved keyword in concurrency test * no-mistakes: apply CI fixes * no-mistakes: apply CI fixes
…uid#1001) * fix: recover Claude supervision at session start * fix: remove Claude watcher-status command gate * no-mistakes(document): docs: remove stale continuity gate references
* Replace quota dispatch selector instructions * no-mistakes(review): Align bootstrap docs with agent-owned dispatch selection
* remove vestigial dispatch selector * no-mistakes(review): Synchronize isolation proof and portable shard evidence * no-mistakes(review): Correct shard history and proof archive date * no-mistakes(review): Remove reintroduced selector documentation reference * no-mistakes(document): Remove stale dispatch strategy documentation
…1039) quota-axi 0.1.13 emits schemaVersion 2 with a quotaSemantics object per provider, so the successor named in the interim rule has landed and the rule's own removal condition is satisfied. Keep the ownership clause so quota-axi remains the single owner of how model or product windows relate to bounding account windows, and drop the interim weakest-headroom instruction. The unknown-semantics case is already covered by the existing requirement to stop and report a candidate whose applicable quota data or interpretation cannot be established. Drop the matching assertion phrase from tests/fm-instruction-owners.test.sh; the retained ownership phrase still asserts.
…unchenguid#1049) * fix(tmux): scope Claude busy detection by harness * no-mistakes(review): Separate verified and fallback busy signatures * no-mistakes(test): Scope busy signatures to supplied harnesses * no-mistakes(document): Document harness-scoped busy detection
* Add verified Kimi crewmate harness adapter * no-mistakes(review): Scope Kimi moon detection to spinner lines * no-mistakes(review): Match only complete Kimi spinner rows * no-mistakes(review): Resolve Kimi binary portably before pane creation * no-mistakes(document): Align Kimi adapter documentation * no-mistakes(lint): Suppress false-positive ShellCheck warning for sourced watcher override * Fix Kimi busy spinner detection * no-mistakes(review): Recognize Kimi session-lock ancestry and holders * no-mistakes(review): Scope pending-reply Kimi busy detection by harness * no-mistakes(document): Correct Kimi spinner capture documentation * no-mistakes(document): Clarify optional Kimi spinner whitespace * no-mistakes(lint): Silence intentional pending-reply test stub warnings * test: align rebased Kimi busy fixtures * no-mistakes: apply CI fixes * Reconcile Kimi busy detection after per-harness scoping * no-mistakes(review): Clarify observed Kimi spinner whitespace contract * no-mistakes(document): Clarify Kimi harness documentation
* fix kimi pointer submission and spinner conformance * no-mistakes(review): Preserve Kimi submit target ownership guard
* Add guarded Kimi turn-end hook * no-mistakes(review): Require jq before installing Kimi turn-end hook * no-mistakes(review): Expose jq inside isolated Kimi test fixtures * no-mistakes(review): Preserve Kimi config boundaries during hook removal * no-mistakes(review): Document Kimi removal newline safeguard * no-mistakes(document): Document Kimi shared-home preservation
) * Fix structural tmux composer reading * Verify Calm compatibility with Pi 0.82 * no-mistakes(review): Harden structural composer classification boundaries * no-mistakes(review): Refresh composer and Kimi regression fixtures * no-mistakes(review): Fail closed on unbounded composer edges * no-mistakes(review): Enforce aligned composer geometry safely * no-mistakes(review): Make composer ambiguity locale-safe * no-mistakes(review): Preserve ambiguity through composer submission * no-mistakes(review): Carry composer proof through retries * no-mistakes(document): Document structural tmux composer delivery guarantees * no-mistakes: apply CI fixes
This repo's fork previously landed the full upstream integration through a squash merge (PR #34), so upstream/main was not recorded as an ancestry parent and a plain diff/merge against upstream mis-reports the true fork-vs-upstream delta. This merge records that ancestry without changing the tree.
Section 9's mandated exact phrase for a no-action routine update suppressed characterization of the session's other decisions, in tension with prime directive 5's report-outcomes-faithfully mandate. Reply plainly instead, and keep surfacing anything else worth the captain's attention even when it needs no action.
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
Critical review of every fork-local divergence from
upstream/main(kunchenguid/firstmate), per the captain's direction to rejustify each deviation and get back as close to upstream as possible, with a bias toward dropping anything that doesn't clearly earn its ongoing merge cost.upstream/mainwas never recorded as an ancestry parent and a plain diff/merge mis-reports state. This PR opens withgit merge -s ours upstream/main(tree byte-identical toorigin/mainbeforehand) so future integrations diff and merge cleanly against real ancestry, matching the same note in PRs Merge upstream: verified Kimi adapter, Claude Stop auto-arm cooperation, tmux composer rewrite #34/Merge upstream: timed test runner, herdr presentation spaces, GitLab MRs #28/Merge upstream: PR-poll security hardening, decision holds, instruction-ownership cleanup #23/Integrate upstream/main into fork main #17/Upstream catch-up: merge kunchenguid/firstmate main (22 commits) #11/Upstream catch-up: merge kunchenguid/firstmate main (7 commits) #10/Merge upstream (kunchenguid/firstmate) into fork main #8 about never squashing an upstream fold.Reverted: scripted no-action reply (
AGENTS.mdsection 9)Upstream's section 9 mandates the exact reply
Captain, shipshape.for a routine no-action update, "without characterizing the visible session's unrelated decisions." That's in tension with prime directive 5 (report outcomes faithfully): a canned phrase that explicitly bans mentioning anything else visible in the session can suppress something the captain would actually want to know, just because the triggering event itself needed no action. Replaced with: reply briefly and plainly (name the event, confirm no action needed) instead of a scripted phrase, and keep surfacing any other decision or outcome worth the captain's attention.tests/fm-captain-translation-contract.test.shupdated to match.Reviewed and kept
bin/backends/herdr.sh,bin/fm-composer-lib.sh,docs/verification/runtime-backends.mdHerdr section,docs/architecture.md, plus their tests) - live-reproduced fixes (NBSP-in-composer misread, SGR-90 ghost text, queued-message-hint misread as pending, unrecognized--sourcehard-erroring as "target gone", narrow-pane word-wrap splitting the composer row) that upstream's current tree still has.fm_composer_strip_ghost/fm_composer_classify_content/fm_composer_idle_matchesare the one shared owner for every adapter, not herdr-only, so these are general correctness fixes upstream hasn't made either.bin/fm-turnend-guard.sh,bin/fm-watch.sh,bin/fm-wake-lib.sh,bin/fm-supervise-daemon.sh,docs/turnend-guard.md,docs/verification/supervision.md,.agents/skills/afk/SKILL.md, plus their tests) - closes several still-open gaps upstream's current code doesn't cover: a re-arm grace window for the fresh-beacon/no-lock gap, two watcher-lock identity races (write-side and read-side), herdr stale-wake dedup on semantic agent state instead of raw pane-hash churn, signal-deferred-a-full-poll-interval on HUP/TERM, and an AFK daemon that now self-exits the moment its flag clears instead of relying solely on a delivered signal. Each was re-verified directly against upstream's current file content, not superseded by any later upstream commit.bin/fm-spawn.sh,bin/fm-ff-lib.sh,bin/fm-bootstrap.sh,docs/configuration.md,docs/crew-memory-cap.md,docs/documentation-audiences.json, plus their tests) - thesystemd --userper-crew memory cap is deliberate fork-only infrastructure for running a larger fleet on constrained hardware, with no upstream equivalent to reconcile against; the worktree-detection poll now requires a candidate to prove out viagit rev-parse --show-toplevelbefore accepting it, fixing a live false-refusal (intermediate treehouse-pool-root cwd sample) that upstream's current poll still exhibits;fm-ff-lib.sh'sintegrate_upstreamis the automation behind the ancestry-merge step above and can't exist upstream by construction (no fork/origin split there).bin/fm-fork-deliver.sh,bin/fm-brief.sh,bin/fm-review-diff.sh,bin/fm-update.sh,.agents/skills/updatefirstmate/SKILL.md,docs/fork-only-delivery.md,docs/scripts.md,bin/fm-test-run.sh, plus their tests) - the fork-only delivery path, brief's--fork-only/--amendmodes, and review-diff's fork-remote awareness are all net-new fork-specific capability with nothing upstream to go stale against;fm-update.sh's upstream-integration phase automates exactly the ancestry-merge workflow this PR performs by hand;fm-test-run.sh'sLC_ALL=Cfix forcommis a still-live upstream bug (confirmed against upstream's current file), not one upstream has since fixed..agents/skills/{clickstack,betterstack}-alert-response/SKILL.md,bin/fm-clickstack-*.sh,bin/fm-betterstack-*.sh,docs/{clickstack,betterstack}-webhook.md,docs/examples/*.env, plus their tests) - inbound alert/status-page ingestion, deliberately fork-only, fully wired end to end (bootstrap generates the check shim, the watcher runs it, durable wake queue surfaces it) and test-covered live; BetterStack's webhook route shares the ClickStack listener process/port out of hard infrastructure necessity, not duplicated code.bin/fm-notify-captain.sh(plus tests) - the fork's last-hop emergency phone page, now fully migrated from Pushover to Better Stack incidents with zero remnants of the old transport. This is a separate use of Better Stack from the webhook receiver above (outbound paging via the on-call Incidents API vs. inbound status-page event ingestion) - they share only the vendor, not code or credentials.bin/fm-pr-activity-poll.sh(wired frombin/fm-watch.sh/bin/fm-pr-check.sh) - surfaces new PR comments/reviews while a tracked PR is open, decoupled from the merge-check path, so firstmate reacts to review feedback without polling merge status alone..gitignoregained the two webhook config entries;.github/workflows/no-mistakes-required.ymlscopes its gate tokunchenguid/firstmateso it doesn't also fire on the fork's own PRs (which don't go through no-mistakes);tests/fm-ask-user-authority.test.shis a plainchmod +xwith no content change.No fork-only file, feature, or test was dropped. The only diff in this PR is the ancestry merge (empty tree change) and the section 9 reply revert above.