paperclip/packages/paperclip-runner/scripts
Dotta 165ca56a22
fix(runner): scope live eval tokens to eval repo (#12911)
## Thinking Path

> - The merged direct live eval workflow must read the private
`paperclip-evals` repository at an exact commit.
> - Its first hosted dispatch failed before provider execution because
the GitHub App token was minted from the `paperclip` repository
installation.
> - GitHub returned 404 while resolving the private eval commit, proving
that token did not have the required repository scope.
> - Minting each short-lived token from the exact private eval
repository installation supplies only the cross-repository read boundary
the workflow needs.
> - A workflow regression now verifies every eval-token block keeps that
exact scope.

## Linked Issues or Issue Description

The first default-branch run of Runner Direct Live Protocol Evals failed
in its immutable eval-commit verification step with HTTP 404. No
provider jobs ran and no provider spend occurred.

**What existing behavior does this improve?**

It allows the protected direct live eval workflow to verify and check
out the private `paperclipai/paperclip-evals` repository.

**Current behavior**

All four eval-token blocks set `GH_REPO` to `paperclipai/paperclip`,
selecting a token installation that cannot read the private eval
repository.

**Proposed behavior**

Set `GH_REPO` to the exact `paperclipai/paperclip-evals` repository in
authorization, catalog, matrix, and report jobs.

**Reason and benefit**

The app mints a short-lived token from the correct repository
installation while the main repository continues to use its ordinary
read-only workflow token.

**Breaking changes**

None.

## What Changed

- Scoped all four private-eval installation tokens to
`paperclipai/paperclip-evals`.
- Added a regression requiring that exact scope in every token block.

## Verification

- `pnpm --filter @paperclipai/paperclip-runner
test:runner-protocol-eval-publish` — 15 passed.
- `node --test .github/scripts/tests/get-bot-token.test.mjs` — 3 passed.
- `actionlint .github/workflows/runner-protocol-live-evals.yml` —
passed.
- `git diff --check` — passed.

## Risks

- The workflow reads a private repository. The token is still
short-lived, repository-specific, masked immediately, and used only by
the protected default-branch workflow.
- This changes no provider execution, Runner behavior, report content,
S3 publishing, or browser E2E behavior.

> For core feature work, check [`ROADMAP.md`](ROADMAP.md) first and
discuss it in `#dev` before opening the PR. Feature PRs that overlap
with planned core work may need to be redirected — check the roadmap
first. See `CONTRIBUTING.md`.

## Model Used

OpenAI Codex on GPT-5. The exact deployment ID and context-window size
are not exposed. The model used reasoning, repository inspection, code
editing, GitHub Actions diagnostics, and test execution.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change and contains no internal
instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation where applicable
- [x] I have considered and documented risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge
2026-09-06 08:25:46 -05:00
..
lib feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
acpx-sidecar-contract.mjs feat(runner): define ACPX sidecar contract (#12386) 2026-08-30 11:59:14 -05:00
aws-agentcore-provisioning.test.mjs feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
aws-agentcore.sh feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
build-provider-pack.mjs fix(runner): repair paid provider startup paths (#12769) 2026-09-04 07:58:44 -05:00
build-verified-provider-entrypoints.mjs fix(runner): repair paid provider startup paths (#12769) 2026-09-04 07:58:44 -05:00
build-verified-provider-entrypoints.test.mjs fix(runner): repair paid provider startup paths (#12769) 2026-09-04 07:58:44 -05:00
capability-aws-agentcore-smoke.mjs test(runner): add full-stack acceptance and eval gates (#12700) 2026-09-02 08:55:08 -05:00
capability-clean-room-smoke.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
capability-cookie-jar.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
capability-explorer-fixtures.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
capability-issue-thread-server.mjs test(runner): add full-stack acceptance and eval gates (#12700) 2026-09-02 08:55:08 -05:00
capability-issue-thread-smoke.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
check-browser-tokens.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
check-capability-csp-bundle.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
check-capability-inventory.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
check-capability-inventory.test.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
check-clean-consumers.mjs feat(runner): add offline evaluation tooling (#12653) 2026-09-01 05:19:47 -05:00
check-forbidden-imports.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
check-forbidden-imports.test.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
check-numbered-milestones.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
check-numbered-milestones.test.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
check-package-boundaries.mjs feat(runner): add offline evaluation tooling (#12653) 2026-09-01 05:19:47 -05:00
check-runner-workflow-traceability.mjs feat(runner): add offline evaluation tooling (#12653) 2026-09-01 05:19:47 -05:00
check-tracked-imports.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
check-tracked-imports.test.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
generate-acpx-sidecar-contract.mjs feat(runner): normalize ACPX provider events (#12416) 2026-08-31 00:52:41 -05:00
generate-capability-contract.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
generate-capability-inventory.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
generate-operation-groups.ts feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
generate-protocol-coverage.mjs test(runner): add full-stack acceptance and eval gates (#12700) 2026-09-02 08:55:08 -05:00
generate-protocol-manifest.mjs test(runner): add question adapter conformance (#12409) 2026-08-30 22:09:03 -05:00
generate-protocol-schema-module.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
generate-replay-goldens.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
generate-semantic-action-catalog.mjs Add canonical semantic action catalog to Paperclip Runner (#12121) 2026-08-24 16:26:21 -05:00
generate-semantic-contracts.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
live-console-browser-server.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
live-console-browser-server.test.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
live-console-demo-server.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
local-provider-smoke-environment.mjs fix(runner): repair paid provider startup paths (#12769) 2026-09-04 07:58:44 -05:00
local-provider-smoke-environment.test.mjs fix(runner): repair paid provider startup paths (#12769) 2026-09-04 07:58:44 -05:00
local-runner-browser-server.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
local-runner-browser-server.test.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
materialize-opencode-binary.mjs fix(runner): materialize pinned OpenCode binary (#12782) 2026-09-03 14:12:17 -05:00
materialize-opencode-binary.test.mjs fix(runner): materialize pinned OpenCode binary (#12782) 2026-09-03 14:12:17 -05:00
protocol-contract.mjs test(runner): add question adapter conformance (#12409) 2026-08-30 22:09:03 -05:00
publish-runner-protocol-eval-history.mjs feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
publish-runner-protocol-eval-history.test.mjs feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
render-runner-workflow-evalbook.mjs feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
render-runner-workflow-evalbook.test.mjs feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
run-capability-eval-suite.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
run-capability-live-eval-matrix.mjs test(runner): add full-stack acceptance and eval gates (#12700) 2026-09-02 08:55:08 -05:00
run-local-provider-smoke.mjs fix(runner): repair paid provider startup paths (#12769) 2026-09-04 07:58:44 -05:00
run-runner-live-eval-schedule.mjs feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
run-runner-workflow-evals.mjs feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
run-scenario-chat-demo.sh feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
runner-protocol-eval-campaign.mjs feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
runner-protocol-eval-campaign.test.mjs feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
runner-protocol-eval-workflow-security.test.mjs fix(runner): scope live eval tokens to eval repo (#12911) 2026-09-06 08:25:46 -05:00
stage-runner-binary.mjs feat(runner): restore direct live eval campaigns and reports (#12909) 2026-09-05 20:18:11 -05:00
validate-doc-links.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
validate-doc-links.test.mjs feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00
verify-rootless-linux.sh feat(runner): add SDK and developer tooling (#12608) 2026-08-31 21:33:11 -05:00