Skip to content
rlsbl.strictspec_floor
On this page

The declared strictspec floor must reach every generated validator -- a floor below a committed GENERATED_BY ships validators that cannot import at all.

#rlsbl.strictspec_floor

#rlsbl.strictspec_floor

The declared strictspec floor must reach every generated validator.

A strictspec-generated validator carries the release that produced it as GENERATED_BY and calls strictspec.require_runtime_version(GENERATED_BY) AT IMPORT. That pairing is exact: the runtime the validator imports must be the release it was generated by, or the import raises before any document is validated.

So the manifest's strictspec floor is not advisory. A floor BELOW any committed GENERATED_BY ships an artifact whose validators cannot import on a floor-resolved install: the repo's own lock resolves the newer strictspec and every local test passes, while a consumer installing the published artifact resolves the floor and hits the pairing error on first use.

Why dep-floors cannot see this ----------------------------------

dep-floors compares at major.minor, deliberately: a patch bump in a lock is not a behavior boundary for an ordinary dependency. For this pairing it is -- 0.2.3 and 0.2.4 are different releases and the guard refuses the mismatch -- so the comparison here is at FULL PATCH precision, against the generated files rather than against the lock.

What is compared ----------------

strictspec.toml is the manifest that declares which validators exist and where they are written, so it is the enumeration this check reads: no directory is guessed at. For every declared output that exists, the GENERATED_BY constant is read; the highest one across all of them is the floor the manifest must declare at least.

#StrictspecFloorVerdict

Result of comparing the declared floor against the generated code.

#ok

python
def ok(self)

#parse_version

python
def parse_version(text)

(major, minor, patch) of a version string, or None.

Full patch precision, unlike :func:rlsbl.dep_floors.version_tuple: the runtime pairing this check polices is exact, so a patch difference is the whole point rather than noise.

#declared_floor

python
def declared_floor(constraint)

The highest lower bound a PEP 440 specifier set states, or None.

#read_generated_by

python
def read_generated_by(path)

The GENERATED_BY constant of a generated file, or None.

#declared_targets

python
def declared_targets(project_root)

[(output_path, lang)] every schema target the manifest declares.

Returns None when there is no readable strictspec.toml -- a project that generates no validators, which is not this check's business.

#evaluate_strictspec_floor

python
def evaluate_strictspec_floor(project_root)

Compare the declared strictspec floor against every generated file.

More tools from this site

  • claudestream Drive Claude Code from Python: run it as a subprocess and read its output as typed events, with async and sync sessions, sandbox policies, and tools you define in Python
  • claudewheel A TUI Claude Code Launcher that lets you have more than one profile, manage sessions lifecycle, pick the exact CC version, model to use (even older unlisted ones), pick which GitHub account to use, etc.
  • dirstat Fast, single-binary directory statistics CLI: every file under a tree grouped by format, with counts, sizes, and lines of code, as a colored terminal table or as JSON
  • fastware A batteries-included ASGI framework: msgspec JSON, a managed Granian server, dependency injection, SSE, WebSockets, auth, and a test client
  • go-toml-edit Zero-dep TOML editing library for Go with comment preservation
  • howmuchleft The fastest Claude Code statusline: context window, 5-hour, and weekly limit usage as three customizable gradient bars, rendering in about 6 ms
  • orxtra
  • pgdesign
  • predraw Declarative rendering pipeline: describe a scene in JSON and get SVG, PNG and WebP out, with light and dark style tokens, reusable components and text converted to path outlines
  • reposummary Turn a git repository's history into a Markdown journal: pick a time window or revision range and get a readable digest of what changed, optionally narrated by an LLM
  • safegit git wrapper CLI that gives each commit its own temporary index and retries ref updates on conflict, so concurrent agents share one repository
  • saferm Command-line replacement for rm that archives every deletion with a mandatory reason and the context it ran in, so deleted files can be listed, inspected and restored
  • selfdoc Static Site Generator that builds a project's documentation site directly from its source code, so the docs can never drift from the code they describe, with SEO/AEO, first-class blog, search, and cross-project linking built in
  • strictcli
  • stricttest An always-on test-isolation floor: a pytest plugin and a Go env-hygiene module that make a test suite structurally unable to reach real credentials, the real HOME, the network, or the development repository.
  • wesktop A Python framework that turns an ASGI web app into a desktop application, serving it from a local Granian server and displaying it in a native OS window via pywebview
Search