Repository navigation
feat(pi): show Pi and OMP background children as rows - #23201
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📥 CommitsReviewing files that changed from the base of the PR and between a8e499de7ee0b025af4ed55bb22f882521fdfaf3 and 2987942. 📒 Files selected for processing (12)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughPi and OMP hooks now publish active subagent snapshots with status payloads. Subagent lifecycle handling records child details, updates rosters as children start or exit, and resets roster state at session boundaries. The Pi-family event normalizer applies roster updates to eligible existing status rows. Tests cover roster contents, updates, clearing, queued posts, retries, and session changes. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Pi and OMP panes now show live background children as rows and keep final status updates correct when the session changes. The earlier concern that an unsent completion was lost on a session change is fixed, and tests cover it. No open issues remain that should block merging. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change retains authenticated status delivery and bounded child-row data. No introduced security vulnerability was established, but delayed-update attribution and recovery after interruption remain incompletely verified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation Issue
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
ℹ️ No critical issues — one rough edge inline.
Reviewed changes
- Child rows over the hook lane — the generated Pi status extension now remembers each live child's
agentType/description/startedAtand attaches the whole roster to every hook post; a newsubagents_updateevent restates the pane's last row when a child ends between lead events, so prompt, tools, and resume stay on the same row. - Host normalization —
normalizePiCompatibleEventcarriessubagentsonto every payload and foldssubagents_updateinto the existingmodel_selectrestatement path, refusing to invent a row, unhide aproviderSessionOnlyplaceholder, or restate another agent's row. - Roster boundaries — a Pi
/newsession resets the roster and settles a run the children held open; OMPsession_shutdown/session_switchreset through the sameresetSubagentRoster()helper. - Tests — server-level normalization tests plus generated-extension tests covering queue coalescing, runner exits, session boundaries, and in-process reload. Both changed files and the related listener/status suites pass.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Workflow runs excluded from child rows — the extension now records
mode: 'workflow'onstartedand a sharedisVisibleSubagent()keeps pi-subagents workflow orchestration runs inactive(so they still hold the pane) while dropping them from the publishedsubagentssnapshot;onRunnerExitswitched fromnewlyExitedtowasVisible, so a workflow's runner exit no longer posts a row update. This closes the prior review's unnamed-workflow-row finding. - Test coverage — pins that a workflow run never appears in
subagentswhile it still holds the pane, and that its completion settles the run viaagent_end.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Ignore roster updates after the lead row is complete. · pi-family-events.ts:36-55
src/shared/agent-hook-listener/providers/pi-family-events.ts:36-55
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winIgnore roster updates after the lead row is complete.
agent_endretains adonerow. A latersubagents_updatecan replace its roster and change the visible completed row.Suggested fix
if ( !previous || previous.providerSessionOnly === true || previous.payload.agentType !== agentType || + (eventName === 'subagents_update' && previous.payload.state === 'done') || (eventName === 'model_select' && !model) ) {
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: eaf745e1-ee5c-406c-bbd5-3aa2a7eb0774
📥 Commits
Reviewing files that changed from the base of the PR and between 263f13167a56bb073766ed2c54b0eabde4e13ee1 and 371a2e31fe23cd9e2b7758ce392f53008690d829.
📒 Files selected for processing (2)
src/main/pi/agent-status-extension-async-subagents.test.tssrc/main/pi/agent-status-subagent-roster-source.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
371a2e3 to
911a0db
Compare
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Reject subagents_update from a different OMP session. · pi-family-events.ts:36-55
src/shared/agent-hook-listener/providers/pi-family-events.ts:36-55
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winReject
subagents_updatefrom a different OMP session.The hook server handles requests concurrently. If session A’s request finishes body parsing after session B’s request, the server accepts both events for the same pane. The current branch checks only
agentType, then copies session A’ssubagentsinto session B’s latest payload. The current roster can therefore be replaced by the previous session’s roster.Compare the incoming OMP session identifier with the latest row before merging the roster. Same-session updates remain valid.
Suggested fix
const previous = state.lastStatusByPaneKey.get(paneKey) + const eventSessionId = readString(hookPayload, 'session_id') if ( !previous || previous.providerSessionOnly === true || previous.payload.agentType !== agentType || + (agentType === 'omp' && + (eventSessionId === undefined || previous.providerSession?.id !== eventSessionId)) || (eventName === 'model_select' && !model) ) { return null }
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: b0b23e2c-4877-4d8e-8c8a-f25a5102841c
📥 Commits
Reviewing files that changed from the base of the PR and between 371a2e31fe23cd9e2b7758ce392f53008690d829 and 911a0db324388b71fde57f982320b9060dee44b6.
📒 Files selected for processing (4)
src/main/pi/agent-status-extension-async-subagents.test.tssrc/main/pi/agent-status-extension-source.tssrc/main/pi/agent-status-handler-source.tssrc/main/pi/agent-status-ui-prompt-source.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Delta since the prior pullfrog review (371a2e31fe → 911a0db324, net +61/−2 over 4 files; the branch was rebased, so the scope was isolated by comparing the two trees for the PR's files):
- Kept a completion ahead of a new Pi session —
post()now computeskeepsCompletion: whensession_startfinds a queuedagent_endin the latest-only slot, it preserves that completion instead of overwriting it, so a/newcan no longer drop the completion and leave the pane onworking. - Settled a children-held OMP run on
session_switch— capturesheldByChildrenbefore resetting the roster and postsagent_end, matching Pi'ssession_startbehavior. ui_prompt_endno longer reports idle while children hold the run — forcesis_idle: falsewhenlifecycleState.waiting.- Tests — new cases for each path (in-flight completion behind a new session, OMP session switch, dialog close with live children). The two changed test files pass locally (45 tests).
ℹ️ Coalesced session_start skips the host's session boundary
When keepsCompletion folds a Pi session_start into the queued agent_end, the session_start event never reaches the host, so clearPaneTurnCacheState does not run and no hidden providerSessionOnly resume row is minted. The surviving agent_end is a visible done row that carries the previous session's cached prompt/tool until the new session's first before_agent_start. This is the intended trade (better than a stuck working row) and self-corrects on the next turn, but worth confirming it is acceptable if the stale prompt is visible on an otherwise-empty new session.
Technical details
# Coalesced `session_start` drops the host turn-cache clear
## Affected sites
- `src/main/pi/agent-status-extension-source.ts:211-219` — `keepsCompletion` rewrites the pending post to `agent_end` when `session_start` is posted with a queued completion, so no `session_start` payload is sent.
- `src/shared/agent-hook-listener/providers/pi-family-events.ts:23-30` — only Pi/Prime `session_start` calls `clearPaneTurnCacheState`.
- `src/shared/agent-hook-listener/listener-state.ts:293-300` — clears `lastPromptByPaneKey` / `lastToolByPaneKey`.
- `src/shared/agent-hook-listener.ts:151-160` — only `pi`/`prime-agent` `session_start` (with a non-null `providerSession`) mints the hidden `providerSessionOnly` row.
## Required outcome
The queued completion must survive (the fix). Decide whether the new session's first `done` row showing the previous session's prompt/tool is acceptable; it clears on the next `before_agent_start`.
## Suggested approach (optional)
If the stale prompt matters, have the host treat a normalized row whose `session_id` differs from the pane's previous row as a boundary and clear the turn cache / mint the placeholder — the extension cannot clear host caches itself.
## Open questions for the human
Is a `done` row inheriting the prior session's prompt/tool until the next turn acceptable, or should the boundary signal be re-emitted after the completion drains?DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Delta since the prior pullfrog review (911a0db324 → 4ca3e28179, 3 files, +96/−3):
- Roster cap derived from the host constant — the generated extension's
MAX_SUBAGENT_SNAPSHOTis now interpolated from the importedAGENT_STATUS_MAX_SUBAGENTSinstead of a re-typed32, so the extension cap and the host's normalization truncation cannot drift. The emitted value is unchanged (32), so there is no runtime behavior change. - Cap pinned in the generated-extension suite — a new test starts
AGENT_STATUS_MAX_SUBAGENTS + 4children and asserts the posted roster is capped at the host limit with the oldest ids retained. model_selectplaceholder guard pinned — the normalization suite now also asserts amodel_selectcannot unhide aproviderSessionOnlyresume row, covering the guard thatsubagents_updateshares.- Pi cancel beside a live child row pinned — a new server-level suite asserts Ctrl+C still settles a stopped row when the pane has no children, but leaves the working row and its child rows untouched (recording no cancellation) while a child runs, matching the trade documented in the PR body.
All 48 tests in the two changed suites pass, and pnpm tc:node is clean.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
4ca3e28 to
a8e499d
Compare
|
@coderabbitai on the two outside-diff comments, as of a8e499de7e:
@pullfrog on the coalesced |
|
Verified all three points against
No code changed; nothing to push.
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 5c8e0902-28c4-4bad-b84c-690fb4aadc09
📥 Commits
Reviewing files that changed from the base of the PR and between 4ca3e281793ed427a1dacd7f5eb5742ed4abd5df and a8e499de7ee0b025af4ed55bb22f882521fdfaf3.
📒 Files selected for processing (13)
src/main/agent-hooks/server-pi-normalization.test.tssrc/main/pi/agent-status-extension-async-subagents.test.tssrc/main/pi/agent-status-extension-omp-lifecycle.test.tssrc/main/pi/agent-status-extension-session-change.test.tssrc/main/pi/agent-status-extension-source.tssrc/main/pi/agent-status-extension-test-harness.tssrc/main/pi/agent-status-handler-source.tssrc/main/pi/agent-status-post-queue-source.tssrc/main/pi/agent-status-session-boundary-source.tssrc/main/pi/agent-status-subagent-event-fixtures.tssrc/main/pi/agent-status-subagent-roster-source.tssrc/main/pi/agent-status-ui-prompt-source.tssrc/shared/agent-hook-listener/providers/pi-family-events.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Delta since the prior pullfrog review (4ca3e28179 → a8e499de7e; the branch was rebased into a 4-commit history, so the scope was isolated by comparing the two trees for the PR's files — 13 files, net +1233/−337 over those paths):
- Run state moved where it survives a registration — children, the hold, the turn counters, and the parked map now live on
globalThisfor Pi (which re-evaluates the module on/reload) and onpi.eventsfor OMP, withownsPaneRosterkeeping an in-process task child off the lead's roster. - New session-boundary module — Pi
session_shutdownand OMPsession_switch/session_branchnow park and restore a resumed session's children, end a run whose session was replaced, and separate/reload, same-fileresume, andquitfrom a true boundary. An ended run is recorded asagent_end { session_boundary: true }. - New
finalPostsdelivery queue — a closing session's last word sits outside the latest-only slot, always drains before newer posts, and retries on its own timer, so it cannot be overwritten by the next session. - Turn counters unified into the shared roster —
runGeneration/endedRunGeneration/completionPostedGenerationmoved onto the roster andpostAgentEndOnce()now returns whether it settled the pane, givingisHeldByChildren()/isTurnInFlight()one home across registrations. - Host normalization — a Pi-family
agent_endcarryingsession_boundaryis stampedsessionBoundary, so a run ended by its session is recorded without an "agent finished" notification. - Tests — a new session-change suite with a reload/session-switch harness, plus fixtures extracted into a shared module; 96 tests across the four changed suites pass and
pnpm tc:nodeis clean.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
git rev-parse --short HEAD
ast-grep outline src/main/pi/agent-status-ui-prompt-source.ts
ast-grep outline src/main/pi/agent-status-post-queue-source.ts
ast-grep outline src/main/pi/agent-status-extension-source.ts
ast-grep outline src/shared/agent-hook-listener/providers/pi-family-events.ts
fd -i '^server.*\.ts$' src/main/agent-hooks
rg -n -C3 'ui_prompt_end|isHeldByChildren|await|drainPosts|session_id' src/main/pi/agent-status-ui-prompt-source.ts src/main/pi/agent-status-post-queue-source.tsLength of output: 10392 🏁 Script executed: #!/bin/bash
sed -n '1,100p' src/main/pi/agent-status-post-queue-source.ts
rg -n -C6 'session_id|function postOnce|function post\(|response|res\.|fetch\(' src/main/pi/agent-status-extension-source.ts
sed -n '1,125p' src/shared/agent-hook-listener/providers/pi-family-events.ts
ast-grep outline src/main/agent-hooks/server/server-lifecycle.ts
rg -n -C6 'res\.end|response\.end|ingest|handleHook|writeHead' src/main/agent-hooks/server/server-lifecycle.ts
rg -n -C4 'isHeldByChildren|ui_prompt_end' src/main/pi/agent-status-handler-source.tsLength of output: 19557
The ✏️ Learnings added
You are interacting with an AI system. |
a8e499d to
a948025
Compare
nwparker
left a comment
There was a problem hiding this comment.
Found and fixed fast Pi child consuming pending lead completion and OMP child bus publishing without pane ownership. Retained all settlement regressions plus session/reload boundaries; 356 tests pass, node typecheck and quality gate pass. Also repaired native-lint context type caught by fresh CI. Overlaps #23662: merge it first, then reconcile this branch while retaining generated-roster invariants and settlement tests.
Required PR Checks verify passed on this exact commit: a0174a36bb40a4358b1003b98bc52d258ac1ef8a.
a0174a3 to
63c6f32
Compare
The generated extension re-typed the 32-row limit as its own literal, so a change to AGENT_STATUS_MAX_SUBAGENTS would leave the extension posting rosters the host silently truncates on arrival. Interpolate the host constant instead, and cover the cap with a test that posts past it.
Publishing a subagent roster for Pi puts its panes behind the same child-work guard Claude and Codex sit behind, so Ctrl+C beside a live child no longer settles a stopped row. The extension reports no main-agent state, so Orca cannot tell a cancelled turn from Ctrl+C at the idle prompt of a lead children alone hold open, and keeps the live row. Both halves of that are now pinned, as is the resume-placeholder guard on the model_select arm of the same code path.
Pi re-runs the extension on a fresh event bus for /new, resume, fork and /reload, so the roster kept on that bus was lost and nothing ended the run the old session's children held open.
63c6f32 to
8ca1e75
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Delta since the prior pullfrog review. The branch is a rebased stack on main, so the scope was isolated by comparing the two trees for the PR paths; the material changes are 1c395cb (fix) and 8ca1e75 (test), with two later test-only integration commits on top.
- Retained an undelivered completion across a session boundary —
resetPostQueuenow scansactivePost/pendingPost/latestPostand moves any undeliveredagent_endintofinalPostsas the same object (rather than only a queuedpendingPost, and rather than a copy), so an in-flight acknowledgment retires its own queue entry and the completion is retried instead of dropped. - Kept the runner-exit grace timer across a same-session restart —
runnerExitCheckmoved from a registration-local variable onto the shared roster, so a/reload(module re-evaluation) or same-fileresumeretains a timer armed for an exited runner; its settle callback is rebound per registration. A true session end (/new, fork, quit, OMPnew/branch) still clears it. - Added tests — completion delivery is pinned across an OMP session boundary for scheduled-retry, in-flight-failure, and in-flight-success cases (asserting the old session's completions drain before the new session's
agent_start), and the runner-exit grace is pinned to clear on/new/quit. The four Pi status suites (106 tests) andpnpm tc:nodepass.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Delta since the prior pullfrog review (8ca1e75 → c61143d):
- Serialized status delivery across a Pi
/reload— the hook-post queue now lives in aHookPostQueueobject onglobalThis.__orcaPiStatusPostQueuefor Pi (OMP/Prime keep a per-registration queue), so a delivery continuation started by the pre-reload registration and the reloaded one share one queue. A preserved final completion is delivered exactly once and ahead of the next turn. - Retired a same-session completion when the next turn starts —
post()drops same-session, non-boundaryagent_endentries from the final queue onbefore_agent_start/agent_start, so a completion preserved by/reloadcannot be retried over the next turn's row;session_boundarycompletions and other sessions' completions are left intact, and an in-flight one still drains before the new turn. - Added reload-delivery tests — pins that an old completion is not retried over the next turn, that the next turn serializes behind an in-flight completion (success and failure), and that a failed completion still recovers on reload without another turn.
- Dependency/checkout bookkeeping — pins
@streamparser/jsonas a devDependency and bumps the cross-version checkout format so released sources that import it still extract.
All five Pi status suites (110 tests) pass, and pnpm tc:node is clean.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
@coderabbitai review Please review final head 2987942. Named main a47e0f5 was integrated; the sole conflict retained upstream’s stronger Windows prompt test contract. Reviewed Pi/OMP production sources are unchanged. Fresh 426 tests across 25 suites, node typecheck, changed-code gates and the real native OMP HTTP503 smoke test pass. Existing resolved findings retain their regression coverage. |
✅ Action performedReview finished.
|
nwparker
left a comment
There was a problem hiding this comment.
Low merge risk after the final repairs. Status delivery now survives reload without allowing an old same-session completion to overwrite the next turn. True session-boundary completions retain their original metadata and ordering. 426 focused integration tests and the native HTTP retry smoke test pass, along with typecheck and quality gates. The full PR Checks workflow and all runnable CI on this exact head have passed, and review findings are addressed. Pullfrog was manually disabled repository-wide and its integration-review run cancelled; the stale pending bot check is documented. The feature code is unchanged from its completed bot-reviewed state, and this integration was reviewed manually.

ELI5
When a Pi or OMP agent starts helpers that run in the background, Orca's sidebar only showed the main agent as "working", with nothing under it. Now each running helper shows up as its own row under the agent, the same way Claude and Codex helpers already do, and disappears when it finishes.
What Changed
Before: a Pi or OMP pane with background children (pi-subagents runs, OMP
taskchildren) showed one "working" row and no hint of what was running.After: each live child appears as a row under the agent, showing the pi-subagents agent name (e.g.
scout) or OMP's short task description, and how long it has been running. A row goes away as soon as that child ends, even if the main agent is idle at the time.How it works:
subagents_updateevent. If an update is already queued or waiting to retry, it sends nothing extra, because that update will carry the new list.pi-family-events.ts), the list becomes the row'ssubagents.subagents_updatere-publishes the pane's last row with the new list, the same waymodel_selectalready re-publishes it with a new model; the two now share one code path. It never creates a row, never reveals a hidden resume placeholder, and never changes another agent's row./new, resume, fork and/reload. The children, turn counters and runner-exit grace check survive a same-session restart, so an exited child can settle the pane after/reloador same-file resume without another turn. Real session end or quit clears the check./new, fork, resume into another session), the old copy of the extension ends the run under the old session, before the new session's first update. Unacknowledged completions, including those retrying or already in flight, have their own queue slots ahead of the next session. Successful in-flight delivery removes its slot without a duplicate. A completion created by closing the session is marked as a session boundary so Orca records it without an "agent finished" notification. pi-subagents never reports the old session's children to the new one; if the old session is resumed it does, so its children are set aside and restored then./reload, so an earlier HTTP request and the new registration send in order. Starting another turn retires an unacknowledged ordinary completion for that same session; real session-boundary completions remain queued./newand branch cancel OMP's own background jobs, so the run ends there; fork and resume leave them running, so the children are kept.One knock-on worth calling out: Orca already refuses to synthesise a "stopped" row for a pane whose live children could be the only thing keeping it busy — pressing Ctrl+C at a lead's idle prompt cancels nothing, so claiming a cancellation there would be wrong. Claude gets around that by reporting its main agent's state separately from the pane's combined state, so Orca can keep the children working and still record the cancellation. The Pi extension does not report a separate main-agent state, so from now on Ctrl+C on a Pi pane that has a live child row records nothing at all: the row stays "working" until the children finish. Without children it still settles as stopped, exactly as before. Both halves are pinned by tests. Teaching the extension to report its own main-agent state would recover the cancel marker and is the natural follow-up.
Why
The issue explains why publishing children over OSC isn't enough: an OSC update replaces the hook row entirely, which drops the resume information. Sending the children through the hook lane keeps the prompt, tools and resume details on the same row.
The extension's row limit is interpolated from Orca's own
AGENT_STATUS_MAX_SUBAGENTSrather than re-typed, so the two cannot drift apart and leave the extension sending rows the receiver quietly drops.The extension sends the whole list every time instead of "started" and "ended" messages. Its send queue only keeps the newest update, so a single "ended" message could be lost; a full list fixes itself on the next update, and a missing list simply means no children.
Only the agent name or OMP's short description is shown. pi-subagents redacts task prompts, so the task text is never sent.
Linked Issue
Fixes #22868
This covers what Pi and OMP can report today: each running child, by agent name or task description. The issue also proposes a "monitoring" state for watcher children and a per-child model. Orca already shows both for Claude and Codex, but neither pi-subagents nor OMP sends either piece of information, so there is nothing for Orca to show yet. Once a Pi-family agent sends them, they can go through the same path this PR adds.
Visual Proof
Before helpers:

Claude code reference:

After the helpers:

Testing
Session changes were recorded on real Pi 0.87.1 with pi-subagents 0.71.0 against a scripted local model:
/new, fork, resume,/reload(idle and mid-turn), a workflow, quit, and a failed delivery, each with a live child. The test harness now restarts the extension the way Pi does (fresh event channel, every handler called); before, it reused one channel, which hid that the roster did not survive a restart.Not covered:
/reloadstops a workflow while one of itsasync: truechildren keeps running, the pane reads done until that child finishes.Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)