Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
@codex review |
|
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:
The branch carries #1227 and #1229. Previously admitted stopped containers and new host relay bindings still require a fresh graph start. |
There was a problem hiding this comment.
💡 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".
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
Real-VM rows at
|
| 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
|
Ready for lead: 755bec8 #1229 is in
|
|
Ready for lead: cc0e6bf Round 2 fixes are in
M5 rerun rows
The previous VM rows cover the catalog Redis path, capacity, cancellation, and interrupted receipt recovery. |
Real-VM rows at
|
| 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
|
Ready for lead: c028c77 This head includes the round 2 fixes and the three blockers from the real-VM report. The follow-up is
VM rerun
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. |
Real-VM rows at
|
| 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 execfails in 0.2 s withgraph_owner_recovery: graph_dependency_rebind_cancelledafter every start shape at this head, including a whole-projectup -dwith no targeted start, ready plus a 30 s wait. The same scenario onnextatc87c5665runs 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
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. Plainhack upstarts 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.startedlimited to services started by the command. A complete append records the CLI’s normalized full-file identity, so an unchangeddownfollowed by plainuprestores the recorded layout. Unknown names returnE_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.pscan answer during an append. Ctrl-C cancels the append and the owner rolls back its effects.downcancels the append and stops the run. If an interruption leaves pending work,down --recoveruses the committed receipt to clean up. The resultingstopped-data-retainedreceipt remains readable. Confirmed rollback leaves resumed services stopped with their routes and ports closed. Existing services remain under restart supervision.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
/dataand both sides of append enrollment followed by exact selection restore.Runtime compatibility
After this version, older prereleases cannot read run receipts. Run
hack downbefore downgrading.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.