Skip to content

Show whether this checkout can be reviewed - #43

Closed
SeanLF wants to merge 2 commits into
prooflinedev:mainfrom
SeanLF:refusal-reason
Closed

SeanLF wants to merge 2 commits into
prooflinedev:mainfrom
SeanLF:refusal-reason

Conversation

@SeanLF

@SeanLF SeanLF commented Nov 6, 2026

Copy link
Copy Markdown

proofline status now says whether the checkout can be reviewed, and what to do next if not. A review request refused by a setting also links where to change it.

Who it helps: new organizations before their first review. Today they learn setup is unfinished only from a refused request, and proofline setup opens the generic organization picker. Agents get the same answer from status --json.

$ proofline status        # in SeanLF/news-digest, setup unfinished
...
server: accepted the token
repository: SeanLF/news-digest is connected
setup: not finished
environment: none links this repository
setup: Bind delete the environment to a current GitHub environment.
setup: Confirm the production environment.
reviewable: no
next: finish setup at https://proofline.sh/orgs/github/seanlf

Decisions

  • Reviewable means what proofline review here needs: configuration_complete, and a ready configured environment linking the repository (the refusals NO_LINKED_ENVIRONMENT and ENVIRONMENT_NOT_READY). Not activation_complete, which the console sets after the first review. Not an empty blocker list. Blockers are the reason, as the server wrote them.
  • Setup comes from the MCP get_setup_status tool, the only source; without setup:write, status says it cannot tell. null also covers a server that did not answer in time or an answer the CLI could not read; false is a confirmed answer.
  • The exit code still reflects only the token, so scripts using status as a token check keep working. Agents read reviewable; every --json report has the same fields.
  • A refused review request links the console: keyed on RunNowRefused.refusal.reason, only for a 400, at the orgs/github/{owner} route setup builds.
  • Not verified on an organization with a configured environment; mine has none yet. repository_ids and ready are read as the console reads them, and a missing or renamed field reports cannot tell, not no.

Verify

  • In a repository with unfinished setup: proofline status and proofline status --json (checked live), and proofline review --commit HEAD prints the server's refusal and Change it at <console>.
  • cargo test --locked --test status; cargo test --locked --lib scope_hint; cargo test --locked --test http -- a_refused_review only_a_400

🤖 Generated with Claude Code

https://claude.ai/code/session_0131zPk6VGEqnVzoiizYQeh5

SeanLF and others added 2 commits November 6, 2026 12:17
A refused review request printed only the server's detail. A new
organization whose repository had no linked environment read "link one
from the repository's setup" with no way there; `proofline setup` opens
the generic organization picker.

The review-request operations answer such a refusal with RunNowRefused,
whose `refusal` member exists for clients to link from. Problem dropped
it. Keep its reason, and after the detail print the owner's console.

- The detail already names the setting, so the CLI adds only where to
  change it: one link for every reason, including ones a newer server
  adds, with no per-reason text to drift from the server's.
- Only a 400 carrying a readable reason gets the link.
- The link is the `orgs/github/{owner}` route `setup` already builds,
  lowercased as setup's `console_url` addresses organizations.
- The hook report is one line, so it joins the two with "; ".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0131zPk6VGEqnVzoiizYQeh5
`proofline status` showed the organization and token but not whether a
review would run. A new organization learned that only from a refused
request.

After the token check, status reads whether the checkout's repository is
connected and what setup says, then prints `reviewable` and the next
step. `--json` prints the same for agents.

- Setup comes from the MCP `get_setup_status` tool, the only source;
  it needs `setup:write`, and without it status says it cannot tell.
- Reviewable means `configuration_complete` and a ready configured
  environment that links the repository: the console starts reviews on
  the first, and the refusals NO_LINKED_ENVIRONMENT and
  ENVIRONMENT_NOT_READY name the second. `activation_complete` is not
  it; the console sets it after the first review. Open blockers are the
  reason, shown as the server wrote them.
- The environment fields `repository_ids` and `ready` are read as the
  console reads them; no contract names them, so a missing one is
  cannot tell, not no.
- `reviewable` is null when no answer was read: the server did not
  answer in time, or its answer was unreadable. `false` is a confirmed
  answer.
- The sign-in hint repeats the token's scopes, because `login --scope`
  replaces them.
- The exit code still reflects only the token, so scripts that use
  status as a token check keep working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0131zPk6VGEqnVzoiizYQeh5

mohsen1 commented Nov 17, 2026

Copy link
Copy Markdown
Member

Codex

Closing as out of scope for the CLI.

@mohsen1 mohsen1 closed this Nov 17, 2026
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