Problem
Once reviewer credentials can be collected before final commit, users need a safe way to understand the in-memory draft state when they revisit the reviewer entity flow. The UI should never show secret values, but it should clearly show which credential keys are missing, already present in the configured backend, staged in memory, skipped, or deferred.
This matters most for GitHub App reviewers because the credential bundle has two required keys and one optional key.
Related: #291, #317, #347.
Desired behavior
Reviewer entity editing should include a credential status section for credential-bearing reviewer entities.
The status should be key-specific and should not expose secret values:
missing: required key is neither present in the backend nor staged in memory.
existing: key exists in the resolved credential backend.
staged: key has a draft-local value that will be written at commit.
skipped optional: optional key was intentionally skipped.
deferred: user chose to configure later.
The section should also summarize the destination, including the credential ref and resolved secrets-management profile/backend when available.
Acceptance criteria
- PAT reviewer status shows only
git_token.
- GitHub App reviewer status shows
github_app_id, github_app_private_key, and optional github_app_installation_id.
- Staged secrets are represented as staged/pending without rendering secret values.
- Existing stored secrets can be kept without forcing overwrite.
- Existing partial GitHub App credentials surface which required key is still missing.
- Returning to reviewer entity setup after setting draft secrets shows those keys as staged.
- Final commit summary includes reviewer credential readiness without leaking secret values.
Empirical verification
Use tmux to drive cr init in a real PTY.
Required captures:
- Before entering secrets: GitHub App reviewer shows required keys as missing.
- After entering app id/private key and skipping installation id: those required keys show staged, optional key shows skipped/optional.
- Re-entering reviewer entity setup before commit preserves the staged status.
- A seeded backend with an existing PAT reviewer token shows
git_token as existing and offers keep/replace behavior.
- No captured screen includes raw secret values.
Problem
Once reviewer credentials can be collected before final commit, users need a safe way to understand the in-memory draft state when they revisit the reviewer entity flow. The UI should never show secret values, but it should clearly show which credential keys are missing, already present in the configured backend, staged in memory, skipped, or deferred.
This matters most for GitHub App reviewers because the credential bundle has two required keys and one optional key.
Related: #291, #317, #347.
Desired behavior
Reviewer entity editing should include a credential status section for credential-bearing reviewer entities.
The status should be key-specific and should not expose secret values:
missing: required key is neither present in the backend nor staged in memory.existing: key exists in the resolved credential backend.staged: key has a draft-local value that will be written at commit.skipped optional: optional key was intentionally skipped.deferred: user chose to configure later.The section should also summarize the destination, including the credential ref and resolved secrets-management profile/backend when available.
Acceptance criteria
git_token.github_app_id,github_app_private_key, and optionalgithub_app_installation_id.Empirical verification
Use tmux to drive
cr initin a real PTY.Required captures:
git_tokenas existing and offers keep/replace behavior.