Repository navigation
v4.0.1
A patch release on top of v4.0.0. It fixes packaged bernstein demo execution from wheels, adds copy-pasteable offline receipt verification hints, resolves fractional-weight stalls in FairScheduler, and ships bug fixes across CLI diagnostics, metrics, and release gating. There are no breaking changes and no configuration migration is required.
First-run demo and offline receipt verification
bernstein demo and bernstein demo --flask-todo now ship their fixture templates inside the wheel, initialize a clean Git repository for --flask-todo, and pass all batched task titles through CachingAdapter so multi-task mock sessions complete every assigned fix. At the end of a run, bernstein demo prints unwrapped openssl, bernstein verify run, and bernstein verify receipt commands bound to the top-level orchestration journal through contained_run_journal, and bernstein verify run shows how to generate an Ed25519 key when none is configured (#8142).
Scheduling, tasks, and metrics
FairScheduler.dequeue() advances credits directly to the next runnable round for positive fractional weights while clamping peer deficits so tiny weights cannot raise OverflowError (#8035). Priority aging never demotes a task already at or above min_priority (#8083), and skill helpfulness scoring selects the latest completion timestamp rather than file order (#8070). ErrorBudget reports zero tasks to exhaustion when already depleted (#8081), remainder formulas in custom metrics return 0.0 on a zero divisor instead of aborting the batch (#8082), repository flow-series loaders reject non-integer counters (#8088), direct inbox reads skip non-object JSON records (#8080), and StreamTailBuffer returns an empty tail when limit=0 (#8079).
CLI, diagnostics, and replay
bernstein logs search applies --limit after ordering newest matches across sources (#7987). bernstein diff retains the final hunk of each file in folded diffs (#7985) and renders literal brackets in word diffs (#7983). changelog conventional history links follow --until (#7991), notebook trace diffs record cell-type conversions as replacements (#7993), config-path writes plain JSON when colour is forced (#7961), and local resume reports dispatch outcomes as JSON (#7850). GoalDriftReplayAdapter can record an optional in-process intent score on trajectory events for offline replay (#7099, #8006). Benchmark charts sort rows by UTC instant (#7989), trend scoring matches dotted Python release numbers (#7981), file-health scoring matches whole path components (#7974), repository analysis counts test paths relative to the analyzed root (#8091), and default output styles deduplicate by name (#8090).
Release pipeline and dependencies
The post-CI dispatcher verifies that the exact tested merge-queue commit landed in main history before invoking privileged release jobs (#7082). Dependency wcmatch is updated to 11.2 (#8074), and docs/requirements.txt transitive pins are refreshed for mkdocs build --strict (#6940).
Contributors
Thanks to @vaibhav8a and @Chirag6722 for contributions in this release.
Upgrading
pipx upgrade bernstein # or: uv tool upgrade bernsteinNo configuration migration is required.
What's Changed
- docs: regenerate adapter last-green table from canary receipts by @chernistry in #7836
- fix(ci): attribute generated canary commits to GitHub Actions by @chernistry in #7949
- Pin the hash ring’s known shard assignments by @chernistry in #7954
- fix(cli): emit plain JSON from config-path when colour is forced by @chernistry in #7961
- Pin npm installs in the adapter contract drift workflow by @chernistry in #7962
- Resolve sharp 0.35.5 in the adapter CLI lockfile by @chernistry in #7964
- Update docker/login-action digest to 8aa5831 by @renovate[bot] in #7442
- Run the Trivy filesystem scan on every dependency lockfile change by @chernistry in #7967
- Report release runs waiting on an environment for more than 24 hours by @chernistry in #7968
- Define health checks for the devcontainer and fixture seeder by @chernistry in #7898
- fix(cli): report local resume dispatch as JSON by @chernistry in #7850
- docs(release-notes): add a readable overview to the v4.0.0 notes by @chernistry in #7951
- Use the command name once in the root man page by @chernistry in #7969
- Assign calibration observations using the reported bucket edges by @chernistry in #7971
- Show the release notes truncation marker only when content is omitted. by @chernistry in #7982
- Reject empty members in cron field lists. by @chernistry in #7988
- Skip scenario files that cannot be decoded. by @chernistry in #7999
- Demonstrate offline comparison of render receipts. by @chernistry in #8009
- Keep monthly forecasts at recorded spend when the horizon ends. by @chernistry in #8010
- Compare empty configuration mappings with the defaults. by @chernistry in #8013
- Keep canaries running at the exact rollback margin. by @chernistry in #8034
- Keep benchmark results local to each suite run. by @chernistry in #8038
- Honor zero capacity when pruning SQLite memory. by @chernistry in #8040
- Resolve recipe defaults to their declared parameter types. by @chernistry in #8066
- Report worktree status as unavailable when Git status fails by @chernistry in #8069
- docs(security): refresh the context file against its subtree (#6939) by @vaibhav8a in #6971
- Include request completion times in load test throughput. by @chernistry in #7977
- docs(cli): refresh the context file against its subtree (#6939) by @vaibhav8a in #6973
- docs: refresh docs/requirements.txt transitive pins (#6940) by @Chirag6722 in #6954
- Update prom/prometheus Docker tag to v3.16.0 by @renovate[bot] in #7842
- Update dependency @vscode/vsce to v4.1.1 by @renovate[bot] in #7844
- ci: require complete evidence before the CI gate can pass by @chernistry in #7857
- Update dependency backrefs to v8.3 by @renovate[bot] in #7965
- Count each distinct run ID once in name collisions by @chernistry in #7970
- Require whole-line delimiters for skill frontmatter. by @chernistry in #7975
- Use the text token ratio for named build files. by @chernistry in #7978
- Count each workflow task once in import previews. by @chernistry in #7979
- Show every edge in text dependency chains. by @chernistry in #7984
- Preserve offsets and fractional seconds in log timestamps. by @chernistry in #7986
- Match plan steps by stage name and title. by @chernistry in #7992
- Test calibration summaries across input permutations. by @chernistry in #7995
- Test that one malformed calibration row discards the whole population. by @chernistry in #7996
- Test that render delta metadata survives payload mutations. by @chernistry in #7997
- Test mixed missing and changed render properties in lexical order. by @chernistry in #7998
- docs: richer chords on the README banner by @chernistry in #8127
- Write task graphs as standalone Mermaid diagrams. by @chernistry in #8001
- Write the original Git patch to stdout in raw mode. by @chernistry in #8002
- Document how to compare two render receipts. by @chernistry in #8005
- Demonstrate offline replay of recorded intent calibration. by @chernistry in #8008
- Read protocol baselines saved by the first compatibility run. by @chernistry in #8011
- Measure coverage using the importable module name. by @chernistry in #8036
- Preserve profile captures that share a timestamp. by @chernistry in #8037
- Filter dated fleet costs by the rolling window. by @chernistry in #8039
- Count sibling imports in the cross-file coupling score. by @chernistry in #8042
- Apply the requested line limit to cached file trees. by @chernistry in #8043
- Select dependency paths in a stable order at the file limit. by @chernistry in #8067
- Treat null stage dependencies as empty when explaining plans by @chernistry in #8071
- Skip invalid cost totals when loading run snapshots by @chernistry in #8073
- Update dependency wcmatch to v11.2 [SECURITY] by @renovate[bot] in #8074
- Match shard timings to repository-relative test paths. by @chernistry in #8064
- Match the complete word shall in requirements by @chernistry in #7973
- Group root-level test modules under the repository root. by @chernistry in #7990
- Honor breaking change footers when calculating the next version. by @chernistry in #7994
- Keep zero-second primary latencies in simulation history by @chernistry in #7972
- Give each TaskStore benchmark run its own temporary directory. by @chernistry in #8003
- Record optional intent scores during goal drift benchmarks. by @chernistry in #8006
- Keep decorators with their definitions in review chunks. by @chernistry in #8041
- Identify the output file before overwriting a plan template. by @chernistry in #8000
- Ignore keyword-only declaration order in compatibility reports. by @chernistry in #8012
- Read dashboard totals from the nested status summary. by @chernistry in #8065
- Include all-failing cycles in the test pass trend. by @chernistry in #8068
- Clamp task counters before calculating progress percentages by @chernistry in #8072
- Skip fenced examples when parsing Markdown task lists. by @chernistry in #7980
- fix(golden-path): fix wheel demo/flask-todo, add own-receipt verify hints, clean storefront by @chernistry in #8142
- Use the latest completion when scoring skill outcomes by @chernistry in #8070
- Match file health coverage on whole path components. by @chernistry in #7974
- Sort benchmark chart rows by their recorded instant. by @chernistry in #7989
- Match dotted Python release numbers when scoring trends. by @chernistry in #7981
- Preserve literal brackets in terminal word diffs. by @chernistry in #7983
- Use the selected end ref in changelog history links. by @chernistry in #7991
- Record notebook cell type changes as replacements. by @chernistry in #7993
- Keep the final hunk of each file in a folded diff. by @chernistry in #7985
- Return the newest matching log entries up to the search limit. by @chernistry in #7987
- fix(knowledge): count test files relative to the analyzed root by @vaibhav8a in #8091
- fix(config): duplicate default output-style names keep the first by @vaibhav8a in #8090
- fix(handoff): a zero limit returns an empty handoff tail by @vaibhav8a in #8079
- fix(slo): a depleted error budget reports zero tasks to exhaustion by @vaibhav8a in #8081
- fix(communication): receive skips an inbox record that is not a JSON object by @vaibhav8a in #8080
- fix(observability): a text counter in a flow sample is an error by @vaibhav8a in #8088
- fix(tasks): priority aging never demotes a task above the floor by @vaibhav8a in #8083
- fix(metrics): a zero remainder divisor no longer aborts the batch by @vaibhav8a in #8082
- Advance scheduler credits until a runnable tenant can serve a task. by @chernistry in #8035
- chore(release): v4.0.1 by @chernistry in #8143
Full Changelog: v4.0.0...v4.0.1