Repository navigation
PiSharp 1.5.0.1
PiSharp 1.5.0.1
Released 2026-11-09. PiSharp 1.5.0.1 publishes 28 libraries plus the CLI, with three separately qualified native daemon ZIPs. Install the CLI with dotnet tool install -g PiSharp.Cli --version 1.5.0.1, or update with dotnet tool update -g PiSharp.Cli --version 1.5.0.1. All PiSharp sibling packages must use the same exact version.
1.5.0.1 is a C# patch on Pi v1.5.0, commit f9a26365568127461c47a07a37dcb42c140a3ac5. It implements the November 8 gap plan, including individually reviewed changes through 7d073328e44337d3292a7db9b0f0308f679c5e97. The fourth version number does not advance the upstream baseline or claim that every intervening upstream change is ported. Historical pins, captures and the original 1.5.0 release record remain intact.
Corrections
The audit and current implementation mappings link all 23 corrections to source and tests:
| Audit item | Resulting behavior |
|---|---|
| C01 | Relative root schema IDs are resolved once, so valid local references also work during tool-argument validation. |
| C02 | Non-strict Anthropic tool schemas retain referenced root $defs and definitions. |
| C03 | Corrupted or incompatible stored record shapes fail and roll back the SQLite storage transaction, rather than committing a prefix as a semantic refusal. Valid semantic refusals retain their separate contract. |
| C04 | Hosted-session and agent-team settings forward AfterFailedRun and RestartLimit. |
| C05 | File edits preserve untouched mixed CRLF, LF and lone-CR endings. |
| C06 | Grep uses bounded rg context rather than retaining whole matched files, including for UTF-16 context. |
| C07 | RPC shutdown owns and joins background catalogue refresh work; synthetic credential-rotation tests check persistence before exit. |
| C08 | Prompt arguments retain apostrophes inside words and unmatched quotes, and support escaped matching quotes and empty quoted arguments. |
| C09 | Tool search and codemode summaries follow bounded local schema references, without fetching remote references or indexing unused definitions. |
| C10 | MCP SSE accepts CR, LF and CRLF, including delimiters split across chunks. |
| C11 | MCP sign-in tries refresh with the stored client and redirect URI when the old interactive callback port is occupied. |
| C12 | An extension's shutdown request wakes idle RPC while preserving command-response ordering. |
| C13 | A new branch prompt persists the effective live thinking selection so reopening restores it. |
| C14 | Grep, session summaries and codemode truncation preserve Unicode scalar boundaries. |
| C15 | Grep globs are relative to the supplied search directory, including leading ./ patterns. |
| C16 | Find, ls and grep normalize limits and distinguish an exact result count from actual truncation. |
| C17 | Completions omits an empty tool list after historical tool use by default; gateways needing it can opt into requiresToolsWithToolHistory. |
| C18 | Simple requests share the reviewed output-budget calculation across all seven provider paths. |
| C19 | Reviewed catalogue corrections cover Azure context sizes, OpenCode Claude effort metadata and Sonnet temperature compatibility. |
| C20 | Responses uses the session-id affinity header; Completions retains its separate header contract. |
| C21 | Both retry classifiers recognize the specific cut-short-after-reply failure while retaining quota exclusions. |
| C22 | Package updates report changed, unchanged, offline and warning outcomes instead of unconditional success, including version or commit changes. |
| C23 | SQLite prepared-command caching is bounded and disposes evicted statements. |
Providers, tools and extensions
Responses transcript tool handling, non-null assistant-content compatibility, prompt-cache-key controls, classifier provider overrides from models.json and Copilot System One routing are implemented. The effective per-request Responses service tier supplies usage pricing when the provider omits its tier echo. These are source-backed request and routing changes; fake transports and offline fixtures do not establish whole-provider equivalence.
Anthropic message threads add bounded process-local continuation state with compatibility checks, OAuth projection, cleanup and shared cache-warming policy. Prepared requests, optional captures and public wire round trips preserve UTF-16 values and metadata names while retaining malformed-field and resource-limit checks. Continuation state is not a durable transcript or a cross-process cache.
Large-file reads can stream selected ranges through supporting adapters; custom adapters retain a bounded fallback. Process output capture is bounded while retaining process-tree cleanup. Streamed tool arguments retain immutable snapshots without repeatedly copying the complete history. Shell authentication adds login/logout paths, API-key and no-browser modes through the existing provider flows.
The Node bridge uses the reviewed, pinned Pi 1.5.0 npm package set and attribution policy. Overlay handles now coordinate lifetime, focus, visibility and resize state. Native macOS modifier queries are implemented; physical Apple Terminal key behavior still needs its own qualification.
Durable, Chord and native hosting
Durable adds per-conversation compaction settings and transaction submission lookup, forwards thinking budgets and WebSocket handshake timeouts through prepared native and hosted requests, and carries explicit identity and provider request hooks through chat and non-chat operations and account routes. An already prepared in-flight request keeps its persisted settings. Ordered SQLite bulk execution preserves transaction, refusal and receipt semantics. SQLite telemetry is opt-in; the delta tracker reduces retained open-change work.
Chord now includes the native host, transactional reload and version adaptation, jobs, registries, versioned links and remote routes. Its legacy protocol-4 runtime and cluster/manager remain distinct from the current protocol. Native hosting adds trusted .NET plugins, HTTP utilities and process workers; the plugin sample demonstrates the application boundary. This does not imply arbitrary TypeScript/npm plugin, Node IPC or browser-build compatibility.
PiSharp.Durable.Store provides the Chord storage and registry adapters. Examples 35–37 use the real Chord host. Separate independently reproduced upstream captures cover restart, compaction and the stored table/job schema-migration corpus. They extend the available evidence without relabeling historical captures or turning authored cases into captured observations.
Remote environments and evaluations
The Env implementation includes bounded protocol framing, client lifecycle, a native daemon, remote filesystem and process adapters, watches, SSH bootstrap and a verified artifact cache. Unix PTY support uses a native shim. Windows terminal creation returns ENOTSUP; ordinary Windows filesystem and process operations remain available. Daemon executables are separate NativeAOT artifacts, supplied through an explicitly trusted hash catalogue; installing an Env package does not download or run a daemon. See SSH and artifact handling.
The repository evaluation harness compares paired runs with and without supplied documentation, validates incomplete or invalid observations, and reports nullable metrics and deterministic protocol identities. Its default synthetic fixture tests reporting mechanics. Explicit process/container and live-provider modes require separate inputs and execution; fixture scores are not evidence of model quality, documentation lift or live container qualification. The tool is not a NuGet package or the WebAgent Evals product.
Release preparation corrections
Release validation exposed additional runtime and qualification defects:
- The plugin loader classifies the awaited primary exception before aggregating the remaining fault evidence, retaining the distinction between initialization and load failures without losing cleanup diagnostics.
- Responses and Codex strict-tool patching covers both initial and incremental developer
additional_toolsdeclarations. Malformed or ambiguous targets are refused instead of silently applying an incomplete patch. - Unix hosting uses cancellable named-mutex ownership without unsupported multiple-handle waits, distinguishes HTTP request-target forms correctly, and uses private Unix pipe paths for native process transports. Existing authorization and origin checks remain in force.
- The Env daemon's hello version comes from the actual build, with source metadata removed. Version 1.5.0.1 artifacts therefore agree with SSH's exact trusted-artifact version check; explicit version overrides and protocol version 1 remain supported.
- The Node compatibility loader preserves file-URL query and hash components when resolving disk paths, retaining the fresh module identity required by reload. The defect and correction were reproduced with real Node; that focused evidence is not whole-extension or all-platform qualification.
- CI setup resolves and propagates the actual SDK executable, provisions the integrity-pinned historical npm archive and required
fdtool, and parses actual strict result statuses. Missing prerequisites, failures and skips remain evidence rather than being treated as passes.
These corrections have focused regression coverage; the exact-source gates below record release qualification separately from the fixes themselves.
Packages and migration
The release publishes 28 libraries plus PiSharp.Cli: 29 packages total. The five added experimental libraries are:
| Package | Opt-in diagnostics |
|---|---|
PiSharp.Chord |
PISHARP_CHORD001 |
PiSharp.Chord.Hosting |
PISHARP_CHORD001 |
PiSharp.Durable.Store |
PISHARP_DURABLE001, PISHARP_CHORD001 |
PiSharp.Env.Protocol |
PISHARP_ENV001 |
PiSharp.Env |
PISHARP_ENV001, PISHARP_DURABLE001 |
All target .NET 10. Existing experimental diagnostics remain applicable. Every PiSharp sibling dependency stays pinned to the exact same package version; upgrade siblings together. Chord deliberately uses Contracts' internal schema engine through a friend assembly without exposing those internal types. Chord and Hosting depend directly on Tools and bring Agent/AI transitively. Hosting requires the Microsoft.AspNetCore.App shared framework; native plugins are trusted code, not a security sandbox. Details and the external-consumer gate are in package admission.
The daemon and evaluation tool are not NuGet libraries. WebAgent, Durable.Web, Durable.MSSQL, Durable.Hosting/Server/Client, ModelRuntime and Web.Common remain unpackaged; the existing CLI-internal hosting components do not become separate packages. Adding the five libraries does not add a default CLI dependency on them. PiSharp.ExtensionHost retains assembly identity 1.0.0.0; other assemblies follow the release's SDK-derived 1.5.0.1 identity.
The Durable API and stored formats remain experimental and may change in any release. The new ITx.GetSubmissionAsync has a default implementation that throws NotSupportedException: existing external implementations can still compile, but must implement lookup before callers can use it. Back up sessions before testing upgrades. The 1.5.0 migration cautions still apply: sessions opened or written by the 1.5.0 line cannot be continued by PiSharp 1.2.0.x. New per-conversation compaction data does not require a new SQL table schema. The existing native fail-stop policy after an uncertain session write remains in effect.
Evidence and release status
Immutable release source is 8144e3eaa138a5faf56f5cbb0de477a56fd48f8f. Its Core (11 jobs), Durable (11), gap regressions (10), native daemon (3) and macOS (20) qualification passed. The WebAgent suite passed all 543 cases on each of three platforms. Validation of all 29 release-source archives and a fresh external consumer of the five new libraries also passed. Required skips retain their explicit platform reasons; these results qualify the recorded revision, toolchain and environments.
The publication results preserve run identities, NuGet publication verification, the public GitHub release and released asset integrity. Native daemon ZIPs for linux-x64, osx-arm64 and win-x64 are attached to the release; retain their notices and verify the accompanying manifest before redistribution. Physical macOS modifiers, real SSH hosts, Android/other RIDs and live provider accounts remain separate qualification boundaries. Cloudflare/browser-only adapters remain platform exclusions. The offline provider differential retains its explicit Mistral callback native-policy difference, with the original upstream expectation and mismatch still visible.
The implementation acceptance report and validation ledger retain earlier Windows receipts at their original source fingerprints and 1.5.0 package version. They remain historical evidence and are not relabeled as 1.5.0.1 product validation. No complete upstream, all-provider or all-platform parity is claimed. The release metadata records the published release while preserving the complete 1.5.0 history.