Skip to content

fix(ci): admit the upstream-sync App to ARC CI on its exact proposal shape - #195

Merged
nullStack65 merged 2 commits into
release/native-0.1.10from
clo1110/admit-upstream-sync-app
Nov 24, 2026
Merged

nullStack65 merged 2 commits into
release/native-0.1.10from
clo1110/admit-upstream-sync-app

Conversation

@nullStack65

@nullStack65 nullStack65 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Problem

The required check "Voice + founder inbox (Linux ARC)" can never pass on a pull request opened by the Closura upstream-sync GitHub App. The disposable proof PR #194 (closed unmerged) showed this. The trust gate on the three ARC workers in .github/workflows/closura-arc-ci.yml admits only the logins nullStack65 and jeffreysmithclosura. For the App's PRs the workers are skipped and the aggregator fails. Tracking: CLO-1110 (upstream sync hardening).

Change

The PR adds one bot clause to the if: gate of voice-and-inbox-core, -web and -mobile. The clause text is identical in all three. It admits only when every one of these holds:

  • the event is a non-draft pull_request;
  • the head repo is nullStack65/t3code itself (no forks), and the existing repository-id check still applies;
  • the base is release/native-0.1.10;
  • the head branch starts with sync/upstream-, the branch prefix that scripts/upstream-sync.sh creates;
  • the PR author is closura-t3code-upstream-sync[bot] with numeric id 360477638, both read from CLO-1110 disposable CI proof — do not merge #194's author and both required;
  • github.actor and github.actor_id match that login and id, and github.triggering_actor is that login;
  • the body has a whole line Deploy: none and no Deploy: fleet. This expression check is only a prefilter.

For the App, each worker's first step also runs before any checkout. It parses the Deploy line from the event payload with the exact awk and sed that closura-deploy-line.yml uses: one unfenced ^Deploy: line with whitespace stripped. It fails unless the value is none. This closes review finding F1: deploy: none plus Deploy:fleet, or a fenced Deploy: none, passed the expression but the deploy-line job read them as fleet. The step reads only the payload, runs on the same ARC worker and executes no PR code.

Unchanged:

  • The founder PR clause and the push/manual clause are unchanged.
  • No repository variable is created or set.
  • No pull_request_target is added.
  • runs-on is unchanged, so there are no new hosted runners.

The PR also adds .github/scripts/arc-ci-trust-gate.test.cjs. It extracts the real if: expressions from the workflow and evaluates them with a small GitHub-expression evaluator. That evaluator handles case-insensitive ==, contains and startsWith, format, fromJSON, null property access and short-circuit &&/||. The test also asserts that all three workers give the same result for every case. The aggregator job runs it after the coverage guard.

Things a reviewer should know:

  1. CLO-1110 disposable CI proof — do not merge #194 itself is not admitted. Its branch was a one-off proof name (clo1110/disposable-ci-proof-20261124) and its body had no Deploy line. The gate keys on the real sync prefix sync/upstream-, not on that proof prefix. The test includes CLO-1110 disposable CI proof — do not merge #194's literal shape as a rejected case and, with the same identity, a sync branch and Deploy: none body as an admitted case.
  2. The current sync body says Deploy: fleet (scripts/fork-sync-plan.mjs:56), so today's sync proposals would still be rejected. The sync-hardening work under CLO-1110 needs to switch that line to Deploy: none before App proposals go green. This PR leaves that change out on purpose, to stay narrow and to keep clear of the other writer's scope.
  3. A founder edit or re-run on the App's PR still skips the workers, because the actor is not the App. This matches the gate's existing actor rule.

Scope

CI trust-gate fix for the fork only. The upstream project is unaffected.

