Skip to content

Keep the two reviews' model identities apart - #2441

Merged
neuromechanist merged 3 commits into
devfrom
fix/review-federation-kept-apart
Nov 27, 2026
Merged

neuromechanist merged 3 commits into
devfrom
fix/review-federation-kept-apart

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

The publication review and the pull-request review each sign in to the model with a federation rule and a service account of their own (ADR 0102). Each workflow's federation check now also reads the other review's two variables and refuses to run, as a sign-in failure with a plain error, when its rule or service account is the same as the other's. An unset variable on the other side is not a match.

Both workflow copies change here; the deployed copies in nemarDatasets/.github change in a matching pull request, byte-identical.

Context: the first production publication review (nm000781, 0.10.46) reported auth_failed because ANTHROPIC_PUBLICATION_REVIEW_* were never set. The owner is creating the review's own rule and service account; this guard keeps a copied id from mixing the two.

Test plan

  • bun test test/publication-review-workflow.test.ts test/pr-review-workflow.test.ts (171 pass, 0 fail): the check step runs in bash with its own ids (passes), with the other review's rule or account (exit 1, auth_failed reported), and with the other side unset (passes); static tests that the other review's variables appear only in the check step.
  • Mutation: with the comparison disabled in both workflows, the four refusal tests fail.
  • Not run: the full suite; workflow files and their tests only.

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR2441

Version: 0.10.47-PR2441.aa5202b
Commit: aa5202b


🤖 Updated on each push.

@neuromechanist

Copy link
Copy Markdown
Contributor Author

Review round 1 (one Sonnet reviewer: code, tests, comments, public log): no blocking or important findings. Three minor findings, all fixed in the latest commit: both workflow headers now say the federation check reads the other review's two variables only to refuse a match; the unset tests now blank each side alone as well as both; the time-relative test title is gone. The workflow tests pass (175 pass, 0 fail).

neuromechanist added a commit to nemarDatasets/.github that referenced this pull request Nov 27, 2026
neuromechanist added a commit to nemarDatasets/.github that referenced this pull request Nov 27, 2026
@neuromechanist
neuromechanist merged commit 02abd0b into dev Nov 27, 2026
51 of 53 checks passed
@neuromechanist
neuromechanist deleted the fix/review-federation-kept-apart branch November 27, 2026 06:49
This was referenced Nov 27, 2026

This branch was previously deployed

1 inactive deployment
npm — aa5202bc Deployed Nov 27, 2026 by neuromechanist via publish #5068
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.

1 participant