Repository navigation
feat(release): release fast-track system - #201080
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Dependency graph guard clearedThis PR no longer has dependency changes awaiting review. A future dependency graph change requires an admin or SecOps member’s
|
* feat(release): request fast-track approval through Google Chat * refactor(release): integrate fast-track approval into publish preflight * feat(release): allow fast-track deltas up to 10 commits and 1000 lines * feat(release): raise fast-track delta limit to 50000 changed lines * feat(release): add partial-FRV approval policy and readable Chat cards * fix(release): preserve existing approval request canonical bytes * refactor(release): separate approval service and make checks manual-only * docs(release): link the separate fast-track service owner * fix(release): preserve approval recovery and delivery guidance * refactor(release): use normal release-manager fast-track approvals * fix(ci): keep manual release approval checks outside owner discovery * fix(release): cap fast-track at 10k lines excluding package files
#204043) The `check-dependencies` Knip reports pass again: unused exports are removed and five live files get their real entrypoints. Part of #204008. Refs #198611. ## Problem `check-dependencies` fails in every scheduled `main` run (latest: 45147591436). The three Knip reports listed: - **Unused files (5):** `scripts/e2e/lib/upgrade-survivor/{registry-tls,release-fixture,release-update}.mjs` (added by #203966 today) and `test/manual-release-approval.{checks,config}.ts` (added by #201080). These are live: `upgrade-survivor-docker.sh` runs `release-update.mjs` by path, which imports the other two, and `docs/reference/fast-track-release-approval.md` runs the manual-only Vitest config by path. Knip could not see either entrypoint. - **Unused exports (~45):** exports whose last consumer moved or that never had one outside their own file. ## Solution - Knip config: add `release-update.mjs` and the two manual approval files as entries; the manual checks suite is also a consumer in the scripts-export pass. Add `openssl` to `ignoreBinaries` (the release-update scenario mints its registry certificate with it). - Exports used only in their own file: drop `export` (and the matching `.d.mts` declarations). - Exports consumed only by focused tests (`resetCronProviderBackoff`, `authorizeControlUiPluginCookieRequest`, the lean post-ready bounds, `TRIAL_BUDGET_MS`) stay exported and are listed in the production config's existing test-only `ignoreIssues` block. `CronProviderRunSlot` is used through `import(...)` type queries that Knip does not follow; both configs ignore its type export. - Exports and test-support helpers with no use at all: delete them (`spawnGatewayInstance`, `buildManagedServiceHandoffUnavailableMessage`, `mockGitInstallSurface`, `managedGateway`, `shape`, `recorded`/`settled`, `devTargetRefusalCases`, `expectUpdateFailureReport`, `expectDelegatedPluginDoctorInput`, `ValidatedFastTrackReference`, `panelTabStripCss`) and the imports and re-exports that only they used. - Two tests that imported a removed export now go through the real path: the `openclaw id unlink` warning test checks the warning that `runUnlink` prints, and the tab-strip browser test loads `panel-tab-strip.css?inline` directly. No runtime behavior changes. ## Evidence - `pnpm deadcode:report` on `main` 6963e4f: fails (script, production and full-tree reports; same list as CI). - Same command on this branch: script, production and full-tree reports pass. - `src/cli/id-cli-unlink.test.ts`: 5/5 pass. `tsgo:core`, `tsgo:scripts`, `tsgo:ui`, `tsgo:core:test`, `tsgo:test:root`, `tsgo:test:ui` pass. oxlint and oxfmt clean on changed files. Co-authored-by: Ayaan Zaidi <[email protected]>
openclaw#204043) The `check-dependencies` Knip reports pass again: unused exports are removed and five live files get their real entrypoints. Part of openclaw#204008. Refs openclaw#198611. ## Problem `check-dependencies` fails in every scheduled `main` run (latest: 45147591436). The three Knip reports listed: - **Unused files (5):** `scripts/e2e/lib/upgrade-survivor/{registry-tls,release-fixture,release-update}.mjs` (added by openclaw#203966 today) and `test/manual-release-approval.{checks,config}.ts` (added by openclaw#201080). These are live: `upgrade-survivor-docker.sh` runs `release-update.mjs` by path, which imports the other two, and `docs/reference/fast-track-release-approval.md` runs the manual-only Vitest config by path. Knip could not see either entrypoint. - **Unused exports (~45):** exports whose last consumer moved or that never had one outside their own file. ## Solution - Knip config: add `release-update.mjs` and the two manual approval files as entries; the manual checks suite is also a consumer in the scripts-export pass. Add `openssl` to `ignoreBinaries` (the release-update scenario mints its registry certificate with it). - Exports used only in their own file: drop `export` (and the matching `.d.mts` declarations). - Exports consumed only by focused tests (`resetCronProviderBackoff`, `authorizeControlUiPluginCookieRequest`, the lean post-ready bounds, `TRIAL_BUDGET_MS`) stay exported and are listed in the production config's existing test-only `ignoreIssues` block. `CronProviderRunSlot` is used through `import(...)` type queries that Knip does not follow; both configs ignore its type export. - Exports and test-support helpers with no use at all: delete them (`spawnGatewayInstance`, `buildManagedServiceHandoffUnavailableMessage`, `mockGitInstallSurface`, `managedGateway`, `shape`, `recorded`/`settled`, `devTargetRefusalCases`, `expectUpdateFailureReport`, `expectDelegatedPluginDoctorInput`, `ValidatedFastTrackReference`, `panelTabStripCss`) and the imports and re-exports that only they used. - Two tests that imported a removed export now go through the real path: the `openclaw id unlink` warning test checks the warning that `runUnlink` prints, and the tab-strip browser test loads `panel-tab-strip.css?inline` directly. No runtime behavior changes. ## Evidence - `pnpm deadcode:report` on `main` bc8f08f: fails (script, production and full-tree reports; same list as CI). - Same command on this branch: script, production and full-tree reports pass. - `src/cli/id-cli-unlink.test.ts`: 5/5 pass. `tsgo:core`, `tsgo:scripts`, `tsgo:ui`, `tsgo:core:test`, `tsgo:test:root`, `tsgo:test:ui` pass. oxlint and oxfmt clean on changed files. Co-authored-by: Ayaan Zaidi <[email protected]>
Problem
Prepare exact fast-track requests without a separate Google Chat/Firebase approval system. The maintainer has explicitly chosen the normal release-managers group and existing release approval process, accepting the shared-token procedural trust model.
This PR still does not enable a validation bypass or authorize publication. Existing parent, npm/plugin, Docker and closeout gates and the historical
authorized-beta-focused-v1contract remain unchanged.Simplified design
pnpm release:publish-preflight approval request --request request.jsonprepares a local canonical payload/digest and explicit human-review instructions. No network, credentials, decision store, custom status API or machine approval operation. Output explicitly reportspublicationAuthorized: false.npm-releaseenvironment approval andscripts/release-approval-receipt.mjspublication record. No replacement approval receipt.Retained policies
approved-fast-track-v1: inclusive 10 commits AND 10,000 total added/deleted lines from a published fully validated ancestor. Exclude exactpackage.json,package-lock.json,npm-shrinkwrap.json,pnpm-lock.yaml,yarn.lock,bun.lockandbun.lockbbasenames at any directory depth from LOC only. All commits still count; other generated files count. Binary/submodule/unmeasurable changes and shallow history still reject, including in excluded files. Fast-tracks cannot reset the baseline. Git counts are recomputed, not trusted from the request.approved-partial-frv-v1: separate explicit incomplete-validation action, no delta ceiling, original FRV run/attempt/candidate and snapshot URL/digest, result counts and all outstanding jobs retained. A failed FRV never becomes a passing FRV. Small-delta eligibility still rejects this policy until authenticated evidence integration exists.Canonical request serialization and the separate partial-FRV contract are unchanged. The small-delta policy now uses the requested 10k LOC cap and package-file exclusions. A request packet/hash is not authenticated validation evidence or publication authorization.
Validation
publicationAuthorized: false, without service credentials or a human decision.CI; no CI lane or test-budget allocation added.Remaining work / operational limits
Publisher enforcement and authenticated reference/original-FRV evidence acquisition remain unfinished. Before enabling skips, bind independently derived candidate/artifact/scope/run identities, preserve integrity/signing/publication authorization, migrate all existing consumers together and test normal/exception paths. Record “validation skipped by approved fast-track,” never fabricated successful validation.
Removing the dependency and superseding the source PR does not delete previously provisioned cloud resources, Firestore records or setup credentials. No live cloud cleanup/deployment, current human/mobile approval, merge or release is claimed. Historical Google mobile proof is not proof of this new procedural model.
CI preflight repair
The initial
.spec.tsmanual-suite filename was still selected by CI's changed-owner/import-consumer graph, despite not belonging to a canonical Vitest shard. CI preflight failed before executing tests with “test targets lack canonical shard metadata.” Renamed it to.checks.tsand updated only the explicit local config; no discovery policy, CI lane or budget was weakened/added. The existing suite contents are byte-identical.Local proof: all 21 manual checks pass; actual changed-owner target selection and shard construction over the complete PR diff succeed with no fallback and no manual-suite target; explicit
CI=trueinvocation still refuses; manual-suite types, targeted lint/format/whitespace and zero-allocation test ratchet pass. Hosted CI run 45081973562 completed successfully ata082f0e97224783d859b92697bc5133ecd957fc4, including preflight and downstream CI jobs. The separate Darwin tooling check and aggregate status were still pending at this observation; no merge-readiness claim.Updated small-delta policy
Inclusive 10 commits AND 10,000 added/deleted lines, excluding the enumerated package manifest/lockfile basenames from LOC only. Delta
added/deletedvalues use those filtered counts; commit counts and integrity checks still cover the whole delta. Local regressions prove 10,000 accepted/10,001 rejected, dependency-only commits retained, nested lockfile exclusion, similarly named source files counted and binary excluded files still rejected. 22 manual checks pass, including red/green threshold/exclusion regressions. No CI lane or budget added.Targeted scripts/tooling/manual-suite typechecks, lint/format/whitespace and fresh incremental P0-P2 review passed for the policy repair (review was diff-only; a subsequent mechanical optional-access adjustment satisfied TypeScript). The new suite remains manual-only.