Skip to content

[bug] Make required ATSv2 parity CI run without exposing private source to PR jobs #266

Open

Description

@AetherAI3

Problem

The required Agent CI Test (ubuntu-latest) job runs its build, full test suite, and independent Python contract checks, then fails at Check out pinned ATSv2 execution wire. The workflow checks out private AetherAI3/ATSv2@58236878d1ac7978362b25350d78e44ca34e35c0 using the Agent repository's default GITHUB_TOKEN; that token cannot read the separate private repository. The exact-head run from #248 reports repository 'https://github.com/AetherAI3/ATSv2/' not found. A manual run of the pinned parity command passed, so this ticket concerns CI access and isolation, not a demonstrated contract mismatch.

This blocks the cross-repository gate specified in #203. It is separate from the billing and artifact-quota recovery ticket.

Deliverable

Make the pinned Agent/ATSv2 parity check run as a required, reproducible CI gate while preserving ATSv2's private-source boundary. Choose and document one trust model before adding credentials. Possible designs include a trusted isolated workflow that returns an attested result, a narrowly scoped short-lived GitHub App credential used only where PR code is trusted, or a deliberately published non-sensitive fixture bundle with an immutable digest. Do not place a broad personal access token or private checkout in a job that executes untrusted fork code. GitHub's Actions security guidance treats PR code and persistent self-hosted runners as untrusted execution surfaces.

Keep the Agent revision, ATSv2 revision, fixture digests, and parity result bound together in logs and, once artifact storage is available, the existing parity report artifact. Preserve the current pinned revision until a deliberate contract update changes it.

Acceptance

  • A trusted same-repository PR at a known Agent SHA completes scripts/verify-ats-execution-parity.mjs against the pinned ATSv2 SHA in CI; the required test job is green when parity passes.
  • A one-field fixture/schema drift in either repository makes the gate fail. A missing credential, inaccessible commit, or wrong revision fails with an actionable message; none is converted to a green skip.
  • A fork PR cannot obtain ATSv2 source, checkout credentials, tokens, or reusable runner state. The fork policy for this required check is explicit and does not silently claim parity was verified.
  • The job uses only the permissions it needs, removes credentials after use, and does not execute untrusted PR code in the same trust domain as a private-repo credential or checkout.
  • Tests or a controlled CI exercise cover trusted PR, fork PR, missing-access, and drift paths. The final PR records exact source revisions and the resulting check URL.

Priority: P1. Follow-up to #248 and the parity gate in #203.

Activity

  1. added
    bug
    github_actions
    ats
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    atsbuggithub_actionsspec

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions