Skip to content

test(workers): cover scheduler negative matrix - #407

Closed
Cuarroc wants to merge 2 commits into
mainfrom
codex/m4-r7-02-negative-matrix
Closed

Cuarroc wants to merge 2 commits into
mainfrom
codex/m4-r7-02-negative-matrix

Conversation

@Cuarroc

@Cuarroc Cuarroc commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Dieses Paket prüft, dass der Scheduler ohne erfüllte Schranken keinen Worker startet.
Es belegt außerdem den Schutz gegen Doppelstarts, veraltete Schreibrechte und unvollständige Abhängigkeiten.
Produktionscode wurde nicht geändert.

Report

What changed

  • Added a fake-adapter refusal matrix for draft goals, unresolved dependencies, exhausted attempts, profile mismatch, unattested route state, the test-only scheduler permit, and the global emergency stop; every runtime refusal records zero spawns and a named reason.
  • Added concurrent dispatch coverage proving exactly one launch and rejection of the losing owner/fence write.
  • Added dependency-boundary coverage for fulfilled, open, missing, foreign-project, and 65-entry truncated dependency sets; only the fully satisfied case launches.
  • Retained the positive proof that admitted work creates exactly one spawn and one durable launched run intent.
  • Tests only; 280 added lines in src-tauri/src/workers.rs.

Evidence

  • Base: ae29c63 (origin/main after fetch), predecessor PRs feat(workers): dispatch one continuous task (M4-R7-01) #340 and Make continuous claim dependency gate strict and bounded #373 verified merged.
  • Candidate: 67e1bcf.
  • npm run dev:start-check — exit 0 before builds (RAM and Cargo slots within the server limits; provider usage file was not supplied).
  • cargo test --manifest-path src-tauri/Cargo.toml dispatch_ -- --list — exit 0; exact new Rust test names observed.
  • cargo test --manifest-path src-tauri/Cargo.toml workers::tests:: -- --nocapture — exit 0; 148 passed.
  • bash scripts/ci/red-first.sh --plan — exit 0 at the final candidate.
  • bash scripts/ci/gates.sh lane prepush — exit 0 at 67e1bcf; 1793 Rust tests passed, 7 skipped.
  • git push -u origin codex/m4-r7-02-negative-matrix — exit 0; the foreground pre-push hook reran the full prepush lane successfully.
  • git ls-remote origin refs/heads/codex/m4-r7-02-negative-matrix — exit 0; remote SHA equals the candidate SHA.
  • Architecture drift: none; architecture-drift gate passed and no production files changed.

NICHT ABGEDECKT

  • Linux does not compile or run the #[cfg(windows)] tests or the Windows clippy arms; the Windows lane runs in the merge queue.
  • The desktop GUI was not launched.
  • No real provider process was launched; the scheduler boundary uses FakeAgents and the existing test-only attested route.
  • Provider usage limits were not checked because no usage file was supplied to the start check.
  • Production scheduler activation remains unavailable until W4-03 supplies a permit after user approval.

Review

Review: pending (coordinator), Tier B.

Open points

  • Coordinator review and the Windows merge-queue lane remain pending.

Regression-For: 939c7e9

Regression-For: 55f785762b4b02a1d38ee79bc26023849838a912

Co-Authored-By: Codex GPT-5 <47299143+Cuarroc@users.noreply.github.com>
Regression-For: 55f7857

Co-Authored-By: Codex GPT-5 <47299143+Cuarroc@users.noreply.github.com>
@Cuarroc

Cuarroc commented Oct 4, 2026

Copy link
Copy Markdown
Owner Author

Replaced by #412

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant