Skip to content

Review Workshop eval trajectory changes - #477

Draft
AshishKumar4 wants to merge 1 commit into
evals/github-pr-reportfrom
evals/trajectory-review
Draft

Review Workshop eval trajectory changes#477
AshishKumar4 wants to merge 1 commit into
evals/github-pr-reportfrom
evals/trajectory-review

Conversation

@AshishKumar4

@AshishKumar4 AshishKumar4 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Stacked on #476.

After the deterministic baseline/candidate comparison completes, download and pretty-print both raw trajectory artifacts, then run the existing Bonk action with a fixed 3–4 sentence prompt. The report covers direction, measured changes, the strongest trajectory-level explanation, and uncertainty from model variance.

Bonk starts from the trusted base checkout, reads a precomputed baseline-to-candidate diff, and receives a no-push token. OpenCode denies every tool except file reads, downloaded inputs are excluded from Git status, and the advisory step does not affect the deterministic eval result.

@github-actions github-actions Bot added the delivery Changes to CI or release delivery label Sep 10, 2026

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Devin Review

Comment thread .github/workflows/workshop-evals.yml Outdated
@github-actions

Copy link
Copy Markdown

Preview: pr477-evals-traject-fc07c928

https://pr477-evals-traject-fc07c928-router.cloudflare-os-previews.workers.dev

Dashboard · deleted when this PR closes

@ask-bonk

ask-bonk Bot commented Sep 10, 2026

Copy link
Copy Markdown

Author identity unknown

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for runner@runnervmlun5p.22vpi1papmiehlbrkehlsftqdc.bx.internal.cloudapp.net) not allowed

github run

@ask-bonk

ask-bonk Bot commented Sep 10, 2026

Copy link
Copy Markdown

@AshishKumar4 Bonk workflow failed. Check the logs for details.

View workflow run · To retry, trigger Bonk again.

Comment thread .github/workflows/workshop-evals.yml Outdated
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: workshop-evals-baseline
path: artifacts/baseline

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P1] Keep downloaded artifacts out of the git worktree

These downloads make artifacts/ untracked before opencode github run starts. The action treats that dirty worktree as agent changes and enters its commit path; in this PR’s run, it then failed with Author identity unknown and posted no trajectory synthesis. Download under an ignored path such as .wrangler/... (and update the prompt paths), or exclude this directory from Git before invoking Bonk.

@ask-bonk

ask-bonk Bot commented Sep 10, 2026

Copy link
Copy Markdown

Posted 1 actionable inline finding.

github run

@ask-bonk

ask-bonk Bot commented Sep 10, 2026

Copy link
Copy Markdown

Performance is inconclusive: all nine trials failed in both runs, with null pass-rate deltas. Candidate mean durations increased by 0.51–0.84 seconds across tasks. Both runs stopped before any model turn or tool call due to connection errors. These timing shifts likely reflect failure timing, and model variance cannot be assessed.

github run

@AshishKumar4
AshishKumar4 force-pushed the evals/trajectory-review branch from 251a515 to 9269040 Compare September 10, 2026 23:52
@AshishKumar4
AshishKumar4 marked this pull request as draft September 10, 2026 23:52
@ask-bonk

ask-bonk Bot commented Sep 10, 2026

Copy link
Copy Markdown

LGTM!

github run

Comment thread .github/workflows/workshop-evals.yml Outdated
opencode_version: 1.18.24
prompt: |
This is an advisory trajectory synthesis, not a code review. Read exactly
artifacts/baseline/results.json, artifacts/candidate/results.json,

@ask-bonk ask-bonk Bot Sep 11, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P1] Reformat trajectories before asking OpenCode to read them

The uploaded Vitest reports are minified JSON: in a real run each results.json was a single roughly 35 KB line. OpenCode's read tool truncates lines after 2,000 characters, and with every other tool denied it cannot recover the remainder, so this prompt exposes only the start of the first baseline/candidate trial and the requested trajectory-level explanation is not based on the other trials. Pretty-print or otherwise split both downloaded reports into readable lines before invoking Bonk (and point the prompt at those files).

@ask-bonk

ask-bonk Bot commented Sep 11, 2026

Copy link
Copy Markdown

Posted 1 actionable inline finding.

github run

@ask-bonk

ask-bonk Bot commented Sep 11, 2026

Copy link
Copy Markdown

LGTM!

github run

@ask-bonk

ask-bonk Bot commented Sep 11, 2026

Copy link
Copy Markdown

LGTM!

github run

@AshishKumar4
AshishKumar4 force-pushed the evals/trajectory-review branch from 6f4c82c to 273a43d Compare September 11, 2026 00:25
Comment thread .github/workflows/workshop-evals-pr.yml Outdated
- name: Check out candidate
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.pull_request.head.sha }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P1] Do not start OpenCode from the candidate checkout

opencode github run automatically loads .opencode/plugins/* and project opencode.json from its current worktree before model tool permissions apply. Because this job checks out the PR head and then supplies the Cloudflare gateway secrets and a NO_PUSH App token, a PR that also changes any eval-trigger path can add a plugin whose initialization executes arbitrary code and reads those credentials; the inline permission map does not sandbox plugin code. Check out the trusted base SHA for this job (the generated diff can still target HEAD_SHA), or invoke OpenCode from a trusted worktree that cannot contain candidate config or plugins.

@ask-bonk

ask-bonk Bot commented Sep 11, 2026

Copy link
Copy Markdown

Posted 1 actionable inline finding.

github run

@ask-bonk

ask-bonk Bot commented Sep 11, 2026

Copy link
Copy Markdown

LGTM!

github run

@AshishKumar4
AshishKumar4 force-pushed the evals/trajectory-review branch from 9a6fc8c to b3759de Compare September 11, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delivery Changes to CI or release delivery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant