Repository navigation
Conversation
added 11 commits
August 31, 2026 13:21
Scaffolded briefs hardcoded GitHub instructions (gh-axi, "PR") even for the fleet's GitLab projects. Detect the forge from each project's local clone origin remote (falling back to .gitlab-ci.yml/.github when the host is unrecognized) and use it to pick the right tool and terminology (gh-axi/pull request/PR vs glab/merge request/MR) across Setup, Rules, and the Definition of done for scout and every ship mode. An unresolvable forge gets an explicit check-it-yourself marker instead of a silent GitHub default.
…unchecked requirement
The rebase reconciliation on top of PR #4's newly landed mr-description requirement carried that requirement through the forge resolver instead of hardcoding "PR description", so a GitLab project's brief says "MR description" per the captain's standing GitLab vocabulary rule. Extend the existing mr-description coverage to pin that per-forge wording for both direct-PR and no-mistakes modes.
alandomio
force-pushed
the
fm/fm-brief-forge-detect
branch
from
August 31, 2026 11:23
4c96225 to
27b1222
Compare
…f.sh The rebase reconciliation for PR #3 found the same hardcoded-"PR description" bug in two places in this file at once (the direct-PR DOD and the no-mistakes DOD), because a sibling PR added new forge-vocabulary prose without going through the existing resolver. Record the maintenance rule in the header comment so it does not recur a third time.
Owner
Author
|
Superseded by #7. This branch's no-mistakes gate binding drifted out of sync after an earlier manual rebase+force-push (done while no-mistakes runs were paused fleet-wide for a daemon upgrade), so per captain ruling the work was redone on a fresh branch cut from current main and driven through the no-mistakes pipeline properly, producing a genuine attestation rather than a hand-driven one. Closing this PR in favor of #7. |
alandomio
added a commit
that referenced
this pull request
Sep 1, 2026
…t's forge (#7) * fix(fm-brief): derive forge vocabulary from the project's git remote Scaffolded briefs hardcoded GitHub instructions (gh-axi, "PR") even for the fleet's GitLab projects. Detect the forge from each project's local clone origin remote (falling back to .gitlab-ci.yml/.github when the host is unrecognized) and use it to pick the right tool and terminology (gh-axi/pull request/PR vs glab/merge request/MR) across Setup, Rules, and the Definition of done for scout and every ship mode. An unresolvable forge gets an explicit check-it-yourself marker instead of a silent GitHub default. * no-mistakes(review): recognize MR ci-ready token, guard forge detection to clone root * no-mistakes(review): honor FM_PROJECTS_OVERRIDE in brief forge detection * no-mistakes(document): note PR/MR ready signal for undetermined-forge briefs * no-mistakes(document): document glab as a required universal toolchain tool * no-mistakes(document): revert bootstrap glab check, document glab as unchecked requirement * no-mistakes(review): normalize brief repo arg, drop .github forge fallback * no-mistakes(review): make scout brief text forge-aware, correct resolver comment * no-mistakes(review): correct resolver parity claim in brief test comment * no-mistakes(document): document brief forge derivation in fm-brief help * test(fm-brief): cover forge-aware mr-description wording The rebase reconciliation on top of PR #4's newly landed mr-description requirement carried that requirement through the forge resolver instead of hardcoding "PR description", so a GitLab project's brief says "MR description" per the captain's standing GitLab vocabulary rule. Extend the existing mr-description coverage to pin that per-forge wording for both direct-PR and no-mistakes modes. * no-mistakes(document): warn against hardcoding PR/MR nouns in fm-brief.sh The rebase reconciliation for PR #3 found the same hardcoded-"PR description" bug in two places in this file at once (the direct-PR DOD and the no-mistakes DOD), because a sibling PR added new forge-vocabulary prose without going through the existing resolver. Record the maintenance rule in the header comment so it does not recur a third time. --------- Co-authored-by: Alan Domio <a.domio@peter-park.de>
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.
Makes
bin/fm-brief.shderive the generated brief's forge vocabulary (pull request/PR/gh-axivs merge request/MR/glab) from the target project's own git remote, instead of hardcoding GitHub into every brief regardless of which forge the project actually uses.Why it matters: this fleet runs almost entirely on GitLab, but every generated brief previously told the worker to use
gh-axiand say "PR" even for GitLab projects. That is wrong tooling and wrong vocabulary handed straight to a crewmate at spawn time. The fix reads the project's local clone origin remote (falling back to a.gitlab-ci.ymlmarker for self-hosted GitLab, and to an existing.githubdirectory for GitHub Enterprise) and renders the correct noun, tool, anddone:convention consistently across the Setup/Rules line, the "never merge a <noun>" rule, and every ship mode's Definition of done. When the forge can't be determined, the brief says so explicitly and tells the worker to rungit remote -v, rather than guessing GitHub.This branch was rebased onto current
mainto pick up PR #4 (merged as 70794fb), which independently added a requirement that every generated PR/MR description go through themr-descriptionskill. That line hardcoded "PR description," which is exactly the wrong-forge-vocabulary bug this PR exists to remove, so the rebase reconciliation carries that requirement through this PR's own forge resolver instead of reverting or duplicating it — see Change below.Change
bin/fm-brief.shfm_brief_detect_forge/fm_brief_resolve_project_dir, computes$FORGE_NOUN/$FORGE_ABBR/$FORGE_TOOL/$FORGE_TOOLS_LINEonce per brief, and threads them through the Setup/Rules line, rule 1, and every ship mode's DOD (scout, no-mistakes, direct-PR, local-only)tests/fm-brief.test.shtest_forge_detection_shapes_vocabularyand related forge-detection tests (bare.githubdir, repo-arg spellings, nested clone,FM_PROJECTS_OVERRIDE), plus new assertions pinning the reconciled forge-awaremr-descriptionwordingRebase reconciliation (
bin/fm-brief.sh):mr-descriptionskill" line (landed onmainvia PR fix(bin): require mr-description skill for direct-PR and no-mistakes DODs #4) now reads "Write the$FORGE_ABBRdescription..." so it renders "PR description" for GitHub and "MR description" for GitLab, per the standing rule that GitLab work says "merge request"/"MR."mr-descriptionskill's own name is unaffected either way; only the surrounding prose is forge-aware.Validation
bash tests/fm-brief.test.sh— all 25 tests pass, including the new forge-awaremr-descriptionwording assertions for both direct-PR and no-mistakes modes (GitHub project → "PR description", GitLab project → "MR description", and an explicitassert_no_grepthat a GitLab brief never contains "Write the PR description").bin/fm-lint.sh— ShellCheck 0.11.0 (pinned) and actionlint 1.7.12 (pinned), both clean.gh pr view 3 --repo alandomio/firstmate --json mergeable,mergeStateStatusconfirmsMERGEABLE/CLEANafter the rebase and force-push.Follow-ups
None. This update is scoped to the rebase and its forced reconciliation; no new scope was added.
🤖 Generated with Claude Code