← Back to Pull requests

New system #9

Open
akbashev opened this pull request with 2009 lines diff across 23 files
View on GitHub
akbashev akbashev commented on Oct 16, 2025 16:14 UTC
Author

Checking code changes and tests

Diff: 2009 lines (+1983 / -26) across 23 files Reviewer: ktoso Review duration: 595789m
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.79) × (1 − Review Confidence (0.85)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.79 · 2009 lines diff across 23 files
0.79
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.80 · 4 substantive comment(s)
0.80
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
84%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.400
Mass File Touch mass_file_touch
0.080
Real PR Conversation Timeline
5 items
ktoso ktoso commented on code on Oct 16, 2025 22:36 UTC
Code Review
Sources/NewDistributedCluster/Serialization/TemporarySerialization.swift:1
@@ -0,0 +1,35 @@
+//===----------------------------------------------------------------------===//
+//
+// This source file is part of the Swift Distributed Actors open source project
+//
+// Copyright (c) 2018-2025 Apple Inc. and the Swift Distributed Actors project authors
+// Licensed under Apache License v2.0
+//
+// See LICENSE.txt for license information
+// See CONTRIBUTORS.txt for the list of Swift Distributed Actors project authors
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+//===----------------------------------------------------------------------===//
+
+import Foundation
+
+// FIXME: Fix with proper serialisation
+public struct TemporarySerialization: Sendable {

this should be able to be pretty simple in the end; originally we were ready to mix serialization mechanisms but that isn't a thing anymore really with SerializationRequirement

ktoso ktoso commented on code on Oct 16, 2025 22:41 UTC
Code Review
Sources/NewDistributedCluster/ActorID.swift:1
@@ -0,0 +1,36 @@
+//===----------------------------------------------------------------------===//
+//
+// This source file is part of the Swift Distributed Actors open source project
+//
+// Copyright (c) 2018-2025 Apple Inc. and the Swift Distributed Actors project authors
+// Licensed under Apache License v2.0
+//
+// See LICENSE.txt for license information
+// See CONTRIBUTORS.txt for the list of Swift Distributed Actors project authors
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+//===----------------------------------------------------------------------===//
+
+import Foundation
+
+// ==== ----------------------------------------------------------------------------------------------------------------
+extension ClusterSystem {
+    public struct ActorID: Hashable, Sendable {
+        /// The unique node on which the actor identified by this identity is located.
+        public let node: Cluster.Node
+        public let id: String
+
+        public init(
+            node: Cluster.Node,
+            id: String
+        ) {
+            self.node = node
+            self.id = id
+            traceLog_DeathWatch("Made ID: \(self)")
+        }
+    }
+}
+
+// TODO: Needed for actorid now, refactor or remove when adding serialization
+extension ClusterSystem.ActorID: Codable {}

that's pretty expected, keep is ok

akbashev akbashev commented on code on Oct 17, 2025 11:07 UTC
Code Review
Sources/NewDistributedCluster/ActorID.swift:1
@@ -0,0 +1,36 @@
+//===----------------------------------------------------------------------===//
+//
+// This source file is part of the Swift Distributed Actors open source project
+//
+// Copyright (c) 2018-2025 Apple Inc. and the Swift Distributed Actors project authors
+// Licensed under Apache License v2.0
+//
+// See LICENSE.txt for license information
+// See CONTRIBUTORS.txt for the list of Swift Distributed Actors project authors
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+//===----------------------------------------------------------------------===//
+
+import Foundation
+
+// ==== ----------------------------------------------------------------------------------------------------------------
+extension ClusterSystem {
+    public struct ActorID: Hashable, Sendable {
+        /// The unique node on which the actor identified by this identity is located.
+        public let node: Cluster.Node
+        public let id: String
+
+        public init(
+            node: Cluster.Node,
+            id: String
+        ) {
+            self.node = node
+            self.id = id
+            traceLog_DeathWatch("Made ID: \(self)")
+        }
+    }
+}
+
+// TODO: Needed for actorid now, refactor or remove when adding serialization
+extension ClusterSystem.ActorID: Codable {}

Yeah, put this comment at the very beginning of refactoring, should be just codable.

akbashev akbashev commented on code on Oct 17, 2025 11:09 UTC
Code Review
Sources/NewDistributedCluster/Serialization/TemporarySerialization.swift:1
@@ -0,0 +1,35 @@
+//===----------------------------------------------------------------------===//
+//
+// This source file is part of the Swift Distributed Actors open source project
+//
+// Copyright (c) 2018-2025 Apple Inc. and the Swift Distributed Actors project authors
+// Licensed under Apache License v2.0
+//
+// See LICENSE.txt for license information
+// See CONTRIBUTORS.txt for the list of Swift Distributed Actors project authors
+//
+// SPDX-License-Identifier: Apache-2.0
+//
+//===----------------------------------------------------------------------===//
+
+import Foundation
+
+// FIXME: Fix with proper serialisation
+public struct TemporarySerialization: Sendable {

Yup, old Serialization has a lot of stuff which we don't need anymore, I guess. I want to return to this later, that's why put FIXME. But guess will do it in the end and check even something needed, as simple json encoder/decoder will work for now.

Reviewers
Assignees
akbashev akbashev
Labels
risk: low confidence: 84.9% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 78.5% (HIGH) · Higher = larger blast radius
78.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 84.9% · Lower = rushed or shallow review
84.9%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 11.8% · Safe to merge
11.8%