Skip to content

Port upstream batch 1: teardown fork-remote eligibility (#31) + afk skill desc (#45) - #2

Merged
augustomklee merged 1 commit into
mainfrom
port-upstream-batch-1
Jun 24, 2026
Merged

Port upstream batch 1: teardown fork-remote eligibility (#31) + afk skill desc (#45)#2
augustomklee merged 1 commit into
mainfrom
port-upstream-batch-1

Conversation

@augustomklee

Copy link
Copy Markdown
Owner

What

First batch of the cherry-pick-and-port of upstream commits into this psmux/Windows fork. Both changes were re-applied by hand: the fork diverged at the psmux port, so upstream diffs don't apply cleanly, and doc deltas land in CLAUDE.md (not the upstream AGENTS.md).

kunchenguid#31 (6f5800e) - teardown allows work on any remote, incl. a fork

bin/fm-teardown.sh: unify the unpushed-work safety check so git log HEAD --not --remotes (empty = on any remote, fork included) is the primary gate for every mode. The local default-branch check now runs only as a fallback for local-only projects whose work is on no remote at all.

kunchenguid#45 (2a2fe05) - afk skill description

.agents/skills/afk/SKILL.md: replace a : with ; in the description (a colon there can confuse skill-description parsing).

Docs

CLAUDE.md: ported the two prose updates from kunchenguid#31 (prime directive #3 wording + the local-only delivery-mode teardown note).

Deliberately not ported

  • tests/fm-teardown.test.sh and its README test-list line. Upstream's test drives the script via FM_ROOT_OVERRIDE / FM_STATE_OVERRIDE, scaffolding introduced by the secondmate rewrite (feat: support persistent secondmates kunchenguid/firstmate#37), which this fork is not taking. Adding fork-native override support for a regression test is a reasonable follow-up.

Verification

  • bash -n bin/fm-teardown.sh passes.
  • No raw tmux calls introduced (fork routes through $FM_MUX).

…nguid#31) + afk skill desc (kunchenguid#45)

Cherry-pick-and-port of two upstream commits, adapted to the fork (logic
re-applied by hand because the fork diverged at the psmux port; doc deltas
folded into CLAUDE.md rather than AGENTS.md).

kunchenguid#31 (6f5800e) - fm-teardown.sh: unify the unpushed-work safety check so
"HEAD --not --remotes" (on any remote, fork included) is the primary gate for
every mode; the local default-branch check now runs only as a fallback for
local-only projects whose work is on no remote at all. Fixes false refusal of
fork-pushed work (the exact upstream-contribution flow this fork uses). Safety
property preserved: truly unpushed work is still refused; --force unchanged.

kunchenguid#45 (2a2fe05) - afk SKILL.md: replace a ':' with ';' in the description.

Not ported: upstream's tests/fm-teardown.test.sh and its README test-list
line. That test drives the script via FM_ROOT_OVERRIDE / FM_STATE_OVERRIDE,
scaffolding introduced by the secondmate rewrite (kunchenguid#37), which this fork is
deliberately not taking. Adding fork-native override support for a regression
test is a sensible follow-up.
@augustomklee
augustomklee merged commit f2c4d88 into main Jun 24, 2026
@augustomklee
augustomklee deleted the port-upstream-batch-1 branch June 24, 2026 14:40
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