Skip to content

L16: hosted-git seam without the Durable Object - #2856

Merged
simple-agent-manager[bot] merged 20 commits into
mainfrom
sam/self-host-landing-slice-eyt0t8
Nov 18, 2026
Merged

simple-agent-manager[bot] merged 20 commits into
mainfrom
sam/self-host-landing-slice-eyt0t8

Conversation

@simple-agent-manager

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

Copy link
Copy Markdown
Contributor

Summary

Self-host landing slice L16: the hosted-git seam, without the HostedGitRepo Durable Object or vendored dgit (decision D7). Plan: idea 01M72M9AEB933ZY8269D376DKC (LANDING PLAN part 2 row C15, part 6 row L16). SAM task 01M7M9F7A5T7MKX15KV5EYT0T8.

  • apps/api/src/services/hosted-git/backend.ts: resolveArtifactsBackend(env) / isArtifactsAvailable(env) and registerArtifactsBackendFallback(). On Cloudflare the result is exactly env.ARTIFACTS (when ARTIFACTS_ENABLED === 'true') or null.
  • Every env.ARTIFACTS caller now goes through it: /api/config/artifacts-enabled, project create + seed-failure cleanup, project delete (still uses the binding even when the flag is off, as before), the runtime git-token route, and repository browsing (new repo-hosting artifacts port; ArtifactsRepoBrowser keeps using the binding directly when present).
  • C15 (workspace-git-source.ts): an Artifacts project whose remote is not *.artifacts.cloudflare.net gets cloneUrl + repositoryHost. repository is now a required field of WorkspaceGitSourceProject, so the compiler enumerated every caller; each passes the row it already holds.
  • The git-token route adds username: 'x' to its Artifacts response only when the remote is a bound non-Cloudflare host, so the credential helper refreshes with the username the clone used (Cloudflare responses unchanged).
  • /api/config/artifacts-enabled moved to routes/artifacts-config.ts (same path, same answer) so its test exercises the real route.
  • vm-agent: withGitToken attaches the git token (username x) and needsCredentialHelperForConfig enables the credential helper only for the exact RepositoryHost bound to an artifacts workspace (internal/bootstrap/hosted_artifacts_host.go). Cloudflare Artifacts hosts are still recognized by name and are unchanged.

