Repository navigation
Description
From the Oct 11–16 2026 Run retrospective, finding 4. Tracking issue: #721.
The evidence below is historical and attributed to the supplied report (repository snapshot 5504c97); it has not all been independently reproduced. Limited current-checkout checks were made at 53bb9c6. This is filed for maintainer triage, not automatic Pickup.
Requested outcome and validation
Provide a documented, conservative affected-test entry point, such as scripts/affected-tests <base>, and make the Factory implement skill follow repository test guidance. Proposed mappings from the report are starting points, not an exhaustive allowlist: site changes need browser tests plus relevant Rust site checks; release scripts need release tests; Rust source, shared test support/fakes, and other broad-impact changes need the full suite. Unknown or mixed paths must not silently skip relevant checks.
Use cargo nextest run for the full suite where available, with a documented setup or fallback. Document this binary-only crate's valid selectors (--bin thirdshift <module>::tests, --test <file>); it has no lib target. Push/open the PR early enough for CI to overlap work, and avoid repeating equivalent full-suite validation on a head already covered by successful CI or a PR already merged/closed.
Validate representative site-only, release-only, Rust/shared-support, mixed, and unknown diffs, preserving relevant checks. Measure full-suite runtime and document local versus CI responsibilities. Changing the blanket local full-suite gate is a policy decision for triage.
Current checkout check: skills/thirdshift-implement/SKILL.md still requires the full suite once at the end, and macOS CI already uses nextest. Correction to the historical report: current CI triggers on both pull requests and pushes to main; the overlap concern concerns unpushed implementation branches.
Original finding, including evidence, proposed fixes, and confidence
4. A 20–23-minute local full suite gates every implement session (Factory skill and Repo)
- Evidence:
skills/thirdshift-implement/SKILL.mdsays "the full test suite once at the end".cargo testruns the ~40 test binaries one after another and sums to 19–23 min on this host. CI's Linux job does the same suite in about 9 min.cargo-nextestis installed in~/.cargo/binbut unused. ci.yml already uses it on macOS for exactly this reason.- Cases where the full run added nothing:
- update https://thirdshift.app/ based on the latest which is part of thirdshift #663 ran it for a change to
site/only. - make prompts and skills page sections fold closed and open on header click #683 ran it for a diff with no shipped Rust, since
prompts_pageis test-only. - A Merge run reports "review required" without trying a merge it knows will be refused #707 ran it a second time, and CI on the same commit went green before it finished.
- Tickets keep their repository from the sub-issue graph to the Run #672 re-ran it for 19 min, then kept polling for 12 min after seeing the PR MERGED.
- update https://thirdshift.app/ based on the latest which is part of thirdshift #663 ran it for a change to
- CI triggers only on
pull_request. Holding the PR for the local suite delayed CI by 15 min in make prompts and skills page sections fold closed and open on header click #683 and kept a reviewed commit unpushed for 20 min in A Merge run reports "review required" without trying a merge it knows will be refused #707, which widened the race window. - On the other side: agy sessions fail on agy 1.3.3: pass the prompt as -p's value #658's full run did catch a real fixture failure that targeted tests missed.
- Cost: 20–45 minutes of every implement session.
- Fix:
- Repo, deterministic:
scripts/affected-tests <base>maps changed paths to commands:site/**→npm test --prefix siteplus--test share_card --test site_deploy;scripts/release*→--test release;src/**,tests/support/**,tests/fakes/**→ the full suite viacargo nextest run.
- Point AGENTS.md at the script. Also note there that the crate has no lib target:
cargo test --libfailed in Check re-run reads CI as passed before the re-run's checks are listed, and Self-merges red CI #686 and agy sessions fail on agy 1.3.3: pass the prompt as -p's value #658; use--bin thirdshift <module>::testsand--test <file>. - Factory skill: "Run the tests your change affects (the repo may name them). Open the PR as soon as the branch is pushed. Don't re-run the full suite on a head whose CI already passed, or after the PR is merged or closed."
- Repo, deterministic:
- Confidence: medium-high. Owners may still want a local full run before src/ changes; nextest keeps that cheaper.
Activity
JacobStephens2 commentedon Oct 21, 2026
Agent Brief
Category: enhancement
Summary: Implement sessions run the tests their change affects; this repository says which those are and runs its full suite with nextest
Current behavior:
The thirdshift-implement Factory skill tells every implement session to run "the full test suite once at the end". In this repository that means
cargo testover about 40 test binaries one after another. That takes about 20 minutes on the factory host, even for a change that touches only the website or a release script. CI then runs everything again before any merge. CI's macOS jobs already use nextest, configured in this repository, but nothing local does. The crate has no library target, socargo test --libfails. The valid selectors arecargo test --bin thirdshift <module>::testsandcargo test --test <file>, and AGENTS.md doesn't say so.Desired behavior:
This repository gets an affected-tests entry point, such as a script that takes a base ref. It maps the files changed since that ref to the checks to run, then runs them:
cargo nextest runwhen nextest is installed, andcargo testotherwise, saying which;It never skips a check silently: an unrecognised path means the full suite.
AGENTS.md names that entry point and the valid test selectors for this binary-only crate.
The thirdshift-implement Factory skill says to run the tests the change affects, using the repository's documented selection where it names one, and otherwise the full suite once at the end, as today. It also says not to run the full suite again on a head whose CI has already passed, or after the pull request is merged or closed.
Key interfaces:
UPDATE_PROMPTS=1 cargo test prompts_page.Acceptance criteria:
cargo testwith a printed note.Out of scope: