Skip to content

Add FrameMetadata parsing support#109

Merged
leynos merged 8 commits intomainfrom
codex/define-framemetadata-trait-and-update-functionality
Jun 22, 2025
Merged

Add FrameMetadata parsing support#109
leynos merged 8 commits intomainfrom
codex/define-framemetadata-trait-and-update-functionality

Conversation

@leynos
Copy link
Copy Markdown
Owner

@leynos leynos commented Jun 22, 2025

Summary

  • add FrameMetadata trait for early header parsing
  • integrate metadata parsing in WireframeApp
  • document implementing metadata parsers
  • allow custom serializers in test helpers
  • test that metadata parsing happens before full deserialization
  • add metadata_routing example showcasing header-based routing

Testing

  • make fmt
  • make lint
  • make test
  • cargo build --examples

https://chatgpt.com/codex/tasks/task_e_68574b7e82808322b3ced45205887821

Summary by Sourcery

Enable two-stage frame parsing by introducing the FrameMetadata trait and integrating it into WireframeApp for header-based routing before full deserialization.

New Features:

  • Introduce FrameMetadata trait to extract header metadata without decoding full payload.
  • Add parse_envelope in WireframeApp to use FrameMetadata.parse with fallback to full deserialization.
  • Include metadata_routing example demonstrating header-based routing via custom FrameMetadata implementation.

Enhancements:

  • Update test utilities to accept serializers implementing FrameMetadata via TestSerializer alias.
  • Integrate metadata parsing logic into WireframeApp message handling flow.
  • Augment design documentation with trait class diagrams and parsing sequence visuals.

Documentation:

  • Extend library design docs with FrameMetadata trait details and diagrams.
  • Add dedicated docs/frame-metadata.md to guide implementing and using FrameMetadata.

Tests:

  • Add metadata parsing test to verify FrameMetadata.parse is invoked prior to full deserialization.

Summary by CodeRabbit

  • New Features
    • Introduced support for frame metadata parsing, enabling protocols to inspect frame headers before full payload decoding.
    • Added example demonstrating metadata-based routing and custom frame serialization.
  • Documentation
    • Added comprehensive documentation on frame metadata parsing and usage examples, including design diagrams.
  • Tests
    • Introduced tests to verify correct invocation order of metadata parsing prior to message deserialization.
  • Refactor
    • Updated application and utility interfaces to require metadata parsing support in serializers.
    • Refactored frame handling logic to separate metadata parsing from full deserialization and improve error handling.

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented Jun 22, 2025

Reviewer's Guide

This PR introduces a new FrameMetadata trait for two-stage frame parsing, wires it into WireframeApp (via a parse_envelope method and a deserialize-fallback in handle_connection), extends existing serializers (e.g. BincodeSerializer) to implement the trait, updates test helpers and adds examples/tests to demonstrate header-based routing, and augments documentation accordingly.

Sequence diagram for frame metadata parsing and routing in WireframeApp

sequenceDiagram
    participant Client
    participant WireframeApp
    participant Serializer
    Client->>WireframeApp: Send frame bytes
    WireframeApp->>Serializer: parse(frame)
    alt parse succeeds
        Serializer-->>WireframeApp: (Envelope, bytes_consumed)
        WireframeApp->>WireframeApp: Route selection based on Envelope.id
        WireframeApp->>Serializer: deserialize(frame) (if needed)
    else parse fails
        WireframeApp->>Serializer: deserialize(frame)
        alt deserialize fails
            WireframeApp-->>Client: Error/close connection
        else deserialize succeeds
            Serializer-->>WireframeApp: (Envelope, bytes_consumed)
            WireframeApp->>WireframeApp: Route selection
        end
    end
Loading

Class diagram for FrameMetadata trait and serializers

classDiagram
    class FrameMetadata {
        <<trait>>
        +parse(src: &[u8]) Result<(Frame, usize), Error>
        type Frame
        type Error
    }
    class BincodeSerializer {
        +serialize()
        +deserialize()
        +parse(src: &[u8]) Result<(Envelope, usize), DecodeError>
    }
    class HeaderSerializer {
        +serialize()
        +deserialize()
        +parse(src: &[u8]) Result<(Envelope, usize), io::Error>
    }
    class Envelope
    FrameMetadata <|.. BincodeSerializer
    FrameMetadata <|.. HeaderSerializer
    BincodeSerializer --> Envelope : Frame = Envelope
    HeaderSerializer --> Envelope : Frame = Envelope
Loading

File-Level Changes

Change Details Files
Define and implement the FrameMetadata trait
  • Add FrameMetadata trait to parse headers without full decode
  • Implement FrameMetadata for BincodeSerializer
  • Update Serializer import to include FrameMetadata
