Skip to content

Fix setup after the merge, GitHub failure messages, and onboarding docs - #70

Merged
alexei-led merged 8 commits into
mainfrom
fix/setup-after-merge
Nov 24, 2026
Merged

alexei-led merged 8 commits into
mainfrom
fix/setup-after-merge

Conversation

@alexei-led

Copy link
Copy Markdown
Contributor

Fixes beta usability findings B3, B6, I7, F2, B9 and I9 (setup after the merge, GitHub failures, owner note, onboarding docs).

What changes

  • B3: setup reads the merge before the leftover archfit/setup branch. After the merge it prints state: advisory checks on and next: open the setup page: <setup.AppURL>, then a line saying that an owner approves the first policy there and then makes the check required. When the merged policy has gate: required, it prints state: required checks on and next: check that a branch ruleset requires archfit/gate: …/settings/rules. The link comes from setup.AppURL, and a test pins that.
  • B6, setup: gh reports a network failure as an invalid token. Setup now tells three cases apart: no login, a refused token (HTTP 401) and an unreachable GitHub (network error, TLS error, any other HTTP status, or no answer in 30 s). The new state is setup pull request not opened; could not reach GitHub, with the cause. The cause never includes the request URL or a response body.
  • B6, request: archfit request no longer says "no open pull request" when the branch has no upstream. It names the missing upstream and gives next: git push -u <push remote> HEAD. A network failure prints could not reach GitHub: <cause>; nothing sent. When nothing reached GitHub for a request from check output, the last line is or reply on the pull request: /archfit request <why>. It is never printed for an unknown POST outcome or for a can answer.
  • I7: when init or setup names the current login as the only owner, it says once that owners approve requests and that the owner should not write most of the changes.
  • F2, B9, I9: the README and getting-started send GitHub checks through archfit setup and keep init as the local-only path. Install lines use the latest release. ci.md explains the # candidate pin. The commands reference, the try-it page and the onboarding texts show the new output.

Checks

  • GOWORK=off make all: pass (lint, race tests, build, archfit: pass). make names: pass.
  • Regression tests fail on 266fa8c and pass here: TestSetupDetectsMergedWithoutGitHub (B3 and required), the gh cannot reach GitHub case in TestSetupResumesPublishedBranchWithoutMutations, and the no-upstream, network and reply cases in TestRequestSendsFromCLI. Story vocabulary checks run on all new output.
  • Review: revmux comprehensive (claude + codex, 4/4 sources) found 1 major and 7 minor issues, all fixed. revmux final (2/2) found 1 major (gh's HTTP 401: … error form), fixed.
  • Not run: GitNexus detect-changes. The index covers only the main checkout, not this worktree. Impact analysis ran before the edits. No fixtures, policies or extractors changed, so language-contracts and tool-locks were not run.

Follow-up (existing behaviour, not changed here)

  • archfit request builds the pull request head from the push owner and the upstream branch name. When a branch tracks origin/main but pushes to fork/feature, it looks up fork:main, and it could post on an unrelated pull request.

When init or setup names the current GitHub login as the only owner, it
says that owners approve requests and that the owner should not be the
author of most changes (I7).
…unreachable

After the setup pull request is merged, setup read the leftover
archfit/setup branch before the merge and sent the user back to it (B3).
It now reads the merge first and reports advisory checks on, with the
setup page (setup.AppURL) as the next step, or required checks on when
the merged policy has gate: required, with the ruleset as the next step.

gh reports a network failure as an invalid token. Setup now reads gh's
Error: line and says it could not reach GitHub instead of saying that gh
is not signed in (B6).
archfit request said there was no open pull request when the branch had
no upstream (pushed without -u), and "GitHub lookup failed" when the
network failed (B6). It now names the missing upstream or the network
cause, never the URL or the token, and reserves "no open pull request"
for GitHub's own answer. When nothing reached GitHub for a request from
check output, it prints the /archfit request reply to post instead.
…p texts

getting-started and the README now name archfit setup for checks on
GitHub and keep init as the local-only path (F2). Install lines use the
latest release instead of a fixed v0.9.0, and ci.md explains the
candidate pin (B9, I9). The setup and request references and the
onboarding texts show the states after the merge, the unreachable GitHub
messages, the pull request reply line and the owner note.
…emote

Review follow-ups. Setup now prints the cause of a gh failure without the
request URL or a response body, shows only the status of an HTTP answer,
matches a 401 on the status code rather than anywhere in the line, and
reports a gh that does not answer as unreachable. An unreachable run also
says it cannot show the pull request. The no-upstream hint names the push
remote. Tests pin that an unknown POST outcome never offers the reply
line. Docs match the real init output and the ruleset wording.
gh 2.105 also reports an HTTP answer as "HTTP 401: <message> (<url>)".
Setup now reads that form, so a rejected token is a refused login and any
other status prints only its code, never the message or the URL.
@archfit-review

archfit-review Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ Archfit: pass

@alexei-led
alexei-led merged commit d3e33e4 into main Nov 24, 2026
19 checks passed
@alexei-led
alexei-led deleted the fix/setup-after-merge branch November 24, 2026 11:43
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