Skip to content

feat(release): release fast-track system - #201080

Merged
RomneyDa merged 12 commits into
mainfrom
feat/google-chat-fast-track-approval
Nov 23, 2026
Merged

RomneyDa merged 12 commits into
mainfrom
feat/google-chat-fast-track-approval

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

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-v1 contract remain unchanged.

Simplified design

  • pnpm release:publish-preflight approval request --request request.json prepares a local canonical payload/digest and explicit human-review instructions. No network, credentials, decision store, custom status API or machine approval operation. Output explicitly reports publicationAuthorized: false.
  • Another human release manager must explicitly approve the exact request/action/digest, candidate, artifacts, scope, run/attempt and expiry in the normal release-managers group. Preserve the decision permalink, identity and timestamp with release evidence. Generic release authority, silence and previous approvals are insufficient. Changes/expiry require fresh approval.
  • Both release-maintainer and release-CI skills emphatically prohibit agents approving requests or using human tokens to impersonate approval. This is a procedural safeguard, not proof of independent human action. No new email allowlist or domain-wide access.
  • Keep the existing npm-release environment approval and scripts/release-approval-receipt.mjs publication record. No replacement approval receipt.
  • Remove the Google service transport/verifier, ID-token/origin configuration, custom request/status exchange, delivery/error protocol and obsolete service-client tests. The separate source/deployment proposal releases#56 is superseded. No Firebase/Cloud Run deployment dependency remains in this PR.

Retained policies

  • approved-fast-track-v1: inclusive 10 commits AND 10,000 total added/deleted lines from a published fully validated ancestor. Exclude exact package.json, package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml, yarn.lock, bun.lock and bun.lockb basenames 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

  • 21 manual approval/contract checks pass, including exact local packet output, rejected approve/reject/status operations, expiry, Git thresholds, full generated delta, binaries/submodules and partial-FRV retention contracts.
  • 61 existing preflight/approval-receipt checks and 6 existing interface checks pass. The interface suite is classified outside the tooling lane, so it was explicitly run with an external scoped local config; initial tooling/isolated discovery did not execute it and is not counted as proof.
  • Real local CLI synthetic request verified canonical SHA-256 and publicationAuthorized: false, without service credentials or a human decision.
  • Production scripts, tooling-leaf and explicit manual-suite TypeScript checks pass; targeted lint, formatting and whitespace checks pass.
  • Test ratchet: net counted test lines 0, allocation credit 0. New feature checks stay manual-only and refuse CI; no CI lane or test-budget allocation added.
  • Fresh independent incremental P0-P2 review: scoped-clean. Reviewer assessed the supplied diff, not unchanged dependencies or live behavior; tests were executed separately.
  • Simplification against prior head: 457 net lines removed, including 192 production lines and 223 obsolete test lines. One existing publication approval record remains, with no new durable state or service owner.

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.ts manual-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.ts and 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=true invocation still refuses; manual-suite types, targeted lint/format/whitespace and zero-allocation test ratchet pass. Hosted CI run 45081973562 completed successfully at a082f0e97224783d859b92697bc5133ecd957fc4, 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/deleted values 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.

@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL labels Nov 18, 2026
@RomneyDa RomneyDa changed the title feat(release): request fast-track approval through Google Chat feat(release): release fast-track system Nov 18, 2026
@socket-security

socket-security Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head f13a1cdad1b1efe27d6487d47b9113a5da76793a, but the PR head is now e94af3fc7af221565bdb4e1d8ebaef3d142e077e. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-18T08:42:13.850Z sha f13a1cd :: needs changes before merge. :: [P2] Make permanently stale DM delivery recoverable | [P2] Give permanent request rejections the correct recovery action | [P2] Bring the added tests within the enforced line budget

@RomneyDa
RomneyDa marked this pull request as ready for review November 18, 2026 11:06
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Nov 18, 2026
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has dependency changes awaiting review. A future dependency graph change requires an admin or SecOps member’s /allow-dependencies-change comment after the guard notice identifies that revision.

  • Current SHA: 2f093f56bc6ef181a94b18884cb5dbde72253045

@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 20, 2026
@RomneyDa
RomneyDa merged commit 973fbff into main Nov 23, 2026
109 of 110 checks passed
@RomneyDa
RomneyDa deleted the feat/google-chat-fast-track-approval branch November 23, 2026 00:10
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 23, 2026
* 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
obviyus added a commit that referenced this pull request Nov 23, 2026
#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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 24, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant