This repository was archived by the owner on Nov 20, 2026. It is now read-only.
Repository navigation
[AI] ci(autofix): replace autofix.ci app with native fix-or-fail gate (CHE-835) [squash] - #137
Open
congvc-bot-x99[bot] wants to merge 3 commits into
Open
congvc-bot-x99[bot] wants to merge 3 commits into
congvc-bot-x99[bot] wants to merge 3 commits into
Conversation
… (CHE-835) autofix-ci/action needs the autofix.ci GitHub App, which is not installed on this fork, so the job failed on every PR. Run yarn lint:fix natively, fail when it changes the tree, and upload the patch. Drop the network-dependent news feed regeneration from the gate.
added 2 commits
October 6, 2026 07:34
…comments (CHE-835) R1: collect the autofix patch when the fix step succeeds or fails (not on cancel/setup failure) and keep the job red on an unfixable lint error or dirty tree. R2: news-feed text only; generate:news-feed reads committed blog files and is validated, not committed, by news-feed-check.
congvc-dev
marked this pull request as ready for review
October 6, 2026 01:15
Collaborator
|
OCR receipt — #137 @ Lane: keyed ( Findings (candidate defects; I checked each against the head source and both reproduce):
Instrument output — the reviewer seat must confirm or reject each finding in its verdict. Low recall: a short list is not evidence the change is correct. |
congvc-dev
marked this pull request as draft
October 6, 2026 01:45
congvc-dev
marked this pull request as ready for review
October 6, 2026 01:55
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
🤖 Status: Ready — CHE-3439, 2026-11-04 ICT. Independent OpenAI review PASS at
60708217ded11df8e8aebe6caa6fd87c47816536againstab8810f030144bf8043491077e73b5725b8c13f1: signed verdict. Current checks are success or intentionally skipped. The patch artifact omits staged deletions and binary payloads; lint enforcement still fails correctly. No source changes, merge, enqueue, settings or deploy action.Refs CHE-835
Description
Related issue(s)
Testing
Checklist
🤖 Agent notes (CHE-835; outside the template, which is left unmodified per
.github/agents/pr-and-commit-rules.md)Tool disclosure: written by Claude (Opus) as an AI author. Independent cross-lab PASS is recorded below; human review and merge remain separate.
What
autofix.ci(jobautofix) usedautofix-ci/action, which needs the autofix.ci GitHub App. It is not installed on this fork, so the job fails on every PR (500 autofix.ci app is not installed for this repository, e.g. run 37377321992 / job 111989751767 on #135). Installing the app is not approved, so this replaces it with a native check. Workflowautofix.ci/ jobautofixkeep their names, so the check name does not change.yarn lint:fix(oxfmt . && oxlint --fix --type-aware --quiet) runs; the job FAILS if the tree changed (git status --porcelainnon-empty, so untracked files count too).yarn lint:fixsucceeds OR fails (if: !cancelled() && (steps.fix.conclusion == 'success' || steps.fix.conclusion == 'failure')), so a mixed change (fixable formatting + a non-autofixable type-aware error) still yields a patch. Cancellation and setup/checkout failure leavesteps.fix.conclusionascancelled/skipped, so collection and the gate are skipped. The fix step is notcontinue-on-error: a lint error always fails the job.Unfixable lint errormessage), on a dirty tree (Format/lint fixes needed), or both. The patch (git diffwith--intent-to-add) uploads as artifactautofix-patchwhen present (actions/upload-artifactpinned to the SHA used in other workflows).permissions: contents: readunchanged; no write token, no commit to PRs,persist-credentials: falsekept. Nothing auto-commits any more.yarn generate:news-feedis not run in this gate. It reads the committedpackages/docs/blogfiles (no network, no drift from outside the repo); it stays in the path-filterednews-feed-check.yml, which validatesnews.jsonbut does NOT regenerate-and-commit it: authors runyarn generate:news-feedand commit the result. Comments/error text inautofix.yml,news-feed-check.ymland the generator's intro comment were corrected (text only; validation behaviour unchanged).check.ymlis untouched: joblint(yarn lint=oxfmt --check . && oxlint --type-aware --quiet) still enforces format and type-aware lint..github/workflows/autofix.yml; comments/message text only in.github/workflows/news-feed-check.ymlandpackages/ci-actions/bin/generate-news-feed.ts. No release-notes file added (CI-only change).packages/ci-actions/bin/release-notes-generate.mjshas a similar staleautofix.cicomment; left untouched (out of this correction's scope).Validation, correction round 2 (local, committed tree
060f14820, tree909715a49; step shell run in sequence modelling GitHub scheduling)yarn lint1; fix 0; 624-byte patch,git apply --checkPASS; gate 1typescript/no-floating-promises(committed scratch file)yarn lint1; fix 1; patch STILL produced (329 bytes, apply PASS); gate 1 withUnfixable lint error+Format/lint fixes neededyarn lint1; fix 1; no patch; gate 1Unfixable lint errorsteps.fix.conclusioniscancelled/skipped: collect, upload and gate skipped (by construction, no CI run)news-feed-check.yml)check.yml,package.jsongit diff origin/masteremptyValidation, round 1 (local, committed tree
7d9488aa4, tree6fb70fc93, base masterab8810f03)yarn linton clean master base (inherited glossary repair is on master)yarn lint:fix+ the gate script on clean treeyarn lintexit 1;yarn lint:fix+ gate exit 1; 398-byte patch; patch applies cleanly (git apply --check)git statusemptypersist-credentials: falsematchcheck.ymlcheck-gh-actions/zizmorrun in CILocally run with node 22.23.1, yarn 4.17.1, oxfmt 0.59.0, oxlint 1.74.0 (CI uses node 24). Logs: X99
.../workdir/evidence/native-autofix/.Limits
yarn lint:fix).pull_requestonly and stays PR-only after merge: there is noautofixcheck-run on master, and none is needed for the context to exist (see the required-status plan).Required-status configuration plan (read-only discovery; nothing applied)
Observed 2026-10-06 with the X99 GitHub App token (
congvc-bot-x99[bot]):GET repos/cheese-work/actual/branches/master/protection->403 {"message":"Resource not accessible by integration","status":"403"}GET repos/cheese-work/actual/rulesets->200 [];GET repos/cheese-work/actual/rules/branches/master->200 []GET repos/cheese-work/actual/branches/master->"protected": false,"protection": {"enabled": false, "required_status_checks": {"enforcement_level": "off", "contexts": [], "checks": []}}GET repos/cheese-work/actual->{"default_branch":"master","permissions":{"admin":false,"maintain":false,"pull":false,"push":false,"triage":false},"private":false,"visibility":"public"}403 Resource not accessible by integration,permissions.admin=false) cannot read protection settings. A separate reviewer runtime reportedadmin:trueand404 Branch not protectedon the same endpoint: these are different runtimes/credentials, so the 403 is not a universal blocker. Capability is NOT authorization: no settings were changed and none is authorized by this PR.gh pr checks):autofixfail,lintfail, plus pass:constraints,knip,test,typecheck,api,cli,crdt,mobile,server,web,validate-cli,build (ubuntu-24.04, ubuntu-latest),Build web bundle,compare,Functional (shard 1/3..3/3),Functional Desktop App,Visual regression (shard 1/3..3/3),Merge VRT Reports,migrations,check-gh-actions,zizmor,Analyze,CodeQL,setup(x2).ab8810f03(non-skipped):lint,typecheck,test,constraints,knip,api,cli,crdt,mobile,server,web,validate-cli,build,check-gh-actions,Analyze,promote-master-aliases,setup,comment. Noautofix, no Functional/VRT/compare/migrations(PR-only workflows).(a) Which checks to require on master PRs
lint,typecheck,test,constraints,knip,autofix(native, once on master).vietnamese-coverage(displayed asVietnamese coverage / vietnamese-coverage) only after its workflow is on master; confirm the exact context string from a PR's checks list.Functional (shard N/3),Visual regression (shard N/3),check-gh-actions.compare(needs the base branch build; unsuitable for stacked PR bases), duplicate-namedsetup,comment, skipped/conditional jobs (migrationsis PR-only and conditional).(b) How to apply (repo admin; not done here). Settings -> Rules -> Rulesets -> New branch ruleset, or the API (PROPOSAL;
integration_id15368 = GitHub Actions):{ "name": "master-required-checks", "target": "branch", "enforcement": "active", "conditions": { "ref_name": { "include": ["refs/heads/master"], "exclude": [] } }, "rules": [ { "type": "required_status_checks", "parameters": { "strict_required_status_checks_policy": false, "do_not_enforce_on_create": false, "required_status_checks": [ { "context": "lint", "integration_id": 15368 }, { "context": "typecheck", "integration_id": 15368 }, { "context": "test", "integration_id": 15368 }, { "context": "constraints", "integration_id": 15368 }, { "context": "knip", "integration_id": 15368 }, { "context": "autofix", "integration_id": 15368 } ] } } ] }gh api -X POST repos/cheese-work/actual/rulesets --input ruleset.json(needs admin). Suggestenforcement: "evaluate"first if the plan allows it, then flip toactive. Classic protection alternative:gh api -X PUT repos/cheese-work/actual/branches/master/protectionwithrequired_status_checks.checks.(c) Prerequisites and observed blockers
lint,typecheck,test,constraints,knipandautofixalready report on PR heads with GitHub Actions integration id 15368.autofixstays PR-only, so no master-push run is needed or produced; merging this PR only distributes the replacement workflow to future PRs. Requiring contexts BEFORE merge could expose the existing app-based failingautofixon other PRs. A workflow skipped by path filters can leave a required context missing (blocking PRs indefinitely); a job that reports askippedconclusion is a different case. Before the admin action, recheck exact job names, integration binding, target branch and reporting conditions.autofixcheck-run, so it may need to be typed manually or chosen from a PR run's history.lintcurrently fails on [AI] CHE-1197: Cover report browser values, exports and Monte Carlo pots across two clients #135 (stacked baseauthor/CHE-1163/91229474); not investigated here, outside this PR's scope. Check it before makinglintrequired.(d) Recovery owners: repo admin (Cheese) for rulesets/branch protection and any autofix.ci app decision; the dev team for workflow/job-name changes and for the Vietnamese coverage workflow reaching master.
(e) Explicitly NOT changed by this PR: repo/org settings, branch protection, rulesets, GitHub Apps (no autofix.ci install), secrets,
check.yml/lintjob, any other workflow, #134-#136 or any other PR/branch, news feed generation (only removed from this gate), merges, deployments, reruns.