Ten articles. Each opens with code and a concrete problem, then links the
claim to executable evidence. The argument builds from plain async / await
ownership to worker boundaries, streaming backpressure, budgeted cleanup,
observability, agent tool lifecycles, lifecycle receipts, time-policy planning,
and explicit terminal activity boundaries.
The sequence focuses on practical high-pressure workloads: AI agents, provider
racing, streaming STT, 100K-document budget caps, 1-billion-row pipelines,
worker hard-kill against a CPU spinner, local-first observability, and the
runAgent / AgentScope primitive.
01-owned-async-work.md-- why promises model values, not ownership.02-concurrency-retry-timeout.md-- composing pool, race, any, retry, timeout, fallback, and hedge policies.03-cancellation-and-worker-boundaries.md-- cooperative cancellation and hard worker termination.04-backpressure-for-streaming-pipelines.md-- bounded producers for RAG, STT, and large streams.05-resource-safety-and-budgeted-work.md-- bracketed cleanup, uncancellable sections, and request budgets.06-observability-without-core-bloat.md-- diagnostics, telemetry, sampling, and exporter isolation.07-agent-scope-and-tool-lifecycles.md-- agent tools, budgets, events, and replayable execution logs.08-receipts-redaction-and-attempt-evidence.md-- lifecycle receipts, redaction, and terminal retry-attempt evidence.09-plan-retries-before-they-run.md-- deadline introspection, conservative time planning, and shared retry admission.10-terminal-activity-boundaries.md-- explicit activity identity and completed terminal replay after restart.
- Code first. Open with a runnable snippet that is the point.
- Claims map to gates. Every number cited maps to
npm run verify,npm run bench:articles,npm run test:evidence, orevidence/claims.json. - No theatrical comparisons. Do not say "10x faster than X" without a benchmark. Say what the executable invariant verifies.
- Ownership/composition framing. External libraries may expose cancellation hooks; WorkIt's claim is that cancellation, cleanup, retry, timeout, budgets, backpressure, and diagnostics compose under one owner.
- Agent and data-plane scenarios stay first-class. Provider racing, agent cancellation, RAG ingest, streaming STT, embedding pipelines, token/cost/tool-call budgets are the core scenarios.
- Honesty about layers. Cooperative cancellation is labeled cooperative. Worker hard-kill is labeled worker-boundary hard kill. Browser/edge are labeled unsupported.
Release-wide test, coverage, evidence, and bundle totals are intentionally not
duplicated in this article index because they change as the package evolves.
Use the current package README, benchmarks/public-proof.json, and
evidence/claims.json as the release authority. The stable article-suite
scenario sizes are reproducible from the gates and captured benchmark result.
0 production dependencies, 0 install scripts, 0 networking imports in core dist
100,000 logical tasks in the bounded runtime soak @ concurrency 128
1,000,000 logical items in stream memory gate, bounded heap
1,000,000,000 logical items in 1B claim sample, <= TAKE+CONCURRENCY produced
well under the 10 ms gate for 100 .with() calls over 5,000 keys
200ms timeout vs CPU spinner: late-marker file does not exist
19 article-series benchmarks, all greennpm run verify
npm run bench:articles
npm run test:evidence
npm run sample:race
npm run sample:agent
npm run sample:embed100k
npm run sample:1b
npm run sample:worker
npm run sample:stt-disconnect
npm run check:public-proofThe captured article benchmark result for this publication revision is
benchmarks/results/articles.latest.json.
Browser and edge runtimes resolve to an explicit unsupported boundary today. A dedicated edge-safe context runtime, semantic invariant tests, and installed-tarball Worker fixtures are future work. Node 20+ ESM/CJS, supported server-shaped fixtures, and the package-consumer matrix run from the installed artifact under the repository gates.