the deploy step goes silent for hours — updateNode wires no progress sink, and 45 of 46 founding events are stamped 0001-01-01 #1765

Closed
opened 2026-09-23 14:49:35 +00:00 by ben · 2 comments
Owner

What happened

On the cold manual founding of 2026-09-23 the operator asked: "it looks like the idss is stuck? from my view the progress bar is full but handover hasn't happened."

It was not stuck. It was in the services apply, pushing a multi-GB closure to the gateway (#1764). But nothing on screen could tell the operator that — and nothing in the state file could tell it either.

The step emits nothing

Every other long leg streams its progress. progressSink (internal/clan/enrollment.go:1767) is wired into install, build, copy and verify:

enrollment.go:973   OnLine: progressSink(events, s.Node, StageInstall, ph)
enrollment.go:1184  OnLine: progressSink(events, s.Node, StageInstall, "")
enrollment.go:1247  OnLine: progressSink(events, s.Node, StageBuild, "")
enrollment.go:1346  OnLine: progressSink(events, s.Node, StageCopy, "")
enrollment.go:1437  OnLine: progressSink(events, s.Node, StageVerify, "")

That is why the takeover legs narrate themselves — "building the gateway system — 896 store paths to fetch or build", "copying the system onto the gateway — 903 store paths".

updateNode (internal/clan/adapter.go:626), the leg that runs clan machines update for both the control-plane and the services apply, wires no OnLine sink at all. It calls a.cli.Run(ctx, inv) and returns. So between "gateway deploy started over the established clan connection" and the step's outcome there is total silence — here, for nearly an hour, on a step that had hours left to run.

The state file cannot help either

Of the 46 events on the run, 45 carry "at": "0001-01-01T00:00:00Z". Only the one milestone event written through logMilestoneKeyed (which takes o.nowTime()) has a real timestamp:

[deploying/deploy] at=0001-01-01T00:00:00Z   gateway deploy started over the established clan connection
[deploying/services] at=0001-01-01T00:00:00Z provisioning the services placed on the gateway
[deploying/deploy] at=2026-09-23T09:44:10.99-05:00  gateway deploy complete — the control plane is live

So logEvent / logEventKeyed leave the zero time on disk. Nothing downstream can compute how long a step has been running, show an elapsed clock, or notice a step that has overrun — because the events do not know when they happened.

Asks

  1. Wire progressSink into updateNode, exactly as the enrollment legs do, so the services and control-plane applies narrate their store-path counts and copy progress like every other long leg.
  2. Stamp logEvent/logEventKeyed with the real clock (o.nowTime(), as logMilestoneKeyed already does). A founding event with a zero timestamp is not a record of anything.
  3. Show elapsed time on the running step. Once events carry a clock, the deploy row can say how long this step has been going. An operator staring at a full bar must be able to tell "working" from "hung" without reading ss -tin output — which is what it took here.
  4. A full progress bar that sits still for an hour is itself the fault. Whatever the bar is measuring, it finished long before the work did.

Related: #1764 (why that step had hours of work to do), #1761 (the same run: a fault line naming the wrong command), #1760.

## What happened On the cold manual founding of 2026-09-23 the operator asked: *"it looks like the idss is stuck? from my view the progress bar is full but handover hasn't happened."* It was not stuck. It was in the services apply, pushing a multi-GB closure to the gateway (#1764). But nothing on screen could tell the operator that — and nothing in the state file could tell it either. ## The step emits nothing Every other long leg streams its progress. `progressSink` (`internal/clan/enrollment.go:1767`) is wired into install, build, copy and verify: ``` enrollment.go:973 OnLine: progressSink(events, s.Node, StageInstall, ph) enrollment.go:1184 OnLine: progressSink(events, s.Node, StageInstall, "") enrollment.go:1247 OnLine: progressSink(events, s.Node, StageBuild, "") enrollment.go:1346 OnLine: progressSink(events, s.Node, StageCopy, "") enrollment.go:1437 OnLine: progressSink(events, s.Node, StageVerify, "") ``` That is why the takeover legs narrate themselves — *"building the gateway system — 896 store paths to fetch or build"*, *"copying the system onto the gateway — 903 store paths"*. `updateNode` (`internal/clan/adapter.go:626`), the leg that runs `clan machines update` for both the control-plane and the services apply, wires **no `OnLine` sink at all**. It calls `a.cli.Run(ctx, inv)` and returns. So between *"gateway deploy started over the established clan connection"* and the step's outcome there is total silence — here, for nearly an hour, on a step that had hours left to run. ## The state file cannot help either Of the 46 events on the run, **45 carry `"at": "0001-01-01T00:00:00Z"`**. Only the one milestone event written through `logMilestoneKeyed` (which takes `o.nowTime()`) has a real timestamp: ``` [deploying/deploy] at=0001-01-01T00:00:00Z gateway deploy started over the established clan connection [deploying/services] at=0001-01-01T00:00:00Z provisioning the services placed on the gateway [deploying/deploy] at=2026-09-23T09:44:10.99-05:00 gateway deploy complete — the control plane is live ``` So `logEvent` / `logEventKeyed` leave the zero time on disk. Nothing downstream can compute how long a step has been running, show an elapsed clock, or notice a step that has overrun — because the events do not know when they happened. ## Asks 1. **Wire `progressSink` into `updateNode`**, exactly as the enrollment legs do, so the services and control-plane applies narrate their store-path counts and copy progress like every other long leg. 2. **Stamp `logEvent`/`logEventKeyed` with the real clock** (`o.nowTime()`, as `logMilestoneKeyed` already does). A founding event with a zero timestamp is not a record of anything. 3. **Show elapsed time on the running step.** Once events carry a clock, the deploy row can say how long this step has been going. An operator staring at a full bar must be able to tell "working" from "hung" without reading `ss -tin` output — which is what it took here. 4. A full progress bar that sits still for an hour is itself the fault. Whatever the bar is measuring, it finished long before the work did. Related: **#1764** (why that step had hours of work to do), #1761 (the same run: a fault line naming the wrong command), #1760.

swarm-claim host=matou-dev-server-01 run=30954
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=30954 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1765 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1765,
  "status": "success",
  "commits": [
    "2587a9ea"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/founding/FoundingStandupProgress.vue",
    "app/src/i18n/founding/g2.en.ts",
    "app/src/i18n/founding/g2.es.ts",
    "app/src/i18n/founding/g2.fr.ts",
    "app/src/i18n/founding/g2.nl.ts",
    "app/src/lib/founding.ts",
    "app/tests/unit/foundingStandupProgress.test.ts",
    "internal/clan/adapter.go",
    "internal/clan/deploy_progress_test.go",
    "internal/founding/access.go",
    "internal/founding/communityidentity.go",
    "internal/founding/deploy.go",
    "internal/founding/deploy_progress_internal_test.go",
    "internal/founding/journey.go",
    "internal/founding/manualpath.go",
    "internal/founding/orchestrator.go",
    "internal/founding/preview.go",
    "internal/founding/resume.go",
    "internal/founding/services.go",
    "internal/founding/standup.go",
    "internal/founding/standupi18n_internal_test.go",
    "internal/founding/toolchain.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/founding/ ./internal/clan/ -count=1",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/founding/... ./internal/clan/...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/founding/ ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm vitest run tests/unit/foundingStandupProgress.test.ts tests/unit/foundingStandupI18n.test.ts tests/unit/i18nSeam.test.ts",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm vue-tsc --noEmit -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm eslint (changed app files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Ask 1 — wire progressSink into updateNode so the services/control-plane applies narrate store-path counts like every other long leg": "internal/clan/adapter.go: updateNode's Invocation gains OnLine: progressSink(events, n, Stage(\"update\"), \"\"); proven by internal/clan/deploy_progress_test.go (TestDeploy_UpdateNarratesStorePathProgress: streamed lines arrive as Progress events under the update stage)",
    "Ask 2 — stamp logEvent/logEventKeyed with the real clock (o.nowTime())": "internal/founding/standup.go: Standup gains an injected now clock (json:\"-\") re-wired on every o.load() (orchestrator.go); logEvent/logEventKeyed stamp At: st.nowTime(); proven by standupi18n_internal_test.go TestLogEventStampsTheClock + TestLogEventDefaultsToWallClock (no event left at 0001-01-01)",
    "Ask 3 — show elapsed time on the running step": "DeployRow.ElapsedSecs (deploy.go) set in publishDeployProgress (journey.go) and re-stamped on every poll by StandupState/refreshElapsed (standup.go); rendered as '{time} elapsed' in FoundingStandupProgress.vue; proven by deploy_progress_internal_test.go TestStandupState_ElapsedTicksOnPoll + foundingStandupProgress.test.ts (elapsed clock, h:mm:ss roll-over, hidden when done/failed)",
    "Ask 4 — a full bar must not sit still: the bar tracks real work instead of pinning": "journey.go publishDeployProgress: while the apply streams store paths the running row moves on its MEASURED count (PathsDone) with an indeterminate bar, not the estimatePercent line-count estimate that pinned at 95%; applyControlPlane counts streamed paths without flooding the drill-in log; proven by deploy_progress_internal_test.go (streaming shows count not a pinned Percent; streamed paths counted-not-logged) + foundingStandupProgress.test.ts (bare climbing count + indeterminate shimmer)"
  },
  "summary": "Fixed the silent deploy step: updateNode now streams store-path progress, every founding event carries a real clock, and the running step shows an elapsed clock while the bar tracks measured work instead of pinning full.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1765 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1765, "status": "success", "commits": [ "2587a9ea" ], "changed_files": [ "STATUS.md", "app/src/components/founding/FoundingStandupProgress.vue", "app/src/i18n/founding/g2.en.ts", "app/src/i18n/founding/g2.es.ts", "app/src/i18n/founding/g2.fr.ts", "app/src/i18n/founding/g2.nl.ts", "app/src/lib/founding.ts", "app/tests/unit/foundingStandupProgress.test.ts", "internal/clan/adapter.go", "internal/clan/deploy_progress_test.go", "internal/founding/access.go", "internal/founding/communityidentity.go", "internal/founding/deploy.go", "internal/founding/deploy_progress_internal_test.go", "internal/founding/journey.go", "internal/founding/manualpath.go", "internal/founding/orchestrator.go", "internal/founding/preview.go", "internal/founding/resume.go", "internal/founding/services.go", "internal/founding/standup.go", "internal/founding/standupi18n_internal_test.go", "internal/founding/toolchain.go" ], "tests": [ { "command": "go test ./internal/founding/ ./internal/clan/ -count=1", "exit_code": 0 }, { "command": "golangci-lint run ./internal/founding/... ./internal/clan/...", "exit_code": 0 }, { "command": "go vet ./internal/founding/ ./internal/clan/", "exit_code": 0 }, { "command": "CI=true pnpm vitest run tests/unit/foundingStandupProgress.test.ts tests/unit/foundingStandupI18n.test.ts tests/unit/i18nSeam.test.ts", "exit_code": 0 }, { "command": "CI=true pnpm vue-tsc --noEmit -p tsconfig.json", "exit_code": 0 }, { "command": "CI=true pnpm eslint (changed app files)", "exit_code": 0 } ], "criteria": { "Ask 1 — wire progressSink into updateNode so the services/control-plane applies narrate store-path counts like every other long leg": "internal/clan/adapter.go: updateNode's Invocation gains OnLine: progressSink(events, n, Stage(\"update\"), \"\"); proven by internal/clan/deploy_progress_test.go (TestDeploy_UpdateNarratesStorePathProgress: streamed lines arrive as Progress events under the update stage)", "Ask 2 — stamp logEvent/logEventKeyed with the real clock (o.nowTime())": "internal/founding/standup.go: Standup gains an injected now clock (json:\"-\") re-wired on every o.load() (orchestrator.go); logEvent/logEventKeyed stamp At: st.nowTime(); proven by standupi18n_internal_test.go TestLogEventStampsTheClock + TestLogEventDefaultsToWallClock (no event left at 0001-01-01)", "Ask 3 — show elapsed time on the running step": "DeployRow.ElapsedSecs (deploy.go) set in publishDeployProgress (journey.go) and re-stamped on every poll by StandupState/refreshElapsed (standup.go); rendered as '{time} elapsed' in FoundingStandupProgress.vue; proven by deploy_progress_internal_test.go TestStandupState_ElapsedTicksOnPoll + foundingStandupProgress.test.ts (elapsed clock, h:mm:ss roll-over, hidden when done/failed)", "Ask 4 — a full bar must not sit still: the bar tracks real work instead of pinning": "journey.go publishDeployProgress: while the apply streams store paths the running row moves on its MEASURED count (PathsDone) with an indeterminate bar, not the estimatePercent line-count estimate that pinned at 95%; applyControlPlane counts streamed paths without flooding the drill-in log; proven by deploy_progress_internal_test.go (streaming shows count not a pinned Percent; streamed paths counted-not-logged) + foundingStandupProgress.test.ts (bare climbing count + indeterminate shimmer)" }, "summary": "Fixed the silent deploy step: updateNode now streams store-path progress, every founding event carries a real clock, and the running step shows an elapsed clock while the bar tracks measured work instead of pinning full.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1765
No description provided.