{"results":{"result":{"added-files":{"code-health":8.368575892002823,"old-code-health":0.0,"files":[{"file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","loc":643,"code-health":7.552876135642913},{"file":"src/Paramore.Brighter.Outbox.MongoDb/OutboxMessage.cs","loc":75,"code-health":10.0},{"file":"src/Paramore.Brighter.Inbox.MongoDb/InboxMessage.cs","loc":31,"code-health":10.0},{"file":"src/Paramore.Brighter.Inbox.MongoDb/MongoDbInbox.cs","loc":89,"code-health":8.816158827775617},{"file":"src/Paramore.Brighter.Inbox.MongoDb/MongoDbUnitOfWork.cs","loc":77,"code-health":9.387218218812514},{"file":"src/Paramore.Brighter.MongoDb/BaseMongoDb.cs","loc":82,"code-health":10.0},{"file":"src/Paramore.Brighter.MongoDb/MongoDbConfiguration.cs","loc":26,"code-health":10.0},{"file":"src/Paramore.Brighter.Locking.MongoDb/MongoDbLockingProvider.cs","loc":35,"code-health":10.0}]},"external-review-url":"https://github.com/BrighterCommand/Brighter/pull/3524","old-code-health":0.0,"modified-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"3524","analysis-time":"2025-02-20T14:22:40Z","negative-impact-count":15,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":0,"commits":["34754e6255a28fd366137aff8c0f6a0b5bff7e54","48525edcc2e3adc13bcedcab5617ad4259b5571b","a9b9f8cee7a282b3a50d4cbc20dc539c00e880ed","5cee44778c943f924d8133bb8eff5203656e1570","41274c9770938f18fc5107353f58d28bba8b5574","7c48dccd60c1fa1e7534bd107e81eb7d7a15f190","fa1da47ea59c8f14c5b1d4f2dae23a239fcc9a7e","abceffef36f4c849c2d70dfe66c8b3c737cd7635","ea54ef137e65cef2c674bf65092fede461efc1f9","e76b72d94fe961f1e05004fc480990ca4bc611a1","fc3c0f8a864d99f8fd6ce1a798c15929bead89f0","30e7a0bc26b09c3d7b465ee7e1bce2a3ec2a175e","23752b2578fd06f675ba956720353e50fa35ded5"],"is-negative-review":true,"negative-findings":{"number-of-types":4,"number-of-files-touched":3,"findings":[{"why-it-occurs":"Duplicated code often leads to code that's harder to change since the same logical change has to be done in multiple functions. More duplication gives lower code health.","name":"Code Duplication","file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":37,"what-changed":"The module contains 18 functions with similar structure: Add,Add,AddAsync,AddAsync and 14 more functions","how-to-fix":"A certain degree of duplicated code might be acceptable. The problems start when it is the same behavior that is duplicated across the functions in the module, ie. a violation of the Don't Repeat Yourself (DRY) principle. DRY violations lead to code that is changed together in predictable patterns, which is both expensive and risky. DRY violations can be identified using CodeScene's X-Ray analysis to detect clusters of change coupled functions with high code similarity. [Read More](https://codescene.com/blog/software-revolution-part3/)\n\nOnce you have identified the similarities across functions, look to extract and encapsulate the concept that varies into its own function(s). These shared abstractions can then be re-used, which minimizes the amount of duplication and simplifies change.","change-type":"introduced"},{"why-it-occurs":"Code that uses a high degree of built-in, primitives such as integers, strings, floats, lacks a domain language that encapsulates the validation and semantics of function arguments. Primitive Obsession has several consequences: 1) In a statically typed language, the compiler will detect less erroneous assignments. 2) Security impact since the possible value range of a variable/argument isn't retricted.\n\nIn this module, 32 % of all functions have primitive types as arguments.","name":"Primitive Obsession","file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","refactoring-examples":[{"diff":"diff --git a/primitive-obsession.ts b/primitive-obsession.ts\nindex 38bae186cc..24116eddcc 100644\n--- a/primitive-obsession.ts\n+++ b/primitive-obsession.ts\n@@ -1,8 +1,8 @@\n-// Problem: It's hard to know what this function does, and what values are valid as parameters.\n-function getPopularRepositories(String baseURL, String query, Integer pages, Integer pageSize, String sortorder): Json {\n-\tlet pages == null ? 10 : pages\n-\tlet pageSize == null ? 10 : pageSize\n-  return httpClient.get(`${baseURL}?q=${query}&pages=${pages}&pageSize=${pageSize}&sortorder=${sortorder}`)\n+// Refactoring: extract the pagination & API logic into a class, and it will\n+// attract validation and other logic related to the specific query. It's now\n+// easier to use and to maintain the getPopularRepositories function!\n+function getPopularRepositories(query: PaginatedRepoQuery): Json {\n+  return httpClient.get(query.getURL())\n     .map(json => json.repositories)\n     .filter(repository => repositry.stargazersCount > 1000)\n }\n","language":"c#","improvement-type":"Primitive Obsession"}],"change-level":"warning","is-hotspot?":false,"what-changed":"In this module, 31.8% of all function arguments are primitive types, threshold = 30.0%","how-to-fix":"Primitive Obsession indicates a missing domain language. Introduce data types that encapsulate the details and constraints of your domain. For example, instead of `int userId`, consider `User clicked`.","change-type":"introduced"},{"method":"AddAsync","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","refactoring-examples":[{"architectural-component-id":null,"author-name":"DevJonny","training-data":{"loc-added":"20","loc-deleted":"14","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.0","delta-n-functions":"0","current-file-score":"7.534418959981518"},"author-email":"jonny.ollifflee@gmail.com","commit-full-message":"JSON and YAML outputs previously described different documents because Neuroglia\n4.20.0 applies different default naming conventions in its JSON and YAML serialisers,\nand embedded JSON Schema fragments emitted PascalCase property names that did not\nmatch Brighter's camelCase wire format.\n\nLibrary changes:\n\n- Derive YAML from the JSON tree we just wrote. Guarantees both formats describe the\n  same document, regardless of upstream serialiser config drift.\n- Strip Neuroglia internals (isReference) and empty collections from both outputs.\n- Switch NJsonSchema generator to System.Text.Json reflection with camelCase property\n  policy and JsonStringEnumConverter, mirroring JsonSerialisationOptions.Options. The\n  schema now describes what JsonMessageMapper actually puts on the wire.\n- Declare draft-04 in SchemaFormat to match what NJsonSchema 11.x emits\n  (JsonSchema.ToJson hardcodes the dialect).\n- Refactor ProcessSourceAsync to take a MessageSource record, resolving the CodeScene\n  excess-arguments check.\n- Backfill missing XML docs on AsyncApiOptions and fix a stale paramref on\n  IAmASchemaGenerator.\n\nSample fix:\n\n- Kafka sample no longer requires a live broker for --generate-asyncapi.\n  KafkaProducerRegistryFactory.Create connects eagerly, so build it only on the\n  runtime path; assembly scanning still surfaces publications in the doc.\n\nTests: 46/46 pass on net9.0 and net10.0.\n\nCo-Authored-By: Claude <noreply@anthropic.com>","commit-date":"2026-05-16T19:01:42Z","current-rev":"5e03da283","filename":"Brighter/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs","previous-rev":"70b03a0ee","commit-title":"fix(#3828): align AsyncAPI output with wire format, eliminate JSON/YAML divergence","language":"C#","id":"f49c3320ae617404ccf0324e7fe2dad4565432c7","model-score":0.28,"author-id":null,"project-id":32198,"delta-file-score":0.22637527,"diff":"diff --git a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\nindex 2a306a512..bd7ae8957 100644\n--- a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n+++ b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n@@ -51,2 +51,10 @@ private sealed record GenerationContext(\n \n+        // Inputs that vary per call into ProcessSourceAsync. Grouping them keeps the method\n+        // signature small (and satisfies the CodeScene \"Excess Number of Function Arguments\"\n+        // check) without flattening the call sites with positional parameters.\n+        private sealed record MessageSource(\n+            string Address,\n+            V3OperationAction Action,\n+            Type? RequestType);\n+\n         private readonly AsyncApiOptions _options;\n@@ -116,3 +124,3 @@ private async Task AddSubscriptionsAsync(\n                 await ProcessSourceAsync(\n-                    subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType,\n+                    new MessageSource(subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -133,3 +141,3 @@ private async Task AddPublicationsAsync(\n                 await ProcessSourceAsync(\n-                    publication.Topic.Value, V3OperationAction.Send, publication.RequestType,\n+                    new MessageSource(publication.Topic.Value, V3OperationAction.Send, publication.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -139,5 +147,3 @@ await ProcessSourceAsync(\n         private async Task ProcessSourceAsync(\n-            string address,\n-            V3OperationAction action,\n-            Type? requestType,\n+            MessageSource source,\n             GenerationContext context,\n@@ -145,11 +151,11 @@ private async Task ProcessSourceAsync(\n         {\n-            var channelId = SanitizeChannelId(address);\n+            var channelId = SanitizeChannelId(source.Address);\n \n-            EnsureChannel(context.Channels, channelId, address);\n+            EnsureChannel(context.Channels, channelId, source.Address);\n \n             string messageName;\n-            if (requestType != null)\n+            if (source.RequestType != null)\n             {\n-                messageName = requestType.Name;\n-                await EnsureMessageAsync(context.Messages, messageName, requestType, ct).ConfigureAwait(false);\n+                messageName = source.RequestType.Name;\n+                await EnsureMessageAsync(context.Messages, messageName, source.RequestType, ct).ConfigureAwait(false);\n             }\n@@ -163,3 +169,3 @@ private async Task ProcessSourceAsync(\n \n-            var actionString = action == V3OperationAction.Send ? \"send\" : \"receive\";\n+            var actionString = source.Action == V3OperationAction.Send ? \"send\" : \"receive\";\n             context.CoveredChannelActions.Add((channelId, actionString));\n@@ -169,3 +175,3 @@ private async Task ProcessSourceAsync(\n             {\n-                Action = action,\n+                Action = source.Action,\n                 Channel = new V3ReferenceDefinition { Reference = $\"#/channels/{channelId}\" },\n@@ -290,3 +296,3 @@ private static void EnsurePlaceholderMessage(Dictionary<string, V3MessageDefinit\n                     {\n-                        SchemaFormat = \"application/schema+json;version=draft-07\",\n+                        SchemaFormat = \"application/schema+json;version=draft-04\",\n                         Schema = emptyDoc.RootElement.Clone()\n@@ -332,3 +338,3 @@ private static V3SchemaDefinition EmptyObjectSchema()\n             {\n-                SchemaFormat = \"application/schema+json;version=draft-07\",\n+                SchemaFormat = \"application/schema+json;version=draft-04\",\n                 Schema = doc.RootElement.Clone()\n","improvement-type":"Excess Number of Function Arguments"}],"change-level":"warning","is-hotspot?":false,"line":151,"what-changed":"AddAsync has 5 arguments, threshold = 4","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"introduced"},{"method":"AddAsync","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","refactoring-examples":[{"architectural-component-id":null,"author-name":"DevJonny","training-data":{"loc-added":"20","loc-deleted":"14","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.0","delta-n-functions":"0","current-file-score":"7.534418959981518"},"author-email":"jonny.ollifflee@gmail.com","commit-full-message":"JSON and YAML outputs previously described different documents because Neuroglia\n4.20.0 applies different default naming conventions in its JSON and YAML serialisers,\nand embedded JSON Schema fragments emitted PascalCase property names that did not\nmatch Brighter's camelCase wire format.\n\nLibrary changes:\n\n- Derive YAML from the JSON tree we just wrote. Guarantees both formats describe the\n  same document, regardless of upstream serialiser config drift.\n- Strip Neuroglia internals (isReference) and empty collections from both outputs.\n- Switch NJsonSchema generator to System.Text.Json reflection with camelCase property\n  policy and JsonStringEnumConverter, mirroring JsonSerialisationOptions.Options. The\n  schema now describes what JsonMessageMapper actually puts on the wire.\n- Declare draft-04 in SchemaFormat to match what NJsonSchema 11.x emits\n  (JsonSchema.ToJson hardcodes the dialect).\n- Refactor ProcessSourceAsync to take a MessageSource record, resolving the CodeScene\n  excess-arguments check.\n- Backfill missing XML docs on AsyncApiOptions and fix a stale paramref on\n  IAmASchemaGenerator.\n\nSample fix:\n\n- Kafka sample no longer requires a live broker for --generate-asyncapi.\n  KafkaProducerRegistryFactory.Create connects eagerly, so build it only on the\n  runtime path; assembly scanning still surfaces publications in the doc.\n\nTests: 46/46 pass on net9.0 and net10.0.\n\nCo-Authored-By: Claude <noreply@anthropic.com>","commit-date":"2026-05-16T19:01:42Z","current-rev":"5e03da283","filename":"Brighter/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs","previous-rev":"70b03a0ee","commit-title":"fix(#3828): align AsyncAPI output with wire format, eliminate JSON/YAML divergence","language":"C#","id":"f49c3320ae617404ccf0324e7fe2dad4565432c7","model-score":0.28,"author-id":null,"project-id":32198,"delta-file-score":0.22637527,"diff":"diff --git a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\nindex 2a306a512..bd7ae8957 100644\n--- a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n+++ b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n@@ -51,2 +51,10 @@ private sealed record GenerationContext(\n \n+        // Inputs that vary per call into ProcessSourceAsync. Grouping them keeps the method\n+        // signature small (and satisfies the CodeScene \"Excess Number of Function Arguments\"\n+        // check) without flattening the call sites with positional parameters.\n+        private sealed record MessageSource(\n+            string Address,\n+            V3OperationAction Action,\n+            Type? RequestType);\n+\n         private readonly AsyncApiOptions _options;\n@@ -116,3 +124,3 @@ private async Task AddSubscriptionsAsync(\n                 await ProcessSourceAsync(\n-                    subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType,\n+                    new MessageSource(subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -133,3 +141,3 @@ private async Task AddPublicationsAsync(\n                 await ProcessSourceAsync(\n-                    publication.Topic.Value, V3OperationAction.Send, publication.RequestType,\n+                    new MessageSource(publication.Topic.Value, V3OperationAction.Send, publication.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -139,5 +147,3 @@ await ProcessSourceAsync(\n         private async Task ProcessSourceAsync(\n-            string address,\n-            V3OperationAction action,\n-            Type? requestType,\n+            MessageSource source,\n             GenerationContext context,\n@@ -145,11 +151,11 @@ private async Task ProcessSourceAsync(\n         {\n-            var channelId = SanitizeChannelId(address);\n+            var channelId = SanitizeChannelId(source.Address);\n \n-            EnsureChannel(context.Channels, channelId, address);\n+            EnsureChannel(context.Channels, channelId, source.Address);\n \n             string messageName;\n-            if (requestType != null)\n+            if (source.RequestType != null)\n             {\n-                messageName = requestType.Name;\n-                await EnsureMessageAsync(context.Messages, messageName, requestType, ct).ConfigureAwait(false);\n+                messageName = source.RequestType.Name;\n+                await EnsureMessageAsync(context.Messages, messageName, source.RequestType, ct).ConfigureAwait(false);\n             }\n@@ -163,3 +169,3 @@ private async Task ProcessSourceAsync(\n \n-            var actionString = action == V3OperationAction.Send ? \"send\" : \"receive\";\n+            var actionString = source.Action == V3OperationAction.Send ? \"send\" : \"receive\";\n             context.CoveredChannelActions.Add((channelId, actionString));\n@@ -169,3 +175,3 @@ private async Task ProcessSourceAsync(\n             {\n-                Action = action,\n+                Action = source.Action,\n                 Channel = new V3ReferenceDefinition { Reference = $\"#/channels/{channelId}\" },\n@@ -290,3 +296,3 @@ private static void EnsurePlaceholderMessage(Dictionary<string, V3MessageDefinit\n                     {\n-                        SchemaFormat = \"application/schema+json;version=draft-07\",\n+                        SchemaFormat = \"application/schema+json;version=draft-04\",\n                         Schema = emptyDoc.RootElement.Clone()\n@@ -332,3 +338,3 @@ private static V3SchemaDefinition EmptyObjectSchema()\n             {\n-                SchemaFormat = \"application/schema+json;version=draft-07\",\n+                SchemaFormat = \"application/schema+json;version=draft-04\",\n                 Schema = doc.RootElement.Clone()\n","improvement-type":"Excess Number of Function Arguments"}],"change-level":"warning","is-hotspot?":false,"line":199,"what-changed":"AddAsync has 5 arguments, threshold = 4","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"introduced"},{"method":"DispatchedMessagesAsync","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","refactoring-examples":[{"architectural-component-id":null,"author-name":"DevJonny","training-data":{"loc-added":"20","loc-deleted":"14","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.0","delta-n-functions":"0","current-file-score":"7.534418959981518"},"author-email":"jonny.ollifflee@gmail.com","commit-full-message":"JSON and YAML outputs previously described different documents because Neuroglia\n4.20.0 applies different default naming conventions in its JSON and YAML serialisers,\nand embedded JSON Schema fragments emitted PascalCase property names that did not\nmatch Brighter's camelCase wire format.\n\nLibrary changes:\n\n- Derive YAML from the JSON tree we just wrote. Guarantees both formats describe the\n  same document, regardless of upstream serialiser config drift.\n- Strip Neuroglia internals (isReference) and empty collections from both outputs.\n- Switch NJsonSchema generator to System.Text.Json reflection with camelCase property\n  policy and JsonStringEnumConverter, mirroring JsonSerialisationOptions.Options. The\n  schema now describes what JsonMessageMapper actually puts on the wire.\n- Declare draft-04 in SchemaFormat to match what NJsonSchema 11.x emits\n  (JsonSchema.ToJson hardcodes the dialect).\n- Refactor ProcessSourceAsync to take a MessageSource record, resolving the CodeScene\n  excess-arguments check.\n- Backfill missing XML docs on AsyncApiOptions and fix a stale paramref on\n  IAmASchemaGenerator.\n\nSample fix:\n\n- Kafka sample no longer requires a live broker for --generate-asyncapi.\n  KafkaProducerRegistryFactory.Create connects eagerly, so build it only on the\n  runtime path; assembly scanning still surfaces publications in the doc.\n\nTests: 46/46 pass on net9.0 and net10.0.\n\nCo-Authored-By: Claude <noreply@anthropic.com>","commit-date":"2026-05-16T19:01:42Z","current-rev":"5e03da283","filename":"Brighter/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs","previous-rev":"70b03a0ee","commit-title":"fix(#3828): align AsyncAPI output with wire format, eliminate JSON/YAML divergence","language":"C#","id":"f49c3320ae617404ccf0324e7fe2dad4565432c7","model-score":0.28,"author-id":null,"project-id":32198,"delta-file-score":0.22637527,"diff":"diff --git a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\nindex 2a306a512..bd7ae8957 100644\n--- a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n+++ b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n@@ -51,2 +51,10 @@ private sealed record GenerationContext(\n \n+        // Inputs that vary per call into ProcessSourceAsync. Grouping them keeps the method\n+        // signature small (and satisfies the CodeScene \"Excess Number of Function Arguments\"\n+        // check) without flattening the call sites with positional parameters.\n+        private sealed record MessageSource(\n+            string Address,\n+            V3OperationAction Action,\n+            Type? RequestType);\n+\n         private readonly AsyncApiOptions _options;\n@@ -116,3 +124,3 @@ private async Task AddSubscriptionsAsync(\n                 await ProcessSourceAsync(\n-                    subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType,\n+                    new MessageSource(subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -133,3 +141,3 @@ private async Task AddPublicationsAsync(\n                 await ProcessSourceAsync(\n-                    publication.Topic.Value, V3OperationAction.Send, publication.RequestType,\n+                    new MessageSource(publication.Topic.Value, V3OperationAction.Send, publication.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -139,5 +147,3 @@ await ProcessSourceAsync(\n         private async Task ProcessSourceAsync(\n-            string address,\n-            V3OperationAction action,\n-            Type? requestType,\n+            MessageSource source,\n             GenerationContext context,\n@@ -145,11 +151,11 @@ private async Task ProcessSourceAsync(\n         {\n-            var channelId = SanitizeChannelId(address);\n+            var channelId = SanitizeChannelId(source.Address);\n \n-            EnsureChannel(context.Channels, channelId, address);\n+            EnsureChannel(context.Channels, channelId, source.Address);\n \n             string messageName;\n-            if (requestType != null)\n+            if (source.RequestType != null)\n             {\n-                messageName = requestType.Name;\n-                await EnsureMessageAsync(context.Messages, messageName, requestType, ct).ConfigureAwait(false);\n+                messageName = source.RequestType.Name;\n+                await EnsureMessageAsync(context.Messages, messageName, source.RequestType, ct).ConfigureAwait(false);\n             }\n@@ -163,3 +169,3 @@ private async Task ProcessSourceAsync(\n \n-            var actionString = action == V3OperationAction.Send ? \"send\" : \"receive\";\n+            var actionString = source.Action == V3OperationAction.Send ? \"send\" : \"receive\";\n             context.CoveredChannelActions.Add((channelId, actionString));\n@@ -169,3 +175,3 @@ private async Task ProcessSourceAsync(\n             {\n-                Action = action,\n+                Action = source.Action,\n                 Channel = new V3ReferenceDefinition { Reference = $\"#/channels/{channelId}\" },\n@@ -290,3 +296,3 @@ private static void EnsurePlaceholderMessage(Dictionary<string, V3MessageDefinit\n                     {\n-                        SchemaFormat = \"application/schema+json;version=draft-07\",\n+                        SchemaFormat = \"application/schema+json;version=draft-04\",\n                         Schema = emptyDoc.RootElement.Clone()\n@@ -332,3 +338,3 @@ private static V3SchemaDefinition EmptyObjectSchema()\n             {\n-                SchemaFormat = \"application/schema+json;version=draft-07\",\n+                SchemaFormat = \"application/schema+json;version=draft-04\",\n                 Schema = doc.RootElement.Clone()\n","improvement-type":"Excess Number of Function Arguments"}],"change-level":"warning","is-hotspot?":false,"line":262,"what-changed":"DispatchedMessagesAsync has 7 arguments, threshold = 4","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"introduced"},{"method":"GetAsync","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","refactoring-examples":[{"architectural-component-id":null,"author-name":"DevJonny","training-data":{"loc-added":"20","loc-deleted":"14","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.0","delta-n-functions":"0","current-file-score":"7.534418959981518"},"author-email":"jonny.ollifflee@gmail.com","commit-full-message":"JSON and YAML outputs previously described different documents because Neuroglia\n4.20.0 applies different default naming conventions in its JSON and YAML serialisers,\nand embedded JSON Schema fragments emitted PascalCase property names that did not\nmatch Brighter's camelCase wire format.\n\nLibrary changes:\n\n- Derive YAML from the JSON tree we just wrote. Guarantees both formats describe the\n  same document, regardless of upstream serialiser config drift.\n- Strip Neuroglia internals (isReference) and empty collections from both outputs.\n- Switch NJsonSchema generator to System.Text.Json reflection with camelCase property\n  policy and JsonStringEnumConverter, mirroring JsonSerialisationOptions.Options. The\n  schema now describes what JsonMessageMapper actually puts on the wire.\n- Declare draft-04 in SchemaFormat to match what NJsonSchema 11.x emits\n  (JsonSchema.ToJson hardcodes the dialect).\n- Refactor ProcessSourceAsync to take a MessageSource record, resolving the CodeScene\n  excess-arguments check.\n- Backfill missing XML docs on AsyncApiOptions and fix a stale paramref on\n  IAmASchemaGenerator.\n\nSample fix:\n\n- Kafka sample no longer requires a live broker for --generate-asyncapi.\n  KafkaProducerRegistryFactory.Create connects eagerly, so build it only on the\n  runtime path; assembly scanning still surfaces publications in the doc.\n\nTests: 46/46 pass on net9.0 and net10.0.\n\nCo-Authored-By: Claude <noreply@anthropic.com>","commit-date":"2026-05-16T19:01:42Z","current-rev":"5e03da283","filename":"Brighter/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs","previous-rev":"70b03a0ee","commit-title":"fix(#3828): align AsyncAPI output with wire format, eliminate JSON/YAML divergence","language":"C#","id":"f49c3320ae617404ccf0324e7fe2dad4565432c7","model-score":0.28,"author-id":null,"project-id":32198,"delta-file-score":0.22637527,"diff":"diff --git a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\nindex 2a306a512..bd7ae8957 100644\n--- a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n+++ b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n@@ -51,2 +51,10 @@ private sealed record GenerationContext(\n \n+        // Inputs that vary per call into ProcessSourceAsync. Grouping them keeps the method\n+        // signature small (and satisfies the CodeScene \"Excess Number of Function Arguments\"\n+        // check) without flattening the call sites with positional parameters.\n+        private sealed record MessageSource(\n+            string Address,\n+            V3OperationAction Action,\n+            Type? RequestType);\n+\n         private readonly AsyncApiOptions _options;\n@@ -116,3 +124,3 @@ private async Task AddSubscriptionsAsync(\n                 await ProcessSourceAsync(\n-                    subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType,\n+                    new MessageSource(subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -133,3 +141,3 @@ private async Task AddPublicationsAsync(\n                 await ProcessSourceAsync(\n-                    publication.Topic.Value, V3OperationAction.Send, publication.RequestType,\n+                    new MessageSource(publication.Topic.Value, V3OperationAction.Send, publication.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -139,5 +147,3 @@ await ProcessSourceAsync(\n         private async Task ProcessSourceAsync(\n-            string address,\n-            V3OperationAction action,\n-            Type? requestType,\n+            MessageSource source,\n             GenerationContext context,\n@@ -145,11 +151,11 @@ private async Task ProcessSourceAsync(\n         {\n-            var channelId = SanitizeChannelId(address);\n+            var channelId = SanitizeChannelId(source.Address);\n \n-            EnsureChannel(context.Channels, channelId, address);\n+            EnsureChannel(context.Channels, channelId, source.Address);\n \n             string messageName;\n-            if (requestType != null)\n+            if (source.RequestType != null)\n             {\n-                messageName = requestType.Name;\n-                await EnsureMessageAsync(context.Messages, messageName, requestType, ct).ConfigureAwait(false);\n+                messageName = source.RequestType.Name;\n+                await EnsureMessageAsync(context.Messages, messageName, source.RequestType, ct).ConfigureAwait(false);\n             }\n@@ -163,3 +169,3 @@ private async Task ProcessSourceAsync(\n \n-            var actionString = action == V3OperationAction.Send ? \"send\" : \"receive\";\n+            var actionString = source.Action == V3OperationAction.Send ? \"send\" : \"receive\";\n             context.CoveredChannelActions.Add((channelId, actionString));\n@@ -169,3 +175,3 @@ private async Task ProcessSourceAsync(\n             {\n-                Action = action,\n+                Action = source.Action,\n                 Channel = new V3ReferenceDefinition { Reference = $\"#/channels/{channelId}\" },\n@@ -290,3 +296,3 @@ private static void EnsurePlaceholderMessage(Dictionary<string, V3MessageDefinit\n                     {\n-                        SchemaFormat = \"application/schema+json;version=draft-07\",\n+                        SchemaFormat = \"application/schema+json;version=draft-04\",\n                         Schema = emptyDoc.RootElement.Clone()\n@@ -332,3 +338,3 @@ private static V3SchemaDefinition EmptyObjectSchema()\n             {\n-                SchemaFormat = \"application/schema+json;version=draft-07\",\n+                SchemaFormat = \"application/schema+json;version=draft-04\",\n                 Schema = doc.RootElement.Clone()\n","improvement-type":"Excess Number of Function Arguments"}],"change-level":"warning","is-hotspot?":false,"line":308,"what-changed":"GetAsync has 5 arguments, threshold = 4","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"introduced"},{"method":"MarkDispatchedAsync","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","refactoring-examples":[{"architectural-component-id":null,"author-name":"DevJonny","training-data":{"loc-added":"20","loc-deleted":"14","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.0","delta-n-functions":"0","current-file-score":"7.534418959981518"},"author-email":"jonny.ollifflee@gmail.com","commit-full-message":"JSON and YAML outputs previously described different documents because Neuroglia\n4.20.0 applies different default naming conventions in its JSON and YAML serialisers,\nand embedded JSON Schema fragments emitted PascalCase property names that did not\nmatch Brighter's camelCase wire format.\n\nLibrary changes:\n\n- Derive YAML from the JSON tree we just wrote. Guarantees both formats describe the\n  same document, regardless of upstream serialiser config drift.\n- Strip Neuroglia internals (isReference) and empty collections from both outputs.\n- Switch NJsonSchema generator to System.Text.Json reflection with camelCase property\n  policy and JsonStringEnumConverter, mirroring JsonSerialisationOptions.Options. The\n  schema now describes what JsonMessageMapper actually puts on the wire.\n- Declare draft-04 in SchemaFormat to match what NJsonSchema 11.x emits\n  (JsonSchema.ToJson hardcodes the dialect).\n- Refactor ProcessSourceAsync to take a MessageSource record, resolving the CodeScene\n  excess-arguments check.\n- Backfill missing XML docs on AsyncApiOptions and fix a stale paramref on\n  IAmASchemaGenerator.\n\nSample fix:\n\n- Kafka sample no longer requires a live broker for --generate-asyncapi.\n  KafkaProducerRegistryFactory.Create connects eagerly, so build it only on the\n  runtime path; assembly scanning still surfaces publications in the doc.\n\nTests: 46/46 pass on net9.0 and net10.0.\n\nCo-Authored-By: Claude <noreply@anthropic.com>","commit-date":"2026-05-16T19:01:42Z","current-rev":"5e03da283","filename":"Brighter/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs","previous-rev":"70b03a0ee","commit-title":"fix(#3828): align AsyncAPI output with wire format, eliminate JSON/YAML divergence","language":"C#","id":"f49c3320ae617404ccf0324e7fe2dad4565432c7","model-score":0.28,"author-id":null,"project-id":32198,"delta-file-score":0.22637527,"diff":"diff --git a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\nindex 2a306a512..bd7ae8957 100644\n--- a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n+++ b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n@@ -51,2 +51,10 @@ private sealed record GenerationContext(\n \n+        // Inputs that vary per call into ProcessSourceAsync. Grouping them keeps the method\n+        // signature small (and satisfies the CodeScene \"Excess Number of Function Arguments\"\n+        // check) without flattening the call sites with positional parameters.\n+        private sealed record MessageSource(\n+            string Address,\n+            V3OperationAction Action,\n+            Type? RequestType);\n+\n         private readonly AsyncApiOptions _options;\n@@ -116,3 +124,3 @@ private async Task AddSubscriptionsAsync(\n                 await ProcessSourceAsync(\n-                    subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType,\n+                    new MessageSource(subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -133,3 +141,3 @@ private async Task AddPublicationsAsync(\n                 await ProcessSourceAsync(\n-                    publication.Topic.Value, V3OperationAction.Send, publication.RequestType,\n+                    new MessageSource(publication.Topic.Value, V3OperationAction.Send, publication.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -139,5 +147,3 @@ await ProcessSourceAsync(\n         private async Task ProcessSourceAsync(\n-            string address,\n-            V3OperationAction action,\n-            Type? requestType,\n+            MessageSource source,\n             GenerationContext context,\n@@ -145,11 +151,11 @@ private async Task ProcessSourceAsync(\n         {\n-            var channelId = SanitizeChannelId(address);\n+            var channelId = SanitizeChannelId(source.Address);\n \n-            EnsureChannel(context.Channels, channelId, address);\n+            EnsureChannel(context.Channels, channelId, source.Address);\n \n             string messageName;\n-            if (requestType != null)\n+            if (source.RequestType != null)\n             {\n-                messageName = requestType.Name;\n-                await EnsureMessageAsync(context.Messages, messageName, requestType, ct).ConfigureAwait(false);\n+                messageName = source.RequestType.Name;\n+                await EnsureMessageAsync(context.Messages, messageName, source.RequestType, ct).ConfigureAwait(false);\n             }\n@@ -163,3 +169,3 @@ private async Task ProcessSourceAsync(\n \n-            var actionString = action == V3OperationAction.Send ? \"send\" : \"receive\";\n+            var actionString = source.Action == V3OperationAction.Send ? \"send\" : \"receive\";\n             context.CoveredChannelActions.Add((channelId, actionString));\n@@ -169,3 +175,3 @@ private async Task ProcessSourceAsync(\n             {\n-                Action = action,\n+                Action = source.Action,\n                 Channel = new V3ReferenceDefinition { Reference = $\"#/channels/{channelId}\" },\n@@ -290,3 +296,3 @@ private static void EnsurePlaceholderMessage(Dictionary<string, V3MessageDefinit\n                     {\n-                        SchemaFormat = \"application/schema+json;version=draft-07\",\n+                        SchemaFormat = \"application/schema+json;version=draft-04\",\n                         Schema = emptyDoc.RootElement.Clone()\n@@ -332,3 +338,3 @@ private static V3SchemaDefinition EmptyObjectSchema()\n             {\n-                SchemaFormat = \"application/schema+json;version=draft-07\",\n+                SchemaFormat = \"application/schema+json;version=draft-04\",\n                 Schema = doc.RootElement.Clone()\n","improvement-type":"Excess Number of Function Arguments"}],"change-level":"warning","is-hotspot?":false,"line":339,"what-changed":"MarkDispatchedAsync has 5 arguments, threshold = 4","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"introduced"},{"method":"MarkDispatchedAsync","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","refactoring-examples":[{"architectural-component-id":null,"author-name":"DevJonny","training-data":{"loc-added":"20","loc-deleted":"14","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.0","delta-n-functions":"0","current-file-score":"7.534418959981518"},"author-email":"jonny.ollifflee@gmail.com","commit-full-message":"JSON and YAML outputs previously described different documents because Neuroglia\n4.20.0 applies different default naming conventions in its JSON and YAML serialisers,\nand embedded JSON Schema fragments emitted PascalCase property names that did not\nmatch Brighter's camelCase wire format.\n\nLibrary changes:\n\n- Derive YAML from the JSON tree we just wrote. Guarantees both formats describe the\n  same document, regardless of upstream serialiser config drift.\n- Strip Neuroglia internals (isReference) and empty collections from both outputs.\n- Switch NJsonSchema generator to System.Text.Json reflection with camelCase property\n  policy and JsonStringEnumConverter, mirroring JsonSerialisationOptions.Options. The\n  schema now describes what JsonMessageMapper actually puts on the wire.\n- Declare draft-04 in SchemaFormat to match what NJsonSchema 11.x emits\n  (JsonSchema.ToJson hardcodes the dialect).\n- Refactor ProcessSourceAsync to take a MessageSource record, resolving the CodeScene\n  excess-arguments check.\n- Backfill missing XML docs on AsyncApiOptions and fix a stale paramref on\n  IAmASchemaGenerator.\n\nSample fix:\n\n- Kafka sample no longer requires a live broker for --generate-asyncapi.\n  KafkaProducerRegistryFactory.Create connects eagerly, so build it only on the\n  runtime path; assembly scanning still surfaces publications in the doc.\n\nTests: 46/46 pass on net9.0 and net10.0.\n\nCo-Authored-By: Claude <noreply@anthropic.com>","commit-date":"2026-05-16T19:01:42Z","current-rev":"5e03da283","filename":"Brighter/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs","previous-rev":"70b03a0ee","commit-title":"fix(#3828): align AsyncAPI output with wire format, eliminate JSON/YAML divergence","language":"C#","id":"f49c3320ae617404ccf0324e7fe2dad4565432c7","model-score":0.28,"author-id":null,"project-id":32198,"delta-file-score":0.22637527,"diff":"diff --git a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\nindex 2a306a512..bd7ae8957 100644\n--- a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n+++ b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n@@ -51,2 +51,10 @@ private sealed record GenerationContext(\n \n+        // Inputs that vary per call into ProcessSourceAsync. Grouping them keeps the method\n+        // signature small (and satisfies the CodeScene \"Excess Number of Function Arguments\"\n+        // check) without flattening the call sites with positional parameters.\n+        private sealed record MessageSource(\n+            string Address,\n+            V3OperationAction Action,\n+            Type? RequestType);\n+\n         private readonly AsyncApiOptions _options;\n@@ -116,3 +124,3 @@ private async Task AddSubscriptionsAsync(\n                 await ProcessSourceAsync(\n-                    subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType,\n+                    new MessageSource(subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -133,3 +141,3 @@ private async Task AddPublicationsAsync(\n                 await ProcessSourceAsync(\n-                    publication.Topic.Value, V3OperationAction.Send, publication.RequestType,\n+                    new MessageSource(publication.Topic.Value, V3OperationAction.Send, publication.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -139,5 +147,3 @@ await ProcessSourceAsync(\n         private async Task ProcessSourceAsync(\n-            string address,\n-            V3OperationAction action,\n-            Type? requestType,\n+            MessageSource source,\n             GenerationContext context,\n@@ -145,11 +151,11 @@ private async Task ProcessSourceAsync(\n         {\n-            var channelId = SanitizeChannelId(address);\n+            var channelId = SanitizeChannelId(source.Address);\n \n-            EnsureChannel(context.Channels, channelId, address);\n+            EnsureChannel(context.Channels, channelId, source.Address);\n \n             string messageName;\n-            if (requestType != null)\n+            if (source.RequestType != null)\n             {\n-                messageName = requestType.Name;\n-                await EnsureMessageAsync(context.Messages, messageName, requestType, ct).ConfigureAwait(false);\n+                messageName = source.RequestType.Name;\n+                await EnsureMessageAsync(context.Messages, messageName, source.RequestType, ct).ConfigureAwait(false);\n             }\n@@ -163,3 +169,3 @@ private async Task ProcessSourceAsync(\n \n-            var actionString = action == V3OperationAction.Send ? \"send\" : \"receive\";\n+            var actionString = source.Action == V3OperationAction.Send ? \"send\" : \"receive\";\n             context.CoveredChannelActions.Add((channelId, actionString));\n@@ -169,3 +175,3 @@ private async Task ProcessSourceAsync(\n             {\n-                Action = action,\n+                Action = source.Action,\n                 Channel = new V3ReferenceDefinition { Reference = $\"#/channels/{channelId}\" },\n@@ -290,3 +296,3 @@ private static void EnsurePlaceholderMessage(Dictionary<string, V3MessageDefinit\n                     {\n-                        SchemaFormat = \"application/schema+json;version=draft-07\",\n+                        SchemaFormat = \"application/schema+json;version=draft-04\",\n                         Schema = emptyDoc.RootElement.Clone()\n@@ -332,3 +338,3 @@ private static V3SchemaDefinition EmptyObjectSchema()\n             {\n-                SchemaFormat = \"application/schema+json;version=draft-07\",\n+                SchemaFormat = \"application/schema+json;version=draft-04\",\n                 Schema = doc.RootElement.Clone()\n","improvement-type":"Excess Number of Function Arguments"}],"change-level":"warning","is-hotspot?":false,"line":368,"what-changed":"MarkDispatchedAsync has 5 arguments, threshold = 4","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"introduced"},{"method":"OutstandingMessagesAsync","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","refactoring-examples":[{"architectural-component-id":null,"author-name":"DevJonny","training-data":{"loc-added":"20","loc-deleted":"14","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.0","delta-n-functions":"0","current-file-score":"7.534418959981518"},"author-email":"jonny.ollifflee@gmail.com","commit-full-message":"JSON and YAML outputs previously described different documents because Neuroglia\n4.20.0 applies different default naming conventions in its JSON and YAML serialisers,\nand embedded JSON Schema fragments emitted PascalCase property names that did not\nmatch Brighter's camelCase wire format.\n\nLibrary changes:\n\n- Derive YAML from the JSON tree we just wrote. Guarantees both formats describe the\n  same document, regardless of upstream serialiser config drift.\n- Strip Neuroglia internals (isReference) and empty collections from both outputs.\n- Switch NJsonSchema generator to System.Text.Json reflection with camelCase property\n  policy and JsonStringEnumConverter, mirroring JsonSerialisationOptions.Options. The\n  schema now describes what JsonMessageMapper actually puts on the wire.\n- Declare draft-04 in SchemaFormat to match what NJsonSchema 11.x emits\n  (JsonSchema.ToJson hardcodes the dialect).\n- Refactor ProcessSourceAsync to take a MessageSource record, resolving the CodeScene\n  excess-arguments check.\n- Backfill missing XML docs on AsyncApiOptions and fix a stale paramref on\n  IAmASchemaGenerator.\n\nSample fix:\n\n- Kafka sample no longer requires a live broker for --generate-asyncapi.\n  KafkaProducerRegistryFactory.Create connects eagerly, so build it only on the\n  runtime path; assembly scanning still surfaces publications in the doc.\n\nTests: 46/46 pass on net9.0 and net10.0.\n\nCo-Authored-By: Claude <noreply@anthropic.com>","commit-date":"2026-05-16T19:01:42Z","current-rev":"5e03da283","filename":"Brighter/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs","previous-rev":"70b03a0ee","commit-title":"fix(#3828): align AsyncAPI output with wire format, eliminate JSON/YAML divergence","language":"C#","id":"f49c3320ae617404ccf0324e7fe2dad4565432c7","model-score":0.28,"author-id":null,"project-id":32198,"delta-file-score":0.22637527,"diff":"diff --git a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\nindex 2a306a512..bd7ae8957 100644\n--- a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n+++ b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n@@ -51,2 +51,10 @@ private sealed record GenerationContext(\n \n+        // Inputs that vary per call into ProcessSourceAsync. Grouping them keeps the method\n+        // signature small (and satisfies the CodeScene \"Excess Number of Function Arguments\"\n+        // check) without flattening the call sites with positional parameters.\n+        private sealed record MessageSource(\n+            string Address,\n+            V3OperationAction Action,\n+            Type? RequestType);\n+\n         private readonly AsyncApiOptions _options;\n@@ -116,3 +124,3 @@ private async Task AddSubscriptionsAsync(\n                 await ProcessSourceAsync(\n-                    subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType,\n+                    new MessageSource(subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -133,3 +141,3 @@ private async Task AddPublicationsAsync(\n                 await ProcessSourceAsync(\n-                    publication.Topic.Value, V3OperationAction.Send, publication.RequestType,\n+                    new MessageSource(publication.Topic.Value, V3OperationAction.Send, publication.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -139,5 +147,3 @@ await ProcessSourceAsync(\n         private async Task ProcessSourceAsync(\n-            string address,\n-            V3OperationAction action,\n-            Type? requestType,\n+            MessageSource source,\n             GenerationContext context,\n@@ -145,11 +151,11 @@ private async Task ProcessSourceAsync(\n         {\n-            var channelId = SanitizeChannelId(address);\n+            var channelId = SanitizeChannelId(source.Address);\n \n-            EnsureChannel(context.Channels, channelId, address);\n+            EnsureChannel(context.Channels, channelId, source.Address);\n \n             string messageName;\n-            if (requestType != null)\n+            if (source.RequestType != null)\n             {\n-                messageName = requestType.Name;\n-                await EnsureMessageAsync(context.Messages, messageName, requestType, ct).ConfigureAwait(false);\n+                messageName = source.RequestType.Name;\n+                await EnsureMessageAsync(context.Messages, messageName, source.RequestType, ct).ConfigureAwait(false);\n             }\n@@ -163,3 +169,3 @@ private async Task ProcessSourceAsync(\n \n-            var actionString = action == V3OperationAction.Send ? \"send\" : \"receive\";\n+            var actionString = source.Action == V3OperationAction.Send ? \"send\" : \"receive\";\n             context.CoveredChannelActions.Add((channelId, actionString));\n@@ -169,3 +175,3 @@ private async Task ProcessSourceAsync(\n             {\n-                Action = action,\n+                Action = source.Action,\n                 Channel = new V3ReferenceDefinition { Reference = $\"#/channels/{channelId}\" },\n@@ -290,3 +296,3 @@ private static void EnsurePlaceholderMessage(Dictionary<string, V3MessageDefinit\n                     {\n-                        SchemaFormat = \"application/schema+json;version=draft-07\",\n+                        SchemaFormat = \"application/schema+json;version=draft-04\",\n                         Schema = emptyDoc.RootElement.Clone()\n@@ -332,3 +338,3 @@ private static V3SchemaDefinition EmptyObjectSchema()\n             {\n-                SchemaFormat = \"application/schema+json;version=draft-07\",\n+                SchemaFormat = \"application/schema+json;version=draft-04\",\n                 Schema = doc.RootElement.Clone()\n","improvement-type":"Excess Number of Function Arguments"}],"change-level":"warning","is-hotspot?":false,"line":398,"what-changed":"OutstandingMessagesAsync has 6 arguments, threshold = 4","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"introduced"},{"method":"DispatchedMessages","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","refactoring-examples":[{"architectural-component-id":null,"author-name":"DevJonny","training-data":{"loc-added":"20","loc-deleted":"14","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.0","delta-n-functions":"0","current-file-score":"7.534418959981518"},"author-email":"jonny.ollifflee@gmail.com","commit-full-message":"JSON and YAML outputs previously described different documents because Neuroglia\n4.20.0 applies different default naming conventions in its JSON and YAML serialisers,\nand embedded JSON Schema fragments emitted PascalCase property names that did not\nmatch Brighter's camelCase wire format.\n\nLibrary changes:\n\n- Derive YAML from the JSON tree we just wrote. Guarantees both formats describe the\n  same document, regardless of upstream serialiser config drift.\n- Strip Neuroglia internals (isReference) and empty collections from both outputs.\n- Switch NJsonSchema generator to System.Text.Json reflection with camelCase property\n  policy and JsonStringEnumConverter, mirroring JsonSerialisationOptions.Options. The\n  schema now describes what JsonMessageMapper actually puts on the wire.\n- Declare draft-04 in SchemaFormat to match what NJsonSchema 11.x emits\n  (JsonSchema.ToJson hardcodes the dialect).\n- Refactor ProcessSourceAsync to take a MessageSource record, resolving the CodeScene\n  excess-arguments check.\n- Backfill missing XML docs on AsyncApiOptions and fix a stale paramref on\n  IAmASchemaGenerator.\n\nSample fix:\n\n- Kafka sample no longer requires a live broker for --generate-asyncapi.\n  KafkaProducerRegistryFactory.Create connects eagerly, so build it only on the\n  runtime path; assembly scanning still surfaces publications in the doc.\n\nTests: 46/46 pass on net9.0 and net10.0.\n\nCo-Authored-By: Claude <noreply@anthropic.com>","commit-date":"2026-05-16T19:01:42Z","current-rev":"5e03da283","filename":"Brighter/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs","previous-rev":"70b03a0ee","commit-title":"fix(#3828): align AsyncAPI output with wire format, eliminate JSON/YAML divergence","language":"C#","id":"f49c3320ae617404ccf0324e7fe2dad4565432c7","model-score":0.28,"author-id":null,"project-id":32198,"delta-file-score":0.22637527,"diff":"diff --git a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\nindex 2a306a512..bd7ae8957 100644\n--- a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n+++ b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n@@ -51,2 +51,10 @@ private sealed record GenerationContext(\n \n+        // Inputs that vary per call into ProcessSourceAsync. Grouping them keeps the method\n+        // signature small (and satisfies the CodeScene \"Excess Number of Function Arguments\"\n+        // check) without flattening the call sites with positional parameters.\n+        private sealed record MessageSource(\n+            string Address,\n+            V3OperationAction Action,\n+            Type? RequestType);\n+\n         private readonly AsyncApiOptions _options;\n@@ -116,3 +124,3 @@ private async Task AddSubscriptionsAsync(\n                 await ProcessSourceAsync(\n-                    subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType,\n+                    new MessageSource(subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -133,3 +141,3 @@ private async Task AddPublicationsAsync(\n                 await ProcessSourceAsync(\n-                    publication.Topic.Value, V3OperationAction.Send, publication.RequestType,\n+                    new MessageSource(publication.Topic.Value, V3OperationAction.Send, publication.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -139,5 +147,3 @@ await ProcessSourceAsync(\n         private async Task ProcessSourceAsync(\n-            string address,\n-            V3OperationAction action,\n-            Type? requestType,\n+            MessageSource source,\n             GenerationContext context,\n@@ -145,11 +151,11 @@ private async Task ProcessSourceAsync(\n         {\n-            var channelId = SanitizeChannelId(address);\n+            var channelId = SanitizeChannelId(source.Address);\n \n-            EnsureChannel(context.Channels, channelId, address);\n+            EnsureChannel(context.Channels, channelId, source.Address);\n \n             string messageName;\n-            if (requestType != null)\n+            if (source.RequestType != null)\n             {\n-                messageName = requestType.Name;\n-                await EnsureMessageAsync(context.Messages, messageName, requestType, ct).ConfigureAwait(false);\n+                messageName = source.RequestType.Name;\n+                await EnsureMessageAsync(context.Messages, messageName, source.RequestType, ct).ConfigureAwait(false);\n             }\n@@ -163,3 +169,3 @@ private async Task ProcessSourceAsync(\n \n-            var actionString = action == V3OperationAction.Send ? \"send\" : \"receive\";\n+            var actionString = source.Action == V3OperationAction.Send ? \"send\" : \"receive\";\n             context.CoveredChannelActions.Add((channelId, actionString));\n@@ -169,3 +175,3 @@ private async Task ProcessSourceAsync(\n             {\n-                Action = action,\n+                Action = source.Action,\n                 Channel = new V3ReferenceDefinition { Reference = $\"#/channels/{channelId}\" },\n@@ -290,3 +296,3 @@ private static void EnsurePlaceholderMessage(Dictionary<string, V3MessageDefinit\n                     {\n-                        SchemaFormat = \"application/schema+json;version=draft-07\",\n+                        SchemaFormat = \"application/schema+json;version=draft-04\",\n                         Schema = emptyDoc.RootElement.Clone()\n@@ -332,3 +338,3 @@ private static V3SchemaDefinition EmptyObjectSchema()\n             {\n-                SchemaFormat = \"application/schema+json;version=draft-07\",\n+                SchemaFormat = \"application/schema+json;version=draft-04\",\n                 Schema = doc.RootElement.Clone()\n","improvement-type":"Excess Number of Function Arguments"}],"change-level":"warning","is-hotspot?":false,"line":642,"what-changed":"DispatchedMessages has 6 arguments, threshold = 4","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"introduced"},{"method":"OutstandingMessages","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.Outbox.MongoDb/MongoDbOutbox.cs","refactoring-examples":[{"architectural-component-id":null,"author-name":"DevJonny","training-data":{"loc-added":"20","loc-deleted":"14","delta-cc-mean":"0.0","delta-cc-total":"0","delta-penalties":"1.0","delta-n-functions":"0","current-file-score":"7.534418959981518"},"author-email":"jonny.ollifflee@gmail.com","commit-full-message":"JSON and YAML outputs previously described different documents because Neuroglia\n4.20.0 applies different default naming conventions in its JSON and YAML serialisers,\nand embedded JSON Schema fragments emitted PascalCase property names that did not\nmatch Brighter's camelCase wire format.\n\nLibrary changes:\n\n- Derive YAML from the JSON tree we just wrote. Guarantees both formats describe the\n  same document, regardless of upstream serialiser config drift.\n- Strip Neuroglia internals (isReference) and empty collections from both outputs.\n- Switch NJsonSchema generator to System.Text.Json reflection with camelCase property\n  policy and JsonStringEnumConverter, mirroring JsonSerialisationOptions.Options. The\n  schema now describes what JsonMessageMapper actually puts on the wire.\n- Declare draft-04 in SchemaFormat to match what NJsonSchema 11.x emits\n  (JsonSchema.ToJson hardcodes the dialect).\n- Refactor ProcessSourceAsync to take a MessageSource record, resolving the CodeScene\n  excess-arguments check.\n- Backfill missing XML docs on AsyncApiOptions and fix a stale paramref on\n  IAmASchemaGenerator.\n\nSample fix:\n\n- Kafka sample no longer requires a live broker for --generate-asyncapi.\n  KafkaProducerRegistryFactory.Create connects eagerly, so build it only on the\n  runtime path; assembly scanning still surfaces publications in the doc.\n\nTests: 46/46 pass on net9.0 and net10.0.\n\nCo-Authored-By: Claude <noreply@anthropic.com>","commit-date":"2026-05-16T19:01:42Z","current-rev":"5e03da283","filename":"Brighter/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs","previous-rev":"70b03a0ee","commit-title":"fix(#3828): align AsyncAPI output with wire format, eliminate JSON/YAML divergence","language":"C#","id":"f49c3320ae617404ccf0324e7fe2dad4565432c7","model-score":0.28,"author-id":null,"project-id":32198,"delta-file-score":0.22637527,"diff":"diff --git a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\nindex 2a306a512..bd7ae8957 100644\n--- a/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n+++ b/src/Paramore.Brighter.AsyncAPI/AsyncApiDocumentGenerator.cs\n@@ -51,2 +51,10 @@ private sealed record GenerationContext(\n \n+        // Inputs that vary per call into ProcessSourceAsync. Grouping them keeps the method\n+        // signature small (and satisfies the CodeScene \"Excess Number of Function Arguments\"\n+        // check) without flattening the call sites with positional parameters.\n+        private sealed record MessageSource(\n+            string Address,\n+            V3OperationAction Action,\n+            Type? RequestType);\n+\n         private readonly AsyncApiOptions _options;\n@@ -116,3 +124,3 @@ private async Task AddSubscriptionsAsync(\n                 await ProcessSourceAsync(\n-                    subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType,\n+                    new MessageSource(subscription.RoutingKey.Value, V3OperationAction.Receive, subscription.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -133,3 +141,3 @@ private async Task AddPublicationsAsync(\n                 await ProcessSourceAsync(\n-                    publication.Topic.Value, V3OperationAction.Send, publication.RequestType,\n+                    new MessageSource(publication.Topic.Value, V3OperationAction.Send, publication.RequestType),\n                     context, ct).ConfigureAwait(false);\n@@ -139,5 +147,3 @@ await ProcessSourceAsync(\n         private async Task ProcessSourceAsync(\n-            string address,\n-            V3OperationAction action,\n-            Type? requestType,\n+            MessageSource source,\n             GenerationContext context,\n@@ -145,11 +151,11 @@ private async Task ProcessSourceAsync(\n         {\n-            var channelId = SanitizeChannelId(address);\n+            var channelId = SanitizeChannelId(source.Address);\n \n-            EnsureChannel(context.Channels, channelId, address);\n+            EnsureChannel(context.Channels, channelId, source.Address);\n \n             string messageName;\n-            if (requestType != null)\n+            if (source.RequestType != null)\n             {\n-                messageName = requestType.Name;\n-                await EnsureMessageAsync(context.Messages, messageName, requestType, ct).ConfigureAwait(false);\n+                messageName = source.RequestType.Name;\n+                await EnsureMessageAsync(context.Messages, messageName, source.RequestType, ct).ConfigureAwait(false);\n             }\n@@ -163,3 +169,3 @@ private async Task ProcessSourceAsync(\n \n-            var actionString = action == V3OperationAction.Send ? \"send\" : \"receive\";\n+            var actionString = source.Action == V3OperationAction.Send ? \"send\" : \"receive\";\n             context.CoveredChannelActions.Add((channelId, actionString));\n@@ -169,3 +175,3 @@ private async Task ProcessSourceAsync(\n             {\n-                Action = action,\n+                Action = source.Action,\n                 Channel = new V3ReferenceDefinition { Reference = $\"#/channels/{channelId}\" },\n@@ -290,3 +296,3 @@ private static void EnsurePlaceholderMessage(Dictionary<string, V3MessageDefinit\n                     {\n-                        SchemaFormat = \"application/schema+json;version=draft-07\",\n+                        SchemaFormat = \"application/schema+json;version=draft-04\",\n                         Schema = emptyDoc.RootElement.Clone()\n@@ -332,3 +338,3 @@ private static V3SchemaDefinition EmptyObjectSchema()\n             {\n-                SchemaFormat = \"application/schema+json;version=draft-07\",\n+                SchemaFormat = \"application/schema+json;version=draft-04\",\n                 Schema = doc.RootElement.Clone()\n","improvement-type":"Excess Number of Function Arguments"}],"change-level":"warning","is-hotspot?":false,"line":738,"what-changed":"OutstandingMessages has 5 arguments, threshold = 4","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"introduced"},{"why-it-occurs":"Duplicated code often leads to code that's harder to change since the same logical change has to be done in multiple functions. More duplication gives lower code health.","name":"Code Duplication","file":"src/Paramore.Brighter.Inbox.MongoDb/MongoDbInbox.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":25,"what-changed":"The module contains 2 functions with similar structure: Add,AddAsync","how-to-fix":"A certain degree of duplicated code might be acceptable. The problems start when it is the same behavior that is duplicated across the functions in the module, ie. a violation of the Don't Repeat Yourself (DRY) principle. DRY violations lead to code that is changed together in predictable patterns, which is both expensive and risky. DRY violations can be identified using CodeScene's X-Ray analysis to detect clusters of change coupled functions with high code similarity. [Read More](https://codescene.com/blog/software-revolution-part3/)\n\nOnce you have identified the similarities across functions, look to extract and encapsulate the concept that varies into its own function(s). These shared abstractions can then be re-used, which minimizes the amount of duplication and simplifies change.","change-type":"introduced"},{"why-it-occurs":"Code that uses a high degree of built-in, primitives such as integers, strings, floats, lacks a domain language that encapsulates the validation and semantics of function arguments. Primitive Obsession has several consequences: 1) In a statically typed language, the compiler will detect less erroneous assignments. 2) Security impact since the possible value range of a variable/argument isn't retricted.\n\nIn this module, 73 % of all functions have primitive types as arguments.","name":"Primitive Obsession","file":"src/Paramore.Brighter.Inbox.MongoDb/MongoDbInbox.cs","refactoring-examples":[{"diff":"diff --git a/primitive-obsession.ts b/primitive-obsession.ts\nindex 38bae186cc..24116eddcc 100644\n--- a/primitive-obsession.ts\n+++ b/primitive-obsession.ts\n@@ -1,8 +1,8 @@\n-// Problem: It's hard to know what this function does, and what values are valid as parameters.\n-function getPopularRepositories(String baseURL, String query, Integer pages, Integer pageSize, String sortorder): Json {\n-\tlet pages == null ? 10 : pages\n-\tlet pageSize == null ? 10 : pageSize\n-  return httpClient.get(`${baseURL}?q=${query}&pages=${pages}&pageSize=${pageSize}&sortorder=${sortorder}`)\n+// Refactoring: extract the pagination & API logic into a class, and it will\n+// attract validation and other logic related to the specific query. It's now\n+// easier to use and to maintain the getPopularRepositories function!\n+function getPopularRepositories(query: PaginatedRepoQuery): Json {\n+  return httpClient.get(query.getURL())\n     .map(json => json.repositories)\n     .filter(repository => repositry.stargazersCount > 1000)\n }\n","language":"c#","improvement-type":"Primitive Obsession"}],"change-level":"warning","is-hotspot?":false,"what-changed":"In this module, 72.7% of all function arguments are primitive types, threshold = 30.0%","how-to-fix":"Primitive Obsession indicates a missing domain language. Introduce data types that encapsulate the details and constraints of your domain. For example, instead of `int userId`, consider `User clicked`.","change-type":"introduced"},{"why-it-occurs":"String is a generic type that fail to capture the constraints of the domain object it represents. In this module, 45 % of all function arguments are string types.","name":"String Heavy Function Arguments","file":"src/Paramore.Brighter.Inbox.MongoDb/MongoDbInbox.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"what-changed":"In this module, 45.5% of all arguments to its 7 functions are strings. The threshold for string arguments is 39.0%","how-to-fix":"Heavy string usage indicates a missing domain language. Introduce data types that encapsulate the semantics. For example, a user_name is better represented as a constrained User type rather than a pure string, which could be anything.","change-type":"introduced"},{"why-it-occurs":"Duplicated code often leads to code that's harder to change since the same logical change has to be done in multiple functions. More duplication gives lower code health.","name":"Code Duplication","file":"src/Paramore.Brighter.Inbox.MongoDb/MongoDbUnitOfWork.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":72,"what-changed":"The module contains 2 functions with similar structure: Rollback,RollbackAsync","how-to-fix":"A certain degree of duplicated code might be acceptable. The problems start when it is the same behavior that is duplicated across the functions in the module, ie. a violation of the Don't Repeat Yourself (DRY) principle. DRY violations lead to code that is changed together in predictable patterns, which is both expensive and risky. DRY violations can be identified using CodeScene's X-Ray analysis to detect clusters of change coupled functions with high code similarity. [Read More](https://codescene.com/blog/software-revolution-part3/)\n\nOnce you have identified the similarities across functions, look to extract and encapsulate the concept that varies into its own function(s). These shared abstractions can then be re-used, which minimizes the amount of duplication and simplifies change.","change-type":"introduced"}]},"positive-impact-count":0,"repo":"Brighter","code-health":8.368575892002823,"version":"3.0","authors":["Rafael Andrade"],"directives":{"added":[],"removed":[]},"positive-findings":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"notices":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"external-review-provider":"GitHub"},"analysistime":"2025-02-20T14:22:40.000Z","project-name":"Brighter","repository":"https://github.com/BrighterCommand/Brighter.git"}}