Skip to content

0.1.1 NC6: the fleet's heartbeat as a local scheduled job #2223

Closed
openwizdev/WizSkills
#251

Description

@jparker2006

Parent

Ticket NC6 of spec #2216 (0.1.1).

What to build

The fleet's heartbeat runs on this computer with no CloudRoom. launch-fleet gains a heartbeat script:

  • Commands: install, status, pause, resume, remove and run. install shows an exact preview of the job it adds and waits for one yes.
  • The job: a per-user launchd agent on macOS; a systemd user timer on Linux, or a crontab line where systemd isn't available. Every 10 minutes it runs the bundled GitHub-only check. When lines are due, it starts one orchestrator wake through the host's driver, with skill launch-fleet.
  • Run now: run is "run the fleet now" by hand.
  • One tick at a time: a lock makes a second tick refuse.
  • Logs: each tick writes a short log line.

launch-fleet's skill and Launch section describe this as the launch for any host other than CloudRoom. For those hosts there are no room-cli loops, loop report and archive become no-ops, and thread tell becomes the driver's wake. The CloudRoom launch is unchanged.

Owned paths

  • skills/launch-fleet/scripts/heartbeat.py in openwizdev/WizSkills (new)
  • skills/launch-fleet/scripts/test-heartbeat.py in openwizdev/WizSkills (new)
  • skills/launch-fleet/references/launch.md in openwizdev/WizSkills (shared: a new section for hosts other than CloudRoom)
  • skills/launch-fleet/SKILL.md in openwizdev/WizSkills (shared with NC7: only the lines for hosts other than CloudRoom)
  • .changeset/ in openwizdev/WizSkills (one new note)

Relies on: kernel/driver.v1.md

Links

Acceptance criteria

  • On fake launchctl, systemctl --user and crontab, install writes exactly the previewed job only after yes, and remove leaves nothing behind.
  • A due check starts exactly one wake through a fake driver. An idle check starts none. A concurrent tick refuses.
  • run ticks at once. pause stops ticks until resume.

Proof

P5: test-heartbeat.py, red first.

Activity

  1. added this to the 0.1.1 milestone on Nov 22, 2026
  2. added
    ready-for-agent
    on Nov 22, 2026
  3. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    NC0 is merged, and the builder launch is recorded in the planner’s read-back. The build-ticket readiness check requires the fleet start record on this ticket. Please add that record here so the builder can claim NC6.

  4. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started (the J87 planner's direct start of spec #2216; Codex Sol 6.2 Medium builder under J300 A)

  5. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: working
    harness: codex
    model: gpt-6.2-sol
    skills: build-ticket@0.2.1
    step: The R1 regression and focused suite pass, and full CI is running for the re-check.
    time: 2026-11-22T07:06:33Z

  6. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Builder question: please grant one supporting edit to check/run.py for P5. The CI suite inventory rejects the owned skills/launch-fleet/scripts/test-heartbeat.py as unlisted unless it is registered. The proposed complete edit is this one added line in the launch-fleet suite list, before the host proof:

    +                     ['python3', '-I', 'skills/launch-fleet/scripts/test-heartbeat.py'],
                          ['python3', '-I', 'skills/launch-fleet/scripts/test-host.py'],

    This runs the required heartbeat proof in CI through the existing runner and preserves the inventory guard.

  7. added
    needs-info
    on Nov 22, 2026
  8. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #2223:

    • check/run.py

    Only the one line that registers skills/launch-fleet/scripts/test-heartbeat.py in WizSkills CI. Nothing else in that file changes.

  9. removed
    needs-info
    on Nov 22, 2026
  10. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Builder question: please grant one supporting edit to skills/launch-fleet/scripts/records.py for P5 and the GitHub-only check. When a snapshot contains an existing thread-free agent record, the bundled check can call room-cli thread list if that tool is present. A non-CloudRoom heartbeat should use the driver run map even on a machine that also has CloudRoom.

    Proposed complete supporting edit, in main():

    -        threads = discover() if needed(world) else None
    +        threads = discover() if os.environ.get('LAUNCH_FLEET_GITHUB_ONLY') != '1' and needed(world) else None

    The owned heartbeat code will set the flag for its check and driver-started wake. The owned proof will use the real record helper and a fake room-cli to prove the discovery is skipped. The existing default path is preserved.

  11. added
    needs-info
    on Nov 22, 2026
  12. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #2223:

    • skills/launch-fleet/scripts/records.py

    Only the one line in main() from 7075133289: skip discover() when LAUNCH_FLEET_GITHUB_ONLY=1. The default path stays as it is.

    NC7 (#2224) also has a grant on records.py, for resolving driver-started reviewers. Touch only this line, and whichever merges second fixes the conflict.

  13. removed
    needs-info
    on Nov 22, 2026
  14. jparker2006 commented on Nov 22, 2026

    @jparker2006
    MemberAuthor

    Merged in WizSkills #251 at its approved head 7e7aaf6f (APPROVE 7077032528).

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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions