← 제작기

무인 작업은 멈추거나, 조용히 빠졌다

업계 소식을 모아 카드뉴스를 만들고 사진 앱, 드라이브, 메신저 그룹방으로 보내는 예약 작업이 넷 있습니다. 일간, 주간, 월간, 분기판입니다. 그동안 데스크톱 앱의 Cowork 예약으로 돌았는데, 10월 초에 앱이 "이 컴퓨터에서만 도는 Cowork 작업은 10월 6일부터 새로 시작할 수 없다"고 안내했습니다. 다음 일간 회차가 바로 10월 6일이어서, 그 전에 넷을 모두 Claude Code 예약으로 옮겼습니다.

옮기는 일 자체는 어렵지 않았습니다. 문서가 리눅스 샌드박스를 전제로 적혀 있어서, 폰트 경로와 작업 폴더를 맥에 맞게 바꾸면 됐습니다. 어려웠던 것은 사람이 지켜보지 않는 실행이 어떻게 실패하는가였습니다. 이번에 본 실패는 두 가지였고, 둘 다 오류를 남기지 않았습니다.

멈춘 채 기다렸다

옮긴 뒤 첫 주간 회차는 세션이 아침 6시 13분에 열렸는데, 첫 명령은 7시 58분에야 실행됐습니다. 맥은 깨어 있었으니, 1시간 45분 동안 승인 창 앞에서 기다린 것으로 봅니다. 일간 리허설은 같은 이유로 6시간 44분을 기다렸습니다.

원인은 예약의 권한 모드였습니다. 도구로 만든 예약에는 권한 모드를 정하는 항목이 없어서, 넷 모두 처음 보는 명령마다 확인을 받는 기본 모드로 돌고 있었습니다. 앱 전체의 기본값을 바꿔도 예약에는 따라오지 않았습니다. 승인은 명령 문자열 그대로 쌓이는 방식이라, 리허설에서 미리 받아 두는 것으로도 다 막을 수 없었습니다. 네 예약을 편집 화면에서 자동 모드로 바꾸고 설정 파일에 그 값이 저장된 것을 확인한 뒤, 같은 일간 리허설은 4분 21초 만에 멈춤 없이 끝났습니다.

회차가 스스로 남긴 보고에는 "07:58 시작"이라고 적혀 있었습니다. 첫 명령이 찍은 시각을 시작 시각으로 적은 것이어서, 1시간 45분의 기다림이 보고에서 지워져 있었습니다. 세션이 열린 시각과 견줘 보고서야 알았습니다.

조용히 빠졌다

자동 모드로 바꾸자 다른 실패가 나왔습니다. 자동 모드에서는 검토기가 명령을 보고 실행할지 정하는데, 월간 리허설에서 그룹방을 준비하는 셸 블록을 거부했습니다. 화면보호기를 끄고, 잠자기를 막고, 메신저를 앞으로 띄우고, 열린 방 창을 닫는 명령을 이어 붙인 블록이었습니다. 같은 블록이 일간과 주간 리허설에서는 통과했습니다.

리허설은 그룹방 단계만 건너뛰고 나머지를 마쳤습니다. 정규 회차였다면 카드는 만들어지고 다른 곳으로도 나갔는데, 그룹방에만 소리 없이 안 갔을 것입니다. 같은 명령에 대한 판단이 회차마다 달라질 수 있다는 것이 문제였습니다.

그 블록을 인자 없는 스크립트 하나로 묶었습니다. 방 이름은 스크립트 안에 두고, 준비됨과 화면 잠김과 메신저 없음을 서로 다른 종료 코드로 돌려줍니다. 문서에는 명령을 하나씩 따로 돌리라고 적었습니다. cd 나 &&, 변수를 섞으면 허용 목록에서 벗어나기 때문입니다. 허용 목록에는 스크립트 경로 두 개만 넣었습니다. 그 뒤 월간 리허설은 1분 48초, 분기 리허설은 2분 4초 만에 멈춤 없이 끝났고, 그룹방 단계는 실제로 보내지 않는 드라이런까지 맞물렸습니다.

시험 회차와 두 번 나가는 일

처음 쓰는 명령은 무인 회차에서 멈추기 쉬워서, 아무것도 발행하지 않는 리허설 회차를 따로 두었습니다. 작업 폴더에 REHEARSAL 이라는 빈 파일이 있으면 그 회차는 제작까지 마치고 발송만 드라이런으로 바꿉니다. 처음에는 예약 지침을 잠시 바꿔 치는 방식으로 했는데, 되돌리고 원본과 맞춰 보는 수고가 들어서 파일 하나로 바꿨습니다. 그 파일은 사람이 지웁니다. 지우는 것을 잊으면 실제 발송이 계속 멈추므로, 저장소를 점검할 때 그 파일이 남아 있는지도 함께 봅니다.

