Repository navigation
v2026.11.21
·
430 commits
to main
since this release
@unbrained/pm-cli 2026.11.21
Source range: v2026.11.20...v2026.11.21
Changelog
Changed (SDK contract)
- GH-1664: pm context --for orient --limit 3 and pm activity --limit 3 reparse every history stream, so a three-row recent-activity read pays archive-scale I/O: ActivityResult and ContextResult had no read-cost disclosure, the context activity section was built by a full runActivity page over every history stream, and writeFileAtomic always created files with the default mode → ActivityResult gains an optional history_read receipt and ContextResult an optional activity_history_read receipt ({ reason, streams_read, streams_total }), present only when a read on a tracker with 500 or more history streams could not be bounded by its window; readRecentActivity({ limit }, global), ActivityHistoryReadReceipt and RecentActivityResult are new exports of @unbrained/pm-cli/sdk/query; writeFileAtomic accepts an optional mode; rows, totals, cursors and errors are unchanged. Migrate: No change for existing reads or writes. Consumers that reject unknown result keys should allow the optional history_read and activity_history_read receipts; a consumer that needs only the newest rows can call readRecentActivity instead of runActivity with raw: true (pm-gh1664)
- GH-1757: credential refusal next_steps tell agents to restore the redacted URL credentials before replay, which reproduces the same refusal: A refusal of an identity carrying URL userinfo (--author, PM_AUTHOR, --assignee and other identity options) led its next_steps with restoring the redacted credentials, and its requirement text held a credential-shaped sample that redaction rewrote → Such refusals set url_credentials_rejected: { source }; their first next step names that source, says its credentials caused the refusal and must not be restored, and asks to restore any other redacted credentials; a PM_AUTHOR refusal whose command line carries no credential has only the plain-name step. Migrate: Agents and clients matching the old restore-them step text for identity refusals should follow the source-specific step; producers whose refusal rejects URL credentials themselves set url_credentials_rejected: { source } on the PmCliError context (pm-gh1757)
- GH-1756: pm context counts in_progress_unowned and in_progress_idle over a different population than in_progress: summary.in_progress counted only items in the progress status that also carried the active role, compared by the raw workflow id, while in_progress_unowned and in_progress_idle counted every item in that status, so the advisories could exceed the total → summary.in_progress counts every item in workflow.in_progress_status, alias-resolved and whatever role it carries, the same population as both advisories; open stays the active items outside it, and markdown renders a non-active progress count apart from active_items. Migrate: No change for the default workflow, where the progress status carries the active role. With a non-active progress status, read in_progress as the count of items in that status rather than active_items - open (pm-gh1756)
- GH-1759: strict health accepts a merge fence from an enclosing repository for a separate linked worktree: The fence audit walked up to eight logical parents of the tracker root and accepted the first .gitattributes with a managed block, even one above the Git worktree top level or reached through a symlink, which Git never applies → Inside a Git worktree the audit walks the tracker's canonical path up to the worktree's canonical top level (resolved from the tracker root, or passed as options.gitWorkspaceRoot) and reads only regular attribute files, so pm health, pm validate and the workspace position read report a linked worktree without its own fence as merge_fence_missing. Migrate: No change for a fence at the worktree root or inside the same repository. To keep the old eight-level walk, pass { gitWorkspaceRoot: null }; a strict health check that newly fails needs pm merge install in that worktree, or a regular file in place of a symlinked .gitattributes (pm-gh1759)
Fixed
- pm gc --scope runtime removes derived caches through a redirected runtime directory (pm-cqddvl)
- A history entry whose agent_harness is not a string crashes pm activity --raw, provenance reads and pm context with unknown_error (pm-sew1dj)
- GH-1730: the MCP flat-parameter parity spec compares the output-size token estimate of two concurrent reads that both write the context-usage ledger, so a Windows shard fails when one read waits on the ledger (pm-gh1730)
Other
- Move contributor-only testing docs, benchmark reports and two repository-only pages out of the npm tarball to restore publication headroom for bounded activity reads (pm-55jxhy)
PM Tracker Evidence
Closed pm items in release window: 8
By type: Issue=7, Chore=1
By status: closed=8
Selected release-related tracker items:
- No release-tagged pm items found in the selected window.