Repository navigation
Todo
Labels
epic/scheduled-tasksEpic: scheduled-tasks - all issues of this effort carry itprimary-parent/scheduled-tasksPrimary parent epic scheduled-tasks (design §3)queue/claimedQueue worker lifecycle statesource/dispatchFiled by pm-dispatchstatus/triagedTriaged and routed (see agent note)stray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)work/assignedQueue worker lifecycle state
Description
You are a code-review agent running as a dispatched session in this
repository. Your job is a suggestions pass: survey the codebase for real,
actionable improvements and turn the verified ones into GitHub issues.
Dispatch context — read this first
- You are running in this repository's LAPTOP CHECKOUT (the repo's primary
checkout on the owner's laptop). Work there; do not clone the repo
elsewhere. - A tracking issue and a queue task were ALREADY created for this run by
the dispatcher, and this session is already claimed against them. Do
NOT create another tracking issue for this run, and do not dispatch
further tasks. - There is NO plan-approval step. Proceed directly; do not stop to ask
for approval of a plan.
What to review
Survey the codebase across these five areas:
- Cleanup — dead code, duplicated logic, obsolete files or config,
leftover scaffolding. - Performance — hot paths doing avoidable work, missing caching or
batching, inefficient data structures or queries. - Security — unsafe input handling, secrets or credentials in code or
config, over-broad permissions, missing validation at trust boundaries. - Code Health — confusing structure, missing or misleading error
handling, functions/modules that have grown hard to change safely. - Testing — important behaviour with no coverage, tests that assert
nothing, flaky or order-dependent tests.
Verify before you file — no speculative filings
Every candidate finding MUST be verified against the actual code before
it becomes an issue:
- Read the code at the location you cite. Confirm the problem is real in
the current tree, not an assumption from a filename, a comment, or a
pattern you expected to find. - Check the surrounding context (callers, tests, configuration) — a
candidate that turns out to be intentional, already handled elsewhere,
or not actually reachable is rejected, not filed. - Search the repo's OPEN issues before filing. If an existing open issue
already covers the finding, comment on that issue with your evidence
instead of opening a duplicate.
Filing
- Per real, verified finding, file ONE issue in this repo with
gh issue createfrom the laptop checkout. Each issue must include:- the canonical component label for its area; use
app/pm-stackfor
PM-stack / aggregator issues in this repo.app/aggregatoris a legacy
alias and must not be used for new filings. - a clear title naming the problem;
- file/line evidence (the exact paths and lines you verified);
- why it matters (impact, risk, or cost);
- the suggested fix shape — the direction of the fix, not a full
implementation.
- the canonical component label for its area; use
- CAP: at most 5 filings per pass (new issues plus evidence comments
on existing issues). If you verify more than 5 findings, file the 5
highest-impact ones and list the rest in your summary as
verified-but-deferred. - Do NOT dispatch further tasks for the findings, and do not fix them in
this pass. The issues are the record; the fleet's normal lanes pick
work up from them.
Finish
End with a short summary — as your session output, and as a comment on
this run's tracking issue if you can identify it — covering:
- Filed — each issue you opened or commented on, with its number and
one line on the finding. - Verified and rejected — candidates you checked against the code and
did not file, with the reason. - Needs a human decision — findings that are real but whose fix is a
judgement call (trade-offs, product direction, risk appetite), stated
plainly so a human can rule on them.
If the pass finds nothing worth filing, say so in the summary instead of
opening low-value issues to fill the pass.
Launched by pm-dispatch for developing-today/code. Queue task and OpenCode session ids follow in a comment below.
Metadata
Metadata
Assignees
Labels
epic/scheduled-tasksEpic: scheduled-tasks - all issues of this effort carry itprimary-parent/scheduled-tasksPrimary parent epic scheduled-tasks (design §3)queue/claimedQueue worker lifecycle statesource/dispatchFiled by pm-dispatchstatus/triagedTriaged and routed (see agent note)stray-workStray work: not tied to a design or roadmap item (AUDIT-7 Lane 7)work/assignedQueue worker lifecycle state
Activity
developing-today commentedon Nov 15, 2026
Dispatch launch confirmed.
dezren39 commentedon Nov 15, 2026
Suggestions pass summary (ses_e5e1f59a5e3ffesJR1hev3hWjT)
Filed
/api/sw-probe(unauthenticated) appends unbounded unique foreign/evicted service-worker script URLs into in-memory maps (pm-stack/aggregator/src/push.ts:110-133, exposed atpm-stack/aggregator/src/server.ts:3409-3415), growing process memory and GET response size over time.pm-stack/projector/src/server.ts(e.g./itemsL305-322,/commentsL325-340,/linksGET L346-351,/subjects/*L418-431,/hotL444-456,/hot/checkpointsGET L458-463,/reconcileL500-504) let store/runtime errors escape, yielding unstructured 500s unlike/healthand webhook paths.Verified and rejected
pm-stack/dispatchrequest validation/auth/queue handling (src/validate.ts,src/auth.ts,src/server.ts,src/launch_failure.ts): checked OIDC/JWKS verification, directory scoping/symlink canonicalization, issue attach verification/compensation, and async launch-failure cancellation paths; no concrete defect found. Dispatch tests pass locally (bun testinpm-stack/dispatch: 207 pass).pm-stack/projectorwebhook intake, delivery-id dedupe, hot-list cursor/checkpoint validation, and link-ref gating (src/server.ts,src/store.ts,src/webhook.ts): checked bounded parsing, bearer-gated writes, and store-side checkpoint invariants; no concrete defect found beyond the filed error-handling consistency issue. Projector tests pass locally (bun testinpm-stack/projector: 137 pass).pm-stack/aggregatorroute param decoding and body handling: sampled path-segment decoding usesdecodePathSegmentwith null checks at all dynamic route sites insrc/server.ts; JSON body reads go through boundedsrc/request-body.ts. No verified traversal/injection issue found in sampled routes.pm-stack/aggregatorfull test suite: not completed in this pass because the livepm-aggregatorservice already bound loopback port 4871 on this laptop checkout; a spawned test run failed atsrc/server.ts:4310withEADDRINUSE(system service pid observed on :4871). This is an environment conflict, not a verified product regression.Needs a human decision
pm-stack/aggregator/src/server.tsis a large entrypoint (~4.4k LOC) with module-load side effects (HTTP/IPC servers, timers, boot warm-up/reconciler/alerts startup). Extracting a reusable/startable module boundary would improve testability and isolation, but the right split and rollout (deployment/script compatibility) is an architectural/productivity trade-off rather than a clear correctness bug.pm-stack/dispatchattach flow whenissue_numberis supplied but the GitHub App is not installed on the target repo (verifyAttachTargetreturnsunverified, enqueue proceeds with an attached issue ref): this is explicit in current behavior/warnings, but whether to hard-reject unverified attach targets vs keep task-as-tracking-record behavior is a policy choice.Open issues were checked before filing to avoid duplicates (
gh issue list --state opensearches incl. projector/aggregator/sw-probe/error-handling terms); no existing open issue was found covering the two filed findings.dezren39 commentedon Nov 17, 2026
Task 19319 (triage) — triaged: this is the tracking record of a dispatched suggestions session that already ran to completion; no follow-on.
Fresh verification this run:
Label set: status/triaged added. The dispatcher-owned labels are left as they are.