Public report of Tochemey/goakt, published 21 October 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.10.5). Watchdog signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 21 October 2026, 21:20 UTC · Survey ID cd_fa215ac1033d465f9cf9dd7b17973059
Tochemey/goakt
Measured 21 October 2026, 21:14 UTC, at code version 5c65680
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
Down 11 since the last survey
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A large codebase: 108,881 lines of product code in 2 projects, tests not counted · Estimated rebuild effort: about 2.0 person-years · Weakest lens: Maturity, 49
Findings by how serious they are
50 critical531 serious114 minor
16 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
21 October 2026, 21:14 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds Watchdog. It is open to any tool that
implements it, and today Watchdog is the only one that does.
The score is deterministic, which means the same code always gets the same score. Watchdog works it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
60of 64 dimensions measured by tools. The other 4 are advisory notes from an AI model, which explain the code but don't count towards the score.
684of 695 findings point to an exact file and line, so you can open each one in the code. The other 11 concern the repository as a whole, such as missing documentation.
64dimensions across 6 lenses, read from 108,881 lines of product code in 2 projects.
Tochemey/goakt scores 63 out of 100 and is rated Adequate, while five of its six lenses score higher still: Architecture at 90 and Security and Compliance at 69, both rated Adequate, and Code Health at 84, Production Readiness at 82 and Performance at 80, all rated Strong.
The score is lower than those five because the weakest lens counts most, and here that is Maturity, which scores 49 and is rated Weak. Its Documentation accuracy dimension scores 0 out of 10, and until that reaches 4, Maturity can't be rated higher than Adequate. The first actions are to reconcile the README with reality: README.md links to `./architecture/`, but `architecture` does not exist; docs/actor/actor-model.mdx links to `/actor/messaging`, but `actor/messaging` does not exist; docs/actor/actor-model.mdx links to `/actor/behaviors`, but `actor/behaviors` does not exist; docs/actor/actor-model.mdx links to `/actor/actor-system`, but `actor/actor-system` does not exist; docs/actor/actor-model.mdx links to `/actor/lifecycle`, but `actor/lifecycle` does not exist and to record your significant design decisions, and if Maturity rose to 70, the score would rise from 63 to about 73.
50 findings are critical: 44 in Static Analysis (SAST), five in IaC & Container Security and one in Change Coupling.
Watchdog couldn't measure 15 dimensions in this code, among them Code Coverage, Internal API Consistency and Navigability, so they are left out of the score. The product code is 108,881 lines, which would take an estimated 2.0 person-years, around €290,000, to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Watchdog compares every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.
Fixed since the last survey: 15 findings
These 15 critical or serious findings were in the previous survey, on 6 October 2026, and are gone from this one.
Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) playground/issue-1407/main.go
Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) playground/issue-1407/main.go
Exception handling · Swallowed exception (caught, then discarded) internal/cluster/cluster.go
Exception handling · Swallowed exception (caught, then discarded) playground/issue-1296/cluster/main.go
Exception handling · Swallowed exception (caught, then discarded) playground/issue-1301/main.go
Exception handling · Swallowed exception (caught, then discarded) playground/issue-1340/main.go
Exception handling · Swallowed exception (caught, then discarded) playground/issue-1340/main.go
Exception handling · Swallowed exception (caught, then discarded) playground/issue-1377/main.go
Exception handling · Swallowed exception (caught, then discarded) playground/issue-1413/main.go
Exception handling · Swallowed exception (caught, then discarded) playground/issue-1415/main.go
Exception handling · Swallowed exception (caught, then discarded) stream/stage_source.go
Rebuild cost: about €290,000 · Estimate
Cost to rebuild
€96,000 to €480,000, for 1,599 to 5,073 hours of work, about 2.0 person-years for 1 to 4 engineers
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.9 at a score of 63. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Large: 108,881 lines of product code
How the estimate is made: Watchdog prices the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Reconcile the README with reality: README.md links to `./architecture/`, but `architecture` does not exist; docs/actor/actor-model.mdx links to `/actor/messaging`, but `actor/messaging` does not exist; docs/actor/actor-model.mdx links to `/actor/behaviors`, but `actor/behaviors` does not exist; docs/actor/actor-model.mdx links to `/actor/actor-system`, but `actor/actor-system` does not exist; docs/actor/actor-model.mdx links to `/actor/lifecycle`, but `actor/lifecycle` does not exist.
Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
Where the investment is most exposed · Value at risk
This code would cost about €290,000 to build again, about 2.0 person-years of work. Its weakest lens is Maturity, at 49 (Weak). Maturity is about how well the project explains and looks after itself, which decides whether a new developer, or a new supplier, can take over. Because the weakest lens counts most in the score, work on Maturity also moves the score most.
Based on: the rebuild estimate · the Maturity grade · how much each lens counts
What to do: Start with the Maturity actions in Top priorities.
If you do one thing first · First action
Reconcile the README with reality: README.md links to `./architecture/`, but `architecture` does not exist; docs/actor/actor-model.mdx links to `/actor/messaging`, but `actor/messaging` does not exist; docs/actor/actor-model.mdx links to `/actor/behaviors`, but `actor/behaviors` does not exist; docs/actor/actor-model.mdx links to `/actor/actor-system`, but `actor/actor-system` does not exist; docs/actor/actor-model.mdx links to `/actor/lifecycle`, but `actor/lifecycle` does not exist. Of all the actions in this report, it raises the score most for the work it takes: about 11 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
127 modules, with 192 dependencies between them. One loop runs through 3 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 87 more are left out to keep it readable.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
com/tochemey/goakt/v4/breaker uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/breaker, while a change to com/tochemey/goakt/v4/breaker can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/breaker uses a module listed above it, which is the healthy direction.
12→34 com/tochemey/goakt/v4/crdt uses com/tochemey/goakt/v4/actorpart of a loop✕
Connections
5 pairs of types, where a type in com/tochemey/goakt/v4/crdt uses a type in com/tochemey/goakt/v4/actor.
com/tochemey/goakt/v4/crdt uses com/tochemey/goakt/v4/actor, so a change to com/tochemey/goakt/v4/actor can break com/tochemey/goakt/v4/crdt, while a change to com/tochemey/goakt/v4/crdt can't break com/tochemey/goakt/v4/actor.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
com/tochemey/goakt/v4/datacenter uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/datacenter, while a change to com/tochemey/goakt/v4/datacenter can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/datacenter uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/datacenter uses com/tochemey/goakt/v4/log, so a change to com/tochemey/goakt/v4/log can break com/tochemey/goakt/v4/datacenter, while a change to com/tochemey/goakt/v4/datacenter can't break com/tochemey/goakt/v4/log.
Position
Below the diagonal: com/tochemey/goakt/v4/datacenter uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/discovery/consul uses com/tochemey/goakt/v4/discovery, so a change to com/tochemey/goakt/v4/discovery can break com/tochemey/goakt/v4/discovery/consul, while a change to com/tochemey/goakt/v4/discovery/consul can't break com/tochemey/goakt/v4/discovery.
Position
Below the diagonal: com/tochemey/goakt/v4/discovery/consul uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/discovery/consul uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/discovery/consul, while a change to com/tochemey/goakt/v4/discovery/consul can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/discovery/consul uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/discovery/etcd uses com/tochemey/goakt/v4/discovery, so a change to com/tochemey/goakt/v4/discovery can break com/tochemey/goakt/v4/discovery/etcd, while a change to com/tochemey/goakt/v4/discovery/etcd can't break com/tochemey/goakt/v4/discovery.
Position
Below the diagonal: com/tochemey/goakt/v4/discovery/etcd uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/discovery/etcd uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/discovery/etcd, while a change to com/tochemey/goakt/v4/discovery/etcd can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/discovery/etcd uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/discovery/mdns uses com/tochemey/goakt/v4/discovery, so a change to com/tochemey/goakt/v4/discovery can break com/tochemey/goakt/v4/discovery/mdns, while a change to com/tochemey/goakt/v4/discovery/mdns can't break com/tochemey/goakt/v4/discovery.
Position
Below the diagonal: com/tochemey/goakt/v4/discovery/mdns uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/discovery/mdns uses com/tochemey/goakt/v4/log, so a change to com/tochemey/goakt/v4/log can break com/tochemey/goakt/v4/discovery/mdns, while a change to com/tochemey/goakt/v4/discovery/mdns can't break com/tochemey/goakt/v4/log.
Position
Below the diagonal: com/tochemey/goakt/v4/discovery/mdns uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/discovery/nats uses com/tochemey/goakt/v4/discovery, so a change to com/tochemey/goakt/v4/discovery can break com/tochemey/goakt/v4/discovery/nats, while a change to com/tochemey/goakt/v4/discovery/nats can't break com/tochemey/goakt/v4/discovery.
Position
Below the diagonal: com/tochemey/goakt/v4/discovery/nats uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/discovery/nats uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/discovery/nats, while a change to com/tochemey/goakt/v4/discovery/nats can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/discovery/nats uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/discovery/nats uses com/tochemey/goakt/v4/log, so a change to com/tochemey/goakt/v4/log can break com/tochemey/goakt/v4/discovery/nats, while a change to com/tochemey/goakt/v4/discovery/nats can't break com/tochemey/goakt/v4/log.
Position
Below the diagonal: com/tochemey/goakt/v4/discovery/nats uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/address uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/internal/address, while a change to com/tochemey/goakt/v4/internal/address can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/address uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/address uses com/tochemey/goakt/v4/passivation, so a change to com/tochemey/goakt/v4/passivation can break com/tochemey/goakt/v4/internal/address, while a change to com/tochemey/goakt/v4/internal/address can't break com/tochemey/goakt/v4/passivation.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/address uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/types uses com/tochemey/goakt/v4/internal/xsync, so a change to com/tochemey/goakt/v4/internal/xsync can break com/tochemey/goakt/v4/internal/types, while a change to com/tochemey/goakt/v4/internal/types can't break com/tochemey/goakt/v4/internal/xsync.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/types uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/reentrancy uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/reentrancy, while a change to com/tochemey/goakt/v4/reentrancy can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/reentrancy uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/supervisor uses com/tochemey/goakt/v4/internal/xsync, so a change to com/tochemey/goakt/v4/internal/xsync can break com/tochemey/goakt/v4/supervisor, while a change to com/tochemey/goakt/v4/supervisor can't break com/tochemey/goakt/v4/internal/xsync.
Position
Below the diagonal: com/tochemey/goakt/v4/supervisor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/datacenter/controlplane/etcd uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/datacenter/controlplane/etcd, while a change to com/tochemey/goakt/v4/datacenter/controlplane/etcd can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/datacenter/controlplane/etcd uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/datacenter/controlplane/etcd uses com/tochemey/goakt/v4/datacenter, so a change to com/tochemey/goakt/v4/datacenter can break com/tochemey/goakt/v4/datacenter/controlplane/etcd, while a change to com/tochemey/goakt/v4/datacenter/controlplane/etcd can't break com/tochemey/goakt/v4/datacenter.
Position
Below the diagonal: com/tochemey/goakt/v4/datacenter/controlplane/etcd uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/datacenter/controlplane/nats uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/datacenter/controlplane/nats, while a change to com/tochemey/goakt/v4/datacenter/controlplane/nats can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/datacenter/controlplane/nats uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/datacenter/controlplane/nats uses com/tochemey/goakt/v4/datacenter, so a change to com/tochemey/goakt/v4/datacenter can break com/tochemey/goakt/v4/datacenter/controlplane/nats, while a change to com/tochemey/goakt/v4/datacenter/controlplane/nats can't break com/tochemey/goakt/v4/datacenter.
Position
Below the diagonal: com/tochemey/goakt/v4/datacenter/controlplane/nats uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/datacentercontroller uses com/tochemey/goakt/v4/log, so a change to com/tochemey/goakt/v4/log can break com/tochemey/goakt/v4/internal/datacentercontroller, while a change to com/tochemey/goakt/v4/internal/datacentercontroller can't break com/tochemey/goakt/v4/log.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/datacentercontroller uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/datacentercontroller uses com/tochemey/goakt/v4/datacenter, so a change to com/tochemey/goakt/v4/datacenter can break com/tochemey/goakt/v4/internal/datacentercontroller, while a change to com/tochemey/goakt/v4/internal/datacentercontroller can't break com/tochemey/goakt/v4/datacenter.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/datacentercontroller uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/net uses com/tochemey/goakt/v4/internal/xsync, so a change to com/tochemey/goakt/v4/internal/xsync can break com/tochemey/goakt/v4/internal/net, while a change to com/tochemey/goakt/v4/internal/net can't break com/tochemey/goakt/v4/internal/xsync.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/net uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/net uses com/tochemey/goakt/v4/internal/types, so a change to com/tochemey/goakt/v4/internal/types can break com/tochemey/goakt/v4/internal/net, while a change to com/tochemey/goakt/v4/internal/net can't break com/tochemey/goakt/v4/internal/types.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/net uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/remote uses com/tochemey/goakt/v4/extension, so a change to com/tochemey/goakt/v4/extension can break com/tochemey/goakt/v4/remote, while a change to com/tochemey/goakt/v4/remote can't break com/tochemey/goakt/v4/extension.
Position
Below the diagonal: com/tochemey/goakt/v4/remote uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/remote uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/remote, while a change to com/tochemey/goakt/v4/remote can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/remote uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/remote uses com/tochemey/goakt/v4/passivation, so a change to com/tochemey/goakt/v4/passivation can break com/tochemey/goakt/v4/remote, while a change to com/tochemey/goakt/v4/remote can't break com/tochemey/goakt/v4/passivation.
Position
Below the diagonal: com/tochemey/goakt/v4/remote uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/remote uses com/tochemey/goakt/v4/tls, so a change to com/tochemey/goakt/v4/tls can break com/tochemey/goakt/v4/remote, while a change to com/tochemey/goakt/v4/remote can't break com/tochemey/goakt/v4/tls.
Position
Below the diagonal: com/tochemey/goakt/v4/remote uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/remote uses com/tochemey/goakt/v4/internal/types, so a change to com/tochemey/goakt/v4/internal/types can break com/tochemey/goakt/v4/remote, while a change to com/tochemey/goakt/v4/remote can't break com/tochemey/goakt/v4/internal/types.
Position
Below the diagonal: com/tochemey/goakt/v4/remote uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/remote uses com/tochemey/goakt/v4/reentrancy, so a change to com/tochemey/goakt/v4/reentrancy can break com/tochemey/goakt/v4/remote, while a change to com/tochemey/goakt/v4/remote can't break com/tochemey/goakt/v4/reentrancy.
Position
Below the diagonal: com/tochemey/goakt/v4/remote uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/remote uses com/tochemey/goakt/v4/supervisor, so a change to com/tochemey/goakt/v4/supervisor can break com/tochemey/goakt/v4/remote, while a change to com/tochemey/goakt/v4/remote can't break com/tochemey/goakt/v4/supervisor.
Position
Below the diagonal: com/tochemey/goakt/v4/remote uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/cluster uses com/tochemey/goakt/v4/discovery, so a change to com/tochemey/goakt/v4/discovery can break com/tochemey/goakt/v4/internal/cluster, while a change to com/tochemey/goakt/v4/internal/cluster can't break com/tochemey/goakt/v4/discovery.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/cluster uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/cluster uses com/tochemey/goakt/v4/hash, so a change to com/tochemey/goakt/v4/hash can break com/tochemey/goakt/v4/internal/cluster, while a change to com/tochemey/goakt/v4/internal/cluster can't break com/tochemey/goakt/v4/hash.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/cluster uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/cluster uses com/tochemey/goakt/v4/log, so a change to com/tochemey/goakt/v4/log can break com/tochemey/goakt/v4/internal/cluster, while a change to com/tochemey/goakt/v4/internal/cluster can't break com/tochemey/goakt/v4/log.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/cluster uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/cluster uses com/tochemey/goakt/v4/tls, so a change to com/tochemey/goakt/v4/tls can break com/tochemey/goakt/v4/internal/cluster, while a change to com/tochemey/goakt/v4/internal/cluster can't break com/tochemey/goakt/v4/tls.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/cluster uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/cluster uses com/tochemey/goakt/v4/remote, so a change to com/tochemey/goakt/v4/remote can break com/tochemey/goakt/v4/internal/cluster, while a change to com/tochemey/goakt/v4/internal/cluster can't break com/tochemey/goakt/v4/remote.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/cluster uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/codec uses com/tochemey/goakt/v4/extension, so a change to com/tochemey/goakt/v4/extension can break com/tochemey/goakt/v4/internal/codec, while a change to com/tochemey/goakt/v4/internal/codec can't break com/tochemey/goakt/v4/extension.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/codec uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/codec uses com/tochemey/goakt/v4/passivation, so a change to com/tochemey/goakt/v4/passivation can break com/tochemey/goakt/v4/internal/codec, while a change to com/tochemey/goakt/v4/internal/codec can't break com/tochemey/goakt/v4/passivation.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/codec uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/codec uses com/tochemey/goakt/v4/crdt, so a change to com/tochemey/goakt/v4/crdt can break com/tochemey/goakt/v4/internal/codec, while a change to com/tochemey/goakt/v4/internal/codec can't break com/tochemey/goakt/v4/crdt.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/codec uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/codec uses com/tochemey/goakt/v4/datacenter, so a change to com/tochemey/goakt/v4/datacenter can break com/tochemey/goakt/v4/internal/codec, while a change to com/tochemey/goakt/v4/internal/codec can't break com/tochemey/goakt/v4/datacenter.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/codec uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/codec uses com/tochemey/goakt/v4/internal/types, so a change to com/tochemey/goakt/v4/internal/types can break com/tochemey/goakt/v4/internal/codec, while a change to com/tochemey/goakt/v4/internal/codec can't break com/tochemey/goakt/v4/internal/types.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/codec uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/codec uses com/tochemey/goakt/v4/reentrancy, so a change to com/tochemey/goakt/v4/reentrancy can break com/tochemey/goakt/v4/internal/codec, while a change to com/tochemey/goakt/v4/internal/codec can't break com/tochemey/goakt/v4/reentrancy.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/codec uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/codec uses com/tochemey/goakt/v4/supervisor, so a change to com/tochemey/goakt/v4/supervisor can break com/tochemey/goakt/v4/internal/codec, while a change to com/tochemey/goakt/v4/internal/codec can't break com/tochemey/goakt/v4/supervisor.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/codec uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/codec uses com/tochemey/goakt/v4/remote, so a change to com/tochemey/goakt/v4/remote can break com/tochemey/goakt/v4/internal/codec, while a change to com/tochemey/goakt/v4/internal/codec can't break com/tochemey/goakt/v4/remote.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/codec uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/commands uses com/tochemey/goakt/v4/internal/address, so a change to com/tochemey/goakt/v4/internal/address can break com/tochemey/goakt/v4/internal/commands, while a change to com/tochemey/goakt/v4/internal/commands can't break com/tochemey/goakt/v4/internal/address.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/commands uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/commands uses com/tochemey/goakt/v4/supervisor, so a change to com/tochemey/goakt/v4/supervisor can break com/tochemey/goakt/v4/internal/commands, while a change to com/tochemey/goakt/v4/internal/commands can't break com/tochemey/goakt/v4/supervisor.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/commands uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/commands uses com/tochemey/goakt/v4/remote, so a change to com/tochemey/goakt/v4/remote can break com/tochemey/goakt/v4/internal/commands, while a change to com/tochemey/goakt/v4/internal/commands can't break com/tochemey/goakt/v4/remote.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/commands uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/ddata uses com/tochemey/goakt/v4/crdt, so a change to com/tochemey/goakt/v4/crdt can break com/tochemey/goakt/v4/internal/ddata, while a change to com/tochemey/goakt/v4/internal/ddata can't break com/tochemey/goakt/v4/crdt.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/ddata uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/ddata uses com/tochemey/goakt/v4/remote, so a change to com/tochemey/goakt/v4/remote can break com/tochemey/goakt/v4/internal/ddata, while a change to com/tochemey/goakt/v4/internal/ddata can't break com/tochemey/goakt/v4/remote.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/ddata uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/remoteclient uses com/tochemey/goakt/v4/extension, so a change to com/tochemey/goakt/v4/extension can break com/tochemey/goakt/v4/internal/remoteclient, while a change to com/tochemey/goakt/v4/internal/remoteclient can't break com/tochemey/goakt/v4/extension.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/remoteclient uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/remoteclient uses com/tochemey/goakt/v4/internal/xsync, so a change to com/tochemey/goakt/v4/internal/xsync can break com/tochemey/goakt/v4/internal/remoteclient, while a change to com/tochemey/goakt/v4/internal/remoteclient can't break com/tochemey/goakt/v4/internal/xsync.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/remoteclient uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/remoteclient uses com/tochemey/goakt/v4/passivation, so a change to com/tochemey/goakt/v4/passivation can break com/tochemey/goakt/v4/internal/remoteclient, while a change to com/tochemey/goakt/v4/internal/remoteclient can't break com/tochemey/goakt/v4/passivation.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/remoteclient uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/remoteclient uses com/tochemey/goakt/v4/internal/address, so a change to com/tochemey/goakt/v4/internal/address can break com/tochemey/goakt/v4/internal/remoteclient, while a change to com/tochemey/goakt/v4/internal/remoteclient can't break com/tochemey/goakt/v4/internal/address.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/remoteclient uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/remoteclient uses com/tochemey/goakt/v4/internal/types, so a change to com/tochemey/goakt/v4/internal/types can break com/tochemey/goakt/v4/internal/remoteclient, while a change to com/tochemey/goakt/v4/internal/remoteclient can't break com/tochemey/goakt/v4/internal/types.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/remoteclient uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/remoteclient uses com/tochemey/goakt/v4/internal/net, so a change to com/tochemey/goakt/v4/internal/net can break com/tochemey/goakt/v4/internal/remoteclient, while a change to com/tochemey/goakt/v4/internal/remoteclient can't break com/tochemey/goakt/v4/internal/net.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/remoteclient uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/remoteclient uses com/tochemey/goakt/v4/remote, so a change to com/tochemey/goakt/v4/remote can break com/tochemey/goakt/v4/internal/remoteclient, while a change to com/tochemey/goakt/v4/internal/remoteclient can't break com/tochemey/goakt/v4/remote.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/remoteclient uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/client uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/client, while a change to com/tochemey/goakt/v4/client can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/client uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/client uses com/tochemey/goakt/v4/internal/types, so a change to com/tochemey/goakt/v4/internal/types can break com/tochemey/goakt/v4/client, while a change to com/tochemey/goakt/v4/client can't break com/tochemey/goakt/v4/internal/types.
Position
Below the diagonal: com/tochemey/goakt/v4/client uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/client uses com/tochemey/goakt/v4/remote, so a change to com/tochemey/goakt/v4/remote can break com/tochemey/goakt/v4/client, while a change to com/tochemey/goakt/v4/client can't break com/tochemey/goakt/v4/remote.
Position
Below the diagonal: com/tochemey/goakt/v4/client uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/client uses com/tochemey/goakt/v4/internal/remoteclient, so a change to com/tochemey/goakt/v4/internal/remoteclient can break com/tochemey/goakt/v4/client, while a change to com/tochemey/goakt/v4/client can't break com/tochemey/goakt/v4/internal/remoteclient.
Position
Below the diagonal: com/tochemey/goakt/v4/client uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/pendingasks uses com/tochemey/goakt/v4/internal/xsync, so a change to com/tochemey/goakt/v4/internal/xsync can break com/tochemey/goakt/v4/internal/pendingasks, while a change to com/tochemey/goakt/v4/internal/pendingasks can't break com/tochemey/goakt/v4/internal/xsync.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/pendingasks uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/internal/pendingasks uses com/tochemey/goakt/v4/internal/commands, so a change to com/tochemey/goakt/v4/internal/commands can break com/tochemey/goakt/v4/internal/pendingasks, while a change to com/tochemey/goakt/v4/internal/pendingasks can't break com/tochemey/goakt/v4/internal/commands.
Position
Below the diagonal: com/tochemey/goakt/v4/internal/pendingasks uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/discovery, so a change to com/tochemey/goakt/v4/discovery can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/discovery.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/eventstream, so a change to com/tochemey/goakt/v4/eventstream can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/eventstream.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/extension, so a change to com/tochemey/goakt/v4/extension can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/extension.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/hash, so a change to com/tochemey/goakt/v4/hash can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/hash.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/timer, so a change to com/tochemey/goakt/v4/internal/timer can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/timer.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/validation, so a change to com/tochemey/goakt/v4/internal/validation can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/validation.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/xsync, so a change to com/tochemey/goakt/v4/internal/xsync can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/xsync.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/log, so a change to com/tochemey/goakt/v4/log can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/log.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/passivation, so a change to com/tochemey/goakt/v4/passivation can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/passivation.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/tls, so a change to com/tochemey/goakt/v4/tls can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/tls.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/breaker, so a change to com/tochemey/goakt/v4/breaker can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/breaker.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/crdt, so a change to com/tochemey/goakt/v4/crdt can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/crdt.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/datacenter, so a change to com/tochemey/goakt/v4/datacenter can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/datacenter.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/address, so a change to com/tochemey/goakt/v4/internal/address can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/address.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/types, so a change to com/tochemey/goakt/v4/internal/types can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/types.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/reentrancy, so a change to com/tochemey/goakt/v4/reentrancy can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/reentrancy.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/supervisor, so a change to com/tochemey/goakt/v4/supervisor can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/supervisor.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/datacentercontroller, so a change to com/tochemey/goakt/v4/internal/datacentercontroller can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/datacentercontroller.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/net, so a change to com/tochemey/goakt/v4/internal/net can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/net.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/remote, so a change to com/tochemey/goakt/v4/remote can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/remote.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/cluster, so a change to com/tochemey/goakt/v4/internal/cluster can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/cluster.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/commands, so a change to com/tochemey/goakt/v4/internal/commands can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/commands.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/ddata, so a change to com/tochemey/goakt/v4/internal/ddata can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/ddata.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/remoteclient, so a change to com/tochemey/goakt/v4/internal/remoteclient can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/remoteclient.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/actor uses com/tochemey/goakt/v4/internal/pendingasks, so a change to com/tochemey/goakt/v4/internal/pendingasks can break com/tochemey/goakt/v4/actor, while a change to com/tochemey/goakt/v4/actor can't break com/tochemey/goakt/v4/internal/pendingasks.
Position
Below the diagonal: com/tochemey/goakt/v4/actor uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1260 uses com/tochemey/goakt/v4/eventstream, so a change to com/tochemey/goakt/v4/eventstream can break com/tochemey/goakt/v4/playground/issue-1260, while a change to com/tochemey/goakt/v4/playground/issue-1260 can't break com/tochemey/goakt/v4/eventstream.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1260 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1260 uses com/tochemey/goakt/v4/log, so a change to com/tochemey/goakt/v4/log can break com/tochemey/goakt/v4/playground/issue-1260, while a change to com/tochemey/goakt/v4/playground/issue-1260 can't break com/tochemey/goakt/v4/log.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1260 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1260 uses com/tochemey/goakt/v4/actor, so a change to com/tochemey/goakt/v4/actor can break com/tochemey/goakt/v4/playground/issue-1260, while a change to com/tochemey/goakt/v4/playground/issue-1260 can't break com/tochemey/goakt/v4/actor.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1260 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1340 uses com/tochemey/goakt/v4/eventstream, so a change to com/tochemey/goakt/v4/eventstream can break com/tochemey/goakt/v4/playground/issue-1340, while a change to com/tochemey/goakt/v4/playground/issue-1340 can't break com/tochemey/goakt/v4/eventstream.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1340 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1340 uses com/tochemey/goakt/v4/log, so a change to com/tochemey/goakt/v4/log can break com/tochemey/goakt/v4/playground/issue-1340, while a change to com/tochemey/goakt/v4/playground/issue-1340 can't break com/tochemey/goakt/v4/log.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1340 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1340 uses com/tochemey/goakt/v4/internal/cluster, so a change to com/tochemey/goakt/v4/internal/cluster can break com/tochemey/goakt/v4/playground/issue-1340, while a change to com/tochemey/goakt/v4/playground/issue-1340 can't break com/tochemey/goakt/v4/internal/cluster.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1340 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1340 uses com/tochemey/goakt/v4/actor, so a change to com/tochemey/goakt/v4/actor can break com/tochemey/goakt/v4/playground/issue-1340, while a change to com/tochemey/goakt/v4/playground/issue-1340 can't break com/tochemey/goakt/v4/actor.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1340 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1444 uses com/tochemey/goakt/v4/log, so a change to com/tochemey/goakt/v4/log can break com/tochemey/goakt/v4/playground/issue-1444, while a change to com/tochemey/goakt/v4/playground/issue-1444 can't break com/tochemey/goakt/v4/log.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1444 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1444 uses com/tochemey/goakt/v4/internal/types, so a change to com/tochemey/goakt/v4/internal/types can break com/tochemey/goakt/v4/playground/issue-1444, while a change to com/tochemey/goakt/v4/playground/issue-1444 can't break com/tochemey/goakt/v4/internal/types.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1444 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1444 uses com/tochemey/goakt/v4/actor, so a change to com/tochemey/goakt/v4/actor can break com/tochemey/goakt/v4/playground/issue-1444, while a change to com/tochemey/goakt/v4/playground/issue-1444 can't break com/tochemey/goakt/v4/actor.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1444 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1453 uses com/tochemey/goakt/v4/internal/address, so a change to com/tochemey/goakt/v4/internal/address can break com/tochemey/goakt/v4/playground/issue-1453, while a change to com/tochemey/goakt/v4/playground/issue-1453 can't break com/tochemey/goakt/v4/internal/address.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1453 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1453 uses com/tochemey/goakt/v4/internal/remoteclient, so a change to com/tochemey/goakt/v4/internal/remoteclient can break com/tochemey/goakt/v4/playground/issue-1453, while a change to com/tochemey/goakt/v4/playground/issue-1453 can't break com/tochemey/goakt/v4/internal/remoteclient.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1453 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/playground/issue-1453 uses com/tochemey/goakt/v4/actor, so a change to com/tochemey/goakt/v4/actor can break com/tochemey/goakt/v4/playground/issue-1453, while a change to com/tochemey/goakt/v4/playground/issue-1453 can't break com/tochemey/goakt/v4/actor.
Position
Below the diagonal: com/tochemey/goakt/v4/playground/issue-1453 uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/stream uses com/tochemey/goakt/v4/internal/types, so a change to com/tochemey/goakt/v4/internal/types can break com/tochemey/goakt/v4/stream, while a change to com/tochemey/goakt/v4/stream can't break com/tochemey/goakt/v4/internal/types.
Position
Below the diagonal: com/tochemey/goakt/v4/stream uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/stream uses com/tochemey/goakt/v4/remote, so a change to com/tochemey/goakt/v4/remote can break com/tochemey/goakt/v4/stream, while a change to com/tochemey/goakt/v4/stream can't break com/tochemey/goakt/v4/remote.
Position
Below the diagonal: com/tochemey/goakt/v4/stream uses a module listed above it, which is the healthy direction.
181 pairs of types, where a type in com/tochemey/goakt/v4/stream uses a type in com/tochemey/goakt/v4/actor. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
com/tochemey/goakt/v4/stream uses com/tochemey/goakt/v4/actor, so a change to com/tochemey/goakt/v4/actor can break com/tochemey/goakt/v4/stream, while a change to com/tochemey/goakt/v4/stream can't break com/tochemey/goakt/v4/actor.
Position
Below the diagonal: com/tochemey/goakt/v4/stream uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/testkit uses com/tochemey/goakt/v4/discovery, so a change to com/tochemey/goakt/v4/discovery can break com/tochemey/goakt/v4/testkit, while a change to com/tochemey/goakt/v4/testkit can't break com/tochemey/goakt/v4/discovery.
Position
Below the diagonal: com/tochemey/goakt/v4/testkit uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/testkit uses com/tochemey/goakt/v4/eventstream, so a change to com/tochemey/goakt/v4/eventstream can break com/tochemey/goakt/v4/testkit, while a change to com/tochemey/goakt/v4/testkit can't break com/tochemey/goakt/v4/eventstream.
Position
Below the diagonal: com/tochemey/goakt/v4/testkit uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/testkit uses com/tochemey/goakt/v4/extension, so a change to com/tochemey/goakt/v4/extension can break com/tochemey/goakt/v4/testkit, while a change to com/tochemey/goakt/v4/testkit can't break com/tochemey/goakt/v4/extension.
Position
Below the diagonal: com/tochemey/goakt/v4/testkit uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/testkit uses com/tochemey/goakt/v4/internal/timer, so a change to com/tochemey/goakt/v4/internal/timer can break com/tochemey/goakt/v4/testkit, while a change to com/tochemey/goakt/v4/testkit can't break com/tochemey/goakt/v4/internal/timer.
Position
Below the diagonal: com/tochemey/goakt/v4/testkit uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/testkit uses com/tochemey/goakt/v4/internal/xsync, so a change to com/tochemey/goakt/v4/internal/xsync can break com/tochemey/goakt/v4/testkit, while a change to com/tochemey/goakt/v4/testkit can't break com/tochemey/goakt/v4/internal/xsync.
Position
Below the diagonal: com/tochemey/goakt/v4/testkit uses a module listed above it, which is the healthy direction.
com/tochemey/goakt/v4/testkit uses com/tochemey/goakt/v4/log, so a change to com/tochemey/goakt/v4/log can break com/tochemey/goakt/v4/testkit, while a change to com/tochemey/goakt/v4/testkit can't break com/tochemey/goakt/v4/log.
Position
Below the diagonal: com/tochemey/goakt/v4/testkit uses a module listed above it, which is the healthy direction.
27 pairs of types, where a type in com/tochemey/goakt/v4/testkit uses a type in com/tochemey/goakt/v4/actor. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
com/tochemey/goakt/v4/testkit uses com/tochemey/goakt/v4/actor, so a change to com/tochemey/goakt/v4/actor can break com/tochemey/goakt/v4/testkit, while a change to com/tochemey/goakt/v4/testkit can't break com/tochemey/goakt/v4/actor.
Position
Below the diagonal: com/tochemey/goakt/v4/testkit uses a module listed above it, which is the healthy direction.
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A05:2025 — Injection
95
High / Critical
A02:2025 — Security Misconfiguration
23
High / Critical
A03:2025 — Software Supply Chain Failures
7
Medium
Roadmap
First, reconcile the README with reality by fixing broken links and removing references to non-existent files to ensure documentation accuracy. Second, establish a dedicated folder for Architecture Decision Records to formally capture significant design choices, their dates, and consequences. Third, enhance overall documentation quality by addressing specific gaps and ensuring consistency across all guides. Fourth, add a clear Testing section to the root README explaining how to run the test suite. Finally, resolve the identified network policy finding to enforce network egress confinement.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Reconcile the README with reality: README.md links to `./architecture/`, but `architecture` does not exist; docs/actor/actor-model.mdx links to `/actor/messaging`, but `actor/messaging` does not exist; docs/actor/actor-model.mdx links to `/actor/behaviors`, but `actor/behaviors` does not exist; docs/actor/actor-model.mdx links to `/actor/actor-system`, but `actor/actor-system` does not exist; docs/actor/actor-model.mdx links to `/actor/lifecycle`, but `actor/lifecycle` does not exist.
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Per-file score 0–10 — a quality signature. Of 154 files carrying findings, judged against the Production bar: 1% slop · 59% mixed · 40% near-clean.
File
Score
Band
Worst signal
REDACTED
1.7
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
1.8
Slop
IaC & Container Security: High IaC: REDACTED
REDACTED
4.0
Mixed
Static Analysis (SAST): Medium: REDACTED
REDACTED
4.0
Mixed
Static Analysis (SAST): Medium: REDACTED
REDACTED
4.1
Mixed
IaC & Container Security: High IaC: REDACTED
REDACTED
4.1
Mixed
IaC & Container Security: High IaC: REDACTED
REDACTED
4.4
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
4.4
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
4.6
Mixed
Static Analysis (SAST): Medium: REDACTED
REDACTED
4.8
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
4.9
Mixed
Static Analysis (SAST): Medium: REDACTED
REDACTED
4.9
Mixed
Static Analysis (SAST): Medium: REDACTED
REDACTED
5.8
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
5.8
Mixed
Static Analysis (SAST): High: REDACTED
REDACTED
6.0
Mixed
Explicit Debt: TodoComment
client/client.go
6.0
Mixed
Explicit Debt: TodoComment
REDACTED
6.3
Mixed
Code Duplication: Members sharing a duplicated core (5 members, 50+ identical tokens)
REDACTED
6.5
Mixed
Code Duplication: Duplicated block (12 lines × 2)
actor/pid_test.go
6.6
Mixed
Explicit Debt: TodoComment
actor/root_guardian.go
6.7
Mixed
Explicit Debt: TodoComment
How the grades work
Every finding carries one of four grades. Three say how serious it is. The fourth says this
survey could not settle it — and it is a grade, not a gap.
Critical — 50
A definite problem that already costs you something and drags the score down: a
missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here
tends to cause failures elsewhere.
Serious — 531
Likely wrong, but not failing yet. It degrades
the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to
carry for two years either.
Minor — 114
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 16
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 60 of 64 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 64 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 684 of 695 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT READ here — but this repository measures it: a Codecov configuration (codecov.yml, target 85%) and a coverage step in CI (`codecov/codecov-action`) shows that coverage is collected and tracked in your own CI. The built-in collector has no runner for this ecosystem (.go), so the analyzer could not read the number — a gap in the analyzer's language coverage, not an unmeasured repo. Not scored. To have the real number read, produce a coverage report in a standard format (`go test -coverprofile=coverage.out ./...`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (`go test -coverprofile=coverage.out ./...`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (15 contributor(s) across 1608 commit(s) sampled, automation and bot accounts excluded). One of them holds 98% of the history; the other 14 hold 0.1% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
D22 Internal API Consistency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: it declares a published package (REDACTED), but no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
D31 IaC & Container Security — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Playground/issue-1340/Dockerfile.dockerignore carries no `FROM` instruction, so it declares no build stage and every REDACTED rule this engine owns — the runtime-hardening, key-material, mutable-clone, no-op-shim, build-context, trust-anchor, install-guard, setuid and world-writable-path rules — is outside its own premise there and returned nothing. That silence is deliberate and correct: with no base image there is no image to reason about. It is reported here because it is NOT the same fact as a clean file, and coverage is stated as 6 of 7 Infrastructure-as-Code manifest(s) fully judged rather than as 100%. The vendor scanners (trivy, checkov) do read these files and their findings above stand; only this engine's own stage-keyed rules are absent. No owner action: a build file with no FROM is a legitimate include fragment.
AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
AXR1 Runtime accessibility — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Render strategy: boot via DockerCompose (REDACTED). compose up failed (exit 18 — an image could not be pulled) — node2 Pulling node1 Pulling coredns Pulling node3 Pulling coredns Error Get "https://registry-1.docker.io/v2/": Forbidden node3 Warning context canceled node1 Warning context canceled node2 Warning context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: node1 Skipped - Image is already being pulled by node2 coredns Pulling node2 Pulling coredns Error Get "https://registry-1.docker.io/v2/": Forbidden node2 Warning Get "https://registry-1.docker.io/v2/": Forbidden WARNING: Some service image(s) must be built from source by running: docker compose build node2 Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped.
C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and this repository's Go, Python is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and this repository's Go, Python is most of its product and is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
M4 Documentation accuracy — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 116 further occurrence(s) are not listed individually; the score already reflects all 156.
S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
X3 Exception handling — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 8 further occurrence(s) are not listed individually; the score already reflects all 48.
X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP make no call through a named logger, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax and MSBuild project configuration, TypeScript source and its tsconfig files, Java source and its package and module declarations, PHP source and its PHPStan and Psalm configuration, Dart source and its pubspec language version, Ruby source and its Sorbet and Steep configuration, Scala source and its build's explicit-nulls, WartRemover and Scalafix settings, and Kotlin source only, and no C# was loaded, no TypeScript was found, and this repository's Python is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
D11 Test Reliability: Flakiness is inferred from history/markers — Watchdog runs the suite once (for coverage), not the repeated runs under varied conditions that reveal nondeterminism, so a flaky test never recorded as failing is invisible here.
D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
D40 Network Egress Confinement: Egress confinement is read from committed Kubernetes manifests — a policy applied out-of-band (cluster-default deny, a service mesh, or a cloud firewall/security group off-repo) is invisible, and a present NetworkPolicy is declared config, not proof the cluster admission-controller actually enforces it at runtime.
D41 Kernel & Syscall Confinement: Syscall/MAC confinement is read from committed manifests — a profile applied by a cluster-wide PodSecurity default or a mutating webhook off-repo isn't seen, and a declared seccomp/AppArmor profile is config presence, not proof the node's kernel actually loaded and enforced it.
D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (REDACTED, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
The LLM boundary
LLM-set scores this run (4): D19, D21, D26, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
46 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was peer.ensureLane at 27. A further 1 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being replicatorActor.handleMessage at 21 — they are counted neither in the figure above nor in this dimension's score.
+ 41 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 46 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with peer.ensureLane (cyclomatic 27), actorSystem.configPID (cyclomatic 26), actorSystem.remoteSpawnHandler (cyclomatic 26). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 46 together lifts Cyclomatic Complexity from 7.4 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 92 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 1 body over 60 down to 60 or less in Cognitive Complexity — start with WorkerPool.cleanup (cognitive 64). — Refactoring it lifts Cognitive Complexity from 6.5 to about 6.5/10.
Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes9.2 / 10Stronggated by 44 serious findings✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 15 FileTooLong finding(s) in God Classes — start with actor_system.go, REDACTED, remote_server.go. — One of this dimension's main actionable groups (15 warning-level).
Resolve the 12 TooManyMethods finding(s) in God Classes — start with actor_system.go, REDACTED, cluster.go. — One of this dimension's main actionable groups (12 warning-level).
Resolve the 10 ClassTooLong finding(s) in God Classes — start with actor_system.go, REDACTED, REDACTED. — One of this dimension's main actionable groups (10 warning-level).
Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
228 duplicated block group(s) detected. A further 14 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted.
+ 84 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 22 Duplicated block (13 lines × 2) finding(s) in Code Duplication — start with REDACTED (8), reliable_delivery_producer_controller.go (2), actor_system.go. — One of this dimension's main actionable groups (22 warning-level).
Resolve the 16 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with REDACTED (3), grain_context.go (3), scheduler.go (2). — One of this dimension's main actionable groups (16 warning-level).
Resolve the 14 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with REDACTED (4), remote_watch_registry.go (2), client.go (2). — One of this dimension's main actionable groups (14 warning-level).
Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
2 production modules (npm+Go), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 0 module(s) off the main sequence.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 3 Low cohesion finding(s) in Cohesion (LCOM4) — start with cluster_config.go, tcp_server.go, config.go. — One of this dimension's main actionable groups (3 warning-level).
Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.
Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.
3005 test methods: 3005 unit, 0 integration, 0 BDD, 0 e2e. The Go suite contributes 3005 test case(s) across 297 `_test.go` file(s) declaring at least one — every `func Test…(t *testing.T)` that `go test` would collect, plus the suite methods a testify-style runner reaches; a table-driven case list counts once, so this is a floor. Its tier split is INFERRED from file names, paths and build constraints, not declared: 12 of those file(s) use Go's external test package (`package x_test`), which is a visibility boundary rather than a pyramid tier and was not read as one.
✓ On the Gold path — maintain.
Detailed fixes: d9_recommendation.md.
Do you agree with this assessment?
D11 · Test Reliability10.0 / 10Exemplary✓ Tool-verified
What it measures: Whether the tests pass reliably, with no flakiness.
Method: Suite re-run N times within tiered wall-clock budgets (unit to e2e); tests failing non-deterministically across runs flagged; guarded tests retried when #if guards detected.
What it measures: Whether dependencies are current, secure, and not bloated.
Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.
0 outdated, 0 author-deprecated direct Go module(s), 0 pinning or checksum defect(s). Whether any of these modules is UNMAINTAINED is not graded — proxy.golang.org publishes no maintenance status, and release age does not stand in for one. Whether any is UNUSED is not graded either: that is a source question, not a registry one. Known CVEs in this module graph are D30's question, read from REDACTED and go.sum there.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 166 required Go module(s) use a banned license. Licences were read per module version from the licence files pkg.go.dev detects (via api.deps.dev), over every module this repository's REDACTED requires, direct and indirect, at the version the build uses. Go records no test-only scope at module level, so modules only this repository's own tests import are included.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
Top hotspots: actor/actor_system.go (47×26=1222); REDACTED (24×19=456); REDACTED (19×21=399) Repeated repair below the complexity floor: internal/cluster/cluster.go (9 of 12 changes were fixes); actor/receive_context.go (5 of 9 changes were fixes); actor/context_pool.go (3 of 3 changes were fixes)
Resolve the 10 Hotspot finding(s) in Churn × Complexity Hotspots — start with actor_system.go, REDACTED, REDACTED. — One of this dimension's main actionable groups (10 warning-level).
Resolve the 3 Repeated repair finding(s) in Churn × Complexity Hotspots — start with cluster.go, receive_context.go, context_pool.go. — One of this dimension's main actionable groups (3 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
14 deducted task-comment markers across 108881 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
TodoComment · ×13REDACTED:105
HackCommentplayground/issue-779/main.go:74
What to do
Resolve the 13 TodoComment finding(s) in Explicit Debt — start with pid_test.go (4), actor_system_test.go (2), REDACTED. — One of this dimension's main actionable groups (13 warning-level).
Resolve the 1 HackComment finding(s) in Explicit Debt — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.
The repository's root README is excellent: it states the project (GoAkt), its license, build status, Go reference badge, release schedule, and a strong overview of what the framework does. The book/README.md is an internal documentation book that explains implementation details at a level not shown elsewhere in the docs; it is well written for maintainers/contributors with a clear outline (Start here / How the book is written / Keeping the book true) and each chapter verified as it is written, plus a dedicated chapters section. The playground/README.md documents its own directory (playground/) rather than the repository root, so no repository-wide overview or installation guidance is present there; the README files are all focused on their respective directories. The repository's READMEs and playground directories document the self-managed discovery provider (with static/static variants), an actor-reentrancy example, and several issue reproductions. The architecture is well-documented in prose plus a diagram for each provider type: Self-Managed Discovery Provider with a UDP broadcast flow, Static Discovery Provider with no Register/Deregister, and two separate playgrounds for reentrancy (Discussion-320) and crash-recovery (Issue 1260). The outline is complete across the visible documents. The root README is not shown; the only missing element is an overview of what the repository does in general. Each playground-issue-<number>-README documents its own directory (a test/runner/fixture) rather than the repository root, so each is a focused README for that tier. The four files show no missing-overview, installation, or architecture-design docs; they are all self-contained use cases with run/run-once commands and measured output, making them high-quality per-directory samples.
What to do
Improve Documentation Quality — currently 8.0/10. — The repository's root README is excellent: it states the project (GoAkt), its license, build status, Go reference badge, release schedule, and a strong overview of what the framework does. The book/README.md is an internal documentation book that explains implementation details at a level not shown elsewhere in the docs; it is well written for maintainers/contributors with a clear outline (Start here / How the book is written / Keeping the book true) and each chapter verified as it is written, plus a dedicated chapters section. The playground/README.md documents its own directory (playground/) rather than the repository root, so no repository-wide overview or installation guidance is present there; the README files are all focused on their respective directories. The repository's READMEs and playground directories document the self-managed discovery provider (with static/static variants), an actor-reentrancy example, and several issue reproductions. The architecture is well-documented in prose plus a diagram for each provider type: Self-Managed Discovery Provider with a UDP broadcast flow, Static Discovery Provider with no Register/Deregister, and two separate playgrounds for reentrancy (Discussion-320) and crash-recovery (Issue 1260). The outline is complete across the visible documents. The root README is not shown; the only missing element is an overview of what the repository does in general. Each playground-issue-<number>-README documents its own directory (a test/runner/fixture) rather than the repository root, so each is a focused README for that tier. The four files show no missing-overview, installation, or architecture-design docs; they are all self-contained use cases with run/run-once commands and measured output, making them high-quality per-directory samples.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.
1 of 2 build units (Go, npm) flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesion
What to do
Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
103 finding(s): 0 critical, 44 high, 10 medium, 49 low. 41 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 3 file(s) — `internal/internalpb/peers.pb.go`, `internal/internalpb/remoting.pb.go`, `scripts/test-shard.sh` (line 17) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 3 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.
REDACTED
REDACTED
REDACTED
REDACTED
REDACTED
+ 4 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
No action in Static Analysis (SAST) — all 41 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (41 issue-level, 0 of them charged here).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.
Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05.
Resolve the 1 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 Medium vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.
Resolve the 5 High IaC finding(s) in IaC & Container Security — start with REDACTED (2), REDACTED (2), REDACTED. — One of this dimension's main actionable groups (5 issue-level).
Resolve the 16 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (6), REDACTED (5), REDACTED (4). — One of this dimension's main actionable groups (16 warning-level).
Resolve the 2 Low IaC finding(s) in IaC & Container Security — start with REDACTED (2). — One of this dimension's main actionable groups (2 recommendation-level).
Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 296 of the 361 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
Resolve the 1 Boundary-crossing change coupling finding(s) in Change Coupling — start with pid_option.go. — One of this dimension's main actionable groups (1 issue-level).
Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.
Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.
What it measures: Whether Kubernetes workloads restrict network EGRESS with a NetworkPolicy (or Cilium policy), limiting where a compromised pod can send data or reach a command-and-control server. Presence of committed egress-restricting policy, not runtime enforcement.
Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn — language-agnostic): Kubernetes workloads gate applicability; credits a NetworkPolicy / Cilium policy that restricts egress (policyTypes: [Egress] / egress rules). Reward-leaning (neutral floor climbing to 10, never a deduction — baseline misconfigs stay with D31). Deterministic.
What it measures: Whether Kubernetes workloads confine the kernel boundary — a seccomp profile (RuntimeDefault/Localhost) plus an AppArmor/SELinux mandatory-access-control layer — shrinking the syscall attack surface a container escape would use. Presence of committed confinement config, not runtime enforcement.
Method: Deterministic YAML-manifest inspection (no external tool, no Roslyn): on Kubernetes workloads, credits a seccomp profile (RuntimeDefault/Localhost) and an AppArmor/SELinux MAC layer. Reward-leaning (neutral floor climbing to 10); NotApplicable without workloads. Deterministic.
0/1 workload(s) run every container under a seccomp profile; 0/1 declare an AppArmor/SELinux profile.
No seccomp profileREDACTED:28
What to do
Resolve the 1 No seccomp profile finding(s) in Kernel & Syscall Confinement — start with REDACTED. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d41_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Scored apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.
Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. SCORED, not informational.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 0 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
What to do
The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Add a README to the 1 of 1 project(s) that lack one — worth up to 2 pts.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
README.md links to `./architecture/`, but `architecture` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — README.md:72
docs/actor/actor-model.mdx links to `/actor/messaging`, but `actor/messaging` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-model.mdx:26
docs/actor/actor-model.mdx links to `/actor/behaviors`, but `actor/behaviors` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-model.mdx:27
docs/actor/actor-model.mdx links to `/actor/actor-system`, but `actor/actor-system` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-model.mdx:48
docs/actor/actor-model.mdx links to `/actor/lifecycle`, but `actor/lifecycle` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-model.mdx:94
docs/actor/actor-model.mdx links to `/actor/reentrancy`, but `actor/reentrancy` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-model.mdx:180
docs/actor/actor-model.mdx links to `/actor/pipeto`, but `actor/pipeto` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-model.mdx:187
docs/actor/actor-model.mdx links to `/actor/scheduling`, but `actor/scheduling` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-model.mdx:193
docs/actor/actor-system.mdx links to `/advanced/event-streams`, but `advanced/event-streams` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:19
docs/actor/actor-system.mdx links to `/advanced/pubsub`, but `advanced/pubsub` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:21
docs/actor/actor-system.mdx links to `/architecture/overview`, but `architecture/overview` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:25
docs/actor/actor-system.mdx links to `/advanced/coordinated-shutdown`, but `advanced/coordinated-shutdown` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:39
docs/actor/actor-system.mdx links to `/getting-started/quickstart`, but `getting-started/quickstart` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:39
docs/actor/actor-system.mdx links to `/clustering/placement`, but `clustering/placement` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:46
docs/actor/actor-system.mdx links to `/actor/singletons`, but `actor/singletons` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:52
docs/actor/actor-system.mdx links to `/actor/lifecycle`, but `actor/lifecycle` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:58
docs/actor/actor-system.mdx links to `/actor/routers`, but `actor/routers` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:58
docs/actor/actor-system.mdx links to `/clustering/overview`, but `clustering/overview` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:59
docs/actor/actor-system.mdx links to `/actor/pid`, but `actor/pid` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:70
docs/actor/actor-system.mdx links to `/actor/location-transparency`, but `actor/location-transparency` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:70
docs/actor/actor-system.mdx links to `/actor/messaging`, but `actor/messaging` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:82
docs/actor/actor-system.mdx links to `/actor/scheduling`, but `actor/scheduling` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:92
docs/actor/actor-system.mdx links to `/advanced/observability`, but `advanced/observability` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:103
docs/actor/actor-system.mdx links to `/advanced/remoting`, but `advanced/remoting` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:131
docs/actor/actor-system.mdx links to `/advanced/extensions-and-dependencies`, but `advanced/extensions-and-dependencies` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:138
docs/actor/actor-system.mdx links to `/clustering/partition-hashing`, but `clustering/partition-hashing` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:152
docs/actor/actor-system.mdx links to `/actor/actor-model`, but `actor/actor-model` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:251
docs/actor/actor-system.mdx links to `/reference/interfaces`, but `reference/interfaces` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/actor-system.mdx:253
docs/actor/behaviors.mdx links to `/actor/stashing`, but `actor/stashing` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/behaviors.mdx:140
docs/actor/lifecycle.mdx links to `/actor/actor-model#the-actor-interface`, but `actor/actor-model` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/lifecycle.mdx:68
docs/actor/lifecycle.mdx links to `/actor/death-watch`, but `actor/death-watch` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/lifecycle.mdx:130
docs/actor/mailboxes.mdx links to `/advanced/event-streams`, but `advanced/event-streams` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/mailboxes.mdx:108
docs/actor/messaging.mdx links to `/actor/pipeto`, but `actor/pipeto` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/messaging.mdx:82
docs/actor/reentrancy.mdx links to `/grains/reentrancy`, but `grains/reentrancy` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/reentrancy.mdx:71
docs/actor/relocation.mdx links to `/advanced/event-streams`, but `advanced/event-streams` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/relocation.mdx:129
docs/actor/relocation.mdx links to `/advanced/extensions-and-dependencies`, but `advanced/extensions-and-dependencies` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/relocation.mdx:421
docs/actor/scheduling.mdx links to `/grains/scheduling`, but `grains/scheduling` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/scheduling.mdx:26
docs/actor/scheduling.mdx links to `/clustering/overview`, but `clustering/overview` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/scheduling.mdx:146
docs/actor/singletons.mdx links to `/actor/relocation`, but `actor/relocation` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/singletons.mdx:111
docs/actor/stashing.mdx links to `/actor/reentrancy`, but `actor/reentrancy` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong. — docs/actor/stashing.mdx:109
What to do
Reconcile the README with reality: README.md links to `./architecture/`, but `architecture` does not exist; docs/actor/actor-model.mdx links to `/actor/messaging`, but `actor/messaging` does not exist; docs/actor/actor-model.mdx links to `/actor/behaviors`, but `actor/behaviors` does not exist; docs/actor/actor-model.mdx links to `/actor/actor-system`, but `actor/actor-system` does not exist; docs/actor/actor-model.mdx links to `/actor/lifecycle`, but `actor/lifecycle` does not exist.
Readiness · Readiness — Whether an automated pipeline builds and tests every change.
Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.
Do you agree with this assessment?
P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged
Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.
Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
What to do
Enable Dependabot/Renovate or a dependency-review gate.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it.
What to do
Add an approval/environment gate (required reviewers / protection rules) before production promotion.
Readiness · Performance — Whether the code protects its performance with benchmarks — a benchmark suite, allocation/memory measurement, and (ideally) a CI gate. Presence is credited as a bonus, never a deduction.
Method: Repo + source scan: BenchmarkDotNet referenced (csproj/source), [Benchmark]/[MemoryDiagnoser] attribute counts, and a benchmark step in CI; off .NET, the same ladder over Go testing.B, Rust criterion/#[bench]/divan, JMH/kotlinx-benchmark, pytest-benchmark/asv/pyperf, tinybench/mitata/vitest bench/benchmark.js and Swift package-benchmark — scored as a bonus ladder (absence is neutral, never a deduction). Deterministic, presence detection.
Readiness · Performance — Whether the code is written to minimise allocations so it doesn't pressure its host's memory manager — buffer/slice views over copies, object pooling, stack or value-type allocation, and buffer writers. Reward-only: credited where present, never penalised where a simpler style is fine.
Method: Production-source scan: density (per 1k LoC) of allocation-aware APIs — in .NET Span/Memory, ArrayPool/ObjectPool, stackalloc, ValueTask, value-type structs, IBufferWriter, string.Create, SkipLocalsInit; off .NET, with comments and strings blanked, Go's sync.Pool, preallocated slices/maps, Grow, strconv.Append* and buf[:0] reuse; the JVM's NIO buffer views, MemorySegment, primitive collections, pools and literal presizes (plus Kotlin primitive arrays and value classes, Scala AnyVal and @specialized); Swift's reserveCapacity, ContiguousArray, withUnsafe* access and ~Copyable. Activated off .NET on the same floor (400 lines, and benchmarks or 8 uses); Rust and garbage-collected scripting languages are not applicable. Reward-only. Deterministic, syntax/text detection.
What to do
Raise allocation-aware density on the hot paths — currently 230 use(s) across 124,325 production line(s) (~1.8/1k). More of the idioms below on the allocation-heavy paths climbs this toward 10.
Go: on hot paths, reuse buffers and objects through sync.Pool, preallocate slices and maps with make([]T, 0, n) / make(map[K]V, n), size builders with Grow, append with strconv.Append*, and reslice with buf[:0] instead of allocating anew.
Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.
Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.
Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.
Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.
Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.
Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X17 · Uncapped recursion over a caller-supplied document10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.
Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.
Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether functions that make a cancellable request accept or pass on a context.Context (adoption curve).
Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.
Only 3/4 functions that make a cancellable request (net/http, net.Dial) accept a context.Context or pass one on, so a request keeps running after whatever wanted it has given up — a cancelled request, a shutdown, an expired deadline. Take `ctx context.Context` as the first parameter and build the request with it (`http.NewRequestWithContext`, `DialContext`); where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
`getConnection` calls `net.DialTimeout(…)` but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take `ctx context.Context` as the first parameter and build the request with it: `http.NewRequestWithContext(ctx, …)`, `(&net.Dialer{}).DialContext(ctx, …)`. — REDACTED:467
What to do
Thread a context.Context through functions that make requests, so the work stops when its caller gives up.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that TAKES a lock or semaphore and gives it back from a flag-guarded `finally` returns the value that flag implies — reporting success while the guard hands the primitive back admits a second caller the exclusion was there to keep out, and reporting failure while the guard keeps it leaves nothing to ever give it back.
Method: Roslyn syntax: `try` statements whose `finally` releases a synchronisation primitive under a bare local-bool guard, where the method also TOOK that same primitive before the `try`, checked for a `return` of a bool literal whose value disagrees with the flag state the method's own straight-line assignments put it in. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.
Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X24 · Document value interpolated into markup unescaped10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.
Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.
Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.
Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a `for` loop leaves the `dict`, `set` or `deque` it is walking alone — CPython's iterators over those check that the collection has not changed size since the loop began, so a body that removes from (or empties) the very collection the loop is walking makes the next step raise `RuntimeError: dictionary changed size during iteration` and the remaining items are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.
Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
`if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×32) — actor/scheduler.go:786, actor/scheduler.go:791, REDACTED:1566, …
`if decodeErr != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — REDACTED:1602
`if err := s.ensureOpen(); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — internal/cluster/boltdb_store.go:157
`if err := contextErr(ctx); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — internal/cluster/boltdb_store.go:160
`if _, err := rand.Read(buf[:]); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — internal/datacentercontroller/controller.go:651
`if err := proto.Unmarshal(env.Payload, msg); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — internal/net/remoting_server.go:811
`if err := conn.SetReadDeadline(deadline); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. — internal/net/remoting_server.go:966
`if err := md.UnmarshalBinary(wire); err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×2) — internal/net/duplex_dispatch.go:270, internal/remoteclient/send.go:976
What to do
Swallowed exception (caught, then discarded)
Do you agree with this assessment?
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.
Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 3 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
SC1 Supply-chain hygiene — 1 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X10 Duplicated predicate — 19 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 2 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 50 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
AX1 Captive dependencies — Not applicable: this repository's Go imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No Go request handler (a net/http, Gin, Echo, Fiber or fasthttp handler, or a gRPC service method) is declared as a method or function, and no handler function literal writes a value captured from outside it, so no state is shared between request goroutines. No function in this Python code is served by a threaded web framework (a Flask, Bottle or FastAPI route, a Django or Pyramid view), so no module is shared between request threads.
AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX8 Test isolation — no test/production split to check
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXR1 Runtime accessibility — compose up failed (exit 18 — an image could not be pulled) — node2 Pulling node1 Pulling coredns Pulling node3 Pulling coredns Error Get "https://registry-1.docker.io/v2/": Forbidden node3 Warning context canceled node1 Warning context canceled node2 Warning context canceled Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: node1 Skipped - Image is already being pulled by node2 coredns Pulling node2 Pulling coredns Error Get "https://registry-1.docker.io/v2/": Forbidden node2 Warning Get "https://registry-1.docker.io/v2/": Forbidden WARNING: Some service image(s) must be built from source by running: docker compose build node2 Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
D10 Test Quality — ~144664 lines of test source are present (.go) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
D16 Bus Factor — single-maintainer repository — bus factor is not applicable
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Aggregate roots were found in only one source directory (actor), which is a layered codebase, not two contexts. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — No inline comments to assess — comment value is not applicable here.
D25 ADR Conformance — no ADRs to check
D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.go), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
D42 Runtime Threat Enforcement — The repository ships application workloads but no cluster-governance resources (CRDs, admission webhooks, or a committed policy engine). Runtime threat-detection (Falco/Tetragon) and admission control (Kyverno/OPA-Gatekeeper/PodSecurity) are cluster-OPERATOR controls owned by the platform, not shipped by an application repo/chart — nothing for this repo to assess.
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage not included — suite not readable by the collector
DM1 Domain Modelling — applicable but not scored (2 signals for this style, 2 needed — the count is met but a required primary signal is absent): 6 aggregate root(s) (types guarding their own state behind command methods — this language has no AggregateRoot base to inherit); 6 value object(s)
ED1 Event-Driven — not scored — this repository shows only 1 of the 3 signals this lens looks for (11 event-sourced shape(s) (event folds / event-recording aggregates))
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 2 aggregate(s) with Apply/When folds; 10 Go aggregate(s) recording domain events (own events-slice append / raise-record)
GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P12 CI test-gate honesty — Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
P7 Outbound HTTP resilience — no outbound HTTP usage detected — no HTTP client call or construction in the Go, JavaScript/TypeScript, Python source (service entry point: playground/issue-1260/server.go:63 (http.Server {))
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (`go test -coverprofile=coverage.out ./...`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
PF3 Async & latency hygiene — Not applicable: Go has no async/await function colour, so there is no asynchronous code for a blocking call to stall.
S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
Boundary-crossing change coupling: pid_option.go ↔ REDACTED actor/pid_option.go:1— `actor/pid_option.go` (context actor) and `REDACTED` (context internal) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are `6d8ec14e` feat: expose an API for custom mailboxes (#479) (at that commit the files were still `actors/pid_option.go` and `internal/collection/queue.go`); `fb3d3a46` perf: performance tuning (#468) (at that commit the files were still `actors/pid_option.go` and `internal/collection/queue.go`); `174e4e7b` perf: remove channel as mailbox and use queue implementation (#404) (at that commit the file was still `actors/pid_option.go`) — run `git show` on any of them.
Swallowed exception (caught, then discarded) actor/scheduler.go:786— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) actor/scheduler.go:791— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:1566— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:1602— `if decodeErr != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:1618— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) actor/relocation_handoff.go:71— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) actor/relocation_handoff.go:91— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:511— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:673— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:691— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:1524— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) actor/grain_timer.go:327— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:1233— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:1238— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:1353— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:1358— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) REDACTED:2297— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) actor/actor_system.go:2310— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) actor/actor_system.go:2493— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) actor/actor_system.go:4549— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) actor/actor_system.go:4569— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) actor/actor_system.go:5793— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) discovery/mdns/discovery.go:283— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) discovery/mdns/discovery.go:295— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) discovery/selfmanaged/listen_udp_multicast.go:79— `if err != nil` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Duplicated block (13 lines × 2) actor/actor_system.go:5355— actor/actor_system.go:5355-5367 | actor/grain_pid.go:1123-1135 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `actor/actor_system.go:5355` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) actor/reliable_delivery_producer_controller.go:257— actor/reliable_delivery_producer_controller.go:257-269 | actor/reliable_delivery_work_pulling_controller.go:220-232 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_producer_controller.go:257` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) actor/remote_server.go:801— actor/remote_server.go:801-813 | actor/remote_server.go:1189-1201 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) actor/remote_watch_registry.go:354— actor/remote_watch_registry.go:354-366 | actor/remote_watch_registry.go:406-418 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/remote_watch_registry.go:354` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (13 lines × 2) discovery/selfmanaged/listen_udp_reuseport.go:50— discovery/selfmanaged/listen_udp_reuseport.go:50-62 | discovery/selfmanaged/listen_udp_windows.go:47-59 — before extracting anything, compare `discovery/selfmanaged/listen_udp_reuseport.go` and `discovery/selfmanaged/listen_udp_windows.go` as WHOLE FILES: 82% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `discovery/selfmanaged/listen_udp_reuseport.go:50` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 2) internal/net/duplex.go:1148— internal/net/duplex.go:1148-1160 | internal/net/duplex_chunk.go:288-300 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `internal/net/duplex.go:1148` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) internal/net/envelope.go:157— internal/net/envelope.go:157-169 | internal/net/envelope.go:272-284 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `internal/net/envelope.go:157` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `internal/net/envelope.go:155` calls `putEncodedRef` and `internal/net/envelope.go:271` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13 lines × 2) internal/remoteclient/client.go:2135— internal/remoteclient/client.go:2135-2147 | internal/remoteclient/client.go:2455-2467 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `internal/remoteclient/client.go:2135` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) internal/remoteclient/send.go:425— internal/remoteclient/send.go:425-437 | internal/remoteclient/send.go:769-781 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 2) playground/issue-1260/main.go:176— playground/issue-1260/main.go:176-188 | playground/issue-1340/main.go:201-213 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1260/main.go:176` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (13 lines × 2) playground/issue-1386/main.go:463— playground/issue-1386/main.go:463-475 | playground/issue-1391/main.go:542-554 — `playground/issue-1386/main.go` and `playground/issue-1391/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 152 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) playground/issue-1407/main.go:184— playground/issue-1407/main.go:184-196 | playground/issue-1430/main.go:198-210 — `playground/issue-1407/main.go` and `playground/issue-1430/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 75 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1407/main.go:184` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (13 lines × 2) playground/issue-1413/main.go:319— playground/issue-1413/main.go:319-331 | playground/issue-1415/main.go:297-309 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1413/main.go:319` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) playground/issue-1413/main.go:692— playground/issue-1413/main.go:692-704 | playground/issue-1415/main.go:826-838 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (13 lines × 2) remote/grain_request.go:94— remote/grain_request.go:94-106 | remote/spawn_request.go:202-214 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `remote/grain_request.go:94` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 2) stream/stage_flow.go:290— stream/stage_flow.go:290-302 | stream/stage_parallel.go:217-229 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `stream/stage_flow.go:290` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) playground/issue-1260/server.go:181— playground/issue-1260/server.go:181-193 | playground/issue-1340/main.go:305-317 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (13 lines × 2) playground/issue-1296/cluster/main.go:331— playground/issue-1296/cluster/main.go:331-343 | playground/issue-1296/main.go:312-324 — before extracting anything, compare `playground/issue-1296/cluster/main.go` and `playground/issue-1296/main.go` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) stream/stage_merge_select.go:56— stream/stage_merge_select.go:56-68 | stream/stage_merge_sequence.go:94-106 — before extracting anything, compare `stream/stage_merge_select.go` and `stream/stage_merge_sequence.go` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) playground/issue-1227/main.go:90— playground/issue-1227/main.go:90-102 | playground/issue-1296/cluster/main.go:213-228 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (13 lines × 2) actor/reliable_delivery_producer_controller.go:760— actor/reliable_delivery_producer_controller.go:760-772 | actor/reliable_delivery_work_pulling_controller.go:825-837 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_producer_controller.go:760` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) playground/issue-1407/main.go:294— playground/issue-1407/main.go:294-306 | playground/issue-1409/main.go:179-191 — `playground/issue-1407/main.go` and `playground/issue-1409/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (7 lines × 2) actor/root_guardian.go:55— actor/root_guardian.go:55-61 | actor/user_guardian.go:53-59 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `actor/root_guardian.go:55` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) actor/scheduler.go:297— actor/scheduler.go:297-303 | actor/scheduler.go:485-491 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7 lines × 2) actor/scheduler.go:384— actor/scheduler.go:384-390 | actor/scheduler.go:567-573 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7 lines × 2) internal/net/duplex.go:710— internal/net/duplex.go:710-716 | internal/net/duplex.go:727-733 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `internal/net/duplex.go:710` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) playground/issue-1377/main.go:202— playground/issue-1377/main.go:202-208 | playground/issue-1377/main.go:316-322 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1377/main.go:202` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) stream/flow.go:143— stream/flow.go:143-149 | stream/flow.go:414-420 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `stream/flow.go:143` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) stream/stage_flatmap_stream.go:175— stream/stage_flatmap_stream.go:175-181 | stream/stage_subflow.go:592-598 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `stream/stage_subflow.go:601` calls `makeFeedSourceDesc`, `Self` and `stream/stage_flatmap_stream.go:184` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 2) stream/stage_flow.go:567— stream/stage_flow.go:567-573 | stream/stage_subflow.go:219-225 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) actor/grain_context.go:779— actor/grain_context.go:779-785 | actor/grain_props.go:117-123 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind `any` to `gctx *GrainContext) ScheduleOnce(message` in one and `props *GrainProps) ScheduleOnce(message` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (7 lines × 2) actor/grain_context.go:800— actor/grain_context.go:800-806 | actor/grain_props.go:134-140 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind `any` to `gctx *GrainContext) Schedule(message` in one and `props *GrainProps) Schedule(message` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (7 lines × 2) actor/grain_context.go:820— actor/grain_context.go:820-826 | actor/grain_props.go:151-157 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind `any` to `gctx *GrainContext) ScheduleWithCron(message` in one and `props *GrainProps) ScheduleWithCron(message` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (7 lines × 2) playground/issue-1386/main.go:413— playground/issue-1386/main.go:413-419 | playground/issue-1391/main.go:494-500 — `playground/issue-1386/main.go` and `playground/issue-1391/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 152 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (7 lines × 2) REDACTED:2195— REDACTED:2195-2201 | REDACTED:1067-1073 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) playground/issue-1413/main.go:708— playground/issue-1413/main.go:708-714 | playground/issue-1415/main.go:208-214 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (7 lines × 2) stream/stage_flow.go:530— stream/stage_flow.go:530-536 | stream/stage_sink.go:183-189 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) testkit/testkit.go:110— testkit/testkit.go:110-116 | testkit/testnode.go:116-122 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `testkit/testkit.go:110` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
FileTooLong: actor/actor_system.go actor/actor_system.go— FileTooLong — 2494 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: actorSystem (178 blocks, 1083-6438). The bar is 500 significant lines; this is 1994 over it, 4.99× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: REDACTED REDACTED— FileTooLong — 2117 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: PID (138 blocks, 136-4203). The bar is 500 significant lines; this is 1617 over it, 4.23× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: actor/remote_server.go actor/remote_server.go— FileTooLong — 1302 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: actorSystem (47 blocks, 83-2396). The bar is 500 significant lines; this is 802 over it, 2.60× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: REDACTED REDACTED— FileTooLong — 1269 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: replicatorActor (68 blocks, 134-2401). The bar is 500 significant lines; this is 769 over it, 2.54× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: remoteclient/client.go internal/remoteclient/client.go— FileTooLong — 1113 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: client (43 blocks, 917-2826). The bar is 500 significant lines; this is 613 over it, 2.23× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: cluster/cluster.go internal/cluster/cluster.go— FileTooLong — 1102 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: cluster (76 blocks, 296-2166). The bar is 500 significant lines; this is 602 over it, 2.20× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: REDACTED REDACTED— FileTooLong — 1018 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: actorSystem (65 blocks, 100-2324). The bar is 500 significant lines; this is 518 over it, 2.04× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: net/duplex.go internal/net/duplex.go— FileTooLong — 665 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: duplexConn (45 blocks, 69-1380). The bar is 500 significant lines; this is 165 over it, 1.33× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: actor/grain_pid.go actor/grain_pid.go— FileTooLong — 644 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: grainPID (59 blocks, 66-1438). The bar is 500 significant lines; this is 144 over it, 1.29× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: actor/reliable_delivery_producer_controller.go actor/reliable_delivery_producer_controller.go— FileTooLong — 606 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: producerController (36 blocks, 99-1319). The bar is 500 significant lines; this is 106 over it, 1.21× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: remoteclient/send.go internal/remoteclient/send.go— FileTooLong — 601 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: client (20 blocks, 95-1190). The bar is 500 significant lines; this is 101 over it, 1.20× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: remoteclient/peer.go internal/remoteclient/peer.go— FileTooLong — 591 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: peer (41 blocks, 111-1135). The bar is 500 significant lines; this is 91 over it, 1.18× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: stream/stage_source.go stream/stage_source.go— FileTooLong — 587 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 87 over it, 1.17× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: actor/reliable_delivery_work_pulling_controller.go actor/reliable_delivery_work_pulling_controller.go— FileTooLong — 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: workPullingProducerController (38 blocks, 93-1010). The bar is 500 significant lines; this is 34 over it, 1.07× the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: actor/reliable_delivery_protocol.go actor/reliable_delivery_protocol.go— FileTooLong — 514 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 14 over it, 1.03× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
Duplicated block (12 lines × 2) actor/remote_watch_registry.go:168— actor/remote_watch_registry.go:168-179 | actor/remote_watch_registry.go:314-325 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/remote_watch_registry.go:168` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) actor/remote_watch_registry.go:265— actor/remote_watch_registry.go:265-276 | actor/remote_watch_registry.go:332-343 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/remote_watch_registry.go:265` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) REDACTED:136— REDACTED:136-147 | REDACTED:1005-1017 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:136` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `REDACTED:135` calls `toRemoteSpec` and `REDACTED:1004` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 2) REDACTED:189— REDACTED:189-200 | REDACTED:320-331 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `REDACTED:332` calls `PutUint32` and `REDACTED:201` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 2) internal/remoteclient/client.go:1241— internal/remoteclient/client.go:1241-1252 | internal/remoteclient/client.go:1430-1441 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 2) internal/remoteclient/client.go:2140— internal/remoteclient/client.go:2140-2151 | internal/remoteclient/client.go:2184-2195 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 2) playground/issue-1407/main.go:250— playground/issue-1407/main.go:250-261 | playground/issue-1430/main.go:253-264 — `playground/issue-1407/main.go` and `playground/issue-1430/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 75 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1407/main.go:250` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) playground/issue-1408/main.go:470— playground/issue-1408/main.go:470-481 | playground/issue-1435/main.go:903-914 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) playground/issue-1413/main.go:627— playground/issue-1413/main.go:627-638 | playground/issue-1415/main.go:758-769 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1413/main.go:627` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) playground/issue-906/main.go:89— playground/issue-906/main.go:89-100 | playground/issue-908/main.go:79-90 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-906/main.go:89` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) REDACTED:248— REDACTED:248-259 | REDACTED:160-171 — before extracting anything, compare `REDACTED` and `REDACTED` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:248` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (12 lines × 2) stream/stage_flow.go:434— stream/stage_flow.go:434-445 | stream/stage_flow.go:590-601 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `stream/stage_flow.go:434` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) actor/remote_server.go:2402— actor/remote_server.go:2402-2413 | internal/remoteclient/peer.go:1170-1181 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Check import visibility before settling on that home: `internal/remoteclient/peer.go` sits under a restricted `internal` directory, which only code inside its own subtree is permitted to import from — so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate.
Duplicated block (12 lines × 2) actor/reliable_delivery_protocol.go:578— actor/reliable_delivery_protocol.go:578-589 | actor/reliable_delivery_protocol.go:614-625 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_protocol.go:578` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) actor/reliable_delivery_producer_controller.go:706— actor/reliable_delivery_producer_controller.go:706-716 | actor/reliable_delivery_work_pulling_controller.go:501-509 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_producer_controller.go:706` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) actor/reliable_delivery_producer_controller.go:1198— actor/reliable_delivery_producer_controller.go:1198-1206 | actor/reliable_delivery_work_pulling_controller.go:912-920 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_producer_controller.go:1198` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `actor/reliable_delivery_producer_controller.go:1208` calls `StoreChunked` and `actor/reliable_delivery_work_pulling_controller.go:922` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 2) actor/remote_server.go:745— actor/remote_server.go:745-754 | REDACTED:1239-1247 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `actor/remote_server.go:745` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) actor/stash.go:93— actor/stash.go:93-101 | actor/stash.go:121-129 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/stash.go:93` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (9 lines × 2) discovery/consul/discovery.go:172— discovery/consul/discovery.go:172-180 | discovery/etcd/discovery.go:181-189 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) discovery/dnssd/discovery.go:118— discovery/dnssd/discovery.go:118-126 | discovery/nats/discovery.go:242-250 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) playground/issue-973/main.go:144— playground/issue-973/main.go:144-152 | playground/issue-x/main.go:178-186 — `playground/issue-973/main.go` and `playground/issue-x/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 126 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-973/main.go:144` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) actor/bounded_priority_mailbox.go:76— actor/bounded_priority_mailbox.go:76-84 | actor/bounded_stable_priority_mailbox.go:69-77 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) actor/remote_server.go:2062— actor/remote_server.go:2062-2070 | internal/remoteclient/send.go:899-907 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Check import visibility before settling on that home: `internal/remoteclient/send.go` sits under a restricted `internal` directory, which only code inside its own subtree is permitted to import from — so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate.
Duplicated block (9 lines × 2) playground/issue-1296/cluster/main.go:320— playground/issue-1296/cluster/main.go:320-328 | playground/issue-1296/main.go:301-309 — before extracting anything, compare `playground/issue-1296/cluster/main.go` and `playground/issue-1296/main.go` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) stream/stage_sink_ref.go:177— stream/stage_sink_ref.go:177-185 | stream/stage_source_ref.go:341-349 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `stream/stage_sink_ref.go:191` calls `TermErr`, `get` and `stream/stage_source_ref.go:355` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 2) actor/pid_tree.go:191— actor/pid_tree.go:191-199 | actor/pid_tree.go:238-247 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/pid_tree.go:191` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) actor/remote_server.go:483— actor/remote_server.go:483-491 | actor/remote_server.go:538-546 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (9 lines × 2) actor/reliable_delivery_protocol.go:601— actor/reliable_delivery_protocol.go:601-609 | actor/reliable_delivery_protocol.go:674-682 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_protocol.go:601` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
TodoComment REDACTED:105— // TODO: should we validate the spawn configuration here because configPID does it as well? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:140— // TODO: revisit these defaults — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment actor/root_guardian.go:69— // TODO: decide what to do the actor — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment actor/pid_test.go:1672— // TODO: fix the child relationship supervisor mode — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment actor/pid_test.go:1729— // TODO: fix the child relationship supervisor mode — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment actor/pid_test.go:2113— // TODO: fix the child relationship supervisor mode — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment actor/pid_test.go:2154— // TODO: fix the child relationship supervisor mode — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment REDACTED:3551— // TODO: revisit this — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment actor/actor_system_test.go:688— // TODO we can add a callback for complete start — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment actor/actor_system_test.go:897— // TODO we can add a callback for complete start — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment client/client.go:562— // TODO: is it good to panic? — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment discovery/nats/discovery.go:166— // TODO: need to read more and see how to propagate the error — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment internal/validation/tcp_address.go:60— // TODO: maybe we only need to check port number not to be negative — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
Duplicated block (10 lines × 2) actor/grain_context.go:541— actor/grain_context.go:541-550 | actor/grain_context.go:595-604 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) actor/reliable_delivery_producer_controller.go:802— actor/reliable_delivery_producer_controller.go:802-811 | actor/reliable_delivery_work_pulling_controller.go:858-867 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_producer_controller.go:802` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) REDACTED:149— REDACTED:149-158 | REDACTED:198-207 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:149` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) internal/net/duplex_dispatch.go:181— internal/net/duplex_dispatch.go:181-190 | internal/net/duplex_dispatch.go:299-308 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `internal/net/duplex_dispatch.go:181` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. ★ These copies have DRIFTED, and that is worth reading before extracting anything: `internal/net/duplex_dispatch.go:299` is reached only past a guard at line 295 that tests `env.Payload` and leaves the function early, and `internal/net/duplex_dispatch.go:181` reads `env.Payload` with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them — extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live.
Duplicated block (10 lines × 2) REDACTED:199— REDACTED:199-208 | REDACTED:144-153 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:199` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Check import visibility before settling on that home: `REDACTED` sits under a restricted `internal` directory, which only code inside its own subtree is permitted to import from — so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `REDACTED:210` calls `Put` and `REDACTED:154` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 2) internal/remoteclient/send.go:241— internal/remoteclient/send.go:241-250 | internal/remoteclient/send.go:409-418 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (10 lines × 2) actor/actor_system.go:1852— actor/actor_system.go:1852-1861 | REDACTED:100-109 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10 lines × 2) actor/actor_system.go:1864— actor/actor_system.go:1864-1873 | REDACTED:126-135 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10 lines × 2) actor/supervision_signal.go:78— actor/supervision_signal.go:78-87 | supervisor/supervisor.go:428-440 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) datacenter/controlplane/etcd/control_plane.go:559— datacenter/controlplane/etcd/control_plane.go:559-568 | datacenter/controlplane/nats/control_plane.go:473-482 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) playground/issue-1017/main.go:189— playground/issue-1017/main.go:189-198 | playground/issue-973/main.go:154-163 — `playground/issue-1017/main.go` and `playground/issue-973/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 127 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (10 lines × 2) actor/context_pool.go:137— actor/context_pool.go:137-146 | actor/grain_context_pool.go:119-128 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10 lines × 2) datacenter/controlplane/etcd/control_plane.go:156— datacenter/controlplane/etcd/control_plane.go:156-165 | datacenter/controlplane/nats/control_plane.go:148-157 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `datacenter/controlplane/etcd/control_plane.go:156` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
TooManyMethods: actorSystem actor/actor_system.go:1083— TooManyMethods — 346 methods, declared across 12 files: actor/actor_system.go (177), REDACTED (65), actor/remote_server.go (47), REDACTED (22), +8 more file(s). The bar is 30 methods; this is 316 over it, 11.53× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: PID REDACTED:136— TooManyMethods — 157 methods, declared across 5 files: REDACTED (137), actor/pid_companion.go (10), actor/stash.go (5), actor/pid_state.go (3), +1 more file(s). The bar is 30 methods; this is 127 over it, 5.23× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: cluster internal/cluster/cluster.go:296— TooManyMethods — 75 methods. The bar is 30 methods; this is 45 over it, 2.50× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: duplexConn internal/net/duplex.go:69— TooManyMethods — 72 methods, declared across 5 files: net/duplex.go (44), net/duplex_chunk.go (10), net/duplex_credit.go (9), net/duplex_table.go (8), +1 more file(s). The bar is 30 methods; this is 42 over it, 2.40× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: replicatorActor REDACTED:134— TooManyMethods — 67 methods. The bar is 30 methods; this is 37 over it, 2.23× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: client internal/remoteclient/client.go:917— TooManyMethods — 65 methods, declared across 3 files: remoteclient/client.go (43), remoteclient/send.go (20), remoteclient/peer.go (2). The bar is 30 methods; this is 35 over it, 2.17× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: grainPID actor/grain_pid.go:66— TooManyMethods — 60 methods, declared across 2 files: actor/grain_pid.go (58), actor/grain_late_message.go (2). The bar is 30 methods; this is 30 over it, 2.00× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: ReceiveContext actor/receive_context.go:84— TooManyMethods — 55 methods. The bar is 30 methods; this is 25 over it, 1.83× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: peer internal/remoteclient/peer.go:111— TooManyMethods — 40 methods. The bar is 30 methods; this is 10 over it, 1.33× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: GrainContext actor/grain_context.go:83— TooManyMethods — 39 methods, declared across 2 files: actor/grain_context.go (37), actor/grain_late_message.go (2). The bar is 30 methods; this is 9 over it, 1.30× the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: workPullingProducerController actor/reliable_delivery_work_pulling_controller.go:93— TooManyMethods — 37 methods. The bar is 30 methods; this is 7 over it, 1.23× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: producerController actor/reliable_delivery_producer_controller.go:99— TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
Duplicated block (11 lines × 2) actor/reliable_delivery_protocol.go:577— actor/reliable_delivery_protocol.go:577-587 | actor/reliable_delivery_protocol.go:881-891 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) actor/reliable_delivery_protocol.go:735— actor/reliable_delivery_protocol.go:735-745 | actor/reliable_delivery_protocol.go:877-887 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `actor/reliable_delivery_protocol.go:747` calls `IsNil`, `NewErrInvalidMessage`, `New` and `actor/reliable_delivery_protocol.go:889` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 2) actor/remote_server.go:724— actor/remote_server.go:724-734 | actor/remote_server.go:848-858 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) actor/remote_server.go:1407— actor/remote_server.go:1407-1417 | actor/remote_server.go:1465-1475 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `actor/remote_server.go:1405` calls `GetRequestTimeout` and `actor/remote_server.go:1463` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 2) actor/remote_server.go:1644— actor/remote_server.go:1644-1654 | actor/remote_server.go:1667-1677 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) internal/commands/delivery.go:156— internal/commands/delivery.go:156-166 | internal/commands/delivery.go:229-239 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `internal/commands/delivery.go:169` calls `NewErrInvalidMessage`, `New` and `internal/commands/delivery.go:241` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 2) internal/net/metadata.go:154— internal/net/metadata.go:154-164 | internal/net/metadata.go:166-176 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) internal/remoteclient/send.go:460— internal/remoteclient/send.go:460-470 | internal/remoteclient/send.go:656-666 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `internal/remoteclient/send.go:460` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) playground/issue-1413/main.go:338— playground/issue-1413/main.go:338-348 | playground/issue-1415/main.go:316-326 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1413/main.go:338` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) stream/stage_concat.go:137— stream/stage_concat.go:137-147 | stream/stage_source.go:767-777 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (11 lines × 2) stream/stage_broadcast.go:322— stream/stage_broadcast.go:322-332 | stream/stage_partition.go:288-298 — before extracting anything, compare `stream/stage_broadcast.go` and `stream/stage_partition.go` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) actor/grain_pid.go:975— actor/grain_pid.go:975-985 | REDACTED:2293-2303 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Hotspot: actor/actor_system.go actor/actor_system.go:4688— actor/actor_system.go changed 47 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in actorSystem.configPID at line 4688. 27 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- actor/actor_system.go`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: REDACTED REDACTED:3109— REDACTED changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in PID.tryPassivation at line 3109. 11 of those changes were fix/bug commits, and the other 13 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: REDACTED REDACTED:730— REDACTED changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in actorSystem.activateGrainLocally at line 730. 8 of those changes were fix/bug commits, and the other 11 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: actor/remote_server.go actor/remote_server.go:644— actor/remote_server.go changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in actorSystem.remoteSpawnHandler at line 644. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- actor/remote_server.go`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: REDACTED REDACTED:445— REDACTED changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in replicatorActor.handleMessage at line 445. 4 of those changes were fix/bug commits, and the other 5 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: REDACTED REDACTED:283— REDACTED changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in actorSystem.SpawnOn at line 283. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- REDACTED`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: actor/pid_tree.go actor/pid_tree.go:430— actor/pid_tree.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in tree.deleteNode at line 430. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- actor/pid_tree.go`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: actor/death_watch.go actor/death_watch.go:146— actor/death_watch.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in deathWatch.handleTerminated at line 146. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- actor/death_watch.go`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: internal/ddata/snapshot.go internal/ddata/snapshot.go:114— internal/ddata/snapshot.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Store.Save at line 114. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- internal/ddata/snapshot.go`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: internal/remoteclient/send.go internal/remoteclient/send.go:621— internal/remoteclient/send.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in client.sendBatchAskDuplex at line 621. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- internal/remoteclient/send.go`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
ClassTooLong: actorSystem actor/actor_system.go:1083— ClassTooLong — 2169 significant lines (blank, comment-only and punctuation-only lines excluded), 346 methods, 178 blocks, lines 1083-6438. The bar is 400 significant lines; this is 1769 over it, 5.42× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: PID REDACTED:136— ClassTooLong — 1861 significant lines (blank, comment-only and punctuation-only lines excluded), 157 methods, 138 blocks, lines 136-4203. The bar is 400 significant lines; this is 1461 over it, 4.65× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: replicatorActor REDACTED:134— ClassTooLong — 1088 significant lines (blank, comment-only and punctuation-only lines excluded), 67 methods, 68 blocks, lines 134-2401. The bar is 400 significant lines; this is 688 over it, 2.72× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: cluster internal/cluster/cluster.go:296— ClassTooLong — 858 significant lines (blank, comment-only and punctuation-only lines excluded), 75 methods, 76 blocks, lines 296-2166. The bar is 400 significant lines; this is 458 over it, 2.15× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: client internal/remoteclient/client.go:917— ClassTooLong — 801 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods, 43 blocks, lines 917-2826. The bar is 400 significant lines; this is 401 over it, 2.00× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: grainPID actor/grain_pid.go:66— ClassTooLong — 572 significant lines (blank, comment-only and punctuation-only lines excluded), 60 methods, 59 blocks, lines 66-1438. The bar is 400 significant lines; this is 172 over it, 1.43× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: duplexConn internal/net/duplex.go:69— ClassTooLong — 564 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods, 45 blocks, lines 69-1380. The bar is 400 significant lines; this is 164 over it, 1.41× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: producerController actor/reliable_delivery_producer_controller.go:99— ClassTooLong — 524 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods, 36 blocks, lines 99-1319. The bar is 400 significant lines; this is 124 over it, 1.31× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: workPullingProducerController actor/reliable_delivery_work_pulling_controller.go:93— ClassTooLong — 479 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods, 38 blocks, lines 93-1010. The bar is 400 significant lines; this is 79 over it, 1.20× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
ClassTooLong: peer internal/remoteclient/peer.go:111— ClassTooLong — 478 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods, 41 blocks, lines 111-1135. The bar is 400 significant lines; this is 78 over it, 1.20× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
Duplicated block (8 lines × 2) internal/net/envelope.go:145— internal/net/envelope.go:145-154 | internal/net/envelope.go:264-271 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `internal/net/envelope.go:156` calls `putEncodedRef` and `internal/net/envelope.go:273` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 2) stream/source.go:487— stream/source.go:487-494 | stream/source.go:516-523 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `stream/source.go:487` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) stream/stage_source.go:244— stream/stage_source.go:244-251 | stream/stage_subflow.go:218-225 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `stream/stage_source.go:244` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) actor/reliable_delivery_producer_controller.go:1296— actor/reliable_delivery_producer_controller.go:1296-1303 | actor/reliable_delivery_work_pulling_controller.go:995-1002 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind `ReliableDeliveryStage` to `x *producerController) publishFailure(stage` in one and `x *workPullingProducerController) publishFailure(stage` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (8 lines × 2) playground/issue-1252/main.go:50— playground/issue-1252/main.go:50-57 | playground/issue-1453/main.go:85-92 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `playground/issue-1453/main.go:95` calls `Background` and `playground/issue-1252/main.go:60` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 2) playground/issue-1260/recorder.go:75— playground/issue-1260/recorder.go:75-82 | playground/issue-1340/recorder.go:95-102 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `playground/issue-1340/recorder.go:108` calls `Now`, `UTC` and `playground/issue-1260/recorder.go:87` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 2) playground/issue-778/main.go:59— playground/issue-778/main.go:59-66 | playground/issue-886/main.go:106-113 — `playground/issue-778/main.go` and `playground/issue-886/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 8 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (8 lines × 2) REDACTED:170— REDACTED:170-179 | REDACTED:203-210 — before extracting anything, compare `REDACTED` and `REDACTED` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) REDACTED:231— REDACTED:231-239 | REDACTED:146-153 — before extracting anything, compare `REDACTED` and `REDACTED` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:231` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 2) actor/remote_server.go:711— actor/remote_server.go:711-718 | actor/remote_server.go:784-791 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/remote_server.go:711` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 2) actor/reliable_delivery_producer_controller.go:341— actor/reliable_delivery_producer_controller.go:341-347 | actor/reliable_delivery_work_pulling_controller.go:306-310 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_producer_controller.go:341` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) actor/scheduler.go:247— actor/scheduler.go:247-251 | actor/scheduler.go:434-438 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) testkit/multi_nodes.go:164— testkit/multi_nodes.go:164-168 | testkit/multi_nodes.go:198-202 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `testkit/multi_nodes.go:164` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) testkit/testkit.go:122— testkit/testkit.go:122-126 | testkit/testnode.go:128-132 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `testkit/testkit.go:122` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) testkit/grain_probe.go:281— testkit/grain_probe.go:281-286 | testkit/probe.go:497-501 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (5 lines × 2) actor/reliable_delivery_producer_controller.go:300— actor/reliable_delivery_producer_controller.go:300-304 | actor/reliable_delivery_work_pulling_controller.go:265-269 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_producer_controller.go:300` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 2) playground/issue-1405/main.go:75— playground/issue-1405/main.go:75-79 | playground/issue-1409/main.go:98-102 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (5 lines × 2) testkit/grain_probe.go:267— testkit/grain_probe.go:267-271 | testkit/probe.go:486-490 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (5 lines × 2) testkit/testkit.go:89— testkit/testkit.go:89-93 | testkit/testnode.go:72-76 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `testkit/testkit.go:89` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) book/tools/linkrefs.py:40— book/tools/linkrefs.py:40-44 | book/tools/toc.py:32-36 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication· Members sharing a duplicated core (5 members, 50+ identical tokens) · ×8
Members sharing a duplicated core (5 members, 50+ identical tokens) actor/pid_tree.go:622— actor/pid_tree.go:622-651 | actor/pid_tree.go:657-681 | actor/pid_tree.go:687-729 | actor/pid_tree.go:803-824 | actor/pid_tree.go:830-853 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) client/client.go:254— client/client.go:254-272 | client/client.go:290-308 | client/client.go:330-352 | client/client.go:439-456 | client/client.go:510-527 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) REDACTED:171— REDACTED:171-216 | REDACTED:295-353 | REDACTED:222-259 | REDACTED:139-171 | REDACTED:119-158 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) internal/remoteclient/client.go:1119— internal/remoteclient/client.go:1119-1158 | internal/remoteclient/client.go:1174-1214 | internal/remoteclient/client.go:1275-1306 | internal/remoteclient/client.go:1321-1357 | internal/remoteclient/client.go:1372-1403 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) playground/issue-1407/main.go:82— playground/issue-1407/main.go:82-118 | playground/issue-1409/main.go:60-128 | playground/issue-1411/main.go:56-121 | playground/issue-1430/main.go:87-127 | playground/issue-1456/main.go:65-133 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) stream/source.go:210— stream/source.go:210-227 | stream/source.go:234-250 | stream/source.go:366-382 | stream/source.go:391-407 | stream/source.go:431-447 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) stream/stage_concat.go:72— stream/stage_concat.go:72-116 | stream/stage_merge_select.go:73-124 | stream/stage_merge_sequence.go:111-170 | stream/stage_source.go:712-762 | stream/stage_zipn.go:73-124 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) stream/stage_merge_select.go:73— stream/stage_merge_select.go:73-124 | stream/stage_merge_sequence.go:111-170 | stream/stage_source.go:712-762 | stream/stage_source.go:835-897 | stream/stage_zipn.go:73-124 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Duplicated block (14 lines × 2) actor/cluster_singleton.go:147— actor/cluster_singleton.go:147-160 | REDACTED:758-771 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `actor/cluster_singleton.go:147` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) playground/issue-1203/main.go:126— playground/issue-1203/main.go:126-139 | playground/issue-1227/main.go:109-122 — `playground/issue-1203/main.go` and `playground/issue-1227/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 5 separate duplicated blocks between them, totalling at least 77 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1203/main.go:126` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (14 lines × 2) playground/issue-1405/main.go:52— playground/issue-1405/main.go:52-65 | playground/issue-1409/main.go:77-90 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (14 lines × 2) playground/issue-1407/main.go:311— playground/issue-1407/main.go:311-324 | playground/issue-1430/main.go:304-317 — `playground/issue-1407/main.go` and `playground/issue-1430/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 75 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1407/main.go:311` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (14 lines × 2) playground/issue-1437/main.go:223— playground/issue-1437/main.go:223-236 | playground/issue-1444/main.go:153-166 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) stream/graph_builder.go:334— stream/graph_builder.go:334-347 | stream/graph_builder.go:357-370 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `stream/graph_builder.go:334` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) stream/stage_broadcast.go:337— stream/stage_broadcast.go:337-350 | stream/stage_partition.go:303-316 — before extracting anything, compare `stream/stage_broadcast.go` and `stream/stage_partition.go` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14 lines × 2) actor/reliable_delivery_producer_controller.go:841— actor/reliable_delivery_producer_controller.go:841-854 | actor/reliable_delivery_work_pulling_controller.go:588-601 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
TooManyFields: actorSystem actor/actor_system.go:1083— TooManyFields — 88 stored fields beside 346 methods. The bar is 30 stored fields; this is 58 over it, 2.93× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: duplexConn internal/net/duplex.go:69— TooManyFields — 49 stored fields beside 72 methods. The bar is 30 stored fields; this is 19 over it, 1.63× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: PID REDACTED:136— TooManyFields — 42 stored fields beside 157 methods. The bar is 30 stored fields; this is 12 over it, 1.40× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: cluster internal/cluster/cluster.go:296— TooManyFields — 42 stored fields beside 75 methods. The bar is 30 stored fields; this is 12 over it, 1.40× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: replicatorActor REDACTED:134— TooManyFields — 42 stored fields beside 67 methods. The bar is 30 stored fields; this is 12 over it, 1.40× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: producerController actor/reliable_delivery_producer_controller.go:99— TooManyFields — 35 stored fields beside 35 methods. The bar is 30 stored fields; this is 5 over it, 1.17× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
TooManyFields: subFlowSourceActor stream/stage_subflow.go:106— TooManyFields — 32 stored fields beside 20 methods. The bar is 30 stored fields; this is 2 over it, 1.07× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
Duplicated block (17 lines × 2) REDACTED:558— REDACTED:558-574 | REDACTED:628-644 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:558` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (17 lines × 2) actor/scheduler.go:232— actor/scheduler.go:232-248 | actor/scheduler.go:282-298 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (17 lines × 2) actor/scheduler.go:419— actor/scheduler.go:419-435 | actor/scheduler.go:470-486 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (17 lines × 2) playground/issue-1296/cluster/main.go:112— playground/issue-1296/cluster/main.go:112-128 | playground/issue-1296/main.go:126-142 — before extracting anything, compare `playground/issue-1296/cluster/main.go` and `playground/issue-1296/main.go` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1296/cluster/main.go:112` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) playground/issue-1386/main.go:337— playground/issue-1386/main.go:337-353 | playground/issue-1391/main.go:299-315 — `playground/issue-1386/main.go` and `playground/issue-1391/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 152 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (17 lines × 2) playground/issue-1386/main.go:479— playground/issue-1386/main.go:479-495 | playground/issue-1391/main.go:558-574 — `playground/issue-1386/main.go` and `playground/issue-1391/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 152 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (15 lines × 2) REDACTED:1301— REDACTED:1301-1315 | REDACTED:1486-1500 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (15 lines × 2) actor/relocation_worker.go:801— actor/relocation_worker.go:801-815 | actor/remote_server.go:692-706 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (15 lines × 2) actor/scheduler.go:817— actor/scheduler.go:817-831 | actor/scheduler.go:844-858 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/scheduler.go:817` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) playground/issue-1301/main.go:590— playground/issue-1301/main.go:590-604 | playground/issue-1301/main.go:699-713 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (15 lines × 2) remote/config.go:123— remote/config.go:123-137 | remote/config.go:156-170 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `remote/config.go:123` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `remote/config.go:141` calls `Apply` and `remote/config.go:172` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (15 lines × 2) remote/spawn_request.go:206— remote/spawn_request.go:206-220 | remote/spawn_request.go:340-354 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `remote/spawn_request.go:337` calls `AddValidator`, `NewEmptyStringValidator` and `remote/spawn_request.go:203` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 2) internal/net/listen_darwin.go:68— internal/net/listen_darwin.go:68-73 | internal/net/listen_linux.go:99-104 — before extracting anything, compare `internal/net/listen_darwin.go` and `internal/net/listen_linux.go` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) playground/issue-1405/main.go:151— playground/issue-1405/main.go:151-156 | playground/issue-1409/main.go:153-159 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (6 lines × 2) REDACTED:65— REDACTED:65-70 | REDACTED:79-84 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) actor/pid_tree.go:518— actor/pid_tree.go:518-523 | internal/xsync/map.go:70-75 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Check import visibility before settling on that home: `internal/xsync/map.go` sits under a restricted `internal` directory, which only code inside its own subtree is permitted to import from — so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate.
Duplicated block (6 lines × 2) actor/remote_server.go:589— actor/remote_server.go:589-594 | actor/remote_server.go:1356-1361 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 2) playground/issue-1227/main.go:154— playground/issue-1227/main.go:154-159 | playground/issue-1227/main.go:161-166 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (16 lines × 2) actor/reliable_delivery_producer_controller.go:734— actor/reliable_delivery_producer_controller.go:734-749 | actor/reliable_delivery_work_pulling_controller.go:521-536 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_producer_controller.go:734` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) internal/chain/chain.go:87— internal/chain/chain.go:87-102 | internal/chain/chain.go:110-125 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `internal/chain/chain.go:110` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `internal/chain/chain.go:86` calls `AddContextRunner` and `internal/chain/chain.go:108` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (16 lines × 2) internal/remoteclient/client.go:2499— internal/remoteclient/client.go:2499-2514 | internal/remoteclient/client.go:2592-2607 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) playground/issue-1260/main.go:157— playground/issue-1260/main.go:157-172 | playground/issue-1340/main.go:179-194 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (16 lines × 2) playground/issue-1296/cluster/main.go:94— playground/issue-1296/cluster/main.go:94-109 | playground/issue-1296/main.go:108-123 — before extracting anything, compare `playground/issue-1296/cluster/main.go` and `playground/issue-1296/main.go` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1296/cluster/main.go:94` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Repeated repair: internal/cluster/cluster.go internal/cluster/cluster.go:1848— internal/cluster/cluster.go changed 12 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 14 (its worst body is cluster.announceConvergedLocked at line 1848), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(actor): partition reports failure as error instead of zero (#1458)”; “fix: harden supervision, replication, remoting and streams (#1432) (#1433)”; “fix: recover non-relocatable actor names during cluster convergence (#1392)”; “fix: release registry claims of non-relocatable actors and grains on crashed node (#1386) (#1387)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- internal/cluster/cluster.go`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Repeated repair: actor/receive_context.go actor/receive_context.go:176— actor/receive_context.go changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 8 (its worst body is ReceiveContext.Response at line 176), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “chore: maintenance fixes (#1452)”; “fix: harden supervision, replication, remoting and streams (#1432) (#1433)”; “fix: skip asks whose sender stopped waiting and carry the ask deadline (#1431)”; “fix(actor): stop dropping replies to stashed Asks after unstash (#1313)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- actor/receive_context.go`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Repeated repair: actor/context_pool.go actor/context_pool.go:158— actor/context_pool.go changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 5 (its worst body is contextShard.pop at line 158), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “chore: maintenance fixes (#1452)”; “fix: skip asks whose sender stopped waiting and carry the ask deadline (#1431)”; “fix(actor): stop dropping replies to stashed Asks after unstash (#1313)”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-23 18:12:42 +01:00' --until='2026-10-21 18:12:42 +01:00' --full-history --no-merges -- actor/context_pool.go`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Duplicated block (23 lines × 2) REDACTED:1925— REDACTED:1925-1947 | REDACTED:2055-2077 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (23 lines × 2) actor/reliable_delivery_producer_controller.go:309— actor/reliable_delivery_producer_controller.go:309-331 | actor/reliable_delivery_work_pulling_controller.go:274-296 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) playground/issue-1413/main.go:291— playground/issue-1413/main.go:291-313 | playground/issue-1415/main.go:273-295 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1413/main.go:291` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 3) REDACTED:1939— REDACTED:1939-1953 | REDACTED:2001-2015 | REDACTED:2069-2083 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (15 lines × 3) playground/issue-1017/main.go:112— playground/issue-1017/main.go:112-126 | playground/issue-973/main.go:84-98 | playground/issue-x/main.go:120-134 — `playground/issue-1017/main.go` and `playground/issue-973/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 127 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1017/main.go:112` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 3) playground/issue-1017/main.go:141— playground/issue-1017/main.go:141-155 | playground/issue-973/main.go:114-128 | playground/issue-x/main.go:149-163 — `playground/issue-1017/main.go` and `playground/issue-973/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 127 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1017/main.go:141` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (14–15 lines × 2) actor/grain_pid.go:1381— actor/grain_pid.go:1381-1395 | REDACTED:2652-2665 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (14–15 lines × 2) internal/remoteclient/client.go:1471— internal/remoteclient/client.go:1471-1484 | internal/remoteclient/client.go:2922-2936 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (14–15 lines × 2) internal/remoteclient/client.go:1486— internal/remoteclient/client.go:1486-1499 | internal/remoteclient/client.go:2347-2361 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 5) actor/pid_tree.go:623— actor/pid_tree.go:623-634 | actor/pid_tree.go:658-669 | actor/pid_tree.go:688-700 | actor/pid_tree.go:804-816 | actor/pid_tree.go:831-843 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (12 lines × 5) internal/remoteclient/client.go:1131— internal/remoteclient/client.go:1131-1142 | internal/remoteclient/client.go:1186-1197 | internal/remoteclient/client.go:1287-1298 | internal/remoteclient/client.go:1333-1344 | internal/remoteclient/client.go:1384-1395 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 5) stream/stage_merge_select.go:113— stream/stage_merge_select.go:113-124 | stream/stage_merge_sequence.go:159-170 | stream/stage_source.go:751-762 | stream/stage_source.go:886-897 | stream/stage_zipn.go:113-124 — before extracting anything, compare `stream/stage_merge_select.go` and `stream/stage_merge_sequence.go` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `stream/stage_merge_select.go:113` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Low cohesion: ClusterConfig (LCOM4 12) actor/cluster_config.go:69— ClusterConfig's methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: TCPConn (LCOM4 5) internal/net/tcp_server.go:148— TCPConn's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: Config (LCOM4 4) discovery/selfmanaged/config.go:43— Config's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
main.main (cognitive 16) playground/issue-1322/main.go:260— main.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 5, boolean chains 2 (nesting depth added 3). Of this number, 15 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
main.main (cognitive 16) playground/issue-1456/main.go:65— main.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, loops 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Duplicated block (28 lines × 2) actor/actor_system.go:2735— actor/actor_system.go:2735-2762 | actor/api.go:68-95 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `actor/actor_system.go:2735` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (28 lines × 2) playground/issue-1296/cluster/main.go:175— playground/issue-1296/cluster/main.go:175-202 | playground/issue-1296/main.go:184-211 — before extracting anything, compare `playground/issue-1296/cluster/main.go` and `playground/issue-1296/main.go` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (25 lines × 2) actor/bounded_stable_priority_mailbox.go:84— actor/bounded_stable_priority_mailbox.go:84-108 | actor/unbounded_stable_priority_mailbox.go:161-185 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `actor/bounded_stable_priority_mailbox.go:84` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (25 lines × 2) REDACTED:1913— REDACTED:1913-1937 | REDACTED:1970-1994 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:1913` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (22 lines × 2) actor/grain_pid.go:773— actor/grain_pid.go:773-794 | REDACTED:2568-2589 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (22 lines × 2) remote/option.go:461— remote/option.go:461-482 | remote/option.go:513-534 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `remote/option.go:461` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (21 lines × 2) actor/remote_server.go:1373— actor/remote_server.go:1373-1393 | actor/remote_server.go:1437-1457 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `actor/remote_server.go:1396` calls `deadlineContext`, `cancel` and `actor/remote_server.go:1459` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (21 lines × 2) discovery/mdns/option.go:28— discovery/mdns/option.go:28-48 | discovery/nats/option.go:28-48 — `discovery/mdns/option.go` and `discovery/nats/option.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 21 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (20 lines × 2) actor/relocation_worker.go:976— actor/relocation_worker.go:976-995 | actor/relocation_worker.go:1120-1139 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (20 lines × 2) playground/issue-1386/main.go:391— playground/issue-1386/main.go:391-410 | playground/issue-1391/main.go:472-491 — `playground/issue-1386/main.go` and `playground/issue-1391/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 152 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1386/main.go:391` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (19 lines × 2) playground/issue-1017/main.go:133— playground/issue-1017/main.go:133-151 | playground/issue-x/main.go:141-159 — `playground/issue-1017/main.go` and `playground/issue-x/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 136 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1017/main.go:133` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (19 lines × 2) playground/issue-1386/main.go:229— playground/issue-1386/main.go:229-247 | playground/issue-1391/main.go:244-262 — `playground/issue-1386/main.go` and `playground/issue-1391/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 152 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `playground/issue-1391/main.go:242` calls `Close` and `playground/issue-1386/main.go:227` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 3) playground/issue-1301/main.go:631— playground/issue-1301/main.go:631-641 | playground/issue-1301/main.go:643-653 | playground/issue-1301/main.go:732-742 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (11 lines × 3) remote/grain_request.go:98— remote/grain_request.go:98-108 | remote/spawn_request.go:206-216 | remote/spawn_request.go:340-350 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `remote/spawn_request.go:337` calls `AddValidator`, `NewEmptyStringValidator` and `remote/spawn_request.go:203` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 3) actor/actor_system.go:5462— actor/actor_system.go:5462-5471 | actor/actor_system.go:5489-5498 | actor/actor_system.go:5516-5525 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/actor_system.go:5462` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 3) playground/issue-1386/main.go:463— playground/issue-1386/main.go:463-472 | playground/issue-1391/main.go:542-551 | playground/issue-1413/main.go:718-727 — `playground/issue-1386/main.go` and `playground/issue-1391/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 152 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (8 lines × 4) stream/sink.go:127— stream/sink.go:127-134 | stream/sink.go:212-219 | stream/sink.go:233-240 | stream/sink.go:287-294 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `stream/sink.go:127` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 4) playground/issue-1017/main.go:207— playground/issue-1017/main.go:207-214 | playground/issue-791/main.go:166-173 | playground/issue-973/main.go:191-198 | playground/issue-x/main.go:195-202 — `playground/issue-1017/main.go` and `playground/issue-791/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 6 separate duplicated blocks between them, totalling at least 87 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
peer.ensureLane (cyclomatic 27) internal/remoteclient/peer.go:316— peer.ensureLane has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
actorSystem.configPID (cyclomatic 26) actor/actor_system.go:4688— actorSystem.configPID has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
actorSystem.remoteSpawnHandler (cyclomatic 26) actor/remote_server.go:644— actorSystem.remoteSpawnHandler has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
duplexConn.readLoop (cyclomatic 26) internal/net/duplex.go:817— duplexConn.readLoop has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
main.runSurvivor (cyclomatic 26) playground/issue-1386/main.go:187— main.runSurvivor has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
sourceRefEndpointActor.Receive (cyclomatic 26) stream/stage_source_ref.go:102— sourceRefEndpointActor.Receive has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
actorSystem.deriveRelocationSetFromRegistry (cyclomatic 24) actor/actor_system.go:4371— actorSystem.deriveRelocationSetFromRegistry has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
relocationWorker.relocateShare (cyclomatic 22) actor/relocation_worker.go:483— relocationWorker.relocateShare has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
actorSystem.activateGrainLocally (cyclomatic 21) REDACTED:730— actorSystem.activateGrainLocally has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 731). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
RemotingServer.handleConn (cyclomatic 21) internal/net/remoting_server.go:952— RemotingServer.handleConn has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
flowActor.Receive (cyclomatic 21) stream/stage_flow.go:74— flowActor.Receive has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
parallelMapActor.Receive (cyclomatic 21) stream/stage_parallel.go:108— parallelMapActor.Receive has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
actorSystem.cleanupStaleLocalActors (cyclomatic 20) actor/actor_system.go:3437— actorSystem.cleanupStaleLocalActors has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
actorSystem.remoteSpawnChildHandler (cyclomatic 20) actor/remote_server.go:795— actorSystem.remoteSpawnChildHandler has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
actorSystem.startRemoteServer (cyclomatic 20) actor/remote_server.go:1761— actorSystem.startRemoteServer has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
PID.DiscoverActor (cyclomatic 20) REDACTED:1462— PID.DiscoverActor has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
tree.deleteNode (cyclomatic 20) actor/pid_tree.go:430— tree.deleteNode has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
replicatorActor.handleDataCenterAntiEntropy (cyclomatic 20) REDACTED:2264— replicatorActor.handleDataCenterAntiEntropy has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file's highest cyclomatic complexity: replicatorActor.handleMessage (cyclomatic 21) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
duplexConn.submitLogical (cyclomatic 20) internal/net/duplex_chunk.go:44— duplexConn.submitLogical has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
WorkerPool.cleanup (cyclomatic 20) internal/net/worker_pool.go:264— WorkerPool.cleanup has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
actorSystem.tellGrainAcrossDataCenters (cyclomatic 19) REDACTED:1166— actorSystem.tellGrainAcrossDataCenters has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
actorSystem.askGrainAcrossDataCenters (cyclomatic 19) REDACTED:1286— actorSystem.askGrainAcrossDataCenters has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
PID.tryPassivation (cyclomatic 19) REDACTED:3109— PID.tryPassivation has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
PID.deliverAcrossHandoff (cyclomatic 19) actor/relocation_handoff.go:178— PID.deliverAcrossHandoff has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
replicatorActor.handleDigest (cyclomatic 19) REDACTED:865— replicatorActor.handleDigest has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: replicatorActor.handleMessage (cyclomatic 21) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
main.main (cyclomatic 19) playground/issue-1301/main.go:65— main.main has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
balanceHubActor.Receive (cyclomatic 19) stream/stage_balance.go:190— balanceHubActor.Receive has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
actor.restartSubtree (cyclomatic 18) REDACTED:4286— actor.restartSubtree has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
deathWatch.handleTerminated (cyclomatic 18) actor/death_watch.go:146— deathWatch.handleTerminated has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
producerController.handleProduced (cyclomatic 18) actor/reliable_delivery_producer_controller.go:454— producerController.handleProduced has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
remoteWatchRegistry.dropNode (cyclomatic 18) actor/remote_watch_registry.go:405— remoteWatchRegistry.dropNode has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
gather.tailChopping (cyclomatic 18) REDACTED:589— gather.tailChopping has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ControlPlane.Register (cyclomatic 18) datacenter/controlplane/nats/control_plane.go:146— ControlPlane.Register has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
partitionHubActor.Receive (cyclomatic 18) stream/stage_partition.go:193— partitionHubActor.Receive has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
actorSystem.finalizeGrainActivation (cyclomatic 17) REDACTED:1622— actorSystem.finalizeGrainActivation has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Store.Save (cyclomatic 17) internal/ddata/snapshot.go:114— Store.Save has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 119). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
client.sendBatchAskDuplex (cyclomatic 17) internal/remoteclient/send.go:621— client.sendBatchAskDuplex has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body's own statements and 7 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
broadcastHubActor.Receive (cyclomatic 17) stream/stage_broadcast.go:225— broadcastHubActor.Receive has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
actorSystem.validate (cyclomatic 16) actor/actor_system.go:2665— actorSystem.validate has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
actorSystem.runShutdownHooks (cyclomatic 16) actor/actor_system.go:5334— actorSystem.runShutdownHooks has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body's own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
consumerController.handleSequencedMessage (cyclomatic 16) actor/reliable_delivery_consumer_controller.go:252— consumerController.handleSequencedMessage has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
replicatorActor.handlePostStart (cyclomatic 16) REDACTED:349— replicatorActor.handlePostStart has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: replicatorActor.handleMessage (cyclomatic 21) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
chunkReassembler.Push (cyclomatic 16) internal/net/reassembly.go:95— chunkReassembler.Push has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
log.appendJSONEscaped (cyclomatic 16) log/slog.go:141— log.appendJSONEscaped has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
sinkActor.Receive (cyclomatic 16) stream/stage_sink.go:62— sinkActor.Receive has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
remoteSourceBridgeActor.Receive (cyclomatic 16) stream/stage_source_ref.go:355— remoteSourceBridgeActor.Receive has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
HackComment playground/issue-779/main.go:74— // hack since the status is not exposed — a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there.
WorkerPool.cleanup (cognitive 64) internal/net/worker_pool.go:264— WorkerPool.cleanup has cognitive complexity 64 (threshold 15). Drivers by points: if/else 13 (45 pts), loops 6 (17 pts), match/switch 1 (2 pts) (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
peer.ensureLane (cognitive 53) internal/remoteclient/peer.go:316— peer.ensureLane has cognitive complexity 53 (threshold 15). Drivers by points: if/else 19 (44 pts), boolean chains 5, match/switch 1 (3 pts), loops 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
duplexConn.readLoop (cognitive 43) internal/net/duplex.go:817— duplexConn.readLoop has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (35 pts), match/switch 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
RemotingServer.handleConn (cognitive 43) internal/net/remoting_server.go:952— RemotingServer.handleConn has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (42 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
flowActor.Receive (cognitive 40) stream/stage_flow.go:74— flowActor.Receive has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (30 pts), loops 2 (6 pts), match/switch 2 (4 pts) (nesting depth added 27). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
remoteWatchRegistry.dropPID (cognitive 39) actor/remote_watch_registry.go:303— remoteWatchRegistry.dropPID has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (35 pts), loops 2 (4 pts) (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
remoteWatchRegistry.dropNode (cognitive 39) actor/remote_watch_registry.go:405— remoteWatchRegistry.dropNode has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 4 (10 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
affected.declarations (cognitive 37) book/tools/affected.py:115— affected.declarations has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 3 (7 pts), ternaries 2 (7 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actorSystem.remoteSpawnHandler (cognitive 35) actor/remote_server.go:644— actorSystem.remoteSpawnHandler has cognitive complexity 35 (threshold 15). Drivers by points: if/else 25 (35 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Controller.watchLoop (cognitive 35) internal/datacentercontroller/controller.go:402— Controller.watchLoop has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (26 pts), match/switch 2 (5 pts), loops 2 (3 pts), jumps 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
parallelMapActor.Receive (cognitive 35) stream/stage_parallel.go:108— parallelMapActor.Receive has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (31 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 19). Of this number, 24 points are the body's own statements and 11 belong to one function literal inside it that branches. The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
sinkActor.Receive (cognitive 34) stream/stage_sink.go:62— sinkActor.Receive has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (26 pts), loops 1 (4 pts), match/switch 2 (4 pts) (nesting depth added 24). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
tree.deleteNode (cognitive 31) actor/pid_tree.go:430— tree.deleteNode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 5 (8 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
relocationWorker.relocateShare (cognitive 31) actor/relocation_worker.go:483— relocationWorker.relocateShare has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 5 (6 pts), boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
sourceRefEndpointActor.Receive (cognitive 31) stream/stage_source_ref.go:102— sourceRefEndpointActor.Receive has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 5, match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
actorSystem.configPID (cognitive 30) actor/actor_system.go:4688— actorSystem.configPID has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24 (27 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
actorSystem.activateGrainLocally (cognitive 30) REDACTED:730— actorSystem.activateGrainLocally has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 4 (nesting depth added 11). Most of this is not in the body itself: 3 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 731). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
client.sendBatchAskDuplex (cognitive 30) internal/remoteclient/send.go:621— client.sendBatchAskDuplex has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (27 pts), loops 2, boolean chains 1 (nesting depth added 14). Most of this is not in the body itself: 14 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 645). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
actorSystem.deriveRelocationSetFromRegistry (cognitive 29) actor/actor_system.go:4371— actorSystem.deriveRelocationSetFromRegistry has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 4, loops 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actorSystem.cleanupStaleLocalActors (cognitive 28) actor/actor_system.go:3437— actorSystem.cleanupStaleLocalActors has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 4, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PID.DiscoverActor (cognitive 28) REDACTED:1462— PID.DiscoverActor has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
gather.tailChopping (cognitive 28) REDACTED:589— gather.tailChopping has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (22 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 14). Of this number, 23 points are the body's own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ControlPlane.Register (cognitive 28) datacenter/controlplane/nats/control_plane.go:146— ControlPlane.Register has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actorSystem.tellGrainAcrossDataCenters (cognitive 27) REDACTED:1166— actorSystem.tellGrainAcrossDataCenters has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actorSystem.askGrainAcrossDataCenters (cognitive 27) REDACTED:1286— actorSystem.askGrainAcrossDataCenters has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actorSystem.remoteAskHandler (cognitive 27) actor/remote_server.go:308— actorSystem.remoteAskHandler has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
remoteWatchRegistry.dropHost (cognitive 27) actor/remote_watch_registry.go:353— remoteWatchRegistry.dropHost has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (10 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actorSystem.handleNodeLeftEvent (cognitive 26) actor/actor_system.go:3990— actorSystem.handleNodeLeftEvent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (26 pts) (nesting depth added 12). Of this number, 25 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PID.deliverAcrossHandoff (cognitive 26) actor/relocation_handoff.go:178— PID.deliverAcrossHandoff has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
balanceHubActor.Receive (cognitive 25) stream/stage_balance.go:190— balanceHubActor.Receive has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 5 (10 pts), boolean chains 1, match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
grainPID.deactivate (cognitive 24) actor/grain_pid.go:325— grainPID.deactivate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (22 pts), match/switch 1 (2 pts) (nesting depth added 12). Of this number, 18 points are the body's own statements and 6 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
replicatorActor.handleDigest (cognitive 24) REDACTED:865— replicatorActor.handleDigest has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 4, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
topicActor.handleTopicMessage (cognitive 24) actor/topic_actor.go:496— topicActor.handleTopicMessage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 13). Of this number, 19 points are the body's own statements and 5 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Client.SendBatchProto (cognitive 24) internal/net/client.go:413— Client.SendBatchProto has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 2 (6 pts), loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
duplexConn.submitLogical (cognitive 24) internal/net/duplex_chunk.go:44— duplexConn.submitLogical has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
log.appendJSONEscaped (cognitive 24) log/slog.go:141— log.appendJSONEscaped has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 4, match/switch 1 (4 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
chanSourceActor.readLoop (cognitive 24) stream/stage_source.go:275— chanSourceActor.readLoop has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (11 pts), match/switch 3 (8 pts), loops 2 (3 pts), boolean chains 1, jumps 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actorSystem.runShutdownHooks (cognitive 23) actor/actor_system.go:5334— actorSystem.runShutdownHooks has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 2 (4 pts), loops 1 (nesting depth added 11). Of this number, 17 points are the body's own statements and 6 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
deathWatch.handleTerminated (cognitive 23) actor/death_watch.go:146— deathWatch.handleTerminated has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
replicatorActor.handleDataCenterAntiEntropy (cognitive 23) REDACTED:2264— replicatorActor.handleDataCenterAntiEntropy has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 4, loops 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
main.runSurvivor (cognitive 23) playground/issue-1386/main.go:187— main.runSurvivor has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, boolean chains 4. Of this number, 22 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
actorSystem.finalizeGrainActivation (cognitive 22) REDACTED:1622— actorSystem.finalizeGrainActivation has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actorSystem.recreateGrainOnce (cognitive 22) REDACTED:2063— actorSystem.recreateGrainOnce has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (22 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actorSystem.remoteSpawnChildHandler (cognitive 22) actor/remote_server.go:795— actorSystem.remoteSpawnChildHandler has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
actorSystem.startRemoteServer (cognitive 22) actor/remote_server.go:1761— actorSystem.startRemoteServer has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 1, match/switch 1 (nesting depth added 4). Of this number, 21 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
Store.Save (cognitive 22) internal/ddata/snapshot.go:114— Store.Save has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 2 (nesting depth added 6). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to one function literal inside it that branches (line 119). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
chunkReassembler.Push (cognitive 22) internal/net/reassembly.go:95— chunkReassembler.Push has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (22 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
stream.materializeWithHead (cognitive 22) stream/materializer.go:116— stream.materializeWithHead has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
broadcastHubActor.Receive (cognitive 22) stream/stage_broadcast.go:225— broadcastHubActor.Receive has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 5 (10 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
actor.allocateGrainsByRole (cognitive 21) actor/relocation_worker.go:1077— actor.allocateGrainsByRole has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 6 (7 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ORSet.Merge (cognitive 21) crdt/or_set.go:130— ORSet.Merge has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 6 (8 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ControlPlane.ListActive (cognitive 21) datacenter/controlplane/nats/control_plane.go:288— ControlPlane.ListActive has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ledger.loadActivations (cognitive 21) playground/issue-1435/main.go:622— ledger.loadActivations has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actor.restartSubtree (cognitive 20) REDACTED:4286— actor.restartSubtree has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 4). Of this number, 15 points are the body's own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
actorSystem.validate (cognitive 20) actor/actor_system.go:2665— actorSystem.validate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PID.tryPassivation (cognitive 20) REDACTED:3109— PID.tryPassivation has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
spawnConfig.Validate (cognitive 20) actor/spawn_option.go:155— spawnConfig.Validate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RemotingServer.handleDuplexData (cognitive 20) internal/net/remoting_server.go:829— RemotingServer.handleDuplexData has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TCPServer.acceptLoop (cognitive 20) internal/net/tcp_server.go:462— TCPServer.acceptLoop has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
partitionHubActor.Receive (cognitive 20) stream/stage_partition.go:193— partitionHubActor.Receive has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
affected.main (cognitive 20) book/tools/affected.py:199— affected.main has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (4 pts), ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actorSystem.replicatePeerState (cognitive 19) actor/actor_system.go:6276— actorSystem.replicatePeerState has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 3 (7 pts), loops 2 (nesting depth added 9). Of this number, 17 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PID.freeChildren (cognitive 19) REDACTED:3053— PID.freeChildren has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 3068). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
replicatorActor.handlePostStart (cognitive 19) REDACTED:349— replicatorActor.handlePostStart has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
sinkRefEndpointActor.Receive (cognitive 19) stream/stage_sink_ref.go:73— sinkRefEndpointActor.Receive has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
remoteSourceBridgeActor.Receive (cognitive 19) stream/stage_source_ref.go:355— remoteSourceBridgeActor.Receive has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
memberlist.NewTransport (cognitive 18) REDACTED:67— memberlist.NewTransport has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 7). Of this number, 17 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
main.startCluster (cognitive 18) playground/issue-1377/main.go:448— main.startCluster has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 6 (7 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
main.stopsTogether (cognitive 18) playground/issue-1415/main.go:463— main.stopsTogether has cognitive complexity 18 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 3 (8 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
actorSystem.cleanupCluster (cognitive 17) actor/actor_system.go:5160— actorSystem.cleanupCluster has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (3 pts) (nesting depth added 8). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 5166, 5205). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals' work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest.
actorSystem.ensureNewGrainProcess (cognitive 17) REDACTED:1485— actorSystem.ensureNewGrainProcess has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
actorSystem.duplexRemoteAsk (cognitive 17) actor/remote_server.go:1965— actorSystem.duplexRemoteAsk has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
grainPID.registerRequestState (cognitive 17) actor/grain_pid.go:714— grainPID.registerRequestState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
producerController.completeStoreChunked (cognitive 17) actor/reliable_delivery_producer_controller.go:626— producerController.completeStoreChunked has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
mdns.advertisedAddresses (cognitive 17) discovery/mdns/discovery.go:281— mdns.advertisedAddresses has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
client.RemoteTell (cognitive 17) internal/remoteclient/client.go:1915— client.RemoteTell has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
client.flushTellBatchDuplex (cognitive 17) internal/remoteclient/send.go:1057— client.flushTellBatchDuplex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
main.main (cognitive 17) playground/issue-1312/main.go:102— main.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Graph.compile (cognitive 17) stream/graph_builder.go:191— Graph.compile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actor.allocateActors (cognitive 16) actor/relocation_worker.go:951— actor.allocateActors has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
actorSystem.gateCrashRecovery (cognitive 16) actor/actor_system.go:4137— actorSystem.gateCrashRecovery has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (nesting depth added 6). Of this number, 15 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PID.runTurn (cognitive 16) REDACTED:2197— PID.runTurn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
readyQueue.take (cognitive 16) REDACTED:253— readyQueue.take has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
relocationWorker.relocate (cognitive 16) actor/relocation_worker.go:182— relocationWorker.relocate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4 (nesting depth added 4). Of this number, 14 points are the body's own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
replicatorActor.handleFullState (cognitive 16) REDACTED:1085— replicatorActor.handleFullState has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
replicatorActor.coordinatedRead (cognitive 16) REDACTED:1562— replicatorActor.coordinatedRead has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
broadcast.start (cognitive 16) discovery/selfmanaged/broadcast.go:75— broadcast.start has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
broadcast.recvLoop (cognitive 16) discovery/selfmanaged/broadcast.go:184— broadcast.recvLoop has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Transport.FinalAdvertiseAddr (cognitive 16) REDACTED:154— Transport.FinalAdvertiseAddr has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 2 (3 pts) (nesting depth added 9). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
duplexConn.drainOutboundPending (cognitive 16) internal/net/duplex.go:777— duplexConn.drainOutboundPending has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
tcpFramedConn.WriteFrames (cognitive 16) internal/net/transport.go:269— tcpFramedConn.WriteFrames has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
tcpFramedConn.ReadFrame (cognitive 16) internal/net/transport.go:332— tcpFramedConn.ReadFrame has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
peer.deliverAdmittedTell (cognitive 16) internal/remoteclient/peer.go:966— peer.deliverAdmittedTell has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
stream.applyFusion (cognitive 16) stream/materializer.go:232— stream.applyFusion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). Of this number, 12 points are the body's own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
stream.MergePrioritized (cognitive 16) stream/source.go:323— stream.MergePrioritized has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (4 pts) (nesting depth added 6). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 333). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal's work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest.
remoteSinkBridgeActor.Receive (cognitive 16) stream/stage_sink_ref.go:195— remoteSinkBridgeActor.Receive has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D4 · Code Duplication· Near-duplicate member family (8 members, 20 shared lines) · ×1
Near-duplicate member family (8 members, 20 shared lines) actor/remote_server.go:901— actor/remote_server.go:901-938 | actor/remote_server.go:942-997 | actor/remote_server.go:1001-1043 | actor/remote_server.go:1047-1090 | actor/remote_server.go:1094-1131 | actor/remote_server.go:1135-1177 | actor/remote_server.go:1249-1286 | actor/remote_server.go:1290-1327 — These 8 members are variants of one another: a block of 20 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
D4 · Code Duplication· Near-duplicate member family (7 members, 19 shared lines) · ×1
Near-duplicate member family (7 members, 19 shared lines) actor/remote_server.go:901— actor/remote_server.go:901-938 | actor/remote_server.go:1001-1043 | actor/remote_server.go:1094-1131 | actor/remote_server.go:1135-1177 | actor/remote_server.go:1181-1245 | actor/remote_server.go:1249-1286 | actor/remote_server.go:1290-1327 — These 7 members are variants of one another: a block of 19 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 22 shared lines) · ×1
Near-duplicate member family (4 members, 22 shared lines) actor/remote_server.go:212— actor/remote_server.go:212-267 | actor/remote_server.go:451-502 | actor/remote_server.go:506-555 | actor/remote_server.go:1181-1245 — These 4 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Members sharing a duplicated core (12 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (12 members, 50+ identical tokens) playground/issue-1017/main.go:221— playground/issue-1017/main.go:221-244 | playground/issue-1022/main.go:114-137 | playground/issue-1031/main.go:103-126 | playground/issue-1036/main.go:106-131 | playground/issue-1134/main.go:242-264 | playground/issue-1203/main.go:141-163 | playground/issue-1209/main.go:205-224 | playground/issue-1227/main.go:124-146 | playground/issue-1255/main.go:379-403 | playground/issue-791/main.go:180-203 | playground/issue-973/main.go:205-228 | playground/issue-x/main.go:209-232 — These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times.
D4 · Code Duplication· Members sharing a duplicated core (7 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (7 members, 50+ identical tokens) playground/issue-1407/main.go:327— playground/issue-1407/main.go:327-339 | playground/issue-1409/main.go:212-224 | playground/issue-1411/main.go:254-266 | playground/issue-1430/main.go:320-332 | playground/issue-1437/main.go:286-298 | playground/issue-1444/main.go:204-216 | playground/issue-1456/main.go:218-230 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (6 members, 50+ identical tokens) stream/sink.go:126— stream/sink.go:126-144 | stream/sink.go:148-167 | stream/sink.go:171-192 | stream/sink.go:211-228 | stream/sink.go:232-253 | stream/sink.go:286-304 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Duplicated block (45–46 lines × 3) stream/stage_balance.go:112— stream/stage_balance.go:112-157 | stream/stage_broadcast.go:145-190 | stream/stage_partition.go:114-158 — before extracting anything, compare `stream/stage_balance.go` and `stream/stage_broadcast.go` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (40 lines × 2) playground/issue-1386/main.go:188— playground/issue-1386/main.go:188-227 | playground/issue-1391/main.go:192-231 — `playground/issue-1386/main.go` and `playground/issue-1391/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 152 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (28–34 lines × 2) actor/reliable_delivery_producer_controller.go:462— actor/reliable_delivery_producer_controller.go:462-495 | actor/reliable_delivery_work_pulling_controller.go:420-447 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_producer_controller.go:462` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (27–33 lines × 2) actor/scheduler.go:348— actor/scheduler.go:348-380 | actor/scheduler.go:537-563 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (32 lines × 3) stream/stage_balance.go:233— stream/stage_balance.go:233-264 | stream/stage_broadcast.go:261-292 | stream/stage_partition.go:226-257 — before extracting anything, compare `stream/stage_balance.go` and `stream/stage_broadcast.go` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `stream/stage_balance.go:233` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (26 lines × 3) actor/context_pool.go:159— actor/context_pool.go:159-184 | actor/grain_context_pool.go:141-166 | actor/grain_context_pool.go:303-328 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 3) actor/context_pool.go:190— actor/context_pool.go:190-212 | actor/grain_context_pool.go:172-194 | actor/grain_context_pool.go:334-356 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (21–23 lines × 3) stream/stage_balance.go:191— stream/stage_balance.go:191-211 | stream/stage_broadcast.go:226-248 | stream/stage_partition.go:194-214 — before extracting anything, compare `stream/stage_balance.go` and `stream/stage_broadcast.go` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `stream/stage_balance.go:191` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (20–21 lines × 2) REDACTED:1942— REDACTED:1942-1961 | REDACTED:2004-2024 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:1942` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (19–20 lines × 3) REDACTED:1226— REDACTED:1226-1244 | REDACTED:1346-1364 | REDACTED:1516-1535 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:1226` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (20 lines × 3) stream/stage_balance.go:69— stream/stage_balance.go:69-88 | stream/stage_broadcast.go:100-119 | stream/stage_partition.go:72-91 — before extracting anything, compare `stream/stage_balance.go` and `stream/stage_broadcast.go` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `stream/stage_balance.go:69` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17–19 lines × 3) actor/grain_context.go:966— actor/grain_context.go:966-982 | REDACTED:1251-1269 | REDACTED:3474-3492 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `actor/grain_context.go:966` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16–19 lines × 2) internal/cluster/cluster.go:587— internal/cluster/cluster.go:587-605 | internal/cluster/cluster.go:623-638 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register.
Duplicated block (17–18 lines × 3) actor/remote_server.go:564— actor/remote_server.go:564-580 | actor/remote_server.go:606-622 | actor/remote_server.go:1335-1352 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (16–17 lines × 9) playground/issue-1017/main.go:229— playground/issue-1017/main.go:229-244 | playground/issue-1022/main.go:122-137 | playground/issue-1031/main.go:111-126 | playground/issue-1203/main.go:148-163 | playground/issue-1227/main.go:131-146 | playground/issue-1255/main.go:387-403 | playground/issue-791/main.go:188-203 | playground/issue-973/main.go:213-228 | playground/issue-x/main.go:217-232 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 9 times. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1017/main.go:229` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 3) stream/stage_balance.go:273— stream/stage_balance.go:273-289 | stream/stage_broadcast.go:302-318 | stream/stage_partition.go:266-282 — before extracting anything, compare `stream/stage_balance.go` and `stream/stage_broadcast.go` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16–17 lines × 2) actor/topic_actor.go:200— actor/topic_actor.go:200-216 | actor/topic_actor.go:534-549 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `actor/topic_actor.go:551` calls `Wait` and `actor/topic_actor.go:218` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (16 lines × 7) actor/remote_server.go:214— actor/remote_server.go:214-229 | actor/remote_server.go:402-417 | actor/remote_server.go:453-468 | actor/remote_server.go:508-523 | actor/remote_server.go:646-661 | actor/remote_server.go:1183-1198 | actor/remote_server.go:1507-1522 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `actor/remote_server.go:1524` calls `GetGrain` and `actor/remote_server.go:1200` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (15–16 lines × 7) playground/issue-1017/main.go:222— playground/issue-1017/main.go:222-237 | playground/issue-1036/main.go:107-122 | playground/issue-1134/main.go:243-257 | playground/issue-1255/main.go:380-395 | playground/issue-791/main.go:181-196 | playground/issue-973/main.go:206-221 | playground/issue-x/main.go:210-225 — `playground/issue-1017/main.go` and `playground/issue-1036/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 46 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (16 lines × 4) stream/stage_merge_select.go:85— stream/stage_merge_select.go:85-100 | stream/stage_merge_sequence.go:123-138 | stream/stage_source.go:723-738 | stream/stage_zipn.go:85-100 — before extracting anything, compare `stream/stage_merge_select.go` and `stream/stage_merge_sequence.go` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14–16 lines × 2) actor/reliable_delivery_producer_controller.go:510— actor/reliable_delivery_producer_controller.go:510-525 | actor/reliable_delivery_work_pulling_controller.go:446-459 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `actor/reliable_delivery_producer_controller.go:510` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15–16 lines × 2) actor/topic_actor.go:140— actor/topic_actor.go:140-154 | actor/topic_actor.go:515-530 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (15 lines × 10) playground/issue-1017/main.go:228— playground/issue-1017/main.go:228-242 | playground/issue-1022/main.go:121-135 | playground/issue-1031/main.go:110-124 | playground/issue-1036/main.go:113-127 | playground/issue-1203/main.go:147-161 | playground/issue-1227/main.go:130-144 | playground/issue-1255/main.go:386-400 | playground/issue-791/main.go:187-201 | playground/issue-973/main.go:212-226 | playground/issue-x/main.go:216-230 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 10 times. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1017/main.go:228` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `playground/issue-1036/main.go:129` calls `Printf`, `Addr`, `String` and `playground/issue-1017/main.go:243` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (14 lines × 11) playground/issue-1017/main.go:225— playground/issue-1017/main.go:225-239 | playground/issue-1022/main.go:118-132 | playground/issue-1031/main.go:107-121 | playground/issue-1036/main.go:110-124 | playground/issue-1134/main.go:246-259 | playground/issue-1203/main.go:145-158 | playground/issue-1227/main.go:128-141 | playground/issue-1255/main.go:383-397 | playground/issue-791/main.go:184-198 | playground/issue-973/main.go:209-223 | playground/issue-x/main.go:213-227 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 11 times. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1017/main.go:225` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 4) actor/pid_tree.go:659— actor/pid_tree.go:659-672 | actor/pid_tree.go:689-703 | actor/pid_tree.go:805-819 | actor/pid_tree.go:832-846 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a `defer`-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead — before the caller uses what it releases — so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `actor/pid_tree.go:676` calls `Load` and `actor/pid_tree.go:850` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13–14 lines × 3) internal/remoteclient/client.go:2504— internal/remoteclient/client.go:2504-2517 | internal/remoteclient/client.go:2564-2576 | internal/remoteclient/client.go:2597-2610 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `internal/remoteclient/client.go:2504` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `internal/remoteclient/client.go:2562` calls `SetWatcherAddress`, `String` and `internal/remoteclient/client.go:2501` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (14 lines × 3) playground/issue-1409/main.go:196— playground/issue-1409/main.go:196-209 | playground/issue-1437/main.go:270-283 | playground/issue-1456/main.go:202-215 — `playground/issue-1409/main.go` and `playground/issue-1456/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 50 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1409/main.go:196` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (13 lines × 8) actor/remote_server.go:903— actor/remote_server.go:903-915 | actor/remote_server.go:944-956 | actor/remote_server.go:1003-1015 | actor/remote_server.go:1049-1061 | actor/remote_server.go:1096-1108 | actor/remote_server.go:1137-1149 | actor/remote_server.go:1251-1263 | actor/remote_server.go:1292-1304 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `actor/remote_server.go:957` calls `GetState` and `actor/remote_server.go:917` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 7) playground/issue-1407/main.go:328— playground/issue-1407/main.go:328-339 | playground/issue-1409/main.go:213-224 | playground/issue-1411/main.go:255-266 | playground/issue-1430/main.go:321-332 | playground/issue-1437/main.go:287-298 | playground/issue-1444/main.go:205-216 | playground/issue-1456/main.go:219-230 — `playground/issue-1407/main.go` and `playground/issue-1409/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 3) actor/bounded_priority_mailbox.go:89— actor/bounded_priority_mailbox.go:89-100 | actor/bounded_stable_priority_mailbox.go:83-94 | actor/unbounded_stable_priority_mailbox.go:160-171 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `actor/bounded_priority_mailbox.go:89` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11–12 lines × 2) playground/issue-1296/cluster/main.go:284— playground/issue-1296/cluster/main.go:284-295 | playground/issue-1296/main.go:222-232 — before extracting anything, compare `playground/issue-1296/cluster/main.go` and `playground/issue-1296/main.go` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
Duplicated block (10–12 lines × 2) stream/flow.go:224— stream/flow.go:224-235 | stream/flow.go:320-329 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `stream/flow.go:224` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 5) playground/issue-1407/main.go:87— playground/issue-1407/main.go:87-97 | playground/issue-1409/main.go:64-74 | playground/issue-1411/main.go:61-71 | playground/issue-1430/main.go:92-102 | playground/issue-1456/main.go:84-94 — `playground/issue-1407/main.go` and `playground/issue-1409/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `playground/issue-1407/main.go:86` calls `startNode`, `Addr`, `String` and `playground/issue-1409/main.go:62` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 4) client/client.go:256— client/client.go:256-266 | client/client.go:292-302 | client/client.go:441-451 | client/client.go:512-522 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `client/client.go:256` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10–11 lines × 3) actor/remote_server.go:2041— actor/remote_server.go:2041-2050 | internal/remoteclient/send.go:815-825 | internal/remoteclient/send.go:844-854 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Check import visibility before settling on that home: `internal/remoteclient/send.go` sits under a restricted `internal` directory, which only code inside its own subtree is permitted to import from — so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate.
Duplicated block (9–10 lines × 5) stream/source.go:211— stream/source.go:211-220 | stream/source.go:235-243 | stream/source.go:367-375 | stream/source.go:392-400 | stream/source.go:432-440 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `stream/source.go:211` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9–10 lines × 3) actor/actor_system.go:2751— actor/actor_system.go:2751-2760 | actor/api.go:84-93 | REDACTED:1319-1327 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `actor/actor_system.go:2751` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8–10 lines × 2) actor/reliable_delivery_producer_controller.go:921— actor/reliable_delivery_producer_controller.go:921-930 | actor/reliable_delivery_work_pulling_controller.go:732-739 — before extracting anything, compare `actor/reliable_delivery_producer_controller.go` and `actor/reliable_delivery_work_pulling_controller.go` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9–10 lines × 2) internal/remoteclient/send.go:585— internal/remoteclient/send.go:585-594 | internal/remoteclient/send.go:752-760 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `internal/remoteclient/send.go:762` calls `NetClient` and `internal/remoteclient/send.go:596` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 8) actor/remote_server.go:913— actor/remote_server.go:913-921 | actor/remote_server.go:1013-1021 | actor/remote_server.go:1059-1067 | actor/remote_server.go:1106-1114 | actor/remote_server.go:1147-1155 | actor/remote_server.go:1200-1208 | actor/remote_server.go:1261-1269 | actor/remote_server.go:1302-1310 — all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (9 lines × 5) stream/stage_concat.go:73— stream/stage_concat.go:73-81 | stream/stage_merge_select.go:74-82 | stream/stage_merge_sequence.go:112-120 | stream/stage_source.go:713-721 | stream/stage_zipn.go:74-82 — before extracting anything, compare `stream/stage_merge_select.go` and `stream/stage_merge_sequence.go` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `stream/stage_concat.go:73` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7–8 lines × 5) actor/remote_server.go:470— actor/remote_server.go:470-477 | actor/remote_server.go:525-532 | actor/remote_server.go:574-580 | actor/remote_server.go:616-622 | actor/remote_server.go:1345-1352 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 5) client/client.go:255— client/client.go:255-262 | client/client.go:291-298 | client/client.go:331-338 | client/client.go:440-447 | client/client.go:511-518 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `client/client.go:255` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 9) actor/remote_server.go:917— actor/remote_server.go:917-923 | actor/remote_server.go:959-965 | actor/remote_server.go:1017-1023 | actor/remote_server.go:1063-1069 | actor/remote_server.go:1110-1116 | actor/remote_server.go:1151-1157 | actor/remote_server.go:1204-1210 | actor/remote_server.go:1265-1271 | actor/remote_server.go:1306-1312 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/remote_server.go:917` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `actor/remote_server.go:957` calls `GetState` and `actor/remote_server.go:915` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 4) actor/remote_server.go:282— actor/remote_server.go:282-288 | actor/remote_server.go:570-576 | actor/remote_server.go:612-618 | actor/remote_server.go:1341-1347 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) REDACTED:250— REDACTED:250-254 | REDACTED:162-166 | REDACTED:139-145 — before extracting anything, compare `REDACTED` and `REDACTED` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (30 lines × 2) actor/tell_grain_option.go:31— actor/tell_grain_option.go:31-65 | client/tell_grain_option.go:27-56 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (7 lines × 5) actor/dead_letter.go:106— actor/dead_letter.go:106-112 | actor/death_watch.go:123-129 | actor/root_guardian.go:76-82 | actor/system_guardian.go:69-75 | actor/user_guardian.go:72-78 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 5 call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `actor/user_guardian.go:67` calls `Unhandled` and `actor/root_guardian.go:70` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 3) actor/grain_pid.go:1257— actor/grain_pid.go:1257-1263 | REDACTED:1895-1901 | REDACTED:2690-2696 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (9 lines × 4) playground/issue-1386/main.go:651— playground/issue-1386/main.go:651-659 | playground/issue-1391/main.go:577-585 | playground/issue-1413/main.go:759-767 | playground/issue-1415/main.go:858-866 — `playground/issue-1386/main.go` and `playground/issue-1391/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 9 separate duplicated blocks between them, totalling at least 152 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
Duplicated block (15 lines × 11) playground/issue-1017/main.go:229— playground/issue-1017/main.go:229-243 | playground/issue-1022/main.go:122-136 | playground/issue-1031/main.go:111-125 | playground/issue-1134/main.go:249-263 | playground/issue-1203/main.go:148-162 | playground/issue-1209/main.go:209-223 | playground/issue-1227/main.go:131-145 | playground/issue-1255/main.go:387-402 | playground/issue-791/main.go:188-202 | playground/issue-973/main.go:213-227 | playground/issue-x/main.go:217-231 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 11 times. Read the line range as the matched WINDOW rather than a finished unit: at `playground/issue-1017/main.go:229` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 6) playground/issue-1227/main.go:90— playground/issue-1227/main.go:90-102 | playground/issue-1407/main.go:294-306 | playground/issue-1409/main.go:179-191 | playground/issue-1411/main.go:220-232 | playground/issue-1430/main.go:287-299 | playground/issue-1456/main.go:184-196 — `playground/issue-1407/main.go` and `playground/issue-1409/main.go` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `playground/issue-1407/main.go:290` calls `OnDeactivate` and `playground/issue-1411/main.go:216` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 6) stream/sink.go:128— stream/sink.go:128-136 | stream/sink.go:151-159 | stream/sink.go:174-182 | stream/sink.go:213-221 | stream/sink.go:234-242 | stream/sink.go:288-296 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `stream/sink.go:128` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 6) actor/remote_server.go:926— actor/remote_server.go:926-933 | actor/remote_server.go:1026-1033 | actor/remote_server.go:1119-1126 | actor/remote_server.go:1213-1220 | actor/remote_server.go:1274-1281 | actor/remote_server.go:1315-1322 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/remote_server.go:926` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 7) actor/remote_server.go:926— actor/remote_server.go:926-933 | actor/remote_server.go:1026-1033 | actor/remote_server.go:1119-1126 | actor/remote_server.go:1159-1166 | actor/remote_server.go:1213-1220 | actor/remote_server.go:1274-1281 | actor/remote_server.go:1315-1322 — all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `actor/remote_server.go:926` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `actor/remote_server.go:925` calls `Errorf`, `String` and `actor/remote_server.go:1158` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 11) actor/remote_server.go:257— actor/remote_server.go:257-262 | actor/remote_server.go:482-487 | actor/remote_server.go:537-542 | actor/remote_server.go:922-927 | actor/remote_server.go:964-969 | actor/remote_server.go:1022-1027 | actor/remote_server.go:1068-1073 | actor/remote_server.go:1115-1120 | actor/remote_server.go:1209-1214 | actor/remote_server.go:1270-1275 | actor/remote_server.go:1311-1316 — all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
SC1 · Supply-chain hygiene· JavaScript dependencies are not locked · ×1
JavaScript dependencies are not locked — No package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock — JS installs aren't reproducible (SSDF PW.4.4). Commit your package manager's lockfile and install from it (`npm ci`, `yarn --immutable`, `pnpm i --frozen-lockfile` or `bun i --frozen-lockfile`). Advisory — never scored.
X2 · Cancellation propagation· Function without context.Context · ×1
Function without context.Context: getConnection REDACTED:467— `getConnection` calls `net.DialTimeout(…)` but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take `ctx context.Context` as the first parameter and build the request with it: `http.NewRequestWithContext(ctx, …)`, `(&net.Dialer{}).DialContext(ctx, …)`.
README/code drift README.md:72— README.md links to `./architecture/`, but `architecture` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-model.mdx:26— docs/actor/actor-model.mdx links to `/actor/messaging`, but `actor/messaging` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-model.mdx:27— docs/actor/actor-model.mdx links to `/actor/behaviors`, but `actor/behaviors` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-model.mdx:48— docs/actor/actor-model.mdx links to `/actor/actor-system`, but `actor/actor-system` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-model.mdx:94— docs/actor/actor-model.mdx links to `/actor/lifecycle`, but `actor/lifecycle` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-model.mdx:180— docs/actor/actor-model.mdx links to `/actor/reentrancy`, but `actor/reentrancy` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-model.mdx:187— docs/actor/actor-model.mdx links to `/actor/pipeto`, but `actor/pipeto` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-model.mdx:193— docs/actor/actor-model.mdx links to `/actor/scheduling`, but `actor/scheduling` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:19— docs/actor/actor-system.mdx links to `/advanced/event-streams`, but `advanced/event-streams` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:21— docs/actor/actor-system.mdx links to `/advanced/pubsub`, but `advanced/pubsub` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:25— docs/actor/actor-system.mdx links to `/architecture/overview`, but `architecture/overview` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:39— docs/actor/actor-system.mdx links to `/advanced/coordinated-shutdown`, but `advanced/coordinated-shutdown` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:39— docs/actor/actor-system.mdx links to `/getting-started/quickstart`, but `getting-started/quickstart` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:46— docs/actor/actor-system.mdx links to `/clustering/placement`, but `clustering/placement` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:52— docs/actor/actor-system.mdx links to `/actor/singletons`, but `actor/singletons` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:58— docs/actor/actor-system.mdx links to `/actor/lifecycle`, but `actor/lifecycle` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:58— docs/actor/actor-system.mdx links to `/actor/routers`, but `actor/routers` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:59— docs/actor/actor-system.mdx links to `/clustering/overview`, but `clustering/overview` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:70— docs/actor/actor-system.mdx links to `/actor/pid`, but `actor/pid` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:70— docs/actor/actor-system.mdx links to `/actor/location-transparency`, but `actor/location-transparency` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:82— docs/actor/actor-system.mdx links to `/actor/messaging`, but `actor/messaging` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:92— docs/actor/actor-system.mdx links to `/actor/scheduling`, but `actor/scheduling` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:103— docs/actor/actor-system.mdx links to `/advanced/observability`, but `advanced/observability` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:131— docs/actor/actor-system.mdx links to `/advanced/remoting`, but `advanced/remoting` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
README/code drift docs/actor/actor-system.mdx:138— docs/actor/actor-system.mdx links to `/advanced/extensions-and-dependencies`, but `advanced/extensions-and-dependencies` does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents' own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong.
Duplicated predicate actor/reliable_delivery_producer_controller.go:744— `ack.Token() == x.lastCompletedToken && ack.MessageID() == x.lastCompletedMessageID` appears character-identically in 2 files — actor/reliable_delivery_producer_controller.go, actor/reliable_delivery_work_pulling_controller.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate actor/grain_context.go:967— `config != nil && config.circuitBreaker != nil` appears character-identically in 2 files — actor/grain_context.go, REDACTED. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate playground/issue-1413/main.go:346— `err != nil || value < 1 || value > count` appears character-identically in 2 files — playground/issue-1413/main.go, playground/issue-1415/main.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate actor/reliable_delivery_producer_controller.go:1298— `err != nil || x.producer.getEventsStream() == nil` appears character-identically in 2 files — actor/reliable_delivery_producer_controller.go, actor/reliable_delivery_work_pulling_controller.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate REDACTED:1285— `err == nil || !errors.Is(err, gerrors.ErrActorAlreadyExists)` appears character-identically in 2 files — REDACTED, playground/issue-1391/main.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate REDACTED:707— `errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded)` appears character-identically in 2 files — REDACTED, internal/remoteclient/peer.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate actor/reliable_delivery_producer_controller.go:805— `errors.Is(result.err, gerrors.ErrQueueFenced) || errors.Is(result.err, gerrors.ErrQueueConflict)` appears character-identically in 2 files — actor/reliable_delivery_producer_controller.go, actor/reliable_delivery_work_pulling_controller.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate internal/net/duplex.go:926— `frame.Type == FrameTypeReply || frame.Type == FrameTypeError` appears character-identically in 2 files — internal/net/duplex.go, internal/net/duplex_chunk.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate playground/issue-1296/cluster/main.go:106— `msg.Token() == x.lastToken && x.lastProduced != nil` appears character-identically in 2 files — playground/issue-1296/cluster/main.go, playground/issue-1296/main.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate actor/reliable_delivery_producer_controller.go:470— `produced.Token() == x.lastCompletedToken && produced.MessageID() == x.lastCompletedMessageID` appears character-identically in 2 files — actor/reliable_delivery_producer_controller.go, actor/reliable_delivery_work_pulling_controller.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate internal/remoteclient/peer.go:1212— `reply.Type == inet.FrameTypeError && reply.Correlation != 0` appears character-identically in 2 files — internal/remoteclient/peer.go, internal/remoteclient/send.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate actor/reliable_delivery_producer_controller.go:759— `result.sessionID != x.sessionID || !x.opInFlight || result.operationID != x.nextOperationID` appears character-identically in 2 files — actor/reliable_delivery_producer_controller.go, actor/reliable_delivery_work_pulling_controller.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate actor/grain_of.go:71— `rtype.Kind() != reflect.Pointer || rtype.Elem().Kind() != reflect.Struct` appears character-identically in 2 files — actor/grain_of.go, actor/option.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate internal/remoteclient/client.go:737— `typ != nil && typ.Kind() == reflect.Pointer && typ.Elem().Kind() == reflect.Interface` appears character-identically in 2 files — internal/remoteclient/client.go, remote/option.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate actor/actor_system.go:4876— `x.clusterConfig != nil && x.clusterConfig.readTimeout > 0` appears character-identically in 2 files — actor/actor_system.go, REDACTED. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate actor/reliable_delivery_producer_controller.go:466— `x.handshake != producerHandshakeIdle && x.handshake != producerHandshakeCredit && produced.Token() == x.token && produced.MessageID() == x.p…` appears character-identically in 2 files — actor/reliable_delivery_producer_controller.go, actor/reliable_delivery_work_pulling_controller.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate actor/reliable_delivery_producer_controller.go:742— `x.handshake == producerHandshakeAccept && ack.Token() == x.token && ack.MessageID() == x.pendingMessageID` appears character-identically in 2 files — actor/reliable_delivery_producer_controller.go, actor/reliable_delivery_work_pulling_controller.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate actor/reliable_delivery_producer_controller.go:738— `x.handshake == producerHandshakeStoredAck && ack.Token() == x.token && ack.MessageID() == x.pendingMessageID` appears character-identically in 2 files — actor/reliable_delivery_producer_controller.go, actor/reliable_delivery_work_pulling_controller.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate actor/reliable_delivery_producer_controller.go:228— `x.producer == nil || !x.producer.IsLocal()` appears character-identically in 2 files — actor/reliable_delivery_producer_controller.go, actor/reliable_delivery_work_pulling_controller.go. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Silent fallback default on error internal/datacentercontroller/controller.go:651— `secureFloat64` turns a non-nil `err` into `return 0.5` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the `if` or in the doc comment, and the row stops firing.
Silent fallback default on error playground/issue-1301/main.go:351— `askCount` turns a non-nil `err` into `return -1` — a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the `if` or in the doc comment, and the row stops firing.
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion — 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is `(repository root)` (108329 LoC, 576 module-visible types across 125 directories). Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D40 · Network Egress Confinement· No network policy · ×1
No network policy — No Kubernetes NetworkPolicy (or Cilium policy) found. Without one, every pod can talk to every other pod and reach out to the internet by default. Add a default-deny policy and open only the flows you need.
No seccomp profile REDACTED:28— The workload runs a container with no seccomp profile in force (neither RuntimeDefault nor a Localhost profile, on the container or the pod), so Kubernetes runs it Unconfined. Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use.
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
No release approval gate — Deployment is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever reaches the release trigger goes to production unreviewed, so a mistaken merge or tag is live before anyone can stop it.
X2 · Cancellation propagation· Not all functions that make a request accept a context.Context · ×1
Not all functions that make a request accept a context.Context — Only 3/4 functions that make a cancellable request (net/http, net.Dial) accept a context.Context or pass one on, so a request keeps running after whatever wanted it has given up — a cancelled request, a shutdown, an expired deadline. Take `ctx context.Context` as the first parameter and build the request with it (`http.NewRequestWithContext`, `DialContext`); where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
runtime-hardening: not applicable — The repository ships application workloads but no cluster-governance resources (CRDs, admission webhooks, or a committed policy engine). Runtime threat-detection (Falco/Tetragon) and admission control (Kyverno/OPA-Gatekeeper/PodSecurity) are cluster-OPERATOR controls owned by the platform, not shipped by an application repo/chart — nothing for this repo to assess.
Run 01a16050-fe34-791c-9105-e3ee3ef43a95 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 50 · Warnings: 531 · Recommendations: 114 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 21-10-2026 @ 21:14 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.