Skip to content

feat(native): start selected services with hack up <service> (HACK-2633) - #1233

Open
roodboi wants to merge 25 commits into
nextfrom
claude-lead/hack-2633-native-targeted-up
Open

roodboi wants to merge 25 commits into
nextfrom
claude-lead/hack-2633-native-targeted-up

Conversation

@roodboi

@roodboi roodboi commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

hack up <service> [<service>…] starts the named services and their transitive Compose dependencies. The live native owner adds new resources to the current run. Running services keep their container IDs, routes, and loopback ports. Plain hack up starts the remaining active services after a partial start. The desktop catalog can start a service on a native project.

Targeted JSON uses the Compose lifecycle shape, with services.started limited to services started by the command. A complete append records the CLI’s normalized full-file identity, so an unchanged down followed by plain up restores the recorded layout. Unknown names return E_SERVICE_NOT_FOUND. The owner checks free bridge sockets before allocating new endpoints and verifies the added publications before settling the start. Failure diagnostics include the owner's fixed refusal code and message.

ps can answer during an append. Ctrl-C cancels the append and the owner rolls back its effects. down cancels the append and stops the run. If an interruption leaves pending work, down --recover uses the committed receipt to clean up. The resulting stopped-data-retained receipt remains readable. Confirmed rollback leaves resumed services stopped with their routes and ports closed. Existing services remain under restart supervision.

Targeted start and recovery

TLC checks 291 distinct states. The two controls fail when a dependency is created without recorded ownership and when a start replaces an existing container identity. The rendered state chart passed its label check. Focused CLI tests, the full Linux runtime suite, the desktop argv regression, compiled CLI plan checks, and macOS runtime cross-Clippy passed locally. Real VM qualification and the independent re-review are pending.

The VM follow-up fixes catalog Redis named-volume admission, owner control during a provider-lease hold, and recovery from an interrupted append receipt. New runtime fixtures cover a pinned Redis image declaring /data and both sides of append enrollment followed by exact selection restore.

Runtime compatibility

After this version, older prereleases cannot read run receipts. Run hack down before downgrading.


Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hack-docs Ready Ready Preview Nov 25, 2026 3:02am UTC

Request Review

@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown

HACK-2633

@roodboi

roodboi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T15:23:04.619545Z 7a2a787 Manual request
🔒 Security Review ✅ Completed 2026-11-24T15:25:33.511971Z 7a2a787 Manual request
ℹ️ About Codex in GitHub

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

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

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

@roodboi

roodboi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@roodboi

roodboi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@roodboi

roodboi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Ready for lead: 7a2a787

Local verification passed for root typecheck and check, generated CLI reference, Bun build and help smoke, targeted Bun fixtures and catalog E2E, Linux Rust fakes and Clippy, Apple Silicon cross-Clippy with default and all features, desktop native command routing, and privacy check. TLC explored 52 states and both negative controls failed at the expected invariants. Hosted CI and the requested code review are still running.

Real VM rows for this revision:

Row What to verify
Add Redis Start web, then run hack service add redis and hack up redis --json. Redis answers PING. The JSON result uses the Compose lifecycle fields. hack ps --wide --json lists both in the original run and web has the same container ID.
Publications With spare bridge capacity, keep polling web's two HTTPS names and loopback TCP port while starting a second routed service with its own port. Existing requests keep succeeding through the same HTTPS frontend. Both new endpoints answer. Also exercise the first HTTPS route on a previously unrouted run.
Selection and desktop A targeted start starts its transitive dependencies, leaves unrelated services absent, and preserves the container ID on a repeated start. An unknown name returns E_SERVICE_NOT_FOUND. Start redis from the native desktop catalog follows the same path.
Stop and recover hack down stops both containers and retires both publication sets. In a disposable run interrupted during append, confirm ps shows the observed state and hack down --recover retires every owned effect with named data retained.

The branch carries #1227 and #1229. Previously admitted stopped containers and new host relay bindings still require a fresh graph start.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a2a787392

ℹ️ About Codex in GitHub

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

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

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 7a2a787392

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@roodboi

roodboi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Real-VM rows at 7a2a787392df: adding a service to a running run fails

