document who holds the agents-md edit route
This commit is contained in:
parent
e59c01059a
commit
c533caf8ef
1 changed files with 5 additions and 0 deletions
|
|
@ -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 |
|
| 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 |
|
| 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
|
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
|
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
|
drops it unanswered, which reads as a 504. `swarmctl agent agents-md get` and
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue