Skip to content

fix(install-tend): make all-defaults one click and the OAuth mint recipe runnable - #1012

Merged
max-sixty merged 4 commits into
mainfrom
onboarding
Aug 19, 2026
Merged

max-sixty merged 4 commits into
mainfrom
onboarding

Conversation

@max-sixty

@max-sixty max-sixty commented Aug 19, 2026 •

Copy link
Copy Markdown
Owner

Follow-ups #4/#5/#6 from #1010, none of which had been tested.

  • Kickoff question 3 becomes an accept-defaults/customize gate. The all-defaults path answers one dialog of three single-selects, so the empty-multiselect submission — and Claude Code's "You have not answered all questions" banner it trips — can't occur. The four-area multiselect fires only on Customize…, where selection can only mean "change this area" (the old labels read as include/exclude toggles). Both surfaces list only areas still open: a request-settled area follows the request at its step, an already-applied area stays put, and the default bio is quoted rather than called "recommended" sight-unseen.
  • Step 7a's CLI mint path names its mechanism instead of a bare "run it in the background" over a blocking TOKEN=$(...) snippet: launch the pipeline via the Bash tool's run_in_background (a foreground call traps the authorize URL in its pending result and times out before the user has anything to click), hand over the URL from the task output, and read the task's exit status as the sole success signal. Validated against a live claude setup-token run: the URL lands in the task output within seconds, and a failed run exits non-zero having stored nothing.
  • The overlay the skill writes gains frontmatter. The running-tend overlay is loaded by skill discovery, which needs name/description frontmatter the placeholder never had — every adopter shipped an overlay the CI sessions never loaded. The requirement now covers the customized-overlay path too, and an existing overlay without the frontmatter (PRQL and numbagg ship exactly that shape) is repaired in place rather than skipped as already done.
  • Follow-through on fix: name the real cause when an OAuth run ends empty, and keep keys out of chat #1011, which rewrote the same 7a section and merged mid-branch: its start-when-at-browser gate moved ahead of the launch instruction (where a top-to-bottom reader needs it), and four inherited gaps closed — a completion signal for the user-runs-gh secret set paths (the step's pre-check printing SET), gh logged in as the maintainer on the Manual machine, step 1's registry Manual route keeping the token out of the chat transcript like 7a now does (with the repo-level delete gated on the secret appearing in the environment), and a duplicated URL in 7b.

Reviewed by an adversarial pass and a context-blind walkthrough that traced five scenarios (all-defaults, customize, no-README, resume, the OAuth mint executed literally); all findings fixed and re-verified, including a post-merge pass over the composed 7a.

Testing: the wrapper's unit tests pass; the SKILL.md changes are prose, covered by the blind walkthrough rather than code tests.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 3 commits August 18, 2026 20:38
…ipe runnable

Follow-ups from #1010, none of them previously tested:

- Kickoff question 3 becomes an accept-defaults/customize gate; the area
  multiselect fires only on Customize…, so the normal path no longer
  submits an empty multiselect, which tripped Claude Code's "You have
  not answered all questions" banner. Both surfaces list only areas
  still open: one a request settles follows the request, one a previous
  run applied stays put, and the bio default is quoted rather than
  called "recommended" sight-unseen.
- Step 7a's CLI mint path names its mechanism instead of a bare "run it
  in the background": launch the pipeline with the Bash tool's
  run_in_background (a foreground call traps the authorize URL in its
  pending result and times out), read the URL from the task output, and
  read the task's exit status as the sole success signal. Validated
  against a live `claude setup-token` run: the URL lands in the task
  output within seconds, and a failed run exits non-zero having stored
  nothing.
- The step-4 overlay snippet gains the name/description frontmatter
  skill discovery needs — without it, every adopter shipped an overlay
  the CI sessions could never load.

Reviewed by an adversarial pass and a context-blind walkthrough
(scenarios: all-defaults, customize, no-README, resume, OAuth mint); all
findings fixed and re-verified.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
# Conflicts:
#	plugins/install-tend/skills/install-tend/SKILL.md
…rted

Four small gaps a post-merge review found, all inherited from #1011's
switch to the user storing secrets themselves:

- The Manual and API-key paths had no completion signal; the step now
  finishes when its pre-check prints SET, re-run once the user says
  they're done.
- The Manual machine needs `gh` logged in as the maintainer, not just
  Claude Code.
- Step 1's registry-token Manual route still had the user paste a live
  registry credential into chat; it now follows 7a's pattern — the user
  runs the substituted `gh secret set` and the token stays out of the
  transcript.
- 7b stated the platform.openai.com key URL twice.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two gaps about how far each fix reaches, not about the changes themselves — the diff's own claims hold up. The 7a exit-status claim in particular is exactly right: an empty TOKEN leaves [ -n "$TOKEN" ] as the last command and the script exits 1, a non-empty one hands the status straight to gh secret set, so 0-iff-stored is true with no set -e needed. The wrapper backs the rest — TIMEOUT_SECONDS = 900, the authorize URL goes to stderr as soon as the TUI offers it (so it shows up in the background task's output, not the captured stdout), and a stale --code-file is unlinked at startup.

The overlay frontmatter fix only reaches new installs. Of the six adopter repos in data/consumers.json that ship a running-tend overlay, two — PRQL/prql and numbagg/numbagg — open with an # Running Tend… heading and no frontmatter, so their CI sessions still never load them. Nothing repairs those: the Kickoff's "Skip steps that are already done — check each prerequisite before acting" makes step 4 a no-op on a re-run once the file exists, and tend check doesn't look at the overlay. One sentence in step 4's preamble would close it — an existing overlay counts as done only if it opens with that frontmatter; one without it gets the frontmatter added in place. Happy to push that commit if you want it in this PR rather than a follow-up.

The completion signal added at step 7 doesn't cover the new step-3 Manual route. "Where a path below has the user run gh secret set themselves…" is scoped to 7a/7b, but this PR turns step 3's registry Manual route into exactly that shape — the user now stores the token themselves instead of pasting it back. Step 3 pairs that with a destructive follow-on ("recreate it on the Environment, delete the repo-level copy"), and its Verify block checks deployment-branch-policies, never that the secret exists. So on this route the agent can confirm-and-delete the repo-level PYPI_TOKEN before the user has run their command, and the release workflow is broken until they do — the one route where the migration can drop the credential on the floor. Inline suggestion below.

…delete

Both from tend-agent's review of #1012:

- The overlay frontmatter fix only reached new installs; step 4 now
  treats an existing overlay without the frontmatter as not done and
  adds it in place (PRQL and numbagg ship exactly that shape today).
- Step 1's registry Manual route pairs a user-run store with an
  agent-run delete; the delete now waits until
  `gh secret list --env` shows the secret, since nothing else tells the
  agent the user's write landed.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit a2149c9 into main Aug 19, 2026
12 checks passed
@max-sixty
max-sixty deleted the onboarding branch August 19, 2026 05:52
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