I built the bundle from this head and ran it on an Apple Silicon Mac with a real VM. Each run used a fresh, isolated native home and a synthetic Compose project:

  • web has two HTTPS names and a loopback port, and depends on base.
  • api has one HTTPS name and its own port, and depends on apidep.
  • extra is unrelated to both.

The native HTTPS frontend was Caddy 2.11.9 on port 18443. HTTPS checks went through loopback with SNI, using the native CA.

Result: a targeted start works on a stopped project. Adding a service to a run that is already up fails every time with graph_owner_recovery. That blocks the Add Redis and Publications rows.

Row Result Evidence
Add Redis fail up web --json started base and web only. hack service add redis saved redis: image: redis:7-alpine. up redis --json failed after 3.3 s with E_STARTUP_INCOMPLETE ... (graph_owner_recovery) Foreground graph owner unavailable or uncertain. exec redis -- redis-cli ping returned "not active in this run". ps --wide --json kept the same run and the same web and base container IDs, and did not list redis. A cold up redis --json fails for a separate reason, graph_image_volume_uncovered: the catalog entry has no named volume for the image's VOLUME /data. With redisdata:/data added by hand, the append still fails with graph_owner_recovery.
Publications fail Default pool (2 bridge slots, sized by web): up api --json failed in 0.4 s with graph_owner_recovery, not a capacity refusal. Pool made by hand with 8 slots: same failure. During each attempt, web's two HTTPS names and its port stayed up: 0 failures in 387 requests polled every 0.2 s, the same HTTPS listener pid, and the same web container ID. Neither api endpoint ever answered. First route on a run with no routes: up apidep --json started only apidep, with no HTTPS listener. The following up api --json failed the same way.
Selection partial Pass: up web --json started web and base (its dependency) and left api, apidep and extra absent. Repeating up web --json kept the web and base IDs. up nosuchsvc --json returned E_SERVICE_NOT_FOUND and changed nothing. Not shown: an ID kept across a repeated start of a newly added service, because no append succeeded.
Desktop fail (CLI argv only) I ran the argv the desktop core sends for Start redis on native (up --detach --json --no-interactive redis from the project root, with HACK_RUNTIME_BACKEND=native). It failed with the same graph_owner_recovery. I did not drive the desktop window.
Stop (down) pass, with a note After each failed append, ps showed status=runtime_degraded, with the requested service phase=uncertain, state=absent. Plain hack down exited 0 every time, stopped every container, closed the loopback ports and the HTTPS listener, and kept the named data. ps then reported phase=stopped-data-retained, not not_started. I did not run the interrupted-append down --recover case.

The owner was live while the extend was refused. During the run, hack-native graph owner-status --run-id <run> --json returned ok=true, foreground_alive=true, runtime_verified=true and phase=ready-observed. The failure was the same in every variant:

  • the original owner detached or in the foreground;
  • an added service with no ports or volumes, with a named volume, or with a route and a port;
  • the default pool or a larger one made by hand;
  • TMPDIR through a symlink or a plain directory.

The CLI message drops the owner's cause code, so this run does not show which check refused.

Seen too, already tracked as HACK-2623: after a targeted first start, a whole-project up on the same stopped pool fails with bridge_conflict, because the pool was sized for the first selection.

Filed:

  • HACK-2635: a targeted start on a running native run always fails with graph_owner_recovery. This blocks HACK-2633.
  • HACK-2636: the catalog Redis (and likely the other catalog entries whose images declare volumes) cannot start on native: graph_image_volume_uncovered.

Every run cleaned up its pool and processes, and no process was left behind.

🤖 Generated with Claude Code

roodboi commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Ready for lead: 755bec8

