Repository navigation
✨ feat(dependencies): dependency-ordered updates — waves, restart cascade, confirmation-gated group execution - #681
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe PR adds dependency graph APIs, dependency-chain previews, and bulk dependency-group updates. Dependency resolution uses indexed lookups, connected components, iterative cycle detection, and Compose bind-mount translation. Update dispatch follows dependency waves, supports restart actions, and records skipped dependents. Container responses include dependency counts. OpenAPI schemas, backend routes, UI services, confirmation flows, operation states, tests, and documentation cover the new behavior. Possibly related PRs
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 8
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
app/watchers/providers/docker/container-init.ts (1)
1068-1090: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winKeep compose bind-mount translation local to drydock’s daemon.
Remote Docker watchers use
watcher.dockerApi, butresolveComposeDependsOnstill uses it to inspect the self container and read drydock’s local bind mounts. SetcomposeOptions.dockerApionly for local/UNIX-socket watchers, or keep the remote config file path unchanged and let the resolve/ENOENT warning degrade safely.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@app/watchers/providers/docker/container-init.ts` around lines 1068 - 1090, Update the compose resolution flow in the surrounding container dependency resolver so watcher.dockerApi is passed as composeOptions.dockerApi only for local/UNIX-socket watchers. For remote Docker watchers, preserve the existing remote config path and omit the dockerApi override, allowing resolveComposeDependsOn to degrade safely on resolution or ENOENT failures.
🧹 Nitpick comments (8)
ui/src/services/container.ts (1)
338-363: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winThrow
ApiErrorfrom the two read paths, not plainError.
updateDependencyGroupthrowsApiErrorwithresponse.status.getContainerDependenciesandpreviewUpdateChainthrow plainError. Callers therefore cannot branch on status for the preview call.confirmDependencyGroupUpdateStatealready needs this: a preview that fails with 404 (container gone) reads identically to a 500.Use
ApiErrorin all three functions.♻️ Proposed change
async function getContainerDependencies(): Promise<DependencyGraph> { const response = await fetch('/api/v1/containers/dependencies', { credentials: 'include' }); if (!response.ok) { - throw new Error(`Failed to get container dependencies: ${response.statusText}`); + throw new ApiError( + `Failed to get container dependencies: ${response.statusText}`, + response.status, + ); } return readJsonResponse<DependencyGraph>(response, 'Container dependencies API'); } @@ if (!response.ok) { - throw new Error( + throw new ApiError( `Failed to preview update chain for container ${containerId}: ${response.statusText}`, + response.status, ); }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@ui/src/services/container.ts` around lines 338 - 363, Update getContainerDependencies and previewUpdateChain to throw ApiError instead of plain Error, passing each failed response’s status and existing contextual message. Also update updateDependencyGroup to use the same ApiError behavior if it is not already doing so, so all three request paths expose HTTP status consistently to callers such as confirmDependencyGroupUpdateState.app/api/container/handlers/list.ts (1)
273-283: 🚀 Performance & Scalability | 🔵 Trivial | 💤 Low valueSkip the fleet-wide graph build when the page is empty.
buildDependencyCountsrunsbuildDependencyGraphover every container on every list request. The UI polls this endpoint.buildDependencyGraphalso allocates anodesarray and two candidate indexes that this caller discards. For an empty page the work is pure waste.Guard the call on the page having rows.
♻️ Proposed guard
- const dependencyCounts = buildDependencyCounts(context); + const dependencyCounts = + strippedContainers.length > 0 + ? buildDependencyCounts(context) + : { dependencyCountById: new Map<string, number>(), dependentCountById: new Map<string, number>() };Consider a memoized per-request or per-watch-cycle edge cache if fleet size grows.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@app/api/container/handlers/list.ts` around lines 273 - 283, Update buildDependencyCounts to accept or inspect the current page rows and return empty dependencyCountById and dependentCountById maps without calling buildDependencyGraph when the page is empty. Preserve the existing graph-based counting behavior for non-empty pages, and ensure the list handler passes the page-row state into this guard.ui/src/views/containers/useContainerActions.ts (1)
536-541: 🩺 Stability & Availability | 🔵 Trivial | 💤 Low valueNo re-entrancy guard on the preview.
dependencyGroupPreviewLoadingis written but never read as a gate. Two rapid clicks fire twopreviewUpdateChainrequests and twoconfirm.requirecalls; the second overwrites the dialog state of the first.useConfirmDialog.requirereplacescurrent.valueunconditionally.Return early when a preview is already in flight.
♻️ Proposed guard
+ if (args.dependencyPreviewLoading.value) { + return; + } const { containerId, name } = resolveContainerActionTarget(args.target, args.containerIdMap);🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@ui/src/views/containers/useContainerActions.ts` around lines 536 - 541, Update the preview action around resolveContainerActionTarget to return immediately when dependencyGroupPreviewLoading is already true, before setting the loading state or invoking previewUpdateChain/confirm.require; otherwise preserve the existing target validation and loading flow.ui/src/composables/useOperationDisplayHold.ts (1)
662-676: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse the existing terminal-status list instead of a fifth literal comparison.
TERMINAL_CONTAINER_UPDATE_OPERATION_STATUSESinui/src/types/update-operation.tsnow holds exactly these five values:succeeded,rolled-back,failed,expired,skipped-dependency. This branch duplicates that list. The next status added to the array will silently miss this call site, and the "Updating" badge will never clear for it.Derive the check from the array.
♻️ Proposed refactor
+ // `expired` and `skipped-dependency` are terminal but non-notifying: the + // terminal-event consumers attach a failure reason only for `failed` / + // `rolled-back`, so they clear silently with no failure styling and no + // toast. See issue `#410` and `#219`. - if ( - terminalStatus === 'succeeded' || - terminalStatus === 'failed' || - terminalStatus === 'rolled-back' || - terminalStatus === 'expired' || - terminalStatus === 'skipped-dependency' - ) { + if ( + (TERMINAL_CONTAINER_UPDATE_OPERATION_STATUSES as readonly string[]).includes(terminalStatus) + ) {Add the import from
../types/update-operation.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@ui/src/composables/useOperationDisplayHold.ts` around lines 662 - 676, Update the terminal-status condition in the surrounding composable to derive membership from TERMINAL_CONTAINER_UPDATE_OPERATION_STATUSES instead of comparing five status literals individually. Add the import from ../types/update-operation, and preserve the existing behavior of releasing the hold for every status in that shared list.app/api/container-dependencies.ts (1)
52-66: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick winReturn the scoped graph from
resolveDependencyChainand drop the duplicate build.
resolveDependencyChainalready builds the scoped graph and runstopologicalSort, then discardsnodes,edges, andwaves.previewUpdateChainrebuilds both at Lines 87-88. That doubles graph construction and sorting per preview request over the whole fleet.♻️ Proposed refactor
function resolveDependencyChain(rootId: string): { chainContainers: Container[]; unresolved: ReturnType<typeof buildDependencyGraph>['unresolved']; cycles: string[][]; + waves: string[][]; } { const allContainers = storeContainer.getContainers(); const { edges } = buildDependencyGraph(allContainers); const componentIds = getConnectedComponentIds(rootId, edges); const chainContainers = allContainers.filter((container) => componentIds.has(container.id)); const scoped = buildDependencyGraph(chainContainers); - const { cycles } = topologicalSort(scoped.nodes, scoped.edges); + const { cycles, waves } = topologicalSort(scoped.nodes, scoped.edges); - return { chainContainers, unresolved: scoped.unresolved, cycles }; + return { chainContainers, unresolved: scoped.unresolved, cycles, waves }; }And in
previewUpdateChain:- const { chainContainers, unresolved, cycles } = resolveDependencyChain(id); + const { chainContainers, unresolved, cycles, waves } = resolveDependencyChain(id); const containerById = new Map<string, Container>( chainContainers.map((container) => [container.id, container]), ); - const { nodes, edges } = buildDependencyGraph(chainContainers); - const { waves } = topologicalSort(nodes, edges);🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@app/api/container-dependencies.ts` around lines 52 - 66, Update resolveDependencyChain to return the scoped dependency graph and topological-sort results it already computes, including nodes, edges, and waves as needed by callers. Modify previewUpdateChain to reuse those returned values instead of rebuilding the graph and sorting again, while preserving the existing chainContainers, unresolved, and cycles behavior.app/dependencies/compose-dependency-resolver.ts (1)
72-85: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winPermanently caching an inspect failure disables translation for the process lifetime.
A transient Docker socket error at the first resolution caches
[]forever for thatdockerApi. Every later compose dependency resolution then silently no-ops behind an ENOENT — the exact failure mode this change was written to remove. Drop the entry on rejection so the next call retries.♻️ Evict the cache entry when the inspect fails
- const bindMountsPromise = getSelfContainerBindMounts(dockerApi).catch(() => []); + const bindMountsPromise = getSelfContainerBindMounts(dockerApi).catch(() => { + // Retry on the next call instead of pinning an empty mapping for the + // life of the process after one transient socket error. + selfContainerBindMountsByDockerApi.delete(dockerApi); + return []; + }); selfContainerBindMountsByDockerApi.set(dockerApi, bindMountsPromise);🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@app/dependencies/compose-dependency-resolver.ts` around lines 72 - 85, Update loadSelfContainerBindMounts so a rejected getSelfContainerBindMounts promise removes the corresponding dockerApi entry from selfContainerBindMountsByDockerApi before returning the empty fallback, allowing subsequent calls to retry inspection while preserving successful-result caching.app/triggers/providers/dockercompose/Dockercompose.test.ts (1)
4244-4273: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winThis test does not exercise the service-name fallback.
Neither container declares
dependsOn, so there are no edges and the expected order['api','db']is just the input order. The test passes whether the nameless container resolves to'api', toundefined, or is dropped from the graph entirely — it duplicates the single-mapping guard at Line 4275 instead.Give
dba dependency on the nameless service so the edge only binds when the fallback supplies'api'as the node id.♻️ Make the fallback observable through edge resolution
const dbContainer = makeContainer({ name: 'db', labels: { 'com.docker.compose.service': 'db' }, + dependsOn: ['api'], + dependsOnSource: 'label', });- expect(callOrder).toEqual(['api', 'db']); + // db depends on the nameless mapping — it only sorts second if that + // mapping resolved to its compose service name 'api'. + expect(callOrder).toEqual(['api', 'db']);🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@app/triggers/providers/dockercompose/Dockercompose.test.ts` around lines 4244 - 4273, Update the test around runRuntimeUpdatesForComposeMappings to make db depend on the nameless api service in the compose configuration, so the expected execution order relies on resolving the missing container name to the service name api. Keep both mappings and the existing lifecycle spy, ensuring the test fails if the fallback is absent or the nameless node is omitted.app/updates/dependency-restart.ts (1)
64-72: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRecord failed dependency restarts with the same audit semantics as
/:id/restart.
executeActioncallshandleContainerActionError({ action, container, status: 'error', details })on restart failure.restartDependentContainercurrently records only success; catchdockerContainer.restart()/pre-restart failures here and recordcontainer-restartwithstatus: 'error'and detail text so the dependency path and API path use the same audit trail.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@app/updates/dependency-restart.ts` around lines 64 - 72, Update restartDependentContainer to catch dockerContainer.restart() and any pre-restart failures, calling handleContainerActionError with action, container, status: 'error', and the failure details so a container-restart audit event is recorded consistently with executeAction; preserve the existing success audit event and logging for successful restarts.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@app/updates/dependency-restart.ts`:
- Around line 42-44: Guard the result of trigger.getWatcher(container) before
accessing dockerApi in the restart flow. Handle an undefined watcher by
returning or throwing the established actionable error for a deregistered
watcher, and only call dockerContainer.restart() after a valid DockerWatcher is
confirmed.
In `@app/updates/request-update.test.ts`:
- Around line 964-1007: Update request-update’s dependency resolution so the
restart action is recognized only when the resolved graph contains incoming
dependency edges for the container; do not set actionKind for a restart-only
dd.depends_on configuration without dependsOn entries. Add or adjust the
no-dependsOn test case to assert this configuration is rejected or handled
through the intended non-restart path, rather than invoking
restartDependentContainer.
In `@app/updates/request-update.ts`:
- Around line 530-544: Update runNextWaveEntry so actionKind === 'restart'
dispatches restartDependentContainer only when the entry has no own pending
image update; otherwise route the entry through its normal update trigger.
Ensure operations with their own image update are not marked succeeded by the
restart-only path, while preserving terminal success handling for restart-only
dependents.
In `@content/docs/current/api/container.mdx`:
- Around line 366-373: The graph example’s edge endpoints must reference
container IDs that exist in its nodes. Update the JSON example near the
DependencyGraphEdge fields by either adding nodes with IDs “web” and “db” or
changing from and to to use the displayed node ID “c1”, while keeping the
example internally consistent.
- Around line 400-422: Update the dependency-group update curl example to
include the required X-DD-Confirm-Action: dependency-group-update header,
document the optional expectedContainerIds preview-binding parameter, and add
the 400, 401, 409, and 428 response cases alongside the existing status
documentation. Keep the accepted/rejected response example and current route
behavior descriptions intact.
In `@ui/src/locales/en/containerComponents.json`:
- Line 486: Update the locale entry containing “Update {name} and its dependency
chain” to use vue-i18n’s singular/plural `|` form for the counted container
noun, then update its callers to invoke the key with `$tc` and pass the `count`
value so the correct form is selected.
In `@ui/src/services/container.ts`:
- Line 353: Update previewUpdateChain, updateDependencyGroup, and nearby
container ID URL interpolations to wrap containerId, rootId, and other
path-segment identifiers with encodeURIComponent before inserting them into
fetch URLs, matching the existing service pattern while preserving the current
endpoints and query parameters.
In `@ui/src/views/containers/useContainerActions.ts`:
- Around line 486-493: Update the dependency-group action around
apiUpdateDependencyGroup to inspect its resolved rejected array before showing
the success toast. Preserve the existing success path when rejected is empty,
and add a partial-failure path that surfaces each rejected container’s
statusCode and message using new localization keys in containerComponents.json.
---
Outside diff comments:
In `@app/watchers/providers/docker/container-init.ts`:
- Around line 1068-1090: Update the compose resolution flow in the surrounding
container dependency resolver so watcher.dockerApi is passed as
composeOptions.dockerApi only for local/UNIX-socket watchers. For remote Docker
watchers, preserve the existing remote config path and omit the dockerApi
override, allowing resolveComposeDependsOn to degrade safely on resolution or
ENOENT failures.
---
Nitpick comments:
In `@app/api/container-dependencies.ts`:
- Around line 52-66: Update resolveDependencyChain to return the scoped
dependency graph and topological-sort results it already computes, including
nodes, edges, and waves as needed by callers. Modify previewUpdateChain to reuse
those returned values instead of rebuilding the graph and sorting again, while
preserving the existing chainContainers, unresolved, and cycles behavior.
In `@app/api/container/handlers/list.ts`:
- Around line 273-283: Update buildDependencyCounts to accept or inspect the
current page rows and return empty dependencyCountById and dependentCountById
maps without calling buildDependencyGraph when the page is empty. Preserve the
existing graph-based counting behavior for non-empty pages, and ensure the list
handler passes the page-row state into this guard.
In `@app/dependencies/compose-dependency-resolver.ts`:
- Around line 72-85: Update loadSelfContainerBindMounts so a rejected
getSelfContainerBindMounts promise removes the corresponding dockerApi entry
from selfContainerBindMountsByDockerApi before returning the empty fallback,
allowing subsequent calls to retry inspection while preserving successful-result
caching.
In `@app/triggers/providers/dockercompose/Dockercompose.test.ts`:
- Around line 4244-4273: Update the test around
runRuntimeUpdatesForComposeMappings to make db depend on the nameless api
service in the compose configuration, so the expected execution order relies on
resolving the missing container name to the service name api. Keep both mappings
and the existing lifecycle spy, ensuring the test fails if the fallback is
absent or the nameless node is omitted.
In `@app/updates/dependency-restart.ts`:
- Around line 64-72: Update restartDependentContainer to catch
dockerContainer.restart() and any pre-restart failures, calling
handleContainerActionError with action, container, status: 'error', and the
failure details so a container-restart audit event is recorded consistently with
executeAction; preserve the existing success audit event and logging for
successful restarts.
In `@ui/src/composables/useOperationDisplayHold.ts`:
- Around line 662-676: Update the terminal-status condition in the surrounding
composable to derive membership from
TERMINAL_CONTAINER_UPDATE_OPERATION_STATUSES instead of comparing five status
literals individually. Add the import from ../types/update-operation, and
preserve the existing behavior of releasing the hold for every status in that
shared list.
In `@ui/src/services/container.ts`:
- Around line 338-363: Update getContainerDependencies and previewUpdateChain to
throw ApiError instead of plain Error, passing each failed response’s status and
existing contextual message. Also update updateDependencyGroup to use the same
ApiError behavior if it is not already doing so, so all three request paths
expose HTTP status consistently to callers such as
confirmDependencyGroupUpdateState.
In `@ui/src/views/containers/useContainerActions.ts`:
- Around line 536-541: Update the preview action around
resolveContainerActionTarget to return immediately when
dependencyGroupPreviewLoading is already true, before setting the loading state
or invoking previewUpdateChain/confirm.require; otherwise preserve the existing
target validation and loading flow.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 1219f602-d1e6-4d67-a7df-9bbc9c939ecc
⛔ Files ignored due to path filters (1)
CHANGELOG.mdis excluded by!CHANGELOG.md
📒 Files selected for processing (47)
app/api/api.tsapp/api/container-dependencies.test.tsapp/api/container-dependencies.tsapp/api/container/handlers/list.test.tsapp/api/container/handlers/list.tsapp/api/dependency-groups.test.tsapp/api/dependency-groups.tsapp/api/index.test.tsapp/api/openapi.test.tsapp/api/openapi/paths/containers.tsapp/api/openapi/paths/dependency-groups.tsapp/api/openapi/paths/index.tsapp/api/openapi/schemas.tsapp/dependencies/compose-dependency-resolver.test.tsapp/dependencies/compose-dependency-resolver.tsapp/dependencies/dependency-graph.test.tsapp/dependencies/dependency-graph.tsapp/model/container-update-operation.test.tsapp/model/container-update-operation.tsapp/model/container.tsapp/store/update-operation.lifecycle-events.test.tsapp/store/update-operation.test.tsapp/store/update-operation.tsapp/triggers/providers/Trigger.test.tsapp/triggers/providers/Trigger.tsapp/triggers/providers/dockercompose/Dockercompose.test.tsapp/triggers/providers/dockercompose/Dockercompose.tsapp/updates/dependency-restart.test.tsapp/updates/dependency-restart.tsapp/updates/request-update.test.tsapp/updates/request-update.tsapp/watchers/providers/docker/container-init.tsapp/watchers/providers/docker/depends-on-resolution.test.tsapp/watchers/providers/docker/docker-image-details-orchestration.tscontent/docs/current/api/container.mdxcontent/docs/current/configuration/watchers/index.mdxui/src/composables/useOperationDisplayHold.tsui/src/locales/en/containerComponents.jsonui/src/services/container.tsui/src/stores/operations.tsui/src/types/container.d.tsui/src/types/update-operation.tsui/src/utils/container-mapper.tsui/src/views/containers/useContainerActions.tsui/tests/services/container.spec.tsui/tests/utils/container-mapper.spec.tsui/tests/views/containers/useContainerActions.spec.ts
Adds a new closed-set terminal status/phase for update operations that never ran because an upstream dependency in their chain failed, was rejected, or expired. Threaded through the model's discriminated union, the store's operation lifecycle, OpenAPI schema, and the UI's status rank/terminal-hold logic so it renders and settles like any other terminal outcome.
buildDependentsByDependency() builds a reverse adjacency map from graph edges, and collectTransitiveDependents() BFS-walks it to find every node downstream of a given dependency. Foundation for cascading maintenance-window deferral and dependency-chain skip attribution.
) restartDependentContainer() restarts a container in place via its docker trigger, for dd.depends_on.action=restart entries whose upstream dependency updated but that don't need a new image themselves. Records a container-restart audit event and best-effort refreshes stored container status from the post-restart inspect result; a failed status refresh doesn't fail the restart itself.
…219) runAcceptedContainerUpdates() now partitions the accepted[] set into topologically-ordered waves via buildDependencyGraph/topologicalSort before dispatch, instead of firing every accepted update through the worker pool at once. Each wave is dispatched with the same worker-pool concurrency logic as before (a no-op for graphs with no dependency edges), and a wave only advances once every entry in the prior wave has settled to a terminal status. Entries whose upstream dependency in the same batch fails, is rejected, or expires are marked skipped-dependency rather than dispatched, with first-blocker-wins attribution when more than one upstream failure could explain the skip. Entries with actionKind 'restart' are routed to restartDependentContainer() instead of the normal trigger, for dd.depends_on.action=restart dependents that don't carry their own image update.
… order (#219) sortMappingsByDependencyOrder() reorders a compose file's service mappings so runRuntimeUpdatesForComposeMappings dispatches dependencies before dependents, using buildDependencyGraph over synthetic per-index node ids since compose service names aren't unique once a service is scaled (docker compose up --scale). Falls back to the existing mapping order for a single mapping or when there's no dependency edge to reorder around.
…219) runAcceptedUpdateBatch() now propagates a maintenance-window deferral to every transitive dependent of the deferred container (via buildDependentsByDependency/collectTransitiveDependents), not just the container whose own window is closed. Otherwise a dependent could update ahead of a dependency that got pushed to next window, defeating the ordering guarantee.
getConnectedComponentIds() BFS-walks an undirected view of the graph edges to find every node weakly connected to a root — both its dependencies and its dependents, transitively. Foundation for PR4's update-chain-preview and dependency-group bulk update endpoints, which both need "everything reachable from this root" as a subgraph to hand to buildDependencyGraph/topologicalSort, so a preview can never drift from what the real dispatcher computes for the same set.
…ble gate (#219) dd.depends_on.action=restart entries never carry their own image update by design, so requestContainerUpdates() previously had no way to admit them — the wave dispatcher could route a restart-kind entry to restartDependentContainer() only if it somehow got past admission first. Widen prepareContainerUpdateRequest()'s updateAvailable gate with a dependsOnAction === 'restart' exemption so these entries pass through the same dedup/mode/hard-blocker gates as any manual request, get a real operation record, and are picked up correctly at dispatch time (#219 PR3). Enables PR4's dependency-group bulk update endpoint to reuse requestContainerUpdates() as-is instead of a bespoke admission bypass.
… payload (#219) Cheap per-container badge counts for the flat list view (design §4) — the full graph detail (nodes/edges/cycles/unresolved) stays behind the dedicated GET /containers/dependencies endpoint. Computed once per list request over the whole fleet via getContainersRawFromStore (not the paginated getContainersFromStore, so this extra lookup can never shift that call's existing sequence) since a dependent may live outside the current page or filter.
…219) GET /containers/dependencies — thin serializer over buildDependencyGraph/topologicalSort returning the full resolved graph (nodes, edges, cycles, unresolved targets, cross-host edges ignored). POST /containers/:id/update-chain-preview — dry-run wave preview, scoped to the weakly-connected dependency component containing the target container (getConnectedComponentIds), using the exact same buildDependencyGraph/topologicalSort pair PR3's real dispatcher partitions with, so the preview can never drift from what actually runs. Mounted before the container router (/:id would shadow /dependencies), matching the existing groups/backups anti-shadow convention.
POST /dependency-groups/:rootId/update — updates every container in
the weakly-connected dependency component rooted at :rootId. Mirrors
the existing POST /containers/update {accepted, rejected} response
shape (container-actions.ts), annotated per accepted entry with the
wave it will actually dispatch in (computed via the same
buildDependencyGraph/topologicalSort pair the wave dispatcher uses) and
its actionKind. Admission goes through the ordinary
requestContainerUpdates() gates — restart-kind dependents are admitted
by the dependsOnAction exemption added to request-update.ts, not by a
bespoke bypass in this handler.
…#219) Mounts container-dependencies.ts at /containers, before the container router (/:id would shadow /dependencies) — same anti-shadow convention as the existing groups/backups routers. Mounts dependency-groups.ts at its own /dependency-groups prefix, sibling to /stats. Fixes api/index.test.ts's shared express.Router() mock, which stubbed only get/use — the real container-dependencies router (now exercised unmocked via mockActualApiRouterStatsLifecycle) also needs post.
…endpoints (#219) Adds schemas (DependencyGraphResponse, UpdateChainPreviewResponse, DependencyGroupBulkUpdateResponse and their nested shapes) and path definitions for GET /containers/dependencies, POST /containers/{id}/update-chain-preview, and POST /dependency-groups/{rootId}/update, plus dependencyCount/dependentCount on ContainerResource.
New DependencyGraph/DependencyGraphNode/DependencyGraphEdge and UpdateChainPreview/UpdateChainPreviewWave interfaces mirroring the backend OpenAPI schemas exactly, plus dependencyCount/dependentCount on Container.
getContainerDependencies, previewUpdateChain, and updateDependencyGroup mirror the existing getContainerGroups fetch-wrapper pattern for the three new backend endpoints (GET /containers/dependencies, POST .../update-chain- preview, POST /dependency-groups/:rootId/update).
New asNonNegativeInteger helper (like asPositiveInteger but accepts 0, since a dependency/dependent count of zero is a legitimate value rather than an absent field).
confirmDependencyGroupUpdate previews the resolved update waves for a container's dependency chain (previewUpdateChain) and opens a confirm dialog listing them, including cycle/unresolved-target warnings, before bulk-accepting the chain via the new dependency-groups endpoint (updateDependencyGroup). Calling the same preview function the backend's own dispatch uses is what keeps the dialog's wave list from ever drifting out of sync with what actually runs. New containerComponents.confirmDialogs.dependencyGroup locale keys (en).
CHANGELOG entries for the execution integration, API exposure, and UI phases (data model/detection and pure graph engine were already documented). New REST reference sections for GET /containers/dependencies, POST /containers/:id/update-chain-preview, and POST /dependency-groups/:rootId/update. A new callout on the watchers labels page explains how dd.depends_on/dd.depends_on.action change dispatch order now that they're actually wired up.
…mounts com.docker.compose.project.config_files/.working_dir hold the HOST's view of the compose file path. When drydock runs containerized, that path ENOENTs inside drydock's own filesystem unless bind-mounted in, so depends_on auto-detection silently no-oped with the failure swallowed into warnings[]. - reuse getSelfContainerBindMounts/mapComposePathToContainerBindMount (ComposePathBindMounts.ts) the same way Dockercompose.ts does, translating each compose label path before reading; self bind mounts are cached per dockerApi instance since they never change for the process lifetime - thread watcher.dockerApi through resolveContainerDependsOn so compose-dependency-resolver.ts can perform the translation - add a loud, explicit summary warning naming every path tried when every configured compose file is unreadable, instead of only per-file warnings that are easy to miss
…ve Tarjan Recursive strongConnect blows the call stack on a single long dependsOn chain/cycle around 5-10k nodes; a fleet has no such size bound. Rewrites stronglyConnectedComponents to use an explicit work-stack (one TarjanFrame per would-be recursive call) so traversal order, and therefore the resulting SCC partition and component order, match the recursive version exactly for the same input. - Adds a 6000-node single-cycle stress test guarding against the RangeError a recursive implementation would throw. - Adds a coverage case for the neighbor-lookup fallback at child-frame push time (distinct from the already-covered root-frame fallback), reached when a per-round adjacency rebuild drops a node's only edge after its target's component resolves in an earlier round.
…ensation pass topologicalSort's cycle-resolution loop recomputed strongly-connected components from scratch every round, rebuilding the adjacency map over the full set of still-unprocessed nodes each time and only retiring one wave's worth of components per round — O(N²) on a fleet with several chained/dependent cycles. Replaces it with a single upfront SCC computation over the whole remaining subgraph plus one forward pass over the SCCs to assign each a wave/layer number (one past the highest layer among the distinct other components it depends on). Tarjan's output is already a valid topological order of the SCC condensation, so a component's dependencies are always resolved before it, making the forward pass correct in one O(V+E) sweep instead of repeated O(N) rebuilds. Also pre-seeds the adjacency map (mirroring the existing inDegree pre-seeding) so stronglyConnectedComponents' neighbor lookups are always defined by construction, removing its now-provably-unreachable `?? []` fallback branches in favor of asserted lookups. Output contract (wave contents, wave order, cycle contents, cycle order) is unchanged — the full pre-existing dependency-graph.test.ts suite passes unmodified. Adds one test for the previously round-shrinking-only case of an edge from a still-cyclic node into a node already resolved by the clean Kahn prefix.
findLabelCandidates and findComposeCandidates each did a full scan of `containers` per dependsOn entry (O(N²·D) overall for a fleet with N containers averaging D dependsOn entries). Replaces both with a single shared indexBy helper, called once per buildDependencyGraph invocation to build a watcher/name index and a compose project/service index, so each candidate lookup is an O(1) map read followed by a small self-filter instead of a full-container-list scan. Candidate ordering is unaffected — buildDependencyGraph's existing deterministic sort-by-id still runs on whatever array these return.
…last-radius binding
POST /dependency-groups/:rootId/update could update/restart an
arbitrary number of containers in one call with no confirmation step
and no binding to whatever chain the UI last showed the user — a
container added to the dependency chain between preview and confirm
would get silently swept in.
- Applies requireDestructiveActionConfirmation('dependency-group-update')
at the route, matching the container-delete pattern.
- Accepts an optional expectedContainerIds array in the request body.
When present, the live chain (resolveDependencyChain(rootId)) must
match it exactly (order-insensitive) or the request is rejected with
409 and the actual current chain in details.currentContainerIds,
instead of running against a chain the caller never saw. Omitting
the field preserves the prior unbound behavior.
- Updates the OpenAPI spec: confirmation header param, optional
requestBody, and 400/409/428 responses.
…tart-only members Pairs with the backend blast-radius binding (#2): the confirm dialog's preview and the eventual dispatch could previously diverge silently — the UI fetched a wave preview, showed it, then fired a bare updateDependencyGroup(rootId) with no link back to what was actually shown. - confirmDependencyGroupUpdateState now collects every previewed container id (across all waves) and forwards it as expectedContainerIds on accept, so the backend's 409 divergence check has something to compare against. - runDependencyGroupUpdateState forwards expectedContainerIds through services/container.ts's updateDependencyGroup (now also sending the X-DD-Confirm-Action: dependency-group-update header the backend requires) and, on a 409 ApiError, toasts a distinct "chain has changed" message instead of the generic failure toast — no silent auto-retry against a set the user never saw. - The wave list in the confirm dialog message now suffixes each restart-kind member with " (restart)" so restart-only dependents are visually distinguished from update targets before the user confirms. - New i18n keys: dependencyGroup.staleChainTitle/staleChainDetail (en only; other locales fill in via Crowdin).
…g, and graph engine perf work Adds Unreleased entries for the security/correctness fixes landing on top of #219's dependency ordering: destructive-confirmation + blast-radius binding on the dependency-group bulk update endpoint (Security), compose bind-mount path translation and the confirm dialog's preview-to-execution binding (Fixed), and the dependency graph engine's iterative Tarjan rewrite, single-pass cycle resolution, and indexed candidate lookup (Changed).
…nd no own update dependsOnAction=restart was routed to the restart primitive purely off the container's own label, regardless of whether it actually resolved a dependsOn edge in this batch's graph, or whether it carried a pending image update of its own. Either case silently skipped a real update and reported success (CodeRabbit PR #681 review #2/#3). - add resolveDependencyActionKind/collectContainerIdsWithResolvedDependsOn to dependency-graph.ts as the single source of truth: restart-only now requires a resolved outgoing dependsOn edge AND no updateAvailable - wire the shared helper into the real dispatcher (request-update.ts:runAcceptedContainerUpdates) and both surfaces that must never drift from it (container-dependencies.ts preview, dependency-groups.ts wave annotation) - fix two request-update.test.ts cases that unintentionally exercised the buggy paths (no dependsOn edge; default updateAvailable:true), add regression tests for both fixed scenarios plus direct unit coverage for the new pure helpers
… header - "Get the dependency graph" example's edge endpoints (web/db) referenced names, not the only node id shown (c1) — DependencyGraphEdge.from/to are container ids. Add the second node and use consistent c1/c2 ids matching the update-chain-preview example right below it (CodeRabbit PR #681 review #4) - "Bulk update a dependency chain" never mentioned its required X-DD-Confirm-Action: dependency-group-update header (returns 428 without it), the optional expectedContainerIds blast-radius binding, or the 400/ 409/428 responses it can return. Document it the same way the sibling rollback/delete destructive routes already are, and add it to the destructive-confirmation table in api/index.mdx (review #5)
previewUpdateChain/updateDependencyGroup interpolated containerId/rootId directly into the fetch URL path, unlike the operationId path segment elsewhere in this file — a value containing "/" or other reserved URL characters could produce an invalid or unintended request path. Wrap both in encodeURIComponent (CodeRabbit PR #681 review #7).
…tions - dependencyGroup.message hardcoded "container(s)" instead of using vue-i18n's existing `|` plural form (the count named param already selects the plural rule automatically, same as listContent.filteredContainers and releaseNotesLink.olderReleasesNotShown) (CodeRabbit PR #681 review #6) - runDependencyGroupUpdateState discarded apiUpdateDependencyGroup's {accepted, rejected} result and always toasted success once the HTTP call resolved, so a chain member rejected by the backend (e.g. its own update already queued) was silently reported as a full success. Mirror updateAllInGroupState's existing per-rejection toast.error/stale-filter handling for the same response shape, and only toast success when at least one entry was accepted (review #8)
0fc2bf0 to
4d8fb54
Compare
|
@coderabbitai review |
|
Wholesale-tree sync ahead of the v1.6.0-rc.13 cut (same pattern as #667). The single commit carries the exact tree of `dev/v1.6` at b98808e onto `main` — after merge, `git diff --quiet origin/main origin/dev/v1.6` holds. Content on dev since rc.12: - #669/#670 — release-cut digest re-anchoring - #672 — self-hosted Star History chart - #673 — NAS acceptance follow-ups - #681 — v1.7 dependency ordering (forward-ported) - #682 — CVE base-image bumps + digest-pinned Node base guard test - #683 — icon-bundle alias resolution (fixes blank Audit/registry icons shipped in rc.12) - #684 — rc.13 identity roll-forward (17 files, CHANGELOG, README) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added repository-aware Docker digest selection and multi-anchor comparison. - ✨ Added self-hosted, theme-aware Star History SVG API with pagination, caching, deadlines, and fallback rendering. - ✨ Added icon alias resolution and bundle coverage tests. - ✨ Added required icon bundle entries and updated icon mappings. - 🔧 Updated Node and Trivy image digests. - 🔒 Pinned `nanoid` to `3.3.18` across workspaces. - 🔒 Added a digest-pinned Node 24 Alpine base-image guard test. - 🔧 Updated `js-yaml` override to `3.15.1`. - 🔧 Updated release documentation, examples, mocks, badges, and tests to `1.6.0-rc.13`. - 🔧 Removed the external Star History CSP allowlist and embed. ## Concerns - Verify the Star History route stays within GitHub API rate limits under concurrent requests. - Verify cache headers do not serve incomplete or repository-specific fallback responses incorrectly. - Verify Docker digest re-anchoring preserves legacy behavior for stored containers without `repoDigests`. - Verify icon aliases with rotation or flipping have acceptable fallback behavior. - Run the Docker, Star History, icon-bundle, release-identity, and workspace dependency tests. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
* 🔒 security(deps): pin nanoid to 3.3.18 across all workspaces (#673) ## Summary A new advisory pair against transitive `nanoid` started failing the qlty security gate on every push: - **CVE-2026-67213 / GHSA-2v37-7h3g-55p8** — [email protected] (root, app, apps/demo, apps/web, ui lockfiles) - **CVE-2026-67214 / GHSA-28wg-ghj8-5hjv** — [email protected] (e2e lockfile) Pins `[email protected]` (satisfies both fixed ranges) via the existing `overrides` security-pin pattern in all six workspace `package.json` files, following the js-yaml precedent in e2e. Lockfiles regenerated with `--package-lock-only --ignore-scripts`. ## Testing - `qlty check --no-progress --all` → zero nanoid findings - `npm run build` clean in app/ and ui/ - Full lefthook pre-push gate passed (coverage, e2e, playwright, zizmor) - No code changes — transitive dependency pin only <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🔒 Security: Pinned transitive `nanoid` dependencies to `3.3.18` in all six workspace `package.json` files. - 🔧 Changed: Regenerated corresponding lockfiles with `--package-lock-only --ignore-scripts`. - 🔒 Security: Addressed vulnerable transitive versions `3.3.16` and `3.3.12` from `postcss` and `artillery`. - 🔧 Changed: Added no application code changes. ## Validation - `qlty` security check passed. - `app/` and `ui/` builds passed. - Lefthook pre-push gate passed. ## Concerns - Verify that all lockfiles resolve `nanoid` to `3.3.18`. - Verify that future dependency updates preserve the six workspace overrides. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * 🗑️ remove(triggers): drop DD_TRIGGER_* legacy aliases (Phase 4 removal) (#674) ## Summary Trigger taxonomy rename Phase 4 (roadmap 6.0): the `DD_TRIGGER_*` / `dd.trigger.*` aliases deprecated in v1.5.0 are removed in v1.7.0. - **`DD_TRIGGER_*` env vars now fail startup** with an error listing each detected variable and its exact `DD_ACTION_*` / `DD_NOTIFICATION_*` replacement, plus a pointer to the config migration CLI and the deprecations docs. - **`dd.trigger.include` / `dd.trigger.exclude` labels no longer resolve** to any trigger category. They're still detected and counted (`recordLegacyInput`) so fleets can find stragglers, but they have no effect. - **`usesLegacyPrefix` removed** from trigger metadata (and the OpenAPI schema). - `/api/triggers` needed no change — research confirmed no legacy alias route ever existed; `/api/v1/triggers` is canonical and unrelated. - Kept: `migrate-config` CLI (it's the migration path the error points to), store-row repair for pre-1.6 records, and the shared deprecation-banner infrastructure (its env bucket simply can't increment anymore). - Docs: DEPRECATIONS.md updated to removed-in-v1.7.0, 7 current-docs pages scrubbed of 'legacy prefix still accepted' language; historical snapshots untouched. **BREAKING CHANGE**: deployments still using `DD_TRIGGER_*` will not start until renamed. This is the scheduled v1.7.0 removal from DEPRECATIONS.md. Also fixed en route: `resolveTriggerLabelDirection()` used a truthiness short-circuit that would double-fire legacy-label telemetry once all-undefined resolutions became legitimate; switched to `Object.hasOwn()` presence checks. ## Testing - app/: 12,560 tests, 100% coverage; lint + build clean - Full lefthook pre-push gate passed (coverage, e2e, playwright, zizmor) Refs #153 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ⚠️ **Breaking:** Reject defined `DD_TRIGGER_*` variables at startup and report exact `DD_ACTION_*` or `DD_NOTIFICATION_*` replacements. - 🗑️ **Removed:** Stop using `dd.trigger.include` and `dd.trigger.exclude` for routing. - 🔧 **Changed:** Detect deprecated labels for warnings and telemetry only. - 🗑️ **Removed:** Remove `usesLegacyPrefix` trigger metadata and OpenAPI fields. - 🐛 **Fixed:** Use property-presence checks for legacy-label telemetry resolution. - 🔧 **Changed:** Update configuration tests, OpenAPI descriptions, documentation, deprecation guidance, and changelog. - 🔧 **Changed:** Retain `migrate-config`, pre-v1.6 store-row repair, and deprecation-banner infrastructure. - 🔧 **Validated:** 12,560 application tests pass with 100% coverage. Lint, build, and lefthook pre-push checks pass. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * 🐛 fix(model): unified trust-aware update-age clock + GHCR pagination + lifecycle-cache persistence (#556) (#678) ## Summary The #556 audit bundle, per the approved design (re-verified against HEAD first — two of the four originally-reported divergences were already fixed by the v1.6 display-honesty work). **GHCR pagination** — `fetchVersionsPagedForOwner` page-guessed with a hardcoded 10-page/1,000-version cap. Now walks RFC 5988 `Link: rel="next"` headers with a configurable ceiling (`DD_GHCR_VERSIONS_MAX_PAGES`, default 500) and a warn log distinguishing 'truncated' from 'confirmed absent'. Return contract unchanged. **Unified update-age clock** — the eligibility gate's `resolveMaturityClock` was already trust-aware; the display/API paths weren't. New `getUpdateAgeMs()` wrapper migrates the three remaining divergent call sites (`getRawUpdateAge`, `api/container/update-age.ts`, and the UI's `container-mapper.ts` / `useContainerPolicy.ts` fallbacks, plus the tooltip formatter). **Behavior change:** an untrusted `publishedAt` is no longer blended into displayed/sorted/bucketed update age — only `firstSeenAt` / `updateDetectedAt` or a trusted `publishedAt`. Ages can shrink for registries without trustworthy publish timestamps; that's the honest value. Three pre-existing tests encoding the buggy blend were rewritten to assert the trust-aware behavior. No OpenAPI schema change (computed fields, `additionalProperties: true`). **Lifecycle-cache persistence** — `updateLifecycleCache` was a bare in-memory Map invisible to the SIGTERM `store.save()` flush, so drydock-self recreation re-stamped `updateDetectedAt` and reset maturity clocks. New `app/store/update-lifecycle-cache.ts` (modeled on the `name-bindings.ts` precedent) write-throughs stash/consume/evict and rehydrates non-expired records at startup. Known follow-up (flagged, not silently skipped): `updatePolicyRetentionCache` has the same bare-Map vulnerability — separate v1.7 item. ## Testing - app/: 12,607 tests across 398 files, 100% coverage; ui/: full suite green at 100% - tsc, biome, build clean; full lefthook pre-push gate passed Fixes #556 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added RFC 5988 `Link: rel="next"` pagination for GHCR versions. - ✨ Added `DD_GHCR_VERSIONS_MAX_PAGES`, defaulting to 500. - ✨ Added trust-aware update-age resolution across backend, UI, badges, tooltips, sorting, and policy checks. - ✨ Added persistent LokiJS storage for `updateLifecycleCache`. - ✨ Added startup rehydration for non-expired lifecycle records. - 🔧 Updated tests and API documentation. - 🐛 Fixed GHCR truncation at 10 pages or 1,000 versions. - 🐛 Fixed untrusted `publishedAt` values affecting update age and maturity. - 🐛 Fixed lifecycle timestamps being lost across process restarts. ## Concerns - Investigate equivalent persistence for `updatePolicyRetentionCache`. - Review consumers of the changed `formatUpdateAge` signature. - Verify GHCR warning and truncation behavior when `rel="next"` remains present at the configured page limit. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * ✨ feat(ui): installable PWA support (#675) ## Summary Roadmap Phase 6.9 — Drydock installs as a native-feeling app on mobile and desktop. - **`[email protected]`** (exact pin), `generateSW` strategy with `registerType: 'autoUpdate'` — skipWaiting/clientsClaim are forced by that mode, so a new deploy can never strand users on a stale shell. - **`/api/**` is excluded from the service worker two ways**: `navigateFallbackDenylist` for navigations and an explicit `NetworkOnly` runtimeCaching rule for fetches — a live dashboard never serves stale API data (verified in the built `dist/sw.js`). - **Manifest** is plugin-generated (keeps the `site.webmanifest` filename), replacing the stale hand-maintained one that mislabeled non-padded icons as maskable. Theme/background use the real One Dark `--dd-bg` (`#282c34`) instead of hardcoded black. - **Maskable 192/512 icons** generated from the actual whale logo with safe-zone padding. - **Install banner**: `useInstallPrompt` composable (captures/replays `beforeinstallprompt`) + `InstallBanner.vue` on the existing `AnnouncementBanner` rail, dismissal persisted under a versioned localStorage key. `AnnouncementBanner` gained an `info` tone and an action-callback affordance (install is a JS call, not a link). - **Backend**: `sw.js` served with `Cache-Control: no-cache` so browsers always revalidate the worker script. - Docs section under UI configuration; CHANGELOG entry. ## Testing - ui/: 4,322 tests across 215 files, 100% coverage; lint + typecheck + build clean (sw/manifest/registerSW all emit and inject correctly) - app/: 12,566 tests, 100% coverage - Full lefthook pre-push gate passed <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added installable PWA support with generated manifest, whale-logo icons, One Dark theme colors, and automatic service-worker updates. - ✨ Added deferred `beforeinstallprompt` handling through `useInstallPrompt`. - ✨ Added a dismissible install banner with persisted dismissal state. - ✨ Added iOS install metadata and installation documentation. - ✨ Added `info` announcement tone and optional action buttons. - 🔧 Changed `sw.js` responses to use `Cache-Control: no-cache`. - 🔧 Changed service-worker caching to precache the SPA shell and exclude `/api/**` from navigation fallback and runtime caching. - 🗑️ Removed the static `ui/public/site.webmanifest`. - ✨ Added tests for service-worker headers, install prompts, install-banner behavior, and announcement actions. ## Concerns - Verify that the generated manifest and icons are emitted correctly in production builds. - Verify install-banner behavior across Chromium desktop, Android, and iOS/iPadOS. - Verify `/api/**` requests remain network-only when offline. - Confirm the 5 MiB precache limit covers all production assets. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * ✨ feat(ui): clickable port links, keyboard shortcuts, live uptime (#676) ## Summary Three v1.7 roadmap quick wins (6.2, 6.7, 6.8) closing visible UI gaps against Dockhand/Portainer/Arcane. **Clickable port links (6.2)** - Host-published ports render as new-tab links (`rel="noopener noreferrer"`) in the container table (opt-in column), card views, and all three detail surfaces; internal-only ports stay plain text. - Protocol auto-detect (443/8443 → https), new pure `ui/src/utils/ports.ts` for parse/scheme/link/label logic. - New `dd.port.label` container label for custom display names, threaded through the label-override pipeline into a new `Container.portLabel` field (follows the `linkTemplate`/`displayName` precedent). Documented in the watcher label table. - `useAgentHosts()` composable so agent-watched containers link against the right host. **Keyboard shortcuts (6.7)** - `/` focuses search from anywhere, `Escape` closes it, `?` opens a shortcut reference overlay (styled after `ConfirmDialog`). `useKeyboardShortcuts()` + `useShortcutsOverlay()` composables; `/` hint alongside the existing `⌘K` hint. **Container uptime (6.8)** - `details.startedAt` was already in the payload; the list-view uptime cell gains an exact-timestamp tooltip and the card footer a live "Up …" indicator, both timer-refreshed, matching the detail-page display. Also documented the previously-undocumented `details.startedAt` field. ## Testing - app/: 12,567 tests, 100% coverage; ui/: 4,421 tests across 219 files, 100% coverage; lint + build clean in both - Full lefthook pre-push gate passed <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added clickable published-port links with HTTP/HTTPS detection, IPv4/IPv6 support, agent-host resolution, and `dd.port.label` overrides. - ✨ Added live container uptime indicators and exact start-time tooltips for list and card views. - ✨ Added `/`, `Escape`, and `?` keyboard shortcuts with a localized shortcut reference overlay. - ✨ Added an optional `ports` container-table column with responsive visibility and overflow handling. - ✨ Added Docker label parsing, port enrichment utilities, watcher documentation, and comprehensive tests. - 🔧 Extended container models and API mapping with `agent` and `portLabel`. - 🔧 Added shared, deduplicated agent-host loading and fallback resolution through `useAgentHosts`. - 🔧 Updated search hints and localization strings. ## Concerns - Confirm all Docker paths use the canonical `dd.port.label` key. The summary also reports `dd.portlabel`. - Confirm agent-host mappings refresh when the agent list changes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * ✨ feat(dependencies): dependency data model + topological graph engine (6.1 phases 1–2) (#677) ## Summary First two phases of v1.7's flagship dependency-aware update ordering (roadmap 6.1, discussion #219), per the approved design. Execution integration, API, and UI land as follow-up PRs. **Phase 1 — data model + detection** - New `dd.depends_on` / `dd.depends_on.action` container labels; `Container` gains `dependsOn` / `dependsOnSource` / `dependsOnAction` (Joi-validated), re-derived every watch cycle so edges self-heal across recreation — no persisted graph. - Compose auto-detection: new `app/dependencies/compose-dependency-resolver.ts` reads `depends_on` via `ComposeFileParser` directly (keyed off the `com.docker.compose.*` labels), no coupling to the write-path trigger machinery. - Label overrides compose entirely (no merge); self-refs and invalid actions dropped with deduped warnings. Wired into both discovery and refresh paths. **Phase 2 — pure graph engine** - `app/dependencies/dependency-graph.ts`: `buildDependencyGraph` (resolves names to edges; unresolved and cross-agent targets reported, not fatal) + `topologicalSort` (Kahn's BFS waves of parallelizable groups, alphabetical tie-break, Tarjan SCC condensation fallback so cycles collapse into one wave and never deadlock) + `computeDependencyGraph` combinator. Pure functions, no I/O. Docs: label table rows in the watcher configuration page; CHANGELOG entry. ## Testing - 12,647 app tests across 399 files, 100% coverage (34 new graph tests: chains, diamonds, ties, multi-node cycles, cycle-adjacent subgraphs, determinism across shuffled input) - Full lefthook pre-push gate passed Refs #219 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added dependency fields and Joi validation to `Container`. - ✨ Added Docker labels for dependency targets and actions. - ✨ Added Compose `depends_on` resolution across Compose files. - ✨ Added validation, deduplication, warnings, and label-over-Compose precedence. - ✨ Added dependency re-derivation during discovery and refresh. - ✨ Added deterministic dependency graph ordering with topological waves. - ✨ Added unresolved-target and cross-agent reporting. - ✨ Added Tarjan SCC cycle detection. - ✨ Added resolver, graph, Docker integration, and refresh tests. - ✨ Added dependency label documentation. - ✨ Added 12,647 app tests across 399 files. ## Concerns - Execution, API, and UI integration remain deferred. - Verify dependency graph exports follow existing module conventions. - Verify warning behavior remains consistent during discovery and refresh. - Document `update` and `restart` action semantics in the execution integration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * 🔒 security: v1.7 hygiene — icon integrity, base-image CVE bumps, dead SW rule (#680) Security/correctness hygiene batch from the 2026-08-08 sweep workflows. ## Icon-bundle integrity - Restores the Audit nav icon (`lucide:history` was dropped by tabler/lucide bundle regeneration in #674) and fixes 5 more stale icon references (iconoir history/key/gitlab/stack, lucide more-vertical) - Adds `@iconify-json/fa6-brands` devDep that the bundle referenced but never declared - New guard test `ui/tests/icons.spec.ts`: every `iconMap` key must resolve against the generated `icon-bundle.json`, so future bundle regenerations can't silently blank icons ## Base image CVEs - `node:24-alpine` digest → Node 24.19.0 (fixes CVE-2026-56846 / CVE-2026-56848 / CVE-2026-58043 HIGH + 5 MEDIUM in the 24.18.0 runtime binary) - `aquasec/trivy` digest → 0.73.0 (clears go-git CVE-2026-71556, x/text CVE-2026-56852, grpc GHSA-hrxh-6v49-42gf, oras-go CVE-2026-50151/50163, stdlib CVE-2026-39822 in the vendored CLI) - `.trivyignore.yaml` for AVD-DS-0002: the no-USER-directive finding is mitigated by design (su-exec runtime privilege drop); trivy can't honor inline skips for absence-of-resource checks ## Dead service-worker rule - The PWA `runtimeCaching` NetworkOnly rule for `/api/**` never matched: workbox's RegExpRoute tests the full `url.href`, so the `^\/api\//` anchor can never hit. Replaced with an exported `isApiRequest` pathname matcher + tests. Currently masked (no other caching rules), but any future catch-all rule would have silently cached authenticated API responses. All commits gate-green (biome, qlty, 100% coverage app+ui, build, e2e, playwright, zizmor). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🔒 Updated Node and Trivy base-image digests. - 🔒 Added the documented `AVD-DS-0002` Trivy suppression for `su-exec`. - 🔒 Enabled Grype scans for pull requests targeting `main` and `dev/**`. - 🐛 Corrected stale navigation icon mappings. - ✨ Added `@iconify-json/fa6-brands`. - ✨ Added ten icons to `icon-bundle.json`. - ✨ Added `iconMap` bundle-integrity tests. - 🔧 Replaced the ineffective service-worker `/api/**` rule with the exported `isApiRequest` pathname matcher. - ✨ Added API request matcher tests. ## Concerns - Confirm that the `AVD-DS-0002` suppression remains valid if the Docker entrypoint or privilege model changes. - Confirm that excluding paths containing `/api/` when they do not start with `/api/` is intentional. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * ✨ feat(dependencies): dependency-ordered updates — waves, restart cascade, confirmation-gated group execution (#681) ## Summary Implements dependency-ordered updates end to end (roadmap 6.2): drydock now understands container dependency chains (compose `depends_on` auto-detection + `dd.depends_on` labels), partitions accepted updates into waves, restarts restart-kind dependents after their dependency updates, and exposes the whole thing through the API and UI. ### Feature - **Graph engine** (`app/dependencies/`): dependency graph built from compose files and labels, SCC/cycle detection, wave partitioning (topological layers), transitive-dependent traversal, connected-component resolution. - **Update execution**: accepted updates run wave by wave; restart-kind dependents get a restart primitive (exempt from the `updateAvailable` gate) and a `skipped-dependency` terminal status when their dependency's update fails; compose runtime updates dispatch in dependency order; maintenance-window deferral cascades to dependents. - **API**: dependency graph + update-chain-preview endpoints, dependency-groups bulk update endpoint, `dependencyCount`/`dependentCount` on the container list payload. OpenAPI documented. - **UI**: dependency-chain confirm dialog with the wave list, dependency counts on containers, graph/preview/update service calls. ### Hardening on top (security-sweep findings, all adversarially verified) - **Compose paths translate through the controller's own bind mounts** — `depends_on` auto-detection now works in containerized installs instead of silently no-oping; loud warning when no compose file is readable. - **Group update is confirmation-gated and blast-radius-bound** — `requireDestructiveActionConfirmation` (same gate as the sibling destructive routes) plus optional `expectedContainerIds`: if the resolved group diverges from the preview the user approved, the API 409s and the UI re-previews (closes the preview→execute TOCTOU). - **UI surfaces restart-only members** with a `(restart)` tag in the wave list so the confirm dialog shows the true blast radius. - **Iterative Tarjan SCC** — no recursion-depth stack overflow on very large cycles (tested at 6000 nodes). - **Perf**: O(N²) cycle-resolution loop replaced with a single SCC-condensation + layer-assignment pass; O(N²·D) candidate matching replaced with Map-indexed lookup. Output contracts preserved exactly. ## Testing - app: 12776 tests / 404 files, 100% statements/branches/functions/lines - ui: 4498 tests / 221 files, 100% across the board - tsc + vite builds clean, biome clean, full pre-push gate (incl. e2e + playwright) green <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog ### ✨ Added - Added dependency graph resolution from Compose `depends_on` and `dd.depends_on`. - Added cycle detection, topological update waves, transitive dependents, and connected-component resolution. - Added dependency graph and update-chain preview APIs. - Added dependency-group bulk updates with destructive-action confirmation and expected-container validation. - Added OpenAPI schemas and API documentation. - Added dependency and dependent counts to container list responses. - Added UI services, types, previews, confirmation dialogs, dependency counts, and restart indicators. - Added `skipped-dependency` operation status and lifecycle handling. ### 🔧 Changed - Dispatches accepted updates in dependency order with configurable wave concurrency. - Uses restart primitives for restart-only dependents. - Cascades dependency failures and maintenance-window deferrals to transitive dependents. - Orders Compose runtime updates by dependency waves. - Translates Compose paths through controller bind mounts. - Uses iterative Tarjan SCC processing and indexed dependency lookup. ### 🐛 Fixed - Prevented dependent updates from running before deferred or failed dependencies. - Added warnings for unreadable Compose files, unresolved dependencies, cycles, and cross-host links. - Prevented skipped dependencies from generating failure lifecycle events. - Preserved zero-valued dependency counts during API-to-UI mapping. ## Concerns - Verify API and UI schemas remain synchronized for `skipped-dependency`, dependency counts, preview waves, and bulk-update responses. - Verify destructive-action confirmation headers and preview-bound container IDs remain mandatory for every dependency-group update path. - Verify Compose bind-mount translation covers all supported Docker socket and controller deployment layouts. - Verify cycle handling preserves deterministic wave ordering for large and overlapping strongly connected components. - Run the reported app, UI, TypeScript, Vite, Biome, end-to-end, and Playwright checks in CI. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * 🐛 fix(ui): resolve iconify aliases in the icon bundle (forward-port #683) (#686) Forward-ports #683 to dev/v1.7. #680 fixed the symptom here (direct icon-name renames) but not the root cause: `ui/scripts/extract-icons.mjs` still dropped icons that iconify collections demote to aliases (`collection.aliases[name].parent`), so any future collection bump could silently ship broken icons again — that's exactly how rc.12 shipped a blank Audit icon. What's in the port: - `extract-icons.mjs`: `resolveIcon()` follows alias parent chains (depth-capped), merges alias overrides, refuses transform-requiring aliases with a warning. - `ui/tests/boot/icon-bundle.spec.ts`: guard test — every `prefix:name` ref in `icons.ts` must exist in the bundle with a body. - `iconoir:stack` → `multiple-pages` (#680 had picked `cube`; `multiple-pages` matches v1.6 and verified valid against locked iconoir 1.2.11). - `@iconify-json/fa6-brands` 1.2.4 → 1.2.6 exact-pinned (devDependencies). - Bundle regenerated: 576/576 refs, zero warnings, 229.8 KB; `npm run build` leaves the tree clean. 4508 UI tests, 100% coverage, full pre-push gate green. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added recursive Iconify alias resolution with parent-chain traversal, override merging, depth limits, and transform warnings. - ✨ Added a guard test for missing or empty icon bundle entries. - 🔧 Replaced `iconoir:cube` with `iconoir:multiple-pages` for the `stack` icon. - 🔧 Pinned `@iconify-json/fa6-brands` to `1.2.6`. - 🐛 Fixed extraction of indirect icon aliases. ## Concerns - Verify aliases with rotation or flipping produce actionable warnings and do not enter the body-only bundle. - Keep the guard test aligned with all supported `icons.ts` reference formats. - Confirm the regenerated bundle contains all 576 references with nonempty bodies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * 🎨 style(demo): use the refreshed whale headshot favicon in the demo (forward-port #689) (#690) Forward-port of #689 (merged to `dev/v1.6` as `e0a427d7`) so the demo favicon fix rides on both lines. ## What demo.getdrydock.com still shows the old full-body whale favicon: its `index.html` listed a stale `favicon.svg` (old whale, base64-embedded) ahead of the PNG/ICO links, so browsers always preferred the old art. The v1.5.1 brand refresh (#439) and the app-UI follow-up (f02e5e96) both missed the demo. ## Changes Clean cherry-pick of `e0a427d7` except the CHANGELOG, where the entry was placed into this branch's existing Unreleased `### Fixed` section (v1.7's CHANGELOG has no rc.13 heading). - Replace `apps/demo/public` icon set with the headshot assets already shipped byte-identical in `ui/public` and `apps/web/public` - Drop `favicon.svg` and its `<link>` - `?v=2` cache-busters on the icon links - `site.webmanifest` icon `purpose` → `any maskable` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ### Changelog - 🐛 Fixed demo favicon, Apple touch icon, and manifest icons. - 🔧 Changed icon links to use refreshed assets with `?v=2` cache-busters. - 🔧 Changed manifest icon purpose to `"any maskable"`. - 🗑️ Removed the embedded `favicon.svg` and its HTML link. - ✨ Added the change under the existing Unreleased `### Fixed` section. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * ✨ feat(watcher): debounce first-seen container discovery behind a settling window (#691) Closes #156. ## What Docker briefly exposes transient rename aliases while a container is being recreated, so drydock could register a container under its `<hex-prefix>_<name>` alias the instant `listContainers` returned it. First-seen containers (identified by Docker container ID, not present in the store) now enter a pending state and must stay visible for a settling window before they reach the store, triggers, or the API/UI. ## Behavior - `DD_WATCHER_{name}_DISCOVERY_SETTLE_MS` — default `30000`, `0` disables; schema-validated with env alias normalization - `filterPendingDiscoveries` (`container-init.ts`) gates **any** first-seen container regardless of name shape — complements (doesn't replace) the v1.5 name-shape-based alias stripping - Renamed mid-window → registers under the final name once settled; disappears mid-window → discarded (debug logs only) - Containers already in the store are exempt: a same-ID recreation is never blocked from updating for the window ## Also in this PR ♻️ `Docker.ts` crossed its 1600-line structure cap with this feature, so it pays the toll: `filterAndSliceTimestampedHistory`, `appendBoundedHistoryEntry`, and the recent-history limit constants moved to a new `docker-history.ts` module (1602 → 1578 lines). `recent-events.test.ts` now exercises the helper via the module export instead of a private method. ## Tests Two new suites (`Docker.containers.discovery-settle.test.ts`, `container-init-pending-discovery.test.ts`) plus extensions to the watcher/config suites — 1718 tests green across the docker watcher + configuration; full pre-push gate (coverage 100%, build, e2e) green. Watcher configuration docs + CHANGELOG updated. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added a configurable Docker discovery settling window. - ✨ Added pending-discovery filtering for new containers. - ✨ Added rename, disappearance, store-bypass, and disabled-window handling. - ✨ Added follow-up scheduling with deduplicated timers and teardown cleanup. - ✨ Added configuration aliases and documentation for `DD_WATCHER_{watcher_name}_DISCOVERY_SETTLE_MS`. - ✨ Added tests for settling behavior, scheduling, fallback handling, configuration validation, and lifecycle cases. - 🔧 Extracted bounded Docker history helpers into `docker-history.ts`. - 🔧 Updated Docker tests to preserve synchronous discovery with `discoverysettlems: 0`. ## Concerns - Verify that negative `discoverysettlems` values cannot bypass validation through direct watcher construction. - Review duplicated `docker.register` test wrappers and extract a shared helper if the test convention allows it. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * chore(commits): retire gitmoji for plain Conventional Commits (#696) Retires the gitmoji commit format for plain Conventional Commits, matching the convention now standard across the CodesWhat repos. ## What changed - `CONTRIBUTING.md` — documents the 11-type format (`feat fix docs style refactor perf test build ci chore revert`) and the `!` breaking-change syntax - `scripts/commit-message.mjs` — shared type table and failure formatter, no emoji prefix - `.github/workflows/i18n-crowdin.yml` — strips the emoji from Crowdin's generated commit message and PR title - `docs/ci-flow.html` — the commit gate now reads "conventional commits" rather than "gitmoji + conventional" The Crowdin action authors its own commits, so its message template had to change too or the bot's translation syncs would start failing the new validator. ## Verification 28/28 tests pass on this branch across `commit-message.test.mjs` and `validate-commit-range.test.mjs`, including a case asserting the failure output lists the allowed types with no emoji. Retired types map as `config → chore(config)`, `deps → build(deps)`, `deploy → ci(deploy)`, `remove → refactor(<scope>)`. Existing history is left alone and never rewritten. ## Note This branches from `dev/v1.7` rather than `dev/v1.6`, to keep an RC-13 branch quiet ahead of GA. The six touched files are byte-identical across both dev branches, so it forward-ports cleanly if you'd rather it also land on `dev/v1.6`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog ### ✨ Added - Documented 11 supported Conventional Commit types. - Added `!` breaking-change syntax. - Added exact single-space validation after the colon. - Added tests for spacing rejection and invalid-scope hint precedence. ### 🔧 Changed - Replaced gitmoji validation with plain Conventional Commits. - Updated contributor and CI documentation. - Updated Crowdin-generated commit messages and PR titles. - Mapped retired types to supported equivalents. - Updated commit fixtures and validation tests. - Confirmed 28/28 tests pass. ### 🗑️ Removed - Removed emoji prefixes, aliases, emoji/type pairing, and retired commit types. - Left existing commit history unchanged. ### ⚠️ Breaking - New commits must use plain Conventional Commit syntax. - Double spaces and tabs after the colon are invalid. - Existing gitmoji-based commits remain unchanged. ## Concerns - Check external commit hooks and automation for gitmoji assumptions. - Confirm all repository documentation uses the 11 supported commit types. - Handle issue `#39` separately; this PR does not add the Prometheus `agent` label. <!-- end of auto-generated comment: release notes by coderabbit.ai --> * chore(deps): rotate the Renovate integration branch to dev/v1.7 (#703) One line, but it's a release blocker. `renovate.json` still reads `"baseBranchPatterns": ["dev/v1.6"]` on every branch including `main`. v1.6 GA'd on 2026-08-12. The config's own description says to rotate this at each branch cut, and `release-cut.yml:129` enforces it: ``` renovate.json targets 'dev/v1.6' but this cut is for dev/v1.7. Update baseBranchPatterns to ["dev/v1.7"] and re-dispatch. ``` So a v1.7 cut fails at the "Assert main is in sync" step until this lands. The quieter cost is happening right now: every dependency PR keeps targeting the retired line. #692–#695 are open against `dev/v1.6`, which has nothing left to ship, and `dev/v1.7` is receiving no dependency updates at all. `i18n-crowdin.yml` needs no equivalent change — it resolves the highest `dev/vX.Y` on origin at run time and already targets v1.7. `.github/tests/integration-branch-targets.test.ts` asserts shape rather than a specific branch (exactly one entry, matching `^dev/v\d+\.\d+$`, and that `baseBranches` stays undefined), so it stays green: 6/6. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🔧 Changed `renovate.json` to target `dev/v1.7` instead of retired `dev/v1.6`. - ✨ Added compatibility with the v1.7 release synchronization check. ## Concerns - Verify that dependency PRs target `dev/v1.7`. - Keep `i18n-crowdin.yml` unchanged. - Confirm integration branch target tests pass. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Test <[email protected]> * chore: forward-port the v1.6.0 GA work to v1.7 (#702) Three things landed on `dev/v1.6` during the GA push and never reached `dev/v1.7`. Found by diffing the two branches after the GA sync made `dev/v1.6` and `main` tree-identical. ### 1. OpenSSF assurance evidence (`a8b33673`, #699) `GOVERNANCE.md`, `SECURITY-ASSURANCE.md`, and the Best Practices badge in the README. This is the one that actually bites: drydock earned the [Silver badge](https://www.bestpractices.dev/en/projects/11915) on 2026-08-12 specifically because the GA sync put that badge on `main`'s front page. The first v1.7 sync to `main` would have deleted it again and dropped `documentation_achievements` back to Unmet, losing Silver. ### 2. Star history through GraphQL (`38819656`) v1.7 still had the REST `/stargazers` path. That endpoint 401s anonymously and, for a fine-grained token, demands `contents=write` — far more than a public star chart should hold — so the route fell back on every request and getdrydock.com just said "loading". The GraphQL stargazers connection needs only `metadata=read`. ### 3. Auditable soak override (`2b55ff4b`) The `soak_override_reason` dispatch input, its validation, and the 311-line test. The 604800s floor is untouched. Used once, for the v1.6.0 GA cut at 3.0 days; v1.7 should have the same escape hatch and the same audit trail. ### Deliberately not carried over - `daf12292` — v1.6.0 GA release identity and CHANGELOG. v1.7 produces its own. - `b98808e7` — rc.13 release identity. - `bd6f598d` — base-image digest bumps. The Dockerfile is already byte-identical; `cee3a686` covered it on this branch. - `#689` and `#683` show up in the commit gap but were already forward-ported as `#690` and `#686`. ### Verification - `apps/web/src/app/api/star-history/route.ts` and `.github/workflows/release-cut.yml` are byte-identical to `dev/v1.6`. - `npm run test:workflows` — 80/80. - `node --test apps/web/scripts/marketing-performance.test.mjs` — 6/6. - Full pre-push gate green, including coverage. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added OpenSSF governance, security-assurance documentation, and Best Practices Silver badge. - ✨ Added authenticated GitHub GraphQL pagination for star history. - ✨ Added GA-only `soak_override_reason` support with validation, audit output, and release-note disclosure. - ✨ Added tests for GraphQL pagination, malformed responses, token handling, and soak override boundaries. - 🔧 Replaced REST `/stargazers` requests with GitHub GraphQL requests. - 🔒 Documented per-path outbound-request controls, fail-closed authentication, release integrity, and residual risks. ## Concerns - Verify `GITHUB_TOKEN` exists in every runtime that serves the star-history route. - Verify malformed or incomplete GraphQL pagination returns fallback data and no partial results. - Verify prerelease workflows reject `soak_override_reason` before release actions run. - Verify shortened, multiline, and sanitized override reasons remain safe in workflow outputs and release notes. - Review the documented IFTTT outbound path and its missing shared timeout control. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]> * docs: add AGENTS.md and RELEASING.md (#706) ## Summary - Adds `AGENTS.md` — drydock has no committed agent-instructions file (`.gitignore` excludes `CLAUDE.md`/`.claude/`). Covers repo structure, build/test/lint commands, the component registry pattern, the 100% coverage gate on both `app/` and `ui/`, and the full pre-push lefthook pipeline (~4 min, qlty budgeted at 4 min, coverage ~210s), squash-only merges, and where the `.planning/` archive lives. - Adds `RELEASING.md` — `CONTRIBUTING.md` only covers the contributor PR flow; nothing documented how a release is actually cut. Walks through `release-cut.yml` end to end: RC vs GA dispatch inputs and their exact formats, the seven-day soak floor measured from the RC's release publication time, the `soak_override_reason` escape hatch (20-char minimum, `::warning::` annotation, stamped into the run summary and published release notes), and the tree-equality drift check between `main` and the active dev branch (not commit ancestry, since this repo is squash-only). Both files are new and were verified against the actual repo config (`lefthook.yml`, `.qlty/qlty.toml`, `package.json`, `.github/workflows/release-cut.yml`, `CONTRIBUTING.md`) rather than copied from sockguard/portwing's versions — drydock's gates and release mechanics differ. ## Test plan - [x] `qlty check AGENTS.md RELEASING.md` — no issues - [x] Full pre-push lefthook pipeline ran clean on push (biome, qlty, qlty-smells, scripts-test, workflow-tests, typecheck-ui, web-scripts-test, coverage, build, zizmor) - [x] Soak-override and v1.6.0 GA details cross-checked against the actual published `v1.6.0` GitHub release --------- Co-authored-by: Test <[email protected]> * docs(release): sync v1.6.0 GA identity into dev/v1.7 (#705) ## Summary `scripts/release-docs-identity.test.mjs` and `scripts/release-identity.test.mjs` each pin one version constant across ten identity-bearing surfaces (README badge/highlights, `site-config.ts`, `site-content.ts`, the updates and API docs, the quickstart tag matrix, CHANGELOG, and the demo runtime fixtures). `origin/main` reads `1.6.0` (GA); `dev/v1.7` still read `1.6.0-rc.12`, the state it forked at before `main` cut rc.13 and went GA. Left as-is, the next v1.7 sync to `main` would walk the public version number backwards. - Bump every pinned surface from `1.6.0-rc.12` to `1.6.0`, taking `main`'s identity content as the reference for each hunk and leaving `dev/v1.7`'s own v1.7 feature content untouched. - Insert the `v1.6.0` GA and `v1.6.0-rc.13` historical sections (verbatim from `main`) into the README, the updates page, and `CHANGELOG.md`, ahead of the existing rc.12 entries. - Drop six changelog bullets that had drifted into `## [Unreleased]` on `dev/v1.7` but duplicated content the newly-inserted historical sections now record (the nanoid/js-yaml security pins, the node:24-alpine and trivy base-image bumps, the self-hosted Star History fix, and the digest-comparison fix) — so already-shipped work no longer reads as still pending. - Adopt `main`'s `release-docs-identity.test.mjs`, `release-identity.test.mjs`, and `changelog-links.test.mjs` wholesale, since they pin the same constants/structure. ## Test plan - [x] `node --test scripts/release-docs-identity.test.mjs` — 11/11 pass - [x] `node --test scripts/release-identity.test.mjs` — 4/4 pass - [x] `node --test scripts/changelog-links.test.mjs` — 4/4 pass - [x] `node --test scripts/*.test.mjs` — 147/147 pass - [x] pre-push gate (lint, qlty, scripts/workflow tests, typecheck, coverage, build, zizmor) green <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added v1.6.0 GA and v1.6.0-rc.13 release notes. - ✨ Added changelog coverage for GA release identity, dates, sections, and release themes. - 🔧 Changed pinned release identity from `1.6.0-rc.12` to `1.6.0` across README, site configuration, demo mocks, API documentation, and quickstart documentation. - 🔧 Changed release identity test fixtures to use `1.6.0` with `1.6.0-rc.13` as the previous release. - 🔧 Changed `RC_VERSION` to `1.6.0`. - 🗑️ Removed six duplicated shipped-item bullets from `Unreleased`. - 🔒 Documented security hardening, dependency updates, digest matching, and base-image CVE updates. - Tests and pre-push checks pass. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]> * fix(ifttt): apply the shared outbound HTTP timeout (#707) IFTTT was the one outbound path in the codebase with no timeout at all. It called `axios(options)` bare while its nine sibling providers all pass `getOutboundHttpTimeoutMs()`, so a hung IFTTT endpoint hung the notification indefinitely. Three parts: - `Ifttt.ts` now passes the shared timeout the same way its siblings do. - The six `toHaveBeenCalledWith({...})` assertions in `Ifttt.test.ts` carry the new key. Left exact rather than loosened to `objectContaining` — the exactness is what makes them worth having. - `SECURITY-ASSURANCE.md`: the IFTTT row's timeout column reads `yes`, and the sentence naming IFTTT as the untimed path is gone, since it stops being true when this lands. Fixes: #704 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added `timeout: getOutboundHttpTimeoutMs()` to IFTTT webhook requests. - 🔧 Changed six `Ifttt.test.ts` Axios option assertions to expect a `30000` ms timeout. - 🔒 Updated `SECURITY-ASSURANCE.md` to mark IFTTT timeout support as enabled. - 🗑️ Removed the outdated statement that IFTTT lacks a timeout and the related issue reference. ## Concerns - Verify all IFTTT Axios calls use the shared outbound timeout. - Verify the test expectation remains aligned with the configured default timeout. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Test <[email protected]> * ci(checks): remove emoji from required job names ## Summary - rename the six required check jobs to stable plain-text contexts - replace the old emoji-prefix invariant with exact required-context tests - leave non-required advisory job names unchanged ## Verification - `npx vitest run .github/tests/ci-verify-workflow.test.ts .github/tests/e2e-playwright-workflow.test.ts --config .github/tests/vitest.config.mjs --maxWorkers=1 --fileParallelism=false` - `npm run test:workflows` - full Lefthook pre-push gate, including 100% app/UI coverage, builds, qlty, and zizmor The main ruleset still requires the old six contexts. It will be patched with `gh api` only after this PR is reviewed, green, and merged into `dev/v1.7`, while Drydock has no other open PRs. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🔧 Changed six required CI check names to stable plain-text contexts. - 🔧 Changed required-context tests to assert exact job names. - 🗑️ Removed the unused emoji-name invariant. - ✨ Added coverage for `E2E: Playwright`. - 🔒 Preserved the `zizmor` job name change without changing advisory job names. - ✨ Verified with targeted Vitest tests, `npm run test:workflows`, and Lefthook pre-push checks. ## Concerns - Update the repository ruleset to use the new required contexts after merge into `dev/v1.7`. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Test <[email protected]> * docs(security): record and remediate 2026 review (#710) ## Summary - record the dated 2026-08-13 security best-practices review - cap concurrent password verification and bound agent, registry, and container-log transports - redact configured command and hook strings from APIs and logs ## Validation - full pre-push gate - app and UI coverage: 100% - 147 repository script tests - 83 workflow contract tests - backend and UI builds - actionlint, Zizmor, Qlty, npm audit, Gitleaks, Grype, Trivy, and targeted Semgrep review <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🔒 Limit concurrent password verification with `DD_AUTH_MAX_CONCURRENT_LOGIN_ATTEMPTS`. - 🔒 Bound agent requests, SSE buffers, container log downloads, log tails, and WebSocket backpressure. - 🔒 Disable registry request redirects. - 🔒 Redact configured command and hook strings from APIs and logs. - ✨ Add regression tests for limits, redirect handling, stream cleanup, and redaction. - 🔧 Document authentication limits, container log bounds, hook secret handling, and the 2026-08-13 security review. - 🔧 Run backend and UI security tests, 100% coverage gates, builds, repository checks, and security scans. ## Concerns - ⚠️ Semgrep did not complete a clean scan because some test files timed out or failed to parse. - ⚠️ Operator-authorized shell execution remains a deployment risk. - ⚠️ Outbound response-size limits remain dependent on integrations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]> * feat(web): share star history across product readmes (#711) ## Summary - synchronize all six localized READMEs with the current English structure, release facts, security warnings, governance links, and first-party star tracker - add a separate Crowdin README mapping and README-only workflow trigger without changing the locale JSON mapping - extend the self-hosted star-history route to exactly Drydock, Sockguard, and Portwing with strict repo/theme/query validation and existing bounded fetch/cache behavior Sockguard and Portwing consumer changes are intentionally separate follow-up work. ## Test plan - full pre-push gate: 147 repository scripts, 109 workflow tests, 63 website scripts, UI type-check, app/UI 100% coverage, app/UI builds, Biome, Qlty, and zizmor - website production build: 349 pages - runtime smoke: all three allowlisted repositories return named SVGs; arbitrary repositories and unknown query keys return 400 with no-store <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added Crowdin mapping and tests for six localized README files. - ✨ Added README translation guidance and translation contract tests. - ✨ Added star-history request parsing and canonical URL utilities. - 🔧 Updated all localized READMEs to release `1.6.0` content. - 🔧 Added security warnings, governance links, roadmap updates, and self-hosted star-history images. - 🔧 Extended `/api/star-history` to `Drydock`, `Sockguard`, and `Portwing`. - 🔧 Added strict repository, theme, query, and GraphQL page validation. - 🔧 Preserved bounded fetches, caching, and cache-key isolation. - 🔧 Added `README.md` to the Crowdin workflow trigger. - 🔒 Documented authentication, cookie, SSRF, and DNS security changes. - 🔒 Added `nosniff` headers to star-history responses. - ⚠️ Invalid or ambiguous star-history requests return `400` with `no-store`. ## Concerns - Complete deferred Sockguard and Portwing consumer integration in follow-up work. - Keep the Crowdin README mapping separate from the UI locale mapping. - Verify all localized README content remains synchronized with the English README. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]> * test(e2e): target tooltip anchors deterministically (#714) Target shared-tooltip assertions by their bound DOM anchors so asynchronous layout shifts cannot retarget a stationary physical pointer. Add focused contracts covering both digest-tooltip surfaces and argument-bearing hover calls. * chore(i18n): sync translations from Crowdin (#713) Automated sync from Crowdin. Review wording, then merge. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added translated `appShell`, `containerComponents`, and `containersView` entries across 18 locales. - ✨ Added README translation tests for required labels and forbidden source-English prose. - 🐛 Fixed untranslated README output rejection. ## Concerns - Review French, Italian, Russian, and other locale entries that still contain English text. - Verify `"ports": "Ports"` is intentional in each locale. - Validate locale key parity, value types, interpolation tokens, and plural forms. - Confirm the README tests cover all translated files and expected headings. - Confirm the change set contains only generated translation files and required tests. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Crowdin Bot <[email protected]> Co-authored-by: Test <[email protected]> * fix(mqtt): resync home assistant discovery (#712) ## Summary - resync retained Home Assistant discovery for containers already loaded at MQTT startup - run the resync after command subscription so Install buttons reflect live broker capability - isolate store and per-container publish failures so trigger initialization continues ## Verification - RED: five focused startup-resync tests failed because `resyncDiscovery` did not exist - RED: MQTT lifecycle ordering resolved before discovery resync - GREEN: 172 MQTT/Home Assistant tests pass - GREEN: full backend suite passes 12,859 tests with 100% statement, branch, function, and line coverage - GREEN: lint, typecheck, app/UI builds, workflow tests, qlty, and zizmor pass through the full pre-push hook Closes #708 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added `Hass.resyncDiscovery()` to reload stored containers and republish Home Assistant discovery configurations. - 🔧 Changed MQTT trigger initialization to resynchronize discovery after `initCommandSubscription()`. - 🔧 Serialized per-container discovery updates and drained queued synchronization during deregistration. - 🐛 Fixed stale retained discovery payloads after broker capability changes. - 🐛 Fixed excluded-container discovery cleanup and command metadata updates. - 🔧 Isolated store and per-container publish failures so MQTT initialization continues. - ✨ Added tests for resynchronization, failure handling, ordering, initialization timing, and deregistration lifecycle behavior. - Verify that keyed synchronization matches the provider event-handling convention. - Confirm that error logging includes sufficient container context for store and publish failures. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]> * chore(release): prepare v1.7.0-rc.1 (#715) ## Summary - sets the exact `v1.7.0-rc.1` identity across packages, locks, demo fixtures, all seven READMEs, website metadata, API examples, quickstart, and changelog links - advances current docs routing to `v1.7` while preserving `/docs/v1.6` - archives the published v1.6 GA docs with immutable source-tree, blob, file-set, and generated-changelog provenance checks - makes the release precheck reject stale package, lock, README, docs-route, changelog, and public release metadata ## TDD evidence RED first failed on the stale v1.6 package/demo/public identities, absent exact metadata validator, GA/RC quickstart mismatch, stale roadmap states, missing v1.6 route/archive, and missing archive provenance manifest. GREEN now proves: - 154/154 maintenance tests - 127/127 workflow tests - 63/63 website script tests - 43/43 translated README contracts - backend and UI coverage at 100 percent - backend, UI, website, and demo production builds - strict `v1.7.0-rc.1` precheck against the private release tracker - Biome, Qlty baseline, UI typecheck, and Zizmor This PR changes release metadata and documentation only. It does not tag, publish, dispatch `release-cut.yml`, or promote `dev/v1.7` to `main`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added `v1.7.0-rc.1` release identity across packages, lockfiles, demos, READMEs, website metadata, API examples, quickstart content, and changelog links. - ✨ Added `v1.7` documentation routing while preserving `/docs/v1.6`. - ✨ Added immutable v1.6 archive provenance metadata and byte-level validation tests. - ✨ Added release metadata prechecks for package versions, lockfiles, badges, changelog entries, documentation routes, and public release metadata. - 🔧 Updated translated README contracts and release surfaces. - 🔧 Updated CI checkout validation to require full history and disable persisted credentials. - 🔒 Expanded validation for archived documentation authentication, unsafe configuration, and secret-scan exceptions. ## Concerns - Confirm that release tagging, publishing, `release-cut.yml` dispatch, and `dev/v1.7` promotion remain separate follow-up actions. - Verify that v1.6 archive provenance matches the published source tree, blobs, file set, and generated changelog. - Run the full maintenance, workflow, website, translation, build, coverage, precheck, lint, typecheck, and security checks. - Review the 199-file change set manually because automated CodeRabbit review was skipped. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]> * fix(updates): preserve dependency context after admission (#718) Fixes the release-blocking finding from the exact-head review on #716. The dependency group admitted members independently, then rebuilt dispatch and response graphs from only the accepted subset. When an upstream update was rejected, a restart-only dependent lost its resolved edge, was annotated as a normal update in wave 0, and entered the normal pull/update trigger despite having no update. This carries the original admission batch as dependency context through both dispatch and API annotation. Rejected members do not receive operations, but their graph nodes still preserve the confirmed wave and restart action for accepted dependents. TDD: - RED: focused regression run failed 2 tests. Dispatcher never called the restart primitive; API returned `actionKind: update, wave: 0` instead of `restart, wave: 1`. - GREEN: focused 95/95 tests pass. - Full backend: 406 files, 12,868 tests, 100% statements/branches/functions/lines. - Full pre-push: scripts 158, workflows 127, web contracts 63, UI typecheck, app/UI 100% coverage, app/UI builds, zizmor all pass. Exact source: `ef92dc8c7fa8c2bbf7a0e936f37285163fb55113`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🐛 Fixed dependency graph loss when an upstream container is rejected during admission. - 🔧 Preserved the original admission batch as `dependencyContext` through dispatch and API annotation. - 🔧 Preserved confirmed wave and `restart` action metadata for accepted restart-only dependents. - 🔧 Skipped dispatch entries without accepted operations. - ✨ Added regression tests for rejected upstream dependencies and restart-only dependents. - 🔧 Passed focused tests: 95/95. - 🔧 Passed backend tests across 406 files with complete coverage. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]> * revert: subtract unreviewed documentation tails (#719) This is review-gap PR A. It subtracts only the two unreviewed historical patch tails identified in the v1.7 promotion ledger. A separate reviewed PR B will restore these four paths exactly from the frozen promotion tree after this lands. Frozen dev head: d3a94199e110a97544f9992354d359bd1fe80dcc Frozen tree: a399f39980911e02e5795854aeeb557301d1cd51 Combined binary subtraction patch SHA-256: 59d99df8b587099ddc8393036634b9cd494258b46ba13535bff74b203bbb13df Changed paths and blobs: - AGENTS.md: 80657ad4435e5cd5e991da80b599df22f69a5e47 -> deleted - RELEASING.md: a3d1fdd490c2859301bc7474949485845bed4e3b -> deleted - apps/demo/src/mocks/data/audit.ts: 8bb17758119352e5ce059f2f1f44eb2aca8cf2e4 -> ca0b43e9fbe0cb5f47f95ad5fb2b081c84c5714e - content/docs/current/api/agent.mdx: 44e3c094fadd06bce8aa57e845470c492cfcaece -> 724cb228bf2446fd1067ad70fa1ce10ff264796c The #705 overlap was resolved with a deterministic three-way subtraction: current frozen dev as ours, e65d66b as the post-tail merge base, and bb85369 as the pre-tail source. It produced no conflicts and retained the later v1.7.0-rc.1 audit line byte-for-byte. The #706 reverse applied cleanly. The final diff changes exactly these four paths. Validation: - full pre-push pipeline passed in 248.36s - 158 script tests - 127 workflow tests - 63 website contract tests - UI typecheck - app and UI coverage at 100% - app and UI builds - Biome, Qlty gate, and zizmor <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🗑️ Removed `AGENTS.md` and `RELEASING.md`. - 🔧 Changed audit mock timestamps from August 2026 to March 2026. - 🔧 Changed `agent.mdx` example timestamps to March 2026. ## Concerns - Restore the deleted documentation from the frozen promotion tree in the follow-up reviewed PR. - Confirm that timestamp changes match all related fixtures and documentation examples. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Test <[email protected]> * docs: restore reviewed contributor and release guidance (#720) Restore the four historical documentation and fixture paths through a fully reviewed change, then correct contributor and release guidance and bind its contract to the actual pre-push hook commands. * test(i18n): harden README translation contracts (#721) ## Summary - bind localized v1.7 release bullets to their intended discussion and issue links - require every translated README to preserve the source README URL multiset - verify balanced `details`, `summary`, and `em` tags across source and translated READMEs ## Verification - focused translation contracts: 76/76 - full workflow suite: 160/160 - Biome and `git diff --check` - full pre-push pipeline: qlty, 161 script tests, workflow tests, UI typecheck, 63 web script tests, 100% app/UI coverage, app/UI builds, and zizmor - normal push hook repeated the full pipeline successfully <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ### Changelog - ✨ Added URL multiset checks for translated READMEs. - ✨ Added link checks for localized v1.7 release bullets. - ✨ Added balanced `details`, `summary`, and `em` tag checks. - ✨ Verified 76/76 translation contracts, 160/160 workflow tests, formatting checks, and the full pre-push pipeline. ### Concerns - Confirm that the new checks use existing repository test utilities where applicable. - Confirm that localized release bullet matching remains stable for future translation changes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]> * fix(agents): make edge poll interval configurable (#723) Closes #688 ## What changed - add `DD_PORTWING_POLL_INTERVAL` for controller-owned Edge refresh cadence - validate positive integer seconds with a 300-second fallback - send the configured value in the authenticated welcome frame and agent metadata - document the setting and protect the public contract with tests ## Verification - focused configuration and WebSocket tests: 418 passed - full backend: 12,879 passed, 100% statements/branches/functions/lines - scripts: 162 passed - workflows: 160 passed - full pre-push gate: passed, including app/UI coverage and production builds <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog ✨ Added `getPortwingPollInterval()` with `DD_PORTWING_POLL_INTERVAL` support. 🔧 Changed the authenticated WebSocket welcome frame and agent metadata to use the configured interval. 🔧 Changed invalid or unspecified values to fall back to `300` seconds. ✨ Added configuration, handshake, metadata, and documentation contract tests. ✨ Documented the controller-owned setting and added a Docker Compose example with a `60`-second interval. 🗑️ Removed the obsolete `.gitleaksignore` exception for the test token hash. ## Concerns - Verify the controller-provided interval remains the Edge/WebSocket override for agent-side polling. - Preserve rejection of fractional, non-positive, non-numeric, empty, and unsafe-integer values. - Keep `DD_AGENT_POLL_INTERVAL` excluded from the documentation contract. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]> * fix(agents): surface edge exec end reasons (#724) Closes #635 ## What changed - preserve the optional Portwing `exec_end.reason` at the Edge session boundary - expose an optional `endCallback` to the internal exec consumer - delete the completed session before invoking consumer code so a throwing callback cannot leak state - isolate callback failures during disconnect so later sessions and agent cleanup still complete - keep outbound teardown and non-string reason handling unchanged ## Verification - RED: four reason/callback contracts failed because the reason was dropped - RED: disconnect cleanup rejected on the first throwing callback and skipped later sessions - GREEN: focused adapter suite 161/161 - full pre-push gate passed in 284 seconds - app and UI coverage remain 100% - application and UI production builds passed <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added optional `endCallback` support for exec consumers. - ✨ Added Portwing `exec_end.reason` propagation. - 🔧 Updated `ExecSession.close(code?, reason?)` to forward string reasons. - 🐛 Deleted completed sessions before invoking callbacks. - 🐛 Isolated disconnect callback failures so cleanup continues. - ✨ Added regression tests for reason validation, callback failures, and disconnect cleanup. - 🔒 Preserved outbound teardown and non-string reason behavior. - ✅ Verified focused adapter tests, the full pre-push gate, coverage, and production builds. ## Concerns - Confirm that `endCallback` remains internal and does not require public API documentation. - Confirm that callback errors use the project’s standard logging utility and error format. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]> * fix(agent): normalize controller-owned registry identities (#725) Closes #687 ## What changed - normalize complete controller-owned Portwing image records through the existing configured-provider path - use the canonical registry name, URL, credentials, and image identity before persistence and native refresh - preserve traditional agent behavior and partial-event handling - cover initial inventory and subsequent Portwing event ingestion ## Verification - RED: both inventory and event paths retained `registry.name=unknown` and skipped the native registry query - GREEN: affected AgentClient/image-comparison suite 607/607 - full backend 12,872 tests at 100% coverage on the fix commit - full pre-push gate passed in 276 seconds after current-dev integration - live exact-commit tri-tool smoke returned watch-now HTTP 200, queried `hub.public`, detected BusyBox `1.36.1`, made 46 native Docker GETs, and made zero legacy watcher POSTs <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added controller-side normalization for Portwing containers from Docker transport watchers. - 🔧 Changed inventory and incremental event handling to use configured registry identity, URL, credentials, and image identity. - 🔧 Preser…
Summary
Implements dependency-ordered updates end to end (roadmap 6.2): drydock now understands container dependency chains (compose
depends_onauto-detection +dd.depends_onlabels), partitions accepted updates into waves, restarts restart-kind dependents after their dependency updates, and exposes the whole thing through the API and UI.Feature
app/dependencies/): dependency graph built from compose files and labels, SCC/cycle detection, wave partitioning (topological layers), transitive-dependent traversal, connected-component resolution.updateAvailablegate) and askipped-dependencyterminal status when their dependency's update fails; compose runtime updates dispatch in dependency order; maintenance-window deferral cascades to dependents.dependencyCount/dependentCounton the container list payload. OpenAPI documented.Hardening on top (security-sweep findings, all adversarially verified)
depends_onauto-detection now works in containerized installs instead of silently no-oping; loud warning when no compose file is readable.requireDestructiveActionConfirmation(same gate as the sibling destructive routes) plus optionalexpectedContainerIds: if the resolved group diverges from the preview the user approved, the API 409s and the UI re-previews (closes the preview→execute TOCTOU).(restart)tag in the wave list so the confirm dialog shows the true blast radius.Testing
Changelog
✨ Added
depends_onanddd.depends_on.skipped-dependencyoperation status and lifecycle handling.🔧 Changed
🐛 Fixed
Concerns
skipped-dependency, dependency counts, preview waves, and bulk-update responses.