Version 0.1.0 exposed analyzers only through an ad-hoc CLI and kept no history.
We restructure the library around the wellmanifest/nl-* pattern: NL is an intake,
the canonical DSL is the only execution surface, and interfaces stay in parity.
Every execution is recorded as a uritime/urtlog record v2 4-tuple.
Decision, by source standard:
Engine.execute, the single
validated execution boundary. Layer 0.5 is the option network. CLI, REST and MCP
call the same engine.api-registry
manifest.proc://bottlenecks/<entity>/<operation>/v1. Results are Resource URNs:
urn:bottlenecks:{input,report,finding}:….LOG URT() URI() URN_IN() URN_OUT() STATUS() record.
Records go into an append-only events.jsonl plus a SQLite projection over
time_path, op_path and res_path. Scheduled scans are PLAN records,
settled causally (causation_id) by an idempotent run_due. Records are mirrored
into a real urtlog store when URTLOG_STATE_DIR is set.Alternatives rejected:
uritime-urtlog (not on PyPI, Python 3.11+ only).wellmanifest-nl-dsl-llm package (pulls in grpc/pydantic).Not adopted: gRPC and the WebSocket transport (CONF-04/08). They remain gaps.
pytest passes 43 tests on Python 3.9, 3.10 and 3.13.bottlenecks self-test passes 12/12 checks. With uritime/urtlog on PYTHONPATH,
the self-test re-parses every record with urtlog.dsl.parse_dsl_line.URTLOG_STATE_DIR showed the records in urtlog query and
urtlog logic-tree.Gaps: no protected CI, and no Validator review of this change yet.
Classic CLI subcommands and the JSON report output stay compatible. History is
opt-in: nothing is written without --state or BOTTLENECKS_STATE_DIR. Actions
with process or write effects need explicit confirmation when they come from
NL, REST or MCP.
Rollback: revert the PR; the analyzers are unchanged.
Next steps:
.governance/docs.json and the new-project governance.