Repository navigation
Conversation
Size Report
Startup median (7 runs, lower is better):
|
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.
|
This PR is ready at a192a07, and there are no conflicts. The only failures are three cancelled PR-body check jobs, which look like superseded runs, and the diff touches no body-check route. Not verified here: the session-shutdown test run itself and the exact point in the session command handler where shutdown is refused; both were traced from the test harness and the PR body. Not blocking, and fine to take or leave: #4941 edits the same loop in the same file for the same Coverage failure, so whichever merges second will conflict and only one of the two should land; and the |
|
Superseded by #4941, which landed the same test fix on 0.22. |
Summary
0.22 Coverage is red since #4917 merged on top of #4911 (run 44996420221). A #4917 test expected
DEVICE_IN_USEwithout a session name for a no-lease-idshutdownon a leased session's own address. With #4911 in the base, the shared lease check refuses that request first withUNAUTHORIZEDLEASE_SESSION_MISMATCH(fieldleaseId). That is the intended, stricter rule.The looped test becomes two tests: with the lease id,
DEVICE_IN_USEnames the session; without it, the refusal isUNAUTHORIZEDand does not name the session. Test-only; no production change. No scope expansion.Validation
pnpm vitest run packages/daemon/src/sessions/handlers/__tests__/session-shutdown.test.ts: 7 passed (1 failed on 0.22 before the change).pnpm typecheck,oxlinton the file: pass.