Repository navigation
feat(den): store Cloud instances in a provider-neutral table and tell clients how endpoints behave - #4446
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@OmarMcAdam Please review the database backfill, dual-write rollback, endpoint behavior, and deployment order. Live database migration replay and Cloud lifecycle journey proof are explicitly incomplete. Depends on #4445. Holding for your review under the current merge instructions. |
b4dde7f to
778acbd
Compare
e517096 to
958382e
Compare
778acbd to
a79ef27
Compare
1cc754d to
f582b3c
Compare
f582b3c to
aec102f
Compare
a79ef27 to
2e51daa
Compare
2e51daa to
e93e332
Compare
aec102f to
52987a8
Compare
645a7d0 to
7858c9e
Compare
211b671 to
9d7fa2e
Compare
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
7858c9e to
775b9d8
Compare
9d7fa2e to
3201210
Compare
3201210 to
4adcb6b
Compare
4adcb6b to
706176b
Compare
… clients how endpoints behave Add cloud_runtime_instance: provider id, opaque provider reference, storage volumes, endpoint URL, endpoint expiry, and endpoint kind per worker. The migration creates the table and backfills every daytona_sandbox row as a Daytona record with a signed-expiring endpoint, keeping each record id's suffix so the mapping stays traceable. Den reads the neutral table; Daytona records are mirrored into daytona_sandbox until every deployment has moved, so a rollback still sees the current instance and endpoint. The desktop handoff origin check, organization deletion, and worker deletion use the neutral table. Worker instance responses gain endpointKind. Den Web decides URL durability from it and falls back to the provider name only for Dens that predate the field. The sandbox bootstrap sets DEN_RUNTIME_MANAGED=1 next to the provider name, and the worker heartbeat accepts either, so a future host enables idle tracking without the worker knowing its name.
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (121433 ms), confidentiality-review (177139 ms), spec-provenance-review (241473 ms), desktop-den-sync-review (286451 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (847dbec246e133d0bb8b59009b64a694152823b8). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Merge status
Merged into
devon September 14 as1fdbccf9bba53e3d1911bba3bc5d9dea70034fb1, after #4445 landed asf2fb0c861140022d9c6d7ed928416b500e8e82f0. Warden approved the exact final head847dbec246e133d0bb8b59009b64a694152823b8with no findings; required, API, SDK and database checks passed. All review conversations were resolved. Full Cloud lifecycle/real-VM verification remains explicitly deferred, not passed.Summary
Part 3 of the Cloud runtime provider stack, following merged #4445.
cloud_runtime_instancefor provider identity, opaque references, storage, endpoint expiry and endpoint kind.WorkerInstance.endpointKind; Den Web decides URL durability from it and preserves the fallback for older Dens.DEN_RUNTIME_MANAGED, preserving legacy behavior.September 14 restack
Head:
847dbec246e133d0bb8b59009b64a694152823b8.Base:
dev@f2fb0c861140022d9c6d7ed928416b500e8e82f0.#4445 is now merged. This PR has been rebased onto that canonical merge and retargeted to
dev, retaining only its six neutral-storage/endpoint commits. Range comparison confirms their patches are unchanged.The general protected-0097 history repair is now parent-owned; duplicate child test patches were removed while preserving the original migration/backfill and neutral-store assertions. OpenAPI was regenerated from this child after restacking. Fresh current-head CI remains authoritative.
DEN_RUNTIME_MANAGED, neutral-row rollback assertions, current pagination/handoff/deletion behavior and generated endpoint semantics.WorkerInstance.endpointKindover the current upstream snapshot. No CI/review-policy changes. Commits are signed.Verification
Verdict: Passed for the database replay/backfill checks; Incomplete for the deferred full Cloud lifecycle/actual Web/VM run. The local integration environment remains unavailable; that limitation is not hidden by the merge.
Passed on this head:
Historical database proof:
faaff0182had 72/72 Den DB tests pass, including replay/backfill/rollback rows. That result is historical after this restack and migration renumbering. Fresh CI results must match the head above.Deferred:
Stack and merge order
All three layers are merged into canonical
dev. #4445 landed first; this PR was then rebased onto it, retargeted todev, independently approved and merged. Its six neutral-storage/endpoint patches survived restacking unchanged. The deferred full lifecycle run is not represented as passing.UI/UX impact
No new visual or interaction changes in this layer. Den Web uses endpoint behavior instead of provider names for URL durability while retaining current Daytona behavior, legacy fallback and refresh timing. The parent's restored desktop handoff availability is retained.
Risk and rollback
The migration is additive and leaves legacy rows intact. Keep
daytona_sandboxduring the rollback window. Legacy mirroring is sequential, not an atomic two-table transaction. Old Den can continue reading retained legacy rows; the neutral table may remain unused after rollback. The lifecycle proof gap remains explicit even if database CI passes.