Skip to content

fix: answer mission commands for workers, mission ids, stale CI letters and operator waits - #2323

Merged
yansfil merged 6 commits into
mainfrom
fix/mission-command-answers
Nov 9, 2026
Merged

yansfil merged 6 commits into
mainfrom
fix/mission-command-answers

Conversation

@yansfil

@yansfil yansfil commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2301
Closes #2302
Closes #2300
Closes with-hide/hide-private#684
Related: with-hide/hide-private#778 (짝 문서 PR, 서로 짝)

Summary

미션 명령이 틀린 답을 주던 세 가지를 고칩니다.

  • hide mission show mission-41처럼 Hide 편지가 안내하는 미션 id로 보면 그 미션 전체를 보여 줍니다(전에는 mission_node_unknown).
  • Conductor가 띄운 작업자·검사자가 hide mission show로 자기 미션을 읽고, 작업자는 hide mission node <자기 노드> --pr/--no-pr/--branch/--line을 직접 씁니다(전에는 mission_none). 그 밖의 변경과 다른 노드는 계속 Conductor 몫입니다.
  • --mission 없이 쓴 명령은 정해진 순서로 미션을 고릅니다: 내가 지휘하는 열린 미션, 없으면 내가 작업·검사하는 열린 미션 하나, 없으면 마지막에 완료한 내 미션. 열린 미션 둘에 걸쳐 있으면 짐작하지 않고 mission_ambiguous로 거절해 --mission을 쓰게 합니다.
  • 20분 무활동 watch와 90분 no-push 경고가 같은 규칙 하나를 읽고, 노드가 운영자 답(raise, decide --node)을 기다리는 동안에도 조용합니다.
  • 지도 N/M(Pin tab move answers outside the stream, and keep replica moves in their own field #684)은 #2200에서 이미 고쳐졌고, 기존 웹 시험이 옛 계산에서 실패함을 확인해 닫습니다.

#2304(검사가 다시 돌기 전 "CI passed" 편지)는 이 PR에서 뺐고, 원인과 뺀 이유는 이슈에 남겼습니다.

스크린샷 없음: 화면 변경 없음, core·CLI 도움말·계약만 바뀝니다.

Review

  • 판단해 주세요: 미션 고르는 순서(위 Summary)와, 열린 미션 둘이면 거절하는 쪽을 택한 것. 첫 번째 것을 고르면 작업자가 엉뚱한 미션의 노드를 바꿀 수 있어서입니다. 도움말(hided/assets/mission/help.md)과 짝 문서에 순서를 적었습니다.
  • 판단해 주세요: Mission watch warns about inactivity while a worker is only waiting for CI or the operator #2300 사례(start-line)는 이 규칙으로도 경고가 납니다. 그때 CI는 GitHub 504로 실패 상태였고(실패한 CI는 작업자 몫), 운영자 스크린샷 승인은 지도에 decide --node로 올라가 있지 않았습니다. 운영자 대기를 조용히 하려면 결정을 노드에 걸어야 합니다(도움말에 적음).
  • 조심해서 볼 파일: hide-core/src/runtime/mission_criteria.rs - Caller는 명령마다 원장 agents를 한 번만 훑어 호출자의 등록과 장부의 미션들이 가리키는 작업자·검사자 등록을 함께 읽고, mission_meant가 고르는 순서를 한 곳에 둡니다. show, node, record, skip이 이것으로 미션을 고르고 답(미션 보기, 노드 보기, 두 편지 목록)도 그립니다(mission_view_for).
  • 조심해서 볼 파일: hide-core/src/runtime/missions.rs - show와 show <node>는 한 번 읽은 등록으로 보기와 편지 목록을 같이 그리고, 작업자의 node 답도 그 등록으로 그립니다(작업자 patch는 에이전트를 바꾸지 않음). Conductor 경로는 전과 같이 답을 그릴 때 한 번 읽습니다.
  • main 병합(fix: keep a closed agent registered until Reopen closed brings it back #2316 뒤): runtime/missions.rs의 충돌은 #2316의 worker_life(닫힌 에이전트를 미션에선 끝남으로 읽음)와 이 PR의 named_agents·편지 함수를 둘 다 남겨 풀었습니다. mission_view_for도 sleeping_registrations의 closed를 그대로 받아 닫힌 작업자를 끝남으로 그리고, 미션 고르는 규칙은 바뀌지 않았습니다. contracts/hide-cli.json은 병합된 소스로 다시 만들어 main과의 차이는 mission_ambiguous 네 곳뿐입니다.
  • 조심해서 볼 파일: hide-core/src/mission_health.rs - quiet_waits가 no-push 경고와 watch(mission_worker_waits)의 한 규칙입니다. 전에는 두 곳이 따로 계산해 병합된 PR과 실패한 줄에서 서로 달랐습니다.

Evidence

  • 확인한 것: 새 core 시험(a_nodes_worker_and_checker_use_the_mission_commands_of_their_own_node, a_caller_in_two_open_missions_names_the_one_it_means, a_mission_workers_watch_is_quiet_while_its_node_waits_on_the_operator, a_node_waiting_on_the_operator_raises_no_quiet_warning)은 수정을 되돌리면 실패하고 수정으로 통과합니다. 다중 미션 시험은 거절 규칙을 끄면 작업자가 말없이 mission-1을 받아 실패합니다.
  • 확인한 것: hide-core mission·watch·quiet 시험 357개, hided mission·cli_contract·guide 시험 35개(커밋된 contracts/hide-cli.json 비교 포함) 통과, verify-cargo.sh fmt-check, clippy -p hide-core -p hided --tests 경고 없음.
  • 확인한 것: 격리 후보 hided(d9dcfa2)에서 실제 hide CLI로 미션 id show, 작업자·검사자의 이름 없는 show, 작업자 자기 노드 pr/branch/line 변경이 되고, 권한 밖 변경은 mission_not_conductor로 거절됨(verify 검사자 기록, 끝난 뒤 후보 프로세스 0).
  • 확인한 것: 웹 src/missions.test.ts 59개 통과, fix: decide a mission review line by its bound checkers on the newest head #2200 전 계산으로 바꾸면 expected '1/2 passed', got '1/3 passed'로 실패.
  • 확인하지 못한 것: 다중 미션 거절(mission_ambiguous)은 core 시험으로만 확인했고 격리 후보 CLI로는 돌리지 않았습니다. 전체 verify 레인은 CI에 맡깁니다.

…rs and operator waits

- hide mission show <mission id> reads that mission, as Hide's letters say (#2301)
- a node's worker and checker read their mission, and the worker sets its own node's --pr, --branch and --line (#2302)
- a CI letter not yet handed to the Conductor is withdrawn when a check runs again on its head, and told again once it ends (#2304)
- the no-push warning and the worker's watch read one quiet rule: CI, review or merge waits, and a node waiting on the operator's answer (#2300)
…nswers

# Conflicts:
#	contracts/hide-cli.json
@yansfil
yansfil added this pull request to the merge queue Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 9, 2026
…nswers

# Conflicts:
#	contracts/hide-cli.json
#	hide-core/src/runtime/missions.rs
@yansfil
yansfil added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 888c30c Nov 9, 2026
38 checks passed
@yansfil
yansfil deleted the fix/mission-command-answers branch November 9, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant