Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 0 additions & 73 deletions .github/scripts/github-app-installation-token.mjs

This file was deleted.

33 changes: 1 addition & 32 deletions .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,4 @@
# Docs: https://gh.io/actions-lockfile
version: 'v0.0.3'
workflows:
'.github/workflows/weekly-maintenance.yml':
- 'actions/checkout@v4.4.0'
- 'actions/create-github-app-token@v3.3.0'
- 'actions/setup-node@v4.4.0'
- 'astral-sh/setup-uv@v6.8.0'
- 'kernel/security-workflows@main'
dependencies:
'actions/checkout@v4.4.0':
ref: 'v4.4.0'
commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262'
owner_id: 44036562
repo_id: 197814629
'actions/create-github-app-token@v3.3.0':
ref: 'v3.3.0'
commit: 'sha1-64ab729a6294000f5aa4a4bc0b73d1f32bc45510'
owner_id: 44036562
repo_id: 642580244
'actions/setup-node@v4.4.0':
ref: 'v4.4.0'
commit: 'sha1-49933ea5288caeca8642d1e84afbd3f7d6820020'
owner_id: 44036562
repo_id: 189476904
'astral-sh/setup-uv@v6.8.0':
ref: 'v6.8.0'
commit: 'sha1-d0cc045d04ccac9d8b7881df0226f9e82c39688e'
owner_id: 115962839
repo_id: 846733598
'kernel/security-workflows@main':
ref: 'main'
commit: 'sha1-56bdfc09970ce29b2ad4df3daa17adb9a7ed4ce0'
owner_id: 194616459
repo_id: 1207196574
'.github/workflows/weekly-maintenance.yml': []
26 changes: 10 additions & 16 deletions .github/workflows/weekly-maintenance-prompt.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
You are operating in a GitHub Actions runner for the kernel-tinker-rl repository.

The GitHub CLI is available as `gh`, and Git is authenticated as the `kernel-internal[bot]` GitHub App. Their credential helpers renew the installation token before it expires; use the normal `gh` and `git` commands, and never bypass the helpers or print credentials. You may push branches, create pull requests, reply to review comments, and merge pull requests. Pi Web Access is installed; call `web_enable` before using `web_search`, `fetch_content`, or `get_search_content` for release notes and migration guidance.
You run in a Docker Sandbox: a microVM with its own kernel and Docker daemon, where you have sudo. `gh` and `git` reach GitHub as the `kernel-internal[bot]` GitHub App through the sandbox proxy, which adds the credential to each request, so there is no token to handle. `gh pr checks <pr-number>` reads check runs, Cursor Bugbot included, through the workflow's read-only relay. You may push branches, create pull requests, reply to review comments, and rerun workflow runs. The workflow merges the pull request, not you. Pi Web Access is installed; call `web_enable` before using `web_search`, `fetch_content`, or `get_search_content` for release notes and migration guidance.

`uv`, Node, and the Kernel CLI (`kernel`) are installed. `KERNEL_API_KEY` and `TINKER_API_KEY` are set for smoke tests and model baselines. WebJudge reaches OpenRouter with a short-lived token from `OPENROUTER_ACCESS_TOKEN_FILE`; there is no `OPENROUTER_API_KEY`, so don't ask for one.
`uv`, Node, and the Kernel CLI (`kernel`) are installed. `KERNEL_API_KEY` and `TINKER_API_KEY` are set for smoke tests and model baselines. WebJudge reads its OpenRouter credential from `OPENROUTER_ACCESS_TOKEN_FILE`. The file holds a placeholder that the sandbox proxy swaps for a short-lived token on requests to OpenRouter, so use it as is and don't ask for an `OPENROUTER_API_KEY`.

# Context

Expand All @@ -16,7 +16,7 @@ The repository trains a text model with Tinker (GRPO, LoRA) to drive a Kernel cl

# Goal

Keep this repository current with the latest Tinker stack and a good default example model, so that someone cloning it gets the latest and greatest. Update everything in scope that is stale in one run, make the compatibility changes needed, verify with targeted and live smoke tests, open or update the evergreen pull request, address BugBot, and merge the pull request after the latest commit is green.
Keep this repository current with the latest Tinker stack and a good default example model, so that someone cloning it gets the latest and greatest. Update everything in scope that is stale in one run, make the compatibility changes needed, verify with targeted and live smoke tests, open or update the evergreen pull request, address BugBot, and hand the pull request to the merge gate once the latest commit is green.
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved

# Scope

Expand All @@ -39,7 +39,7 @@ Out of scope: task data, reward design, hyperparameter tuning beyond defaults th
- Never edit `uv.lock` or `core/repl_reference.md` by hand. Regenerate them with `uv` and `scripts/sync_repl_docs.py`.
- Never expose secret values in logs, commits, pull request text, or comments.
- If `VIRTUAL_ENV` points outside the repository, unset it before running `uv`.
- Do not finish while the pull request is open, BugBot is pending, checks are failing, or an actionable BugBot finding remains.
- Do not finish while BugBot is pending, checks are failing, or an actionable BugBot finding remains. Once the pull request is green, write `ready:<pr-number>` to `${OUTCOME_FILE}` and stop; the workflow merges it.

# Step 1: Resume or create the evergreen branch

Expand Down Expand Up @@ -136,22 +136,16 @@ gh api \
-f body='<response>'
```

Do not merge while Cursor Bugbot is pending, missing, failing, or has an unanswered actionable finding on the latest commit. Also require all other pull request checks to complete successfully.
Do not write `ready` while Cursor Bugbot is pending, missing, failing, or has an unanswered actionable finding on the latest commit. Also require all other pull request checks to complete successfully.

# Step 7: Merge and prove the outcome
# Step 7: Hand the pull request to the merge gate

When all checks are green and the latest commit has no unresolved actionable BugBot findings, squash-merge with the GitHub App identity:
When all checks are green and the latest commit has no unresolved actionable BugBot findings, write the outcome to the exact absolute path below:

```bash
gh pr merge <pr-number> --squash --admin --delete-branch
printf 'ready:%s\n' '<pr-number>' > "${OUTCOME_FILE}"
```

The `gh` wrapper rejects `gh pr merge` unless Cursor Bugbot is green for the exact head commit. Do not bypass this gate with `/usr/bin/gh`, another client, or the merge API.
Do not merge the pull request yourself. After you exit, the workflow checks that Cursor Bugbot and every other check passed on the head commit, then squash-merges it. It fails the run if anything is pending or red, or if the head commit changed.

Verify through `gh pr view <pr-number> --json state` that the state is `MERGED`. Only then write the outcome to the exact absolute path below:

```bash
printf 'merged:%s\n' '<pr-number>' > "${OUTCOME_FILE}"
```

Do not create a different outcome file. If the merge is blocked, keep diagnosing within this run. Never write an outcome that claims success, and never exit successfully with an open pull request.
Do not create a different outcome file. If checks are blocked, keep diagnosing within this run. Never write `ready` while BugBot or another check is pending or failing, and never exit successfully with an open pull request and no outcome.
Loading