Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
# cargo-nextest configuration. Two profiles for people, one for CI:
#
# cargo t everyday: everything except modules named slow* / stress*
# cargo tf the gate: everything
#
# The skip is by name, so the convention is the whole mechanism: a test that
# needs more than ~1s alone either gets fixed or moves into a `slow`/`stress`
# module, and the 5s slow-timeout below surfaces new offenders in every run's
# summary. Two independent things run the skipped tier anyway: the pre-push
# hook (`scripts/install-git-hooks.sh`) and CI, which runs `-P ci` below.
[profile.default]
default-filter = "not test(/(^|::)(slow|stress)[a-z0-9_]*::/)"
# One run shows every failure; fail-fast costs a whole extra loop to learn
# about the second one.
fail-fast = false
failure-output = "immediate-final"
status-level = "fail"
final-status-level = "slow"
# Nothing in the everyday tier should take 5s alone, so a marker means "new
# slow test" or "wedged". Kill at 2 minutes so a hung test cannot stall a loop.
slow-timeout = { period = "5s", terminate-after = 24 }
[profile.full]
# `all()` is load-bearing: profiles inherit `default-filter` from
# profile.default, so without it the gate would skip the very tier it covers.
default-filter = "all()"
fail-fast = false
failure-output = "immediate-final"
status-level = "fail"
# The slow tier legitimately sits in the 10-20s range.
slow-timeout = { period = "30s", terminate-after = 8 }
# No retries: a gate should tell the truth (profile.ci follows the same rule).
[profile.ci]
# CI runs every tier, like `cargo tf`: `all()` overrides the everyday skip it
# would otherwise inherit from profile.default.
default-filter = "all()"
# No retries: a retry turns a flaky test green, and the suite's real flakes
# were found because CI showed them failing.
retries = 0
failure-output = "immediate-final"
fail-fast = false
status-level = "fail"
final-status-level = "slow"
# Hosted runners (Windows especially) are several times slower than a
# workstation, so the everyday 5s marker would flag most of the suite. Kill a
# test only after 10 minutes: long enough for a slow runner, short enough that
# a hang fails the job instead of eating its whole timeout.
slow-timeout = { period = "60s", terminate-after = 10 }