옮기는 동안 두 예약이 함께 켜져 있으면 같은 방에 카드가 두 번 나갑니다. 새 예약을 시험한 뒤 Cowork 쪽은 앱에서 껐습니다. Claude Code 에서는 Cowork 예약 목록이 보이지 않아서, 꺼졌는지는 앱 화면으로만 확인할 수 있었습니다.

정리하면

  • 무인 작업의 실패는 오류로 오지 않았습니다. 하나는 승인 창 앞에서 몇 시간씩 멈춰 있었고, 하나는 한 단계만 건너뛰고 나머지를 정상으로 마쳤습니다.
  • 회차가 스스로 남긴 시작 시각은 첫 명령의 시각이었습니다. 기다린 시간은 세션이 열린 시각과 견줘야 보입니다.
  • 검토기의 판단이 회차마다 다를 수 있으면 판단받을 명령을 줄입니다. 인자 없는 스크립트 하나와 그 경로만 허용합니다.
  • 시험 회차는 표시 파일 하나로 켜고 끄고, 그 파일이 남아 있는지도 점검 항목에 넣습니다.

이 작업들이 매번 빈 세션에서 시작하는 이유와 문서 한 장에 담는 방식은 매주 혼자 도는 자동화를 문서 한 장에 담기에 있습니다.

Four scheduled jobs gather industry news into card news and send it to Photos, Drive and a messenger group: daily, weekly, monthly and quarterly. They ran as Cowork schedules in the desktop app until early October, when the app announced that Cowork jobs running only on this computer could not start new runs from October 6. The next daily run was October 6 itself, so all four moved to Claude Code schedules before then.

The move itself was not hard. The documents assumed a Linux sandbox, so font paths and work folders had to be pointed at the Mac. The hard part was how an unattended run fails. Two failures showed up, and neither left an error.

Stopped and waiting

The first weekly run after the move opened its session at 6:13 a.m., but its first command ran at 7:58. The Mac was awake, so I take it the run sat in front of an approval prompt for an hour and 45 minutes. A daily rehearsal waited 6 hours 44 minutes for the same reason.

The cause was the schedules' permission mode. Schedules created through the tool have no field for it, so all four ran in the default mode that asks for confirmation on every unfamiliar command. Changing the app-wide default did not carry over to schedules. Approvals accumulate as exact command strings, so pre-approving them in a rehearsal could not cover everything. After switching the four schedules to auto mode in the edit screen and confirming the value was saved in the settings file, the same daily rehearsal finished in 4 minutes 21 seconds without stopping.

The run's own report said it started at 07:58. It had taken the first command's timestamp as the start, so the hour and 45 minutes of waiting had vanished from the report. Only comparing it with the time the session opened showed it.

Quietly skipped

Auto mode brought a different failure. In auto mode a reviewer looks at each command and decides whether to run it, and in the monthly rehearsal it refused the shell block that prepares the group chat: a chain that stops the screensaver, prevents sleep, brings the messenger forward and closes any open chat window. The same block had passed in the daily and weekly rehearsals.

The rehearsal skipped only the group-chat step and finished the rest. In a real run the cards would have been made and sent everywhere else, and the group chat alone would have silently gone without. The problem was that the verdict on the same commands could differ from run to run.

The block became a single script that takes no arguments. The chat's name lives inside it, and it returns different exit codes for ready, screen locked and messenger missing. The documents now say to run each command on its own, because mixing in cd, && or variables falls outside the allow list, and only the two script paths went on that list. After that the monthly rehearsal finished in 1 minute 48 seconds and the quarterly one in 2 minutes 4 seconds, both without stopping, with the group-chat step running through a dry run that sends nothing.

Rehearsal runs, and sending twice

Commands used for the first time are the ones that stall an unattended run, so there is now a rehearsal run that publishes nothing. If an empty file named REHEARSAL sits in the work folder, the run makes everything and swaps only the sending for a dry run. At first this was done by temporarily replacing the schedule's instructions, but restoring them and checking them against the original was a chore, so it became a single file. A person deletes that file. Forget to, and real sending stays off, so checking the repositories now includes looking for it.

During the move, having both schedulers on would send the same cards to the same chat twice. Once the new schedules were tested, the Cowork ones were switched off in the app. Claude Code cannot see the list of Cowork schedules, so whether they were off could only be confirmed on the app's screen.

In short

  • Unattended failures did not arrive as errors. One sat for hours in front of an approval prompt; the other skipped one step and finished the rest normally.
  • The start time a run reports for itself was its first command's time. Waiting only shows when compared with when the session opened.
  • When a reviewer's verdict can vary from run to run, reduce what it has to judge: one argument-free script, and only its path allowed.
  • Rehearsal runs switch on and off with a single marker file, and whether that file is still there goes on the checklist.

Why these jobs start from an empty session every time, and how one document carries them, is in One Document for an Automation That Runs Alone.