Skip to content

M2: merge main (c616e356c) into sam/selfhost-pass-2 - #2758

Merged
simple-agent-manager[bot] merged 20 commits into
sam/selfhost-pass-2from
sam/task-m2-merge-latest-2pr59z
Nov 15, 2026
Merged

simple-agent-manager[bot] merged 20 commits into
sam/selfhost-pass-2from
sam/task-m2-merge-latest-2pr59z

Conversation

@simple-agent-manager

@simple-agent-manager simple-agent-manager Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

M2 merges origin/main (first at c616e356ce1b6b17bcfa66afc801c5c39e3d853c, then once more at 1e49113c6f68bdefbbeb55daec58814d63b7ebfe; see the second merge below) into the self-host integration branch sam/selfhost-pass-2 at c02f82651af78c0366d74daf27c49c695a6d8c04. It is a real merge, not a rebase or cherry-picks, and the base is the integration branch, not main. Draft: do not merge. The coordinator reviews and merges it. Model: M1 (#2736).

Second merge: main moved to 1e49113c6

Main gained three commits after the brief:

They were merged once more (105393655).

  • One conflict: apps/api/src/scheduled/handler.ts. Main replaced the orphan sweep call: errors now fail the sweep through the durable path, partial counters are kept, and providerOrphansDeletionRequested / providerOrphanAccountErrors are logged. The branch had added its reverse-tunnel lease sweep just before that call. Resolution: the branch's lease sweep, then main's block. The file now differs from main only by the branch's reverse-tunnel lines.

  • Audit of the fix(api): make the orphan sweep authenticate and delete on GCP #2757 files:

    • Byte-identical to main: provider-orphan-destroy.ts, provider-orphan-inventory.ts, provider-orphan-reconciliation-core.ts, services/platform-credentials.ts, packages/providers/src/gcp-deletion.ts, vm-deletion.ts, and all five new or changed orphan tests.
    • handler-kill-switch.test.ts differs only by the branch's reverse-tunnel lines.
    • The branch had touched none of these files except handler.ts and its test.
    • The integration branch does not carry box PR fix(api): platform GCP orphan sweep auth (box branch, P1b) #2750's version of this fix, so there was no overlap.
  • PR fix(api): platform GCP orphan sweep auth (box branch, P1b) #2750 conflicts with this head after the second merge. It was not touched. Its head is now 96cc0ec89, and git merge-tree --write-tree of it with 105393655 conflicts in 3 files:

    • apps/api/tests/unit/scheduled/handler-kill-switch.test.ts
    • apps/api/tests/unit/scheduled/provider-orphan-real-provider-boundary.test.ts
    • apps/www/src/content/docs/docs/reference/configuration.md

    Main's fix(api): make the orphan sweep authenticate and delete on GCP #2757 is the reviewed version of the same orphan-sweep fix, so fix(api): platform GCP orphan sweep auth (box branch, P1b) #2750's owner should take main's version of those files. Before the second merge (f24eb53a8), fix(api): platform GCP orphan sweep auth (box branch, P1b) #2750 merged cleanly.

  • Checks after the second merge:

    • build 18/18; typecheck 36/36.
    • Quality gates: wrangler-bindings, runtime-tunables, migration-safety, file-sizes, shared-flight-joins, ast-checks.
    • selfhost:test: 538 passed, 5 skipped.
    • Every tests/unit/scheduled file, plus the outbound-fetch inventory, the selfhost-only-modules guard, setup, manifest and both GitLab sign-in suites: 36 files, 463 tests.
  • No new migration of any kind from these commits.

Conflict table (first merge)

File What main did What the branch did Resolution
packages/providers/src/provider-fetch.ts L7: single read and re-wrap; also strips content-encoding/content-length Earlier form of the same single read Main's file (a strict superset)
packages/providers/tests/unit/provider-fetch.test.ts L7 tests Earlier copies of the same tests Main's file
apps/api/src/durable-objects/node-lifecycle-provisioning.ts L7: attemptDeadlineMs / logAttemptFailure from new -attempt.ts Earlier form: inline deadline from the branch's -deadline.ts, inline attempt_failed log Main's file. The branch's node-lifecycle-provisioning-deadline.ts (45 s, 1 s-600 s) is deleted
apps/api/src/services/node-allocation-recovery.ts L7: safeFailureFields, describeProvisioningAttemptFailure, summarizeProvisioningFailure, provider-code shape filter Earlier describeProvisioningAttemptFailure Main's file
apps/api/src/services/node-provisioning.ts L7: summarizeProvisioningFailure in both uncertain-allocation errors, { cause } Reverse-tunnel ingress (prepareNodeTunnelIngress / settleNodeTunnelIngress, reverse-tunnel transport on resume, nodeRole, tunnelIngress gate) Main's text plus the branch's reverse-tunnel ingress. That ingress is now the only difference from main
apps/api/tests/workers/direct-provisioning-do.test.ts L7 tests (admin setting, durable_attempt_failed) Earlier L7 tests Main's file
apps/api/src/auth.ts #2748: GitLab trusted only for gitlab.com or the pinned GITLAB_HOST; untrusted host left out of trustedProviders, overrideUserInfoOnSignIn: trusted, untrustedGitLabUserInfo gitLabLoginProvider (host refusal, guarded profile fetch), keepLinkedAccountEmail Union: the branch's provider, and gitlab is pushed to trustedProviders only when identityTrusted. See M2-D1
apps/api/src/services/platform-config-oauth.ts identityTrusted, PUBLIC_GITLAB_HOST, pinnedHost argument allowPrivateNetwork Union: GitLabOAuthConfig carries both fields
apps/api/src/routes/auth.ts CLOSED_PROVIDER_TOKEN_PATHS (better-auth token endpoints closed) /link-social limited to GitHub and GitLab Union, each block with its own doc comment
apps/api/src/routes/setup.ts Rate-limit key CF-Connecting-IP only Same rule through clientIpFromHeaders (lib/client-ip.ts, also validates the literal) Branch hunk: same rule, shared helper. Later S4 removed the branch's closeSetupWithoutToken
apps/api/src/services/platform-config-core.ts imports log imports settleSharedFlight Union of imports
apps/api/tests/unit/routes/admin-platform-config.test.ts, apps/api/tests/unit/services/platform-config.test.ts expect identityTrusted: false expect allowPrivateNetwork: false Both fields
apps/api/tests/unit/routes/admin-settings.test.ts new integration owner alerts describe new OpenAI-compatible LLM endpoint settings describe Both describe blocks, each from its own side's text
apps/web/src/components/ai-usage/AiBudgetSettingsSection.tsx (add/add) L4 split, export BudgetSettingsSection Same split, named AiBudgetSettingsSection, plus monthly-cap availability (capAvailable, MonthlyCapUnavailableNote) Main's name and text, plus the branch's cap-availability additions. These additions are the only difference from main
apps/web/src/components/ai-usage/format.ts (add/add) L4 Same, plus a doc comment Main's file
apps/web/src/pages/SettingsComputeUsage.tsx L4 Imports AiBudgetSettingsSection Main's file. The branch test monthly-cost-cap-availability.test.tsx now imports BudgetSettingsSection
apps/web/src/pages/AdminPlatformConfig.tsx #2747: handleSave returns boolean and keeps a failed Clear's dialog open handleManifestStored (GitHub App manifest panel) Union

Also resolved inside the merge commit, with no textual conflict:

  • Duplicate registry entry (S1). operations.nodeProvisioningAttemptDeadlineMs auto-merged twice into admin-settings-core-definitions.ts: main's (60 s, 5 s-180 s) and the branch's (45 s, 1 s-600 s).
    • The branch definition and its import are removed, so the file is byte-identical to main.
    • admin-settings.md had both "Node provisioning" sections. The branch's is removed.
    • workspace-create-metering.test.ts is main's file. The branch's copy mocked the deleted module.
  • GitLab sign-in. main's untrustedGitLabUserInfo used an unguarded fetch and is replaced by the branch's guarded fetch with main's untrusted rules (M2-D1).
    • The helper is removed from gitlab-sign-in-identity.ts. untrustedGitLabAccountSubject and gitlabAccountScope stay.
    • security.md cites the new location.

Silent breakages found (no textual conflict) and fixed

# Breakage Fix Commit
S1 Admin settings registry: one setting defined twice with contradictory default and bounds, and documented twice Main's definition only 17a464e51
S2 The branch's GitHub App manifest completion (POST /api/admin/platform-config/github-app/manifest/complete) stores integration credentials through savePlatformIntegrationConfig but did not schedule main's (#2747) owner security alert. It also returned status without main's actor labels, and the admin page writes that status into the same query cache the GET fills Schedules integration-changed and passes includeActorLabels: true. New test through the real manifest flow, both halves proven discriminating: without the alert the test fails expected 0 > 0; without the labels it fails 'admin' vs 'Ada Admin <admin@example.com>' 73ebcbfc1
S3 AdminSettingName union listed operations.nodeProvisioningAttemptDeadlineMs twice (SonarCloud S4621 on e399e0120) Main's member only 73ebcbfc1
S4 Main's isSetupCompleted (#2748) closes setup on any install with an active superadmin. That made the branch's closeSetupWithoutToken unreachable, and the branch control "a token install with an owner stays open" (setup-without-token.test.ts) failed Helper removed; GET /status uses main's check alone. The control asserts main's 410 with setup.completed recorded. The token-less self-host cases keep their tests dd95a017b
- deploy/selfhost/README.md cited the removed helper Cites isSetupCompleted f24eb53a8

Discrimination proof for the GitLab union. With the untrusted branch in fetchGitLabUserInfo disabled, main's gitlab-sign-in-trust.test.ts fails 4 of 9 tests:

  • the 2026-11-12 owner-email takeover
  • unverified email for a new user
  • host-scoped ids
  • a pinned host differing from the saved one

All four pass with the branch restored. The branch's gitlab-oauth-sign-in.test.ts (guarded fetch, redirects, private host, linked email) passes too. It pins GITLAB_HOST in the environment, so it runs on main's trusted path.

Audit (beyond textual conflicts)

Area Result
Admin settings registry S1 and S3 fixed. The cloudflare-specialist loaded ADMIN_SETTINGS_REGISTRY: 274 entries, no duplicate names, no duplicate legacyEnvironment. operations.nodeProvisioningAttemptDeadlineMs exists once (60000, 5000-180000, from @simple-agent-manager/shared)
apps/api/wrangler.toml Byte-identical to origin/main (empty diff), including the Durable Object bindings, [[migrations]] and main's two [vars] changes. Hosted git is declared only by scripts/selfhost/selfhost-durable-objects.ts; tests/unit/selfhost/selfhost-only-modules.test.ts passes. pnpm quality:wrangler-bindings: 20 DOs, 22 migrations, no [env.*]
D1 migration numbering Main adds no D1 migration. The 20 duplicate prefixes (0002 … 0231) are identical on both parents and the result, so the merge introduces none. The branch's only D1 additions are 0232_node_reverse_tunnel_leases.sql (still unique) and observability/0002_analytics_events.sql
ProjectData DO migrations None new from main
apps/api/src/index.ts No hosted-git import; it differs from main only by the branch's self-host additions
scripts/selfhost/celld-project.ts, celld-config.ts Untouched by main. celld-config.ts copies [vars] generically, so main's new PROJECT_DATA_ARCHIVE_DAILY_WRITE_BUDGET (6000000) and PROJECT_DATA_ARCHIVE_GLOBAL_SWEEP_INTERVAL_MS (540000) flow through. The celld-config and celld-project tests pass
CI workflow The hosted-git job stays. Main's ubuntu-24.04 pins (Playwright and VM-agent jobs) are kept
38 files changed on both sides 18 conflicted. The task-completion-validator diffed the 20 auto-merged ones (env, scheduled handler, admin-platform-config route, web api clients, shared constants, docs) and found no line from either side lost. The two real breakages are S2 and S3
PR #2750 (sam/p1b-box-orphan-sweep-gcp) Not touched. After the first merge it merged cleanly (at #2750 head 6265923f3). After the second merge it conflicts in 3 files (see the second-merge section)

Test results

Local, on the merged tree:

  • Install and build:
    • pnpm install --frozen-lockfile passes. Main changed no dependency the branch also pins.
    • pnpm build: 18/18 tasks.
  • Typecheck and lint:
    • pnpm typecheck: 36/36. tsc for scripts/deploy and scripts/selfhost: pass.
    • pnpm check:fast: pass (format ratchet, oxlint shadow, ESLint with the SAM rules, type-boundary ratchet).
  • Quality gates (19), each passed:
    • wrangler-bindings, runtime-tunables, migration-safety, do-migration-safety, migration-ordering
    • file-sizes, stale-artifacts, source-contract-tests, shared-flight-joins
    • dependency-governance, direct-dependency-evidence, workspace-test-surfaces
    • node-pool-boundary, runtime-boundary-semantics, agent-install-manifest
    • skill-references, ast-checks, repo-visibility, no-tracked-stale-binaries
  • Suites:
    • Durable Object migration compatibility (scripts/quality/do-migration-compatibility.test.ts): 20/20.
    • pnpm selfhost:test: 538 passed, 5 skipped (36 files). The skips are the nft -c ruleset tests: this workspace has no nft, and CI installs nftables.
    • Hosted-git conformance (pnpm --filter @simple-agent-manager/api test:hosted-git): 20/20.
    • Full pnpm test: on the merge state (started on e399e0120):
      • All packages passed except api.
      • api: 16,383 passed, 2 failed, 5 skipped (1,101 files).
      • The two failures are explained. github-app-manifest.test.ts was being edited during the run (the S2 test and its discrimination reverts). project-data-archive-sharding.test.ts "never materialises more than one page" hit the 5 s test timeout under full-suite load in this workspace; it is main's test and untouched by this merge.
      • Both files pass on the head (setup-without-token, github-app-manifest and project-data-archive-sharding: 58/58). CI's Test job is the independent run.
      • Web: 418 files passed. project-data: 50 files. providers: 48 files.
  • Not run locally: Go, the Workers-runtime DO shards and selfhost:live-test (no Go or Docker here). CI is the evidence for those.

CI, started by hand (integration-branch PRs do not start it):

  • Run 43727081209 on f24eb53a8 (after the first merge): success, every job green. That includes Test, the three Durable Object Workers shards, Hosted git conformance (self-host), Validate Deploy Scripts, Go Vulnerability Diff, VM Agent Test, VM Agent Integration, VM Agent E2E, CLI Test, Devcontainer Volume Mount, Type Check, Lint, Build and Code Quality Checks.
  • Run 43725931163 on e399e0120 was cancelled (stale head that still had the red S4 test).
  • Run 43740194243 on 105393655 (after the second merge): success, every job green (23 succeeded, the rest skipped by path filters; none failed). The PR head 2cdfca47a differs from 105393655 only by this task's markdown file.

SonarCloud (PR analysis, project raphaeltm_simple-agent-manager): quality gate OK on head 2cdfca47a (and earlier on f24eb53a8): 0 bugs, 0 vulnerabilities, 0 code smells, 0 open issues, 0 security hotspots on new code.

  • The first analysis (e399e0120) had one finding: S4621, the duplicated union member that S3 removed.
  • The known accepted S6505 on the hosted-git CI job is not new code in this PR and did not appear.

What the next box round must check (app.vmtest.sam2.party; not touched by this task)

  1. GitLab sign-in trust (fix(security): close setup on owned installs, mask SETUP_TOKEN, scope GitLab trust #2748), most important:
    • A GitLab host saved at runtime (Admin → Integrations, or first-run setup) is now untrusted unless it equals GITLAB_HOST in the box's Worker environment. Its sign-ins are stored under host-scoped account ids (<host>/users/<id>), its emails count as unverified, and its profile is not synced.
    • A user who signed in with that host before this merge has a raw-id account row, so their next sign-in creates or matches a different identity, and repository access through gitlabAccountScope will not use the old row.
    • Check which GitLab host the box uses and how it was configured. Then sign in once with an existing GitLab user and once with a new one.
    • If the box's host should be trusted, pin it as GITLAB_HOST.
  2. Provisioning attempt deadline (L7):
    • The default is now 60 s, from the admin setting.
    • A value the box stored under the branch's old range (below 5000 or above 180000 ms) is now ignored, and 60 s applies (validStoredValue). Check Admin → Settings.
    • Provision one GCP node: it should complete in its first attempt.
    • The per-attempt log event is now node_provisioning.durable_attempt_failed, not node_provisioning.attempt_failed, so update log greps.
    • A failed node shows a safe summary such as ProviderError (gcp, HTTP 403, PERMISSION_DENIED) in nodes.error_message.
  3. provider-fetch: responses are re-wrapped without content-encoding / content-length. A GCP create, the STS token exchange and a DNS call through it must still work on celld.
  4. Setup: /setup answers 410 once an active superadmin exists (now from main's isSetupCompleted). A box with a SETUP_TOKEN also closes once it has an owner.
  5. Owner security alerts (Admin hardening: clear integrations, truthful source labels, owner alerts #2747/fix(security): close setup on owned installs, mask SETUP_TOKEN, scope GitLab trust #2748):
    • Saving or clearing an integration, completing setup, linking an account, and (S2) creating the GitHub App through the manifest flow now email the owners through the box's mail sender.
    • Check one alert arrives, or look for security_alert.no_sender in the log.
    • Check the Integrations page shows "stored in SAM" labels after the manifest flow, and that Clear works.
  6. ProjectData archive drain: main raised the sweep to every 9 minutes (PROJECT_DATA_ARCHIVE_GLOBAL_SWEEP_INTERVAL_MS=540000) with a 6M daily write budget, and celld copies both. Watch box CPU and the archive cron log for the first hours.
  7. Closed better-auth endpoints: /api/auth/get-access-token, /refresh-token and /account-info now answer as closed. No SAM client calls them (searched web, CLI and selfhost).
  8. No new D1 or DO migrations: celld d1 migrations list should show nothing pending, the same as before the deploy.
  9. Provider orphan sweep (fix(api): make the orphan sweep authenticate and delete on GCP #2757, second merge): the cron's orphan reconciliation now authenticates and requests deletion on GCP, and an errors count above zero fails the provider_orphan_reconciliation sweep.

Decisions for Raphaël

# Decision Recommendation
M2-D1 GitLab sign-in: main's untrusted-host rules (#2748) now run inside the branch's guarded profile fetch (fetchGitLabUserInfo), and main's untrustedGitLabUserInfo (plain fetch, follows redirects with the access token) is removed. For an untrusted host the branch's keepLinkedAccountEmail is skipped, because there is no profile override for it to protect. The branch schema requires username and state, while main's tolerated their absence; real GitLab always sends both Keep. Land it with the slice that lands gitlab-login-provider.ts
M2-D2 S2: owner alert and actor labels on the branch's manifest route Keep. It is main's #2747 behaviour applied to a branch route that reaches the same writer

Noticed, not changed (per the brief)

  • node_provisioning.attempt_failed log name. It still exists for tunnel-setup failures (node-tunnel-provisioning-failure.ts, main and branch), next to L7's durable_attempt_failed. That is two names for related events; it is main's code.
  • Admin settings doc. apps/www/.../admin-settings.md keeps the branch's agentEmail.smtpTimeoutMs row. It is branch-only and correct.

Validation

  • pnpm lint (via check:fast)
  • pnpm typecheck
  • pnpm test (see Test results)
  • Additional validation: quality gates, selfhost:test, hosted-git conformance, DO migration compatibility
  • If this PR changes candidate selection for a sweep/cron/alarm loop: N/A. No selection predicate changed; main's archive cadence vars change is main's reviewed change

Staging Verification (REQUIRED for all code changes — merge-blocking)

Does not apply. This branch never deploys to Cloudflare staging. It is a draft PR into the self-host integration branch, and the self-host test box round (owned by another task) verifies it after the merge; see the box checklist above.

  • Staging deployment green: N/A (integration branch, never deployed to staging)
  • Live app verified via Playwright: N/A
  • Existing workflows confirmed working: N/A
  • New feature/fix verified on staging: N/A
  • Infrastructure verification completed: N/A
  • Mobile and desktop verification notes added for UI changes: N/A

Staging Verification Evidence

N/A: see above.

UI Compliance Checklist (Required for UI changes)

N/A. The apps/web edits are conflict resolutions that take main's L4 split and names, keep the branch's existing cap-availability additions, and union two handlers in AdminPlatformConfig.tsx. No layout changed. Covered by the existing web unit tests (web: all 418 files pass).

End-to-End Verification (Required for multi-component changes)

  • Data flow traced with code path citations
  • Capability tests exercise the happy path across system boundaries: the GitLab sign-in vertical slices (real better-auth and SQL), and the GitHub App manifest flow (real routes and SQL, owner alert)
  • Assumptions verified against code and tests
  • Gaps documented below

Data Flow Trace

  • GitLab sign-in: routes/auth.ts → createAuth (auth.ts) → selectGitLabOAuthConfig(config, env.GITLAB_HOST) (platform-config-oauth.ts, identityTrusted, allowPrivateNetwork) → gitLabLoginProvider → fetchGitLabUserInfo (guardedFetch; untrusted: untrustedGitLabAccountSubject, emailVerified: false) → better-auth.
  • GitHub App manifest: routes/admin-platform-config.ts /github-app/manifest/complete → completeGitHubAppManifest → savePlatformIntegrationConfig → scheduleSecurityAlert → getPlatformConfigStatus({ includeActorLabels: true }).

Untested Gaps

  • A full-Worker celld boot with D1 (no Docker here).
  • Go tests and selfhost:live-test locally. CI covers both.

Post-Mortem (Required for bug fix PRs)

N/A: merge, not a bug fix.

Specialist Review Evidence (Required for agent-authored PRs)

  • All local reviewers completed and findings addressed before merge
  • If any reviewer did NOT complete: needs-human-review label added and merge deferred to human: N/A
Reviewer Status Outcome
cloudflare-specialist (on 17a464e51) ADDRESSED 0 CRITICAL/HIGH. Verified clean: wrangler.toml identical to main, registry (274 entries, no duplicates), the L7 files, D1/DO migration numbering, platform-config-core.ts, celld vars. MEDIUM: dead closeSetupWithoutToken, fixed in dd95a017b. LOW: duplicate union member, fixed in 73ebcbfc1
task-completion-validator (on e399e0120, re-run on dd95a017b) ADDRESSED First run FAIL: HIGH red branch setup-test control and MEDIUM dead helper (both fixed in dd95a017b), LOW task-file gaps (fixed). It independently found S2 and S3, already fixed in 73ebcbfc1. Re-run: one stale README citation of the removed helper, fixed in f24eb53a8; its stated verdict is PASS with that fix. All 38 both-sides files checked, nothing lost

CodeRabbit Review Evidence (Required for agent-authored PRs)

  • CodeRabbit requested: not requested. This is a draft PR into the integration branch that the coordinator merges; the label path does not fire on drafts
  • Waited: N/A
  • Outcome: GitHub shows the CodeRabbit check as skipping

CodeRabbit Notes

Not requested (draft integration PR).

Exceptions (If any)

  • Scope: no staging, no Playwright, no CodeRabbit, no merge. The base is the integration branch.
  • Rationale: M2 task instructions from the self-host coordinator (task 01M7FB384QHQ1TQCK95D0SX0TX).
  • Expiration: this PR.

Agent Preflight (Required)

  • Preflight completed before code changes

Classification

  • external-api-change
  • cross-component-change
  • business-logic-change
  • public-surface-change
  • docs-sync-change
  • security-sensitive-change
  • ui-change
  • infra-change

External References

N/A: no external API changed. Inputs read before editing: the M1 (#2736) description; per-file diffs of both parents against 84d77aa0f; the #2748 and #2749 commit messages and tests.

Codebase Impact Analysis

  • apps/api: provisioning deadline and attempt logging (L7), GitLab sign-in trust, setup closing, the manifest route, tests.
  • packages/providers: provider-fetch.
  • apps/web: the L4 split and the admin integrations page.
  • apps/www: docs (admin settings, security).
  • deploy/selfhost/README.md.

Documentation & Specs

  • admin-settings.md: the duplicate section is removed.
  • security.md: cites the GitLab untrusted rules' new location.
  • deploy/selfhost/README.md: cites isSetupCompleted.

Constitution & Risk Check

  • Principle X: one resolver per concern: one deadline module, one GitLab profile fetch, one setup-closing check.
  • Principle XI: no new hard-coded values.
  • Risk: security-sensitive resolutions (GitLab trust, setup, owner alerts). Mitigated by discriminating tests against main's attack suite, two reviewers, and per-file diffs against both parents.

🤖 Generated with Claude Code

simple-agent-manager Bot and others added 11 commits November 14, 2026 18:11
* wip(gcp): quota-bucket descent within the GCP tier (slice 2)

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

* docs(gcp): quota-bucket descent in the compute pools guide; slice 2 task file

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

* fix(gcp): name the quota when no descent remains; distinct sizes first in the per-tier cap

Review findings on slice 2: a GCP quota refusal with nothing left to try
was recorded as 'no available capacity', and zone duplicates of one
size could take every capped slot of a bucket so the smaller type that
still fits was dropped. Tests: synchronous 403 producer, two-source
scoping control, zone-duplicate cap, exhausted-bucket reason.

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

* task: slice 2 staging evidence; archive quota-bucket descent task

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

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* task: plan deterministic automation and session tests

* test: isolate native rate windows and streamline automation input

* test: prevent mock reuse when native teardown stalls

* test: record mutation checks and 60 normal file runs

* test: record 30 loaded automation runs and native regression

* test: complete 120-run stability proof and local reviews

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
* task: profile and reduce ProjectData archive writes

* test: measure full archive writes with a reporter-backed workerd fixture

* perf: batch compact archive search writes with measured regression guard

* docs: record archive profiling validation and review results

* test: temporarily bound staging compact archive sweep

* test: verify archive SQL telemetry with real returning cursors

* test: restore archive defaults after staging setup

* docs: record archive measurements and staging validation

* fix: satisfy archive SQL and fixture quality checks

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
…2744)

* ci(deploy): pin deploy job to ubuntu-24.04 so the VM-agent build stays byte-identical

ubuntu-latest moved to ubuntu-26.04 on 2026-11-14. The cgo-enabled native amd64 vm-agent build
then produced different bytes for the unchanged release ba3ba01, and
publish-vm-agent-artifacts.sh refused to overwrite the immutable artifact, failing every
staging (run 43655924997, two attempts) and production deploy.

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

* task: backlog reproducible VM-agent build across runner images

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

* ci: pin Playwright browser jobs to ubuntu-24.04

Playwright cannot install Chromium on ubuntu-26.04 ('Playwright does not support chromium on
ubuntu26.04-x64'), so the staging smoke tests failed after a successful deploy (run 43657273196)
and the CI Playwright jobs and installer deploy would fail the same way.

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

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* task: track archive drain rate increase

* config: double ProjectData archive sweep opportunities

* test: normalize shipped archive fixture import

* task: record archive drain validation

* test: allow approved archive settings in binding audit

* docs: clarify compact archive reservations and cost comparison

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
…erts (#2747)

* feat(admin): clear integrations, truthful source labels, owner security alerts

- PUT /api/admin/platform-config accepts config.clear (integration groups); deletes stored
  settings and platform_credentials rows, audits each existing row as reset, replaces the
  Google-infrastructure-only remove flag
- Source labels: exhaustive admin-settings source mapping (kv -> legacy-kv, never
  'environment'), 'stored in SAM' / 'Worker environment fallback', mixed-source badges,
  per-field 'changed by' with first-run setup named as unauthenticated
- security-alerts: best-effort waitUntil emails to active superadmins (or the bootstrap owner)
  on integration changes, setup completion, and social sign-ins linked to admins
- Admin -> Integrations: per-section Clear with destructive confirmation

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

* test+docs: integration clear UI audit, docs for source labels, clear and owner alerts

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

* fix: address security and UI review findings

Security review (2 MEDIUM, 4 LOW):
- Clear only deletes groups that had stored rows at audit time, so every delete is audited and
  fenced by the admin-settings revision CAS (no silent delete of a concurrently written row)
- Dropped alerts (no email binding / no recipients) log at error
- Display names and emails in alert bodies and admin labels are sanitized (no forged lines)
- Machine-checked enumeration of integration writers vs. scheduleSecurityAlert

UI review (1 HIGH, 3 MEDIUM):
- A failed clear keeps the dialog and typed values and says so inside the dialog
- Focus moves to the cleared card's heading; clear-specific success message
- One 'changed by' line per card when fields share it; timestamps carry a timezone;
  audit line linked via aria-describedby; dialog copy split into short paragraphs

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

* task: archive admin integration hardening with staging evidence

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

* task: record staging evidence

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

* fix: anchor the timezone regex and address SonarCloud findings

- formatChangedAt: group the alternation so $ anchors both branches (a stray Z no longer counts
  as a zone marker)
- read-only component props; non-async account hook; non-redundant waitUntil type

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

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… GitLab trust (#2748)

* fix(deploy): mask SETUP_TOKEN in GitHub Actions logs

wrangler deploy prints every plain-text binding's value and the deploy job
echoes that output into the public Actions log. Register the generated
token as a log mask before it is returned, so later steps print ***.

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

* fix(api): close first-run setup once the install has an owner

Installs created before the setup wizard never wrote setup.completed,
so /api/setup stayed open behind SETUP_TOKEN on instances that already
had a superadmin. An active superadmin now closes setup and records it;
SETUP_FORCE still reopens it for lockout recovery.

The setup rate limiter no longer falls back to X-Forwarded-For or
User-Agent, which callers can rotate for a fresh attempt budget.

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

* fix(auth): a self-managed GitLab host set at runtime cannot vouch for emails

better-auth links an OAuth sign-in to the existing user with that email
when the provider is trusted or reports the email as verified. A
self-managed GitLab host reports whatever its operator wants, and on
2026-11-12 a host saved through first-run setup signed in as the
superadmin that way.

GitLab is now trusted for linking and profile sync only on gitlab.com or
on a host pinned in the Worker environment. Otherwise it is left out of
trustedProviders, gets no profile override, and its email_verified claim
is replaced with false. GitHub and Google have fixed identity hosts and
keep their behavior.

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

* docs: setup token masking, setup closing with an owner, GitLab link trust

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

* task: record implementation notes and discrimination proofs

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

* docs: reviewer follow-ups for setup token, rate limit and GitLab trust

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

* fix(installer): redact values a failed command declared with ::add-mask::

The shared install engine captures the sync step's stdout, so the mask
it registers for SETUP_TOKEN never reaches Actions, and a failure tail
could carry the token from the mask line or wrangler's bindings table.

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

* fix(auth): scope an untrusted GitLab host's account ids to the host

better-auth signs an existing account in by provider id + account id
before any email check, and GitLab user ids are public. A self-managed
host saved at runtime could return the id of a user who linked
gitlab.com and sign in as them, or squat an id a gitlab.com user signs
in with later. Its accounts are now stored as <host>/users/<id>, and
its emails stay unverified, from one getUserInfo instead of a profile
mapper.

Found by the security review of this PR.

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

* fix(auth): use only the configured GitLab host's login for repo tokens

A user can now hold GitLab logins from two hosts (raw ids from
gitlab.com, host-scoped ids from a self-managed host saved at runtime).
The token lookup took the newest GitLab row regardless of host, so one
host's access or refresh token could be refreshed against, or sent to,
another. It now selects only rows the configured host issued, and
returns nothing when GitLab is not configured.

Found by the security review's re-check.

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

* task: archive setup-takeover root fix

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

* test: share the OAuth sign-in harness between the GitHub and GitLab slices

Removes the cookie jar, app mounting and sign-in start step that the new
GitLab trust test duplicated from the GitHub sign-in test (SonarCloud
new-code duplication gate).

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

* fix: CodeRabbit follow-ups on provider tokens, pinned GitLab host, installer masks

- Close better-auth's HTTP provider-token endpoints (get-access-token,
  refresh-token, account-info). SAM reads tokens only server-side,
  scoped to the configured host; over HTTP they could refresh or send
  any of the caller's accounts to whatever host is configured now.
- Trust a runtime-saved GitLab host that equals the GITLAB_HOST pin.
- Redact every ::add-mask:: value declared during the installer run,
  not only those still in the failed command's bounded buffer.

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

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…4, pure move) (#2746)

* refactor(web): split SettingsComputeUsage into components/ai-usage (L4, pure move)

Rule 18: the page was 776 lines. AiUsageSection (with AI_PERIODS), BudgetSettingsSection
(with BudgetBar) and the cost/token/model formatters move verbatim from main into
apps/web/src/components/ai-usage/. Only import lines and five `export` keywords differ.
No behaviour change; the integration branch's monthly-cap-unavailable behaviour and its
component rename are left for a later slice.

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

* task: record L4 validation, reviews and left-out items

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

* task: record L4 staging verification

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

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ngle read, F16 (#2749)

* feat(api): admin-set durable provisioning attempt deadline (60 s), attempt logging, provider-fetch single read

Port of C1/C19 from sam/selfhost-pass-2 (landing slice L7). The durable
attempt budget becomes operations.nodeProvisioningAttemptDeadlineMs
(default 60 s, 5 s-300 s), separate from the 5 s per-request timeout, so
a GCP create (9-12 s) no longer reaches its DNS step on an aborted
signal. Each failed attempt logs safe structured fields with the cause
it wraps. F16: NodeAllocationUncertainError no longer embeds raw provider
text. completeAbortableResponse reads the body once instead of clone().

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

* test: durable attempt deadline vertical slice, F16 safe summary, provider-fetch single read

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

* test: pin sub-minimum attempt budgets in metering deadline cases; assert F16 safe wrapper messages

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

* task: L7 progress and discrimination evidence

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

* fix: address L7 review findings (180 s max, safe code shape, GCP hint, test coverage)

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

* task: L7 staging evidence and reported forced-failure gap

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

* docs: describe the provisioning attempt deadline as a cancellation budget (CodeRabbit)

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

* task: L7 final state

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

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Brings L7 (#2749), L4 (#2746), #2748 (setup closes with an owner, GitLab
identity trust, SETUP_TOKEN masking), #2747 (admin hardening), #2742,
#2744, #2740, #2739 and #2737 onto the integration branch.

Conflicts resolved so landed code takes main's version: L7 provider-fetch,
attempt deadline (60 s admin setting, summarizeProvisioningFailure) and
tests are main's; the branch's node-lifecycle-provisioning-deadline.ts and
its duplicate registry entry are removed. The branch keeps its
reverse-tunnel ingress in node-provisioning.ts. GitLab sign-in combines
main's identity trust with the branch's guarded profile fetch and host
refusal. L4 takes main's BudgetSettingsSection name with the branch's
monthly-cap availability additions.

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

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1

  • coderabbit-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@codspeed

codspeed Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 5 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing sam/task-m2-merge-latest-2pr59z (2cdfca4) with main (c616e35)2

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

  2. No successful run was found on sam/selfhost-pass-2 (c02f826) during the generation of this report, so main (c616e35) was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

raphaeltm and others added 9 commits November 15, 2026 14:50
…labels (M2 S2/S3)

Main (#2747) made every integration save from the settings page schedule
an owner security alert and return actor labels. The branch's GitHub App
manifest completion stores integration credentials through the same
writer but did neither, so storing an App was a silent path and the
admin page's cached status lost its labels. Also drops the second
'operations.nodeProvisioningAttemptDeadlineMs' member of the setting name
union (both sides had added it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's isSetupCompleted (#2748) closes first-run setup on any install with
an active superadmin, token or not. That subsumes the branch's
closeSetupWithoutToken, which became unreachable, and contradicts the
branch test control that expected a token install with an owner to stay
open. The helper is removed, and the control now asserts main's behaviour
(410 and setup.completed recorded). The token-less self-host cases keep
their tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (M2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* blog: security advisory for open first-run setup on self-hosted SAM

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

* blog: address review findings in setup-takeover advisory

Adds API token and all-user linked-login checks, the cache wait before
removing linked logins, SETUP_FORCE and fresh-install caveats, and softens
claims the evidence does not fully support.

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

* blog: link the merged fixes (#2748, #2747) in the setup takeover advisory

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

* blog: explain the one-time setup token reasoning and the installer path

Adds why SETUP_TOKEN was deliberately plain text (single use, refused once
setup closes) and where that broke, plus a section on the installer flow
that deploys inside the owner's Cloudflare account without GitHub Actions,
and recent related hardening (#2219, #2550, #2598, #2688, #2747 labels).

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

* blog: date the setup advisory for publication

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

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(api): authenticate platform GCP credential in provider orphan sweep

The provider orphan sweep built its provider for the selected platform cloud
credential through the static buildProviderConfig(), which rejects every GCP
credential (workload identity and service-account key). On an installation
whose platform credential is GCP the sweep failed on every five-minute cron and
orphaned VMs were never cleaned up. Build GCP platform providers through the
existing token provider and factory, acting as the credential's creator with no
project scope, as installation catalog reads do. Ownership and selection logic
are unchanged.

Account failures stay contained inside the sweep, but a run with errors now
reports through the handler's durable failed-sweep path while keeping its
partial-success counters.

Same change as sam/task-p1-find-out-jq3vp8 (task 01M7E7PHTQH57W6EPC8ZJQ3VP8).

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

* task: add P1b platform-GCP orphan sweep proof record

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

* refactor(api): split provider orphan destroy path into its own module

Pure move, no behaviour change: claim check, final ownership re-read, delete
and deletion record move from provider-orphan-reconciliation-core.ts (575
lines) to provider-orphan-destroy.ts, ahead of a change to the delete path
(file size rule 18). Candidate and OwnershipScope become exported types.

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

* fix(api): let the orphan sweep actually delete GCP orphans

With the platform GCP credential authenticating (previous commit), the
self-host test box showed the sweep select exactly the owned orphan and then
fail to delete it: the whole pass (list, claims, re-read, delete) shared one
5 s AbortSignal, and GcpProvider.deleteVM looks the instance up zone by zone,
sends DELETE and then polls the operation to completion. It could never fit,
for platform or user GCP credentials; no DELETE ever reached GCP.

- Each provider call (list, ownership re-read, delete) gets its own
  NODE_STOPPED_HANDOFF_REQUEST_TIMEOUT_MS, as env.ts already documented
  (per-candidate); no candidate starts after the sweep budget, the rest wait
  for the next eligible pass.
- Providers with two-phase deletion (GCP) get a send-and-return
  requestVMDeletion bound to the exact instance the re-read proved: new
  provider option expectedInstance refuses before anything is sent unless the
  resolved instance has that id and zone. It is counted as deletionRequested,
  never destroyed, and counts toward PROVIDER_ORPHAN_DESTROY_LIMIT. The next
  pass is idempotent: still present -> requested again; gone -> not listed.
- Providers without it (Hetzner and the rest) keep deleteVM.

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

* docs: drop unrelated table reformatting from configuration reference

Keeps only the orphan-sweep edits in configuration.md; the previous commit
also reformatted unrelated tables.

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

* task: record P1b box findings and extended scope

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

* fix(api): address orphan sweep review findings

From the security-auditor, cloudflare-specialist, test-engineer and
task-completion-validator reviews:

- Claim lookup batches node ids under D1's 100 bound-parameter limit; a
  backlog of 100+ orphans failed every pass before.
- The GCP delete is bound to the re-read's zone and ownership labels:
  expectedInstance.labels are re-checked on the provider's last read before
  the DELETE, and a known zone is read directly instead of walking every
  labelled zone. A re-read without a zone is refused, not bound by id alone.
- Failures confined to one user/project account count as accountErrors and
  no longer fail the platform sweep, so one tenant's dead credential cannot
  mask a platform failure or page operators every hour.
- Tests: delete-boundary label/id change, 105-candidate backlog against a D1
  fake enforcing the bind limit, persisted audit record, hung re-read, mid-pass
  budget, no-zone refusal, wider INCIDENT margins with an elapsed precondition.
- Deferred MEDIUM/LOW items filed in tasks/backlog/2026-11-15-provider-orphan-sweep-followups.md.

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

* test(api): assert account-error reporting and the completed audit record

Round-2 review LOWs: the handler test now covers accountErrors>0 with
errors=0 (no failed sweep) and asserts providerOrphansDeletionRequested and
providerOrphanAccountErrors in cron.completed; the Hetzner control asserts the
'completed' deletion record. Task bounds corrected per review; remaining LOWs
added to the follow-up backlog task.

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

* task: record P1b box R16 proof and cleanup

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

* docs: document orphan delete binding and account errors; fix task review scope

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

* task: record P1b staging no-regression evidence

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

* fix(api): keep shared-infrastructure orphan sweep failures in errors

CodeRabbit (major): moving every failure inside a user/project account pass
into accountErrors also hid D1 claim-lookup failures, so every account could
fail against the shared database while the sweep reported green. Classify at
the source instead: provider-attributable failures (list, re-read, delete,
credential resolution) go to accountErrors for user/project accounts and to
errors for the platform account; a D1 claim-lookup failure stays in errors
wherever it happens. Also corrects the follow-up backlog note: the audit write
runs after the delete request (CodeRabbit minor).

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

* task: record CodeRabbit review and fix

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

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…tas (#2761)

* docs(www): journal post on Google Cloud time budgets and regional quotas

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

* docs(www): address content review findings in the GCP journal post

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

* docs(www): address CodeRabbit findings in the GCP journal post

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

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…2761

Second merge of main at the coordinator's request, to include a886029
(#2757, the provider orphan sweep authenticates and deletes on GCP).
One conflict, apps/api/src/scheduled/handler.ts: main's orphan sweep block
(errors fail the sweep, partial counters kept) after the branch's
reverse-tunnel lease sweep. Every other #2757 file equals main.

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

Copy link
Copy Markdown

@simple-agent-manager

Copy link
Copy Markdown
Contributor Author

Coordinator review (self-host coordinator, task 01M7FB384QHQ1TQCK95D0SX0TX), pinned to head 2cdfca4.

  • Merge parents confirmed: 17a464e51 (c02f826 + main c616e35) and 105393655 (f24eb53 + main 1e49113).
  • Checked myself: every L7 and fix(api): make the orphan sweep authenticate and delete on GCP #2757 file I compared is byte-identical to main, except node-provisioning.ts (the branch's reverse-tunnel ingress) and scheduled/handler.ts (the branch's lease sweep), as the description says. apps/api/wrangler.toml Durable Object bindings and migrations equal main's. In auth.ts and gitlab-login-provider.ts an untrusted GitLab host stays out of trustedProviders, reports emails unverified, uses host-scoped ids and does not override the profile.
  • CI run 43740194243 on 105393655 is green; the head differs from it only by the task file. SonarCloud gate OK.
  • Not read line by line: the other auto-merged files. I rely on the two reviewers and CI for those.
  • M2-D1 and M2-D2 are accepted for this branch. They go to the owner with the slices that land that code on main.
  • Not verified yet: the self-host test box. The next box round uses the checklist in this description.

Merging with a merge commit (not a squash) so main's history stays an ancestor of sam/selfhost-pass-2. Nothing changes on main.

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