Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(daemon): re-probe the pi context-load baseline at 1.5.2 (#10713)

rwifenga266acdd4669
diff --git a/server/internal/daemon/context_receipt.go b/server/internal/daemon/context_receipt.go
index 0f8d3b0299..3c426605f1 100644
--- a/server/internal/daemon/context_receipt.go
+++ b/server/internal/daemon/context_receipt.go
@@ -91,15 +91,16 @@ type ContextReceiptSource struct {
}
// contextFileLoadProbes records runtimes confirmed to load the context file
-// the daemon writes, and the CLI version each probe ran against. Source: the
-// MUL-5392 canary probes documented on providerNeedsInlineSystemPrompt, plus
-// the kiro-cli ACP smoke. Add a row only with a probe behind it; an absent
-// runtime reads "unverified" on the receipt, which is the honest answer.
+// the daemon writes, and the CLI version each probe ran against.
+// See providerNeedsInlineSystemPrompt for the evidence ledger, including
+// Pi 1.5.2's author-reported in-band run (GitHub #10713).
+// Add a row only with a probe behind it; an absent runtime reads "unverified"
+// on the receipt, which is the honest answer.
var contextFileLoadProbes = map[string]string{
"claude": "2.1.220",
"codex": "0.144.6",
"opencode": "1.17.7",
- "pi": "0.67.2",
+ "pi": "1.5.2",
"hermes": "0.18.2",
"kiro": "2.13.0",
"mcode": "0.1.2",
diff --git a/server/internal/daemon/context_receipt_test.go b/server/internal/daemon/context_receipt_test.go
index 522115ef9e..c0ea9f1454 100644
--- a/server/internal/daemon/context_receipt_test.go
+++ b/server/internal/daemon/context_receipt_test.go
@@ -139,6 +139,16 @@ func TestBuildContextReceiptLoadStates(t *testing.T) {
in: contextReceiptInput{Provider: "codex"},
delivery: ReceiptDeliveryFile, load: ReceiptLoadVerifiedOtherVersion, path: "AGENTS.md",
},
+ {
+ name: "pi at its re-probed version",
+ in: contextReceiptInput{Provider: "pi", RuntimeVersion: "1.5.2"},
+ delivery: ReceiptDeliveryFile, load: ReceiptLoadVerified, path: "AGENTS.md",
+ },
+ {
+ name: "pi above its re-probed version",
+ in: contextReceiptInput{Provider: "pi", RuntimeVersion: "1.6.0"},
+ delivery: ReceiptDeliveryFile, load: ReceiptLoadVerifiedOtherVersion, path: "AGENTS.md",
+ },
{
name: "unprobed runtime",
in: contextReceiptInput{Provider: "qwen", RuntimeVersion: "0.9.0"},
diff --git a/server/internal/daemon/daemon.go b/server/internal/daemon/daemon.go
index 2a5220a9ed..fa27a4fc45 100644
--- a/server/internal/daemon/daemon.go
+++ b/server/internal/daemon/daemon.go
@@ -6914,6 +6914,14 @@ func providerDisplayName(name string) string {
// hermes 0.18.2 over ACP (AGENTS.md). MCode 0.1.2 also loads AGENTS.md by its
// native runtime contract. kiro was confirmed earlier by a kiro-cli
// 2.13.0 ACP smoke — see the call site. Still unprobed: grok, qoder, codebuddy.
+//
+// Pi 1.5.2 evidence (GitHub #10713): the author reports an in-band run following
+// AGENTS.md-only instructions, notably the MULTICA_CLI_PATH contract; no run
+// transcript is attached. Separately, upstream v1.5.2 documents context-file
+// discovery from the working directory without project trust:
+// https://github.com/earendil-works/pi/blob/v1.5.2/packages/coding-agent/docs/configuration.md
+// That is the loader contract, not a canary result. No fresh MUL-5392 canary
+// was run for 1.5.2.
func providerNeedsInlineSystemPrompt(provider string) bool {
switch provider {
case "openclaw", "kimi", "traecli", "qwenpaw":
diff --git a/server/pkg/agent/pi.go b/server/pkg/agent/pi.go
index b9904e943f..7d9f4f8ca2 100644
--- a/server/pkg/agent/pi.go
+++ b/server/pkg/agent/pi.go
@@ -1254,7 +1254,9 @@ func buildPiArgsFor(label, sessionPath string, opts ExecOptions, logger *slog.Lo
// SystemPrompt is intentionally not forwarded as --append-system-prompt:
// Pi loads the per-task AGENTS.md the daemon writes into the workdir, so
// inlining the same runtime brief would duplicate it on every turn.
- // Verified against Pi 0.67.2 (MUL-5392).
+ // Pi 0.67.2 was verified by the MUL-5392 canary. For the author-reported
+ // Pi 1.5.2 in-band evidence (GitHub #10713) and upstream contract, see
+ // providerNeedsInlineSystemPrompt's evidence ledger.
args = append(args, filterPiCustomArgs(opts.CustomArgs, logger)...)
// The extension is explicit, so Pi loads it without trusting the project.
// It stays after custom args so the managed path cannot be mistaken for the