Repository navigation
Keep the two reviews' model identities apart - #2441
Merged
Merged
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2441Version: 🤖 Updated on each push. |
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
Whole-file copy from nemarOrg/nemar-cli#2441.
neuromechanist
added a commit
to nemarDatasets/.github
that referenced
this pull request
Nov 27, 2026
Whole-file copy from nemarOrg/nemar-cli#2441.
This was referenced Nov 27, 2026
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.