Verification

  • node --test .github/scripts/arc-ci-trust-gate.test.cjs: 30 pass, 0 fail. The test also runs the real Deploy-line step script with bash and asserts that all three workers carry the same step first. It rejects a fenced Deploy: none with Deploy:fleet, lowercase deploy: none with Deploy:fleet, a tab before fleet, Deploy: none only inside a fence, and two Deploy: none lines. Earlier Rejected cases:

    • fork head and missing head repo;
    • the CLO-1110 disposable CI proof — do not merge #194 proof branch, and the prefix appearing mid-branch;
    • a non-release base;
    • Deploy: fleet, both Deploy lines, Deploy: nonesuch, Deploy: none mid-line, and an empty body;
    • a draft;
    • a different bot (dependabot[bot]);
    • the App's login with another id, and the App's id with another login;
    • a lookalike login, and a different actor or actor_id;
    • a re-run by someone else, and another repository id.

    Admitted founder PRs and the push path are also covered.

  • Mutation checks: breaking the step's value check fails 7 tests. removing the user.id condition from one worker fails the test (the workers disagree). Removing the branch-prefix condition fails 3 cases.

  • node .github/scripts/arc-ci-coverage.cjs still reports 48 tests across 3 workers. arc-ci-coverage.test.cjs passes, and the workflow parses as YAML.

  • Not verified: a live App-opened PR going green. That needs a sync proposal with a sync/upstream- branch and a Deploy: none body after merge.

Deploy: none

Model: claude-opus-5-5 · Agent: Claude Code implementation sub-agent · Harness: T3 / Claude Code

🤖 Generated with Claude Code

…shape

The trust gate on the three ARC workers admitted only the two founder logins,
so the required "Voice + founder inbox (Linux ARC)" check failed on PRs opened
by the closura-t3code-upstream-sync GitHub App (seen on the disposable proof
PR #194). Add one bot clause, identical in all three workers: exact login and
numeric id for author and actor, App as the triggering actor, same-repo
`sync/upstream-` head into release/native-0.1.10, non-draft, and a
`Deploy: none` line with no `Deploy: fleet`. Founder and push paths are
unchanged.

A node test evaluates the real gate expressions against #194's event shape
and negative cases, and the aggregator job runs it.

Model: claude-opus-5-5
Task: implementation
Agent: Claude Code implementation sub-agent (CLO-1110)
Harness: t3/claude-code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Review finding F1 (Grok 4.7): the expression denylist only rejected the
spaced 'Deploy: fleet' string, so 'deploy: none' plus 'Deploy:fleet', or a
fenced 'Deploy: none', passed the ARC gate while the deploy-line job read
fleet. Each worker now runs, first and before checkout, the same awk parser
on the event payload for the App and requires exactly one 'Deploy: none'.
Tests run that real step script against those bodies.

Model: claude-opus-5-5
Task: implementation
Agent: Claude Code implementation sub-agent (CLO-1110)
Harness: t3/claude-code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nullStack65

nullStack65 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner Author

Independent review (one round): Grok 4.7 via T3 magpie-primary-codex, executed model grok-4.7, on head f229bd0. One important finding, F1, was fixed in da5f239. A focused re-check by the same reviewer on da5f239 returned confirmed with no new defect.

{"reviewed_head": "f229bd082ca19f51e045d220e389ad7a8bcf026b", "reviewer": "grok-4.7, T3 magpie-primary-codex", "findings": [{"id": "F1", "severity": "important", "summary": "App Deploy-line check used contains/denylist instead of the deploy-line job's parser; 'deploy: none' + 'Deploy:fleet' or a fenced 'Deploy: none' passed the ARC gate while the deploy-line job read fleet. Fixed by running the same awk parser as the first, pre-checkout step of each worker for the App.", "outcome": "confirmed", "rechecked_head": "da5f239763b3200012e13ebc0fdf762be76e21e6"}]}

@nullStack65
nullStack65 merged commit 25843a5 into release/native-0.1.10 Nov 24, 2026
7 of 11 checks passed
@nullStack65
nullStack65 deleted the clo1110/admit-upstream-sync-app branch November 24, 2026 03:22
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