Skip to content

feat: take the operator's OK before a gate asks and show a screen gate's captures first - #2496

Merged
yansfil merged 3 commits into
mainfrom
feat/mission-gate-early-pass
Nov 12, 2026
Merged

yansfil merged 3 commits into
mainfrom
feat/mission-gate-early-pass

Conversation

@yansfil

@yansfil yansfil commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Related: with-hide/hide-private#890

Summary

A screen gate in a mission asked the operator only after review, verify and CI had all passed.
Each fix the operator asked for ran that whole line again before they saw it: on mission-57's card one round took over half an hour while the code change took 2-3 minutes.
The Conductor can now relay the operator's OK on an end gate with hide mission gate <node> --pass --said … before it asks (a start gate from #2485 still answers only once it asks); the gate passes, asks nothing later, and the node still waits on its other lines.
hide mission help now runs a screen gate captures first: the worker sends captures right after each fix, the Conductor opens them at once, and the tests, docs, push and checkers follow the OK.

No screenshot: no screen changes; the map shows a passed gate as it does today.

Review

  • Decide: a fix after the OK that changes what the operator saw does not ask again; the guide says to show the new screens with the next report.
  • Risky files: hide-core/src/runtime/mission_gates.rs - runs under the runtime mutex and is the one entry every gate answer settles through; the early pass is limited to the Conductor's pane relay, and card, phone and an early fix are refused as before.
  • Cost: none on a hot path; one more condition in a command handler.

Tests

  • Layer: unit, in hide-core/src/runtime/tests/missions.rs, where the gate entry and the done refusal meet.
  • Catches: an early pane --pass refused, a node finishing with lines open after an early pass, or the gate asking again once passed; planting the old gate_open check for a pane pass fails the new test with mission_gate_not_open.
  • Repeat: one local run; the changed tests go through CI's repeat lane.
  • Waits: none.

Evidence

  • Verified: verify-cargo.sh nextest -p hide-core -E 'test(/gate/)' after merging main with feat: plan mission nodes as code, general or waiting nodes with presets #2485, 65 passed, the start-gate tests among them (an early pass on a start gate is refused); the new end-gate test among them; rustfmt check on both changed Rust files; the new test fails on the old rule.
  • Not verified: the full Rust workspace, clippy and the hided tests are left to CI (the machine ran at load 36 with 5 GiB free); no live mission has run with the new guide yet.
Verification record

Base 1717196, main merged once at dfdb50e (#2485), head 8a8a242. Local: nextest -p hide-core -E 'test(/gate/)' 60/60 before the merge, 65/65 after it; CI green on 8a8a242; planted old rule: an_ok_relayed_before_the_gate_asks_passes_it_and_the_node_still_waits_on_its_lines failed with mission_gate_not_open. Review: one native code review; no blocking finding on the gate logic; three fixes applied in d504440 (refusal hint, ARCHITECTURE.md, a node is never held on the OK); follow-ups listed in the PR conversation.

@yansfil

yansfil commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

Follow-ups from the review, outside this change:

  • A gate passed early never reopens when a later fix changes the look; the guide only says to show the new screens with the next report. A gate on an irreversible step can also be passed early, since the core does not tell a screen gate from it.
  • Mission health does not count a pending OK as an operator wait (gate_open is false until the other lines are met), so a node with an open PR whose checkers wait on the OK might raise a stall or the safety net.
  • The GatePassed letter ends with "start the nodes that waited on it", which reads early for a node that still works.
  • Tests worth adding: a card or phone pass before the gate asks stays refused; an early pass is refused on a node not working or a paused mission; a replan after an early pass reopens the gate.

…ly-pass

# Conflicts:
#	hide-core/src/runtime/mission_gates.rs
#	hided/assets/mission/help.md
@yansfil
yansfil added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 70e386d Nov 12, 2026
67 checks passed
@yansfil
yansfil deleted the feat/mission-gate-early-pass branch November 12, 2026 14:37
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