Repository navigation
docs(filter): add build-time filter registry proposal - #463
Conversation
…raxis-proxy#456) Signed-off-by: Sébastien Han <[email protected]>
Propose a build.rs + cargo metadata discovery mechanism that lets external filter crates self-register into the FilterRegistry at build time. Operators add a Cargo.toml dependency and write YAML config with zero Rust code changes to Praxis. Signed-off-by: Sébastien Han <[email protected]>
5ce8116 to
1a63ad7
Compare
|
Missing Signed-off-by: a432c4f. All commits require sign-off (via |
|
Proposal validation failed:
|
Submit What? and Why? first. How? will be added in a follow-up after the proposal direction is accepted. Also add missing discussion field to frontmatter. Signed-off-by: Sébastien Han <[email protected]>
praxis-bot
left a comment
There was a problem hiding this comment.
PR Review
Summary: Adds a proposal for build-time auto-registration of external filter crates via build.rs + cargo metadata discovery.
Overall: The proposal clearly motivates the problem (step 2 in external filter integration is boilerplate) and is structured correctly as a What? + Why? submission without a premature How? section. A few items need attention: file naming, convention compliance, and some technical clarifications.
| Severity | Count |
|---|---|
| Critical | 0 |
| Large | 0 |
| Medium | 3 |
| Small | 2 |
| Nit | 2 |
Findings without inline placement
-
[Medium]
docs/proposals/00xxx_build-time-filter-registry.md(filename): The file uses a placeholder00xxxfor the proposal number. Every other proposal in this directory uses the corresponding issue number (e.g.,00063_plugins.md,00354_responses-api-filters.md). An issue should be created first and the file renamed to match. -
[Small]
docs/proposals/00xxx_build-time-filter-registry.md(frontmatter): Theissue:anddiscussion:fields are# TBD(YAML comments, so they parse asnull). Other proposals populate these with actual URLs. If no issue exists yet, leave them as empty strings or create the issue first.
Remove remaining em-dashes per project conventions. Clarify that auto-registered duplicates panic because there is no caller to propagate the Result to, while manual registry.register() continues to return Result. Add boundary note distinguishing filter registration from plugin/hook discovery (praxis-proxy#63). Signed-off-by: Sébastien Han <[email protected]>
* fix(ci): fix bash syntax error and regex bug in conventions workflow (praxis-proxy#456) Signed-off-by: Sébastien Han <[email protected]> * docs(filter): add build-time filter registry proposal Propose a build.rs + cargo metadata discovery mechanism that lets external filter crates self-register into the FilterRegistry at build time. Operators add a Cargo.toml dependency and write YAML config with zero Rust code changes to Praxis. Signed-off-by: Sébastien Han <[email protected]> * docs(filter): remove How? section per proposal guidelines Submit What? and Why? first. How? will be added in a follow-up after the proposal direction is accepted. Also add missing discussion field to frontmatter. Signed-off-by: Sébastien Han <[email protected]> * docs(filter): address PR review feedback Remove remaining em-dashes per project conventions. Clarify that auto-registered duplicates panic because there is no caller to propagate the Result to, while manual registry.register() continues to return Result. Add boundary note distinguishing filter registration from plugin/hook discovery (praxis-proxy#63). Signed-off-by: Sébastien Han <[email protected]>
Summary
Proposal for a build-time auto-registration mechanism that lets external filter crates self-register into the
FilterRegistry. Operators add aCargo.tomldependency and write YAML config with zero Rust code changes to Praxis. Usesbuild.rs+cargo metadatadiscovery with a[package.metadata.praxis-filters]convention and anexport_filters!macro.Test plan
register_filters!andext-procpatternscargo metadataapproach handles workspace members and external depsSigned-off-by: Sébastien Han [email protected]