Skip to content

M4: merge main into selfhost integration (staged) - #2884

Merged
simple-agent-manager[bot] merged 281 commits into
sam/selfhost-pass-2from
sam/m4-third-attempt-staged-zk9fse
Nov 18, 2026
Merged

simple-agent-manager[bot] merged 281 commits into
sam/selfhost-pass-2from
sam/m4-third-attempt-staged-zk9fse

Conversation

@simple-agent-manager

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

Copy link
Copy Markdown
Contributor

Summary

M4 merges current main into the self-host integration branch in three staged real merges so a usage-limit stop cannot lose resolved work. PR base sam/selfhost-pass-2; no rebase, no cherry-picks, no force-push to the integration branch. Do not merge: coordinator task 01M7JMXS2JRW6QQMB1356ENPM3 reviews and merges. Model: M3 #2817 (M2 #2758, M1 #2736).

Rule: code that landed on main takes main's version; the branch keeps only what has not landed. Where a slice landed in a different shape, main's shape wins and only the self-host remainder is re-attached, through main's self-host seams where one exists.

Steps

Step Main ancestor merged Parent 1 (branch) Parent 2 (main) Merge commit Pushed
1 L14 #2840 merge (Nov 17 22:19Z) faa02a842dacdedb476059f37eabd043ae7c128c 4fc4cb99ad52fd4d2de8be46bedc845f1080d24b bf0c98bf5e3d29a1b3bdd7f2ed85031bb14676f3 yes
2 L17b #2859 merge (Nov 18 02:30Z) c918fdc86fc7ced5bb1ec5aee299a51c91809bfe b7502ba965bc2450cd45f353fe6808bc3c06c80d f987c53a871d19b3e6fc55e27401dc47c4997e87 yes
3 origin/main tip when step 3 started: 096db08db (#2864) f987c53a871d19b3e6fc55e27401dc47c4997e87 096db08db540f9f09decef902935822aeecb2f21 ea608b26b15da3b9fe77c614d3ffc82016f9b50f yes

Commit c918fdc86 (after step 1) adds the task file only. The first push to this PR's own output branch replaced a stray main commit left on it by branch creation (forced update of sam/m4-third-attempt-staged-zk9fse only; the integration branch was not touched).

Landing progress (git diff --shortstat origin/main...<head>)

  • Before (integration tip faa02a842, M3): 855 files, +84286 / -2124.
  • After step 1 (head c918fdc86, merge base 4fc4cb99a): 742 files, +78013 / -1313.
  • After step 2 (head f987c53a8, merge base b7502ba96): 725 files, +75855 / -1276.
  • After step 3 (head ea608b26b, merge base 096db08db): 664 files, +72186 / -1074.
  • Final head 4dd6fcff7 (after the post-merge fixes; origin/main = bfa8cc57c, merge base 096db08db): 649 files, +70526 / -1052.

Conflict table — step 1 (4fc4cb99a, 84 conflicted files)

File Main change / branch change Resolution
.github/workflows/ci.yml Session-snapshot fixture path / branch hosted-git filter Both
apps/api/src/auth.ts L6 GitLab provider registration + client-IP comment / branch secret options, linked-account email, provider registration Main's provider registration and comment; branch betterAuthSecretOptions and keepLinkedAccountEmail imports kept (unlanded L9/L10 and key rotation)
apps/api/src/services/gitlab-login-provider.ts (add/add) L6 landed provider / branch provider Main's file; re-attached branch private-host opt-in (allowPrivateNetwork passed to assertOutboundUrl and guardedFetch) and trusted-host keepLinkedAccountEmail (L9/L10, unlanded). Branch fetchGitLabUserInfo/GITLAB_SCOPES dropped (no other callers)
packages/repo-hosting/src/gitlab.ts L6 inline per-hop deadline / branch guardedFetchWithDeadline + private GitLab opt-in + gitLabRequestError Step 1 kept the branch version; fix commit d58e63d20 moved it to main's L6 shape + allowPrivateNetwork opt-in only, and removed the unused gitlab-host-policy.ts (unsure item 1)
packages/repo-hosting/src/ports.ts Comment only Main
apps/api/tests/integration/gitlab-sign-in-trust.test.ts L6 redirect/private-host tests / branch scope test Both
apps/api/tests/integration/github-oauth-sign-in.test.ts L5b clientHeaders + ingress-IP matrix / branch callbackHeaders Main
apps/api/src/lib/client-ip.ts (add/add), middleware/app-error-handler.ts, routes/chat-load-diagnostics.ts L5b landed Main
apps/api/tests/unit/lib/client-ip*.test.ts (add/add) L5b landed tests Main
apps/api/src/middleware/error.ts L11 comment Main
apps/api/src/services/platform-capabilities.ts (add/add) L11 3 capabilities + L12 resolveLlmEndpointCapability / branch 18 capabilities + speech-endpoint param Main's L11/L12/L14 shape (TTS via getTTSConfig, publicPlatformCapabilities(env) with no speech param, resolveLlmEndpointCapability); branch's unlanded capabilities (artifacts, containerRuntime, guidedCredentialSetup, email, DNS, appDeployments, observability, R2 presign, live log stream, monthly cap, local metering) re-attached
apps/api/tests/unit/services/platform-capabilities.test.ts (add/add) Main tests pin exactly 3 capability keys / branch tests cover 18 Branch tests (main's 3-key assertion cannot hold while the branch keeps its unlanded capabilities)
apps/web/src/lib/api/platform-capabilities.ts (add/add) Main field docs / branch extra fields Union
apps/web/src/components/agent-models/AgentModelAccessField.tsx, its test L11 review: label kept Main
apps/web/tests/unit/components/platform-capabilities-ui.test.tsx (add/add) Main in-flight test Main
apps/web/tests/playwright/platform-capabilities-audit.spec.ts (add/add) Main audit Main
apps/web/src/lib/project-route-prefetch.ts, its test L11 moved capability prefetch to app start / branch per-project prefetch Main (branch prefetch call and assertion removed)
apps/api/src/routes/transcribe.ts, routes/tts.ts, services/tts.ts L14 speech seam (services/speech-backend.ts, selfhost/speech/) / branch Worker-loaded services/speech-endpoints.ts Main; branch services/speech-endpoints.ts and speech-endpoint-settings.ts deleted (superseded by apps/api/src/selfhost/speech/)
apps/api/src/index.ts (auto-merged) Main mounts platformCapabilitiesRoutes / branch inline route on the same path Branch duplicate route and speech-endpoints import removed
apps/api/src/middleware/rate-limit.ts (auto-merged) — / branch TTS_SYNTHESIZE limit Main (L14 owns the limit as speech.synthesis.maxRequestsPerHour; branch key now unused)
scripts/selfhost/celld-project.ts (no conflict) — Generated celld entry now calls installSpeechEndpoints() from selfhost/speech/index.ts (L14's install point)
apps/api/tests/unit/selfhost/speech-endpoints.test.ts (add/add) L14 tests against selfhost/speech Main
apps/api/src/services/admin-setting-definitions.ts, admin-settings-registry.ts L14 adminSettingsRegistry() + installs, D2 unavailableValue, Insights/Infomaniak/brief settings / branch speech + stalled-classifier settings Main; speech settings removed from the base registry (installed by the self-host entry); branch stalled-classifier endpoint settings kept (unlanded); duplicated LLM/AI-proxy entries removed
apps/www/src/content/docs/docs/reference/configuration.md (auto-merged) — Citation moved to apps/api/src/selfhost/speech/; rate-limit name corrected to speech.synthesis.maxRequestsPerHour
apps/api/src/routes/admin-analytics.ts H2 removed audience routes / branch analyticsQuery gate Main; branch capability gate kept
apps/api/src/routes/admin-costs.ts Compute moved to Health & cost / branch resolveAiGatewayId Main; branch gateway resolution kept
apps/api/src/scheduled/handler.ts Daily jobs moved to daily-jobs.ts, inbox sweep / branch reverse-tunnel lease sweep Main; branch Worker-loaded lease sweep dropped (main's L17a puts it in selfhost/reverse-tunnel/leases.ts; L17b's entry runs it, step 2)
apps/api/src/services/task-title.ts L12 comment Main
apps/api/tests/unit/config/omitted-worker-var-defaults.test.ts L17a transport probe Main
apps/api/tests/unit/services/profile-account-bindings.test.ts L12 env / branch admin-settings setup Main
apps/api/tests/unit/usage-*.test.ts, ai-proxy-auth-lifecycle.test.ts, admin-settings-foundation.test.ts Fixture values / secret count Main
scripts/quality/ast-checks.ts packages/cron added / branch network-hosts + vendor exclusion Both
scripts/quality/direct-dependency-evidence.json L12 evidence text Main
apps/www/src/content/docs/docs/architecture/security.md L6 citation (gitLabLoginProvider) Main
apps/api/src/routes/node-lifecycle.ts L5b applyHeartbeatIp, L17a inline reverse-tunnel checks / branch inline IP code + isTunnelNodeTransport Main
apps/api/src/routes/workspace-subdomain-proxy.ts L6 refuseNodeRedirect / branch L17b route row + gateway decision Both (L17b routing kept until step 2)
apps/api/src/routes/workspaces/runtime.ts L12 split into runtime-agent-key, runtime-git-token, runtime-messages… / branch async proxy gate, custom base URL refusal, hosted-git token Main's split; L12 covers the agent-key changes; unlanded hosted-git token code (L16) moved into runtime-git-token.ts
apps/api/src/services/node-agent.ts L6 nodeResponse, manual redirects / branch L17b resolveNodeAgentRoute retargeting Both
apps/api/src/services/node-manual-deletion.ts L17a releaseTerminatedNodeIngress / branch operator retirement Main's ingress release + branch proveOperatorRetirement
apps/api/src/services/node-provisioning{,-cloud-init,-ingress,-predicates}.ts, strict-node-deletion.ts L17a transport extension / branch inline reverse-tunnel Main
apps/api/src/services/node-tunnel-config.ts L17a nodeTransportExtension().select / branch isReverseTunnelInstallation Main + branch helper (still imported by routes/nodes.ts, session-snapshot-upload-relay.ts)
apps/api/src/services/task-runtime-liveness-node-probe.ts L6 manual redirect / branch L17b route lookup Branch (its request init already sets manual redirect)
apps/api/src/services/debug-agent-tools.ts L12 timeoutMs resolver / branch signal + Cloudflare-account gate Main's resolver call + branch hasCloudflareAccountApi gate
apps/api/tests/unit/services/node-reverse-tunnel-lifecycle.test.ts (add/add) L17a selfhost DDL / branch 0232 DDL + routing tests Main + branch L17b routing-seam tests (DDL dropped first so the branch schema table does not collide)
apps/api/tests/unit/services/node-ip-validation.test.ts, tests/workers/diagnosis-runner-do.test.ts L5b / L12 tests Main
packages/shared/src/types/{workspace,index}.ts NODE_BILLING_ENDED_STATUSES / branch isTunnelNodeTransport Main (helper had no remaining callers)
apps/api/src/services/node-reverse-tunnel-{authz,config,leases,provisioning}.ts (no conflict) L17a moved to apps/api/src/selfhost/reverse-tunnel/ Branch copies deleted; self-host-gateway*.ts, agent-email/self-host-inbound.ts, node-agent-route.ts, node-websocket-gateway.ts and tests repointed to main's modules

AI-proxy / L12 area (resolved with main's shape, L13 remainder re-attached):

File Main change / branch change Resolution
sam-session/agent-loop-llm.ts, agent-loop.ts L12 target routing, error body omitted / branch stream-usage request, positional args, endpoint body budget Main
sam-session/operator/model.ts L12 + #2860 DeepSeek default, assertOperatorModelSupportsTools / branch L13 per-model usage Main + incrementModelUsage when not a custom endpoint and local metering is on (L13 remainder)
routes/ai-proxy-admission.ts, ai-proxy-passthrough*.ts (prepare add/add), ai-proxy-platform-billing.ts, ai-proxy.ts L12 split, availability after auth, Insights U run usage Main
routes/ai-proxy-anthropic.ts L12 / branch kill switch, aiGatewayOnlyHeaders Main + aiGatewayOnlyHeaders (unlanded)
routes/ai-proxy-upstream.ts L12 custom endpoint responses / branch Workers AI forward, L13 withDirectStreamUsage Main + withDirectStreamUsage
routes/usage.ts L12 local monthly cost / branch L13 breakdown Main + getLocalUsageBreakdown, monthlyCostCapAvailable
services/ai-proxy-availability.ts, llm-chat-target.ts, llm-endpoint-settings.ts (add/add), ai-proxy-shared.ts, sam-ai-proxy-fallback.ts L12 landed adapters over packages/ai-proxy Main
services/ai-token-usage-accounting.ts (auto-merged) L12 removed estimateTokensFromText Re-export dropped
packages/ai-proxy/src/ai-monthly-cost-cap.ts L12 KV daily fallback / branch enforced flag Main + enforced; duplicated auto-merged block removed
packages/ai-proxy/src/ai-monthly-cost-cron.ts — / branch skipReason comment Branch
packages/ai-proxy/src/ai-proxy-shared.ts L12 Workers AI chat in the package Main
packages/ai-proxy/src/ai-token-usage-accounting.ts Insights U + L12 pricing / branch renamed fields, local cost Main + incrementModelUsage for priced calls
packages/ai-proxy/src/index.ts L12 exports Main + branch L13 exports (model usage, monthly cap check, budget keys)
packages/ai-proxy/tests/unit/ai-token-budget.test.ts — / branch enforced assertions Branch
tests/unit/routes/ai-proxy-accounting.test.ts, tests/unit/runtime-always-proxy.test.ts Insights / L12 tests Main
apps/api/src/repo-hosting-ports/platform-config.ts (auto-merged) Both sides added outboundMaxRedirects One copy kept

Conflict table — step 2 (b7502ba96, 13 conflicted files)

File Main change / branch change Resolution
apps/api/src/services/node-agent-route.ts, node-websocket-gateway.ts (add/add) L17b route seam / branch route seam with lease row read Main (coordinator rule: main's copies supersede the branch's)
apps/api/tests/unit/services/node-agent-route.test.ts, tests/workers/self-host-gateway.test.ts (add/add) L17b tests Main
apps/api/src/services/node-agent.ts L17b single node read + resolveNodeAgentRoute(env, id, node) / branch route resolution Main
apps/api/src/routes/workspace-subdomain-proxy.ts L17b route via resolveNodeAgentRoute / branch readNodeAgentRouteRow + 202 ports readiness when unroutable Main; branch comment pointing at the removed gateway dropped. Kept the branch's extra x-sam-gateway-secret strip on the container path (defence in depth)
apps/api/src/routes/nodes/diagnostics.ts L17b passes the loaded node row Main
apps/api/src/services/session-snapshot-upload-relay.ts L17b provisionsExtensionTransportNodes / branch snapshotUploadRelayAvailable Main
apps/api/src/services/task-runtime-liveness-{loaders,types,node-probe}.ts L17b transport-routed probe Main
apps/api/tests/unit/cf-container-runtime-contract.test.ts, ws-proxy.test.ts L17b assertions Main
apps/api/src/routes/self-host-gateway.ts (no conflict) Superseded by selfhost/reverse-tunnel/gateway.ts Deleted; its index.ts mount removed (the Worker no longer carries a gateway route)
apps/api/src/routes/self-host-gateway-inbound-email.ts (no conflict) — / branch sam-mx inbound email (unlanded) Moved to apps/api/src/selfhost/reverse-tunnel/inbound-email.ts, mounted by main's createSelfHostGatewayRoutes (new optional inboundEmailDeps)
apps/api/src/services/agent-email/self-host-inbound.ts (no conflict) — Worker-loaded gate checks the gateway secret is configured inline instead of importing selfhost/ (the gateway enforces length)
apps/api/src/selfhost/build.ts (new), scripts/selfhost/celld-project.ts — Celld entry wraps the worker with withSelfHostBuild() = installSpeechEndpoints() + withReverseTunnel(worker, generateCloudInit); replaces step 1's speech-only call
apps/api/src/routes/nodes.ts, services/node-tunnel-config.ts (no conflict) — / branch isReverseTunnelInstallation copy Default-location rule (box round R13 D8, unlanded) now asks main's provisionsExtensionTransportNodes; copy removed
apps/api/src/db/migrations/0232_node_reverse_tunnel_leases.sql, packages/worker-core/src/schema.ts L17a/L17b keep the lease table self-host only (selfhost/migrations/0255, raw SQL) / branch shared migration + Drizzle table Branch migration file and Drizzle table removed. Boxes that applied 0232 keep the table; 0255 is IF NOT EXISTS
apps/api/tests/unit/services/node-websocket-gateway.test.ts (no conflict) Range check moved into selfhost/reverse-tunnel/route.ts Branch test of the removed 4-argument decision check deleted
apps/api/tests/unit/services/node-reverse-tunnel-lifecycle.test.ts — Main's file (branch routing-seam tests are covered by main's node-agent-route.test.ts)

Conflict table — step 3 (096db08db, 60 conflicted files)

File Main change / branch change Resolution
apps/api/src/auth.ts L9/L10 account-linking plugin, validateLinkUserInfo, allowUnlinkingAll, getBetterAuthSecret / branch linking comments, betterAuthSecretOptions Main; branch betterAuthSecretOptions (versioned BetterAuth secret rotation, unlanded) kept in place of main's secret: getBetterAuthSecret(env) (now-unused import dropped)
apps/api/src/services/linked-account-identity.ts (add/add) L9/L10: a failed read aborts sign-in, no same-email short-circuit Main
apps/api/src/services/gitlab-login-provider.ts L9/L10 keepLinkedAccountEmail for trusted and untrusted (host-scoped id) accounts Main; step-1 private-host opt-in stays
apps/api/src/services/email-sign-in.ts L9/L10 findAccountByEmail (credential links excluded), providerSignInRequiredEmail, note-sent log / branch SMTP transport (resolveSystemEmailTransport) Main's account logic, email text and log names; branch SMTP transport (unlanded) kept, transport.kind added to the log; duplicate branch providerSignInRequiredEmail removed
apps/api/src/services/github-token-errors.ts (add/add) L9/L10: failed read returns retryable GITHUB_UNAVAILABLE Main
apps/api/src/routes/github-installation-sync.ts L9/L10 returns the shared unavailable error Main
apps/api/src/services/admin-setting-definitions.ts OrchestratorSettingName / branch stalled-classifier settings Both
apps/api/src/index.ts L16 artifactsConfigRoutes / branch inline artifacts-enabled route Main (unused import removed)
apps/api/src/services/platform-capabilities.ts L13 re-exports hasLocalAiCostMetering Branch file already imports and re-exports it from @simple-agent-manager/ai-proxy
apps/api/tests/integration/gitlab-sign-in-trust.test.ts L9/L10 explicit linking for pinned self-managed hosts / branch SMTP owner-alert test Main's test + branch SMTP alert test
apps/api/tests/integration/{email-code-provider-link,github-link-social}.test.ts (add/add) L9/L10 tests Main
apps/api/src/durable-objects/credential-setup-session/index.ts and tests (credential-setup-session{,-teardown}.test.ts, agent-credential-setup-native-vertical.test.ts) L19 teardown split into cleanup.ts, cleanup-recovery.ts, schema.ts, lifecycle-io.ts, d1-status.ts / branch inline teardown with celld bounded join and resumed-scrub skip Main (L19 landed the same concern in its own shape; its DO ADD COLUMN set is a superset of the branch's, same names)
apps/web/src/components/{AuthProvider,ConnectedAccountsSection,GitHubAppSection}.tsx, onboarding/choose-path/GitHubConnectGate.tsx, lib/auth.ts L9/L10 web Main
apps/web/src/components/compute-pool/ComputePoolOverview.tsx, lib/compute-pool-default-fit.ts (+test), onboarding/choose-path/AgentStep.tsx, pages/project-chat/{ChatInput,ProfileWizardPanel,useProfileChoice}, tests/playwright/onboarding-inline-audit.spec.ts, tests/unit/pages/project-chat.test.tsx L15 quickstart/pool (and L13 cap gate) Main
apps/web/src/components/triggers/EmailTriggerFields.tsx, pages/automation/editor/steps-start-when.tsx Main: SAM cannot confirm the sender / branch: the mail server checks SPF/DKIM Main (unsure, below)
apps/api/src/services/hosted-git/backend.ts (add/add) L16 seam: selection, registerArtifactsBackendFallback, resolveArtifactsBackendForCleanup, isArtifactsAvailable / branch selection mixed with the DO backend Main's file; branch implementation moved to services/hosted-git/local-backend.ts (uses the HOSTED_GIT binding, never imports the DO class), registered as the fallback by selfhost/hosted-git.ts at load
apps/api/src/repo-hosting-ports/artifacts.ts (add/add), packages/repo-hosting/src/ports.ts, repo-browse/artifacts.ts L16 port with resolve / branch also localRemoteFetch Main + optional localRemoteFetch (in-process browsing of locally hosted repos)
apps/api/src/routes/workspaces/runtime-git-token.ts L16 username: 'x' for a bound non-Cloudflare host / branch host + workspace-bound mint + 404 Main's response and its errors.internal; branch workspace-bound token mint kept
apps/api/src/services/workspace-git-source.ts, task-runner/workspace-dispatch-step.ts, routes/projects/crud.ts L16 Main
apps/api/src/routes/projects/project-create.ts L16 seam + errors.internal / branch import URL, in-process README seed, 404 Main's seam and error; branch import and in-process seed kept
apps/api/src/routes/projects/members.ts L9/L10 moved helpers to member-invite-helpers.ts / branch getTokenHashKey Main + getTokenHashKey(c.env) re-applied on create and lookup (member-invite-helpers.ts) so invite links survive key rotation
packages/project-data/src/client/project-data-ensure-memo.ts Main (af302db) no in-flight sharing / branch celld shared-flight join Main; branch abandonment case removed from shared-flight-abandonment.test.ts, main's memo test taken
packages/vm-agent/internal/bootstrap/bootstrap.go, hosted_artifacts_host_test.go (add/add) L16 Main
apps/api/src/services/platform-capabilities.ts (follow-up) L16 owns isArtifactsAvailable in hosted-git/backend.ts Branch duplicate removed; capability uses main's
apps/api/src/routes/projects/hosted-git-token.ts, tests/unit/services/hosted-git/tokens-and-limits.test.ts (no conflict) — Repointed to local-backend.ts; self-host case registers the fallback first

L13 area (all main's landed shape): packages/ai-proxy/src/{ai-budget-settings,ai-model-usage (add/add),ai-monthly-cost-cap,ai-token-budget-counter,ai-token-budget,ai-token-usage-accounting,index}.ts, packages/shared/src/types/ai-usage.ts, apps/api/src/services/ai-token-budget.ts, routes/usage.ts, operator/model.ts, ai-token-budget-counter-model-usage.test.ts (add/add), AiBudgetSettingsSection.tsx → main. operator/controller.ts → main's OperatorMonthlyCostCapError message plus the branch's LlmUnavailableError message. routes/ai-proxy-upstream.ts (step-1 withDirectStreamUsage removed; identical to main). platform-capabilities.ts CapabilityEnv widened to Env (main's isArtifactsAvailable takes the whole env). useNewChatComposer.ts → main.

Post-merge fixes (after step 3)

Commit What
d58e63d20 gitlab.ts moved to main's L6 shape plus only the allowPrivateNetwork opt-in. The unused gitlab-host-policy.ts was removed. gitlab-sign-in-trust test is main's plus the branch scope test. The celld entry test expects withSelfHostBuild. Lint fixes.
a488c0d36 Task file updated for steps 2 and 3.
a4d398419 Architecture-review fixes:
• CRITICAL: prepareCelldProject projects the self-host 0255 lease migration into the primary database (fresh boxes otherwise had no lease table after the shared 0232 was removed). Test added; it fails without the call.
• The branch's duplicate /link-social gate was removed (main's L9/L10 plugin owns it).
• llm-endpoint-snapshot joins through settleSharedFlight; range-report's local digest cache gets the reviewed allow directive (quality:shared-flight-joins passes).
• The dead guardedFetchWithDeadline was removed.
• Main's L11 production-shape pin was restored.
• Main's L9/L10/L13 web tests were taken.
7c7654a04 Branch tests that asserted pre-landing behaviour now take main's tests, or were adapted (listed below). The inbound-email gate checks the gateway secret's minimum length again, pinned to the self-host constant by a test.
a31c69e9f The KMS test fakes moved to scripts/selfhost/fixtures/, because main's quality:no-secret-readback (#2841) skips fixtures.
c74b26f36 Removed the test of the deleted gitlab-host-policy module.
5463b81ec CI fixes. Secret scan: the reviewed synthetic fixture in selfhost-inbound-email.test.ts had moved off the line its gitleaks digest names; the length pin is now in its own tests/unit/selfhost/inbound-email-gateway-secret.test.ts. Hosted-git conformance reads the credential host from cloneUrl (main's L16 git-token response).
4dd6fcff7 CI fix: the self-host live shared-flight join test expects main's ensure memo (two loads for two concurrent cold requests; no shared flight to strand).

Branch tests removed because main's landed shape replaced what they asserted. Main's tests for that shape apply.

Removed test Superseded by Covered on main by
services/gitlab-host-policy L6 packages/repo-hosting/tests/unit/gitlab.test.ts
services/node-agent-redirects L6 node-redirects.test.ts
services/task-runtime-liveness-node-probe L17b task-liveness-transport-route.test.ts, task-liveness-no-driver.test.ts
selfhost/task-title-endpoint L12
selfhost/artifacts-project-create-without-binding L16 errors.internal project-artifacts-creation.test.ts
selfhost/monthly-cost-cap-without-gateway, selfhost/custom-endpoint-usage-accounting L13
web connected-accounts-section, monthly-cost-cap-availability, onboarding-github-connect-gate L9/L10, L13 account-linking-audit, monthly-cost-ceiling-audit Playwright
services/node-websocket-gateway L17b range check in route.ts

These test cases were dropped:

  • forwardToWorkersAI (llm-endpoint-callers, partial-cloudflare-gateway-unset): main's llm-endpoint.test.ts.
  • Forced stream usage (ai-proxy-upstream-gateway-urls): main's direct-upstream-metering.
  • Keep-the-Cloudflare-route-through-an-outage and "no model configured" (llm-chat-target): main's L12 fails closed.
  • Branch additions inside main-owned test files: node-lifecycle-byo, workspace-git-token, handler-kill-switch, profile-account-bindings, session-snapshot-upload-relay, stuck-task-slept-session-liveness.

Raised to the coordinator (pre-existing at faa02a842, not introduced by this merge)

The architecture reviewer flagged these. All of them were already in the integration tip before M4, so they are outside a merge PR's scope and belong to the slices that land them.

  • HIGH-1: apps/api/src/index.ts exports the branch's SandboxDO subclass (durable-objects/sandbox-do.ts, celld-specific startup handling) to the Cloudflare Worker. The seam for it is the generated celld entry's class-export shadowing.
  • HIGH-4: hosted-git routes branch on isLocalHostedGitActive in Worker-loaded files (runtime-git-token, project-create, repo-hosting-ports/artifacts.ts, hosted-git-token). As a result services/hosted-git/* is in the Worker import graph, though inert on Cloudflare. Fix: extend main's L16 seam (workspace-bound createToken option, remoteFetch/import on the fallback) and move the modules under selfhost/.
  • HIGH-5 (partly addressed): the branch's extra capabilities read inputs that main's 2026-11-16 production capture did not record: ARTIFACTS, SANDBOX, AGENT_EMAIL, R2_*, ANALYTICS. Check them against production's deployed values before they land.
  • MEDIUM, all pre-existing:
    • the stalled-classifier endpoint setting sits in the base registry (seam: installAdminSettingDefinitions);
    • the analytics D1 sink migration is in the shared observability directory;
    • three monthly-cap availability signals (routes/admin-ai-proxy.ts monthlyCostCapAvailable duplicates L13's monthlyCostCap.available);
    • read-auth-session disables the cookie cache on every /get-session;
    • shared-flight races its own timer on Cloudflare joins;
    • two self-host mount mechanisms (mountHostedGitRoute and withSelfHostBuild).

Places I was unsure which side should win

  1. packages/repo-hosting/src/gitlab.ts (changed in fix commit d58e63d20): step 1 kept the branch version. At the final head it takes main's L6 form (per-hop deadline, refusal propagates as main's guard error), with only the private self-managed GitLab opt-in (allowPrivateNetwork passed to guardedFetch) re-attached. The branch's gitlab-host-policy.ts (assertGitLabHostAllowed, gitLabRequestError 502/504 mapping) had no callers left and was removed. The branch's two SSRF tests now assert main's refusal instead of a 502 code. If the 502/504 mapping is still wanted on self-host, it should land as its own slice.

  2. apps/api/src/services/gitlab-login-provider.ts: I took main's L6 file and re-attached the private-host opt-in and keepLinkedAccountEmail (L9/L10) inline. Both stay in Worker-loaded code because there is no seam for them yet.

  3. apps/api/src/services/platform-capabilities.ts: L11 landed 3 capabilities. The branch's other 15 (artifacts, container runtime, guided setup, email, DNS, app deployments, observability, R2 presign, live log stream, monthly cap, local metering) stay in this Worker-loaded module because many branch callers use them. Main's test that pins exactly 3 keys cannot hold until they land, so the branch test file was kept.

  4. AI-proxy remainder: step 1 re-attached L13 pieces. Step 3 replaced them with main's landed L13 (incrementProviderUsage(…, modelId), the monthlyCostCap object, no enforced flag, no forced include_usage). Still branch-only and Worker-loaded:

    • the admin-side monthlyCostCapAvailable flag (routes/admin-ai-proxy.ts, AdminAIProxy.tsx)
    • the operator LlmUnavailableError message
    • cron skipReason
    • aiGatewayOnlyHeaders on /ai/anthropic

    The coordinator should confirm whether main's L13 meant to drop the admin flag.

  5. Branch L12 refinements dropped for main's shape:

    • withStreamUsageRequested
    • the agent-loop "no model configured" message
    • the endpoint body budget
    • the kill switch checked before auth
    • the disabled message naming the setting
    • sanitized third-party error reasons
    • the direct-upstream agent-key tests

    Main does not have these. The coordinator should confirm that none is still needed for self-host.

  6. Reverse tunnel between steps 1 and 2 (resolved in step 2): L17a moved leases and provisioning to selfhost/reverse-tunnel/ behind installNodeTransportExtension.

    • At the step-1 commit, nothing installs that extension.
    • The branch's Worker-loaded node-agent-route.ts, node-websocket-gateway.ts and routes/self-host-gateway*.ts import main's selfhost/reverse-tunnel/config, so main's self-host-only import-graph test is expected to fail at step 1.
    • The lease sweep was dropped from the Worker cron.

    L17b (step 2) brought main's selfhost/reverse-tunnel/{entry,route,gateway}.ts and withReverseTunnel, which resolved all of these (see the step 2 table).

  7. Reverse-tunnel lease table: step 2 removed the branch's shared migration 0232_node_reverse_tunnel_leases.sql and the Drizzle table, as main's L17a/L17b shape requires. A box that already applied 0232 keeps its table and leases, because main's self-host 0255 is IF NOT EXISTS. Fresh boxes get the table only from 0255. Removing an applied migration file is what main's design expects (see the 0255 header), but the coordinator should confirm it before the box upgrade proof.

  8. Inbound agent email (sam-mx) now lives under selfhost/reverse-tunnel/, so it is mounted only by withReverseTunnel. Every celld entry applies that, but a box without the reverse tunnel would still get the gateway route. The route keeps its own on-switch (AGENT_EMAIL_INBOUND_SMTP).

  9. Gateway decision range check: the branch re-checked the lease port range when it minted Caddy's X-SAM-Upstream. Main checks it once, when resolving the route (selfhost/reverse-tunnel/route.ts). I took main's and deleted the branch test for the second check.

  10. Transport selection: main's reverse-tunnel select requires nodeRole === 'workspace'. The branch only excluded deployment. I took main's.

  11. Private GitLab and key rotation (the allowPrivateNetwork opt-in in packages/repo-hosting/src/gitlab.ts and gitlab-login-provider.ts, auth.ts betterAuthSecretOptions, getTokenHashKey for invite links): branch-only, unlanded, and in Worker-loaded code.

  12. Hosted git: the branch's local backend now lives in services/hosted-git/local-backend.ts. It is Worker-reachable through runtime-git-token, project-create, the repo-hosting port and hosted-git-token, but inert on Cloudflare (isLocalHostedGitActive is false there). Only selfhost/hosted-git.ts registers it into main's registerArtifactsBackendFallback seam. ArtifactsBackendPort gained an optional localRemoteFetch.

  13. L19: I took main's teardown implementation. That replaced the branch's celld-specific bounded join of an inline cleanup (settleSharedFlight) and its "resumed after interruption" scrub skip with main's cleanup_scrub_state / cleanup_sandbox_destroyed / joinCleanupFlight. The DO's ADD COLUMN set is a superset with the same names. The behaviour on a box whose celld request lost its client should be re-checked in the L19 box proof.

  14. ProjectData ensure memo: I took main's (it shares no in-flight ensure). The branch's celld shared-flight join with an abandonment retry is gone.

  15. Email automation copy: main says SAM cannot confirm the sender. The branch said the mail server checks SPF/DKIM, which is true on the self-host sam-mx path but not on Cloudflare. I took main's.

  16. Credential-setup/monthly-cap self-host tests: I deleted tests/unit/selfhost/monthly-cost-cap-without-gateway.test.ts and custom-endpoint-usage-accounting.test.ts, which tested the branch's pre-L13 shape. Main's monthly-cost-ceiling.test.ts, usage-budget-routes.test.ts, llm-endpoint.test.ts and direct-upstream-metering.test.ts cover the landed shape. The deleted test saw a 503 on budget PUT without a readable ceiling setting (main fails closed); worth a box check.

  17. SMTP owner alert for a newly linked GitLab sign-in (branch test from box round R17 D1): L9/L10 now refuse implicit linking, which was that test's premise. I dropped the test in d58e63d20. The alert on an explicit /link-social link over SMTP is untested.

Checks run

Every step: install (frozen lockfile), pnpm build 19/19, pnpm typecheck 38/38. Step 3 also ran go build ./....

Local validation (head c74b26f36):

  • pnpm lint: 23/23 pass. pnpm check:fast passes, including the formatting ratchet, ESLint and the type-boundary ratchet.
  • pnpm build: 19/19. pnpm typecheck: 38/38.
  • pnpm test (turbo --continue):
    • API: 1186 files, 18132 passed, 4 skipped. The only failing file was gitlab-host-policy.test.ts, which tested the deleted module; it is removed in c74b26f36.
    • Web: 433 files, 5462 passed. One environment-teardown flake in retired-trial.test.tsx; it passed on rerun.
    • Every other package passed.
  • pnpm selfhost:test: 38 files, 582 passed, 2 skipped.
  • Self-host-only import-graph tests pass: reverse-tunnel-placement, selfhost-only-modules, speech-selfhost-only, reverse-tunnel-entry, reverse-tunnel-gateway.
  • celld-project tests pass, including the new 0255 projection case. It fails without the fix.
  • Quality checks pass: quality:migration-safety, do-migration-safety, wrangler-bindings, shared-flight-joins, no-secret-readback.
  • Cheap local self-host smoke: the branch has no compose-up smoke. selfhost:test covers the generated celld entry and config, the compose files and deploy steps, which is what the box build consumes. selfhost:live-test and hosted-git-smoke.sh need the box, which this task must not touch.

PR CI on the final head 4dd6fcff795eabd0e5dd44dda600a20b03960fe4: PASS. Run 44302138902: 26 jobs succeeded, 6 skipped. ci.yml only triggers for PRs into main, so it was dispatched with workflow_dispatch on this branch, as for M3.

  • Earlier runs: 44298578420 failed the Secret Scan and hosted-git conformance jobs (fixed in 5463b81ec). 44299885169 failed the self-host live join test (fixed in 4dd6fcff7).
  • The 5463b81ec and 4dd6fcff7 fixes were checked locally with gitleaks 8.30.1 (no new findings), test:hosted-git (20 passed) and the affected test files.

Staging Verification Evidence

N/A by explicit task instruction: this PR targets the integration branch sam/selfhost-pass-2, deploys nothing, and must not touch the self-host test box (the coordinator schedules the L17b and L13 box proofs after M4 merges).

Specialist Review Evidence

Reviewer Status Outcome
architecture-reviewer ADDRESSED Merge-introduced findings fixed in a4d398419/7c7654a04: CRITICAL lease-migration projection, duplicate /link-social gate, shared-flight-joins, dead deadline helper, L11 production pin. Pre-existing branch placements (HIGH-1 SandboxDO, HIGH-4 hosted-git route branching, HIGH-5 capability inputs, MEDIUMs) are not introduced by this merge; raised to the coordinator below
task-completion-validator ADDRESSED WARN, no CRITICAL. Final-head validation recorded above; task file updated (a488c0d36); final shortstat, post-merge-fix section, corrected unsure items and the preflight migration line added

CodeRabbit Review Evidence

  • At open: CodeRabbit posted Review skipped — auto reviews are disabled (comment).
  • Requested at 11:51:21Z, when the PR was marked ready, via the coderabbit-review label. The trusted workflow ran and CodeRabbit replied "Review triggered" at 11:51:40Z.
  • No review had arrived by 12:36Z (the rule 25 bound of about 45 minutes from the request). That is recorded here, with no waiver requested.
  • The Codex connector replied that its usage limit had been reached.

Agent Preflight (Required)

  • Preflight completed before code changes

Classification

  • cross-component-change
  • security-sensitive-change
  • docs-sync-change
  • ui-change
  • infra-change

External References

N/A: merge of reviewed repository implementations; no new external API integration. M3 #2817 read before merging.

Codebase Impact Analysis

The self-host seams landed on main replace the branch's inline copies:

  • services/speech-backend.ts with selfhost/speech/
  • services/node-transport-extension.ts with selfhost/reverse-tunnel/
  • services/admin-settings-registry.ts installAdminSettingDefinitions
  • services/platform-capabilities.ts with routes/platform-capabilities.ts
  • packages/ai-proxy (L12)

The generated celld entry (scripts/selfhost/celld-project.ts) is where self-host-only extensions are installed.

Documentation & Specs

Merged main's docs. Corrected the speech citation and rate-limit setting name in reference/configuration.md. The task file records the plan. No new product contract.

Constitution & Risk Check

Principles X and XI: no new runtime constants. Main's landed versions replace duplicate branch implementations. Migration safety:

  • no applied migration is renumbered. One branch-only applied migration file is removed (0232_node_reverse_tunnel_leases.sql, superseded by main's self-host 0255, IF NOT EXISTS; unsure item 7)
  • main's self-host 0255 reverse-tunnel migration is IF NOT EXISTS over the branch's 0232

The primary risk is a silent merge incompatibility. It is covered by build, typecheck, the full test suite and the self-host suites on the final head.

🤖 Generated with Claude Code

dependabot Bot and others added 30 commits November 16, 2026 22:20
Bumps library/docker from `08a9801` to `7bf70dc`.

---
updated-dependencies:
- dependency-name: library/docker
  dependency-version: 7bf70dcb85c822e3fa6f2d332143e474b99147b9d7b39102b0cfe8b04a7dd61b
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
* feat(insights): record run token usage (agent_run_usage) and show it on the receipt

Insights slice U, control-plane side: migration 0253 agent_run_usage, the
harness writer on the usage callback (cumulative, per-column MAX), the AI
proxy writer (measured usage only), the shared operations read and the
receipt's Tokens tile.

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

* feat(vm-agent): report run token usage on the usage callback

Claude Code and OpenCode turns are read from the ACP prompt response and
folded into per-model running totals under one epoch per host; Codex thread
totals come from the rollout file the usage probe already tails. Reports are
cumulative, so repeats and reordering cannot double count.

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

* test(insights): run usage across the VM agent → API boundary, scope attacks, receipt tokens UI

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

* docs(insights): run receipt tokens, run usage sources and the token rows setting

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

* chore(insights): lint and format run usage files

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

* fix(insights): address run usage review findings

- Codex reports one model per thread; totals restart on a credential switch;
  model count and name length match the schema; token reports drain on stop
- AI proxy: budget accounting first, run-usage write via waitUntil
- Counters clamped, reads sum with TOTAL(); no-op upserts write nothing
- Project delete removes agent_run_usage; spend on another member's personal
  key is private; unused account read removed until slice A
- Receipt: failed reads and live runs say so; per-model spend and floor label
- Tests: proxy route wiring, old control plane schema, privacy, overflow

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

* task: archive insights slice U task file

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

* refactor(vm-agent): move prompt retry helpers out of session_host_prompt.go (file size limit)

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 invalid admin settings row isolation

* fix: isolate invalid admin setting overrides and show safe fallbacks

* docs: record admin settings isolation validation and review evidence

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
…ivery and Stop gate (#2804)

* task: add codex-repo-hook-trust (active)

* feat(agents): restore the Codex rule-delivery hook and Codex Stop entry, with the review's missing tests

* style: sort imports

* refactor(vm-agent): move per-agent startup config writers to session_host_agent_config.go (pure move)

* feat(vm-agent): SAM Codex sessions trust the repository's Codex hooks (bypass_hook_trust + project trust in CODEX_CONFIG)

* docs: Codex sessions run repository hooks; rule delivery for Codex

* chore(diagnostics): seed script for the staging Codex hook probe

* task: progress

* fix(vm-agent): trust key is the ACP cwd verbatim, never /; standalone test; docs state the full trust scope

* fix(vm-agent): only bypass_hook_trust is needed (codex-acp already trusts the session project); real-process test of repository hooks through codex-acp

* task: progress (local proof, staging wait)

* chore: task text matches the final design; note at the Codex pins to rerun the hook probe

* test(vm-agent): share the real-adapter process and mock-stream helpers; force HTTPS in the probe seed script

SonarCloud flagged 33 duplicated new lines (the hook probe repeated the
adapter-start and Responses-stream code of the pinned and steering process
tests) and plain curl redirects in seed-codex-hook-probe.sh. The three tests now
use startACPAdapterProcess, adapterCommand and writeResponsesTurn; the hook
probe still passes against codex-acp 2.1.1 and Codex 0.160.0. gateway.go gets
the blank line gofmt wants.

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

* chore: task state (staging queue, Sonar fix, CodeRabbit outcome)

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

* chore: task state (staging queue at 19:45Z)

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

* chore: archive the Codex repo-hook trust task with its staging evidence

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>
)

* chore(security): re-review expired historical PEM parser baseline

* docs: record exact baseline review and validation handoff

---------

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

* chore(security): re-review expired historical PEM parser baseline

* docs: record exact baseline review and validation handoff

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
…s archived task (#2827)

The archive move in #2804 staged the rename before these edits, so main kept
the unticked checklist. Ticks the staging, review and acceptance items and adds
the staging evidence note (deploy 43971455359, VM and Instant sessions).

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

* task: inbox slice H1 human tasks (server side)

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

* wip(inbox): human task storage, comment anchor and person operations

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

* wip(inbox): agent task operations, wake policy trigger, sam.inbox event guard and wake text

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

* wip(inbox): API task port (events, watches, comments, notifications) and comment-wake decision

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

* wip(inbox): task REST routes, MCP assign/comment/attach, task detail on reads

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

* wip(inbox): task discussion in Comments inbox, departed-member handoff, assign in turn-end text

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

* test(inbox): human task capability tests through MCP and REST with wake-rule, viewer and cross-project guards

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

* test(inbox): wake policy trigger, sam.inbox matching guard, departed member, cancel, Comments page filter

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

* docs(inbox): human tasks in the inbox guide, agents guide, API reference and settings

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

* fix(inbox): stored comment anchor kinds apart from the client anchor union; fewer round trips on the comment path

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

* fix(inbox): review findings — watches renew per change and wind down when closed, same-owner attach without comment wakes, notice after outbox commit, admission off the request path, member checks in writes, chunked Comments read

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

* test(inbox): reassign, archive, untick, wakeOnSteps, same-owner attach, watch renewal, direct subscription refusal, inbox-item comment scope

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

* docs(inbox): closed-task watch setting and same-person attach

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

* chore: sort shared exports

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

* fix(inbox): CodeRabbit review — whole-number step index, write scope for task changes, member checks in claim, notice reset on reopen, task cap in the INSERT, atomic departed handoff, replayed comments wake nobody, owner's other chats read the task, task gate in the generic answer path, docs

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

* test(inbox): non-numeric step index is refused

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

* fix(inbox): literal SQL in the watch renewal (AST sql-injection check)

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

* test(inbox): concurrent claim race; finished filing chat records changes without a wake through the real alarm path

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

* test(inbox): departed-member handoff through the real offboarding preview/apply routes

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

* task: archive inbox slice H1

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

* fix: drop stale insights import left by the main merge

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

* fix(inbox): guard the moved-task rows in the departed-member handoff (runtime-boundary check)

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

* fix(ci): drop the gitleaks baseline group that expired 2026-11-17T00:00Z

The group (reviewed 2026-08-19) pinned PEM delimiter literals at old line
positions in apps/api/src/services/github-app.ts; W7 moved that code to
packages/repo-hosting, where a 2026-11-12 group covers it. The scanner fails on
any expired entry even with no matches, which blocks every branch and main.
With the group removed, the current-tree scan passes (43 reviewed, 0 new) and
the PR-range scan passes (0 new), so the group matched nothing.

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

* fix(ci): keep the baseline file's formatting; only the expired group is removed

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>
…tes) (#2820)

* feat: platform capabilities seam (L11): resolver, public endpoint, voice and model gates

Land slice L11 from sam/selfhost-pass-2: a pure resolver for which platform
services this installation has (Workers AI, speech-to-text, text-to-speech),
errors.featureUnavailable (404 FEATURE_UNAVAILABLE), the public no-I/O
GET /api/config/platform-capabilities, the TanStack Query hook, and the
mic, read-aloud and model-catalog gates. Every capability resolves true on
Cloudflare; the web assumes all present while loading or on error.

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

* fix: address L11 review findings

- Prefetch platform capabilities once at app start (covers profile/skill
  forms outside project routes); drop the now-redundant project prefetch.
- Keep the model-access field label when model calls are unavailable.
- Port the agent-models without-Workers-AI test (list, run, MCP, cache order).
- Document the agent-facing not_available code.

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

* style: format agent-model-access-field test

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

* task: archive L11 platform capabilities 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>
* fix: harden node and GitLab redirect boundaries

* fix: cover container session probes and synchronize redirect docs

* test: prove redirect limits and credential allowlisting

* fix: preserve authenticated local port-forward app redirects

* fix: preserve node cache revalidation responses

* test: share proxy request inspection setup

* docs: archive L6 validation and staging evidence

---------

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

* feat(admin): retire SaaS-era Admin Analytics sections (Insights H2)

Remove the signup funnel, geographic distribution and weekly retention
cohorts from Admin Analytics: their API routes, Analytics Engine queries,
constants, env vars (ANALYTICS_GEO_LIMIT, ANALYTICS_RETENTION_WEEKS),
middleware event names, web components, fetchers, types, hook queries,
the KPI funnel card, the react-simple-maps/d3-scale dependencies and
VITE_GEO_TOPOJSON_URL. DAU, top events, feature adoption, website
traffic, AI usage and event forwarding are unchanged.

No storage changes: the sections read the Analytics Engine dataset, which
the kept sections and forwarding still use.

Also fixes the chart category labels, which used an undefined colour token
and rendered black on dark panes.

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

* task: archive insights H2 task file

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

* fix(admin): address H2 review findings

- KPI grid sizes its desktop columns to the cards present, so a partial
  load leaves no hole; render test covers 1, 2 and 3 cards.
- Remove an empty effect branch on the Analytics page.
- Document /forward-status; list two existing analytics vars in .env.example.

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

* test(admin): share the kept-sections audit between viewports

Removes the duplicated test body SonarCloud flagged.

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

* test(admin): collapse repeated audit scenes into captureScene

Clears the SonarCloud new-code duplication gate.

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

* test(admin): drive audit scenes from one table for both viewports

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>
* feat(insights): Cloudflare cost snapshot core, table, daily job and Health & cost read

Move the rule-76 billed-metric analysis behind pnpm quality:cloudflare-cost into
packages/shared/src/cloudflare-cost so the CLI and the Worker share it, adding
Workers requests (tail invocations excluded), Workers CPU and KV. Add migration
0256 (installation_cost_daily, installation_cost_sync), a daily isolated snapshot
job, a superadmin refresh route and a cloudflare section in installationHealth.

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

* feat(insights): Cloudflare card on Admin Health & cost, with tests and visual audit

Month to date, the recent-rate projection, top product lines, a daily series and a
Refresh now button; unconfigured, permission and error states explain themselves.
Tests cover the GraphQL fixture mapping, idempotent upserts on the real migration,
the unconfigured token, scheduled-step isolation and the projection math.

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

* docs(insights): Cloudflare cost snapshot, Account Analytics Read permission

Document the Cloudflare card, the daily snapshot, its settings and the refresh
route; list Account Analytics Read as an optional runtime-token permission and
request it in hosted-installer runtime tokens.

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

* chore(insights): sort imports and exports

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

* fix(insights): address slice CF review findings

- Classify Cloudflare's real auth error shapes (10000, 9106, authz) as permission
  and read the error body on non-2xx responses.
- Never overwrite stored days with a response that has no usage for them; read
  stored usage across the whole window for the month's allowance.
- Throttle Refresh now (insights.cloudflareCostRefreshMinSeconds, 429).
- insights.healthCloudflareProjectionDays; defaults from the setting definitions;
  rows_written kept from the last success; prices checked-on date on the card.
- Card: labelled daily chart with a table, dashed missing days, so-far/projected
  labels and two-tone bars, status emphasis, refresh toasts for every outcome.
- Revert the installer runtime-token permission (OAuth grant lacks the scope);
  tracked in idea 01M7KABJJ3H6XQ812REW68MJZT.
- Tests: bind ceiling across a full window, real auth shapes, empty response,
  writer-to-reader chain, throttle, projection days, settings max = CF limit.

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

* fix(insights): address CodeRabbit review on slice CF

- Storage projections add the observed days' accrued cost to the latest level
  for the remaining days (CLI and card).
- A dataset that is not a list fails the request instead of reading as zero.
- Stored days the fetch omits keep usage and fetch time but get their cost
  recomputed after an earlier day changes.
- The card read is anchored on the latest well-formed stored day and skips
  impossible dates.
- Refresh now claims its interval with one conditional write, so overlapping
  presses make one Cloudflare call.
- Shared-package tests for the cost core.

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

* test(insights): drop unused fixture

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>
* docs(www): weekly claims audit — Inbox on roadmap, secret_request in concepts

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

* docs(www): concepts — only some notifications are Inbox Updates

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>
…2833)

* fix(deploy): treat pull_request_checks as a reviewed churning table

GitHub webhook traffic prunes orphaned pull request check observations
between the pre- and post-migration row counts, so a deploy that applied
an additive migration (0254) was refused at 28243 -> 28201 (production
run 44010648016). Add the table to the reviewed churning list (bounded
50% decrease), add a regression test from the incident's numbers, and
sync the docs to the actual list.

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

* test(deploy): pin the pull_request_checks churning cap and document override drift

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>
* feat(insights): projectSetups read for the Agent setups tab

Shared operation, REST route and ProjectData nudge count behind
Insights · Agent setups (slice S).

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

* test(insights): Agent setups read on real SQL and the real ProjectData object

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

* feat(insights): Agent setups tab, suggestions and docs

Replaces the coming-soon Agent setups tab with the real read: setups by
profile, skill or model, a comparison, and one-tap skill suggestions
applied through PATCH skill. Playwright audit at 375 and 1280.

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

* fix(insights): address Agent setups review findings

Never echo a free-text profile hint; suggest only project profiles as a
skill default; count nudges once per chat; mark partial measures and
small samples; name compared bars in text; cards below lg; refresh the
skill list after applying a suggestion. Tests for each.

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

* perf(insights): pick runs first, join rework, drive per-run reads by index

The setups statement scanned later pull requests once per merged run
across the whole range (14.4 s at 9,000 runs / 30,000 PRs). It now picks
the newest runs first, joins rework on an automatic index and drives the
token and memory reads from the picked runs (159 ms on the same data).
Query plan pinned by a test. One unreadable chat no longer fails every
nudge count.

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

* task: record Agent setups progress and review outcomes

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

* fix(insights): resolve a profile hint that names a project profile

Tasks store the profile hint as typed, often a name. Resolve names against
this project's profiles only (unique per project), as submission does;
an unresolved or personal-name hint still reads as not recorded.

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

* task: archive Insights Agent setups with staging evidence

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>
…lity (L12) (#2829)

* task: plan L12 OpenAI-compatible endpoint landing

* task: activate L12 landing plan

* refactor(ai): split passthrough preparation from forwarding

* refactor(workspaces): split runtime callbacks by concern

* feat(ai): route admin model endpoints and guard authenticated upstreams

* fix(ai): cache endpoint credentials atomically across isolates

* docs: record L12 validation and review evidence

* refactor(api): reuse callback identity and credential response boundaries

* docs: archive validated L12 implementation for release gates

* test: preserve schema exports in account setup fixture

* test: synchronize diagnosis races at actual model request

---------

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

* docs: Inbox Problems and tasks, permission notifications, Overview landing, Insights spend and pane wording

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

* docs: Agent Context guide, setup-closed check, model gate, pool and GCP troubleshooting, admin analytics

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

* docs: 10–17 November changelog cycle; move Inbox and Overview entries into it

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

* docs: screenshots for Overview, Insights, Problems, Receipt and policies; refresh rail and profile picker images

Docs captures come from the existing audits' mocks (docsShot inside project-overview,
insights, run-receipt and agent-context audits) so no fixtures are copied; the profile
picker docs spec is updated for the window-labelled usage text.

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

* task: file Inbox task chat card heading and stale Insights/nav copy found during docs update

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

* docs: address review round 1 (troubleshooting points to Problems, Retry semantics, assignee steps for tasks, Agent setups, on-demand matching, realistic fixtures)

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

* docs: address review round 2 (assignee finishes a task by telling the agent, not Archive; Inbox Retry starts at once)

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

* test(web): share the Acme Billing user and project between the Overview and Insights audits

SonarCloud flagged the two audits' identical mock user/project blocks as duplicated new code
after the docs fixture rename; both now import acme-billing-fixtures.ts. Also updates the
Overview's failed-start assertion for the Problem fixture's real title shape.

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

* docs: address CodeRabbit review (exhaustion policy qualifies quota descent and Queue waits, tasks are read-only in the Inbox, alt text covers both image variants, overflow checks before docs captures)

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 L17a reverse tunnel API landing

* refactor(api): extract node provisioning failure finalization

* feat(selfhost): isolate reverse tunnel API ownership and provisioning

* test(api): reconcile reverse transport and lifecycle inventories

* refactor(api): simplify provisioning failure finalization

* fix(selfhost): adopt live reverse leases after transport changes

* fix(selfhost): keep reverse lease cleanup owned by its build

* style(api): sort reverse lease imports

* docs: archive verified L17a reverse tunnel landing

* style: format L17a verification record

---------

Co-authored-by: Raphaël Titsworth-Morin <raphael@raphaeltm.com>
…llation settings, truthful email copy

- No-profiles gate with exactly one configured agent offers 'Start chatting with <agent>':
  one click creates the single '<agent> Chat' profile (Instant where the installation can
  run it, read at click time; Cloud VM otherwise). 'Customize' opens the wizard. Nothing is
  created without the click.
- Wizard: the Instant card is disabled where Instant is unavailable; a chat profile with no
  runtime chosen falls back to VM there.
- Compute pool overview warns when no allowed machine can hold a default workspace, using the
  installation's resolved default requirements and host reserve. Pool responses now carry
  placementSettings.hostMemoryReserveMb (resolveEffectiveNodeHostMemoryReserveMb).
- Email trigger copy states the only sender check SAM makes (From allowlist,
  packages/agent-email/src/inbound.ts); onboarding no longer says the SAM-hosted repo lives in
  'your Cloudflare account'.

Ported by hand from sam/selfhost-pass-2 (0d67786, 16b2473); self-host-only parts left out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
simple-agent-manager Bot and others added 5 commits November 18, 2026 10:12
…x230p

L19: guided-setup teardown marks D1 first and resumes cleanup
* fix(vm-agent): translate Vibe permission modes and reset restored sessions

* docs: record Vibe draft PR validation and handoff constraints

* docs: finalize tested Vibe draft handoff evidence

* task: archive Vibe permission-mode task (draft hold lifted by Raphaël 2026-11-18)

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>
…2e41740d213944c79404d3

Bound harness usage admission without deleting history
Staged M4 merge, step 1 of 3. Landed slices take main's shape (L5b,
D2, D3, L6, L11, L12, L14, L17a); the branch keeps only its unlanded
remainder. Branch copies superseded by main's selfhost modules
(services/speech-endpoints*, services/node-reverse-tunnel-*) are
removed and callers repointed; the celld entry installs main's
self-host speech backend.

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 18, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. 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
Walkthrough

[!WARNING]
Review details and warnings were omitted to fit the comment limit.

  • 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 18, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 5 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing sam/m4-third-attempt-staged-zk9fse (4dd6fcf) with main (704e5f3)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 (faa02a8) during the generation of this report, so main (704e5f3) was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

simple-agent-manager Bot and others added 10 commits November 18, 2026 10:45
…5fe4b52a58efb9686d061d

[Codex Security] CLI renders API-derived text as terminal control sequences
Staged M4 merge, step 2 of 3. L17b's reverse-tunnel gateway takes
main's shape: services/node-agent-route.ts and
node-websocket-gateway.ts are main's, the branch's Worker-mounted
routes/self-host-gateway.ts is removed in favour of
selfhost/reverse-tunnel/gateway.ts, and the branch's unlanded
inbound-email gateway moves to selfhost/reverse-tunnel/inbound-email.ts
mounted there. The celld entry wraps the worker with
selfhost/build.ts (speech install + withReverseTunnel). The branch's
shared 0232 lease migration and Drizzle table give way to main's
self-host-only 0255 (IF NOT EXISTS over 0232).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Staged M4 merge, step 3 of 3 (origin/main tip 096db08). Landed
slices take main's shape: L13 (AI local metering + ceiling), L9+L10
(account linking), L15 (quickstart/pool), L16 (hosted-git seam),
L19 (credential-setup teardown). The branch's local git server now
plugs into main's registerArtifactsBackendFallback seam from
selfhost/hosted-git.ts (implementation in services/hosted-git/
local-backend.ts); step 1's L13 remainder is replaced by main's L13.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- gitlab.ts takes main's L6 deadline/refusal shape; only the private
  self-managed GitLab opt-in (allowPrivateNetwork) is re-attached; the
  now-unused gitlab-host-policy.ts is removed.
- gitlab-sign-in-trust test is main's plus the branch scope test; the
  branch SMTP link-alert test is dropped (L9/L10 refuse implicit links).
- celld-project test expects the withSelfHostBuild entry.
- Lint: import order, unused imports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- celld packager projects the self-host reverse-tunnel lease migration
  (0255) into the primary database's migration dir; the shared 0232
  copy is gone, so a fresh box otherwise had no lease table (CRITICAL).
- Remove the branch's duplicate /link-social gate; main's L9/L10
  account-linking plugin owns it.
- llm-endpoint-snapshot joins another request's load through
  settleSharedFlight (quality:shared-flight-joins); range-report's
  local digest cache carries the reviewed allow directive.
- Remove the now-unused guardedFetchWithDeadline helper.
- Restore main's L11 production-shape capability pin next to the
  branch's broader tests.
- Tests: take main's L9/L10/L13 web tests; adapt branch tests whose
  feature landed in main's shape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Branch tests that asserted pre-landing behaviour now superseded by
main's L6/L9-L10/L12/L13/L17a-b take main's tests or are adapted:
GitLab whole-call deadline, account-link alert recipient, transport
installation for reverse-tunnel selection, lease table from the
self-host migration, H2-retired analytics routes. The inbound email
gate checks the gateway secret's minimum length again, pinned to the
self-host constant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's quality:no-secret-readback (#2841) scans scripts/ and skips
fixtures/. The fake AWS KMS and Azure/Google key services decrypt only
test data and are imported only by tests, so they live with fixtures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simple-agent-manager
simple-agent-manager Bot marked this pull request as ready for review November 18, 2026 11:51
@simple-agent-manager simple-agent-manager Bot added the coderabbit-review Trigger CodeRabbit review for opt-in PRs label Nov 18, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-18T11:51:19.403438Z
We couldn’t complete this review. Comment @codex review to try again.
328c166 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@raphaeltm

Copy link
Copy Markdown
Owner

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Action not completed

Review skipped: 1248 files exceed the limit of 100.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

raphaeltm and others added 2 commits November 18, 2026 12:00
- The gateway-secret length pin moves to its own test file, so the
  reviewed synthetic fixture in selfhost-inbound-email.test.ts stays
  on the line its gitleaks baseline digest names.
- Hosted-git conformance reads the credential host from cloneUrl, the
  L16 git-token response main landed (no separate host field).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's ProjectData ensure memo (af302db) remembers only completed
ensures, so two concurrent cold requests each run their own ensure and
there is no shared flight to strand on celld. The live join test now
expects both answers to report two loads for the ensure case; the
latency bound that catches a stranded request still applies.

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

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@simple-agent-manager

Copy link
Copy Markdown
Contributor Author

Coordinator review (task 01M7JMXS2JRW6QQMB1356ENPM3): approved for merge into sam/selfhost-pass-2.

Gates on head 4dd6fcff795eabd0e5dd44dda600a20b03960fe4:

  • Full CI passed: workflow_dispatch run 44302138902, 26 jobs succeeded, 6 skipped. ci.yml only triggers on PRs into main, so it was dispatched by hand as for M3. The 6 skipped jobs are suites gated on PR events or changed paths; the full suite runs again when each slice lands on main.
  • Specialist reviews: architecture-reviewer ADDRESSED (the merge-introduced CRITICAL, a missing projection of the 0255 lease migration, is fixed and has a test); task-completion-validator ADDRESSED.
  • CodeRabbit: requested at 11:51Z; no review arrived by 12:36Z. That is recorded and does not block.
  • SonarCloud failed with one MINOR S5332 finding, "Using http protocol is insecure", at scripts/selfhost/fixtures/key-provider-fakes.ts:101. It flags new URL(request.url, 'http://fake'), which is only a base for parsing request paths inside a local test fake server. The file counts as new code only because a31c69e9f moved it. It is a false positive: no traffic goes over http. SonarCloud is not a required check.
  • The base faa02a842 is an ancestor of the head, so the merge has no conflicts. M4 is no deploy, and I did not touch the box.

The items raised to the coordinator (pre-existing HIGH-1/4/5 and the MEDIUMs) and the unsure items (#4 admin cap flag, #5 dropped L12 refinements, #7 removal of the 0232 migration, #13 L19 celld teardown, #16 budget PUT 503) are recorded on the landing plan. Each belongs to the slice that lands that code, or to the BOX proofs, which run next.

@simple-agent-manager
simple-agent-manager Bot merged commit 942d2c0 into sam/selfhost-pass-2 Nov 18, 2026
35 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coderabbit-review Trigger CodeRabbit review for opt-in PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant