Repository navigation
fix(cli): judge install-from-source lease admission by its daemon command - #5169
Conversation
…mand The admission check asked the daemon registry about the public name, which it does not declare, so install-from-source kept the heartbeat by a failed lookup. Resolve the daemon command first; an http(s) URL source uploads nothing and may use admission, and any other source keeps the heartbeat. Also pin that a stored lease without its own backend is not admission-checked. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Size Report
Startup median (7 runs, lower is better):
|
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
The proxy lease policy lists the daemon command install_source but looked up the public CLI name, so install-from-source without a stored lease failed with "run open first". Resolve the daemon command before the lookup. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
|
The code at c5fb827 needs one fix: the proxy help now promises flags that The help sentence now includes Not blocking: these can be taken or left: export The earlier documentation thread no longer applies, because the text now says the other list items still apply to an http(s) URL. Not verified here: no tests, CLI commands or device runs were performed, so the flag refusal and the regression value of the tests were judged from the code, schema and generated docs. Not verified here: the by-spec All 21 checks pass at this commit. Before merge, the proxy help must be true for |
install-from-source allocates through the proxy but its schema takes no spec flags, so the help no longer promises them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on a94a0d1. The verdict and the full list are in the summary comment.
|
The PR is ready at a94a0d1. The problem from the earlier review is fixed: the proxy help no longer promises device spec flags for Not blocking: this can be taken or left: in the lease contract, add "unless another item in this list applies" to the sentence about by-spec allocations that name no spec or selector, because Two earlier threads do not apply and can be resolved: this one is fixed, since the contract now says the other list items still apply to an http(s) URL, and this one needs no change, since strict flag parsing refuses spec flags on All 22 checks pass. No further change is required before merge. Not verified here: no tests, CLI commands or device runs were executed, so the flag refusal and the stored-default route were traced in code. Not verified here: the by-spec |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
No code problems were found at 0e74db6. The change since the earlier review of a94a0d1 is one documentation line, and no requested changes remain. Two open threads no longer apply and can be resolved. The first thread, about the lease contract text for The 22 reported CI checks show no failures, and the required evidence is in place. Not verified here: tests, CLI commands and device runs were not executed, and behavior was traced in code. The stored-default spec route was not traced again because that code is unchanged since a94a0d1. Test and mutation results in the PR description were not re-run. Nothing else needs to change before merge. |
Summary
Follows #5151 and the #5165 mutation audit.
install-from-sourceruns asinstall_source, but two checks mixed the names. Both now useresolveDaemonCommandName(fromservesPublicCommand).install-from-sourcenow allocates likeinstall(by spec without--udid/--serial). Help updated.Before / after
install-from-source https://…:lease_heartbeat,install_source; head sends one admission-checkedinstall_source.run open first; head allocates.Validation
The three changed test files at c814ec7: 59 passed (help string edited after that run).
The new proxy test fails with
run open firstwhen the lookup is reverted, and passes with the fix.Mutations at 4a85bbc:
state.leaseBackend !== options.leaseBackendfails the backend test.install_sourceas upload-free fails the local-path test.An explicit backend mismatch is refused earlier, so the backend test stores none; it reallocates. CI pending.
Security
Resend and heartbeat rules are unchanged. With real client and daemon, on a non-proxy-provider connection, a refused URL install sends no heartbeat and is resent once.
install,reinstalland local paths keep the heartbeat.🤖 Generated with Claude Code