From c63b728fdcdc7fc0ddd588ce030389a73d979066 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 10:54:46 +0000 Subject: [PATCH 1/2] ci: run the factory review from ai-developer main, references as a repository agent The apify-factory review was pinned to the unreviewed ai-developer branch `claude/review-references`, the only place that read `.github/review-references.yaml`. ai-developer `main` reads cross-repository references from repository agents in `.factory/agents//` instead. - `.github/workflows/factory_review.yaml`: drop the `ai-developer-ref` pin, so the review runs ai-developer `main`. - `.factory/agents/client-parity/`: a `when: always` repository agent with the same three references (apify-core, apify-client-js, apify-sdk-python) and the old top-level instructions as its `reviewer.md`, plus a severity rule. - `.github/review-references.yaml`: removed; `.rules.md` points at the agent. Refs apify/ai-developer#274 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017ocuAHMGJDGieAVzaUi5sx --- .../agents/client-parity/config.yaml | 12 ++---------- .factory/agents/client-parity/reviewer.md | 16 ++++++++++++++++ .github/workflows/factory_review.yaml | 2 -- .rules.md | 2 +- 4 files changed, 19 insertions(+), 13 deletions(-) rename .github/review-references.yaml => .factory/agents/client-parity/config.yaml (56%) create mode 100644 .factory/agents/client-parity/reviewer.md diff --git a/.github/review-references.yaml b/.factory/agents/client-parity/config.yaml similarity index 56% rename from .github/review-references.yaml rename to .factory/agents/client-parity/config.yaml index e8ff2d98..f070496a 100644 --- a/.github/review-references.yaml +++ b/.factory/agents/client-parity/config.yaml @@ -1,13 +1,5 @@ -# Cross-repository references for the apify-factory review (apify/ai-developer, `review-references`). -version: 1 - -instructions: | - This repository is the Python client for the Apify API, a port of the JS client that the Python SDK - builds on. For every behaviour the pull request adds or changes, check three things: that it matches - what the API actually does, that it matches what the JS client does for the same operation (ignore - differences caused by different language idioms and style), and that every place the Python SDK uses - the changed code still works. Back every finding with the reference file and line (create public - github link fixed to a commit you have seen). +# A repository agent of the apify-factory review (apify/ai-developer, src/agents/README.md). +when: always references: - repository: apify/apify-core diff --git a/.factory/agents/client-parity/reviewer.md b/.factory/agents/client-parity/reviewer.md new file mode 100644 index 00000000..0679aaca --- /dev/null +++ b/.factory/agents/client-parity/reviewer.md @@ -0,0 +1,16 @@ +# Client parity reviewer + +This repository is the Python client for the Apify API, a port of the JS client that the Python SDK +builds on. For every behaviour the pull request adds or changes, check three things: + +- that it matches what the API actually does, +- that it matches what the JS client does for the same operation (ignore differences caused by + different language idioms and style), +- that every place the Python SDK uses the changed code still works. + +Compare against the references gathered for this review (`references/INDEX.md`). Back every finding +with the reference file and line, as a public GitHub link fixed to the commit you read. + +Severity: a finding is important when the client would send a request the API rejects or handles +differently, parse a response wrongly, or break the Python SDK. Differences from the JS client that +no caller can observe are not important. diff --git a/.github/workflows/factory_review.yaml b/.github/workflows/factory_review.yaml index 1ca80ef2..233d945e 100644 --- a/.github/workflows/factory_review.yaml +++ b/.github/workflows/factory_review.yaml @@ -25,8 +25,6 @@ jobs: # Paths never auto-approved here, on top of the pipeline's defaults. Proposed from the # repository's layout when this workflow was added; edit them like any other code. with: - # The draft of the cross-repository references, under evaluation. Back to `main` once it lands. - ai-developer-ref: claude/review-references policy: | { "denyGlobs": [ diff --git a/.rules.md b/.rules.md index 4f3aec36..bdca42dc 100644 --- a/.rules.md +++ b/.rules.md @@ -45,4 +45,4 @@ The OpenAPI spec can lag behind the API and omit fields, and a live response onl ### Related repositories -[`.github/review-references.yaml`](.github/review-references.yaml) lists the related repositories (`apify-core`, `apify-client-js`, `apify-sdk-python`) and what to check in each when a change touches shared behavior. +[`.factory/agents/client-parity/config.yaml`](.factory/agents/client-parity/config.yaml) lists the related repositories (`apify-core`, `apify-client-js`, `apify-sdk-python`) and what to check in each when a change touches shared behavior. From efcd2655d35903b12d8f4973c035bf0fe33afdeb Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 12:15:10 +0000 Subject: [PATCH 2/2] ci: drop the references index path from the client-parity reviewer The review pipeline already gives the reviewer the path to the gathered references. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017ocuAHMGJDGieAVzaUi5sx --- .factory/agents/client-parity/reviewer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.factory/agents/client-parity/reviewer.md b/.factory/agents/client-parity/reviewer.md index 0679aaca..cccdc3f2 100644 --- a/.factory/agents/client-parity/reviewer.md +++ b/.factory/agents/client-parity/reviewer.md @@ -8,8 +8,8 @@ builds on. For every behaviour the pull request adds or changes, check three thi different language idioms and style), - that every place the Python SDK uses the changed code still works. -Compare against the references gathered for this review (`references/INDEX.md`). Back every finding -with the reference file and line, as a public GitHub link fixed to the commit you read. +Back every finding with the reference file and line, as a public GitHub link fixed to the commit you +read. Severity: a finding is important when the client would send a request the API rejects or handles differently, parse a response wrongly, or break the Python SDK. Differences from the JS client that