Watch
0
0
Fork
You've already forked hyperhive
0

document who holds the agents-md edit route

This commit is contained in:
atlas 2026-10-18 06:00:03 +02:00 • committed by mara
commit c533caf8ef

View file

@ -345,6 +345,11 @@ result over the file only when both pass:
| 504 | the harness didn't answer within ten seconds, so whether the edit applied is unknown |
| 500 | the harness couldn't read or write the file or run git, or the queue failed the request |
The harness refuses a diff that sets any file mode other than `100644`, so an
edit can't turn `AGENTS.md` into a symlink. `PUT` is operator-only, behind
`Remote-User` like cancel: whoever can call it can rewrite the agent's
instructions, so don't widen who holds it without revisiting this.
An edit needs the agent running, and a read of a stopped agent shows the text
it last published. A harness older than this route doesn't know the command and
drops it unanswered, which reads as a 504. `swarmctl agent agents-md get` and