@unbrained/pm-cli 2026.11.20 → 2026.11.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/pm-sdk/SKILL.md +1 -1
- package/.agents/skills/pm-test-audit/SKILL.md +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/CONTRIBUTING.md +2 -1
- package/dist/cli/error-guidance.js +2 -2
- package/dist/cli/register-list-query.js +2 -2
- package/dist/cli/runtime/refusal-credential-redaction.js +1 -1
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/chunk-2DXRTIC6.js +21 -0
- package/dist/cli-bundle/chunks/{chunk-XK25TAJZ.js → chunk-5647LU3A.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-OXG5XPC7.js → chunk-6QLEXRUG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MGYAJONE.js → chunk-AHQB7W2H.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3BOR22MC.js → chunk-BKSVHOWI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KQSPKWFH.js → chunk-CASX6SFI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZVEHACE6.js → chunk-CIKGG34F.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KDDIHGAO.js → chunk-D6ILFXZY.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-M5D3CEMY.js → chunk-IUIOTAF6.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-GXGW6KHB.js → chunk-JVGRFU5H.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-KQIZ34SF.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-2IZGNOGT.js → chunk-KVBIMFUG.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-LQBWLNZJ.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-5LF5QZT3.js → chunk-NCFCBKIP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HJQ3XPS3.js → chunk-NT5AKFE5.js} +30 -30
- package/dist/cli-bundle/chunks/chunk-PJXKA4QU.js +125 -0
- package/dist/cli-bundle/chunks/{chunk-KEBLUTC3.js → chunk-RMIRNYRG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6HRPGEBF.js → chunk-RULHZRFN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-FF4TXJDH.js → chunk-S6HB3WL2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4QQPM3IY.js → chunk-SA4BNP3Q.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DG2EOOFX.js → chunk-SRVTCYAU.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4TZW4NLM.js → chunk-WELSVDPU.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6X2AGUOT.js → chunk-XHJ3H5PL.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZAO7VGX3.js → chunk-XWHJIRNV.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-YJEBK7HU.js +8 -0
- package/dist/cli-bundle/chunks/{chunk-FOYRE23V.js → chunk-YKJKQ7DM.js} +43 -43
- package/dist/cli-bundle/chunks/{chunk-Y4LXVPA5.js → chunk-YMUSRWV4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HQYIKAC6.js → chunk-YR2KEBHP.js} +2 -2
- package/dist/cli-bundle/chunks/{indexed-receipt-blobs-ELEMA7IW.js → indexed-receipt-blobs-ITTXIN4K.js} +2 -2
- package/dist/cli-bundle/chunks/{item-revision-GE2CQECR.js → item-revision-R5SZPJZ5.js} +2 -2
- package/dist/cli-bundle/chunks/item-transaction-7DFCG73I.js +2 -0
- package/dist/cli-bundle/chunks/{mutation-actor-5GYX7LP3.js → mutation-actor-3TG636XG.js} +2 -2
- package/dist/cli-bundle/chunks/{mutation-admission-72TYKPGU.js → mutation-admission-LICSDNNO.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-OQZZEWEB.js → register-list-query-SPGPS3OS.js} +10 -10
- package/dist/cli-bundle/chunks/{register-mutation-YZEUZ6XT.js → register-mutation-WWVECKFQ.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-JNVCF7EW.js → register-operations-L6HFJNWD.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-LDKULZSD.js → register-setup-K7UFG5TD.js} +2 -2
- package/dist/cli-bundle/chunks/{settlement-hook-E5LHZ4RD.js → settlement-hook-BXN5LEQD.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-Q2QZ2IBG.js → stage-57KH3KAC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IXYBN6D2.js → chunk-3IRCYJI5.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{chunk-DH4DHL6V.js → chunk-3V53UBHN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-7SB6VKEI.js → chunk-532WZV65.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KQJNJZKP.js → chunk-7A4QWNZX.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-CR7CGEB2.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-CU2BRAOX.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-MJP3TFVW.js → chunk-CWWKRI5P.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-FPKVHC3Q.js → chunk-HGFNL5XI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-IQK5NPMG.js +13 -0
- package/dist/cli-bundle/focused-chunks/{chunk-UATP3RK3.js → chunk-J63D6QST.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-ZKGGGU2K.js → chunk-JMQJBZQ5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-O25KFLLA.js → chunk-LNHUE4VV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-BZCLW5V7.js → chunk-MKM5NKD7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-5VSXKA35.js → chunk-NP72ZDXE.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-PZSTRYTA.js → chunk-OSLQD5VH.js} +37 -37
- package/dist/cli-bundle/focused-chunks/{chunk-V55XZFOP.js → chunk-QGKLRXP7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-TNKI6WKG.js → chunk-QSJW6NSQ.js} +53 -53
- package/dist/cli-bundle/focused-chunks/{chunk-PKMDWIP3.js → chunk-RPE6IX26.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-SRDQSA6M.js +91 -0
- package/dist/cli-bundle/focused-chunks/{chunk-PQXTZLK3.js → chunk-UOC6257J.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-SJE3PYPI.js → chunk-URJ2E6AS.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-WXMI4AV5.js +8 -0
- package/dist/cli-bundle/focused-chunks/{chunk-PRFEOCNZ.js → chunk-XCJSHNXK.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-QNJQPJWO.js → chunk-XQQSSKJI.js} +5 -5
- package/dist/cli-bundle/focused-chunks/{chunk-JUYJ7NXL.js → chunk-YOAYY3HE.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{indexed-receipt-blobs-ZTRFCPH7.js → indexed-receipt-blobs-AF4U3F3D.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{item-revision-OXDZHMJ7.js → item-revision-3V3UIP5X.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{item-transaction-54VSTT6L.js → item-transaction-HLBW7B3J.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-actor-6DYIF6NH.js → mutation-actor-62HKR5IO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{mutation-admission-2BYXANVJ.js → mutation-admission-X4PF2SG3.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{settlement-hook-OUBUN45C.js → settlement-hook-ARYCZQY4.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{stage-FGHSB3QX.js → stage-O7T7CXBB.js} +2 -2
- package/dist/cli-bundle/main.js +25 -25
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +1 -1
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +58 -57
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +11 -11
- package/dist/core/extensions/index.d.ts +2 -0
- package/dist/core/extensions/index.js +1 -1
- package/dist/core/fs/fs-utils.d.ts +3 -1
- package/dist/core/fs/fs-utils.js +1 -1
- package/dist/core/history/history-stream-policy.js +1 -1
- package/dist/core/history/read.d.ts +11 -1
- package/dist/core/history/read.js +1 -1
- package/dist/core/history/stream-summary.d.ts +129 -0
- package/dist/core/history/stream-summary.js +3 -0
- package/dist/core/shared/errors.d.ts +8 -0
- package/dist/core/shared/errors.js +1 -1
- package/dist/core/shared/url-credentials.js +1 -1
- package/dist/sdk/cli-contracts/registration-helpers.js +2 -2
- package/dist/sdk/governance/gc.js +1 -1
- package/dist/sdk/governance/health-merge-evidence.js +1 -1
- package/dist/sdk/governance/validate.js +1 -1
- package/dist/sdk/governance/workspace-position.js +1 -1
- package/dist/sdk/history-provenance.js +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/merge/index.d.ts +1 -1
- package/dist/sdk/merge/index.js +1 -1
- package/dist/sdk/merge/install.d.ts +20 -6
- package/dist/sdk/merge/install.js +3 -3
- package/dist/sdk/merge/worktree-config.js +2 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/activity.d.ts +67 -5
- package/dist/sdk/query/activity.js +1 -1
- package/dist/sdk/query/context.d.ts +13 -3
- package/dist/sdk/query/context.js +2 -2
- package/dist/sdk/query.d.ts +1 -1
- package/dist/sdk/query.js +1 -1
- package/docs/COMMANDS.md +56 -2
- package/docs/MERGE_SAFETY.md +8 -0
- package/docs/MUTATION_INTEGRITY.md +3 -1
- package/docs/PERFORMANCE.md +17 -2
- package/docs/README.md +6 -4
- package/docs/SDK.md +25 -1
- package/docs/TESTING.md +8 -697
- package/docs/WORKSPACE_POSITION_AND_LIFECYCLE.md +1 -1
- package/marketplace.json +1 -1
- package/package.json +6 -2
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli-bundle/chunks/chunk-5OFMWP3Q.js +0 -3
- package/dist/cli-bundle/chunks/chunk-7ESF676D.js +0 -125
- package/dist/cli-bundle/chunks/chunk-7EZZ4W7O.js +0 -20
- package/dist/cli-bundle/chunks/chunk-VS565KBX.js +0 -2
- package/dist/cli-bundle/chunks/chunk-W4TLA5H3.js +0 -8
- package/dist/cli-bundle/chunks/item-transaction-YSAWJRA2.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-3LRSQXCN.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-FOA7XKWP.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-I7XBR2RM.js +0 -91
- package/dist/cli-bundle/focused-chunks/chunk-SIPDQBJI.js +0 -8
- package/dist/cli-bundle/focused-chunks/chunk-TRCXANRR.js +0 -12
- package/docs/MCP_2026_07_28_CONFORMANCE.md +0 -41
- package/docs/QUALITY_EVIDENCE.md +0 -130
- package/docs/generated/FLAG_LEXICON_BUDGETS.md +0 -117
- package/docs/performance/cli-transport-overhead.md +0 -51
- package/docs/performance/runner-qualification.md +0 -36
- package/docs/performance/sdk-entrypoint-import-costs.md +0 -32
package/docs/COMMANDS.md
CHANGED
|
@@ -188,7 +188,9 @@ pm list --status in_progress --assignee-filter unassigned --updated-before -72h
|
|
|
188
188
|
`pm health` prints these sweeps (with the configured status id and threshold)
|
|
189
189
|
as the remedies of its `in_progress_unowned`, `in_progress_idle` and
|
|
190
190
|
`stale_in_progress_items` advisories, and `pm context` counts
|
|
191
|
-
`in_progress_unowned` and `in_progress_idle` next to `in_progress`.
|
|
191
|
+
`in_progress_unowned` and `in_progress_idle` next to `in_progress`. All three
|
|
192
|
+
count items in the configured progress status, whatever role that status
|
|
193
|
+
carries, so neither advisory can exceed `in_progress` (GH-1756). The sweeps
|
|
192
194
|
select by `updated_at`, so they are candidate lists: an item restored within
|
|
193
195
|
the window keeps an older `updated_at` but recent history, and only
|
|
194
196
|
`--takeover-stale` applies the full activity clock.
|
|
@@ -1355,7 +1357,7 @@ Use dry-run modes before broad lifecycle or cleanup changes.
|
|
|
1355
1357
|
|
|
1356
1358
|
`pm gc --scope` accepts `index`, `embeddings`, `runtime`, `locks`, and `checkpoints`, comma-separated or repeated. Omitting the flag selects all scopes:
|
|
1357
1359
|
|
|
1358
|
-
- `runtime` clears `runtime/test-runs
|
|
1360
|
+
- `runtime` clears `runtime/test-runs/`, `runtime/history-drift-cache.json` and `runtime/history-stream-summary.json`. It never follows a link: a cache target that is one is retained with a `not_a_file` or `not_a_directory` warning, and when `runtime/` itself is a link, junction or file nothing under it is removed (`redirected_runtime_directory:runtime`). The next health check rescans history drift, and the next activity or context read parses every history stream once to rebuild the stream summary.
|
|
1359
1361
|
- `embeddings` removes keyword/semantic artifacts (`search/embeddings.jsonl`, `search/vectorization-status.json`, `search/lancedb/`) plus `search/pending-refresh.json` and its gate, preventing a background worker from rebuilding a partial index against an empty ledger. Rebuild with keyword reindex and semantic reindex when enabled.
|
|
1360
1362
|
- `locks` removes locks with an expired embedded `created_at + ttl_seconds` lease or positive same-host original-owner death evidence. It rechecks the observed receipt under the writer cleanup gate before deletion; replaced or initializing locks remain. Active, unreadable, or unparseable locks remain. The result reports `scanned`, `removed`, and `retained` counts.
|
|
1361
1363
|
|
|
@@ -1538,6 +1540,58 @@ metadata changes may also require a restart. Continuation does not retain a
|
|
|
1538
1540
|
persisted or atomic cross-file snapshot. Use `--from` for a starting timestamp;
|
|
1539
1541
|
`--since` refusals suggest that correction. Use an envelope (for example `--json`
|
|
1540
1542
|
without `--stream`) when paging: stream mode emits rows without cursor metadata.
|
|
1543
|
+
|
|
1544
|
+
On a tracker with 500 or more history streams, activity reads and the
|
|
1545
|
+
`pm context` activity section are bounded by their window instead of the
|
|
1546
|
+
history archive (GH-1664). A derived, gitignored
|
|
1547
|
+
`runtime/history-stream-summary.json` records each stream's entry count and
|
|
1548
|
+
oldest/newest timestamps under the stat signature (device, inode, size, mtime,
|
|
1549
|
+
ctime and the reader's credentials: effective user, group and supplementary
|
|
1550
|
+
groups on POSIX, the account name on Windows) of the open file that supplied
|
|
1551
|
+
the bytes, with a checksum over the file. A read skips a stream only while that
|
|
1552
|
+
signature is unchanged and the stream had not changed within two seconds of the
|
|
1553
|
+
read that recorded it, so appends, redaction, compaction, repair and restore
|
|
1554
|
+
all invalidate it without cooperation, and other POSIX credentials never reuse
|
|
1555
|
+
bounds for a stream they may not be allowed to read. Like the metadata cache,
|
|
1556
|
+
the summary trusts the filesystem's stat results: on Windows, processes of one
|
|
1557
|
+
account share it whatever their token, and a network mount that caches
|
|
1558
|
+
attributes can delay invalidation until its cache expires. Rows, totals, cursors and errors equal those of a complete read.
|
|
1559
|
+
A stream the window reaches is still parsed in full, so a read costs the size
|
|
1560
|
+
of the streams with entries in its window, not the size of the archive. Before
|
|
1561
|
+
it finishes, a bounded read re-stats the streams it skipped on their bounds and
|
|
1562
|
+
reads any that changed, a best-effort per-stream recheck. Like a complete read,
|
|
1563
|
+
it is not an atomic snapshot: a write that lands in a stream after that stream
|
|
1564
|
+
was read or rechecked is not reflected. The
|
|
1565
|
+
context activity section takes the newest rows directly and returns no
|
|
1566
|
+
cursor. When a read could not be bounded it adds `history_read` (context:
|
|
1567
|
+
`activity_history_read`) with `reason` (`summary_missing`, `summary_invalid`,
|
|
1568
|
+
`summary_stale` or `irregular_timestamps`, named by the larger cause, when
|
|
1569
|
+
streams lack usable regular bounds because they changed or hold timestamps that
|
|
1570
|
+
are not canonical millisecond UTC: more than half of all streams as the read
|
|
1571
|
+
opens, or, when the read parsed most streams, more than half of those it
|
|
1572
|
+
parsed; `read_hooks_active` when read hooks were active as the read opened or
|
|
1573
|
+
became active while it ran, which ends pruning (a hook active at open keeps the
|
|
1574
|
+
complete read in file order; one registered mid-read observes every stream the
|
|
1575
|
+
read has not yet read, exactly once, but a side effect it has on a stream the
|
|
1576
|
+
reordered read already parsed is not reflected); `unwindowed_query` when a
|
|
1577
|
+
read with no `--from` bound parsed most streams, or `window_reaches_most_streams`
|
|
1578
|
+
when current bounds still left most streams inside the window), `streams_read`
|
|
1579
|
+
(streams parsed; one removed after the listing is not counted) and
|
|
1580
|
+
`streams_total`; `--stream` carries it on the `meta` record, markdown context
|
|
1581
|
+
adds a `history read:` line, and NDJSON context, whose stdout carries focus rows
|
|
1582
|
+
only, writes `[pm] warning: activity_history_read reason=<reason>
|
|
1583
|
+
streams_read=<read>/<total>` to stderr. Bounded reads add nothing. On POSIX the summary file is written owner-only (mode 0600) and is
|
|
1584
|
+
trusted only when the reading user owns it and no one else can write it; on
|
|
1585
|
+
Windows it inherits the runtime directory's ACL. A summary in a redirected
|
|
1586
|
+
`runtime/` (symbolic link or junction), or any entry at the summary path that
|
|
1587
|
+
is not a regular file (a link, directory, FIFO or socket), is never read,
|
|
1588
|
+
written or replaced, and the read then computes no bounds at all; an oversized
|
|
1589
|
+
summary is never read. Like the context-usage ledger, the
|
|
1590
|
+
checks reject existing redirections and require trusted, stable workspace
|
|
1591
|
+
directories: portable Node APIs cannot pin `runtime/` against an actor that
|
|
1592
|
+
replaces it concurrently.
|
|
1593
|
+
Extensions with read hooks keep the complete read, so every stream read is
|
|
1594
|
+
still observed.
|
|
1541
1595
|
Workspace-scoped mutations to settings, schema, profiles, init state, and
|
|
1542
1596
|
extension/package activation are recorded in
|
|
1543
1597
|
`.agents/pm/history/_workspace.jsonl` using the same patch/hash format.
|
package/docs/MERGE_SAFETY.md
CHANGED
|
@@ -109,6 +109,14 @@ Removing a sibling worktree does not remove a separately installed main driver.
|
|
|
109
109
|
Use `pm merge install` in the affected worktree to repair stale, missing, or
|
|
110
110
|
incompatible commands. A dry run changes neither configuration nor attributes.
|
|
111
111
|
|
|
112
|
+
Attribute evidence stops at the active worktree's top level
|
|
113
|
+
([pm-gh1759](../.agents/pm/issues/pm-gh1759.toon)). Git never reads a
|
|
114
|
+
`.gitattributes` above it, so a matching fence in an enclosing, different
|
|
115
|
+
repository never satisfies `pm health`, `pm validate` or the workspace
|
|
116
|
+
position read: a linked worktree without its own fence reports
|
|
117
|
+
`merge_fence_missing`. A fence at the worktree root, or in a directory between
|
|
118
|
+
that root and the tracker, still counts.
|
|
119
|
+
|
|
112
120
|
### Fence coverage contract
|
|
113
121
|
|
|
114
122
|
Extension assets are tracked by [pm-gh1460](../.agents/pm/issues/pm-gh1460.toon).
|
|
@@ -104,7 +104,9 @@ time: it can include an item whose history is newer than its `updated_at`
|
|
|
104
104
|
(for example after a restore), which the advisory does not count;
|
|
105
105
|
`pm claim <id> --takeover-stale` re-judges each one under the item lock. `pm context` reports `in_progress_unowned`
|
|
106
106
|
and `in_progress_idle` next to `in_progress` in its summary when they are
|
|
107
|
-
non-zero, so unattended work is not read as active work.
|
|
107
|
+
non-zero, so unattended work is not read as active work. `in_progress` counts
|
|
108
|
+
the same population as both advisories: every item in the configured progress
|
|
109
|
+
status, whatever role that status carries (GH-1756).
|
|
108
110
|
|
|
109
111
|
A blocking secret policy may be bypassed only by an explicit `--force` on a
|
|
110
112
|
force-capable mutation. The warning records that an override occurred while
|
package/docs/PERFORMANCE.md
CHANGED
|
@@ -57,11 +57,26 @@ For a fast, deterministic one-item cold-start floor covering `get`, `list`,
|
|
|
57
57
|
pnpm benchmark:transport:check
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
The committed [CLI transport report](performance/cli-transport-overhead.md)
|
|
60
|
+
The committed [CLI transport report](https://github.com/unbraind/pm-cli/blob/main/docs/performance/cli-transport-overhead.md)
|
|
61
61
|
contains best/p50/p95 measurements and a stage breakdown. SDK entrypoint import
|
|
62
62
|
costs are independently gated with `pnpm benchmark:sdk-entrypoints:check` and
|
|
63
63
|
documented in the
|
|
64
|
-
[SDK entrypoint report](performance/sdk-entrypoint-import-costs.md).
|
|
64
|
+
[SDK entrypoint report](https://github.com/unbraind/pm-cli/blob/main/docs/performance/sdk-entrypoint-import-costs.md). The committed reports under `docs/performance/` are repository-only and excluded from npm.
|
|
65
|
+
|
|
66
|
+
Recent-activity reads are gated on history volume rather than item count
|
|
67
|
+
(GH-1664). `node scripts/bench/history-read-costs.mjs --check`, part of
|
|
68
|
+
`pnpm quality:static`, measures `pm context --for orient --limit 3` on a
|
|
69
|
+
fixture with 2,000 history streams and over 100 MiB of history, once with
|
|
70
|
+
trusted derived stream bounds and once with the summary path blocked before
|
|
71
|
+
every sample, which forces a complete traversal that persists nothing. The bounded p50 must stay below 0.6 of the same runner's full-scan p50;
|
|
72
|
+
on a qualified runner whose full scan exceeds the declared ceiling it must also
|
|
73
|
+
stay below that ceiling, and elsewhere the absolute check is reported as
|
|
74
|
+
unverified. See the
|
|
75
|
+
[history read report](https://github.com/unbraind/pm-cli/blob/main/docs/performance/history-read-costs.md). The bounds live in
|
|
76
|
+
`runtime/history-stream-summary.json`, a checksummed derived file trusted per
|
|
77
|
+
stream only while the stream's stat signature (device, inode, size, mtime,
|
|
78
|
+
ctime and the reader's credentials) is unchanged; it is safe to delete, and trackers
|
|
79
|
+
under 500 history streams never write it.
|
|
65
80
|
|
|
66
81
|
The metadata read cache is rebuildable derived state. Workspaces with at least
|
|
67
82
|
500 indexed items use its directory-validated fast path to avoid per-item
|
package/docs/README.md
CHANGED
|
@@ -22,7 +22,7 @@ pm guide release --json
|
|
|
22
22
|
| New user | [Quickstart](QUICKSTART.md) | [Command Reference](COMMANDS.md) |
|
|
23
23
|
| New maintainer | [Onboarding](ONBOARDING.md) | [Agent Guide](AGENT_GUIDE.md), [Testing](TESTING.md), [Releasing](https://github.com/unbraind/pm-cli/blob/main/docs/RELEASING.md) (repository-only, excluded from npm) |
|
|
24
24
|
| Coding agent | [Agent Guide](AGENT_GUIDE.md) | [Configuration](CONFIGURATION.md), then command help |
|
|
25
|
-
| Maintainer | [Contributing](../CONTRIBUTING.md) | [Testing](TESTING.md), [Releasing](https://github.com/unbraind/pm-cli/blob/main/docs/RELEASING.md) (repository-only, excluded from npm), [Architecture](ARCHITECTURE.md) |
|
|
25
|
+
| Maintainer | [Contributing](../CONTRIBUTING.md) | [Testing](TESTING.md), [Repository Testing](https://github.com/unbraind/pm-cli/blob/main/docs/REPOSITORY_TESTING.md) (repository-only, excluded from npm), [Releasing](https://github.com/unbraind/pm-cli/blob/main/docs/RELEASING.md) (repository-only, excluded from npm), [Architecture](ARCHITECTURE.md) |
|
|
26
26
|
| Package author | [Packages and Extensions](EXTENSIONS.md) | [SDK](SDK.md), [starter extension](examples/starter-extension/README.md) |
|
|
27
27
|
| Codex or ChatGPT plugin implementer | [Codex Plugin](CODEX_PLUGIN.md) | [Native ChatGPT and Codex Plugin Implementation Plan](https://github.com/unbraind/pm-cli/blob/main/docs/CHATGPT_CODEX_PLUGIN_IMPLEMENTATION.md) (repository-only, excluded from npm) |
|
|
28
28
|
| Codex user | [Codex Plugin](CODEX_PLUGIN.md) | [Agent Guide](AGENT_GUIDE.md), then [Command Reference](COMMANDS.md) |
|
|
@@ -43,7 +43,8 @@ pm guide release --json
|
|
|
43
43
|
- [CLI Scripting Contract](SCRIPTING.md) - exit codes, flat mutation receipts versus read envelopes, stdout/stderr boundaries, stable JSON fields, uniform OR filters, and shell composition recipes.
|
|
44
44
|
- [Configuration](CONFIGURATION.md) - settings, storage formats, output, search, validation, and environment variables.
|
|
45
45
|
- [Semantic Batching and Retrieval Quality](SEARCH_QUALITY.md) - independent request bounds, execution receipts, and per-query quality floors.
|
|
46
|
-
- [Testing](TESTING.md) - sandbox-safe
|
|
46
|
+
- [Testing](TESTING.md) - sandbox-safe linked-test orchestration.
|
|
47
|
+
- [Repository Testing](https://github.com/unbraind/pm-cli/blob/main/docs/REPOSITORY_TESTING.md) - this repository's own local checks, CI layout, coverage governance and release gates (repository-only, excluded from npm).
|
|
47
48
|
- [Faithful Package Acceptance](PACKAGE_GATE_ACCEPTANCE.md) - self-isolating package gates, independent Git snapshots, native diagnostics and isolated timing admission.
|
|
48
49
|
- [Completion Portability and Bounded Replication Checks](VALIDATION_PORTABILITY.md) - literal Bash choices across versions and locales, and semantic Git diff collection.
|
|
49
50
|
- [Build and Release Acceptance](BUILD_AND_RELEASE_ACCEPTANCE.md) - complete-build leases and cross-platform registry installation controls.
|
|
@@ -56,7 +57,7 @@ pm guide release --json
|
|
|
56
57
|
- [SDK Action and Boundary Conformance](SDK_ACTION_CONFORMANCE.md) - derived CLI/SDK/MCP action vocabulary, public-import ratchets, intent budget diagnostics, and package-runner proof.
|
|
57
58
|
- [MCP 2026-07-28 Protocol Decision](MCP_2026_07_28.md) - stateless request metadata, discovery, result envelopes, explicit legacy boundary, and migration policy.
|
|
58
59
|
- [Progressive Tool Discovery](PROGRESSIVE_TOOL_DISCOVERY.md) - opt-in bounded MCP catalogs, public SDK ranking and pagination, canonical results, and compatibility isolation.
|
|
59
|
-
- [MCP 2026-07-28 Conformance Matrix](MCP_2026_07_28_CONFORMANCE.md) - official revision changes mapped to canonical owners and executable evidence.
|
|
60
|
+
- [MCP 2026-07-28 Conformance Matrix](https://github.com/unbraind/pm-cli/blob/main/docs/MCP_2026_07_28_CONFORMANCE.md) - official revision changes mapped to canonical owners and executable evidence (repository-only, excluded from npm).
|
|
60
61
|
- [MCP Interaction and Task SDK](SDK_MCP_INTERACTIONS.md) - public MRTR continuation, cache/schema validation, and durable task-store contracts.
|
|
61
62
|
- [MCP Skills and Apps](MCP_SKILLS_AND_APPS.md) - negotiated draft workflow discovery, stable interactive views, digests, provenance, accessibility, and trust boundaries.
|
|
62
63
|
- [MCP Remote Transport, Authorization, and Migration](MCP_REMOTE_TRANSPORT_SECURITY.md) - Streamable HTTP operation, subscriptions, OAuth and trace boundaries, threat model, and deprecated-feature ratchet.
|
|
@@ -76,6 +77,7 @@ pm guide release --json
|
|
|
76
77
|
- [History Algorithms and Detached Attestations](HISTORY_ATTESTATION.md) - named record digests, portable exact-byte proofs, and read-only verification.
|
|
77
78
|
- [History-derived Governance Repair](HISTORY_GOVERNANCE_REPAIR.md) - verified closure timestamps and typed issue-code lineage.
|
|
78
79
|
- [History Maintenance and Recovery](HISTORY_MAINTENANCE.md) - native history commands, permanent aliases, shared SDK transforms, and transactional recovery.
|
|
80
|
+
- [History Durability and Recovery](HISTORY_RECOVERY.md) - history-only lifecycle reconstruction and recovery contracts.
|
|
79
81
|
- [Agent Recovery and Guidance](AGENT_RECOVERY_AND_GUIDANCE.md) - policy refusal evidence, canonical help, and managed instruction freshness.
|
|
80
82
|
- [Declarative Workflow Policies](WORKFLOW_POLICIES.md) - portable lifecycle requirements, independent approvals, and completeness reports.
|
|
81
83
|
- [Mutation Integrity](MUTATION_INTEGRITY.md) - shared CLI/SDK/MCP author, secret, append-only disposition, and stale-work guardrails.
|
|
@@ -123,7 +125,7 @@ Additional SDK, operations, and generated contracts:
|
|
|
123
125
|
- [SDK Runtime Boundaries](SDK_RUNTIME_BOUNDARIES.md) - runtime ownership and import boundaries.
|
|
124
126
|
- [Sentry Contract Epochs](SENTRY_CONTRACT_EPOCHS.md) - diagnostic compatibility and release epochs.
|
|
125
127
|
- [Generated Agent Command Surface](generated/AGENT_COMMAND_SURFACE.md) - command routing inventory.
|
|
126
|
-
- [Generated Flag Lexicon Budgets](generated/FLAG_LEXICON_BUDGETS.md) - flag vocabulary and budget inventory.
|
|
128
|
+
- [Generated Flag Lexicon Budgets](https://github.com/unbraind/pm-cli/blob/main/docs/generated/FLAG_LEXICON_BUDGETS.md) (repository-only, excluded from npm; `listPmFlagLexicon()` returns the same inventory) - flag vocabulary and budget inventory.
|
|
127
129
|
|
|
128
130
|
## Guide Topic Map
|
|
129
131
|
|
package/docs/SDK.md
CHANGED
|
@@ -129,7 +129,7 @@ surface change. The bare
|
|
|
129
129
|
`@unbrained/pm-cli` root export is recorded as an `aggregate_alias` of
|
|
130
130
|
`@unbrained/pm-cli/sdk`: its symbols are not duplicated, but a retarget of its
|
|
131
131
|
declaration path is a snapshot change. The committed
|
|
132
|
-
[entrypoint import-cost table](performance/sdk-entrypoint-import-costs.md)
|
|
132
|
+
[entrypoint import-cost table](https://github.com/unbraind/pm-cli/blob/main/docs/performance/sdk-entrypoint-import-costs.md) (repository-only, excluded from npm)
|
|
133
133
|
records fresh-process latency, RSS, and reduction versus the aggregate barrel.
|
|
134
134
|
Every narrow entrypoint is bundled and type-tested independently.
|
|
135
135
|
|
|
@@ -830,6 +830,30 @@ Content fingerprints hash canonical rows incrementally, bounding additional
|
|
|
830
830
|
serialization storage to the largest row. Digest activity also hashes its full
|
|
831
831
|
source events incrementally so hidden patch changes still invalidate a cursor.
|
|
832
832
|
|
|
833
|
+
On a tracker with 500 or more history streams, `runActivity` parses only the
|
|
834
|
+
streams its window can reach, using derived per-stream bounds that are trusted
|
|
835
|
+
only while each stream's stat signature is unchanged; rows, totals, cursors and
|
|
836
|
+
errors are those of a complete read. A stream the window reaches is parsed in
|
|
837
|
+
full, so the cost follows the streams with entries in the window, not the
|
|
838
|
+
archive. A read that could not be bounded carries
|
|
839
|
+
`history_read: { reason, streams_read, streams_total }`, where `reason` is
|
|
840
|
+
`summary_missing`, `summary_invalid`, `summary_stale` or
|
|
841
|
+
`irregular_timestamps` (named by the larger cause, when more than half of all
|
|
842
|
+
streams lack usable regular bounds as the read opens, or when the read parsed
|
|
843
|
+
most streams and more than half of those it parsed were stale or irregular),
|
|
844
|
+
`read_hooks_active` (read hooks were active when the read opened, or became
|
|
845
|
+
active while it ran, which ends pruning), `unwindowed_query`
|
|
846
|
+
(no `from` bound and most streams parsed; pass one to bound the read), or
|
|
847
|
+
`window_reaches_most_streams` (current bounds, but the window still reached
|
|
848
|
+
most streams).
|
|
849
|
+
`readRecentActivity({ limit }, global)` returns the newest compact rows (the
|
|
850
|
+
first page of `raw: true`) without totals or a cursor. `limit` caps the rows
|
|
851
|
+
returned, not the streams parsed: with usable stream bounds and no active read
|
|
852
|
+
hooks it prunes streams that cannot reach those rows, while under 500 streams
|
|
853
|
+
or with read hooks it parses every stream. `pm context` builds its activity
|
|
854
|
+
section with it and reports a fallback as `activity_history_read`. Repository tracking:
|
|
855
|
+
[pm-gh1664](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-gh1664.toon).
|
|
856
|
+
|
|
833
857
|
`runCalendar` uses the same `after` contract and frozen clock. `total_count`
|
|
834
858
|
counts matching expanded rows within the selected window and recurrence caps;
|
|
835
859
|
`count`, `page_start`, `omitted_count`, `has_more`, and `next_cursor` describe
|