src/frame.rs
src/serializer.rs
Integrate metadata parsing into WireframeApp
  • Add parse_envelope method to try parse or fallback to full deserialize
  • Replace direct deserialize calls in handle_connection with parse_envelope logic
  • Reorganize routing block and failure counting
src/app.rs
Make test utilities generic over FrameMetadata
  • Introduce TestSerializer trait alias combining Serializer+FrameMetadata
  • Parameterize run_app_with_frame and helpers over TestSerializer
tests/util.rs
Add metadata_routing example
  • New example illustrating header-based routing via FrameMetadata
  • Define HeaderSerializer implementing FrameMetadata for custom protocol
examples/metadata_routing.rs
Add test verifying metadata parse order
  • Add CountingSerializer that increments on parse
  • Write async test to assert metadata parse invoked before deserialize
tests/metadata.rs
Enhance documentation for frame metadata
  • Update design guide with mermaid diagrams and narrative on parse-before-deserialize
  • Add dedicated frame-metadata usage doc with code snippets
docs/rust-binary-router-library-design.md
docs/frame-metadata.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 22, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

This update introduces the FrameMetadata trait for extracting frame header information before full deserialization, modifies the core application logic to use this trait for early routing, and provides documentation, tests, and an example of metadata-based routing. Utility and test functions are updated to require serializers implementing this new trait.

Changes

File(s) Change Summary
docs/frame-metadata.md Added documentation explaining the FrameMetadata trait, its purpose, usage, and an example implementation.
examples/metadata_routing.rs Added a new example demonstrating custom frame metadata parsing and routing using the new trait.
src/app.rs Required serializers to implement FrameMetadata; refactored connection and frame handling to parse metadata before deserialization.
src/frame.rs Introduced the public FrameMetadata trait for parsing frame headers from raw bytes.
src/serializer.rs Implemented FrameMetadata for BincodeSerializer to enable metadata extraction from frames.
tests/metadata.rs Added a test to verify that frame metadata parsing is invoked before deserialization.
tests/util.rs Updated utility functions to require serializers that implement FrameMetadata with the appropriate associated type.
docs/rust-binary-router-library-design.md Added diagrams and explanations illustrating the role of FrameMetadata in the message processing flow and serializer relationships.

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant WireframeApp
    participant Serializer
    participant ServiceHandler

    Client->>WireframeApp: Send framed message
    WireframeApp->>Serializer: parse(frame)
    alt Parse success
        Serializer-->>WireframeApp: (Envelope, bytes_consumed)
        WireframeApp->>ServiceHandler: Call handler based on Envelope.id
        ServiceHandler-->>WireframeApp: Response
        WireframeApp->>Serializer: Serialize response
        WireframeApp-->>Client: Send response frame
    else Parse failure
        Serializer-->>WireframeApp: Error
        WireframeApp->>Serializer: deserialize(frame)
        alt Deserialize success
            Serializer-->>WireframeApp: Envelope
            WireframeApp->>ServiceHandler: Call handler based on Envelope.id
            ServiceHandler-->>WireframeApp: Response
            WireframeApp->>Serializer: Serialize response
            WireframeApp-->>Client: Send response frame
        else Deserialize failure
            WireframeApp-->>Client: Return error
        end
    end
Loading

Possibly related PRs

  • Implement connection handling #76: Introduced initial async connection handling, frame decoding, and envelope dispatch, which this PR directly extends by adding metadata parsing and trait bounds.

Poem

In bytes and headers rabbits play,
Sniffing frames before the fray.
With traits and tests, the code now knows
Which way each message swiftly goes.
Early routing, clever and neat,
Makes every hop a bunny treat!
🐇✨

✨ Finishing Touches
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Post Copyable Unit Tests in Comment
  • Commit Unit Tests in branch codex/define-framemetadata-trait-and-update-functionality

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @leynos - I've reviewed your changes - here's some feedback:

  • Extract the parse-then-deserialize fallback logic into a standalone helper to simplify and flatten the routing loop in handle_connection.
  • Introduce a type or trait alias for S: Serializer + FrameMetadata<Frame = Envelope> + Send + Sync + 'static in the test utilities to cut down on repetitive bounds boilerplate.
  • Consider moving the FrameMetadata trait bound off of every handle_* method signature and onto a consolidated WireframeApp<S> impl or internal parse step to reduce API verbosity.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Extract the `parse`-then-`deserialize` fallback logic into a standalone helper to simplify and flatten the routing loop in `handle_connection`.
- Introduce a type or trait alias for `S: Serializer + FrameMetadata<Frame = Envelope> + Send + Sync + 'static` in the test utilities to cut down on repetitive bounds boilerplate.
- Consider moving the `FrameMetadata` trait bound off of every `handle_*` method signature and onto a consolidated `WireframeApp<S>` impl or internal parse step to reduce API verbosity.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@leynos
Copy link
Copy Markdown
Owner Author

