Skip to content

Brand default bot-token secret as TEND_BOT_TOKEN - #538

Merged
max-sixty merged 1 commit into
mainfrom
agent-name
May 16, 2026
Merged

max-sixty merged 1 commit into
mainfrom
agent-name

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

  • Rename the generator's default bot_token_secret from BOT_TOKEN to TEND_BOT_TOKEN. It was the only default without a vendor/product prefix, easy to collide with an existing repo secret.
  • Adopters with an explicit secrets.bot_token override (e.g. WORKTRUNK_BOT_TOKEN, PRQL_BOT_GITHUB_TOKEN) are unaffected.
  • Updates docs (README, docs/tend.example.yaml, TODO), the install-tend setup steps + checklist, the review-reviewers skill prose, and the hand-written .github/workflows/review-reviewers.yaml.
  • Tests + regtest fixtures regenerated.
  • Generated .github/workflows/tend-*.yaml are intentionally not touched — they pick up the new default at the next release + nightly regen, per the project rule that the action ref pins to the released generator version.

Adopter migration

Repos using the default need to add a TEND_BOT_TOKEN repo secret (same value as the existing BOT_TOKEN) before the next nightly regen swaps the workflow references. The three affected consumers (max-sixty/tend, max-sixty/cargo-affected, numbagg/numbagg) already have the new secret set; BOT_TOKEN can be deleted some days after each regen lands.

Test plan

  • uv run pytest tests/ — 230 passing
  • pre-commit run --all-files — clean
  • First nightly run on a consumer after release picks up the new default and the regenerated workflow references secrets.TEND_BOT_TOKEN

🤖 Generated with Claude Code

`BOT_TOKEN` was the one default secret name without a vendor or product
prefix, making it easy to collide with an existing repo secret. Cut the
default over to `TEND_BOT_TOKEN`; adopters who set `secrets.bot_token`
explicitly are unaffected.

Includes regenerated docs, install-tend / review-reviewers skill prose,
review-reviewers.yaml (the only hand-written workflow), tests, and
regtest fixtures. Generated `.github/workflows/tend-*.yaml` are
intentionally left alone — they pick up the new default at the next
release+nightly regen.

Adopter migration (only repos using the default): add a
`TEND_BOT_TOKEN` secret mirroring the existing `BOT_TOKEN` before the
next nightly regen swaps the workflow references. `BOT_TOKEN` can be
deleted afterwards.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 5186855 into main May 16, 2026
6 checks passed
@max-sixty
max-sixty deleted the agent-name branch May 16, 2026 20:37
This was referenced May 16, 2026
max-sixty added a commit that referenced this pull request May 16, 2026
## Summary

Release 0.0.23. 6 commits since 0.0.22:

- #520 Cut tend's CI over to the Codex harness — tend now dogfoods Codex
- #531 fix(nightly-survey-files): print bucket/count to stderr — keep
JSON output uncontaminated
- #536 docs(claude-auth): correct June 15 2026 framing; recommend OAuth
for subscribers
- #538 **breaking:** rename default bot-token secret `BOT_TOKEN` →
`TEND_BOT_TOKEN`. Adopters using the default must add a `TEND_BOT_TOKEN`
repo secret before their next regen (or set `secrets.bot_token` in
`.config/tend.yaml` to keep using the old name)
- #539 fix(codex-action): export `CLAUDE_PLUGIN_ROOT` so plugin-bundled
scripts resolve under Codex
- #533 chore: regenerate workflows with tend 0.0.22

## Test plan

- [ ] CI green (test, test-worker, lint)
- [ ] After merge: tag `0.0.23`, PyPI publish, `uvx [email protected] --help`
works
- [ ] Regenerate tend's own workflows to `@0.0.23`

Co-authored-by: Claude <[email protected]>

Co-authored-by: Claude <[email protected]>
max-sixty added a commit that referenced this pull request May 16, 2026
## Summary

Release 0.0.23 — unblocks the review-reviewers Codex migration.

Since 0.0.22:
- #539 — codex-action exports `CLAUDE_PLUGIN_ROOT` so skills using
`${CLAUDE_PLUGIN_ROOT}/scripts/...` work unchanged under Codex (the
blocker on PR #537)
- #538 — `TEND_BOT_TOKEN` as the default bot-token secret name
- #540 — `install-tend --with-install-test` for pre-merge verification
- #536 — docs(claude-auth) framing for 2026-06-15
- #531 — nightly-survey-files prints bucket/count to stderr
- #520 — tend's own CI flipped to the Codex harness (live; consumer
regen moves it forward)

## Test plan

- [ ] CI green (test, test-worker, lint)
- [ ] After merge: tag `0.0.23`, PyPI publish, `uvx [email protected] --help`
works
- [ ] Regenerate main's workflows to `@0.0.23`
- [ ] Regenerate #537's codex workflows to `@0.0.23` and unblock the
review-reviewers migration

Co-authored-by: Claude <[email protected]>
max-sixty added a commit that referenced this pull request May 16, 2026
Routine post-release regen. Pins the 8 `tend-*.yaml` workflows to
`max-sixty/tend/[email protected]` (#539's CLAUDE_PLUGIN_ROOT export) and
switches the bot-token reference to `TEND_BOT_TOKEN` (#538).

## Test plan
- [ ] CI green (test, test-worker, lint)

Co-authored-by: Claude <[email protected]>
max-sixty added a commit that referenced this pull request May 16, 2026
## Summary

- Rename the generator's default `bot_token_secret` from `BOT_TOKEN` to
`TEND_BOT_TOKEN`. It was the only default without a vendor/product
prefix, easy to collide with an existing repo secret.
- Adopters with an explicit `secrets.bot_token` override (e.g.
`WORKTRUNK_BOT_TOKEN`, `PRQL_BOT_GITHUB_TOKEN`) are unaffected.
- Updates docs (README, `docs/tend.example.yaml`, TODO), the
install-tend setup steps + checklist, the review-reviewers skill prose,
and the hand-written `.github/workflows/review-reviewers.yaml`.
- Tests + regtest fixtures regenerated.
- Generated `.github/workflows/tend-*.yaml` are intentionally **not**
touched — they pick up the new default at the next release + nightly
regen, per the project rule that the action ref pins to the released
generator version.

## Adopter migration

Repos using the default need to add a `TEND_BOT_TOKEN` repo secret (same
value as the existing `BOT_TOKEN`) before the next nightly regen swaps
the workflow references. The three affected consumers (`max-sixty/tend`,
`max-sixty/cargo-affected`, `numbagg/numbagg`) already have the new
secret set; `BOT_TOKEN` can be deleted some days after each regen lands.

## Test plan

- [x] `uv run pytest tests/` — 230 passing
- [x] `pre-commit run --all-files` — clean
- [ ] First nightly run on a consumer after release picks up the new
default and the regenerated workflow references `secrets.TEND_BOT_TOKEN`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <[email protected]>
max-sixty added a commit that referenced this pull request May 16, 2026
## Summary

Release 0.0.23. 6 commits since 0.0.22:

- #520 Cut tend's CI over to the Codex harness — tend now dogfoods Codex
- #531 fix(nightly-survey-files): print bucket/count to stderr — keep
JSON output uncontaminated
- #536 docs(claude-auth): correct June 15 2026 framing; recommend OAuth
for subscribers
- #538 **breaking:** rename default bot-token secret `BOT_TOKEN` →
`TEND_BOT_TOKEN`. Adopters using the default must add a `TEND_BOT_TOKEN`
repo secret before their next regen (or set `secrets.bot_token` in
`.config/tend.yaml` to keep using the old name)
- #539 fix(codex-action): export `CLAUDE_PLUGIN_ROOT` so plugin-bundled
scripts resolve under Codex
- #533 chore: regenerate workflows with tend 0.0.22

## Test plan

- [ ] CI green (test, test-worker, lint)
- [ ] After merge: tag `0.0.23`, PyPI publish, `uvx [email protected] --help`
works
- [ ] Regenerate tend's own workflows to `@0.0.23`

Co-authored-by: Claude <[email protected]>

Co-authored-by: Claude <[email protected]>
max-sixty added a commit that referenced this pull request May 16, 2026
## Summary

Release 0.0.23 — unblocks the review-reviewers Codex migration.

Since 0.0.22:
- #539 — codex-action exports `CLAUDE_PLUGIN_ROOT` so skills using
`${CLAUDE_PLUGIN_ROOT}/scripts/...` work unchanged under Codex (the
blocker on PR #537)
- #538 — `TEND_BOT_TOKEN` as the default bot-token secret name
- #540 — `install-tend --with-install-test` for pre-merge verification
- #536 — docs(claude-auth) framing for 2026-06-15
- #531 — nightly-survey-files prints bucket/count to stderr
- #520 — tend's own CI flipped to the Codex harness (live; consumer
regen moves it forward)

## Test plan

- [ ] CI green (test, test-worker, lint)
- [ ] After merge: tag `0.0.23`, PyPI publish, `uvx [email protected] --help`
works
- [ ] Regenerate main's workflows to `@0.0.23`
- [ ] Regenerate #537's codex workflows to `@0.0.23` and unblock the
review-reviewers migration

Co-authored-by: Claude <[email protected]>
max-sixty added a commit that referenced this pull request May 16, 2026
Routine post-release regen. Pins the 8 `tend-*.yaml` workflows to
`max-sixty/tend/[email protected]` (#539's CLAUDE_PLUGIN_ROOT export) and
switches the bot-token reference to `TEND_BOT_TOKEN` (#538).

## Test plan
- [ ] CI green (test, test-worker, lint)

Co-authored-by: Claude <[email protected]>
max-sixty added a commit that referenced this pull request May 16, 2026
…erence

docs/security-model.md is the canonical threat model for tend's
auditors. It had accreted operational reference content (token-assignment
tables, leak posture, Codex auth/rotation walkthroughs, per-workflow
capability matrix, workflow-modification rules, PR-comment event types)
that belongs with the install-time agent, not the audit-time reader.

- Compress "Environment-protected secrets" to a summary of the chain;
  the full configuration recipe is the install-tend reference's job.
- Compress "Config pinning" and "Rate limiting" to one paragraph each;
  the rate-limit table moves to action.yaml as the source of truth.
- Cut the entire Reference section: per-workflow capability matrix,
  Codex auth/rotation walkthroughs (already in install-tend reference),
  PR-comment event types (tend-internal runtime plumbing), workflow-
  modification rules.
- Move "Token assignment" and "How tokens flow through workflows" into
  the install-tend reference where adopters meet them at install time.

docs/security-model.md: 377 -> 159 lines. Audit-time content remains
(threats, approach summary, action-distribution integrity, remaining
risks); install-time content lives where the install agent actually
loads it.

Pre-commit's sync hook caught the upstream BOT_TOKEN -> TEND_BOT_TOKEN
rename (#538) and synced tend.example.yaml's mirror in the plugin.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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