Dead code on Cloudflare (stated per the coordinator's brief)

registerArtifactsBackendFallback has no caller on main; it is the seam the self-host build (apps/api/src/selfhost/, not imported by src/index.ts) registers its git server through. C15's new branch and the vm-agent bound-host branch also never fire on Cloudflare (see the production check). Kept to ~45 lines of TS + ~20 lines of Go.

What stays on sam/selfhost-pass-2

HostedGitRepo DO, dgit/pako, services/hosted-git/{http,tokens,limits,import}.ts, hosted-git token route, in-process artifactsRemoteFetch (README seeding / browsing without hairpin) and fetch-http-client.ts. When main is merged into the integration branch, its backend becomes a registerArtifactsBackendFallback(...) call from selfhost/hosted-git.ts.

C15 production verification (read-only)

sam-prod D1, 2026-11-17 08:31 UTC, via the production debugging token: 47 projects; 10 with repo_provider='artifacts'; 10/10 remotes match https://<account>.artifacts.cloudflare.net/...; 0 empty. So C15 changes nothing for any production project.

I/O per request (rule 60)

0 added. The integration branch's version added a D1 read when repository was not passed; here every caller supplies it from data it already reads: instant-restore-workspace (row.repository, existing join), instant-session (input.project), scheduleWorkspaceCreateOnNode (linkedProject row, now forwarded through the NodeLifecycle direct-provisioning payload), TaskRunner loadTaskRunnerProjectRepo (one more column on its existing SELECT), resolveWorkspaceGitSourceByProjectId (one more column on its existing SELECT). resolveArtifactsBackend does no I/O.

Rollout compatibility (rule 54)

  • New VM agent + old control plane: RepositoryHost is never set for artifacts → unchanged.
  • Old VM agent + new control plane on Cloudflare: C15 never sets RepositoryHost for CF remotes → unchanged.
  • NodeLifecycle direct-provisioning inputs persisted by the previous deploy lack linkedProject.repository; new URL(undefined) throws inside the guarded parse and the project keeps Cloudflare behaviour (test: "keeps Cloudflare behaviour for a NodeLifecycle request persisted before repository was passed").

Security notes

  • projects.repository for Artifacts projects is server-assigned (created.remote at creation); no user route writes it (only other writer: GitHub rename webhook, keyed on github_repo_id, which Artifacts projects lack). So the bound host is chosen by SAM, not the user.
  • The vm-agent compares the bound host exactly (case-insensitive), including port; https only. Look-alike hosts, other ports, subdomains and http:// never receive the token (Go tests).
  • ARTIFACTS_ENABLED still gates everything: a registered fallback is never consulted when the flag is off (route tests for git-token and project-create).
  • Callback auth unchanged: the git-token route keeps verifyWorkspaceCallbackAuth + JIT identity check; no new routes.

File size

apps/api/src/index.ts 565→566 (one import), workspace-create.ts 586→590 (forward repository); bootstrap.go is on the grandfathered list, so the new helper lives in its own file (+4 lines in bootstrap.go).

Validation

  • pnpm lint / pnpm check:fast — exit 0 (only pre-existing warnings in web/acp-client)
  • pnpm typecheck (api, repo-hosting) after building the API's dependencies
  • pnpm test: API unit 1018 files / 15207 tests passed (2 files / 3 tests skipped, pre-existing); repo-hosting 14 files / 146 tests passed
  • Additional: go test ./internal/bootstrap/ ./internal/server/ pass, go vet, gofmt; staging (14/14) and staging2 (6/6) Artifacts remotes also on *.artifacts.cloudflare.net
  • N/A sweep selection: no sweep/cron/alarm candidate selection changed

Discrimination (rule 62):

  • Go: reverting bootstrap.go alone → exactly TestWithGitTokenSelfHostedArtifactsHost and TestNeedsCredentialHelperSelfHostedArtifacts red; Cloudflare/exact-host controls green.
  • TS: removing the C15 branch and the fallback call → 8 targeted tests red (hosted host, port, look-alike, no-D1-read, fallback x4); 16 controls green.
  • TaskRunner: the dispatch test's fake D1 returns repository only when the SELECT names it, so dropping the column fails it.

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

  • Staging deployment green
  • Live app verified through authenticated Playwright API requests and real workspace terminals
  • Existing workflows confirmed working
  • New feature/fix verified on staging — Artifacts project create → workspace clone → push; GitHub project clone
  • Infrastructure verification completed — fresh VM (vm-agent change), heartbeat, cleanup

Staging Verification Evidence

Current-head gated deployment 44248028268 passed; fresh agent release 2de1924 matches the resolver for bda3332. Artifacts clone/fetch/push and ordinary GitHub clone/fetch passed in real workspace terminals. All created resources were deleted; final nodes [], project 404 and sign-out 200. Full evidence appears below.

UI Compliance Checklist (Required for UI changes)

N/A: no UI changes.

UI Screenshot Evidence

N/A: no UI changes.

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

  • Data flow traced from user input to final outcome with code path citations
  • Capability test exercises the complete happy path across system boundaries (route-level tests through real Hono routes; C15 through real SQLite; Go through withGitToken)
  • All spec/doc assumptions about existing behavior verified against code
  • Manual verification on staging: fresh Artifacts clone/push and ordinary GitHub clone.

Data Flow Trace

  1. Create: POST /api/projects (project-create.ts) → resolveArtifactsBackend(c.env) → artifacts.create() → seedArtifactsReadme() → projects.repository = created.remote.
  2. Workspace: scheduleWorkspaceCreateOnNode / TaskRunner createWorkspaceOnVmAgent / Instant → resolveWorkspaceGitSource(db, {id, repoProvider, repository}) → createWorkspaceOnNode(..., {cloneUrl, repositoryHost}).
  3. VM agent: ensureRepositoryReady → withGitToken(repoURL, token, cfg) (isBoundHostedArtifactsHost) → clone; ensureGitCredentialHelper → needsCredentialHelperForConfig.
  4. Credential refresh: helper → vm-agent git_credential.go (host allowed via RepositoryHost) → POST /api/workspaces/:id/git-token (runtime-git-token.ts) → resolveArtifactsBackend → get().createToken().
  5. Browse: resolveRepoBrowser → repoHostingPorts().artifacts.resolve → ArtifactsRepoBrowser.

Untested Gaps

The self-host fallback path end to end (real git server) is exercised only on the integration branch's box; on main it is covered by unit/route tests with a registered fake backend. Cloudflare path verified on staging (gated deployment 44248028268 and fresh-VM live checks).

Post-Mortem (Required for bug fix PRs)

N/A: 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
Reviewer Status Outcome
cloudflare-specialist ADDRESSED 0 CRITICAL/HIGH. MEDIUM: config test copied the handler → route moved to routes/artifacts-config.ts, test mounts it; legacy payload guard made explicit (caef0e1). LOW: staging remotes check (done in staging phase).
go-specialist ADDRESSED No leak. MEDIUM: refresh username for bound host was x-access-token → git-token route returns username: 'x' for bound non-Cloudflare hosts only (caef0e1); extra Go cases added. Old agent on a self-host install is excluded by the rule-54 placement version gate.
security-auditor PASS 0 CRITICAL/HIGH/MEDIUM; 3 LOW. projects.repository invariant documented at the trust point (caef0e1).
task-completion-validator PASS Docs no-impact recorded in task file; stale repo-hosting dist rebuilt (all targeted tests green).

CodeRabbit Review Evidence (Required for agent-authored PRs)

  • CodeRabbit requested when the PR was marked ready for review
  • Waited about 15 minutes (or until a skip, rate-limit or quota reply)
  • Either CodeRabbit reviewed and no CodeRabbit feedback is unresolved, or it did not review and the observed outcome is recorded below

CodeRabbit Notes

PR marked ready 2026-11-17 11:29:03Z; trusted CodeRabbit workflow 44074415196 requested review. CodeRabbit replied “Review rate limited” at 11:31:49Z; wait ended immediately per policy. No CodeRabbit findings. Label retained for incremental review.

Exceptions (If any)

  • Scope: none
  • Rationale:
  • Expiration:

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; Cloudflare Artifacts binding usage is unchanged. Production D1 queried read-only to verify remote hosts.

Codebase Impact Analysis

apps/api (hosted-git seam, project create/delete, git-token route, workspace git source, TaskRunner dispatch, direct workspace creation, Instant restore), packages/repo-hosting (artifacts port, repo-browse), packages/vm-agent (bootstrap git token / credential helper).

Documentation & Specs

N/A: Cloudflare behaviour is unchanged and guides/project-files.md (ARTIFACTS_ENABLED gate) stays accurate. Self-host hosted-git docs ship with the self-host build, not this seam.

Constitution & Risk Check

Principle X (simplicity): the seam is one selection function plus a registration hook; DO, tokens and HTTP handler are deliberately excluded. Principle XI: no new hardcoded URLs/limits (the Cloudflare host suffix mirrors gitrepo.IsArtifactsHost). Risks: token sent to wrong host (mitigated by exact bound-host match, server-assigned remote); Cloudflare regression (mitigated by production remote check and binding-first resolution).

🤖 Generated with Claude Code

Takeover delta (2026-11-17)

Existing branch updated with safe main including #2841 (0c672ddbf), merge 4b9a6ddce. pnpm quality:no-secret-readback passes (0 findings, one existing tracked/masked legacy read).

Codex finding 4598971932 fixed in 9a40c5c59: deletion uses cleanup-only backend selection after disabling Artifacts; creation, config, browsing and token serving remain enabled-only. Cleanup-only resolver callers: deletion and the already flag-gated serving resolver. No added I/O. Surgical old-gate restoration fails exactly disabled/absent-flag DELETE cases, 13 controls pass; restored targeted 7 files/83 tests PASS. Sonar copied test setup consolidated by using the real project-create handler/schema and canonical AppError serialization.

Focused takeover reviews: Cloudflare PASS, security PASS, task-completion PASS. Prior Go review retained; no Go changes in takeover. Full local build 18/18, lint 22/22, typecheck 36/36 PASS. Sonar gate PASS, new duplication 0.0%. Root tests completed 37/39 tasks before one unrelated Inbox web test timed out waiting for the loaded count (5388 other web tests passed); that file passed 6/6 in isolation without code changes. Standalone full API JSON report: success=true, 16,722 passed / 4 skipped / 0 failed. No API suite collection failures. Both VM-agent CI smoke checks pass. Staging2 reserve-only run44149678336 SUCCESS, queue position7/current ETA20:28UTC; no deployment/resources created yet. Fresh VM binary/clone+push and GitHub clone remain merge-blocking. Merge also held until coordinator confirms production deployment containing #2841 succeeded.

Current takeover status

Current head: bcc37353f3673d42dd6c7dacdc048ad397f09457, pushed to the original branch. Main #2840 (4fc4cb99a) merged cleanly; subsequent narrow fixes are documented below. Current source validation: prior full build/typecheck/lint and 83 targeted API cases PASS; new standalone regression, standalone suite, targeted race checks and full Go server package PASS. Independent Go/security/completion delta reviews PASS; P1 thread replied and resolved.

Full CI 44205151924 and E2E 44205151899 passed on fcdd51c9f (26 PASS / 9 inapplicable skips). Actual Sonar issue inspection then found one new test cognitive-complexity finding; the follow-up extracts the unchanged table-case body into a helper. Focused race regression and independent Go delta review PASS. Fresh final-head CI 44211076194 / E2E 44211076236 and Sonar are pending on 4bd1f57b4. Prior candidate 7495af677 completed full CI 44199542961 (26 PASS / 8 inapplicable skips, all seven Workers shards and aggregate), E2E 44199542937 and Sonar (zero actual open issues); this is baseline evidence, not the current-head merge gate.

Coordinator lifted the #2841 production hold at 21:31 UTC after actual production deployment 44174587033 succeeded on ecb58a6d5. Primary staging reservation remains queued (last projected Nov18 00:28 UTC); unused staging2 reservation released. No L16 deployment or live resources created yet. Fresh-VM Artifacts clone/push, ordinary GitHub clone, complete cleanup/release and final-head CI remain merge-blocking. A fresh channel check and serialized merging claim will precede the authorized normal merge.

Unrelated main CI repair

Current candidate 9abd1bedc failed only API shard 1’s new #2840 speech import-graph test: the full Worker graph walk took 5695 ms against Vitest’s 5000 ms default; 5406 other cases passed and one skipped. The test file was byte-identical to main before this fix. Give this one graph walk a 30-second test budget; every assertion and the positive control are unchanged. Focused 2/2 tests and ESLint PASS, independent Cloudflare delta review PASS. Fresh full CI is required on the pushed repair head.

Standalone hosted username review repair

Codex P1 4604144749: initial standalone/Instant clones now consume the callback username, so a custom fallback host receives x rather than the GitHub default. Existing embedded-URL precedence and provider defaults remain intact. Regression enters the real clone path through its authenticated HTTP callback and git command boundary, checking credential pairing and no token in argv. Before fix: only hosted fallback failed; GitHub and Artifacts controls passed. Fixed standalone suite and targeted race checks PASS; independent Go and security delta reviews PASS. Full Go server package PASS (72.666 s); independent completion delta review PASS. Final-head CI is required after pushing this fix. No L16 staging resources created yet.

Sonar go:S3776 follow-up: split the standalone callback test table from its shared exercise helper; all assertions and cases preserved. Focused race PASS; independent Go equivalence review PASS.

Latest main synchronization

Clean normal merge of main b7502ba96 (#2859, L17b gateway/transport seam) into the existing branch produced 1fe679c1a. No conflicts; normalized L16 feature patch is identical. Secret guard PASS. Fresh CI 44224674476 / E2E 44224674492 are queued. Current local build 19/19, typecheck 38/38, lint 23/23 and targeted API 7 files / 83 cases PASS. Previous 70931e995 completed full CI 44215716287 and E2E 44215715601 successfully; actual Sonar issues API reported zero open findings. That is baseline evidence, not current-head CI.

No L16 deployment or live resources yet. Primary staging queue checked Nov18 02:11 UTC: L16 position1 waiting behind stream C through03:08:57 UTC; bounded turn wake03:08:59. Ordinary GitHub fixture requires primary. Fresh VM agent deployment, Artifacts clone/push, GitHub clone and cleanup remain merge-blocking. Production hold was lifted; serialized merge protocol still applies.

Default HTTPS port review repair

Codex P2 4608551728 fixed in da9f91b: canonicalize numeric HTTPS authority ports for hosted Artifacts matching, including omitted, explicit, padded and empty defaults. Nondefault ports remain distinct. Caller inventory: bootstrap token injection and credential-helper enablement share the comparison; no callback or serving authorization changes.

withGitToken regressions reproduce the old explicit-port failure and the intermediate padded-port failure. Positive cases include IPv6 and padded custom ports; refusal controls cover HTTP, other hosts/providers, lookalikes, and bound 8443 versus omitted/443. Full bootstrap suite PASS11.725s, focused race PASS1.033s, go vet PASS. Independent Go/security/completion source delta reviews PASS; thread replied/resolved.

Current head7a6048bc6 also clean-normal-merges archive-only main88b6103e1 (#2879); no additional runtime delta. Fresh CI44228988421/E2E44228988427 required. Prior deployment44225440895 is still in Cloudflare rollout on superseded1fe679; no test VM/workspace/project/profile created. Wait for its terminal safety result, then deploy the corrected current binary through the normal gates under the held primary lease. Live clone/push, GitHub clone and cleanup remain required.

Corrected-head staging deployment44229436353 dispatched Nov18 03:18UTC on7a6048bc6 under the held primary lease, after previous44225440895 completed all normal gates/smoke successfully. Authenticated predeploy nodesGET200[] again confirms rule27 zero-node baseline. No live VM/workspace/project/profile created yet. Live clone/push verification waits for corrected-head gated deployment success.

Persistent credential port review repair — current gate status (Nov18 03:39 UTC)

Codex P2 4608781164 fixed in bcc3735. The rendered VM helper delegates only bound Artifacts HTTPS requests to the authenticated local exchange. Shared numeric-port normalization now protects both the workspace binding and resolved-credential host checks. GitHub/GitLab host filters retain their existing behavior.

Real rendered shell-helper and standalone git credential fill regressions cover default, explicit/padded/empty ports, custom ports, and refusal before/after the control-plane fetch. Both old server and shell behavior were demonstrated failing before the fix. Full bootstrap/server tests PASS (11.776s/72.912s), focused race tests PASS, go vet PASS. Independent Go/security/completion delta reviews PASS; thread replied and resolved.

Current-head CI44231530090 and E2E44231530076 pending. CodeRabbit incremental review skipped. Deployment44229436353 on superseded7a remains in its normal safety rollout; after it completes and current CI is green, another normal gated deployment is required for the current VM binary. No L16 test resources created. Primary lease confirmed through04:56UTC. Fresh VM/project-chat Artifacts clone and push, ordinary GitHub clone, cleanup/zero VMs, release, actual Sonar issue inspection and final thread/main/channel reconciliation remain merge-blocking. Production hold is lifted.

New coordinator merge hold (Nov18 04:07 UTC)

A new workstream merge hold supersedes the earlier #2841 hold lift: production deployment44233064705 on main88b6103e1 failed Cloudflare10021 (Worker startup CPU limit). Coordinator is monitoring a rerun and requires an explicit hold-lift message before any slice merges. Staging/CI/review work may continue. The current persistent credential repair changes only VM-agent Go code; it adds no Worker-loaded module scope. Current bcc CI has no failed jobs; only the required Workers aggregate remains queued.

Current-head CI complete; staging verification pending (Nov18 04:09 UTC)

bcc3735 completed full CI44231530090 and E2E44231530076 successfully, including all Workers shards and the required aggregate; actual Sonar issues API reports zero open findings. All review threads are resolved. Normal gated staging deployment44235341791 dispatched on this exact head after prior deployment44229436353 fully succeeded. Fresh authenticated predeploy nodes response is200[]; no L16 test resources created. Live clone/push, GitHub clone and cleanup remain required. The new coordinator production merge hold remains in effect.

Coordinator lifted the new production hold after deployment44233064705 attempt2 succeeded at04:12UTC and production checks passed. Normal serialized merge rules apply. Current-head staging44235341791 remains in Cloudflare rollout; live verification and cleanup are still pending.

Main synchronization and live Artifacts proof (Nov18 04:46 UTC)

Clean normal merge of L15/main01ff1fc8d produced12e710992d35fd41f87915fc90f3a91eb239e864 on the existing branch. VM-agent and hosted-git source are byte-identical to the staged bcc3735 candidate. Local build19/19, typecheck38/38, lint23/23 and secret guard PASS. Fresh CI44239010729/E2E44239010769 are required on the merge head.

Staging44235341791 on bcc3735 fully succeeded. A new Artifacts project/profile/project chat provisioned a fresh Hetzner cx23 in fsn1; D1 confirms heartbeat and exact agent version bcc3735. The workspace cloned correctly, and real terminal git fetch, empty commit, push and ls-remote all passed. Remote verification ref l16-staging-proof advertises771b1c1781b66ff11407220078b4d60e8c8d9a20. Artifacts workspace deletion confirmed200 and follow-up404; project/repository cleanup remains pending while the ordinary GitHub control runs.

The first automatic provider attempt selected staging GCP and failed STS token exchange400 before an instance ID or heartbeat existed. Its failed node deletion returns409 because strict runtime termination is unconfirmed. Evidence is preserved and the coordinator channel is informed; this cleanup gate is not bypassed. The successful retry used explicit Hetzner/small/fsn1, without changing shared pool settings. Ordinary GitHub clone, all remaining resource cleanup, current-head CI and final merge reconciliation remain required.

Latest protocol review repair and cleanup handoff (Nov18 05:02 UTC)

New Codex P2 4609286582 blocks merge pending the current VM-agent repair: both helpers now forward Git's protocol, and Artifacts credentials require HTTPS before fetching and before output. The response guard covers the real untagged Artifacts callback contract (cloneUrl without provider); GitHub/GitLab contracts keep their existing behavior. Original HTTP/missing-protocol cases and the production-shaped legacy response were demonstrated failing before their respective guards. Focused regressions pass; final full/race/vet are running. Go/security/completion delta reviews pass. A pre-existing HTTPS host-provider test fixture now names its protocol explicitly; all its assertions remain intact. Fresh fix-head CI and fresh VM binary staging validation are required after pushing.

Ordinary GitHub clone/fetch passed on the fresh VM, and the generated GitHub test branch was deleted. Both workspaces, the Hetzner VM, the Artifacts project/repository/profile, and the own GitHub task were deleted successfully; Artifacts project readback is404. Signout returned200 and private session/terminal-token files were removed. The sole remaining cleanup item is failed GCP preallocation node01M7PF73G9RS8JQ9WK6ZTDDD74: normal DELETE still returns409 without strict termination proof. No proof bypass or cleanup waiver is taken.

Normal staging release44240071896 succeeded; authoritative queue shows the GCP repair task's turn, and that task was notified directly of the cleanup dependency. L16 will reserve again behind the queue for the new binary rather than occupy the repair slot. Current12e E2E passed; full CI was awaiting its required aggregate at last check. The successful bcc live proof remains baseline evidence, not validation of the upcoming protocol fix.

Current head2de1924513ed3a06ca6696b2a37107f2b1edadbd pushed: protocol repair complete; full bootstrap/server, focused race, vet and secret guard PASS; Go/security/completion delta reviews PASS. Codex protocol thread replied/resolved. Fresh CI44241550553/E2E44241550618 pending; reserve-only staging run44241618809 submitted behind the existing queue for fresh-binary verification. Previous12e full CI/E2E succeeded. Failed GCP row cleanup still requires truthful provider-absence evidence; peer inventory investigation is in progress. No active L16 VM/workspace/project remains.

Takeover checkpoint — 2026-11-18 05:12 UTC

Current head: 2de1924513ed3a06ca6696b2a37107f2b1edadbd. E2E run 44241550618 passed; full CI 44241550553 is running. Fresh exact-head VM binary/live verification remains queued for the primary staging lease, projected 06:11 UTC.

Prior smoke cleanup is complete, including the failed GCP preallocation record. Complete provider inventory in the exact bound credential project showed no VMs, and the failed STS request preceded Compute creation. The supported owner-attested cleanup endpoint returned 200, followed by node GET 404. This records owner-attested absence rather than strict provider deletion proof. All prior test VMs, workspaces, project/profile, and generated GitHub branch/task were removed; staging auth was signed out.

Current candidate — 2026-11-18 05:15 UTC

Head 5ced63386992ce4fac75f9af33174cd64044bdd4 groups expected status/callback count in the test helper to address Sonar go:S107; production code is identical to 2de192451. All 25 credential port/protocol cases pass under -race (1.404s), and Go specialist review passes. Fresh CI 44242730637 and E2E 44242730577 are running. The superseded 2de CI was cancelled by this push. Current-head staging and final gates remain pending.

Main integration — 2026-11-18 05:26 UTC

Clean normal merge of main d29015f35 (#2839 L13) produced current head bda3332846cb77514eb98378d2eace64b87bb46e, pushed to the original branch. No conflicts or changes to VM-agent/hosted-git files; this brings 55 main-owned AI/UI/docs files. Secret-readback guard passes. Combined-head CI 44244193376 and E2E 44244193320 are pending; local build/type/lint are running. Sonar actual issue count on preceding 5ced head is zero. Reserve-only workflow uses lease_action=reserve; refreshed candidate run 44244245261. Fresh current-head staging verification remains required on our authoritative queue turn.

Post-main-merge local verification completed: build 19/19, typecheck 38/38, lint 23/23, and secret-readback guard pass. Reservation refresh 44244245261 succeeded with deployment correctly skipped. Current-head CI remains running.

CI green — 2026-11-18 05:45 UTC

Current head bda3332846cb77514eb98378d2eace64b87bb46e: full CI 44244193376 SUCCESS, E2E 44244193320 SUCCESS; Sonar actual issue count zero and no unresolved review threads. Local build/typecheck/lint/secret guard pass.

Authoritative staging queue now has stream C holding its normal lease until 06:43:37 UTC; L16 is next, projected turn 06:43:37–06:53:37. Waiting for that turn or an earlier normal release. Fresh staged binary and live checks remain required before merge. All prior L16 resources remain cleaned.

Final current-head staging proof — 2026-11-18 06:38 UTC

Normal gated staging 44248028268 succeeded on bda3332846cb77514eb98378d2eace64b87bb46e, including container rollout and smoke tests. Rule 27 sequence was followed: nodes GET returned [] before deployment, then a new Artifacts project chat provisioned fresh Hetzner VM 01M7PNM7WGB29BANJ1H5ZGZJX2. Its actual heartbeat reported binary release 2de1924513ed3a06ca6696b2a37107f2b1edadbd, exactly matching the deployment's VM-agent release resolver (later changes are test-only or main integration).

  • Artifacts-backed project created successfully; its fresh workspace cloned the repository. Real terminal git fetch, empty commit, and push succeeded. Remote ls-remote confirmed 4535ca921987f20adc98d39d474455a204610563 at the verification branch.
  • Ordinary GitHub project serverspresentation2025/hono cloned and fetched on the same fresh VM. HEAD was bd97f3abc9b90feb0b58e0418c951ea0aab94337. The generated verification branch was deleted successfully.
  • Every created workspace, task/session, profile, project/repository and VM was deleted (workspace deletion confirmed; project GET 404). Final nodes GET returned []. Existing GitHub fixture project/profile were preserved. Sign-out returned 200; private login/terminal files were removed.

Normal lease release 44252731589 is queued; merge waits for its success and final reconciliation. All live acceptance criteria now pass.

Final independent task-completion audit: PASS, no acceptance gaps. Exact-head CI/E2E, actual Sonar zero issues, resolved review threads, fresh binary/live checks and cleanup verified. Lease-release terminal success remains the final operational gate.

Final main sync — 2026-11-18 06:43 UTC

Normal lease release 44252731589 succeeded; authoritative staging status confirms no holder and an empty queue. All test resources remain deleted. Before L16 claimed a merge slot, #2830 merged as ca03b8167; its serialization slot is honored. Clean normal merge into this original branch produced current head c7a06b20d75047a3ccecd445be32796b269e8e6c. No L16 VM-agent, hosted-git backend, git-token or workspace git-source code changed. Fresh CI 44253341274 and E2E 44253341271 are pending, with local integration checks running. Independent review and coordinator acceptance of the completed bda staging/live evidence through this main-only merge are pending; no exact-c7a staging deployment is claimed.

Accepted staging carry-over for final main merge

Coordinator task 01M7JMXS2JRW6QQMB1356ENPM3 accepted the completed bda → c7a staging/live evidence in verified message 5c4d9fec-9253-418c-9049-78935e3d7d0a, conditional on fresh full c7a CI/E2E, independent carry review, and serialized merge after 06:52 UTC. No additional staging case is required. Independent Cloudflare specialist review is PASS: the successful GitHub token path is preserved; only error classification/account linking changes.

Mechanically verified: zero file overlap between main d29015f35..ca03b8167 (56 files) and L16 d29015f35..bda333284 (37 files); the feature patch before/after main integration is byte-identical, SHA-256 449a4338a1dccd0dd25afc18484a2e602de9ad140b0b9270834115afbc873b42. The staged deployment SHA remains bda3332; this is explicit accepted carry-over, not an exact-c7a deployment claim.

Post-sync local build 19/19 (39.511s), typecheck 38/38 (34.686s), lint 23/23, and secret-readback guard pass. Full c7a CI/E2E remain pending.

Final merge gates passed — 2026-11-18 07:15 UTC

Current head c7a06b2: full CI 44253341274 SUCCESS, including every Worker shard and aggregate; E2E 44253341271 SUCCESS. Actual Sonar open issues: zero; review threads resolved. Local build/typecheck/lint/secret guard pass. Specialist and completion reviews pass; CodeRabbit terminal skip/rate-limit evidence retained. Coordinator-approved bda→c7a staging carry conditions are satisfied: byte-identical feature patch, zero main overlap, independent review PASS, fresh CI green and serialization interval elapsed. Live tests, resource cleanup and normal lease release all passed. Fresh main remains ca03b81, included in this head.

… (L16)

Self-host landing slice L16 (decision D7: seam only; the HostedGitRepo DO and
vendored dgit stay in the self-host build).

- services/hosted-git/backend.ts: resolveArtifactsBackend / isArtifactsAvailable
  and a fallback registration hook for the self-host build. On Cloudflare the
  result is exactly the Artifacts binding or null.
- Route every env.ARTIFACTS caller through it: artifacts-enabled config,
  project create/seed-cleanup, project delete, runtime git token, and repo
  browsing via a new repo-hosting `artifacts` port.
- C15: an Artifacts project whose remote is not *.artifacts.cloudflare.net gets
  cloneUrl + repositoryHost. `repository` is now required on the git-source
  input and every caller passes the row it already holds: no D1 read added.
- vm-agent: attach the workspace git token (username "x") and enable the
  credential helper only for the exact RepositoryHost bound to an artifacts
  workspace.

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

coderabbitai Bot commented Nov 17, 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
  • 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

@github-actions
github-actions Bot requested a deployment to staging2 November 17, 2026 10:32 Abandoned
raphaeltm and others added 2 commits November 17, 2026 10:45
- Mount /api/config/artifacts-enabled from routes/artifacts-config.ts and test the real route
- Return username x from the git-token route for a bound self-hosted Artifacts host
- Explicit guard for NodeLifecycle payloads persisted without repository
- More vm-agent bound-host cases (case, port, empty host, provider)

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 17, 2026 11:28
@simple-agent-manager simple-agent-manager Bot added the coderabbit-review Trigger CodeRabbit review for opt-in PRs label Nov 17, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T06:45:50.976955Z c7a06b2 New commits
ℹ️ 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.

@raphaeltm

Copy link
Copy Markdown
Owner

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9406993ba9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/api/src/routes/projects/crud.ts Resolved
@github-actions
github-actions Bot requested a deployment to staging2 November 17, 2026 18:39 Abandoned

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9a40c5c593

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@github-actions
github-actions Bot requested a deployment to staging November 17, 2026 19:41 Abandoned
@github-actions
github-actions Bot requested a deployment to staging2 November 17, 2026 19:45 Abandoned

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1fe679c1ad

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 12e710992d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@github-actions
github-actions Bot requested a deployment to staging November 18, 2026 05:05 Abandoned
@github-actions
github-actions Bot requested a deployment to staging November 18, 2026 05:15 Abandoned
@sonarqubecloud

Copy link
Copy Markdown

@simple-agent-manager
simple-agent-manager Bot merged commit 0669773 into main Nov 18, 2026
34 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