leynos commented Jun 22, 2025

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 22, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5061d5a and 165446a.

📒 Files selected for processing (7)
  • docs/frame-metadata.md (1 hunks)
  • examples/metadata_routing.rs (1 hunks)
  • src/app.rs (4 hunks)
  • src/frame.rs (1 hunks)
  • src/serializer.rs (2 hunks)
  • tests/metadata.rs (1 hunks)
  • tests/util.rs (4 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/frame-metadata.md

[style] ~42-~42: Would you like to use the Oxford spelling “deserialization”? The spelling ‘deserialisation’ is also correct.
Context: ...App` the metadata parser is used before deserialisation so routes can be selected as soon as th...

(OXFORD_SPELLING_Z_NOT_S)


[uncategorized] ~42-~42: Use a comma before ‘so’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...ta parser is used before deserialisation so routes can be selected as soon as the h...

(COMMA_COMPOUND_SENTENCE_2)

🔇 Additional comments (16)
src/frame.rs (1)

192-212: Well-designed trait with clear interface and documentation.

The FrameMetadata trait follows Rust best practices with appropriate associated types and error bounds suitable for async contexts. The documentation clearly explains its purpose for early frame header inspection.

src/serializer.rs (2)

9-9: Import addition looks correct.

Adding FrameMetadata to the imports is necessary for the new trait implementation.


50-57: Solid implementation of FrameMetadata for BincodeSerializer.

The implementation correctly associates the Frame type with Envelope and delegates parsing to the existing from_bytes method. The error type alignment is appropriate.

docs/frame-metadata.md (1)

1-44: Comprehensive documentation with clear examples.

The documentation effectively explains the FrameMetadata trait's purpose and usage. The code example demonstrates both FrameProcessor and FrameMetadata implementation, providing good guidance for users.

examples/metadata_routing.rs (1)

53-99: Well-structured example demonstrating the FrameMetadata usage.

The main function provides a clear demonstration of setting up routes, creating frames with the custom format, and handling the async communication flow. The example effectively shows how metadata-based routing works in practice.

tests/metadata.rs (2)

16-42: Excellent test design using atomic counters and panic guards.

The CountingSerializer effectively verifies the expected control flow by tracking parse method calls and ensuring deserialize is not called prematurely. This validates that the framework correctly invokes metadata parsing before deserialization.


44-65: Comprehensive integration test validating metadata parsing order.

The test thoroughly verifies that the FrameMetadata::parse method is invoked exactly once during frame processing, confirming the intended control flow in the WireframeApp implementation.

src/app.rs (5)

371-371: LGTM: Trait bound addition enables metadata parsing

The addition of the FrameMetadata<Frame = Envelope> trait bound correctly constrains the serializer to support the new metadata parsing functionality.


409-409: LGTM: Consistent trait bound application

The trait bound is correctly applied to maintain consistency across the call chain.


500-500: LGTM: Trait bound enables new parsing logic

The trait bound addition supports the enhanced frame handling logic introduced below.


524-542: LGTM: Well-structured service invocation with proper error handling

The separation of parsing logic from service invocation improves code organisation. The error handling for both service execution and response sending is comprehensive and appropriate.


502-522: ```shell
#!/bin/bash

Display the Serializer trait and its parse/deserialize method signatures

sed -n '1,200p' src/serializer.rs


</details>
<details>
<summary>tests/util.rs (4)</summary>

`30-39`: **LGTM: Well-structured generic constraints**

The generic type parameter and trait bounds correctly enable support for serializers implementing the new `FrameMetadata` trait whilst maintaining all necessary constraints for async execution.

---

`50-63`: **LGTM: Consistent generic implementation**

The trait bounds and generic parameter usage are consistent with the other utility functions, maintaining a uniform API.

---

`72-84`: **LGTM: Proper generic constraints maintained**

The generic implementation correctly mirrors the pattern established in the other utility functions.

---

`95-106`: **LGTM: Complete generic transformation**

The final utility function properly implements the same generic pattern, ensuring all test utilities support the enhanced serializer requirements.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

Comment thread examples/metadata_routing.rs
@leynos
Copy link
Copy Markdown
Owner Author

leynos commented Jun 22, 2025

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 22, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@leynos
Copy link
Copy Markdown
Owner Author

leynos commented Jun 22, 2025

@sourcery-ai review

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @leynos - I've reviewed your changes and they look great!

Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments

### Comment 1
<location> `examples/metadata_routing.rs:37` </location>
<code_context>
+    type Frame = Envelope;
+    type Error = io::Error;
+
+    fn parse(&self, src: &[u8]) -> Result<(Envelope, usize), io::Error> {
+        if src.len() < 3 {
+            return Err(io::Error::new(io::ErrorKind::UnexpectedEof, "header"));
+        }
+        let id = u32::from(u16::from_be_bytes([src[0], src[1]]));
+        // The third byte carries message flags. This example intentionally
+        // ignores the flags, but a real protocol might parse and act on these
+        // bits.
+        let _ = src[2];
+        let payload = src[3..].to_vec();
+        Ok((Envelope::new(id, payload), src.len()))
+    }
+}
</code_context>

<issue_to_address>
parse returns src.len() as bytes consumed, which may not match the actual frame length.

Assuming the entire buffer is a single frame may cause issues if extra data or multiple frames are present. Please return the actual frame length or clarify the expected input.
</issue_to_address>

### Comment 2
<location> `src/app.rs:371` </location>
<code_context>
+{
+    /// Try parsing the frame using [`FrameMetadata::parse`], falling back to
+    /// full deserialization on failure.
+    fn parse_envelope(
+        &self,
+        frame: &[u8],
</code_context>

<issue_to_address>
Add a test for parse_envelope to ensure correct fallback and error handling.

The new parse_envelope method is non-trivial and handles error fallback logic. Add a unit test to verify that it correctly falls back to full deserialization when FrameMetadata::parse fails, and that it returns errors as expected.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread examples/metadata_routing.rs
Comment thread src/app.rs
Copy link
Copy Markdown

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Failed
Enforce advisory code health rules (1 file with Code Duplication)

Gates Passed
5 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Enforce advisory code health rules Violations Code Health Impact
metadata.rs 1 advisory rule 10.00 → 9.39 Suppress

Absence of Expected Change Pattern

  • wireframe/tests/util.rs is usually changed with: wireframe/tests/routes.rs

Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

Copy link
Copy Markdown

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Failed
Enforce advisory code health rules (1 file with Code Duplication)

Gates Passed
5 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Enforce advisory code health rules Violations Code Health Impact
metadata.rs 1 advisory rule 10.00 → 9.39 Suppress

Absence of Expected Change Pattern

  • wireframe/tests/util.rs is usually changed with: wireframe/tests/routes.rs

Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

Comment thread tests/metadata.rs
Comment on lines +104 to +121
async fn falls_back_to_deserialize_after_parse_error() {
let parse_calls = Arc::new(AtomicUsize::new(0));
let deser_calls = Arc::new(AtomicUsize::new(0));
let serializer = FallbackSerializer(parse_calls.clone(), deser_calls.clone());
let app = mock_wireframe_app_with_serializer(serializer);

let env = Envelope::new(1, vec![7]);
let bytes = BincodeSerializer.serialize(&env).unwrap();
let mut framed = BytesMut::new();
LengthPrefixedProcessor::default()
.encode(&bytes, &mut framed)
.unwrap();

let out = run_app_with_frame(app, framed.to_vec()).await.unwrap();
assert!(!out.is_empty());
assert_eq!(parse_calls.load(Ordering::SeqCst), 1);
assert_eq!(deser_calls.load(Ordering::SeqCst), 1);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ New issue: Code Duplication
The module contains 2 functions with similar structure: falls_back_to_deserialize_after_parse_error,metadata_parser_invoked_before_deserialize

Suppress

@leynos leynos force-pushed the codex/define-framemetadata-trait-and-update-functionality branch from 45180d3 to 503e4da Compare June 22, 2025 22:32
Copy link
Copy Markdown

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Failed
Enforce advisory code health rules (1 file with Code Duplication)

Gates Passed
5 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Enforce advisory code health rules Violations Code Health Impact
metadata.rs 1 advisory rule 10.00 → 9.39 Suppress

Absence of Expected Change Pattern

  • wireframe/tests/util.rs is usually changed with: wireframe/tests/routes.rs

Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

Copy link
Copy Markdown

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Failed
Enforce advisory code health rules (1 file with Code Duplication)

Gates Passed
5 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Enforce advisory code health rules Violations Code Health Impact
metadata.rs 1 advisory rule 10.00 → 9.39 Suppress

Absence of Expected Change Pattern

  • wireframe/tests/util.rs is usually changed with: wireframe/tests/routes.rs

Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

* Fix generics and handler frame logic

* Explain envelope handling
Copy link
Copy Markdown

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Failed
Enforce advisory code health rules (1 file with Code Duplication)

Gates Passed
5 Quality Gates Passed

See analysis details in CodeScene

Reason for failure
Enforce advisory code health rules Violations Code Health Impact
metadata.rs 1 advisory rule 10.00 → 9.39 Suppress

Absence of Expected Change Pattern

  • wireframe/tests/util.rs is usually changed with: wireframe/tests/routes.rs

Quality Gate Profile: Pay Down Tech Debt
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.

@leynos leynos merged commit 0a63bfa into main Jun 22, 2025
4 of 5 checks passed
@leynos leynos deleted the codex/define-framemetadata-trait-and-update-functionality branch June 22, 2025 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant