Skip to content

0.0.17 ER2: retire the service's scheduled fleet tick #796

Closed

Description

@jparker2006

Parent

Ticket ER2 of spec #786 (0.0.17).

What to build

The service no longer runs the fleet tick on a schedule: the tick job, its registration and its tests go, exactly as ER1's map lists. Everything else the service does is unchanged.

Owned paths

  • crates/service/src/tick.rs
  • crates/service/src/lib.rs (shared: the tick module and job lines)
  • crates/service/src/runtime.rs (shared: the tick wiring)
  • tests/service/ (shared: only the files ER1's map assigns to ER2, such as t4b_*.rs and t5_tick.rs)
  • tests/service/main.rs (shared: their module lines)
  • contracts/service.v1.md (shared: the tick section)
  • changes/<this ticket>.md

Relies on: contracts/engine-retirement.v1.md

Links

Acceptance criteria

  • Exactly the map's delete list for this ticket is gone; nothing kept changes behaviour
  • The full suite is green, and the web view's kept route tests pass unchanged
  • Closes as not needed, each with a comment naming this spec: the ones ER1's map assigns to ER2
  • One changelog line, kind removed, starting Retired:
  • Test rule (The test rule: what earns a test, and what never does #687): every new test protects a supported behaviour, a contract others rely on or a safety invariant, and the pull request says per test catches: <the bug>, or no new test: <why>. No mock-returns-stub, source mirroring, compiler re-checks, quota tests or unreachable cases; a bug gets a failing test first.
  • Every test the pull request deletes names its keeper (a test that still catches its bug) or says the behaviour it protected is gone.

Proof

E1 and E3 (the diff against the map, reviewed; the full suite green) and E4 (the changelog check).

Activity

  1. added this to the 0.0.17 milestone on Nov 15, 2026
  2. added
    ready-for-agent
    on Nov 15, 2026
  3. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/796-retire-service-tick

  4. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Builder question: one path gap that ER1's map does not list.

    Found: with ER2's cut applied alone (on main at 72374af), cargo test -p openwiz-service --test t5-health fails 1 of 55: runtime::actual_service_registers_health_without_replacing_tick_update_or_other_jobs (tests/service/t5_runtime.rs). Its wait loop also requires v["tick"]["last_ended"]["how"] == "failed", which never comes once the service registers no scheduled tick. It is the same class as the l12-registration waits that Q7 already grants (polish #867). The map's combined build missed it because ER3 deletes t5_runtime.rs there; the "ER2 alone" row ran no tests.

    Path: tests/service/t5_runtime.rs (ER3, #797, owns it; ER3 has no pull request yet).

    Smallest change: delete one line, line 346:

                 && v["incidents"]
                     .as_array()
                     .is_some_and(|rows| rows.iter().any(|i| i["tries"]["first"]["comment"] == 7001))
    -            && v["tick"]["last_ended"]["how"] == "failed"
             {

    Checked locally: with it, t5-health passes 55/55. The test keeps its other assertions (health registers and completes its record beside the update and other jobs); only the wait on the retired tick's run goes.

    Options:

    1. Grant that exact one-line edit to ER2, same intent as D4/Q7 (recommended: ER2 then merges green on its own, and ER3 later deletes the file anyway).
    2. Keep it ER3's, and order ER2 after ER3 (a new real link).

    Recommendation: 1.

  5. added
    needs-info
    on Nov 16, 2026
  6. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: asked the orchestrator

  7. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: granted. ER2 may make the one-line edit in tests/service/t5_runtime.rs that drops the wait on the retired tick's last_ended, the same class as the l12 waits. Nothing else in that file; ER3 keeps the rest. Record it as a Ruling: line and in Facts.

  8. added 2 commits that reference this issue on Nov 16, 2026
  9. removed
    needs-info
    on Nov 16, 2026
  10. added a commit that references this issue on Nov 16, 2026
  11. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: asked the orchestrator

  12. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: fix by order, not code, approved under PG1 (the owner's standing rule that a re-cut which only reorders, with no change to scope, interfaces or gates, is approved by the orchestrator). ER2 now also waits for ER3 (#797, PR #918): takeover is retired before the tick job, which answers review finding R1 without throwaway code. ER2's pull request #920 stays as it is and merges right after #918. The ticket's ## Links gains one line and nothing else changes; the builder keeps running. Reviewer: R1 is resolved by this ordering; say so at the re-check.

  13. added a commit that references this issue on Nov 16, 2026
  14. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

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