Repository navigation
feat: take the operator's OK before a gate asks and show a screen gate's captures first - #2496
Merged
Merged
Conversation
Contributor
Author
|
Follow-ups from the review, outside this change:
|
…ly-pass # Conflicts: # hide-core/src/runtime/mission_gates.rs # hided/assets/mission/help.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 helpnow 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
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.Tests
hide-core/src/runtime/tests/missions.rs, where the gate entry and the done refusal meet.--passrefused, a node finishing with lines open after an early pass, or the gate asking again once passed; planting the oldgate_opencheck for a pane pass fails the new test withmission_gate_not_open.Evidence
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.hidedtests 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_linesfailed withmission_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.