Repository navigation
fix: represent absent and empty creator and suffix explicitly - #1009
Draft
marcpaterno wants to merge 4 commits into
Draft
marcpaterno wants to merge 4 commits into
marcpaterno wants to merge 4 commits into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
marcpaterno
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
from
October 28, 2026 14:51
f3fdc9b to
588cd43
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## stack/concept-registry/05-translator-integration #1009 +/- ##
====================================================================================
+ Coverage 91.49% 91.66% +0.16%
====================================================================================
Files 188 188
Lines 6164 6165 +1
Branches 981 981
====================================================================================
+ Hits 5640 5651 +11
+ Misses 336 329 -7
+ Partials 188 185 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Contributor
Clang-Tidy Check ResultsClang-tidy found the following issue(s) on lines changed by this pull request: |
marcpaterno
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
2 times, most recently
from
October 28, 2026 16:26
30b106b to
5063d91
Compare
marcpaterno
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
2 times, most recently
from
November 2, 2026 21:48
74241c2 to
6d978a5
Compare
marcpaterno
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
from
November 2, 2026 21:59
6d978a5 to
8a99bab
Compare
marcpaterno
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
2 times, most recently
from
November 3, 2026 17:56
297c4e4 to
4357201
Compare
marcpaterno
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
from
November 3, 2026 21:58
4357201 to
95eb9d8
Compare
marcpaterno
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
3 times, most recently
from
November 4, 2026 16:18
3689f8c to
b7f6e50
Compare
marcpaterno
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
4 times, most recently
from
November 12, 2026 19:59
b73bfe2 to
cccac05
Compare
knoepfel
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
from
November 12, 2026 20:14
cccac05 to
ba390ef
Compare
marcpaterno
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
from
November 14, 2026 16:04
ba390ef to
0aef802
Compare
marcpaterno
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
12 times, most recently
from
November 20, 2026 22:20
e7b159b to
c035308
Compare
knoepfel
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
from
November 20, 2026 22:34
c035308 to
5e6a7c8
Compare
Document and test that a product specification's suffix is a `suffix_t`, either `empty_string` or a named `identifier`. Text parsing, `to_product_specifications()` conversion, equality, ordering and hashing all keep that representation. The new tests cover: - parsing `creator/suffix` text, including the trailing-slash empty suffix and rejection of text without a creator and slash - converting fluent `output_product_suffixes` strings, and the default suffix, to specification suffixes - exact-match lookup in `products` and `product_store` - handle `creator()` and `suffix()` views, including that they borrow from the referenced specification Behavior changes: - Rename the default source creator from "Source" to "phlex_source". Its test now also covers inserting and looking up a product made by that creator. - Document and test that `make_algorithm_name` rejects an empty configured `module_label` with `std::invalid_argument`, using the same uniform message as `algorithm_name::create` (the plugin label is missing). A null configuration still gives an absent plugin. A configuration without `module_label` is tested to throw `std::runtime_error` from the configuration. - Document and test that `algorithm_name::create` rejects a leading colon (`:algorithm`) as a missing plugin label, throwing `std::invalid_argument`. `algorithm_name`'s default constructor is explicitly deleted. Tests cover empty, leading-colon, trailing-colon and lone-colon specifications. - Add `consumer::plugin()`, returning `std::optional<identifier> const&`, and `consumer::algorithm()`, returning `identifier const&`. Both forward to `name()`. The plugin is `std::nullopt` for an unqualified name. This commit adds no tests for these accessors. Add doc comments for `algorithm_name`, `product_specification`, the handle views, `consumer`, `product_store::default_source()`, the suffix conversion points, and exact lookup in `products`.
Document and test how product selectors, the producer catalog and the
FORM writer treat suffixes as suffix_t. An omitted selector suffix
matches any suffix. An explicit empty suffix matches only empty. A
named suffix matches only that name. Equality, ordering and
diagnostics keep all three states distinct.
Documentation:
- Add a "Product suffix text" section to form/README.md. FORM labels
carry the suffix_t text, so empty text is written as "" and named
text keeps its spelling. The persisted layout is unchanged:
product_name holds the suffix text and container_name stays
row_space/suffix.
- Document the creator criterion on product_selector. An omitted
creator is unrestricted. A supplied name matches either the plugin
or the algorithm of a specification's creator.
- Document the suffix semantics on product_selector, producer and
producer_catalog.
- Declare the producer_catalog multimap key as suffix_t directly.
Tests:
- Add selector tests for suffix construction from literals, identifiers
and runtime strings, for matching and to_string diagnostics across
the three states, and for the creator criterion.
- Add graph tests for selecting empty, named and omitted suffixes,
including ambiguity when an omitted suffix matches several products
and when an empty or named suffix is produced by several creators.
- Extend the producer catalog test with an empty product, plugin-name
lookup, ambiguity on an omitted suffix and a non-matching suffix.
- Add a FORM writer test that checks the finalized dictionary labels
and container names for empty and named suffixes. A ROOT TTree
round-trip section runs under USE_ROOT_STORAGE.
- Check that a typed product store lookup does not treat an untyped
specification as a wildcard.
- Spell empty suffixes as empty_string{} in the transform node test.
Keep name() as the single accessor for a consumer's algorithm name and its components. Callers that need the parts use name().plugin() and name().algorithm() directly, so the duplicate forwarding accessors and the now-unused <optional> includes are dropped. Update the accessor contract comment on consumer to refer to name().plugin(), which is absent for an unqualified name, and name().algorithm(). Extend the transform_node test to check name(), plugin, algorithm, and when() for a qualified name with ordered predicate metadata and for an unqualified name with no predicates.
marcpaterno
force-pushed
the
represent-creator-and-suffix-state-explicitly
branch
from
November 24, 2026 18:20
5e6a7c8 to
062189d
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
explicit empty values instead of invalid empty identifiers.
construction now requires a present creator.
configured module_label instead of accepting them silently.
which is a valid name under the new parser.
accessors.
provider construction, and handle views.
Stack created with GitHub Stacks CLI • Give Feedback 💬