Skip to content

chore: reduce fork divergence to the clickup feature only - #5

Merged
sanis merged 4 commits into
mainfrom
fm/fm-fork-clickup-only-r1
Jul 30, 2026
Merged

sanis merged 4 commits into
mainfrom
fm/fm-fork-clickup-only-r1

Conversation

@sanis

@sanis sanis commented Jul 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

Reduces this fork's divergence from upstream/main to the ClickUp feature and nothing else.

  • Merges upstream's one new commit (e595611, gitignore config/ directory rule).
  • Reverts the login-shell ancestry fix (fork commit cdcedcb) in bin/fm-harness.sh, bin/fm-session-lock-lib.sh, and tests/fm-secondmate-harness.test.sh back to upstream's exact content. This is the captain's explicit decision, made with full knowledge that it reintroduces the basename: illegal option bug on a login shell, and it is deliberately not being sent upstream.
  • Takes upstream's .gitignore (directory-level config/ rule) and tests/fm-gitignore-config.test.sh wholesale, dropping the fork's exact-filename list and its config/clickup.json line — upstream's blanket rule already covers it.
  • Fixes tests/fm-clickup-contract.test.sh's gitignore assertion, which grepped .gitignore for the literal string config/clickup.json and broke once that line was dropped. Replaced with a behavioral git check-ignore -q check, matching upstream's own move to behavioral test coverage over source assertions (a2d5f26).

Diff against upstream/main

$ git diff --name-only upstream/main HEAD
.agents/skills/clickup/SKILL.md
AGENTS.md
README.md
bin/fm-test-run.sh
docs/clickup-command.md
docs/documentation-audiences.json
tests/fm-clickup-contract.test.sh

Exactly 7 paths: 3 are ClickUp-only files that exist solely in this fork; the other 4 (AGENTS.md, README.md, docs/documentation-audiences.json, bin/fm-test-run.sh) are shared upstream files where the only remaining difference from upstream is the ClickUp-related lines added on top.

Login-shell ancestry fix: reverted, not carried, not proposed upstream

bin/fm-harness.sh, bin/fm-session-lock-lib.sh, and tests/fm-secondmate-harness.test.sh are byte-identical to upstream:

$ for f in bin/fm-harness.sh bin/fm-session-lock-lib.sh tests/fm-secondmate-harness.test.sh tests/fm-gitignore-config.test.sh .gitignore; do
    git diff --quiet upstream/main HEAD -- "$f" && echo "OK  $f" || echo "DIFF $f"
  done
OK  bin/fm-harness.sh
OK  bin/fm-session-lock-lib.sh
OK  tests/fm-secondmate-harness.test.sh
OK  tests/fm-gitignore-config.test.sh
OK  .gitignore

Because these five files are upstream-byte-identical, upstream's own test coverage applies to them going forward — that is what makes the reduced verification in this PR sound rather than a shortcut.

config/clickup.json ignore check

$ git check-ignore -v config/clickup.json
.gitignore:11:config/	config/clickup.json

Confirmed: still matched, this time by upstream's blanket config/ rule rather than a fork-local line.

Test verification

The captain changed the verification bar mid-task after the full suite (bin/fm-test-run.sh --all) was killed mid-flight once and returned an untrustworthy exit status once (the real-Herdr-gated family is the most likely cause of the earlier death). Per that decision, this PR is verified with a targeted set instead of the full suite:

Bears on the reverted bin/fm-harness.sh / bin/fm-session-lock-lib.sh:

  • tests/fm-secondmate-harness.test.sh — all cases pass (one case initially reported a false failure caused by ambient CLAUDECODE=1 leaking from the live agent session that was running this verification into the test's fake-ps subprocess; re-run with that ambient state stripped, and it passes cleanly)
  • tests/fm-session-start.test.sh — pass
  • tests/fm-turnend-guard.test.sh — pass
  • tests/fm-claude-stop-autoarm.test.sh — pass
  • tests/fm-backend.test.sh — pass
  • tests/fm-kimi-harness.test.sh — pass
  • tests/fm-watcher-lock.test.sh — pass

Bears on the fork-specific work and the gitignore change:

  • tests/fm-clickup-contract.test.sh — pass (after the fix above)
  • tests/fm-gitignore-config.test.sh — pass

Not exercised: the real-Herdr-gated test family was deliberately not exercised in this verification pass, by the captain's decision. This PR does not claim full-suite coverage and does not claim a green full suite — only the targeted set above, plus the byte-identical-to-upstream argument for the five reverted/adopted files.

shellcheck is clean on every bin/ script touched: bin/fm-harness.sh, bin/fm-session-lock-lib.sh, bin/fm-test-run.sh.

Expected CI

Expect exactly 2 red checks requiring this PR to be raised via the no-mistakes pipeline — a known gate-registration mismatch (the pipeline's first step would flatten this branch's upstream merge commit, and firstmate's gate registration currently targets the upstream project rather than this fork), not a problem with this change. Not merging; that decision belongs to the captain.

Summary by CodeRabbit

  • Bug Fixes

    • Improved detection of harness processes across different command-path formats.
    • Broadened configuration-directory ignore behavior so new files under config/ are automatically excluded from version control.
  • Tests

    • Added coverage to verify broad config/ ignore behavior.
    • Updated harness and configuration checks to validate actual Git behavior and wrapper detection.

Loading
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.

2 participants