Skip to content

Add a root package.json with check scripts so Unfret registers and shares open-pstack's checks #185

Closed

Description

@ericlitman

Outcome

Unfret's reviewer lanes run open-pstack's checks through run_check, once per head and shared across lanes, instead of each focal lane running bun install and the tests through run_command.

Evidence (mastra-pilot 2026-10-14 panel backlog triage)

  • open-pstack is now most of the panel's load: 42 of the 56 full reviews since 2026-10-11.
  • open-pstack has no root package.json, so Unfret registers no checks for it. Unfret registers a check for each root package.json script and runs it with the packageManager named there (mastra-pilot packages/sandbox-lanes/src/index.ts:91-96).
  • Without registered checks, each focal lane runs bun install and the tests through run_command. That costs about 70 s per focal call. Both focal lanes repeat it on every review, and nothing shares the work.
  • Since mastra-pilot MASTRA-1048 (release 0.1.98), a registered check runs once per head and every lane that asks for it shares the result. On mastra-pilot, gate now takes 4.7 s shared against 80 s unshared. open-pstack is public, so Unfret does not prefetch its checks before the lanes start, but sharing still applies.

Acceptance criteria

  1. A root package.json names packageManager (bun) and one script per check a reviewer needs: at least install-and-test, and typecheck or lint if the repository has them. Each script runs from a clean checkout.
  2. The next Unfret review of an open-pstack PR shows the checks registered and shared: run_check calls in the run detail, and no focal run_command running bun install.

Constraints

  • Add only scripts the repository's CI or contributors already run. No new tooling.

Source: mastra-pilot record projects/mastra-pilot/records/2026-10-14-panel-backlog-triage/cluster-reports/panel-performance.md (mobilyze-llc/docs, commit bd5cdd54). Related: MASTRA-1048.

Activity

  1. added a commit that references this issue on Oct 14, 2026
  2. ericlitman commented on Oct 14, 2026

    @ericlitman
    OwnerAuthor

    PR #186 merged as f1c88d8 (parents 53b6d59 and the reviewed head 3fa7f0b). The root package.json names [email protected] and registers three checks: test, typecheck and static. CI's verify now runs the same scripts.

    Criterion 1 is met. Criterion 2 is partly met. Per-call measurements come from the panel run store:

    The remainder is MASTRA-1071 in mastra-pilot. It makes prepared workspaces install bun dependencies and updates the run_check description to match. Its session posts the shared-check proof here and closes this issue. One constraint for MASTRA-1071: open-pstack's bun.lock files are in plugins/pstack/skills/poteto-mode/scripts/ and .claude/skills/verify-open-pstack/, not at the root. Unfret's keyOf currently requires a root lockfile.

  3. ericlitman commented on Oct 15, 2026

    @ericlitman
    OwnerAuthor

    Live proof (acceptance criterion 2): the Unfret review of #192 (head a648c540, run panel:a648c540…:7AW8UH51Al9:8ihbmBrWcL8, panel release 0.1.104) registered and shared the checks.

    • Both focal lanes called run_check test, and both got one shared execution (shared: true). The lane that started it waited 50.5 s; the other got the same result in 0.4 s.
    • No focal lane ran bun install or any other install through run_command (0 of 117 tool calls).
    • typecheck and static ran in each lane. test runs its own bun install, which rewrites node_modules/.bin, and a lane that copies a check's writes runs later checks itself.

    Before, on #186 head 6c25e20: each focal lane ran bun install twice through run_command, and test ran unshared in both lanes (55.9 s and 55.2 s).

    The panel now installs bun dependencies before the lanes start, including this repository's nested bun.lock directories (mobilyze-llc/mastra-pilot#827, MASTRA-1071).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions