stage: say that the shared public folder is the absolute path

A probe stage read "public/" in its task, created a workspace-relative public/
folder, and also copied to the run's shared path. The prompt now states that the
absolute path is the shared folder and a relative public/ is a different,
unshared directory.
This commit is contained in:
2026-10-19 23:33:29 +01:00
parent 793b62f53e
commit 0219173327
+1 -1
View File
@@ -102,7 +102,7 @@ func modelPrompt(def Definition, spec ModelSpec, input Values) (string, error) {
fmt.Fprintf(&b, "\n\nAllowed outcomes: %s.\n\nEverything else is free-form markdown for the next stage and the operator. The server does not parse or validate any other section. Return the complete output.md content as your final message; do not wrap it in a JSON envelope.\n", strings.Join(outcomes, ", "))
fmt.Fprintf(&b, "\nExecution time: %s. Timezone: %s.\n", time.Now().Format(time.RFC3339), time.Local.String())
if def.Turn.Public != "" {
fmt.Fprintf(&b, "\nShared artifacts go to %s; files there are visible to every later stage. Turn-local work goes to %s and is not handed to later stages.\n", def.Turn.Public, def.Turn.Private)
fmt.Fprintf(&b, "\nShared artifacts go to %s; files there are visible to every later stage. That absolute path is the shared folder: a relative public/ inside the workspace is a different, unshared directory. Turn-local work goes to %s and is not handed to later stages.\n", def.Turn.Public, def.Turn.Private)
}
b.WriteString("\n")
b.WriteString(toolsLine)