#1229 is in next. This head includes the live-owner allocation fix from HACK-2635, bounded owner refusal details, scoped rollback, and restart supervision for newly published services. The M5 runs and independent re-review are pending.

  1. Add Redis. Start web, record its container ID and publications, then run hack service add redis. Verify that the catalog adds a named /data volume. Run hack up redis --detach --json --no-interactive. Redis answers PING and is the only entry in services.started. ps lists both in the same run. The original web ID and publications still answer. A repeated start reports an empty started list. down stops both.
  2. Concurrent publications and capacity. Poll web’s two HTTPS names and published TCP port while adding a routed service with its own published port and dependency. Both sets answer through one TLS frontend and web keeps its ID. Repeat with too few free bridge sockets. Expect owner detail bridge_capacity_exhausted before the new service appears in the receipt or the engine. For a route-free run, also check that sufficient spare sockets allow its first route.
  3. Routed restart policy. Append a routed service with restart: unless-stopped. Wait through at least two supervisor ticks and check both route sets and owner readiness. Terminate only the added container’s app process once. Verify the policy restarts it with the same container ID and a new start time, its route recovers, and web keeps its route and ID.
  4. Serial append and cancellation. During a slow append, ps answers and a second targeted start returns E_NATIVE_STILL_STARTING. Ctrl-C cancels the append and leaves web serving. In a separate attempt, down cancels the append and stops the combined run.
  5. Whole project and retained data. After a partial start, plain hack up starts the remaining active services. down closes the ports and routes. ps shows stopped-data-retained and a later up reattaches named data. Revert the Compose file, then stop and start again. Removed services stay absent and their named volumes remain retained.
  6. Interrupted receipt recovery. Kill the project owner mid-append with state.pending present. down --recover cleans up both service sets and retains named data. ps loads the settled stopped-data-retained receipt.
  7. Desktop Start. Use the native catalog’s Start Redis action, or run its equivalent hack up --detach --json --no-interactive redis --path <project-root> with the native backend. Verify the Compose-shaped result. On a branch instance, verify the action addresses that instance.

roodboi commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Ready for lead: cc0e6bf

Round 2 fixes are in 6f05a1bc4e908283dba9749f70617ae7ca28f4cd. This revision also merges next at 1031c3aacc28e816425d01444ffea6c64358a08d.

  • The CLI sends the complete normalized file’s plan ID and byte digest when it describes the combined run. Exact restore reuses the recorded resource layout. Authored YAML parsing for change warnings is advisory.
  • Restart supervision continues for existing services during failed append recovery. Confirmed rollback closes the resumed service’s publications and leaves it stopped. Plain up also resumes a run whose services have exited.
  • Linux runtime tests, macOS runtime cross-Clippy, compiled plan checks, focused Bun tests and the desktop argv regression passed. The two real-VM fixtures await execution.

M5 rerun rows

  1. Exact restore through the CLI. Start web with named data, add a service with its own named volume, and run targeted up, down, then plain up. Use a Compose file whose service and volume order differs from sorted key order. Confirm the same run and retained volumes, and compare input_plan_id and normalized_input before and after restore. Run the opt-in fixture in tests/e2e/native-targeted-start.test.ts on the matching compiled CLI.
  2. Routed restart policy. Append a routed service with restart: unless-stopped, check both routes across supervisor ticks, then terminate only the added container’s app. Confirm the container keeps its ID, its start time changes, and the route recovers while web keeps its original ID and route.
  3. Routed rollback and retry. Append a service with an HTTPS route and a published TCP port, plus a dependent that holds readiness open. Prove both publications are live before canceling or failing the append. Confirm the added entries disappear, web’s ID and route stay live, and a retry claims the same hostname and port. The ignored runtime fixture is routed_append_rolls_back_route_and_port_and_releases_hostname_for_retry.
  4. Plain up resumes exited services. Leave the owner alive with its services exited. Run plain hack up --detach --json. The selected containers start with their existing IDs, and services.started reports the services this command resumed.

The previous VM rows cover the catalog Redis path, capacity, cancellation, and interrupted receipt recovery.

@roodboi

roodboi commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Real-VM rows at 755bec858c21

I built the bundle from this head and ran it on an Apple Silicon Mac with a real VM. Each scenario used a fresh, isolated native home and a synthetic Compose project:

  • web has two HTTPS names and a loopback port, and depends on base, which has a named volume.
  • api has one HTTPS name, its own port and restart: unless-stopped, and depends on apidep.
  • slow takes 45 s to become healthy and sits behind a profile.
  • extra is unrelated to the others.

The HTTPS frontend was Caddy 2.11.9 on port 18443, checked through loopback with SNI and the native CA. Where a pool was made by hand, it had 10 bridge sockets. For one control I also built next at 1031c3aacc28.

Summary: the HACK-2635 fix works. Targeted appends with routes, ports and dependencies now succeed, and the capacity, restart and rollback rows pass. Three rows still fail: appending catalog Redis, cancelling an append, and recovering from an owner killed mid-append.

Row Result Evidence
1. Add Redis fail (HACK-2666) up web started [base,web]. service add redis now writes redis-data:/data and a top-level redis-data. up redis --detach --json --no-interactive fails in 3.3 s: causeCode=graph_image_volume_uncovered. A repeated start fails the same way. The same Compose file starts Redis cold (started=[redis], PING answers), so only the append path fails. web keeps its ID, run and routes. down stops everything, and ps then shows stopped-data-retained.
2. Publications and capacity pass Pool made by hand: up api returns started=[api,apidep], and both new endpoints answer. One TLS listener served both sets (same pid), web kept its ID, and the poll of web's two names and port saw 0 of 54 requests fail. Default pool sized by web (2 slots): up api is refused in 0.35 s with bridge_capacity_exhausted. Neither api nor apidep appears in ps, the engine's container list is unchanged (the same 2 containers before and after), and web's poll saw 0 of 27 fail. Route-free run: up apidep starts no HTTPS listener, and the following up api adds the first route, which answers.
3. Routed restart policy pass Measured after 5 s on the appended api: owner ok, ready-observed, runtime_verified. Killing api's python process once (inside the container) restarted it with the same container ID and a new start time. Its route and port recovered: 8 of 94 api requests failed, about 1.6 s. web's names and port saw 0 failures, and web kept its ID.
4. Serial append and cancellation fail (HACK-2668) 8 s into a slow append, ps answers (status runtime_degraded). A second targeted start blocks 15.2 s and then fails with provider_busy ("holder: start") instead of E_NATIVE_STILL_STARTING. Ctrl-C on a foreground up slow prints "request was canceled; its outcome may be uncertain" and exits 1, but slow still becomes healthy and stays in the run. web kept serving with the same ID. down during a detached append fails after 15.2 s with provider_busy; the append then finishes ok and the run stays up.
5. Whole project and retained data pass (with a 30 s warm-up wait; see HACK-2669) After a partial start of web, plain up -d started the rest. web kept its ID, and the profiled services stayed absent. down closed both ports and both routes, and ps showed stopped-data-retained. The next up -d reattached the data in base's volume and in a newly added service's volume. After reverting the Compose file, the removed service stayed absent. When it was added back, its volume data was still there. One caveat: exec straight after a warm up -d fails and can take the run down. That happens on next too, so it is not this PR (HACK-2669).
6. Interrupted receipt recovery fail (HACK-2670) I SIGKILLed the run's owner 0.3 s into a slow append, with state.pending present. First attempt (default pool): ps showed owner_unconfirmed (slow create-intent). down --recover exited 0, both sets were gone, the ports and HTTPS closed, ps showed stopped-data-retained, and state.pending was cleared. But the following up web was refused with graph_restore_refused, so the named data could not be reattached. Second attempt (hand-made pool): ps showed runtime_busy with no items. down --recover failed with "cleanup is unconfirmed", web's port still answered, and state.pending remained. up then asked for down --recover again, a loop.
7. Desktop Start fail for Redis (HACK-2666) / branch addressing pass On branch instance b2, up --detach --json --no-interactive --branch b2 redis --path <root> fails with the same graph_image_volume_uncovered. The same command form for extra returns the Compose-shaped result with data.branch=b2 and started=[extra]. ps --branch b2 lists it, and the main instance stayed stopped-data-retained.
Review N3(b): rollback that includes a route pass Added stall, a routed service with an HTTP probe that never passes. The append rolled back after 15.1 s (causeCode=graph_service_failed). web's two names and port answered 200 on every one of 62 requests each. stall's hostname returned no response (code 000) on all 62 requests and afterwards, never 200 and never another service's body. ps showed observed/ready-observed with stall absent. The owner stayed ready, the TLS listener was the same, and web kept its ID. A variant whose container exits immediately rolled back in 0.7 s (engine_rejected) with the same results.
Review N3(c): retry the same hostname pass With a working command, up stall returned started=[stall] and its route answered at once. web's poll saw 0 of 39 fail, and nothing was left over from the rollback. down closed both routes.

Every scenario's cleanup confirmed that no process was left behind.

Filed: HACK-2666, HACK-2668, HACK-2670 (all blocking HACK-2633), and HACK-2669 (also on next).

🤖 Generated with Claude Code

roodboi commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Ready for lead: c028c77

This head includes the round 2 fixes and the three blockers from the real-VM report. The follow-up is 8577ab91db132103704d51e6783e527a1941afa1, with next merged at c87c5665d2234c39bd7bf058d5bb4f98eab4040b.

  • HACK-2666. Append admission verifies the new image against the run's full storage inventory, including the appended named volume. The ignored runtime fixture uses a pinned Redis image that declares VOLUME /data.
  • HACK-2668. A competing targeted up asks the owner before waiting for the provider lease. Down can reach and cancel the append while that lease is held. The append client keeps its request socket open, so Ctrl-C closes it and the owner rolls back the append.
  • HACK-2670. Same-boot recovery uses the committed receipt even when the first append write is pending before extending commits. A subsequent up reconciles the stopped service roster to the reviewed selection and reattaches its named data.

VM rerun

  1. Start web, run hack service add redis, then targeted up redis. Verify redis-data:/data, PING, the unchanged web ID and publications, and cleanup with down. Repeat with the desktop Start argv on a branch instance.
  2. Append a routed service with a dependency and a published TCP port. Poll both sets of publications and verify clean admission refusal with an undersized pool.
  3. Append the routed restart: unless-stopped service. Restart its app once and verify the same container ID, a changed start time, and restored publications.
  4. During a slow append, verify ps answers and a second targeted up returns E_NATIVE_STILL_STARTING promptly. In separate attempts, Ctrl-C must exit 130 and retire the newly selected service, and down must cancel the append and stop the combined run.
  5. Run plain up after a partial start and with only exited services. Verify the started list, retained-volume restore, and the reverted-file row. The round 2 ready note has the exact normalized restore fixture.
  6. Kill the owned run during the first pending append write and after append enrollment. For both windows, verify down --recover closes ports and routes, ps reads stopped-data-retained, and up web restores the intended selection and its data marker.
  7. Recheck rollback after the new hostname and port become live, then retry both publications. Verify web's ID and publication set survive.

Root typecheck and lint, the 351 focused Bun tests, 1,869 Linux runtime tests, macOS all-target/all-feature cross-Clippy, the Apple Silicon candidate binary check, compiled CLI plan checks, and the desktop argv regression passed. The VM rerun and independent re-review are pending.

@roodboi roodboi added the ci:mac Run macOS checks for this pull request label Nov 25, 2026
@roodboi

roodboi commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Real-VM rows at c028c7783ec1

I built one bundle from this head and ran it on an Apple Silicon Mac with a real VM, with a fresh, isolated native home per scenario. The fixture is the same as round 2:

  • web has two HTTPS names and a loopback port, and depends on base, which has a named volume.
  • api is routed, has a port and restart: unless-stopped, and depends on apidep.
  • slow takes 45 s to become healthy.
  • extra is unrelated to the others.

Added this round: rapi, which is routed and has a port, and rhold, which depends on rapi and never becomes healthy. The HTTPS frontend was Caddy 2.11.9 on port 18443, checked over loopback with SNI and the native CA. Hand-made pools had 10 bridge sockets. For a control I also used a next bundle at c87c5665, the commit this head merged.

Summary: the three former blockers are fixed. Adding Redis to a running run (HACK-2666), cancellation (HACK-2668) and mid-append recovery in both kill windows and both pool shapes (HACK-2670) all pass, as do capacity, restart, and both rollback rows. There are two new regressions:

  • hack exec fails on every run at this head, while it works on next (HACK-2675).
  • After a partial start plus a plain up, a down then up fails with live_source_contract (HACK-2677).

Because of HACK-2675, I checked PING, the start-time marker and the volume markers by running the same commands in the container through the pool's own engine socket.

Row Result Evidence
1. Add Redis pass up web started [base,web]. service add redis wrote redis-data:/data. up redis --detach --json --no-interactive returned started=[redis] in 6 s, and Redis answered PING (engine socket). ps showed one run with web's ID unchanged, and both HTTPS names and the port kept answering. A repeat start returned started=[] with the same Redis ID. down stopped both, and ps showed stopped-data-retained.
2. Publications and capacity pass Pool made by hand: up api returned started=[api,apidep]. Both new endpoints answered through one TLS listener (same pid), web kept its ID, and 0 of 54 polled web requests failed. Default pool (2 slots): up api was refused in 0.6 s with bridge_capacity_exhausted. Neither service was in ps, and the engine held the same 2 containers before and after. A route-free run took its first route with spare sockets.
3. Restart policy pass Measured after 5 s on the appended api: owner ready-observed, runtime_verified. Killing its python process once left the same container ID with a new start time. Its route and port recovered after 8 failed requests (about 1.6 s). web had 0 failures in 138 requests and kept its ID.
4. Serial append and cancellation pass During a slow append, ps answered. A second targeted up returned E_NATIVE_STILL_STARTING in 0.2 s. Ctrl-C exited 130, and slow was gone from ps within 1 s and stayed gone. web kept serving with the same ID. In a separate attempt, down during a detached append exited 0; the append ended with graph_cancelled, and the combined run was stopped-data-retained with the port and routes closed.
5. Whole project and retained data fail (HACK-2677) Pass: after up web, a plain up -d started the rest, with the same web ID and the profiled services absent. down closed both ports and both routes, and ps showed stopped-data-retained. Plain up --detach --json with only exited services resumed them with started=[apidep,extra] and the same IDs. The reverted Compose file started without the removed service, and its volume data came back when it was re-added. Fail: the next up -d after that down failed with live_source_contract in 0.7 s, so the data could not be reattached. input_plan_id, normalized_input and plan_id were identical before and after. It reproduced 3 times: with a new service and volume (volume keys unsorted), with the file unchanged, and with no hack exec attempted.
6. Interrupted receipt recovery pass (4 of 4) Default pool and hand-made pool, each with two kill windows. Pending window: the owner was SIGKILLed the moment state.pending appeared. Enrolled window: the owner was killed after slow was in the receipt and state.pending was absent. In every case down --recover exited 0, both sets were gone, the port and both HTTPS names closed, ps showed stopped-data-retained, and state.pending was cleared. up web then started [base,web] in the same run with slow absent, and the marker in base's volume was still there.
7. Desktop Start pass On branch instance b2, up --detach --json --no-interactive --branch b2 redis --path <root> returned the Compose-shaped result with branch=b2 and started=[redis]. Redis answered PING, and the main instance stayed stopped-data-retained without Redis.
Rollback after live publications, then retry pass up rhold started rapi. Its route answered 200 228 times and its port 227 times before rhold failed readiness and the append rolled back (graph_service_failed). Afterwards the port was refused and the hostname returned Caddy's 403, never 200 and never another service's body. rapi and rhold were absent from ps, web kept its ID and TLS listener, and 0 of 822 web requests failed. A retry with rhold fixed returned started=[rapi,rhold], and the same hostname and port answered at once.
N3(b)/(c): rollback with a route, retry the hostname pass Probe that never passes: rolled back in 15.2 s, with 0 of 189 web failures. The failed hostname gave no response (000) throughout and after, with no stale route. A retry claimed the same hostname. An immediate-exit variant rolled back in 0.75 s with the same results.

Additional findings:

  • HACK-2675: hack exec fails in 0.2 s with graph_owner_recovery: graph_dependency_rebind_cancelled after every start shape at this head, including a whole-project up -d with no targeted start, ready plus a 30 s wait. The same scenario on next at c87c5665 runs exec twice with exit 0. The engine socket reaches the containers normally.
  • Row 5: the exited-services check needs a live owner. In the row as written, the restore had already failed, so I ran that check in a separate run, where it passed.

Every scenario's cleanup reported no processes left behind.

Filed: HACK-2675 and HACK-2677 (both block HACK-2633). HACK-2666, HACK-2668 and HACK-2670 have rerun evidence comments.

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:mac Run macOS checks for this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant