Skip to content

v0.131.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 18:45
632a77a

review is now a merge gate on any forge. It writes the review as JUnit XML (--junit) and as a JSON change record (--change-record), reads the pull request's branch, head and target on Bitbucket, Azure Pipelines and Gerrit, and ships as a GitLab CI/CD component. --strict-links reviews only strongly linked sessions, merge queues are supported, and --ci-checks compares what a session said about its tests with CI.

Features

  • JUnit report. review --junit FILE writes one test case per finding, plus cognitive debt and disclosure when those checks are on. The file has a failure exactly when review exits 1, and holds no prompt text, command strings or timestamps. (#708)
  • Change record. review --change-record FILE writes one agent-strace-change-record/v1 JSON record of the pull request: the change, each linked session and where its evidence came from, the five findings mapped to request, scope, testing, human oversight and evidence health, the gate result, and what the record does not show. Its trace digest matches the session's evidence packet. With --junit, both files are written or neither. (#710)
  • Approvals in the change record. review --change-record FILE --approvals reads the pull request's reviews and commits from GitHub and records who approved the head, who requested changes, the commit authors, and independent: yes when a person who is not the author, did not write a commit and does not match a session operator approved the head. Bot approvals are listed but never count. Approvals never change the review, the exit code or the JUnit file. The Action gains review-approvals, which passes --approvals to the run that writes the change record and never changes the check result. (#716, #721)
  • GitLab CI/CD component. templates/agent-review.yml runs review --junit on merge request pipelines. It fetches the review note, git-ai notes and the Entire checkpoints that the merge request's commits name, from the source project (a fork included) and origin, and uploads the JUnit report. Include it from a release tag with include:remote. The Azure Pipelines and Bitbucket Pipelines snippets fetch the same refs. (#713)
  • Pull request context on more forges. review reads the PR branch, head commit and target branch from Bitbucket Pipelines, Azure Pipelines and Jenkins Gerrit Trigger variables, so linking by branch, commit time and changed files works there. (#707)
  • Strict links. review --strict-links and pr-comment --review --strict-links review only sessions named on the command line, matched by branch, or that wrote the pull request's files in this repository. Other sessions are listed as refused. The Action gains review-strict-links. (#711)
  • Merge queues. In a GitHub merge_group run, review reads the queued commits and resolves the gh-readonly-queue/* branch to the pull request's branch. (#711)
  • Check test claims against CI. review notices when a session ends by claiming tests pass after a failing run or with no test run. --ci-checks also reads the head commit's GitHub check runs and statuses, and a red CI turns a passing validation finding into partial. The Action gains review-ci-checks. (#714)
  • Action outputs for the gate files. The Action writes review.junit.xml and change-record.json from its review run, uploads both in the agent-trace-pr-review artifact, and adds the outputs review-junit-path and change-record-path. (#718)
  • Cognitive-debt team view in the Action. cognitive-debt-team: true on schedule or workflow_dispatch imports the Entire checkpoints and git-ai notes in a window (cognitive-debt-window, default 30d) and reports cognitive debt by repository. cognitive-debt gains --json-output and --badge-output. (#717)
  • Entire imports in share. A packet for a session from import --entire names its evidence source and checkpoint IDs, marks files_touched entries as listed, not observed, and shows not recorded for what the checkpoint lacks. (#712)

Security

  • A GitHub or GitLab token, an apply --auth-key or an OTLP metrics header that holds a newline is no longer printed. Python's HTTP client refuses such a header with an error that repeats it, and pr-comment, review's merge queue lookup, apply and export --metrics printed or crashed with that error. Tokens and keys that are not printable ASCII are now refused before any request. (#719)

Compatibility

  • On the validation finding, review JSON gains facts.crosscheck when the session claims its tests pass or when CI was read. Without --ci-checks, no status changes. (#714)
  • The Action's agent-strace-version must be no older than the Action ref: the Action now passes --junit and --change-record, which older versions reject. (#718)
  • pr-comment, review and apply --server refuse a token or key that is not printable ASCII, such as one with a trailing newline. (#719)
  • eval --baseline refuses a baseline score the gate cannot compare (NaN, infinity, a bool, text that is not a number, or an int too large for a float) with Baseline error: <why> and exit 1, as it does for a file it cannot read. (#715)

Documentation

  • docs/commands.md now lists commands in the order agent-strace --help-all does: review commands, GitHub Actions, capture and session commands, other commands, plumbing, then labs by group. Old section links still work. (#720)

CI and release hardening

  • A weekly workflow has pinned and latest Entire releases write checkpoints on both backends and checks that review --entire and import --entire read them. (#709)

Commits

  • release: 0.131.0 (#722)
  • docs: order the command reference as --help-all lists it (#720)
  • action: add review-approvals to record GitHub approvals in the change record (#721)
  • review: join change record approvals from GitHub with --approvals (#716)
  • fix(eval): refuse a gate baseline score it cannot compare (#715)
  • action: output the review's JUnit file and change record (#718)
  • ci: GitLab CI/CD component for review (#713)
  • fix: never print a token that HTTP cannot send (#719)
  • review: cross-check test claims against CI with --ci-checks (#714)
  • action: cognitive-debt team mode for schedule and workflow_dispatch (#717)
  • review: write a JSON change record with --change-record (#710)
  • share: label and present sessions imported from Entire (#712)
  • review: --strict-links and merge queue support (#711)
  • ci: weekly Entire checkpoint format drift check (#709)
  • review: read PR branch, head and base on Bitbucket, Azure and Gerrit (#707)
  • review: write the findings as JUnit XML with --junit (#708)