Repository navigation
v2026.11.22
·
383 commits
to main
since this release
@unbrained/pm-cli 2026.11.22
Source range: v2026.11.21...v2026.11.22
Changelog
Changed (SDK contract)
- Typed update-many dispatch clears a null on a clearable field in every runAction spelling and refuses any other null by name: A null on an update field was dropped silently while the rest of the update applied; the option type refused null → For typed SDK dispatch a null on a clearable field clears it on every matched row, any other null refuses by name before a row changes, and a null on ids, limit, offset or a filter key refuses with invalid_argument_value. PmUpdateManyActionOptions types clearable fields as nullable. MCP update-many still treats null as an omitted argument. Migrate: Remove a null you relied on being ignored, or keep it to clear the field. Omit a selection key instead of passing null (pm-w7clh6)
- GH-1656: commitItemMutations accepts a transaction-owned finalize row, so an importer's exact lifecycle and extension fields are journaled and rolled back with the batch: A batch accepted create, update, close and release rows only. An importer finalizing exact lifecycle or extension fields wrote beside the transaction, so a later failure refused compensation with transaction_partial_mutation → A finalize row { op, id, set, unset, match, force } writes exact front-matter fields as a journaled, compensated step recorded under the import history operation. BulkItemMutation gains BulkItemFinalizeMutation; the structured document planner types name BulkItemLifecycleMutation. New refusal finalization_invalid_document. New export runInActiveExtensionScope. Migrate: Move a finalization written from an onTransition observer into a finalize row of the same batch. Code that switches exhaustively over BulkItemMutation op adds a finalize case; code that only reads planner output needs no change (pm-gh1656)
- A history stream with both a non-record line and a chain break has no pm recovery: salvage needs a verified chain and repair reads through the refusing decoder: Salvage refused any stream whose chain did not verify, even when it only removed lines that cannot hold a record, and reported verify_ok true, verify_errors [] and chain_drift_before false unconditionally → Removing only non-record lines no longer requires a verified chain; the result reports the real chain verdict and a history_chain_unverified warning names the repair previews. A scalar-only stream salvages to an empty stream with no salvage record, and for a live item a history_stream_empty warning names the rebuild. Discarding an invalid suffix still requires a verified prefix. Migrate: Read history.verify_ok and the warnings after a salvage instead of assuming a verified chain, and run the named repair when the chain is unverified (pm-rpucvb)
- pm health advises pm history-repair for history_drift_missing_stream, but history-repair refuses a stream with no entries: A missing stream was advised pm history-repair <id>, which refused with nothing to repair. Every chain break was history_drift_chain_mismatch with the append-only remedy, even when the bridge or both repairs refuse. The unreadable-stream remedy was the rewriting repair. A sealed record edited without a reseal crashed the rewriting repair with unknown_error → history-repair rebuilds a live item record-less stream with one sealed baseline (result.reseed). Health previews the repairs and reports history_drift_chain_unbridgeable (pm history-repair <id>) or history_drift_unrepairable_stream (pm history <id> --verify --full), with details.repair_refusals. The unreadable-stream remedy is the salvage preview. Bulk remedies apply only where they repair every stream. The rewriting repair refuses a damaged seal with history_record_integrity_invalid and a newer seal format with history_record_version_unsupported. Migrate: Callers that matched history_drift_chain_mismatch for every chain break also match history_drift_chain_unbridgeable and history_drift_unrepairable_stream, and read details.repair_refusals for the reason; counts.chain_mismatches still counts every stream whose chain fails verification (pm-3os5p6)
- A history line that is valid JSON but not an object (null, a number, an array) crashes pm activity and pm context with unknown_error: A history line that was valid JSON but not an object crashed pm activity, pm context, pm history and pm get with unknown_error, and --salvage-tail refused a line holding a JSON null, boolean or number → Readers that use the shared history decoder refuse such a line with history_record_invalid naming item_id, reason and details.line; readers with their own parser keep their diagnostics. --salvage-tail removes JSON null, boolean and number lines wherever they sit, reports non_record_lines in its receipt, and still refuses strings, arrays and complete malformed objects; a truncated object at the tail is part of the invalid suffix it discards. Migrate: Branch on history_record_invalid instead of unknown_error and follow its next step, pm history-repair <id> --salvage-tail --dry-run (pm-jbplbq)
- GH-1715: pm history-repair rewrites recorded entries after a mid-chain break, so the only drift remedy breaks append-only consumers and later merges: The only repair for a broken history chain re-anchored every recorded entry after the break, and HistoryMergeStrategy had four members → --append-only (SDK and MCP appendOnly) appends one sealed history_repair record whose bridge names each break and leaves every earlier line byte-identical. verifyHistoryChainWithVersion accepts a break only when the next bridge names it and reports bridged_segments. A rewrite that dissolves a bridge marks the covered versions with the sealed replay_inexact field, and restore and get --at refuse them with history_version_unreconstructable. The history merge driver adds the equivalent_bridges strategy, and pm health names --append-only as the remedy for history_drift_chain_mismatch. Migrate: Add a case for equivalent_bridges to exhaustive switches over HistoryMergeStrategy; raw history readers should ignore the optional bridge and replay_inexact fields or verify through verifyHistoryChainWithVersion, and treat history_version_unreconstructable as a refused version (pm-gh1715)
Security
- Retire the picomatch advisory waiver and its mirrored .trivyignore entry after GitHub withdrew GHSA-fc5q-39xc-vjpf on 2026-11-18 (pm-03q389)
Other
- Refresh matured tar 7.5.23, ESLint 10.15.0, knip 6.45.1, marked 18.2.0 and gpt-tokenizer 4.1.2 (pm-rnrefn)
PM Tracker Evidence
Closed pm items in release window: 8
By type: Feature=1, Issue=6, Chore=1
By status: closed=8
Selected release-related tracker items:
- No release-tagged pm items found in the selected window.