Repository navigation
fix(ci): admit the upstream-sync App to ARC CI on its exact proposal shape - #195
Merged
nullStack65 merged 2 commits intoNov 24, 2026
Merged
Conversation
…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>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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>
Owner
Author
|
Independent review (one round): Grok 4.7 via T3 {"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"}]} |
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.
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.ymladmits only the loginsnullStack65andjeffreysmithclosura. 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 ofvoice-and-inbox-core,-weband-mobile. The clause text is identical in all three. It admits only when every one of these holds:pull_request;nullStack65/t3codeitself (no forks), and the existing repository-id check still applies;release/native-0.1.10;sync/upstream-, the branch prefix thatscripts/upstream-sync.shcreates;closura-t3code-upstream-sync[bot]with numeric id360477638, both read from CLO-1110 disposable CI proof — do not merge #194's author and both required;github.actorandgithub.actor_idmatch that login and id, andgithub.triggering_actoris that login;Deploy: noneand noDeploy: 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.ymluses: one unfenced^Deploy:line with whitespace stripped. It fails unless the value isnone. This closes review finding F1:deploy: noneplusDeploy:fleet, or a fencedDeploy: none, passed the expression but the deploy-line job read them asfleet. The step reads only the payload, runs on the same ARC worker and executes no PR code.Unchanged:
pull_request_targetis added.runs-onis unchanged, so there are no new hosted runners.The PR also adds
.github/scripts/arc-ci-trust-gate.test.cjs. It extracts the realif:expressions from the workflow and evaluates them with a small GitHub-expression evaluator. That evaluator handles case-insensitive==,containsandstartsWith,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:
clo1110/disposable-ci-proof-20261124) and its body had no Deploy line. The gate keys on the real sync prefixsync/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 andDeploy: nonebody as an admitted case.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 toDeploy: nonebefore 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.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 fencedDeploy: nonewithDeploy:fleet, lowercasedeploy: nonewithDeploy:fleet, a tab beforefleet,Deploy: noneonly inside a fence, and twoDeploy: nonelines. Earlier Rejected cases:Deploy: fleet, both Deploy lines,Deploy: nonesuch,Deploy: nonemid-line, and an empty body;dependabot[bot]);actor_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.idcondition from one worker fails the test (the workers disagree). Removing the branch-prefix condition fails 3 cases.node .github/scripts/arc-ci-coverage.cjsstill reports 48 tests across 3 workers.arc-ci-coverage.test.cjspasses, 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 aDeploy: nonebody after merge.Deploy: none
Model: claude-opus-5-5 · Agent: Claude Code implementation sub-agent · Harness: T3 / Claude Code
🤖 Generated with Claude Code