Repository navigation
perf(daemon): sign only a checkout at startup, through the validated cache - #5209
Conversation
Size Report
Startup median (7 runs, lower is better):
Affected plugins
|
This comment has been minimized.
This comment has been minimized.
|
No blocking code problems were found at db7844f. Skipping the signature for installed daemons changes no restart decision, because the client already never compared signatures for installed pairs. A source checkout still detects source changes through the validated signature path, and the new test covers an edited dependency. Not blocking: these can be taken or left: the running-daemon resolver repeats the installed-package check and lazy signer selection from Could a host-kit code-identity resolver own the checkout-only signing rule and the lazy import, with Not verified here: the new test was not run, and matching signatures between a live checkout daemon and its client were not reproduced; the author reports both. Not verified here: the eager-closure budget for the new dynamic import on the daemon startup path was left to CI, and that result was not inspected. The only checks that did not pass are two cancelled |
|
Re the design question: yes, done in 814679c.
The fixture comment now names both |
This comment has been minimized.
This comment has been minimized.
|
No blocking code problems were found at 814679c: the shared identity resolver now owns the checkout-only signing rule and the lazy import for both callers, the test fixture comment now says what marks a checkout, and nothing from the earlier review remains open. Every check passed or was skipped, including both |
…cache The daemon walked its own import graph on every start, installed packages included, although clients compare installed trees by origin and version alone. Resolve the origin first: an installed daemon registers no signature, and a checkout replays it through the stat-validated cache the client uses. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A running daemon and a launching client apply the same rule through resolveDaemonCodeIdentity: an installed tree reports its origin only, a checkout signs its entry through the lazily loaded cache. Each caller picks the entry. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The package boundary test names host-kit's exports: code-identity replaces code-signature-cache, which no other package imports now. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
814679c to
e82d3ef
Compare
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 issues found at e82d3ef, and nothing remains open from the earlier review of 814679c. CI is green, with no failing or pending jobs, and nothing else needs to happen before merge. Not verified here: tests and live daemons were not run, the performance figures and the db7844f live signature match are author-reported, and the local validation in the PR description is for 814679c and db7844f, so the evidence for the current head is CI only. |
Summary
Daemon startup resolves its code origin first. An installed daemon registers no signature and walks no import graph: clients compare installed trees by origin and version alone. A checkout daemon signs its running entry through the stat-validated cache. Daemon and client share this rule in host-kit's
resolveDaemonCodeIdentity; each picks the entry. An embedder'scodeIdentitystill wins, and a checkout without a process entry registersunknown.Before / after
Registration of a built installed tree:
codeOrigin: installed,codeSignature: graph:129:…codeOrigin: installed, nocodeSignatureCompatibility decisions do not change. Lifecycle diagnostics no longer show an installed daemon's signature.
Signature cost at db7844f, 20 samples per median, macOS, load about 34:
Installed spawn-to-registration: no resolvable change (medians 329/301 ms over 30 samples, 298/304 ms over 60).
Validation
At 814679c:
At db7844f: base sources fail the installed and warm-checkout cases; live daemons matched an uncached walk.
Self-review only.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.