Skip to content

A switch to start a test server with background work disabled #497

Done

Description

@Jacksondr5

Problem

A test server started on a copy of real data starts real work. Testers have to find and switch off each trigger one at a time, and a missed one starts turns on copied threads, in real repositories.

AGENTS.md (Test data) tells agents to seed a worktree with a copy of the live database. It does not say that the copy carries live work with it.

Triggers found so far

Each of these was found the hard way during the Squadron fold (2026-10-04 to 2026-10-08):

  • pending and retrying A2A deliveries, and pending or running effects;
  • scheduled tasks and queued runs;
  • usage-limit auto-resume, and the stored limit-recovery state;
  • "continue threads after a server update";
  • Crew launch reports and live copied Crews (seat-finish sweeps and reconciles);
  • provider runtimes and bindings, and peer records;
  • project scripts and auto-pull;
  • project roots that still point at real repositories, and thread worktree paths.

One earlier tester created worktrees and branches in a real repository this way.

Proposal

One switch for test servers, for example a dev-runner flag, that starts the server with all background work disabled: no delivery, no schedules, no auto-resume or continuation, no Crew sweeps, no project scripts or auto-pull. Nothing starts a turn unless the tester does.

This follows "prefer giving the person and agents a tool to repair a problem": one documented switch instead of a checklist that grows with every new background feature.

Done when

  • A server started with the switch on a copy of real data starts no turn, sends no delivery and writes to no project folder until a person or test acts.
  • AGENTS.md (Test data) names the switch.
  • A new background feature has one obvious place to honour it.

Not covered

Project roots pointing at real repositories. The switch stops background work; a tester who launches a thread in a copied project still acts on the real folder. Repointing roots stays a seeding step, or becomes its own tool.

Upstream note

Part of this touches upstream's server start-up (zone 3). The switch should gate J5's own reactors in J5 code, and reuse upstream's existing settings for upstream's features where they exist.

Activity

  1. bryantderosier commented on Dec 1, 2026

    @bryantderosier
    Collaborator

    Closing this, we solved it a different way. Instead of a switch you flip when you start the server, the copy gets cleaned up when it's made: vp run migrate-dev-db stands down peers, pending deliveries, schedules and live Crews in the copied database (#521). AGENTS.md points people at it, and live tests run on an isolated home from setup-agent-live-test.ts, so they never pick up real background work either.

    A separate "no background work" flag would just be a second way to do the same thing.

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