Skip to content

feat(#288) add register_geometry_yaml in-memory registration entry point#289

Merged
prjemian merged 1 commit into
mainfrom
288-register-geometry-yaml
May 24, 2026
Merged

feat(#288) add register_geometry_yaml in-memory registration entry point#289
prjemian merged 1 commit into
mainfrom
288-register-geometry-yaml

Conversation

@prjemian

Copy link
Copy Markdown
Collaborator

In-memory companion to register_geometry_file: takes a YAML string
and a required name=, eagerly validates the schema, and installs a
closure-bound factory that re-parses the captured text on each
make_geometry() call (mirroring the per-call re-read semantics of
register_geometry_file). Duplicate-name registration raises
ValueError, matching the existing contract.

Exported at Tier 1 in __init__.py so it sits alongside
register_geometry_file in the public API.

Tests cover: required-name contract, registry round-trip via
make_geometry(), duplicate-name guard, eager schema validation,
and per-call re-parse. Full suite: 2580 passed, 100% coverage.

Contributed by: OpenCode (argo/claudeopus47)

In-memory companion to register_geometry_file: takes a YAML string and
a required name, eagerly validates the schema, installs a closure-bound
factory that re-parses the captured text on each make_geometry() call.
Exported at Tier 1 in __init__.py alongside register_geometry_file.

Contributed by: OpenCode (argo/claudeopus47)
@prjemian prjemian merged commit 85742d1 into main May 24, 2026
6 checks passed
@prjemian prjemian deleted the 288-register-geometry-yaml branch May 24, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add in-memory geometry registration entry point (register_geometry_from_string)

1 participant