Add runtime contract and evidence hardening behind explicit subpaths. The root import remains unchanged.
- Add
@workit/core/contractsfor declared cancellable and shielded task composition. This is a compile-time intent contract; it does not prove that arbitrary task bodies observectx.signal. - Add
@workit/core/faultfor bounded in-process lifecycle fault scenarios over the real WorkIt scope engine. This is not OS fault injection, process crash recovery, network chaos testing, or deterministic scheduler replay. - Add declared agent tool capability checks to
@workit/core/ai, including a typedAgentCapabilityErrorand denial events before denied tool bodies run. - Extend
@workit/core/ledgerwith caller-owned SQLite and Postgres receipt ledger adapters. These adapters define a receipt storage contract; they do not make WorkIt a database framework. - Add executable evidence for typed cancellation contracts, bounded fault scenarios, agent authority, SQL receipt ledgers, and resource audit visibility.
- Extend package-consumer coverage for the new subpaths across ESM, CommonJS, strict TypeScript, framework fixtures, and browser/worker unsupported-runtime checks.
- Keep the root
@workit/coreimport and bundle budget unchanged.
Add the @workit/core/time-policy planning subpath for declared async time
policy analysis. The root import remains unchanged.
- Add
planTimePolicy()for conservative upper-bound planning across attempt, series, parallel, retry, hedge, timeout, and deadline policy trees. - Add
estimateRetry()andestimateHedge()helper planners aligned with the runtime retry delay and hedge stagger contracts. - Add bounded correctness evidence for retry/deadline planning, the finite time-policy cost model, and nested composition rules.
- Add package-consumer coverage for the new subpath across ESM, CommonJS, and strict TypeScript fixtures.
- Document that the planner analyzes declared policy bounds before execution; it does not run task bodies or prove wall-clock scheduler behavior.
Add the core ownership and evidence foundation as explicit @workit/core
subpaths. The root import remains unchanged.
- Add
@workit/core/replayfor lifecycle receipt recording and redaction. - Add
@workit/core/ledgerfor memory and file receipt ledgers. - Add
@workit/core/analysisfor receipt and caller-provided protocol verification. - Add
@workit/core/activityfor explicit terminal activity boundaries. - Add
@workit/core/resourcesfor lazy, shared, and scope-owned resource helpers. - Add package-consumer coverage for the new subpaths across ESM, CommonJS, and strict TypeScript fixtures.
- Add executable evidence for receipts, ledgers, analysis, activity terminal replay, and resource ownership.
- Keep the root
@workit/corebundle size unchanged. - Improve npm package discoverability with targeted package keywords and a more specific package description.
- Clarify npm README examples for retry policies,
TaskFninvocation,renderTree(scope.status()), andwork().do()fail-fast output. - Normalize activity results before persistence so first execution and replay return the same JSON value.
- Derive the OpenTelemetry instrumentation version from package metadata.
- Document the buffered
work().do()contract and cooperative cancellation boundary for hedged work.
Move @workit/core to packages/core monorepo layout. No public API changes.
This release prepares the repository for future WorkIt extensions while keeping the published package contract unchanged.
@workit/coresource, tests, samples, benchmarks, evidence, and release scripts now live underpackages/core.- Root package is now a private workspace coordinator.
- Existing install and import paths remain unchanged.
- Existing package exports remain unchanged.
- Root runtime bundle size remains unchanged.
- Release provenance workflow now publishes the workspace package.
- Use-cases site now resolves the real local package from
packages/core.
This is an infrastructure release only. New runtime capabilities are planned for the next minor line after the monorepo layout is validated in CI and npm.