Public report of tt-a1i/archify, published 29 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 report Measured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.10.5). Assert 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, 29 October 2026, 16:48 UTC · Survey ID cd_51845b126abf4c49bf308ce592d2b4c2

tt-a1i/archify

Measured 29 October 2026, 16:30 UTC, at code version e392089

Regression: 1 dimension fell since the last survey

A regression is a drop of 0.5 points or more in the score, or of 2.5 or more out of 10 in a dimension, since the last survey.

CAI score 39out of 100 Weak
CriticalWeakAdequateStrongExemplary
Down 2 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 medium codebase: 64,875 lines of product code in 4 projects, tests not counted · Estimated rebuild effort: about 0.9 person-years · Weakest lens: Code Health, 28

Findings by how serious they are

8 critical 1069 serious 163 minor

8 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
29 October 2026, 16:30 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 ▸

84of 84 dimensions measured by tools.
1221of 1240 findings point to an exact file and line, so you can open each one in the code. The other 19 concern the repository as a whole, such as missing documentation.
84dimensions across 7 lenses, read from 64,875 lines of product code in 4 projects.
Chapters

Executive summary

tt-a1i/archify falls short of our standard for production, held back most by its Code Health lens, the quality of the code itself. It scores 39 out of 100 and is rated Weak, and one of its eight critical findings is a leaked password or key.

Code Health, at 28, is the weakest lens and counts most in the score. The best first step is simplifying the most tangled methods, worth about 5 points. Adding type checking would lift Code Health itself, also worth about 5. Raising Code Health to 70 would lift the score to about 49.

One password or key is open to anyone who can read the repository. Five controls can't be used without a mouse, and two form fields can't be read by a screen reader. Replacing the exposed password or key, making the controls work with a keyboard and labelling the form fields would close these risks.

The product code is 64,875 lines, about €130,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 for The 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.
Code Health 28 · counts for 46%Accessibility 42 · counts for 25%Production Readiness 43 · counts for 14%Performance 60 · counts for 8%Architecture 67 · counts for 4%Security and Compliance 79 · counts for 2%Maturity 81 · counts for 1%

If Code Health rose from 28 to 70, the lowest score rated Strong, the score would rise from 39 to about 49.

Code composition: what the lines of code are
Product code 44%Tests 56%
New since the last survey: 333 findings

These 333 critical or serious findings weren't in the previous survey, on 15 October 2026. The first 100 are listed here, and the findings file in the download package lists them all.

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: 223 findings

These 223 critical or serious findings were in the previous survey, on 15 October 2026, and are gone from this one. The first 100 are listed here.

  • Cyclomatic Complexity · (anonymous) (cyclomatic 75) viewer/guided-views.js
  • Cyclomatic Complexity · (anonymous) (cyclomatic 65) viewer/focus.js
  • Cyclomatic Complexity · (anonymous) (cyclomatic 52) viewer/semantic-lens.js
  • Cyclomatic Complexity · (anonymous) (cyclomatic 23) viewer/node-finder.js
  • Cyclomatic Complexity · distribution-acceptance.verifyUpgradeProfile (cyclomatic 18) integrations/deepseek-harness/scripts/distribution-acceptance.mjs
  • Cognitive Complexity · (anonymous) (cognitive 84) viewer/guided-views.js
  • Cognitive Complexity · (anonymous) (cognitive 67) viewer/focus.js
  • Cognitive Complexity · (anonymous) (cognitive 64) viewer/semantic-lens.js
  • Cognitive Complexity · (anonymous) (cognitive 20) viewer/node-finder.js
  • Cognitive Complexity · validateGridPlacement (cognitive 20) archify/renderers/architecture/grid.mjs
  • Cognitive Complexity · createSpatialGrid.query (cognitive 17) archify/renderers/shared/spatial-grid.mjs
  • Supply-chain Provenance & Signing · REDACTED
  • Supply-chain Provenance & Signing · REDACTED
  • Supply-chain Provenance & Signing · REDACTED
  • Code Duplication · Duplication concentrated across 3 sibling directories (10 clone groups) archify/bin/preview.mjs
  • Code Duplication · Duplicated block with local edits (61 matched lines × 2 locations) archify/bin/visual-check.mjs
  • Code Duplication · Duplicated block with local edits (26 matched lines × 2 locations) scripts/build-guide.mjs
  • Code Duplication · Duplicated block (15 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (14 lines × 2 locations) archify/bin/visual-check.mjs
  • Code Duplication · Duplicated block with local edits (13 matched lines × 2 locations) archify/bin/visual-check.mjs
  • Code Duplication · Duplicated block (13 lines × 2 locations) archify/renderers/architecture/routing.mjs
  • Code Duplication · Duplicated block (13 lines × 2 locations) archify/renderers/dataflow/dataflow-compiler.mjs
  • Code Duplication · Duplicated block with local edits (13 matched lines × 2 locations) archify/renderers/shared/brand-marks.mjs
  • Code Duplication · Duplicated block (13 lines × 2 locations) archify/renderers/workflow/workflow-compiler.mjs
  • Code Duplication · Duplicated block (13 lines × 2 locations) scripts/run-windows-path-tests.mjs
  • Code Duplication · Duplicated block (13 lines × 2 locations) viewer/intent-trace.js
  • Code Duplication · Duplicated block (12 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (12 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (12 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (12 lines × 4 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (12 lines × 2 locations) archify/bin/preview.mjs
  • Code Duplication · Duplicated block (12 lines × 2 locations) archify/bin/visual-check.mjs
  • Code Duplication · Duplicated block (12 lines × 2 locations) archify/renderers/architecture/routing.mjs
  • Code Duplication · Duplicated block (12 lines × 2 locations) archify/renderers/class/render-class.mjs
  • Code Duplication · Duplicated block (12 lines × 3 locations) archify/renderers/timeline/render-timeline.mjs
  • Code Duplication · Duplicated block (12 lines × 2 locations) archify/renderers/workflow/workflow-compiler.mjs
  • Code Duplication · Duplicated block (12 lines × 2 locations) REDACTED
  • Code Duplication · Duplicated block (12 lines × 2 locations) REDACTED
  • Code Duplication · Duplicated block (11 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (11 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (11 lines × 4 locations) archify/renderers/class/render-class.mjs
  • Code Duplication · Duplicated block (11 lines × 2 locations) archify/renderers/dataflow/dataflow-compiler.mjs
  • Code Duplication · Duplicated block with local edits (11 matched lines × 2 locations) archify/renderers/shared/brand-marks.mjs
  • Code Duplication · Duplicated block (11 lines × 2 locations) archify/renderers/timeline/render-timeline.mjs
  • Code Duplication · Duplicated block (11 lines × 2 locations) archify/renderers/workflow/workflow-compiler.mjs
  • Code Duplication · Duplicated block with local edits (11 matched lines × 2 locations) archify/renderers/workflow/workflow-compiler.mjs
  • Code Duplication · Duplicated block (11 lines × 2 locations) archify/scripts/check-update.mjs
  • Code Duplication · Duplicated block (11 lines × 2 locations) viewer/guided-views.js
  • Code Duplication · Duplicated block (11 lines × 2 locations) viewer/route-probe.js
  • Code Duplication · Duplicated block (10 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (10 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (10 lines × 2 locations) archify/renderers/architecture/render-architecture.mjs
  • Code Duplication · Duplicated block (10 lines × 2 locations) archify/renderers/dataflow/dataflow-compiler.mjs
  • Code Duplication · Duplicated block (10 lines × 2 locations) archify/renderers/dataflow/dataflow-compiler.mjs
  • Code Duplication · Duplicated block (10 lines × 2 locations) archify/renderers/shared/atomic-output.mjs
  • Code Duplication · Duplicated block (10 lines × 2 locations) scripts/run-browser-tests.mjs
  • Code Duplication · Duplicated block (10 lines × 2 locations) viewer/guided-views.js
  • Code Duplication · Duplicated block (10 lines × 4 locations) viewer/intent-trace.js
  • Code Duplication · Duplicated block (10 lines × 2 locations) viewer/node-finder.js
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/renderers/architecture/routing.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/renderers/architecture/routing.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/renderers/class/render-class.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/renderers/class/render-class.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/renderers/class/render-class.mjs
  • Code Duplication · Duplicated block with local edits (9 matched lines × 2 locations) archify/renderers/shared/spatial-grid.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/renderers/timeline/render-timeline.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/renderers/workflow/workflow-compiler.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/scripts/check-render-output.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) archify/scripts/check-update.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) scripts/run-browser-tests.mjs
  • Code Duplication · Duplicated block (9 lines × 2 locations) REDACTED
  • Code Duplication · Duplicated block (9 lines × 2 locations) viewer/focus.js
  • Code Duplication · Duplicated block (9 lines × 2 locations) viewer/focus.js
  • Code Duplication · Duplicated block (9 lines × 8 locations) viewer/focus.js
  • Code Duplication · Duplicated block (9 lines × 2 locations) viewer/guided-views.js
  • Code Duplication · Duplicated block (9 lines × 2 locations) viewer/guided-views.js
  • Code Duplication · Duplicated block (9 lines × 2 locations) viewer/reader-layout.js
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/bin/archify.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/bin/finalize.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/bin/visual-check.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/renderers/architecture/grid.mjs
  • Code Duplication · Duplicated block with local edits (8 matched lines × 2 locations) archify/renderers/class/render-class.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/renderers/dataflow/dataflow-compiler.mjs
  • Code Duplication · Duplicated block (8 lines × 3 locations) archify/renderers/dataflow/dataflow-compiler.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/renderers/lifecycle/render-lifecycle.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/renderers/shared/atomic-output.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/renderers/shared/atomic-output.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/renderers/shared/engineering-profiles.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/renderers/shared/path-semantics.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/renderers/shared/path-semantics.mjs
  • Code Duplication · Duplicated block (8 lines × 2 locations) archify/renderers/workflow/workflow-compiler.mjs
Rebuild cost: about €130,000 · Estimate
Cost to rebuild€42,000 to €210,000, for 697 to 2,212 hours of work, about 0.9 person-years for 1 to 2 engineers
Difficulty of the problemStandard, 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.7 at a score of 39. 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.
SizeMedium: 64,875 lines of product code
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

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
Bring the 157 bodies over 30 down to 30 or less in Cyclomatic Complexity — start with dataflow-compiler.compileDataflow::build (cyclomatic 179), createReadableLayout (cyclomatic 173), compileDataflow::build (cyclomatic 157).
Raises the score by about 5 points · High effort · Cyclomatic Complexity
2
Bring the 213 bodies over 30 down to 30 or less in Cognitive Complexity — start with dataflow-compiler.compileDataflow::build (cognitive 389), compileDataflow::build (cognitive 378), compileExplainerDiagram (cognitive 246).
Raises the score by about 5 points · High effort · Cognitive Complexity
3
Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up.
Raises the score by about 5 points · Medium effort · Type Safety

Diagnosis: what the measurements show together

Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.

Files that change often carry extra risk · Combined risk
7 files are changed often and are hard to read, which makes them the likeliest places for a mistake. They also have under half their code tested, or were written almost entirely by one person, so a mistake there is less likely to be caught, or only one person knows the code well enough to avoid it. A change to these files therefore carries more risk than the overall score suggests.
Based on: Churn × Complexity Hotspots (61 files) · Code Coverage (16 files under half tested) · Bus Factor (0 files written almost entirely by one person) · The files: parse.mjs, diagrams.mjs and atomic-output.mjs
What to do: Add tests to these files and have a second person review every change to them, starting with parse.mjs, diagrams.mjs and atomic-output.mjs.
Where the investment is most exposed · Value at risk
This code would cost about €130,000 to build again, about 0.9 person-years of work. Its weakest lens is Code Health, at 28 (Weak). Code Health is about how easy the code is to read and change safely, and code that is hard to read is slow and risky to change, so every future change costs more than it should. Because the weakest lens counts most in the score, work on Code Health also moves the score most.
Based on: the rebuild estimate · the Code Health grade · how much each lens counts
What to do: Start with the Code Health actions in Top priorities.
If you do one thing first · First action
Bring the 157 bodies over 30 down to 30 or less in Cyclomatic Complexity. Of all the actions in this report, it raises the score most for the work it takes: about 5 points for high effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 4.7 out of 10. Code at that level is slower to change than clean code, and Watchdog estimates the extra work at 8% to 19% on every change. The history of the code shows how much it changes: about 262,559 lines over the last 90 days, which is about 1,064,823 lines a year. At that pace, the extra work comes to an estimated 221.8 to 1331 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of Watchdog's own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.

At a glance — Code Health · 28% · Weak · gated by D1, D2, R1, R3, X5 ·

At a glance — Architecture · 67% · Adequate · gated by D26, R11 ·

At a glance — Maturity · 81% · Strong ·

At a glance — Readiness · 43% · Weak · gated by P2, P3 ·

At a glance — Security · 79% · Adequate · gated by D36 ·

At a glance — Accessibility · 42% · Weak · gated by AC4, AC6 ·

At a glance — Performance · 60% · Adequate ·

Security & Compliance — OWASP Top-10 mapping

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 categoryFindingsSeverity
A05:2025 — Injection12Medium
A03:2025 — Software Supply Chain Failures9Medium
A07:2025 — Authentication Failures2High / Critical

Roadmap

Begin by refactoring the most complex functions in the dataflow compiler to reduce cyclomatic and cognitive complexity, splitting large files into focused modules to improve maintainability. Simultaneously, introduce TypeScript type checking to the build process and adopt strict null checks to eliminate runtime errors and enforce safer code practices. These steps collectively address the highest-impact technical debt areas, creating a more stable and understandable codebase for future development.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Bring the 157 bodies over 30 down to 30 or less in Cyclomatic Complexity — start with dataflow-compiler.compileDataflow::build (cyclomatic 179), createReadableLayout (cyclomatic 173), compileDataflow::build (cyclomatic 157).+5.4 ptsHighCyclomatic Complexity
Bring the 213 bodies over 30 down to 30 or less in Cognitive Complexity — start with dataflow-compiler.compileDataflow::build (cognitive 389), compileDataflow::build (cognitive 378), compileExplainerDiagram (cognitive 246).+5.4 ptsHighCognitive Complexity
Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up.+4.7 ptsMediumType Safety
Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.+4.4 ptsMediumLarge Files
The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).+2.9 ptsMediumNullable reference types
Resolve the 31 FunctionTooLong finding(s) in God Classes — start with atomic-output.mjs (4), workflow-compiler.mjs (3), routing.mjs (3).+2.7 ptsHighGod Classes
Resolve the 16 Low coverage finding(s) in Code Coverage — start with browser-check.mjs, REDACTED, diagrams.mjs.+1.4 ptsMediumCode Coverage
Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.+2.2 ptsMediumKeyboard semantics

File quality

Per-file score 0–10 — a quality signature. Of 104 files carrying findings, judged against the Production bar: 0% slop · 88% mixed · 12% near-clean.

FileScoreBandWorst signal
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.9MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED4.9MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED5.0MixedStatic Analysis (SAST): Medium: REDACTED
REDACTED5.1MixedStatic Analysis (SAST): Medium: REDACTED
archify/explainer/diagrams.mjs5.5MixedCyclomatic Complexity: compileExplainerDiagram (cyclomatic 111)
archify/renderers/shared/atomic-output.mjs5.5MixedCyclomatic Complexity: atomic-output.parsePublicationRecoveryRecord (cyclomatic 42)
archify/renderers/shared/path-semantics.mjs5.5MixedCyclomatic Complexity: path-semantics.resolvePlan (cyclomatic 30)
archify/explainer/browser-check.mjs5.5MixedCyclomatic Complexity: measurePublicHtml (cyclomatic 78)
archify/explainer/parse.mjs5.5MixedCyclomatic Complexity: parseExplainer::directive (cyclomatic 108)
archify/renderers/shared/portable-path.mjs5.6MixedCyclomatic Complexity: portable-path.validatePortablePath (cyclomatic 23)
archify/renderers/shared/output-path.mjs5.6MixedCyclomatic Complexity: output-path.resolveOutputPath (cyclomatic 21)
REDACTED5.7MixedStatic Analysis (SAST): Medium: REDACTED
archify/explainer/revision.mjs6.3MixedCyclomatic Complexity: revision.computeExplainerRevision (cyclomatic 17)
archify/renderers/shared/text-fit.mjs6.3MixedCyclomatic Complexity: text-fit.nodeLabelLayout (cyclomatic 16)
REDACTED6.9MixedStatic Analysis (SAST): Medium: REDACTED
archify/renderers/dataflow/dataflow-compiler.mjs7.0MixedCyclomatic Complexity: dataflow-compiler.compileDataflow::build (cyclomatic 179)
archify/renderers/workflow/workflow-compiler.mjs7.0MixedCyclomatic Complexity: createReadableLayout (cyclomatic 173)
archify/renderers/architecture/routing.mjs7.0MixedCyclomatic Complexity: routing.createRouter.routeVia (cyclomatic 127)

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 — 8

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 — 1069

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 — 163

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 8

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. 84 of 84 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); none rely on LLM judgement. 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 — 84 dimensions across the health lenses
D1D2D3D5D6D7D8D9D10D11D12D13D14D15D16D17D19D20D26D28D29D30D34D35D36D37D43AC1AC2AC3AC4AC5AC6AC7AX10AX3AX4GD1IC1M1M2M3M4P1P10P2P3P4P6PF3R1R10R11R2R3R4R5R6R7R8R9S1X1X12X13X14X15X16X17X18X19X2X21X22X23X24X25X26X27X28X29X3X30X5

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
  1. 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, 1221 of 1240 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.)
  2. 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.
  3. 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.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
Watchdog duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivySecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement—◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 01a1887f-5f21-7376-9e9b-792d639f7309.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

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.

  • D19 Documentation Quality — 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. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
  • D21 Naming 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. D21's deterministic naming rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. Until then its declarations carry no naming verdict this run — this says nothing about whether its names are consistent.
  • 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's deterministic call-shape rules are gated on C# first (docs/plans/deterministic-engine.md, P5): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
  • D24 Comment Value — 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's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
  • 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.
  • D32 Data Compliance (PII/GDPR) — 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. `.agents/skills/archify-tuning/scripts/lib.mjs`, `archify/explainer/browser-check.mjs`, `REDACTED`, `archify/renderers/shared/utils.mjs`, `archify/scripts/check-render-output.mjs` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
  • D44 Platform End-of-Life — 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 dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a build.sbt scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a Dockerfile) is simply not read here yet.
  • AC6 Visual & motion safety — 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. 29 further occurrence(s) are not listed individually; the score already reflects all 69.
  • 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 DevServer (dev). the dev server did not expose a crawlable HTTP endpoint in time — no runtime evidence.
  • 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. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • P5 DR & Backup — 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. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
  • R10 Code Duplication — 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. 176 further occurrence(s) are not listed individually; the score already reflects all 216.
  • 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. 49 further occurrence(s) are not listed individually; the score already reflects all 89.
  • 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.

Repo exclusion declarations: 12 pattern(s) declared (.gitattributes linguist-generated/vendored, .editorconfig generated_code) excluded 0 source file(s) from code-quality scoring. Declarations are the repo's own visible statement that a tree is machine-written or vendored — auditable in any diff, honored by GitHub the same way.

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.
  • 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.
  • D7 Architectural Integrity: Layering is checked against detected/declared rules — an architecture whose boundaries live in convention or in code review, not in a rule a scanner can read, is not enforced here.
  • D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
  • 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.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • 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 REDACTED Scanning: REDACTED 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.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • 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 publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and 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.
  • 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.
  • 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.
  • AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
  • AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
  • AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
  • AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
  • AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them. The two-branch toggle check (a control whose state is conveyed only by which of two mutually exclusive branches renders) reads CONDITIONALS THAT ARE ATTRIBUTES — Vue v-if/v-else/v-show and Alpine x-if/x-show — so the same toggle written as a Svelte {#if} block or a JSX ternary is control flow the markup model never projects as a branch and is not seen at all.
  • AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
  • AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
  • 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.

Dimensions

D1 · Cyclomatic Complexity2.0 / 10Critical✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

451 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was dataflow-compiler.compileDataflow::build at 179. A further 3 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 export-cleanup.cleanExportClone at 22 — they are counted neither in the figure above nor in this dimension's score. 2 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: viewer/export-cleanup.js (cleanExportClone at 22), viewer/export-cleanup.js (export-cleanup.cleanExportClone at 22). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

workflow-compiler.compileWorkflowInternal::validateWorkflow (cyclomatic 91) · ×11archify/renderers/workflow/workflow-compiler.mjs:2693
compileWorkflowInternal::automaticEndpointRepairs (cyclomatic 45) · ×9archify/renderers/workflow/workflow-compiler.mjs:4503
compileDataflow::build::validateDataflow (cyclomatic 56) · ×3archify/renderers/dataflow/dataflow-compiler.mjs:250
routing.createRouter.planRoutes::improveReciprocalPairs (cyclomatic 49) · ×2archify/renderers/architecture/routing.mjs:1088
createRouter.planRoutes::improveReciprocalPairs (cyclomatic 47) · ×2archify/renderers/architecture/routing.mjs:1088

+ 275 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 157 bodies over 30 down to 30 or less in Cyclomatic Complexity — start with dataflow-compiler.compileDataflow::build (cyclomatic 179), createReadableLayout (cyclomatic 173), compileDataflow::build (cyclomatic 157). — 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 157 together lifts Cyclomatic Complexity from 2.0 to about 5.6/10, projected with the scoring formula itself and assuming each lands exactly at 30; a cleaner split scores higher.
  2. 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.

D2 · Cognitive Complexity2.0 / 10Critical✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

512 method(s) exceeded the cognitive complexity threshold of 15; the worst was dataflow-compiler.compileDataflow::build at 389.

workflow-compiler.compileWorkflowInternal::validateReadablePinnedGeometry (cognitive 158) · ×17archify/renderers/workflow/workflow-compiler.mjs:2378
compileWorkflowInternal::readableAutomaticVia (cognitive 94) · ×8archify/renderers/workflow/workflow-compiler.mjs:4042
dataflow-compiler.compileDataflow::build (cognitive 389) · ×3archify/renderers/dataflow/dataflow-compiler.mjs:63
createRouter.planRoutes::improveReciprocalPairs (cognitive 71) · ×3archify/renderers/architecture/routing.mjs:1088
routing.createRouter.planRoutes::improveReciprocalPairs (cognitive 63) · ×3archify/renderers/architecture/routing.mjs:1088

+ 313 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 213 bodies over 30 down to 30 or less in Cognitive Complexity — start with dataflow-compiler.compileDataflow::build (cognitive 389), compileDataflow::build (cognitive 378), compileExplainerDiagram (cognitive 246). — 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 213 together lifts Cognitive Complexity from 2.0 to about 5.6/10, projected with the scoring formula itself and assuming each lands exactly at 30; a cleaner split scores higher.
  2. 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.

D3 · God Classes6.9 / 10Adequate✓ 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.

Maturity: Documented → Verified → Prevented · effective 6.9 / 10 · rule-coverage 100% · ceiling Prevented

54 over-large unit(s) detected — types, modules or files that carry too much.

FunctionTooLong: workflow-compiler.compileWorkflowInternal · ×31archify/renderers/workflow/workflow-compiler.mjs:1362
FileTooLong: workflow/workflow-compiler.mjs · ×23archify/renderers/workflow/workflow-compiler.mjs

What to do

  1. Resolve the 31 FunctionTooLong finding(s) in God Classes — start with atomic-output.mjs (4), workflow-compiler.mjs (3), routing.mjs (3). — One of this dimension's main actionable groups (31 warning-level).
  2. Resolve the 23 FileTooLong finding(s) in God Classes — start with workflow-compiler.mjs, geometry.mjs, atomic-output.mjs. — One of this dimension's main actionable groups (23 warning-level).
  3. 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.

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

3 production modules (npm), 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, with abstractness counted on 1 of the 3 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).

✓ On the Gold path — maintain.

Detailed fixes: d5_recommendation.md.

D6 · Cohesion (LCOM4)10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 4 classes have LCOM4 above 3.

✓ On the Gold path — maintain.

Detailed fixes: d6_recommendation.md.

D7 · Architectural Integrity6.0 / 10Adequate✓ Tool-verified

What it measures: Whether the code respects its intended layering / architecture rules.

Method: Enforcement rung (Prevented/Verified/Documented) per checkable ADR via Roslyn, plus dependency cycles via the engine shared with D5/AX3. Deterministic, exact.

Maturity: Documented → Verified → Prevented · effective 6.0 / 10 · rule-coverage 100% · ceiling Prevented

No mechanizable ADR was identified, so enforcement is not measured. Dependency cycles not checked (no project-reference graph; where this repository's language has an import-cycle lens, cycles are reported there).

What to do

  1. Enforce Architectural Integrity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d7_recommendation.md.

D8 · Code Coverage5.8 / 10Adequate✓ Tool-verified

What it measures: How much of the code is actually exercised by tests.

Method: Coverage from coverlet runs or committed reports (Cobertura/OpenCover/lcov), computed per-file with structured exclusions for generated, trivial, and glue code. When the suite can't be built/run in-image AND no report is committed, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.

Maturity: Documented → Verified → Prevented · effective 5.8 / 10 · rule-coverage 100% · ceiling Verified

Line coverage 26.4% — 16 file(s) below 50%. Measured from the JavaScript/TypeScript suite (node:test via `npm ci --ignore-scripts` in website/).

Low coverage: archify/explainer/browser-check.mjs · ×16archify/explainer/browser-check.mjs:1

What to do

  1. Resolve the 16 Low coverage finding(s) in Code Coverage — start with browser-check.mjs, REDACTED, diagrams.mjs. — One of this dimension's main actionable groups (16 warning-level).
  2. Enforce Code Coverage in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

Detailed fixes: d8_recommendation.md · top locations in Appendix A, every location in findings.md.

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

2599 test methods: 2556 unit, 43 integration, 0 BDD, 0 e2e. The JavaScript/TypeScript suite contributes 2599 `it`/`test` case(s) across 271 test file(s) declaring at least one; its tier split is read from package names and paths only.

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.md.

D10 · Test Quality10.0 / 10Stronggated by 2 serious findings✓ Tool-verified

What it measures: Whether the tests truly assert behaviour rather than just running the code.

Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

109 skipped (109 with a documented reason), 0 zero-assertion, 2 synchronised by a fixed sleep, no mocking-framework packages referenced (hand-written doubles or no mocking) across 2599 tests.

Fixed-sleep synchronisation: a snooze waits briefly for an in-flight refresh instead of losing the choice · ×2test/update-notifier.test.mjs:2111
Skipped (documented): automatic architectures preserve primary reading size when fitting the full page would shrink text · ×109test/architecture-reading-size-browser.test.mjs:11

What to do

  1. Resolve the 2 Fixed-sleep synchronisation finding(s) in Test Quality — start with update-notifier.test.mjs (2). — One of this dimension's main actionable groups (2 warning-level).
  2. Enforce Test Quality in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 flaky across 1 measured tier(s). JavaScript/TypeScript (node:test via `npm ci --ignore-scripts` in website/ (80 tests)): measured (0 flaky).

✓ On the Gold path — maintain.

Detailed fixes: d11_recommendation.md.

D12 · Dependency Hygiene9.8 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Verified

4 outdated direct production npm dependency(ies) of 6 graded, 0 pinning defect(s), across 3 package.json (2 of them the product) and 3 committed lockfile(s). Development dependencies are deliberately not graded for currency: that grade is about what SHIPS. 0 direct dependency(ies) — production, development or optional — are marked DEPRECATED by their publisher (the registry's per-version mark, or the lockfile's copy of it when the registry could not be asked); deprecated transitive packages are listed but not charged. Whether any is UNMAINTAINED is not graded — the registry 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, and the frontend dependency lens (R8) answers it in this same run. Known CVEs in this dependency graph are D30's question, read from the manifest there.

Outdated (npm): @astrojs/react · ×4

✓ On the Gold path — maintain.

Detailed fixes: d12_recommendation.md · top locations in Appendix A, every location in findings.md.

D13 · REDACTED Scanning10.0 / 10Exemplary○ Nothing flagged

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

REDACTED scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance10.0 / 10Exemplary○ Nothing flagged

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 6 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 6 production dependency(ies) this repository's committed lockfile resolves, across 2 product package.json manifest(s). Its 12 `devDependencies` declaration(s) are excluded: a consumer installs none of them. ★ DEPTH: this is the DIRECT production set the lockfile resolves, NOT the transitive closure — only one of the four lock dialects this pass reads states a full graph, so a banned licence pulled in only by a dependency's OWN dependencies is outside this verdict, exactly as the JVM arm's declaration-site verdict is. ★ Each licence is the one the registry publishes for the package's CURRENT release rather than for the pinned version, which is the same caveat the Hex and RubyGems arms carry. This repository publishes itself under Apache-2.0 / MIT, which is its own choice and is not judged here.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots6.9 / 10Adequate✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 6.9 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: archify/renderers/workflow/workflow-compiler.mjs (59×1152=67968); archify/bin/archify.mjs (59×124=7316); archify/renderers/architecture/render-architecture.mjs (44×129=5676) Repeated repair below the complexity floor: scripts/build-readme-showcase.mjs (9 of 10 changes were fixes); archify/renderers/timeline/render-timeline.mjs (7 of 9 changes were fixes); scripts/write-deterministic-zip.mjs (5 of 6 changes were fixes)

Hotspot: archify/renderers/workflow/workflow-compiler.mjs · ×53archify/renderers/workflow/workflow-compiler.mjs:1362
Repeated repair: scripts/build-readme-showcase.mjs · ×8scripts/build-readme-showcase.mjs:308

What to do

  1. Resolve the 53 Hotspot finding(s) in Churn × Complexity Hotspots — start with workflow-compiler.mjs, archify.mjs, render-architecture.mjs. — One of this dimension's main actionable groups (53 warning-level).
  2. Resolve the 8 Repeated repair finding(s) in Churn × Complexity Hotspots — start with build-readme-showcase.mjs, render-timeline.mjs, write-deterministic-zip.mjs. — One of this dimension's main actionable groups (8 warning-level).

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

D16 · Bus Factor9.5 / 10Exemplary✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

Maturity: Documented → Verified → Prevented · effective 9.5 / 10 · rule-coverage 100% · ceiling Documented

4 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is archify/renderers/shared/path-semantics.mjs. Counted over 81 of the 94 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Off-boarding risk: anonymized user #1
Further sole-owners (lower concentration)

✓ On the Gold path — maintain.

Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.

D17 · Explicit Debt10.0 / 10Exemplary○ Nothing flagged

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 deducted task-comment markers across 123 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.

✓ On the Gold path — maintain.

Detailed fixes: d17_recommendation.md.

D19 · Documentation Quality10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

1 of 1 documentation facets pass in full. 55 document(s) read across 1 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

D20 · ADR Quality10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether architecture decisions are recorded well (context, decision, consequences).

Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 of 1 evaluated ADRs have a defect readable from the log itself (a missing or empty section, no title, a single option, consequences with no cost, no status, a missing enforcement field, a status the log contradicts, a dangling link, an unlinked second decision on one question, a date that is no calendar day). How well each record argues its case is not measured.

✓ On the Gold path — maintain.

Detailed fixes: d20_recommendation.md.

D26 · Project Cohesion0.0 / 10Critical✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic, LLM-independent.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

2 of 4 build units (npm) flagged as possibly oversized/incoherent.

Projects may be oversized for their cohesion

What to do

  1. 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.

D28 · Secrets (history)9.0 / 10Adequategated by 1 critical finding✓ Tool-verified

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: REDACTED 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.

Maturity: Documented → Verified → Prevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Documented

1 finding(s): 0 critical, 1 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.

REDACTED
REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Secrets (history) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
  2. Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.

D29 · Static Analysis (SAST)5.6 / 10Adequate✓ Tool-verified

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).

Maturity: Documented → Verified → Prevented · effective 5.6 / 10 · rule-coverage 100% · ceiling Documented

12 finding(s): 0 critical, 0 high, 11 medium, 1 low. semgrep hit a parse error in 7 file(s) — `.agents/skills/archify-tuning/scripts/lib.mjs` (line 161), `archify/explainer/browser-check.mjs` (line 19), `REDACTED` (lines 25–26), `archify/renderers/dataflow/dataflow-compiler.mjs`, `archify/renderers/shared/utils.mjs` (lines 130–131, lines 131–132), … (+2 more) — 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 1 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

+ 3 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (4 warning-level).
  2. Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 warning-level).
  3. Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D30 · Dependency Vulnerabilities9.6 / 10Stronggated by 2 serious findings✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 9.6 / 10 · rule-coverage 100% · ceiling Documented

2 finding(s): 0 critical, 0 high, 2 medium, 0 low.

REDACTED

What to do

  1. Resolve the 2 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).

Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.

D34 · Knowledge Freshness10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Every significant source file has living knowledge — recently and meaningfully worked. Counted over 81 of the 94 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md.

D35 · Change Coupling10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

D36 · Supply-chain Provenance & Signing2.5 / 10Weak✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 2.5 / 10 · rule-coverage 100% · ceiling Documented

1/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

+ 2 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.

D37 · Vulnerability-disclosure Policy10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No dependency in any ecosystem this repository declares is published as malicious.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AC1 · Text alternatives10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether non-text content carries a text alternative — img/area/input[type=image] have alt, a meaningful svg has a title or aria-label, video has a captions track, and object/embed/canvas have a name or fallback content. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: every img/area/input[type=image] checked for alt, svg[role=img] for a title/aria-label, video for a captions <track>. Components skipped, spreads suppressed. Deterministic, hard fact per element.

Coverage: Population: image/media elements — img, area, input[type=image], svg, video, object, embed, canvas — across the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and dynamic-attribute elements are skipped. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is NOT read by any producer, so it contributes no element to this population; where such a frontend is present the card discloses it as an analyzer gap rather than scoring around it.

AC2 · Forms & labels7.8 / 10Strong✓ Tool-verified

Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, a click handler on a plain element names the control it declares, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.

Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label. (×2) — scripts/guide-template.html:225, website/src/pages/guide.astro:39

What to do

  • Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure6.3 / 10Adequate✓ Tool-verified

Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.

Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×8) — archify/assets/template.html:2, experiments/mco-showcase/mco-runtime.html:2, experiments/v3-mermaid-validation/output-C-archify/1.html:2, …

What to do

  • Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC4 · Keyboard semantics1.0 / 10Critical✓ Tool-verified

Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no element the repo's own CSS styles `cursor: pointer` without giving it any of the three, no unfocusable element whose only binding is a mouse enter/leave pair or a double-click, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.

Coverage: Population: elements that pose a keyboard-semantics question, in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) — a non-natively-interactive element carrying a click handler, a double-click or hover enter/leave binding, a pointer-only gesture on a tabindex="0" element, or `cursor: pointer` from the repo's own CSS; an href-less or placeholder-href (#, javascript:) anchor; and any element with a positive tabindex. Natively interactive elements used correctly (<button>, <a href>, form controls) are NOT in the population — there is nothing to judge — so a page of nothing but correct controls gives AC4 nothing to measure. Keyboard reachability is judged from the markup, never from a rendered page. ★ An interactive element declared in a tagged-template (html`…`) or hyperscript frontend is NOT in this population — no producer reads either — so an empty population is reported as an analyzer gap, never as "this repository has no interactive elements".

  • A script attaches a click listener to this <div>, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a <button>, or add role + tabindex="0" + a key handler. (×4) — scripts/guide-template.html:226, scripts/guide-template.html:231, scripts/guide-template.html:239, …
  • The repo's own CSS styles .card with `cursor: pointer`, so this <main> is a control — but it has no role, no tabindex="0" and no key handler, so it can only be reached with a mouse. Use a <button>, or add role + tabindex="0" + a key handler. — tools/contributor-cards/template.html:257

What to do

  • Make custom controls keyboard-operable (role + tabindex + key handler), drop positive tabindex, and give anchors a real href.
AC5 · ARIA correctness10.0 / 10Exemplary○ Nothing flagged

Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.

Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.

Coverage: Population: elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx) that carry a role or an aria-* attribute; roles and token values are checked against the ARIA enums exhaustively within that set. An expression-valued (dynamic) role or aria-* value is skipped rather than guessed, and markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

AC6 · Visual & motion safety2.9 / 10Weak✓ Tool-verified

Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.

Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.

Coverage: Population: styled elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx), plus in-repo <style> blocks, in-repo .css files and CSS-in-JS literals. Colour contrast is computed from LITERAL colour pairs only (hex/rgb/hsl/named, including var() tokens and Tailwind neutral utilities) — computed, runtime-themed and external-CDN colour is never resolved, so this is a partial read of contrast by construction. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.

  • `.node-finder-input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×3) — archify/assets/template.html:2413, experiments/mco-showcase/mco-runtime.html:2413, viewer/viewer.css:2244
  • `.node-finder-input:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×3) — archify/assets/template.html:2419, experiments/mco-showcase/mco-runtime.html:2419, viewer/viewer.css:2250
  • `svg [data-node-id]:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×3) — archify/assets/template.html:4313, experiments/mco-showcase/mco-runtime.html:4270, viewer/viewer.css:4144
  • `svg [data-legend-kind]:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×3) — archify/assets/template.html:4316, experiments/mco-showcase/mco-runtime.html:4273, viewer/viewer.css:4147
  • `.relationship-hit-target` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible. (×3) — archify/assets/template.html:4474, experiments/mco-showcase/mco-runtime.html:4431, viewer/viewer.css:4305
  • `html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-entry="running"] .diagram-container::before` moves (`animation: archify-signal-scan 4.8s ease-in-out 1 both`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:836
  • `.diagram-container.is-camera-moving svg` moves (`transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:919
  • `.diagram-guide-action` moves (`transition: border-color 140ms ease, background 140ms ease, transform 140ms ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:2202
  • `html[data-reader-rail="overlay"] .reader-rail` moves (`animation: rail-drawer-in 0.2s cubic-bezier(0.22, 1, 0.36, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:2704
  • `.node-outline-item::after` moves (`transition: opacity 0.16s ease, transform 0.16s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:2918
  • `.node-outline-dot` moves (`transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:2937
  • `.toolbar #btn-theme::after` moves (`transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:3248
  • `.toolbar #theme-icon` moves (`transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:3259
  • `.preset-control-mark` moves (`transition: border-radius 0.15s, box-shadow 0.15s, transform 0.15s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:3324
  • `.preset-option-swatch` moves (`transition: box-shadow 0.14s ease, transform 0.14s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:3442
  • `html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) #btn-motion .motion-control-dot` moves (`animation: archify-motion-dot-breathe var(--flow-cycle-chrome, 6.4s) ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:3592
  • `.archify-toast` moves (`transition: opacity 0.2s, transform 0.2s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. (×2) — experiments/mco-showcase/mco-runtime.html:3790, experiments/visual-evolution/prototype.html:502
  • `html[data-preset="classic"] .diagram-container > svg [data-node-id]` moves (`transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/mco-showcase/mco-runtime.html:4149
  • `.container` moves (`transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease, color .25s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/visual-evolution/prototype.html:643
  • `html[data-prototype-variant="signal"] .diagram-container::before` moves (`animation: prototype-scan 6s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — experiments/visual-evolution/prototype.html:706
  • `.card` moves (`transition: transform .22s var(--ease-out),border-color .22s var(--ease-out),box-shadow .22s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. (×2) — scripts/guide-template.html:133, website/src/styles/guide.css:77
  • `.preview-shell iframe` moves (`transition: transform 1.2s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — website/src/styles/gallery.css:187
  • `.life-plate` moves (`transition: transform .5s var(--ease-out),border-color .3s var(--ease-out),box-shadow .5s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — website/src/styles/gallery.css:232
  • `.page-plate img` moves (`transition: transform 1.2s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — website/src/styles/gallery.css:242
  • `.page-plate:hover img` moves (`transition: transform 7s cubic-bezier(.45,0,.4,1) .15s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — website/src/styles/gallery.css:243
  • `.btn` moves (`transition: background .2s var(--ease-out),color .2s var(--ease-out),border-color .2s var(--ease-out),transform .2s var(--ease-out),box-shadow .2s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — website/src/styles/index.css:23
  • `.eyebrow-arrow` moves (`transition: transform .2s var(--ease-out),color .2s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — website/src/styles/index.css:67
  • `.mode-thumb` moves (`transition: transform .5s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce. — website/src/styles/index.css:123

What to do

  • Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
AC7 · A11y enforcement4.0 / 10Weak✓ Tool-verified

Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an accessibility checker configured over the markup (an a11y lint rule set, e.g. eslint-plugin-jsx-a11y or vuejs-accessibility where the project lints JavaScript) and an automated accessibility assertion wired into tests or CI (axe/pa11y/Lighthouse or an equivalent) — on the Documented→Verified→Prevented ladder.

Method: Repo config/CI scan: an accessibility checker configured over the markup (an a11y lint rule set such as eslint-plugin-jsx-a11y / vuejs-accessibility where JavaScript is linted) and an automated accessibility assertion in tests or CI (axe/pa11y/Lighthouse or equivalent), graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.

Coverage: Population: the repository's own tooling configuration — lint config, test and CI files — NOT the markup. It is read for a configured accessibility checker and an automated accessibility assertion (axe/pa11y/Lighthouse, or a native-toolkit equivalent), and it credits an INVOCATION, never a mention: a licence filename, an import comment or a doc reference earns no rung. Enforcement configured entirely outside the repository leaves no evidence here and cannot be credited.

  • No accessibility enforcement found — no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 36 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.

What to do

  • Enforce accessibility in the toolchain: add eslint-plugin-jsx-a11y, then assert with your test runner's axe binding (jest-axe, vitest-axe, cypress-axe or @axe-core/playwright) in tests, then gate axe/pa11y/Lighthouse in CI.
AX10 · Code composition9.8 / 10Exemplary✓ Tool-verified

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.
AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

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.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

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.

GD1 · Unfinished & placeholder code10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unreviewed-generation residue in this repository's JavaScript/TypeScript: functions whose whole body still throws a "not implemented" error, and placeholder text (lorem ipsum, changeme/replace_me…) left in strings and JSX of non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.

Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.

IC1 · Incompleteness & stubs10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's JavaScript/TypeScript: functions that only throw a "not implemented" error, functions that take inputs and return a constant or do nothing, async functions that never await, dead `if (false)` branches, and skeleton classes most of whose methods are holes.

Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.

M1 · Documentation (README)8.7 / 10Strong✓ Tool-verified

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 a README to the 1 of 3 project(s) that lack one — worth up to 0.7 pts.
M2 · Architecture documentation7.0 / 10Strong✓ Tool-verified

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.

  • 1 ADR-shaped document(s) detected by content — `.agents/skills/simplify-codebase/references/decision-records.md`. They are not under a conventional ADR folder (docs/adr/) and are not named NNNN-title.md, and this check found them by their decision signature rather than by where they live — so a reader who does not already know these paths has no route to them. Detected by content signature only: records kept outside the repository, or written without a Status/Decision/Consequences shape, are not visible to this check and are not counted here.

What to do

  • Move ADRs under docs/adr/ (or docs/adrs/) and name them NNNN-title.md so they're easy to find.
M3 · Folder & project structure8.0 / 10Strong✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

  • Production code isn't grouped under a src/ folder — it's spread across several top-level directories, so there's no one place that says 'this is the product'.

What to do

  • Group production code under src/ (or split deliberately, e.g. backend/ + frontend/) so production and tooling code aren't mixed at the root.
M4 · Documentation accuracy10.0 / 10Exemplary○ Nothing flagged

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.

P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

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.

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.

P2 · Observability0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.

Method: Filesystem/Roslyn scan: structured-logging frameworks (Serilog, NLog), OpenTelemetry, and health-check endpoint patterns. Exhaustive, deterministic.

  • No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.

What to do

  • Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

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.

  • No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 44652 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner. — REDACTED:6
  • `package.json` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`. — package.json:19

What to do

  • Add a SAST step to CI running what this repository's stack ships: CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security — so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback5.0 / 10Adequate✓ Tool-verified

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.

What to do

  • Make sure a person approves each release. The release job names an environment, but its approval rules live in the code host's settings, where Watchdog can't see them. Check that a reviewer must approve each release, or publish releases as drafts first, so a bad build can be stopped before anyone downloads it.
P6 · Release Hygiene10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

PF3 · Async & latency hygiene6.0 / 10Adequate✓ Tool-verified

Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.

Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from the language model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.

  • `fs.mkdirSync` in `startPreview` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — archify/bin/preview.mjs:371
  • `fs.mkdtempSync` in `startPreview` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — archify/bin/preview.mjs:376
  • `fs.rmdirSync` in `startPreview` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — archify/bin/preview.mjs:383
  • `fs.writeFileSync` in `beginBuild` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — archify/bin/preview.mjs:772
  • `fs.lstatSync` in `beginBuild` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — archify/bin/preview.mjs:773
  • `fs.writeFileSync` in `inspect` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — archify/bin/visual-check.mjs:1888
  • `fs.mkdtempSync` in `runBrowserEvidence` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — archify/bin/visual-check.mjs:2503
  • `fs.lstatSync` in `runBrowserEvidence` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — archify/bin/visual-check.mjs:2505
  • `fs.writeFileSync` in `inspectPublicHtml` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — archify/explainer/browser-check.mjs:123
  • `fs.writeFileSync` in `prepareExplainerDiagrams` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — archify/explainer/diagrams.mjs:481
  • `fs.readFileSync` in `prepareExplainerDiagrams` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — archify/explainer/diagrams.mjs:487
  • `fs.mkdirSync` in `apply` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — integrations/deepseek-harness/test/probe-skills.mjs:52
  • `fs.writeFileSync` in `apply` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — integrations/deepseek-harness/test/probe-skills.mjs:53
  • `fs.mkdirSync` in `captureFrames` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — scripts/build-readme-showcase.mjs:311, scripts/build-readme-showcase.mjs:312
  • `fs.writeFileSync` in `captureFrames` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. (×2) — scripts/build-readme-showcase.mjs:348, scripts/build-readme-showcase.mjs:372
  • `fs.mkdtempSync` in `withCaptureDirectory` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/build-readme-showcase.mjs:402
  • `fs.rmSync` in `withCaptureDirectory` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/build-readme-showcase.mjs:410
  • `fs.existsSync` in `main` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/build-readme-showcase.mjs:417
  • `fs.statSync` in `callback to withCaptureDirectory` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/build-readme-showcase.mjs:434
  • `fs.writeFileSync` in `callback to withCaptureDirectory` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — scripts/build-readme-showcase.mjs:446
  • `fs.rmSync` in `removeTempTree` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — test/webm-artifact.smoke.mjs:239
  • `fs.writeFileSync` in `captureRouteShareCard` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — test/webm-artifact.smoke.mjs:1193
  • `execFileSync` in `captureRouteShareCard` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — test/webm-artifact.smoke.mjs:1194
  • `fs.mkdirSync` in `captureReachShareCard` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — test/webm-artifact.smoke.mjs:1588
  • `fs.writeFileSync` in `captureReachShareCard` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs. — test/webm-artifact.smoke.mjs:1589

What to do

  • TypeScript/JavaScript: use the promise APIs (fs/promises, a promisified child_process.execFile, the async zlib/crypto functions) and await them instead of the *Sync variants.
R1 · Type Safety0.0 / 10Critical✓ Tool-verified

React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.

Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.

  • 0 typed · 384 plain JS — the untyped files are REDACTED, archify/explainer/browser-check.mjs, archify/explainer/charts.mjs, REDACTED, archify/explainer/diagrams.mjs, archify/explainer/diff.mjs (+378 more).

What to do

  • Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up.
R10 · Code Duplication8.4 / 10Strong✓ Tool-verified

React / JS · Code Health — Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm over JS/TS tokens, D-386): a block is reported only where its copies still agree on most of their own identifiers and literals, or were renamed as they were pasted but kept most of their constants, and where the copies carry enough code to stand on their own or the copied extent reaches 30 lines — so a re-implementation sharing neither names nor values, and a small pasted declaration, are both found and deliberately not reported, and a clean R10 is not a claim that nothing was copied.

Method: Near-exact copy-pasted blocks of substantial extent across the frontend (the D4 clone algorithm run over JS/TS tokens). Masking finds the candidates; a block is reported when its copies still agree on most of their own identifiers and literals, or when a renamed copy still agrees on most of its constants, AND the copies carry enough code to stand on their own — or when the copied extent reaches 30 lines. So a re-implementation sharing neither names nor values, and a small pasted declaration, are deliberately not counted. Deterministic.

  • 52 duplicated blocks under archify/renderers/ have copies in at least two of the sibling directories architecture, class, dataflow, erd, lifecycle, sequence (+5 more sibling(s) not listed) — 41 of them are reported below, and 11 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 52 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 52 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 52 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — archify/renderers/architecture/routing.mjs:226
  • 11 duplicated blocks under the repository root have copies in at least two of the sibling directories archify, experiments, integrations, scripts — 8 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 11 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 11 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 11 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — archify/bin/visual-check.mjs:1467
  • 11 duplicated blocks under archify/ have copies in at least two of the sibling directories bin, explainer, renderers, scripts — 8 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 11 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 11 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 11 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — archify/bin/preview.mjs:222
  • archify/bin/preview.mjs:222 · archify/renderers/shared/cli.mjs:164 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/bin/preview.mjs:222
  • archify/renderers/shared/geometry.mjs:1461 · archify/scripts/check-render-output.mjs:1325 — the two spans are one implementation copied and then locally edited — 597 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — archify/renderers/shared/geometry.mjs:1461
  • archify/bin/visual-check.mjs:1467 · scripts/build-readme-showcase.mjs:208 — the two spans are one implementation copied and then locally edited — 296 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — archify/bin/visual-check.mjs:1467
  • scripts/run-windows-path-tests.mjs:414 · scripts/run-windows-path-tests.mjs:454 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — scripts/run-windows-path-tests.mjs:414
  • archify/bin/archify.mjs:3856 · archify/bin/archify.mjs:3929 — 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. — archify/bin/archify.mjs:3856
  • archify/renderers/architecture/routing.mjs:226 · archify/renderers/shared/route-quality.mjs:212 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/renderers/architecture/routing.mjs:226
  • archify/bin/visual-check.mjs:1430 · scripts/build-readme-showcase.mjs:184 — the two spans are one implementation copied and then locally edited — 245 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — archify/bin/visual-check.mjs:1430
  • archify/renderers/workflow/workflow-compiler.mjs:3057 · archify/renderers/workflow/workflow-compiler.mjs:3083 — 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. — archify/renderers/workflow/workflow-compiler.mjs:3057
  • archify/renderers/workflow/workflow-compiler.mjs:338 · archify/renderers/workflow/workflow-compiler.mjs:361 — 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. — archify/renderers/workflow/workflow-compiler.mjs:338
  • scripts/run-windows-path-tests.mjs:353 · scripts/run-windows-path-tests.mjs:376 — 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. — scripts/run-windows-path-tests.mjs:353
  • archify/bin/archify.mjs:3151 · archify/bin/archify.mjs:3540 — 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. — archify/bin/archify.mjs:3151
  • archify/explainer/diagrams.mjs:361 · archify/explainer/sources.mjs:135 — the two spans are one implementation copied and then locally edited — 197 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — archify/explainer/diagrams.mjs:361
  • archify/bin/archify.mjs:884 · archify/renderers/shared/atomic-output.mjs:104 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — archify/bin/archify.mjs:884
  • archify/bin/archify.mjs:2960 · archify/bin/archify.mjs:3300 — the two spans are one implementation copied and then locally edited — 173 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — archify/bin/archify.mjs:2960
  • archify/renderers/shared/portable-path.mjs:356 · archify/renderers/shared/portable-path.mjs:376 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/renderers/shared/portable-path.mjs:356
  • archify/renderers/tree/render-tree.mjs:88 · archify/renderers/waterfall/render-waterfall.mjs:87 — the two spans are one implementation copied and then locally edited — 198 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — archify/renderers/tree/render-tree.mjs:88
  • archify/bin/archify.mjs:3085 · archify/bin/archify.mjs:3118 — 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. — archify/bin/archify.mjs:3085
  • archify/bin/archify.mjs:4057 · archify/bin/archify.mjs:4077 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/bin/archify.mjs:4057
  • archify/bin/archify.mjs:4523 · archify/bin/archify.mjs:4587 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/bin/archify.mjs:4523
  • archify/renderers/shared/atomic-output.mjs:1042 · archify/renderers/shared/atomic-output.mjs:1372 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/renderers/shared/atomic-output.mjs:1042
  • archify/bin/archify.mjs:3751 · archify/bin/archify.mjs:3779 · archify/bin/archify.mjs:3798 · archify/bin/archify.mjs:4203 — all 4 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/bin/archify.mjs:3751
  • archify/renderers/class/render-class.mjs:1072 · archify/renderers/erd/render-erd.mjs:1565 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. — archify/renderers/class/render-class.mjs:1072
  • archify/scripts/update-contract.mjs:92 · archify/scripts/update-contract.mjs:140 — the two spans are one implementation copied and then locally edited — 89 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one. — archify/scripts/update-contract.mjs:92
  • archify/bin/archify.mjs:3472 · archify/bin/archify.mjs:3504 — 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. — archify/bin/archify.mjs:3472
  • archify/renderers/workflow/workflow-compiler.mjs:2651 · archify/renderers/workflow/workflow-compiler.mjs:2666 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/renderers/workflow/workflow-compiler.mjs:2651
  • scripts/run-windows-path-tests.mjs:201 · scripts/run-windows-path-tests.mjs:222 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — scripts/run-windows-path-tests.mjs:201
  • REDACTED:1260 · REDACTED:1284 — 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. — REDACTED:1260
  • viewer/focus.js:1479 · viewer/semantic-lens.js:563 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — viewer/focus.js:1479
  • archify/bin/archify.mjs:2828 · archify/bin/archify.mjs:6408 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/bin/archify.mjs:2828
  • archify/bin/archify.mjs:6832 · archify/bin/archify.mjs:6868 · archify/bin/archify.mjs:6894 — all 3 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/bin/archify.mjs:6832
  • archify/bin/visual-check.mjs:2589 · archify/bin/visual-check.mjs:2614 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/bin/visual-check.mjs:2589
  • archify/renderers/dataflow/dataflow-compiler.mjs:521 · archify/renderers/workflow/workflow-compiler.mjs:2988 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — archify/renderers/dataflow/dataflow-compiler.mjs:521
  • scripts/build-guide.mjs:24 · scripts/build-start.mjs:55 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — scripts/build-guide.mjs:24
  • REDACTED:595 · REDACTED:743 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — REDACTED:595
  • archify/bin/archify.mjs:1103 · archify/bin/archify.mjs:1228 — 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. — archify/bin/archify.mjs:1103
  • archify/bin/archify.mjs:1159 · archify/bin/archify.mjs:1460 — 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. — archify/bin/archify.mjs:1159
  • archify/bin/visual-check.mjs:1134 · archify/bin/visual-check.mjs:1151 — 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. — archify/bin/visual-check.mjs:1134

What to do

  • Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R11 · Import Boundaries2.0 / 10Critical✓ Tool-verified

React / JS · Architecture — Conformance to the detected frontend architecture layout (feature-sliced / layered src) plus cross-package deep-import rules (D-386).

Method: Conformance to the detected frontend layout (feature-sliced / layered src) plus cross-package deep-import rules, over the module graph. Deterministic.

  • archify/scripts/generate-validators.mjs:6 imports ajv/dist/2020.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — archify/scripts/generate-validators.mjs:6
  • archify/scripts/generate-validators.mjs:7 imports ajv/dist/standalone/index.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead. — archify/scripts/generate-validators.mjs:7
  • experiments/node-index-rows/compare.mjs:6 reaches into another package with a relative path (../../archify/bin/visual-check.mjs) — import the package by name instead. — experiments/node-index-rows/compare.mjs:6
  • integrations/deepseek-harness/scripts/distribution-acceptance.mjs:8 reaches into another package with a relative path (../../../archify/renderers/shared/path-semantics.mjs) — import the package by name instead. — integrations/deepseek-harness/scripts/distribution-acceptance.mjs:8
  • integrations/deepseek-harness/scripts/pack.mjs:8 reaches into another package with a relative path (../../../scripts/stage-clean-skill.mjs) — import the package by name instead. — integrations/deepseek-harness/scripts/pack.mjs:8
  • integrations/deepseek-harness/scripts/release-source.mjs:4 reaches into another package with a relative path (../../../archify/renderers/shared/portable-path.mjs) — import the package by name instead. — integrations/deepseek-harness/scripts/release-source.mjs:4
  • scripts/build-guide.mjs:6 reaches into another package with a relative path (../archify/recipes/scenarios.mjs) — import the package by name instead. — scripts/build-guide.mjs:6
  • scripts/build-readme-showcase.mjs:9 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead. — scripts/build-readme-showcase.mjs:9
  • scripts/build-start.mjs:6 reaches into another package with a relative path (../archify/recipes/scenarios.mjs) — import the package by name instead. — scripts/build-start.mjs:6
  • scripts/check-release-identity.mjs:8 reaches into another package with a relative path (../archify/scripts/update-contract.mjs) — import the package by name instead. — scripts/check-release-identity.mjs:8
  • scripts/check-stable-update-manifest.mjs:9 reaches into another package with a relative path (../archify/scripts/update-contract.mjs) — import the package by name instead. — scripts/check-stable-update-manifest.mjs:9
  • scripts/copy-site-assets.mjs:6 reaches into another package with a relative path (../archify/renderers/shared/atomic-output.mjs) — import the package by name instead. — scripts/copy-site-assets.mjs:6
  • scripts/copy-site-assets.mjs:16 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead. — scripts/copy-site-assets.mjs:16
  • scripts/generate-viewer.mjs:6 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead. — scripts/generate-viewer.mjs:6
  • scripts/run-affected-tests.mjs:6 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead. — scripts/run-affected-tests.mjs:6
  • scripts/run-browser-tests.mjs:8 reaches into another package with a relative path (../archify/bin/visual-check.mjs) — import the package by name instead. — scripts/run-browser-tests.mjs:8
  • scripts/run-windows-path-tests.mjs:9 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead. — scripts/run-windows-path-tests.mjs:9
  • scripts/run-windows-path-tests.mjs:13 reaches into another package with a relative path (../archify/scripts/check-update.mjs) — import the package by name instead. — scripts/run-windows-path-tests.mjs:13
  • scripts/run-windows-path-tests.mjs:497 reaches into another package with a relative path (../archify/bin/preview.mjs) — import the package by name instead. — scripts/run-windows-path-tests.mjs:497
  • scripts/stage-clean-skill.mjs:9 reaches into another package with a relative path (../archify/renderers/shared/atomic-output.mjs) — import the package by name instead. — scripts/stage-clean-skill.mjs:9
  • scripts/stage-clean-skill.mjs:14 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead. — scripts/stage-clean-skill.mjs:14
  • scripts/stage-clean-skill.mjs:15 reaches into another package with a relative path (../archify/renderers/shared/portable-path.mjs) — import the package by name instead. — scripts/stage-clean-skill.mjs:15
  • scripts/write-deterministic-zip.mjs:8 reaches into another package with a relative path (../archify/renderers/shared/atomic-output.mjs) — import the package by name instead. — scripts/write-deterministic-zip.mjs:8
  • scripts/write-deterministic-zip.mjs:18 reaches into another package with a relative path (../archify/renderers/shared/output-path.mjs) — import the package by name instead. — scripts/write-deterministic-zip.mjs:18
  • scripts/write-deterministic-zip.mjs:19 reaches into another package with a relative path (../archify/renderers/shared/portable-path.mjs) — import the package by name instead. — scripts/write-deterministic-zip.mjs:19
  • tools/contributor-cards/card.mjs:5 reaches into another package with a relative path (../../archify/bin/visual-check.mjs) — import the package by name instead. — tools/contributor-cards/card.mjs:5

What to do

  • Fix the listed violations: import through public entries (package exports / slice index), never reach into another layer or package's internals.
R2 · Cyclomatic Complexity5.0 / 10Adequate✓ Tool-verified

React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.

Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.

  • build has cyclomatic complexity 157 and cognitive complexity 378; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/renderers/dataflow/dataflow-compiler.mjs:63
  • createReadableLayout has cyclomatic complexity 138 and cognitive complexity 195; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/renderers/workflow/workflow-compiler.mjs:233
  • validateArchitecture has cyclomatic complexity 120 and cognitive complexity 220; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/renderers/architecture/render-architecture.mjs:487
  • commandDeliver has cyclomatic complexity 120 and cognitive complexity 167; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/bin/archify.mjs:4400
  • routeVia has cyclomatic complexity 117 and cognitive complexity 169; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/renderers/architecture/routing.mjs:396
  • checkExplainerHtml has cyclomatic complexity 115 and cognitive complexity 134; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — REDACTED:53
  • directive has cyclomatic complexity 108 and cognitive complexity 149; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/explainer/parse.mjs:153
  • validateWorkflow has cyclomatic complexity 91 and cognitive complexity 141; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/renderers/workflow/workflow-compiler.mjs:2693
  • commandCompare has cyclomatic complexity 91 and cognitive complexity 112; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/bin/archify.mjs:3675
  • validateExplainer has cyclomatic complexity 89 and cognitive complexity 200; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/explainer/validate.mjs:17
  • parseExplainer has cyclomatic complexity 87 and cognitive complexity 216; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/explainer/parse.mjs:18
  • commitDeliveryPair has cyclomatic complexity 79 and cognitive complexity 174; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/bin/archify.mjs:3236
  • runFinalize has cyclomatic complexity 79 and cognitive complexity 121; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/bin/finalize.mjs:722
  • compileExplainerDiagram has cyclomatic complexity 78 and cognitive complexity 190; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/explainer/diagrams.mjs:108
  • planRoutes has cyclomatic complexity 75 and cognitive complexity 147; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/renderers/architecture/routing.mjs:1011
  • resolveExplainerSources has cyclomatic complexity 75 and cognitive complexity 131; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/explainer/sources.mjs:171
  • validateReadablePinnedGeometry has cyclomatic complexity 74 and cognitive complexity 152; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/renderers/workflow/workflow-compiler.mjs:2378
  • runBrowserEvidence has cyclomatic complexity 73 and cognitive complexity 99; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/bin/visual-check.mjs:2444
  • copySiteAssets has cyclomatic complexity 72 and cognitive complexity 128; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — scripts/copy-site-assets.mjs:113
  • commitComparePair has cyclomatic complexity 71 and cognitive complexity 148; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. — archify/bin/archify.mjs:2899

What to do

  • Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files0.2 / 10Critical✓ Tool-verified

React / JS · Code Health — How many source files exceed the large-file threshold.

Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.

  • archify/renderers/workflow/workflow-compiler.mjs has 5651 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/workflow/workflow-compiler.mjs:1
  • archify/renderers/shared/geometry.mjs has 1944 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/shared/geometry.mjs:1
  • archify/renderers/shared/atomic-output.mjs has 1919 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/shared/atomic-output.mjs:1
  • viewer/guided-views.js has 1637 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — viewer/guided-views.js:1
  • viewer/focus.js has 1590 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — viewer/focus.js:1
  • archify/renderers/dataflow/dataflow-compiler.mjs has 1549 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/dataflow/dataflow-compiler.mjs:1
  • archify/renderers/erd/render-erd.mjs has 1490 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/erd/render-erd.mjs:1
  • archify/renderers/architecture/routing.mjs has 1416 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/architecture/routing.mjs:1
  • REDACTED has 1314 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • REDACTED has 1218 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • archify/renderers/architecture/render-architecture.mjs has 1145 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/architecture/render-architecture.mjs:1
  • archify/renderers/lifecycle/render-lifecycle.mjs has 1072 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/lifecycle/render-lifecycle.mjs:1
  • archify/renderers/sequence/render-sequence.mjs has 1031 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/sequence/render-sequence.mjs:1
  • archify/renderers/class/render-class.mjs has 1018 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/class/render-class.mjs:1
  • viewer/route-probe.js has 1017 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — viewer/route-probe.js:1
  • archify/renderers/shared/path-semantics.mjs has 937 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/shared/path-semantics.mjs:1
  • REDACTED has 708 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • archify/renderers/shared/brand-marks.mjs has 668 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/shared/brand-marks.mjs:1
  • REDACTED has 666 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — REDACTED:1
  • viewer/semantic-lens.js has 657 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — viewer/semantic-lens.js:1
  • archify/renderers/shared/route-quality.mjs has 636 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/shared/route-quality.mjs:1
  • viewer/semantic-radar.js has 622 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — viewer/semantic-radar.js:1
  • viewer/viewer-camera.js has 609 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — viewer/viewer-camera.js:1
  • archify/renderers/timeline/render-timeline.mjs has 538 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/timeline/render-timeline.mjs:1
  • archify/renderers/tree/render-tree.mjs has 537 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/tree/render-tree.mjs:1
  • archify/explainer/diagrams.mjs has 498 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/explainer/diagrams.mjs:1
  • viewer/reader-layout.js has 476 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — viewer/reader-layout.js:1
  • archify/recipes/scenarios.mjs has 444 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/recipes/scenarios.mjs:1
  • archify/renderers/shared/output-path.mjs has 416 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/shared/output-path.mjs:1
  • archify/renderers/shared/cli.mjs has 407 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module. — archify/renderers/shared/cli.mjs:1

What to do

  • Split each oversized file along the responsibilities already in it, into smaller focused modules in the same package.
R4 · Test Coverage9.6 / 10Exemplary✓ Tool-verified

React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.

Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.

  • No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one. (×5) — experiments/visual-evolution/prototype.mjs:1, experiments/node-index-rows/compare.mjs:1, REDACTED:1, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness10.0 / 10Exemplary✓ Tool-verified

React / JS · Readiness — How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D30 (JS/npm Dependency Vulnerabilities).

Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D30, which answers dependency vulnerabilities for every ecosystem). Deterministic.

R6 · Tooling6.7 / 10Adequate✓ Tool-verified

React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each package.json script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.

Method: package.json scanned for test/lint/typecheck script wiring. Deterministic presence check.

  • test ✓ · lint ✗ · typecheck ✓ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.

What to do

  • Add eslint as package.json scripts and run them in CI.
R7 · Dead Code7.2 / 10Strong✓ Tool-verified

React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).

Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.

  • Unreachable from the 115 application, 30 tooling and 262 test entry point(s) detected in this repo. Nothing this repository declares compiles or type-checks these files, so a wrong deletion here would raise no compile error — gate removals on `npm test`, which loads the modules, and note that it only covers what it exercises. An undetected custom entry would make these reachable.
  • no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×16) — viewer/guided-views.js, viewer/focus.js, REDACTED, …
  • This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it. (×2) — archify/renderers/shared/cli.mjs:305, archify/renderers/shared/geometry.mjs:1388

What to do

  • Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene10.0 / 10Exemplary✓ Tool-verified

React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.

Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.

R9 · Circular Imports10.0 / 10Exemplary✓ Tool-verified

React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.

Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.

S1 · Web-Security Posture8.0 / 10Strong✓ Tool-verified

Other · Security — Read from this repository's JavaScript/TypeScript source: cryptographic hygiene (weak hash or cipher, key material fixed in the source) and outbound TLS (certificate validation, protocol version) — facts about code that hold whether or not it serves anything itself. The server controls — HTTPS enforcement, HSTS, cookie flags, input validation — are NOT assessed for JavaScript/TypeScript: each is scored as an absence, an absence is only reportable over the production HTTP server, and in this ecosystem the file that opens the port is build output or a framework launcher rather than a file in the source tree. Their absence here is not a finding about this repository.

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.

  • MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call. — tools/contributor-cards/github.mjs:18

What to do

  • Review each MD5/SHA1 use by what it protects: replace it with SHA-256+ (or a KDF for passwords) where the digest is security-relevant, and switch it to a non-cryptographic hash (xxhash, murmurhash) where it only derives an identifier such as a cache key.
X1 · Async correctness10.0 / 10Exemplary○ Nothing flagged

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.

X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

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.

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.

X14 · Bypassable address classification10.0 / 10Exemplary○ Nothing flagged

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.

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.

X16 · Unfloored truncation loop10.0 / 10Exemplary○ Nothing flagged

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.

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.

X18 · Disposal-pattern correctness10.0 / 10Exemplary○ Nothing flagged

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.

X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

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.

X2 · Cancellation propagation10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether async functions that make a cancellable request accept or pass on an AbortSignal (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.

X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

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.

X22 · Contradicted release guard10.0 / 10Exemplary○ Nothing flagged

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.

X23 · Unguarded diagnostic materialisation10.0 / 10Exemplary○ Nothing flagged

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.

X24 · Document value interpolated into markup unescaped7.8 / 10Strong✓ Tool-verified

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.

  • `escapeHtml(ref.url)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — archify/explainer/inline.mjs:133
  • `words.prev` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — REDACTED:455
  • `words.ask` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — REDACTED:533
  • `first+index` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — REDACTED:617
  • `sourceIcons[kind]` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — REDACTED:620
  • `target.edges?` data-diagram-edges="${escape(JSON.stringify(target.edges))}"`:''` is text this program did not author, and it is written into an unquoted attribute through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML text encoding does not help in an unquoted attribute — whitespace ends it; quote the attribute and encode the value. — archify/explainer/render.mjs:59
  • `escape(source.url)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — archify/explainer/render.mjs:111
  • `favicon` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path. — archify/explainer/render.mjs:128

What to do

  • Each finding names the expression, the attribute it lands in and the line. Confirm the value's origin from the read this analyzer traced, then escape it at the sink or validate it against the shape the attribute accepts before interpolating.
X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

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.

X26 · Unsynchronised callback handoff10.0 / 10Exemplary○ Nothing flagged

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.

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.

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.

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.

X3 · Exception handling4.8 / 10Weak✓ Tool-verified

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.

  • `catch (_)` 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) — REDACTED:278, viewer/semantic-lens.js:71
  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×37) — REDACTED:992, REDACTED:1046, REDACTED:1419, …
  • `.catch(function(){})` handles the rejection by doing nothing — the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (`next(error)`, a returned rejection), or don't catch it. — viewer/reader-layout.js:434

What to do

  • Swallowed exception (caught, then discarded)
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.

X5 · Nullable reference types2.0 / 10Critical✓ Tool-verified

Other · Code Health — Whether strict null checking is enabled and not undermined by heavy `!` assertion — TypeScript's `strictNullChecks` (which `strict` turns on) is what makes `string` exclude `null` and `undefined`, and the postfix `!` is the operator that silences it.

Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.

  • 0/1 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.

What to do

  • The findings name the configuration each number was taken from and, for the assertions, the files that hold them. Turn null checking on where it is off — `"strict": true` in the base tsconfig that the others extend switches `strictNullChecks` on with the rest of the family — and then resolve the assertions rather than adding to them. A `!` on a value the checker could show to be null is a promise the author cannot check from where they are standing, and each one is a `TypeError: Cannot read properties of null` waiting for the path that makes it true; where the value genuinely cannot be null, say something the checker can see instead (narrow it with a test, make the property required, drop the `?`).

WCAG coverage — what static analysis assessed

Statically assessed 15 of 55 WCAG 2.2 Level A/AA success criteria (27%; ≈30% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 40 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).

DimensionWCAG 2.2 A/AA criteriaCoverage
AC1 · Text alternatives1.1.1, 1.2.2, 1.2.5Partial signal
AC2 · Forms & labels1.3.1, 3.3.2, 4.1.2Partial signal
AC3 · Page structure1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2Partial signal
AC4 · Keyboard semantics2.1.1, 2.4.3Partial signal
AC5 · ARIA correctness4.1.2Partial signal
AC6 · Visual & motion safety1.4.3, 2.4.7Partial — literal CSS only
AC7 · A11y enforcementenforcement — no page criterionEnforcement posture (process)

Not statically assessed — these 40 Level A/AA criteria need runtime or manual evaluation (WCAG-EM): 1.2.1, 1.2.3, 1.2.4, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.4.1, 1.4.2, 1.4.5, 1.4.10, 1.4.11, 1.4.12, 1.4.13, 2.1.2, 2.1.4, 2.2.2, 2.3.1, 2.4.4, 2.4.5, 2.4.6, 2.4.11, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.7, 2.5.8, 3.1.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.6, 3.3.1, 3.3.3, 3.3.4, 3.3.7, 3.3.8, 4.1.3.

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.

LensScoreRatingImpact
Code Health28%Weak — gated by D1, D2, R1, R3, X5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture67%Adequate — gated by D26, R11Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Maturity81%StrongStrongest area.
Readiness43%Weak — gated by P2, P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security79%Adequate — gated by D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Accessibility42%Weak — gated by AC4, AC6Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance60%AdequateAcceptable, with room to improve.
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.

  • X10 Duplicated predicate — 25 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X6 Hand-rolled structured-format parsing — 5 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 4 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 1 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.

  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 44 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.

  • AX1 Captive dependencies — Not applicable: this repository's JavaScript 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; this repository's Python 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 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. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
  • 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 — no exported interface declares behaviour
  • 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 — the dev server did not expose a crawlable HTTP endpoint in time — no runtime evidence 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 — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no data at rest for these controls to protect. If it does persist personal data (through a hosted backend configured outside this repository, for instance), the controls belong to wherever that data is stored.
  • C2 Access Controls — No access-control surface detected in the analyzed source — this repository stands up no server (no Express, Fastify, Koa, Hono, NestJS or similar app, no Next.js/SvelteKit/Nuxt server route, no edge function), creates no Supabase tables and talks to no hosted backend. Access control is therefore N/A here — a browser application or library is authorized by the server it calls, not by itself; a client-side route guard hides a page and authorizes nothing. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
  • C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
  • C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound. If it does (through a hosted backend configured outside this repository, for instance), the limit belongs wherever that data is stored.
  • C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a TypeORM/MikroORM/sequelize-typescript/NestJS-Mongoose entity, a Mongoose schema, a Sequelize or Drizzle table, a Knex migration or a Prisma model — and no database or data-store client in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over. If it does (through a hosted backend configured outside this repository, for instance), the rights are served wherever that data is stored.
  • 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.
  • D21 Naming Consistency — Naming consistency is measured on C# only; JavaScript, Python, TypeScript, html not measured.
  • D22 Internal API Consistency — API consistency is measured on C# only; the exposed JavaScript surface was not measured.
  • 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+ sibling projects each declaring an entity of their own or taking another project's integration events. 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 — D24 reads C# and Visual Basic comments only — this repository's production source is .py, .ts, .tsx, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D25 ADR Conformance — None of 0 binding record(s) states a rule in checkable form (a backticked element with a prohibition, or an `adr-rules` block), so conformance cannot be read from the code. Write the rule as an `adr-rules` block (`forbid:` a symbol, a package or a dependency) to make it checkable.
  • D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.mjs), 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.
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — 5 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
  • 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.
  • D4 Code Duplication — This repository's production source (.js, .mjs, .ts) is not read by D4's token comparison, which compares .NET source: duplication in it is measured by R10 Code Duplication, the frontend lens's card running the same clone algorithm over the JS/TS token stream. Not scored here — read the R10 card for this repository's duplication. The rest — .html (3,126 lines, 4.9% of production source) — is compared by neither card, so duplication there is unmeasured; it is a corner of this repository, not its product.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
  • DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this lens looks for
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JavaScript/TypeScript, Python source, so there is no service whose uptime a failing dependency could take down
  • 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 — coverage data present for 59 file(s), but no domain-layer files were identified: no covered file's path contains any of the markers this check keys on (/domain/, /aggregates/, /valueobjects/, /domainmodel/, .domain/, /entities/), which are matched case-insensitively anywhere in the path. With no domain partition there is nothing to compare the web/controller layer against — if this repository keeps its business rules under a folder named none of those, that naming is what the check cannot see, not the domain logic.
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for tinybench, mitata, benchmark.js, benny or vitest `bench(...)` calls in files that import them (or `*.bench.*` files), or one of those in a package.json, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
  • PF2 Allocation hygiene — Not applicable: TypeScript/JavaScript runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
  • SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • 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
  • 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.

Critical — 8 finding(s)
AC4 · Keyboard semantics · Click handler on a non-interactive <div> · ×4
  • Click handler on a non-interactive <div> scripts/guide-template.html:226 — A script attaches a click listener to this <div>, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a <button>, or add role + tabindex="0" + a key handler.
  • Click handler on a non-interactive <div> scripts/guide-template.html:231 — A script attaches a click listener to this <div>, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a <button>, or add role + tabindex="0" + a key handler.
  • Click handler on a non-interactive <div> scripts/guide-template.html:239 — A script attaches a click listener to this <div>, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a <button>, or add role + tabindex="0" + a key handler.
  • Click handler on a non-interactive <div> scripts/guide-template.html:240 — A script attaches a click listener to this <div>, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a <button>, or add role + tabindex="0" + a key handler.
AC2 · Forms & labels · <textarea> without a programmatic label · ×2
  • <textarea> without a programmatic label scripts/guide-template.html:225 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
  • <textarea> without a programmatic label website/src/pages/guide.astro:39 — This control has only a placeholder — a placeholder is not a label (it vanishes on input and many AT ignore it). Add a <label for>, a wrapping <label>, or aria-label.
AC4 · Keyboard semantics · Clickable element isn't keyboard-operable · ×1
  • Clickable element isn't keyboard-operable tools/contributor-cards/template.html:257 — The repo's own CSS styles .card with `cursor: pointer`, so this <main> is a control — but it has no role, no tabindex="0" and no key handler, so it can only be reached with a mouse. Use a <button>, or add role + tabindex="0" + a key handler.
D28 · Secrets (history) · REDACTED · ×1
  • REDACTED
Serious — 1069 finding(s)
D15 · Churn × Complexity Hotspots · Hotspot · ×53
  • Hotspot: archify/renderers/workflow/workflow-compiler.mjs archify/renderers/workflow/workflow-compiler.mjs:1362 — archify/renderers/workflow/workflow-compiler.mjs changed 59 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 1152 in workflow-compiler.compileWorkflowInternal at line 1362. 29 of those changes were fix/bug commits, and the other 30 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/workflow/workflow-compiler.mjs`: 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: archify/bin/archify.mjs archify/bin/archify.mjs:4400 — archify/bin/archify.mjs changed 59 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 124 in archify.commandDeliver at line 4400. 29 of those changes were fix/bug commits, and the other 30 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/bin/archify.mjs`: 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: archify/renderers/architecture/render-architecture.mjs archify/renderers/architecture/render-architecture.mjs:487 — archify/renderers/architecture/render-architecture.mjs changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 129 in render-architecture.validateArchitecture at line 487. 21 of those changes were fix/bug commits, and the other 23 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/architecture/render-architecture.mjs`: 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: archify/explainer/render.mjs archify/explainer/render.mjs:37 — archify/explainer/render.mjs changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 137 in render.renderExplainer at line 37. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/explainer/render.mjs`: 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: archify/renderers/sequence/render-sequence.mjs archify/renderers/sequence/render-sequence.mjs:554 — archify/renderers/sequence/render-sequence.mjs changed 41 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in render-sequence.validateSequence at line 554. 25 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/sequence/render-sequence.mjs`: 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: archify/bin/visual-check.mjs archify/bin/visual-check.mjs:2444 — archify/bin/visual-check.mjs changed 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 82 in visual-check.runBrowserEvidence at line 2444. 25 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/bin/visual-check.mjs`: 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: archify/explainer/parse.mjs archify/explainer/parse.mjs:18 — archify/explainer/parse.mjs changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 279 in parse.parseExplainer at line 18. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/explainer/parse.mjs`: 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: archify/renderers/architecture/routing.mjs archify/renderers/architecture/routing.mjs:1011 — archify/renderers/architecture/routing.mjs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 206 in routing.createRouter.planRoutes at line 1011. 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/architecture/routing.mjs`: 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: archify/renderers/lifecycle/render-lifecycle.mjs archify/renderers/lifecycle/render-lifecycle.mjs:244 — archify/renderers/lifecycle/render-lifecycle.mjs changed 40 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in render-lifecycle.layout at line 244. 19 of those changes were fix/bug commits, and the other 21 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/lifecycle/render-lifecycle.mjs`: 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: archify/bin/finalize.mjs archify/bin/finalize.mjs:722 — archify/bin/finalize.mjs changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 90 in finalize.runFinalize at line 722. 16 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/bin/finalize.mjs`: 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: archify/scripts/check-render-output.mjs archify/scripts/check-render-output.mjs:1219 — archify/scripts/check-render-output.mjs changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in check-render-output.collectDesktopReadability at line 1219. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/scripts/check-render-output.mjs`: 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:155 — REDACTED changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in repository-evidence.verifyRepositoryEvidence at line 155. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08: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: scripts/package-smoke.mjs scripts/package-smoke.mjs:113 — scripts/package-smoke.mjs changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 90 in package-smoke.verifyPackage at line 113. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- scripts/package-smoke.mjs`: 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: archify/renderers/shared/geometry.mjs archify/renderers/shared/geometry.mjs:730 — archify/renderers/shared/geometry.mjs changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in geometry.collectAmbiguousCorridors at line 730. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/shared/geometry.mjs`: 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:1240 — REDACTED changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in architecture-delta.validateArchitectureDeltaHtml at line 1240. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08: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: archify/explainer/diagrams.mjs archify/explainer/diagrams.mjs:108 — archify/explainer/diagrams.mjs changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 110 in diagrams.compileExplainerDiagram at line 108. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/explainer/diagrams.mjs`: 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:801 — REDACTED changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in export.recordWebm at line 801. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08: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:19 — REDACTED changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in reader.layoutBoard at line 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08: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: archify/renderers/erd/render-erd.mjs archify/renderers/erd/render-erd.mjs:1074 — archify/renderers/erd/render-erd.mjs changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in render-erd.validateEr at line 1074. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/erd/render-erd.mjs`: 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: viewer/reader-layout.js viewer/reader-layout.js:316 — viewer/reader-layout.js changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in measure at line 316. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- viewer/reader-layout.js`: 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: archify/bin/preview.mjs archify/bin/preview.mjs:734 — archify/bin/preview.mjs changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in preview.startPreview.beginBuild at line 734. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/bin/preview.mjs`: 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: archify/explainer/validate.mjs archify/explainer/validate.mjs:17 — archify/explainer/validate.mjs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 135 in validate.validateExplainer at line 17. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/explainer/validate.mjs`: 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: archify/renderers/shared/cli.mjs archify/renderers/shared/cli.mjs:167 — archify/renderers/shared/cli.mjs changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in cli.stageRenderedHtml at line 167. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/shared/cli.mjs`: 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: archify/renderers/shared/brand-marks.mjs archify/renderers/shared/brand-marks.mjs:294 — archify/renderers/shared/brand-marks.mjs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in brand-marks.readHtmlHeadLinks at line 294. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/shared/brand-marks.mjs`: 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: archify/renderers/shared/atomic-output.mjs archify/renderers/shared/atomic-output.mjs:1120 — archify/renderers/shared/atomic-output.mjs changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in atomic-output.publishRegularFileBinding at line 1120. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/shared/atomic-output.mjs`: 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.
  • + 28 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (empty catch) · ×38
  • Swallowed exception (empty catch) REDACTED:992 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:1046 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:1419 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:153 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:230 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:816 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:939 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:1096 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:1116 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:1254 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:1308 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:1312 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:1384 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:1471 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/focus.js:1579 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/guided-views.js:766 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/guided-views.js:1446 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:162 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:370 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:391 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:421 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:522 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) REDACTED:602 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/node-finder.js:123 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) viewer/node-finder.js:132 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • + 13 more in this group — see findings.md.
D3 · God Classes · FunctionTooLong · ×31
  • FunctionTooLong: workflow-compiler.compileWorkflowInternal archify/renderers/workflow/workflow-compiler.mjs:1362 — FunctionTooLong — compileWorkflowInternal runs 3279 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3179 over it, 32.79× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: dataflow-compiler.compileDataflow archify/renderers/dataflow/dataflow-compiler.mjs:62 — FunctionTooLong — compileDataflow runs 1126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1026 over it, 11.26× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: routing.createRouter archify/renderers/architecture/routing.mjs:75 — FunctionTooLong — createRouter runs 1044 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 944 over it, 10.44× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: render-architecture.validateArchitecture archify/renderers/architecture/render-architecture.mjs:487 — FunctionTooLong — validateArchitecture runs 390 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 290 over it, 3.90× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: routing.createRouter.planRoutes archify/renderers/architecture/routing.mjs:1011 — FunctionTooLong — createRouter.planRoutes runs 359 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 259 over it, 3.59× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: workflow-compiler.createReadableLayout archify/renderers/workflow/workflow-compiler.mjs:233 — FunctionTooLong — createReadableLayout runs 348 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 248 over it, 3.48× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: render-sequence.validateSequence archify/renderers/sequence/render-sequence.mjs:554 — FunctionTooLong — validateSequence runs 281 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 181 over it, 2.81× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: routing.createRouter.routeVia archify/renderers/architecture/routing.mjs:396 — FunctionTooLong — createRouter.routeVia runs 217 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 117 over it, 2.17× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: render-erd.validateEr archify/renderers/erd/render-erd.mjs:1074 — FunctionTooLong — validateEr runs 213 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 113 over it, 2.13× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: export.recordWebm REDACTED:801 — FunctionTooLong — recordWebm runs 213 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 113 over it, 2.13× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: route-quality.shortestOrthogonalGridRoute archify/renderers/shared/route-quality.mjs:261 — FunctionTooLong — shortestOrthogonalGridRoute runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: render-lifecycle.layout archify/renderers/lifecycle/render-lifecycle.mjs:244 — FunctionTooLong — layout runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: copy-site-assets.copySiteAssets scripts/copy-site-assets.mjs:113 — FunctionTooLong — copySiteAssets runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: automatic-labels.placeAutomaticLabels archify/renderers/shared/automatic-labels.mjs:6 — FunctionTooLong — placeAutomaticLabels runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: diagrams.compileExplainerDiagram archify/explainer/diagrams.mjs:108 — FunctionTooLong — compileExplainerDiagram runs 184 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 84 over it, 1.84× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: repository-evidence.verifyRepositoryEvidence REDACTED:155 — FunctionTooLong — verifyRepositoryEvidence runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: atomic-output.publishRegularFileBinding archify/renderers/shared/atomic-output.mjs:1120 — FunctionTooLong — publishRegularFileBinding runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: atomic-output.recoverRetiredPublication archify/renderers/shared/atomic-output.mjs:1801 — FunctionTooLong — recoverRetiredPublication runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: workflow-compiler.createLegacyCapacityRepair archify/renderers/workflow/workflow-compiler.mjs:1064 — FunctionTooLong — createLegacyCapacityRepair runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: export-cleanup.cleanExportClone viewer/export-cleanup.js:1 — FunctionTooLong — cleanExportClone runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: export.serializeSvg REDACTED:228 — FunctionTooLong — serializeSvg runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: sources.resolveExplainerSources archify/explainer/sources.mjs:171 — FunctionTooLong — resolveExplainerSources runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: render-class.validateClassDiagram archify/renderers/class/render-class.mjs:652 — FunctionTooLong — validateClassDiagram runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: path-semantics.resolvePlan archify/renderers/shared/path-semantics.mjs:326 — FunctionTooLong — resolvePlan runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: joint-label-routing.repairLabelRoutes archify/renderers/dataflow/joint-label-routing.mjs:24 — FunctionTooLong — repairLabelRoutes runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • + 6 more in this group — see findings.md.
PF3 · Async & latency hygiene · Sync-over-async blocking · ×27
  • Sync-over-async blocking archify/bin/preview.mjs:371 — `fs.mkdirSync` in `startPreview` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking archify/bin/preview.mjs:376 — `fs.mkdtempSync` in `startPreview` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking archify/bin/preview.mjs:383 — `fs.rmdirSync` in `startPreview` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking archify/bin/preview.mjs:772 — `fs.writeFileSync` in `beginBuild` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking archify/bin/preview.mjs:773 — `fs.lstatSync` in `beginBuild` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking archify/bin/visual-check.mjs:1888 — `fs.writeFileSync` in `inspect` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking archify/bin/visual-check.mjs:2503 — `fs.mkdtempSync` in `runBrowserEvidence` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking archify/bin/visual-check.mjs:2505 — `fs.lstatSync` in `runBrowserEvidence` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking archify/explainer/browser-check.mjs:123 — `fs.writeFileSync` in `inspectPublicHtml` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking archify/explainer/diagrams.mjs:481 — `fs.writeFileSync` in `prepareExplainerDiagrams` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking archify/explainer/diagrams.mjs:487 — `fs.readFileSync` in `prepareExplainerDiagrams` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking integrations/deepseek-harness/test/probe-skills.mjs:52 — `fs.mkdirSync` in `apply` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking integrations/deepseek-harness/test/probe-skills.mjs:53 — `fs.writeFileSync` in `apply` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/build-readme-showcase.mjs:311 — `fs.mkdirSync` in `captureFrames` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/build-readme-showcase.mjs:312 — `fs.mkdirSync` in `captureFrames` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/build-readme-showcase.mjs:348 — `fs.writeFileSync` in `captureFrames` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/build-readme-showcase.mjs:372 — `fs.writeFileSync` in `captureFrames` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/build-readme-showcase.mjs:402 — `fs.mkdtempSync` in `withCaptureDirectory` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/build-readme-showcase.mjs:410 — `fs.rmSync` in `withCaptureDirectory` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/build-readme-showcase.mjs:417 — `fs.existsSync` in `main` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/build-readme-showcase.mjs:434 — `fs.statSync` in `callback to withCaptureDirectory` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking scripts/build-readme-showcase.mjs:446 — `fs.writeFileSync` in `callback to withCaptureDirectory` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/webm-artifact.smoke.mjs:239 — `fs.rmSync` in `removeTempTree` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/webm-artifact.smoke.mjs:1193 — `fs.writeFileSync` in `captureRouteShareCard` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • Sync-over-async blocking test/webm-artifact.smoke.mjs:1194 — `execFileSync` in `captureRouteShareCard` blocks the event loop until it finishes — a blocking call inside async code stalls the event loop — every other request waits for as long as it runs.
  • + 2 more in this group — see findings.md.
R11 · Import Boundaries · Boundary violation [package · ×26
  • Boundary violation [package:third-party-deep-import] archify/scripts/generate-validators.mjs:6 — archify/scripts/generate-validators.mjs:6 imports ajv/dist/2020.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:third-party-deep-import] archify/scripts/generate-validators.mjs:7 — archify/scripts/generate-validators.mjs:7 imports ajv/dist/standalone/index.js, reaching past a declared dependency's public entry into its build output — that path is the package's toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package's documented entry point instead.
  • Boundary violation [package:relative-cross-package] experiments/node-index-rows/compare.mjs:6 — experiments/node-index-rows/compare.mjs:6 reaches into another package with a relative path (../../archify/bin/visual-check.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] integrations/deepseek-harness/scripts/distribution-acceptance.mjs:8 — integrations/deepseek-harness/scripts/distribution-acceptance.mjs:8 reaches into another package with a relative path (../../../archify/renderers/shared/path-semantics.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] integrations/deepseek-harness/scripts/pack.mjs:8 — integrations/deepseek-harness/scripts/pack.mjs:8 reaches into another package with a relative path (../../../scripts/stage-clean-skill.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] integrations/deepseek-harness/scripts/release-source.mjs:4 — integrations/deepseek-harness/scripts/release-source.mjs:4 reaches into another package with a relative path (../../../archify/renderers/shared/portable-path.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/build-guide.mjs:6 — scripts/build-guide.mjs:6 reaches into another package with a relative path (../archify/recipes/scenarios.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/build-readme-showcase.mjs:9 — scripts/build-readme-showcase.mjs:9 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/build-start.mjs:6 — scripts/build-start.mjs:6 reaches into another package with a relative path (../archify/recipes/scenarios.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/check-release-identity.mjs:8 — scripts/check-release-identity.mjs:8 reaches into another package with a relative path (../archify/scripts/update-contract.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/check-stable-update-manifest.mjs:9 — scripts/check-stable-update-manifest.mjs:9 reaches into another package with a relative path (../archify/scripts/update-contract.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/copy-site-assets.mjs:6 — scripts/copy-site-assets.mjs:6 reaches into another package with a relative path (../archify/renderers/shared/atomic-output.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/copy-site-assets.mjs:16 — scripts/copy-site-assets.mjs:16 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/generate-viewer.mjs:6 — scripts/generate-viewer.mjs:6 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/run-affected-tests.mjs:6 — scripts/run-affected-tests.mjs:6 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/run-browser-tests.mjs:8 — scripts/run-browser-tests.mjs:8 reaches into another package with a relative path (../archify/bin/visual-check.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/run-windows-path-tests.mjs:9 — scripts/run-windows-path-tests.mjs:9 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/run-windows-path-tests.mjs:13 — scripts/run-windows-path-tests.mjs:13 reaches into another package with a relative path (../archify/scripts/check-update.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/run-windows-path-tests.mjs:497 — scripts/run-windows-path-tests.mjs:497 reaches into another package with a relative path (../archify/bin/preview.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/stage-clean-skill.mjs:9 — scripts/stage-clean-skill.mjs:9 reaches into another package with a relative path (../archify/renderers/shared/atomic-output.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/stage-clean-skill.mjs:14 — scripts/stage-clean-skill.mjs:14 reaches into another package with a relative path (../archify/renderers/shared/path-semantics.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/stage-clean-skill.mjs:15 — scripts/stage-clean-skill.mjs:15 reaches into another package with a relative path (../archify/renderers/shared/portable-path.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/write-deterministic-zip.mjs:8 — scripts/write-deterministic-zip.mjs:8 reaches into another package with a relative path (../archify/renderers/shared/atomic-output.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/write-deterministic-zip.mjs:18 — scripts/write-deterministic-zip.mjs:18 reaches into another package with a relative path (../archify/renderers/shared/output-path.mjs) — import the package by name instead.
  • Boundary violation [package:relative-cross-package] scripts/write-deterministic-zip.mjs:19 — scripts/write-deterministic-zip.mjs:19 reaches into another package with a relative path (../archify/renderers/shared/portable-path.mjs) — import the package by name instead.
  • + 1 more in this group — see findings.md.
AC6 · Visual & motion safety · Animation without a prefers-reduced-motion guard · ×25
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:836 — `html[data-motion-capable="true"][data-preset="signal-flow"][data-ambient-entry="running"] .diagram-container::before` moves (`animation: archify-signal-scan 4.8s ease-in-out 1 both`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:919 — `.diagram-container.is-camera-moving svg` moves (`transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:2202 — `.diagram-guide-action` moves (`transition: border-color 140ms ease, background 140ms ease, transform 140ms ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:2704 — `html[data-reader-rail="overlay"] .reader-rail` moves (`animation: rail-drawer-in 0.2s cubic-bezier(0.22, 1, 0.36, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:2918 — `.node-outline-item::after` moves (`transition: opacity 0.16s ease, transform 0.16s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:2937 — `.node-outline-dot` moves (`transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:3248 — `.toolbar #btn-theme::after` moves (`transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:3259 — `.toolbar #theme-icon` moves (`transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:3324 — `.preset-control-mark` moves (`transition: border-radius 0.15s, box-shadow 0.15s, transform 0.15s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:3442 — `.preset-option-swatch` moves (`transition: box-shadow 0.14s ease, transform 0.14s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:3592 — `html[data-ambient-motion="running"][data-motion="live"]:not([data-motion-owner]):not([data-embed]):not([data-share-playback]):not([data-document-hidden]) #btn-motion .motion-control-dot` moves (`animation: archify-motion-dot-breathe var(--flow-cycle-chrome, 6.4s) ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:3790 — `.archify-toast` moves (`transition: opacity 0.2s, transform 0.2s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/mco-showcase/mco-runtime.html:4149 — `html[data-preset="classic"] .diagram-container > svg [data-node-id]` moves (`transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/visual-evolution/prototype.html:502 — `.archify-toast` moves (`transition: opacity 0.2s, transform 0.2s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/visual-evolution/prototype.html:643 — `.container` moves (`transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease, color .25s ease`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard experiments/visual-evolution/prototype.html:706 — `html[data-prototype-variant="signal"] .diagram-container::before` moves (`animation: prototype-scan 6s ease-in-out infinite`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard scripts/guide-template.html:133 — `.card` moves (`transition: transform .22s var(--ease-out),border-color .22s var(--ease-out),box-shadow .22s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard website/src/styles/gallery.css:187 — `.preview-shell iframe` moves (`transition: transform 1.2s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard website/src/styles/gallery.css:232 — `.life-plate` moves (`transition: transform .5s var(--ease-out),border-color .3s var(--ease-out),box-shadow .5s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard website/src/styles/gallery.css:242 — `.page-plate img` moves (`transition: transform 1.2s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard website/src/styles/gallery.css:243 — `.page-plate:hover img` moves (`transition: transform 7s cubic-bezier(.45,0,.4,1) .15s`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard website/src/styles/guide.css:77 — `.card` moves (`transition: transform .22s var(--ease-out),border-color .22s var(--ease-out),box-shadow .22s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard website/src/styles/index.css:23 — `.btn` moves (`transition: background .2s var(--ease-out),color .2s var(--ease-out),border-color .2s var(--ease-out),transform .2s var(--ease-out),box-shadow .2s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard website/src/styles/index.css:67 — `.eyebrow-arrow` moves (`transition: transform .2s var(--ease-out),color .2s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
  • Animation without a prefers-reduced-motion guard website/src/styles/index.css:123 — `.mode-thumb` moves (`transition: transform .5s var(--ease-out)`) and nothing reads prefers-reduced-motion for it — no @media (prefers-reduced-motion) rule for this element, no reset this project loads — so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce.
D3 · God Classes · FileTooLong · ×23
  • FileTooLong: workflow/workflow-compiler.mjs archify/renderers/workflow/workflow-compiler.mjs — FileTooLong — 4544 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 72% of them inside a single declaration: compileWorkflowInternal (1362-5644). The bar is 500 significant lines; this is 4044 over it, 9.09× 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: shared/geometry.mjs archify/renderers/shared/geometry.mjs — FileTooLong — 1477 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 977 over it, 2.95× 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: shared/atomic-output.mjs archify/renderers/shared/atomic-output.mjs — FileTooLong — 1469 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 969 over it, 2.94× 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: scripts/check-update.mjs archify/scripts/check-update.mjs — FileTooLong — 1288 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 788 over it, 2.58× 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: dataflow/dataflow-compiler.mjs archify/renderers/dataflow/dataflow-compiler.mjs — FileTooLong — 1182 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: compileDataflow (62-1605). The bar is 500 significant lines; this is 682 over it, 2.36× 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: scripts/check-render-output.mjs archify/scripts/check-render-output.mjs — FileTooLong — 1138 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 638 over it, 2.28× 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: erd/render-erd.mjs archify/renderers/erd/render-erd.mjs — FileTooLong — 1065 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 565 over it, 2.13× 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: architecture/routing.mjs archify/renderers/architecture/routing.mjs — FileTooLong — 1064 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: createRouter (75-1469). The bar is 500 significant lines; this is 564 over it, 2.13× 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 — 1045 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 545 over it, 2.09× 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: REDACTED REDACTED — FileTooLong — 1032 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 532 over it, 2.06× 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: architecture/render-architecture.mjs archify/renderers/architecture/render-architecture.mjs — FileTooLong — 885 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 385 over it, 1.77× 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: lifecycle/render-lifecycle.mjs archify/renderers/lifecycle/render-lifecycle.mjs — FileTooLong — 835 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 335 over it, 1.67× 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: sequence/render-sequence.mjs archify/renderers/sequence/render-sequence.mjs — FileTooLong — 773 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 273 over it, 1.55× 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: class/render-class.mjs archify/renderers/class/render-class.mjs — FileTooLong — 769 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 269 over it, 1.54× 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: shared/path-semantics.mjs archify/renderers/shared/path-semantics.mjs — FileTooLong — 677 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 177 over it, 1.35× 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: shared/brand-marks.mjs archify/renderers/shared/brand-marks.mjs — FileTooLong — 542 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 42 over it, 1.08× 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: scripts/distribution-acceptance.mjs integrations/deepseek-harness/scripts/distribution-acceptance.mjs — FileTooLong — 542 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 42 over it, 1.08× 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: REDACTED REDACTED — FileTooLong — 532 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 32 over it, 1.06× 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: explainer/finalize-delivery.html docs/cases/explainer/finalize-delivery.html — FileTooLong — 532 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 32 over it, 1.06× 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: explainer/first-rental.html docs/cases/explainer/first-rental.html — FileTooLong — 532 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 32 over it, 1.06× 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: explainer/p99-tail-latency.html docs/cases/explainer/p99-tail-latency.html — FileTooLong — 532 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 32 over it, 1.06× 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: explainer/tls-first-visit.html docs/cases/explainer/tls-first-visit.html — FileTooLong — 532 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 32 over it, 1.06× 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: shared/route-quality.mjs archify/renderers/shared/route-quality.mjs — FileTooLong — 509 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 9 over it, 1.02× 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.
D2 · Cognitive Complexity · workflow-compiler.compileWorkflowInternal · ×17
  • workflow-compiler.compileWorkflowInternal::validateReadablePinnedGeometry (cognitive 158) archify/renderers/workflow/workflow-compiler.mjs:2378 — workflow-compiler.compileWorkflowInternal::validateReadablePinnedGeometry has cognitive complexity 158 (threshold 15). Drivers by points: if/else 28 (76 pts), ternaries 12 (52 pts), boolean chains 22, loops 5 (8 pts) (nesting depth added 91). 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::validateWorkflow (cognitive 141) archify/renderers/workflow/workflow-compiler.mjs:2693 — workflow-compiler.compileWorkflowInternal::validateWorkflow has cognitive complexity 141 (threshold 15). Drivers by points: if/else 49 (91 pts), loops 18 (27 pts), boolean chains 19, ternaries 2 (4 pts) (nesting depth added 53). 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::readableAutomaticRoute (cognitive 113) archify/renderers/workflow/workflow-compiler.mjs:4693 — workflow-compiler.compileWorkflowInternal::readableAutomaticRoute has cognitive complexity 113 (threshold 15). Drivers by points: if/else 20 (50 pts), ternaries 12 (23 pts), loops 9 (20 pts), boolean chains 13, error handling 2 (7 pts) (nesting depth added 57). 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::routeClearsPlacedLabels (cognitive 48) archify/renderers/workflow/workflow-compiler.mjs:3547 — workflow-compiler.compileWorkflowInternal::routeClearsPlacedLabels has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (35 pts), loops 3 (7 pts), boolean chains 6 (nesting depth added 28). 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::readableControlledRoute (cognitive 33) archify/renderers/workflow/workflow-compiler.mjs:4945 — workflow-compiler.compileWorkflowInternal::readableControlledRoute has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 9, ternaries 5 (9 pts), loops 3 (4 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::measuredContentBounds (cognitive 28) archify/renderers/workflow/workflow-compiler.mjs:5154 — workflow-compiler.compileWorkflowInternal::measuredContentBounds has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 6 (8 pts), boolean chains 5, ternaries 3 (4 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::endpointSideIsHonored (cognitive 25) archify/renderers/workflow/workflow-compiler.mjs:2239 — workflow-compiler.compileWorkflowInternal::endpointSideIsHonored has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 9, ternaries 2 (nesting depth added 4). 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, workflow-compiler.compileWorkflowInternal::validateReadablePinnedGeometry, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::laterArrivalBlockCount (cognitive 24) archify/renderers/workflow/workflow-compiler.mjs:3870 — workflow-compiler.compileWorkflowInternal::laterArrivalBlockCount has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (9 pts), boolean chains 4, loops 1 (2 pts) (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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::labelRouteClearanceDeficit (cognitive 23) archify/renderers/workflow/workflow-compiler.mjs:3472 — workflow-compiler.compileWorkflowInternal::labelRouteClearanceDeficit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (7 pts), boolean chains 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::readableFreeSpacePlans (cognitive 23) archify/renderers/workflow/workflow-compiler.mjs:4634 — workflow-compiler.compileWorkflowInternal::readableFreeSpacePlans has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (6 pts), boolean chains 5, ternaries 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::firstRouteNodeCollision (cognitive 22) archify/renderers/workflow/workflow-compiler.mjs:3344 — workflow-compiler.compileWorkflowInternal::firstRouteNodeCollision has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 3 (8 pts), loops 2 (3 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily (cognitive 19) archify/renderers/workflow/workflow-compiler.mjs:2279 — workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (8 pts), boolean chains 3 (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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, workflow-compiler.compileWorkflowInternal::validateReadablePinnedGeometry, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::longCounterflowDeficit (cognitive 19) archify/renderers/workflow/workflow-compiler.mjs:3835 — workflow-compiler.compileWorkflowInternal::longCounterflowDeficit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (3 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::hasCompleteMeasuredPlan (cognitive 19) archify/renderers/workflow/workflow-compiler.mjs:5520 — workflow-compiler.compileWorkflowInternal::hasCompleteMeasuredPlan has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6, loops 2 (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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::routeInteractionMetrics (cognitive 18) archify/renderers/workflow/workflow-compiler.mjs:3793 — workflow-compiler.compileWorkflowInternal::routeInteractionMetrics has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan (cognitive 17) archify/renderers/workflow/workflow-compiler.mjs:2336 — workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, error handling 1, ternaries 1 (nesting depth added 1). 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::validateReadablePinnedGeometry, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::readableInternalDetourPlans (cognitive 16) archify/renderers/workflow/workflow-compiler.mjs:4600 — workflow-compiler.compileWorkflowInternal::readableInternalDetourPlans has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 3 (6 pts), boolean chains 2, ternaries 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. This shape REPEATS in the file: 16 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::routeMatchesPresetFamily, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 17 times rather than 17 independent problems. Splitting this body alone leaves the other 16 exactly as they are. Where these are variations on one operation, the change that clears all 17 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D8 · Code Coverage · Low coverage · ×16
  • Low coverage: archify/explainer/browser-check.mjs archify/explainer/browser-check.mjs:1 — 10.6% line coverage (22/208).
  • Low coverage: REDACTED REDACTED:1 — 12.0% line coverage (20/167).
  • Low coverage: archify/explainer/diagrams.mjs archify/explainer/diagrams.mjs:1 — 9.7% line coverage (50/517).
  • Low coverage: archify/explainer/parse.mjs archify/explainer/parse.mjs:1 — 5.3% line coverage (16/300).
  • Low coverage: archify/explainer/revision.mjs archify/explainer/revision.mjs:1 — 25.0% line coverage (5/20).
  • Low coverage: archify/renderers/shared/atomic-output.mjs archify/renderers/shared/atomic-output.mjs:1 — 6.6% line coverage (130/1982).
  • Low coverage: archify/renderers/shared/desktop-readability.mjs archify/renderers/shared/desktop-readability.mjs:1 — 25.8% line coverage (34/132).
  • Low coverage: archify/renderers/shared/diagnostics.mjs archify/renderers/shared/diagnostics.mjs:1 — 15.8% line coverage (33/209).
  • Low coverage: archify/renderers/shared/i18n.mjs archify/renderers/shared/i18n.mjs:1 — 36.6% line coverage (120/328).
  • Low coverage: archify/renderers/shared/output-path.mjs archify/renderers/shared/output-path.mjs:1 — 10.2% line coverage (45/440).
  • Low coverage: archify/renderers/shared/owned-temp-directory.mjs archify/renderers/shared/owned-temp-directory.mjs:1 — 18.3% line coverage (15/82).
  • Low coverage: archify/renderers/shared/path-semantics.mjs archify/renderers/shared/path-semantics.mjs:1 — 7.5% line coverage (76/1017).
  • Low coverage: archify/renderers/shared/portable-path.mjs archify/renderers/shared/portable-path.mjs:1 — 5.9% line coverage (24/408).
  • Low coverage: archify/renderers/shared/sidecar-path.mjs archify/renderers/shared/sidecar-path.mjs:1 — 28.9% line coverage (11/38).
  • Low coverage: archify/renderers/shared/text-fit.mjs archify/renderers/shared/text-fit.mjs:1 — 42.9% line coverage (45/105).
  • Low coverage: archify/renderers/shared/validator.mjs archify/renderers/shared/validator.mjs:1 — 10.8% line coverage (9/83).
AC6 · Visual & motion safety · Focus outline removed in CSS without a · ×15
  • Focus outline removed in CSS without a :focus replacement archify/assets/template.html:2413 — `.node-finder-input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement archify/assets/template.html:2419 — `.node-finder-input:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement archify/assets/template.html:4313 — `svg [data-node-id]:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement archify/assets/template.html:4316 — `svg [data-legend-kind]:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement archify/assets/template.html:4474 — `.relationship-hit-target` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement experiments/mco-showcase/mco-runtime.html:2413 — `.node-finder-input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement experiments/mco-showcase/mco-runtime.html:2419 — `.node-finder-input:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement experiments/mco-showcase/mco-runtime.html:4270 — `svg [data-node-id]:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement experiments/mco-showcase/mco-runtime.html:4273 — `svg [data-legend-kind]:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement experiments/mco-showcase/mco-runtime.html:4431 — `.relationship-hit-target` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement viewer/viewer.css:2244 — `.node-finder-input` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement viewer/viewer.css:2250 — `.node-finder-input:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement viewer/viewer.css:4144 — `svg [data-node-id]:focus-visible` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement viewer/viewer.css:4147 — `svg [data-legend-kind]:focus` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
  • Focus outline removed in CSS without a :focus replacement viewer/viewer.css:4305 — `.relationship-hit-target` sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible.
D1 · Cyclomatic Complexity · workflow-compiler.compileWorkflowInternal · ×11
  • workflow-compiler.compileWorkflowInternal::validateWorkflow (cyclomatic 91) archify/renderers/workflow/workflow-compiler.mjs:2693 — workflow-compiler.compileWorkflowInternal::validateWorkflow has cyclomatic complexity 91 (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 shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal, workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::validateReadablePinnedGeometry (cyclomatic 75) archify/renderers/workflow/workflow-compiler.mjs:2378 — workflow-compiler.compileWorkflowInternal::validateReadablePinnedGeometry has cyclomatic complexity 75 (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 shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal, workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::readableAutomaticRoute (cyclomatic 59) archify/renderers/workflow/workflow-compiler.mjs:4693 — workflow-compiler.compileWorkflowInternal::readableAutomaticRoute has cyclomatic complexity 59 (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 shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal, workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::readableControlledRoute (cyclomatic 29) archify/renderers/workflow/workflow-compiler.mjs:4945 — workflow-compiler.compileWorkflowInternal::readableControlledRoute has cyclomatic complexity 29 (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 shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal, workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::measuredContentBounds (cyclomatic 28) archify/renderers/workflow/workflow-compiler.mjs:5154 — workflow-compiler.compileWorkflowInternal::measuredContentBounds has cyclomatic complexity 28 (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. This shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal, workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::endpointSideIsHonored (cyclomatic 23) archify/renderers/workflow/workflow-compiler.mjs:2239 — workflow-compiler.compileWorkflowInternal::endpointSideIsHonored has cyclomatic complexity 23 (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 shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, workflow-compiler.compileWorkflowInternal::validateReadablePinnedGeometry, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::readableFreeSpacePlans (cyclomatic 23) archify/renderers/workflow/workflow-compiler.mjs:4634 — workflow-compiler.compileWorkflowInternal::readableFreeSpacePlans has cyclomatic complexity 23 (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. This shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal, workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::routeClearsPlacedLabels (cyclomatic 21) archify/renderers/workflow/workflow-compiler.mjs:3547 — workflow-compiler.compileWorkflowInternal::routeClearsPlacedLabels 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. This shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal, workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::hasCompleteMeasuredPlan (cyclomatic 21) archify/renderers/workflow/workflow-compiler.mjs:5520 — workflow-compiler.compileWorkflowInternal::hasCompleteMeasuredPlan has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal, workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan (cyclomatic 17) archify/renderers/workflow/workflow-compiler.mjs:2336 — workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan has cyclomatic complexity 17 (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 shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal, workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::validateReadablePinnedGeometry, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • workflow-compiler.compileWorkflowInternal::laterArrivalBlockCount (cyclomatic 16) archify/renderers/workflow/workflow-compiler.mjs:3870 — workflow-compiler.compileWorkflowInternal::laterArrivalBlockCount 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 shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal, workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · compileWorkflowInternal · ×9
  • compileWorkflowInternal::automaticEndpointRepairs (cyclomatic 45) archify/renderers/workflow/workflow-compiler.mjs:4503 — compileWorkflowInternal::automaticEndpointRepairs has cyclomatic complexity 45 (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.
  • compileWorkflowInternal::readableAutomaticVia (cyclomatic 39) archify/renderers/workflow/workflow-compiler.mjs:4042 — compileWorkflowInternal::readableAutomaticVia has cyclomatic complexity 39 (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.
  • compileWorkflowInternal::workflowEdgeLabelPoint (cyclomatic 31) archify/renderers/workflow/workflow-compiler.mjs:4366 — compileWorkflowInternal::workflowEdgeLabelPoint has cyclomatic complexity 31 (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.
  • compileWorkflowInternal::routeVia (cyclomatic 30) archify/renderers/workflow/workflow-compiler.mjs:4305 — compileWorkflowInternal::routeVia has cyclomatic complexity 30 (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.
  • compileWorkflowInternal::validateReadableInputsBeforeRouting (cyclomatic 28) archify/renderers/workflow/workflow-compiler.mjs:3038 — compileWorkflowInternal::validateReadableInputsBeforeRouting has cyclomatic complexity 28 (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.
  • compileWorkflowInternal::automaticPortCandidates (cyclomatic 24) archify/renderers/workflow/workflow-compiler.mjs:4470 — compileWorkflowInternal::automaticPortCandidates 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.
  • compileWorkflowInternal::validateReadablePairwisePinConflicts (cyclomatic 23) archify/renderers/workflow/workflow-compiler.mjs:2060 — compileWorkflowInternal::validateReadablePairwisePinConflicts has cyclomatic complexity 23 (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.
  • compileWorkflowInternal::readablePresetVia (cyclomatic 23) archify/renderers/workflow/workflow-compiler.mjs:4205 — compileWorkflowInternal::readablePresetVia has cyclomatic complexity 23 (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.
  • compileWorkflowInternal::workflowSceneLabelObstacles (cyclomatic 18) archify/renderers/workflow/workflow-compiler.mjs:1531 — compileWorkflowInternal::workflowSceneLabelObstacles has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
AC3 · Page structure · Page without a main landmark · ×8
  • Page without a main landmark archify/assets/template.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark experiments/mco-showcase/mco-runtime.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark experiments/v3-mermaid-validation/output-C-archify/1.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark experiments/v3-mermaid-validation/output-C-archify/2.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark experiments/v3-mermaid-validation/output-C-archify/3.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark experiments/visual-evolution/prototype.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark viewer/template.source.html:2 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
  • Page without a main landmark website/src/layouts/SiteLayout.astro:24 — No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
D15 · Churn × Complexity Hotspots · Repeated repair · ×8
  • Repeated repair: scripts/build-readme-showcase.mjs scripts/build-readme-showcase.mjs:308 — scripts/build-readme-showcase.mjs changed 10 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 build-readme-showcase.captureFrames at line 308), 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(showcase): recognize CLI aliases by filesystem identity”; “fix(showcase): preserve retained profiles and recognize CLI aliases”; “fix(showcase): detect direct invocation without raw path equality”; “fix(showcase): select the Windows command without raw path equality”. 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- scripts/build-readme-showcase.mjs`: 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: archify/renderers/timeline/render-timeline.mjs archify/renderers/timeline/render-timeline.mjs:297 — archify/renderers/timeline/render-timeline.mjs changed 9 times in last 90 days and 7 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 render-timeline.wrapTitle at line 297), 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(timeline): align ticks across timezone offset changes”; “fix(timeline): preserve milliseconds in time labels”; “fix(timeline): preserve historical calendar years in zone offsets”; “fix(timeline): reject duplicate lane identities”. 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/timeline/render-timeline.mjs`: 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: scripts/write-deterministic-zip.mjs scripts/write-deterministic-zip.mjs:87 — scripts/write-deterministic-zip.mjs changed 6 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 9 (its worst body is write-deterministic-zip.loadModeManifest at line 87), 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: harden Windows path publication contracts”; “fix: close Windows path contract review gaps”; “fix: unify cross-platform path contracts”; “fix(packaging): make the canonical archify.zip reproducible on Windows (#385)”. 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- scripts/write-deterministic-zip.mjs`: 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: archify/renderers/shared/diagnostics.mjs archify/renderers/shared/diagnostics.mjs:159 — archify/renderers/shared/diagnostics.mjs changed 7 times in last 90 days and 4 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 diagnostics.installRendererDiagnosticBoundary at line 159), 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: attribute repeated diagnostic messages per occurrence”; “fix(diagnostics): stop truncating large renderer receipts on a pipe (#374)”; “fix(renderer): preserve unexpected failures across diagnostic boundaries”; “fix(renderer): classify and format authoring failures at their source”. 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- archify/renderers/shared/diagnostics.mjs`: 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: integrations/deepseek-harness/scripts/release-source.mjs integrations/deepseek-harness/scripts/release-source.mjs:78 — integrations/deepseek-harness/scripts/release-source.mjs changed 5 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 6 (its worst body is release-source.releaseSnapshot at line 78), 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(dsh): package version-specific usage documentation”; “fix: enforce pinned-runtime contract in DSH release pipeline”; “fix: unify cross-platform path contracts”. 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- integrations/deepseek-harness/scripts/release-source.mjs`: 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: viewer/intent-trace.js viewer/intent-trace.js:91 — viewer/intent-trace.js changed 4 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 12 (its worst body is show at line 91), 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(viewer): keep Live connection flow running”; “fix: resolve new diagram review and integration defects”; “fix(viewer): handle Object.prototype names as semantic IDs (#424)”. 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- viewer/intent-trace.js`: 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: benchmarks/repair-rounds/defects.mjs benchmarks/repair-rounds/defects.mjs:43 — benchmarks/repair-rounds/defects.mjs changed 4 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 defects.capture at line 43), 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(architecture): report component-level diagnostics as structured repairs”; “test(benchmarks): cover advertised fix sets spanning multiple references”; “fix: cover deliver-stage meta.output diagnostics and split silent vs unreached defects”. 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- benchmarks/repair-rounds/defects.mjs`: 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: benchmarks/repair-rounds/repairs.mjs benchmarks/repair-rounds/repairs.mjs:24 — benchmarks/repair-rounds/repairs.mjs 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 6 (its worst body is repairs.setByPointer at line 24), 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(architecture): report component-level diagnostics as structured repairs”; “fix(benchmarks): apply the complete advertised fix set per candidate”; “fix: cover deliver-stage meta.output diagnostics and split silent vs unreached defects”. 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-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-31 19:34:17 +08:00' --until='2026-10-29 19:34:17 +08:00' --full-history --no-merges -- benchmarks/repair-rounds/repairs.mjs`: 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.
D2 · Cognitive Complexity · compileWorkflowInternal · ×8
  • compileWorkflowInternal::readableAutomaticVia (cognitive 94) archify/renderers/workflow/workflow-compiler.mjs:4042 — compileWorkflowInternal::readableAutomaticVia has cognitive complexity 94 (threshold 15). Drivers by points: if/else 21 (67 pts), loops 4 (15 pts), boolean chains 8, other 4 (nesting depth added 57). 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.
  • compileWorkflowInternal::automaticEndpointRepairs (cognitive 91) archify/renderers/workflow/workflow-compiler.mjs:4503 — compileWorkflowInternal::automaticEndpointRepairs has cognitive complexity 91 (threshold 15). Drivers by points: ternaries 14 (36 pts), if/else 11 (33 pts), loops 4 (10 pts), boolean chains 9, other 3 (nesting depth added 50). 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.
  • compileWorkflowInternal::validateReadableInputsBeforeRouting (cognitive 45) archify/renderers/workflow/workflow-compiler.mjs:3038 — compileWorkflowInternal::validateReadableInputsBeforeRouting has cognitive complexity 45 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 8 (12 pts), ternaries 3 (8 pts), other 4, boolean chains 2 (nesting depth added 19). 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.
  • compileWorkflowInternal::validateReadablePairwisePinConflicts (cognitive 44) archify/renderers/workflow/workflow-compiler.mjs:2060 — compileWorkflowInternal::validateReadablePairwisePinConflicts has cognitive complexity 44 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 6 (13 pts), ternaries 2 (7 pts), other 6, boolean chains 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.
  • compileWorkflowInternal::automaticPortCandidates (cognitive 38) archify/renderers/workflow/workflow-compiler.mjs:4470 — compileWorkflowInternal::automaticPortCandidates has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 8 (14 pts), if/else 6 (13 pts), loops 4 (6 pts), boolean chains 4, other 1 (nesting depth added 15). 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.
  • compileWorkflowInternal::workflowEdgeLabelPoint (cognitive 30) archify/renderers/workflow/workflow-compiler.mjs:4366 — compileWorkflowInternal::workflowEdgeLabelPoint has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 8, ternaries 1 (2 pts), loops 1, other 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.
  • compileWorkflowInternal::routeVia (cognitive 29) archify/renderers/workflow/workflow-compiler.mjs:4305 — compileWorkflowInternal::routeVia has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (17 pts), other 7, boolean chains 4, match/switch 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.
  • compileWorkflowInternal::readablePresetVia (cognitive 20) archify/renderers/workflow/workflow-compiler.mjs:4205 — compileWorkflowInternal::readablePresetVia has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (3 pts), boolean chains 2, other 2, ternaries 2, match/switch 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.
X24 · Document value interpolated into markup unescaped · Untrusted text written into markup unescaped · ×8
  • Untrusted text written into markup unescaped archify/explainer/inline.mjs:133 — `escapeHtml(ref.url)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
  • Untrusted text written into markup unescaped REDACTED:455 — `words.prev` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped REDACTED:533 — `words.ask` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped REDACTED:617 — `first+index` is text this program did not author, and it is written into the text of an element through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped REDACTED:620 — `sourceIcons[kind]` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
  • Untrusted text written into markup unescaped archify/explainer/render.mjs:59 — `target.edges?` data-diagram-edges="${escape(JSON.stringify(target.edges))}"`:''` is text this program did not author, and it is written into an unquoted attribute through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML text encoding does not help in an unquoted attribute — whitespace ends it; quote the attribute and encode the value.
  • Untrusted text written into markup unescaped archify/explainer/render.mjs:111 — `escape(source.url)` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup built here with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
  • Untrusted text written into markup unescaped archify/explainer/render.mjs:128 — `favicon` is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here — a `javascript:` URL contains nothing it changes; allow only http(s) or a relative path.
R10 · Code Duplication · Duplicated block (15 lines × 2 locations) · ×5
  • Duplicated block (15 lines × 2 locations) archify/bin/archify.mjs:3472 — archify/bin/archify.mjs:3472 · archify/bin/archify.mjs:3504 — 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 × 2 locations) archify/renderers/workflow/workflow-compiler.mjs:2651 — archify/renderers/workflow/workflow-compiler.mjs:2651 · archify/renderers/workflow/workflow-compiler.mjs:2666 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (15 lines × 2 locations) scripts/run-windows-path-tests.mjs:201 — scripts/run-windows-path-tests.mjs:201 · scripts/run-windows-path-tests.mjs:222 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (15 lines × 2 locations) REDACTED:1260 — REDACTED:1260 · REDACTED:1284 — 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 × 2 locations) viewer/focus.js:1479 — viewer/focus.js:1479 · viewer/semantic-lens.js:563 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (14 lines × 2 locations) · ×5
  • Duplicated block (14 lines × 2 locations) archify/bin/archify.mjs:2828 — archify/bin/archify.mjs:2828 · archify/bin/archify.mjs:6408 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (14 lines × 2 locations) archify/bin/visual-check.mjs:2589 — archify/bin/visual-check.mjs:2589 · archify/bin/visual-check.mjs:2614 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (14 lines × 2 locations) archify/renderers/dataflow/dataflow-compiler.mjs:521 — archify/renderers/dataflow/dataflow-compiler.mjs:521 · archify/renderers/workflow/workflow-compiler.mjs:2988 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (14 lines × 2 locations) scripts/build-guide.mjs:24 — scripts/build-guide.mjs:24 · scripts/build-start.mjs:55 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (14 lines × 2 locations) REDACTED:595 — REDACTED:595 · REDACTED:743 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R4 · Test Coverage · No test reaches this file · ×5
  • No test reaches this file experiments/visual-evolution/prototype.mjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file experiments/node-index-rows/compare.mjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file REDACTED:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file archify/renderers/explainer/render-explainer.mjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
  • No test reaches this file archify/scripts/render-examples.mjs:1 — No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL — if neither does, no test reaches this one.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D1 · Cyclomatic Complexity · compileDataflow · ×3
  • compileDataflow::build::validateDataflow (cyclomatic 56) archify/renderers/dataflow/dataflow-compiler.mjs:250 — compileDataflow::build::validateDataflow has cyclomatic complexity 56 (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.
  • compileDataflow::build::routeVia (cyclomatic 29) archify/renderers/dataflow/dataflow-compiler.mjs:569 — compileDataflow::build::routeVia has cyclomatic complexity 29 (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.
  • compileDataflow::build::accept (cyclomatic 26) archify/renderers/dataflow/dataflow-compiler.mjs:1278 — compileDataflow::build::accept 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.
D2 · Cognitive Complexity · dataflow-compiler.compileDataflow · ×3
  • dataflow-compiler.compileDataflow::build (cognitive 389) archify/renderers/dataflow/dataflow-compiler.mjs:63 — dataflow-compiler.compileDataflow::build has cognitive complexity 389 (threshold 15). Drivers by points: if/else 68 (217 pts), loops 33 (88 pts), boolean chains 46, ternaries 10 (38 pts) (nesting depth added 232). 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. This shape REPEATS in the file: 2 other methods here (dataflow-compiler.compileDataflow::build::validateDataflow, dataflow-compiler.compileDataflow::build::compactCorridors) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • dataflow-compiler.compileDataflow::build::validateDataflow (cognitive 113) archify/renderers/dataflow/dataflow-compiler.mjs:250 — dataflow-compiler.compileDataflow::build::validateDataflow has cognitive complexity 113 (threshold 15). Drivers by points: if/else 25 (61 pts), loops 12 (22 pts), ternaries 7 (22 pts), boolean chains 8 (nesting depth added 61). 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. This shape REPEATS in the file: 2 other methods here (dataflow-compiler.compileDataflow::build, dataflow-compiler.compileDataflow::build::compactCorridors) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • dataflow-compiler.compileDataflow::build::compactCorridors (cognitive 22) archify/renderers/dataflow/dataflow-compiler.mjs:777 — dataflow-compiler.compileDataflow::build::compactCorridors has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 3 (5 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 9). 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. This shape REPEATS in the file: 2 other methods here (dataflow-compiler.compileDataflow::build, dataflow-compiler.compileDataflow::build::validateDataflow) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · createRouter.planRoutes · ×3
  • createRouter.planRoutes::improveReciprocalPairs (cognitive 71) archify/renderers/architecture/routing.mjs:1088 — createRouter.planRoutes::improveReciprocalPairs has cognitive complexity 71 (threshold 15). Drivers by points: if/else 13 (38 pts), ternaries 5 (15 pts), boolean chains 12, loops 3 (6 pts) (nesting depth added 38). 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.
  • createRouter.planRoutes::improveComplexRoutes (cognitive 40) archify/renderers/architecture/routing.mjs:1235 — createRouter.planRoutes::improveComplexRoutes has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 10, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 18). 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.
  • createRouter.planRoutes::endpointSlotsClear (cognitive 24) archify/renderers/architecture/routing.mjs:1055 — createRouter.planRoutes::endpointSlotsClear has cognitive complexity 24 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (9 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 15). 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.
D2 · Cognitive Complexity · routing.createRouter.planRoutes · ×3
  • routing.createRouter.planRoutes::improveReciprocalPairs (cognitive 63) archify/renderers/architecture/routing.mjs:1088 — routing.createRouter.planRoutes::improveReciprocalPairs has cognitive complexity 63 (threshold 15). Drivers by points: if/else 13 (38 pts), boolean chains 13, loops 3 (6 pts), ternaries 2 (6 pts) (nesting depth added 32). 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. This shape REPEATS in the file: 3 other methods here (routing.createRouter.planRoutes, routing.createRouter.planRoutes::endpointSlotsClear, routing.createRouter.planRoutes::improveComplexRoutes) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • routing.createRouter.planRoutes::improveComplexRoutes (cognitive 40) archify/renderers/architecture/routing.mjs:1235 — routing.createRouter.planRoutes::improveComplexRoutes has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 10, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 18). 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. This shape REPEATS in the file: 3 other methods here (routing.createRouter.planRoutes, routing.createRouter.planRoutes::endpointSlotsClear, routing.createRouter.planRoutes::improveReciprocalPairs) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • routing.createRouter.planRoutes::endpointSlotsClear (cognitive 24) archify/renderers/architecture/routing.mjs:1055 — routing.createRouter.planRoutes::endpointSlotsClear has cognitive complexity 24 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (9 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 15). 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. This shape REPEATS in the file: 3 other methods here (routing.createRouter.planRoutes, routing.createRouter.planRoutes::improveReciprocalPairs, routing.createRouter.planRoutes::improveComplexRoutes) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · compileDataflow · ×3
  • compileDataflow::build::routeVia (cognitive 36) archify/renderers/dataflow/dataflow-compiler.mjs:569 — compileDataflow::build::routeVia has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 3 (7 pts), boolean chains 6, other 4, match/switch 1 (nesting depth added 14). 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.
  • compileDataflow::build::accept (cognitive 36) archify/renderers/dataflow/dataflow-compiler.mjs:1278 — compileDataflow::build::accept has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 2 (9 pts), boolean chains 8, loops 3 (6 pts) (nesting depth added 17). 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.
  • compileDataflow::build::pathFor::accept (cognitive 26) archify/renderers/dataflow/dataflow-compiler.mjs:675 — compileDataflow::build::pathFor::accept has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (6 pts), ternaries 1 (5 pts), boolean chains 3 (nesting depth added 15). 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.
R10 · Code Duplication · Duplicated block (17 lines × 2 locations) · ×3
  • Duplicated block (17 lines × 2 locations) archify/bin/archify.mjs:4057 — archify/bin/archify.mjs:4057 · archify/bin/archify.mjs:4077 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (17 lines × 2 locations) archify/bin/archify.mjs:4523 — archify/bin/archify.mjs:4523 · archify/bin/archify.mjs:4587 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
  • Duplicated block (17 lines × 2 locations) archify/renderers/shared/atomic-output.mjs:1042 — archify/renderers/shared/atomic-output.mjs:1042 · archify/renderers/shared/atomic-output.mjs:1372 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (13 lines × 2 locations) · ×3
  • Duplicated block (13 lines × 2 locations) archify/bin/archify.mjs:1103 — archify/bin/archify.mjs:1103 · archify/bin/archify.mjs:1228 — 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 locations) archify/bin/archify.mjs:1159 — archify/bin/archify.mjs:1159 · archify/bin/archify.mjs:1460 — 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 locations) archify/bin/visual-check.mjs:1134 — archify/bin/visual-check.mjs:1134 · archify/bin/visual-check.mjs:1151 — 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.
D1 · Cyclomatic Complexity · routing.createRouter.planRoutes · ×2
  • routing.createRouter.planRoutes::improveReciprocalPairs (cyclomatic 49) archify/renderers/architecture/routing.mjs:1088 — routing.createRouter.planRoutes::improveReciprocalPairs has cyclomatic complexity 49 (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 shape REPEATS in the file: 2 other methods here (routing.createRouter.planRoutes, routing.createRouter.planRoutes::improveComplexRoutes) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • routing.createRouter.planRoutes::improveComplexRoutes (cyclomatic 27) archify/renderers/architecture/routing.mjs:1235 — routing.createRouter.planRoutes::improveComplexRoutes 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. This shape REPEATS in the file: 2 other methods here (routing.createRouter.planRoutes, routing.createRouter.planRoutes::improveReciprocalPairs) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · createRouter.planRoutes · ×2
  • createRouter.planRoutes::improveReciprocalPairs (cyclomatic 47) archify/renderers/architecture/routing.mjs:1088 — createRouter.planRoutes::improveReciprocalPairs has cyclomatic complexity 47 (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.
  • createRouter.planRoutes::improveComplexRoutes (cyclomatic 27) archify/renderers/architecture/routing.mjs:1235 — createRouter.planRoutes::improveComplexRoutes 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.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 17) · ×2
  • (anonymous) (cyclomatic 17) viewer/route-probe.js:7 — (anonymous) has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 964, 961, 956, …). 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.
  • (anonymous) (cyclomatic 17) viewer/viewer-camera.js:1 — (anonymous) has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 557, 564, 576, …). 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.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 16) · ×2
  • (anonymous) (cyclomatic 16) REDACTED:1181 — (anonymous) has cyclomatic complexity 16 (threshold 15). 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, 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.
  • (anonymous) (cyclomatic 16) viewer/intent-trace.js:6 — (anonymous) has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 179, 186, 198, …). 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.
D10 · Test Quality · Fixed-sleep synchronisation · ×2
  • Fixed-sleep synchronisation: a snooze waits briefly for an in-flight refresh instead of losing the choice test/update-notifier.test.mjs:2111 — This test starts work it did not wait for (`refresh`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 25))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
  • Fixed-sleep synchronisation: a snooze for a superseded release never suppresses the newer candidate test/update-notifier.test.mjs:2143 — This test starts work it did not wait for (`refresh`, still running when the sleep starts) and then orders itself against it with `new Promise((resolve) => setTimeout(resolve, 25))` — a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer's box and random in CI. Wait for the event itself instead: the process's own exit or output, a completion handle, or a condition polled to a timeout.
D2 · Cognitive Complexity · parse.parseExplainer · ×2
  • parse.parseExplainer::attributes (cognitive 41) archify/explainer/parse.mjs:118 — parse.parseExplainer::attributes has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (9 pts), boolean chains 6 (nesting depth added 20). 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. This shape REPEATS in the file: 2 other methods here (parse.parseExplainer, parse.parseExplainer::scan) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • parse.parseExplainer::scan (cognitive 22) archify/explainer/parse.mjs:55 — parse.parseExplainer::scan has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (6 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. This shape REPEATS in the file: 2 other methods here (parse.parseExplainer, parse.parseExplainer::attributes) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · automatic-labels.placeAutomaticLabels · ×2
  • automatic-labels.placeAutomaticLabels::gridCandidates (cognitive 23) archify/renderers/shared/automatic-labels.mjs:104 — automatic-labels.placeAutomaticLabels::gridCandidates has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (7 pts), ternaries 1 (3 pts), boolean chains 2 (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. This shape REPEATS in the file: one other method here (automatic-labels.placeAutomaticLabels::placeLabel) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
  • automatic-labels.placeAutomaticLabels::placeLabel (cognitive 17) archify/renderers/shared/automatic-labels.mjs:160 — automatic-labels.placeAutomaticLabels::placeLabel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, loops 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. This shape REPEATS in the file: one other method here (automatic-labels.placeAutomaticLabels::gridCandidates) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · Medium CVE · ×2
  • REDACTED
  • REDACTED
R10 · Code Duplication · Duplication concentrated across 4 sibling directories (11 clone groups) · ×2
  • Duplication concentrated across 4 sibling directories (11 clone groups) archify/bin/visual-check.mjs:1467 — 11 duplicated blocks under the repository root have copies in at least two of the sibling directories archify, experiments, integrations, scripts — 8 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 11 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 11 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 11 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
  • Duplication concentrated across 4 sibling directories (11 clone groups) archify/bin/preview.mjs:222 — 11 duplicated blocks under archify/ have copies in at least two of the sibling directories bin, explainer, renderers, scripts — 8 of them are reported below, and 3 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 11 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 11 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 11 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplicated block (21 lines × 2 locations) · ×2
  • Duplicated block (21 lines × 2 locations) archify/renderers/workflow/workflow-compiler.mjs:338 — archify/renderers/workflow/workflow-compiler.mjs:338 · archify/renderers/workflow/workflow-compiler.mjs:361 — 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 (21 lines × 2 locations) scripts/run-windows-path-tests.mjs:353 — scripts/run-windows-path-tests.mjs:353 · scripts/run-windows-path-tests.mjs:376 — 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.
R10 · Code Duplication · Duplicated block (19 lines × 2 locations) · ×2
  • Duplicated block (19 lines × 2 locations) archify/bin/archify.mjs:884 — archify/bin/archify.mjs:884 · archify/renderers/shared/atomic-output.mjs:104 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another.
  • Duplicated block (19 lines × 2 locations) archify/renderers/shared/portable-path.mjs:356 — archify/renderers/shared/portable-path.mjs:356 · archify/renderers/shared/portable-path.mjs:376 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block with local edits (19 matched lines × 2 locations) · ×2
  • Duplicated block with local edits (19 matched lines × 2 locations) archify/bin/archify.mjs:2960 — archify/bin/archify.mjs:2960 · archify/bin/archify.mjs:3300 — the two spans are one implementation copied and then locally edited — 173 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
  • Duplicated block with local edits (19 matched lines × 2 locations) archify/renderers/tree/render-tree.mjs:88 — archify/renderers/tree/render-tree.mjs:88 · archify/renderers/waterfall/render-waterfall.mjs:87 — the two spans are one implementation copied and then locally edited — 198 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×2
  • Swallowed exception (caught, then discarded) REDACTED:278 — `catch (_)` 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) viewer/semantic-lens.js:71 — `catch (_)` 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.
AC7 · A11y enforcement · Accessibility enforcement below the top rung · ×1
  • Accessibility enforcement below the top rung — No accessibility enforcement found — no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 36 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
D1 · Cyclomatic Complexity · dataflow-compiler.compileDataflow · ×1
  • dataflow-compiler.compileDataflow::build (cyclomatic 179) archify/renderers/dataflow/dataflow-compiler.mjs:63 — dataflow-compiler.compileDataflow::build has cyclomatic complexity 179 (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.
D1 · Cyclomatic Complexity · createReadableLayout (cyclomatic 173) · ×1
  • createReadableLayout (cyclomatic 173) archify/renderers/workflow/workflow-compiler.mjs:233 — createReadableLayout has cyclomatic complexity 173 (threshold 15). Of this number, 138 points are the body's own statements and 35 belong to 17 function items 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.
D1 · Cyclomatic Complexity · validate.validateExplainer (cyclomatic 135) · ×1
  • validate.validateExplainer (cyclomatic 135) archify/explainer/validate.mjs:17 — validate.validateExplainer has cyclomatic complexity 135 (threshold 15). Of this number, 89 points are the body's own statements and 46 belong to 10 function items 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.
D1 · Cyclomatic Complexity · validateArchitecture (cyclomatic 131) · ×1
  • validateArchitecture (cyclomatic 131) archify/renderers/architecture/render-architecture.mjs:487 — validateArchitecture has cyclomatic complexity 131 (threshold 15). Of this number, 120 points are the body's own statements and 11 belong to 26 function items 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.
D1 · Cyclomatic Complexity · routing.createRouter.routeVia (cyclomatic 127) · ×1
  • routing.createRouter.routeVia (cyclomatic 127) archify/renderers/architecture/routing.mjs:396 — routing.createRouter.routeVia has cyclomatic complexity 127 (threshold 15). Of this number, 117 points are the body's own statements and 10 belong to 4 function items 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.
D1 · Cyclomatic Complexity · createRouter.routeVia (cyclomatic 127) · ×1
  • createRouter.routeVia (cyclomatic 127) archify/renderers/architecture/routing.mjs:396 — createRouter.routeVia has cyclomatic complexity 127 (threshold 15). Of this number, 117 points are the body's own statements and 10 belong to 13 function items 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.
D1 · Cyclomatic Complexity · check.checkExplainerHtml (cyclomatic 126) · ×1
  • check.checkExplainerHtml (cyclomatic 126) REDACTED:53 — check.checkExplainerHtml has cyclomatic complexity 126 (threshold 15). Of this number, 115 points are the body's own statements and 11 belong to 7 function items 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.
D1 · Cyclomatic Complexity · archify.commandDeliver (cyclomatic 124) · ×1
  • archify.commandDeliver (cyclomatic 124) archify/bin/archify.mjs:4400 — archify.commandDeliver has cyclomatic complexity 124 (threshold 15). Of this number, 117 points are the body's own statements and 7 belong to 3 function items 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.
D1 · Cyclomatic Complexity · compileExplainerDiagram (cyclomatic 111) · ×1
  • compileExplainerDiagram (cyclomatic 111) archify/explainer/diagrams.mjs:108 — compileExplainerDiagram has cyclomatic complexity 111 (threshold 15). Of this number, 78 points are the body's own statements and 33 belong to 60 function items 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.
D1 · Cyclomatic Complexity · parseExplainer · ×1
  • parseExplainer::directive (cyclomatic 108) archify/explainer/parse.mjs:153 — parseExplainer::directive has cyclomatic complexity 108 (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.
D1 · Cyclomatic Complexity · archify.commandCompare (cyclomatic 91) · ×1
  • archify.commandCompare (cyclomatic 91) archify/bin/archify.mjs:3675 — archify.commandCompare has cyclomatic complexity 91 (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.
D1 · Cyclomatic Complexity · finalize.runFinalize (cyclomatic 90) · ×1
  • finalize.runFinalize (cyclomatic 90) archify/bin/finalize.mjs:722 — finalize.runFinalize has cyclomatic complexity 90 (threshold 15). Of this number, 76 points are the body's own statements and 14 belong to 3 function items 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.
D1 · Cyclomatic Complexity · parseExplainer (cyclomatic 87) · ×1
  • parseExplainer (cyclomatic 87) archify/explainer/parse.mjs:18 — parseExplainer has cyclomatic complexity 87 (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.
D1 · Cyclomatic Complexity · validateSequence (cyclomatic 84) · ×1
  • validateSequence (cyclomatic 84) archify/renderers/sequence/render-sequence.mjs:554 — validateSequence has cyclomatic complexity 84 (threshold 15). Of this number, 45 points are the body's own statements and 39 belong to 18 function items 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.
D1 · Cyclomatic Complexity · automatic-labels.placeAutomaticLabels (cyclomatic 83) · ×1
  • automatic-labels.placeAutomaticLabels (cyclomatic 83) archify/renderers/shared/automatic-labels.mjs:6 — automatic-labels.placeAutomaticLabels has cyclomatic complexity 83 (threshold 15). Most of this is not in the body itself: 7 of the 83 points are its own statements and the rest belongs to 16 function items inside it that branch (placeLabel, slidingCandidates, gridCandidates, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · visual-check.runBrowserEvidence (cyclomatic 82) · ×1
  • visual-check.runBrowserEvidence (cyclomatic 82) archify/bin/visual-check.mjs:2444 — visual-check.runBrowserEvidence has cyclomatic complexity 82 (threshold 15). Of this number, 75 points are the body's own statements and 7 belong to 4 function items inside it that branch. 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.
D1 · Cyclomatic Complexity · joint-label-routing.repairLabelRoutes (cyclomatic 81) · ×1
  • joint-label-routing.repairLabelRoutes (cyclomatic 81) archify/renderers/dataflow/joint-label-routing.mjs:24 — joint-label-routing.repairLabelRoutes has cyclomatic complexity 81 (threshold 15). Of this number, 46 points are the body's own statements and 35 belong to 14 function items 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.
D1 · Cyclomatic Complexity · archify.commitDeliveryPair (cyclomatic 79) · ×1
  • archify.commitDeliveryPair (cyclomatic 79) archify/bin/archify.mjs:3236 — archify.commitDeliveryPair has cyclomatic complexity 79 (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.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 79) · ×1
  • (anonymous) (cyclomatic 79) viewer/guided-views.js:1 — (anonymous) has cyclomatic complexity 79 (threshold 15). Most of this is not in the body itself: 15 of the 79 points are its own statements and the rest belongs to 24 function items inside it that branch (a function literal at line 1575, a function literal at line 1547, a function literal at line 1526, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · measurePublicHtml (cyclomatic 78) · ×1
  • measurePublicHtml (cyclomatic 78) archify/explainer/browser-check.mjs:30 — measurePublicHtml has cyclomatic complexity 78 (threshold 15). Most of this is not in the body itself: 11 of the 78 points are its own statements and the rest belongs to 37 function items inside it that branch (a function literal at line 50, a function literal at line 49, a function literal at line 49, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · sources.resolveExplainerSources (cyclomatic 77) · ×1
  • sources.resolveExplainerSources (cyclomatic 77) archify/explainer/sources.mjs:171 — sources.resolveExplainerSources has cyclomatic complexity 77 (threshold 15). Of this number, 75 points are the body's own statements and 2 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.
D1 · Cyclomatic Complexity · patch.preparePanelPatch (cyclomatic 75) · ×1
  • patch.preparePanelPatch (cyclomatic 75) REDACTED:21 — patch.preparePanelPatch has cyclomatic complexity 75 (threshold 15). Of this number, 49 points are the body's own statements and 26 belong to 8 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · routing.createRouter.planRoutes (cyclomatic 75) · ×1
  • routing.createRouter.planRoutes (cyclomatic 75) archify/renderers/architecture/routing.mjs:1011 — routing.createRouter.planRoutes has cyclomatic complexity 75 (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 shape REPEATS in the file: 2 other methods here (routing.createRouter.planRoutes::improveReciprocalPairs, routing.createRouter.planRoutes::improveComplexRoutes) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · createRouter.planRoutes (cyclomatic 75) · ×1
  • createRouter.planRoutes (cyclomatic 75) archify/renderers/architecture/routing.mjs:1011 — createRouter.planRoutes has cyclomatic complexity 75 (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.
D1 · Cyclomatic Complexity · archify.commitComparePair (cyclomatic 73) · ×1
  • archify.commitComparePair (cyclomatic 73) archify/bin/archify.mjs:2899 — archify.commitComparePair has cyclomatic complexity 73 (threshold 15). Of this number, 71 points are the body's own statements and 2 belong to 2 function items 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.
D1 · Cyclomatic Complexity · copy-site-assets.copySiteAssets (cyclomatic 72) · ×1
  • copy-site-assets.copySiteAssets (cyclomatic 72) scripts/copy-site-assets.mjs:113 — copy-site-assets.copySiteAssets has cyclomatic complexity 72 (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.
D1 · Cyclomatic Complexity · archify.writeDeliveryProvenance (cyclomatic 71) · ×1
  • archify.writeDeliveryProvenance (cyclomatic 71) archify/bin/archify.mjs:1009 — archify.writeDeliveryProvenance has cyclomatic complexity 71 (threshold 15). Of this number, 70 points are the body's own statements and 1 belongs to one function item 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.
D1 · Cyclomatic Complexity · package-smoke.verifyPackage (cyclomatic 71) · ×1
  • package-smoke.verifyPackage (cyclomatic 71) scripts/package-smoke.mjs:113 — package-smoke.verifyPackage has cyclomatic complexity 71 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · visual-check.commitVisualEvidence (cyclomatic 70) · ×1
  • visual-check.commitVisualEvidence (cyclomatic 70) archify/bin/visual-check.mjs:962 — visual-check.commitVisualEvidence has cyclomatic complexity 70 (threshold 15). Of this number, 67 points are the body's own statements and 3 belong to one function item 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.
D1 · Cyclomatic Complexity · shortestOrthogonalGridRoute (cyclomatic 70) · ×1
  • shortestOrthogonalGridRoute (cyclomatic 70) archify/renderers/shared/route-quality.mjs:261 — shortestOrthogonalGridRoute has cyclomatic complexity 70 (threshold 15). Of this number, 48 points are the body's own statements and 22 belong to 19 function items 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.
D1 · Cyclomatic Complexity · render.renderExplainer · ×1
  • render.renderExplainer::blockHtml (cyclomatic 69) archify/explainer/render.mjs:61 — render.renderExplainer::blockHtml has cyclomatic complexity 69 (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 shape REPEATS in the file: one other method here (render.renderExplainer) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 69) · ×1
  • (anonymous) (cyclomatic 69) viewer/focus.js:6 — (anonymous) has cyclomatic complexity 69 (threshold 15). Most of this is not in the body itself: 7 of the 69 points are its own statements and the rest belongs to 21 function items inside it that branch (a function literal at line 1501, a function literal at line 1517, a function literal at line 1474, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · parseExplainerDiff (cyclomatic 68) · ×1
  • parseExplainerDiff (cyclomatic 68) archify/explainer/diff.mjs:27 — parseExplainerDiff has cyclomatic complexity 68 (threshold 15). Of this number, 54 points are the body's own statements and 14 belong to 8 function items 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.
D1 · Cyclomatic Complexity · archify.writeCapturedDeliveryProvenance (cyclomatic 67) · ×1
  • archify.writeCapturedDeliveryProvenance (cyclomatic 67) archify/bin/archify.mjs:1290 — archify.writeCapturedDeliveryProvenance has cyclomatic complexity 67 (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.
D1 · Cyclomatic Complexity · export.recordWebm (cyclomatic 65) · ×1
  • export.recordWebm (cyclomatic 65) REDACTED:801 — export.recordWebm has cyclomatic complexity 65 (threshold 15). Most of this is not in the body itself: 5 of the 65 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 977, createMotionScene::samplesFor, a function literal at line 967, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · verifyRepositoryEvidence (cyclomatic 65) · ×1
  • verifyRepositoryEvidence (cyclomatic 65) REDACTED:155 — verifyRepositoryEvidence has cyclomatic complexity 65 (threshold 15). Of this number, 63 points are the body's own statements and 2 belong to 4 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.
D1 · Cyclomatic Complexity · layout (cyclomatic 64) · ×1
  • layout (cyclomatic 64) archify/renderers/lifecycle/render-lifecycle.mjs:244 — layout has cyclomatic complexity 64 (threshold 15). Of this number, 50 points are the body's own statements and 14 belong to 34 function items 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.
D1 · Cyclomatic Complexity · architecture-delta.validateArchitectureDeltaHtml (cyclomatic 62) · ×1
  • architecture-delta.validateArchitectureDeltaHtml (cyclomatic 62) REDACTED:1240 — architecture-delta.validateArchitectureDeltaHtml has cyclomatic complexity 62 (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.
D1 · Cyclomatic Complexity · archify.inspectDeliveryProvenance (cyclomatic 61) · ×1
  • archify.inspectDeliveryProvenance (cyclomatic 61) archify/bin/archify.mjs:1904 — archify.inspectDeliveryProvenance has cyclomatic complexity 61 (threshold 15). Of this number, 57 points are the body's own statements and 4 belong to one function item inside it that branches. 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.
D1 · Cyclomatic Complexity · render-erd.validateEr (cyclomatic 61) · ×1
  • render-erd.validateEr (cyclomatic 61) archify/renderers/erd/render-erd.mjs:1074 — render-erd.validateEr has cyclomatic complexity 61 (threshold 15). Of this number, 56 points are the body's own statements and 5 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.
D1 · Cyclomatic Complexity · archify.recordDeliveryFailure (cyclomatic 59) · ×1
  • archify.recordDeliveryFailure (cyclomatic 59) archify/bin/archify.mjs:1607 — archify.recordDeliveryFailure has cyclomatic complexity 59 (threshold 15). Of this number, 56 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.
D1 · Cyclomatic Complexity · archify.commandMigrate (cyclomatic 57) · ×1
  • archify.commandMigrate (cyclomatic 57) archify/bin/archify.mjs:6443 — archify.commandMigrate has cyclomatic complexity 57 (threshold 15). Of this number, 56 points are the body's own statements and 1 belongs to one function item 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.
D1 · Cyclomatic Complexity · visual-check.beginVisualEvidenceWrite (cyclomatic 56) · ×1
  • visual-check.beginVisualEvidenceWrite (cyclomatic 56) archify/bin/visual-check.mjs:613 — visual-check.beginVisualEvidenceWrite has cyclomatic complexity 56 (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.
D1 · Cyclomatic Complexity · finalize.compactFinalizeReceipt (cyclomatic 56) · ×1
  • finalize.compactFinalizeReceipt (cyclomatic 56) archify/bin/finalize.mjs:586 — finalize.compactFinalizeReceipt has cyclomatic complexity 56 (threshold 15). Of this number, 41 points are the body's own statements and 15 belong to 3 function items inside it that branch. 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.
D1 · Cyclomatic Complexity · workflow-placement-repair.proposeWorkflowPlacement (cyclomatic 56) · ×1
  • workflow-placement-repair.proposeWorkflowPlacement (cyclomatic 56) archify/renderers/workflow/workflow-placement-repair.mjs:3 — workflow-placement-repair.proposeWorkflowPlacement has cyclomatic complexity 56 (threshold 15). Of this number, 46 points are the body's own statements and 10 belong to 7 function items 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.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 56) · ×1
  • (anonymous) (cyclomatic 56) viewer/semantic-lens.js:7 — (anonymous) has cyclomatic complexity 56 (threshold 15). Most of this is not in the body itself: 3 of the 56 points are its own statements and the rest belongs to 16 function literals inside it that branch (lines 618, 588, 560, …). 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.
D1 · Cyclomatic Complexity · check-render-output.collectSequenceNoteBorders (cyclomatic 53) · ×1
  • check-render-output.collectSequenceNoteBorders (cyclomatic 53) archify/scripts/check-render-output.mjs:1038 — check-render-output.collectSequenceNoteBorders has cyclomatic complexity 53 (threshold 15). Of this number, 51 points are the body's own statements and 2 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.
D1 · Cyclomatic Complexity · export.applyReachSnapshot (cyclomatic 53) · ×1
  • export.applyReachSnapshot (cyclomatic 53) REDACTED:144 — export.applyReachSnapshot has cyclomatic complexity 53 (threshold 15). Of this number, 51 points are the body's own statements and 2 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · (anonymous).installRelationshipHitTargets (cyclomatic 52) · ×1
  • (anonymous).installRelationshipHitTargets (cyclomatic 52) viewer/focus.js:824 — (anonymous).installRelationshipHitTargets has cyclomatic complexity 52 (threshold 15). Most of this is not in the body itself: 9 of the 52 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 915, 879, 888, …). 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.
D1 · Cyclomatic Complexity · export.serializeSvg (cyclomatic 51) · ×1
  • export.serializeSvg (cyclomatic 51) REDACTED:228 — export.serializeSvg has cyclomatic complexity 51 (threshold 15). Of this number, 33 points are the body's own statements and 18 belong to 6 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · (anonymous).reachabilitySnapshot (cyclomatic 50) · ×1
  • (anonymous).reachabilitySnapshot (cyclomatic 50) viewer/focus.js:238 — (anonymous).reachabilitySnapshot has cyclomatic complexity 50 (threshold 15). Of this number, 21 points are the body's own statements and 29 belong to 8 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-render-output.collectDesktopReadability (cyclomatic 49) · ×1
  • check-render-output.collectDesktopReadability (cyclomatic 49) archify/scripts/check-render-output.mjs:1219 — check-render-output.collectDesktopReadability has cyclomatic complexity 49 (threshold 15). Of this number, 46 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.
D1 · Cyclomatic Complexity · visual-check.observation (cyclomatic 48) · ×1
  • visual-check.observation (cyclomatic 48) archify/bin/visual-check.mjs:1942 — visual-check.observation has cyclomatic complexity 48 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · reader.layoutBoard (cyclomatic 48) · ×1
  • reader.layoutBoard (cyclomatic 48) REDACTED:19 — reader.layoutBoard has cyclomatic complexity 48 (threshold 15). Most of this is not in the body itself: 5 of the 48 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 50, simulate, simulate::close, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · finalize-delivery.html.layoutBoard (cyclomatic 48) · ×1
  • finalize-delivery.html.layoutBoard (cyclomatic 48) docs/cases/explainer/finalize-delivery.html:1298 — finalize-delivery.html.layoutBoard has cyclomatic complexity 48 (threshold 15). Most of this is not in the body itself: 5 of the 48 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 1329, simulate, simulate::close, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · first-rental.html.layoutBoard (cyclomatic 48) · ×1
  • first-rental.html.layoutBoard (cyclomatic 48) docs/cases/explainer/first-rental.html:1302 — first-rental.html.layoutBoard has cyclomatic complexity 48 (threshold 15). Most of this is not in the body itself: 5 of the 48 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 1333, simulate, simulate::close, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · p99-tail-latency.html.layoutBoard (cyclomatic 48) · ×1
  • p99-tail-latency.html.layoutBoard (cyclomatic 48) docs/cases/explainer/p99-tail-latency.html:1282 — p99-tail-latency.html.layoutBoard has cyclomatic complexity 48 (threshold 15). Most of this is not in the body itself: 5 of the 48 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 1313, simulate, simulate::close, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · tls-first-visit.html.layoutBoard (cyclomatic 48) · ×1
  • tls-first-visit.html.layoutBoard (cyclomatic 48) docs/cases/explainer/tls-first-visit.html:1330 — tls-first-visit.html.layoutBoard has cyclomatic complexity 48 (threshold 15). Most of this is not in the body itself: 5 of the 48 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 1361, simulate, simulate::close, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · brand-marks.readHtmlHeadLinks (cyclomatic 47) · ×1
  • brand-marks.readHtmlHeadLinks (cyclomatic 47) archify/renderers/shared/brand-marks.mjs:294 — brand-marks.readHtmlHeadLinks has cyclomatic complexity 47 (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.
D1 · Cyclomatic Complexity · render-class.validateClassDiagram (cyclomatic 47) · ×1
  • render-class.validateClassDiagram (cyclomatic 47) archify/renderers/class/render-class.mjs:652 — render-class.validateClassDiagram has cyclomatic complexity 47 (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.
D1 · Cyclomatic Complexity · check-community-packages.validatePackage (cyclomatic 47) · ×1
  • check-community-packages.validatePackage (cyclomatic 47) scripts/check-community-packages.mjs:52 — check-community-packages.validatePackage has cyclomatic complexity 47 (threshold 15). Of this number, 42 points are the body's own statements and 5 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.
D1 · Cyclomatic Complexity · inspectExplainerBrowser (cyclomatic 47) · ×1
  • inspectExplainerBrowser (cyclomatic 47) archify/explainer/browser-check.mjs:148 — inspectExplainerBrowser has cyclomatic complexity 47 (threshold 15). Of this number, 29 points are the body's own statements and 18 belong to 14 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · repository-location.parseRepositoryRemote (cyclomatic 46) · ×1
  • repository-location.parseRepositoryRemote (cyclomatic 46) archify/renderers/shared/repository-location.mjs:7 — repository-location.parseRepositoryRemote has cyclomatic complexity 46 (threshold 15). Of this number, 44 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.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 46) · ×1
  • (anonymous) (cyclomatic 46) viewer/reader-layout.js:1 — (anonymous) has cyclomatic complexity 46 (threshold 15). Of this number, 32 points are the body's own statements and 14 belong to 8 function literals inside it that branch. 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.
D1 · Cyclomatic Complexity · archify.commandValidate (cyclomatic 43) · ×1
  • archify.commandValidate (cyclomatic 43) archify/bin/archify.mjs:6963 — archify.commandValidate has cyclomatic complexity 43 (threshold 15). Of this number, 41 points are the body's own statements and 2 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.
D1 · Cyclomatic Complexity · check-render-output.collectArrows (cyclomatic 43) · ×1
  • check-render-output.collectArrows (cyclomatic 43) archify/scripts/check-render-output.mjs:454 — check-render-output.collectArrows has cyclomatic complexity 43 (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.
D1 · Cyclomatic Complexity · atomic-output.parsePublicationRecoveryRecord (cyclomatic 42) · ×1
  • atomic-output.parsePublicationRecoveryRecord (cyclomatic 42) archify/renderers/shared/atomic-output.mjs:1610 — atomic-output.parsePublicationRecoveryRecord has cyclomatic complexity 42 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · writing.lintExplainerWriting (cyclomatic 41) · ×1
  • writing.lintExplainerWriting (cyclomatic 41) archify/explainer/writing.mjs:67 — writing.lintExplainerWriting has cyclomatic complexity 41 (threshold 15). Of this number, 38 points are the body's own statements and 3 belong to 2 function items 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.
D1 · Cyclomatic Complexity · check-render-output.collectSequenceColumnSpace (cyclomatic 41) · ×1
  • check-render-output.collectSequenceColumnSpace (cyclomatic 41) archify/scripts/check-render-output.mjs:958 — check-render-output.collectSequenceColumnSpace has cyclomatic complexity 41 (threshold 15). Of this number, 40 points are the body's own statements and 1 belongs 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.
D1 · Cyclomatic Complexity · (anonymous).setMany (cyclomatic 40) · ×1
  • (anonymous).setMany (cyclomatic 40) viewer/focus.js:1316 — (anonymous).setMany has cyclomatic complexity 40 (threshold 15). Of this number, 28 points are the body's own statements and 12 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · atomic-output.publishRegularFileBinding (cyclomatic 39) · ×1
  • atomic-output.publishRegularFileBinding (cyclomatic 39) archify/renderers/shared/atomic-output.mjs:1120 — atomic-output.publishRegularFileBinding has cyclomatic complexity 39 (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 shape REPEATS in the file: one other method here (atomic-output.publishRegularFileBinding::rollback) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · geometry.automaticPortRhythmBridge (cyclomatic 38) · ×1
  • geometry.automaticPortRhythmBridge (cyclomatic 38) archify/renderers/shared/geometry.mjs:1615 — geometry.automaticPortRhythmBridge has cyclomatic complexity 38 (threshold 15). Of this number, 37 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · index.pageScene (cyclomatic 38) · ×1
  • index.pageScene (cyclomatic 38) website/src/scripts/index.js:246 — index.pageScene has cyclomatic complexity 38 (threshold 15). Of this number, 37 points are the body's own statements and 1 belongs to one function item 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.
D1 · Cyclomatic Complexity · (anonymous).measure (cyclomatic 38) · ×1
  • (anonymous).measure (cyclomatic 38) viewer/reader-layout.js:316 — (anonymous).measure has cyclomatic complexity 38 (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.
D1 · Cyclomatic Complexity · inline.parseInline · ×1
  • inline.parseInline::segment (cyclomatic 37) archify/explainer/inline.mjs:43 — inline.parseInline::segment has cyclomatic complexity 37 (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.
D1 · Cyclomatic Complexity · render.renderExplainer (cyclomatic 37) · ×1
  • render.renderExplainer (cyclomatic 37) archify/explainer/render.mjs:37 — render.renderExplainer has cyclomatic complexity 37 (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 shape REPEATS in the file: one other method here (render.renderExplainer::blockHtml) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · export.applyRouteSnapshot (cyclomatic 37) · ×1
  • export.applyRouteSnapshot (cyclomatic 37) REDACTED:66 — export.applyRouteSnapshot has cyclomatic complexity 37 (threshold 15). Of this number, 34 points are the body's own statements and 3 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · geometry.collectAmbiguousCorridors (cyclomatic 36) · ×1
  • geometry.collectAmbiguousCorridors (cyclomatic 36) archify/renderers/shared/geometry.mjs:730 — geometry.collectAmbiguousCorridors has cyclomatic complexity 36 (threshold 15). Of this number, 28 points are the body's own statements and 8 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.
D1 · Cyclomatic Complexity · (anonymous).createFlows (cyclomatic 36) · ×1
  • (anonymous).createFlows (cyclomatic 36) REDACTED:341 — (anonymous).createFlows has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 9 of the 36 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 343, a function literal at line 449, a function literal at line 462, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · geometry.alignAutomaticFacingPorts (cyclomatic 35) · ×1
  • geometry.alignAutomaticFacingPorts (cyclomatic 35) archify/renderers/shared/geometry.mjs:1543 — geometry.alignAutomaticFacingPorts has cyclomatic complexity 35 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · ci-scope.classifyPaths (cyclomatic 35) · ×1
  • ci-scope.classifyPaths (cyclomatic 35) scripts/ci-scope.mjs:11 — ci-scope.classifyPaths has cyclomatic complexity 35 (threshold 15). Of this number, 34 points are the body's own statements and 1 belongs to one function item 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.
D1 · Cyclomatic Complexity · automaticPortSpread (cyclomatic 35) · ×1
  • automaticPortSpread (cyclomatic 35) archify/renderers/shared/geometry.mjs:1703 — automaticPortSpread has cyclomatic complexity 35 (threshold 15). Of this number, 25 points are the body's own statements and 10 belong to 6 function items 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.
D1 · Cyclomatic Complexity · brand-marks.ipv4Private (cyclomatic 34) · ×1
  • brand-marks.ipv4Private (cyclomatic 34) archify/renderers/shared/brand-marks.mjs:91 — brand-marks.ipv4Private has cyclomatic complexity 34 (threshold 15). Of this number, 33 points are the body's own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · archify.commandDoctor (cyclomatic 34) · ×1
  • archify.commandDoctor (cyclomatic 34) archify/bin/archify.mjs:6007 — archify.commandDoctor has cyclomatic complexity 34 (threshold 15). Of this number, 33 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.
D1 · Cyclomatic Complexity · diagrams.prepareExplainerDiagrams (cyclomatic 33) · ×1
  • diagrams.prepareExplainerDiagrams (cyclomatic 33) archify/explainer/diagrams.mjs:448 — diagrams.prepareExplainerDiagrams has cyclomatic complexity 33 (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.
D1 · Cyclomatic Complexity · atomic-output.createPublicationRecoveryRecord (cyclomatic 33) · ×1
  • atomic-output.createPublicationRecoveryRecord (cyclomatic 33) archify/renderers/shared/atomic-output.mjs:586 — atomic-output.createPublicationRecoveryRecord has cyclomatic complexity 33 (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.
D1 · Cyclomatic Complexity · (anonymous).placeRelationshipLens (cyclomatic 33) · ×1
  • (anonymous).placeRelationshipLens (cyclomatic 33) viewer/focus.js:1155 — (anonymous).placeRelationshipLens has cyclomatic complexity 33 (threshold 15). Of this number, 25 points are the body's own statements and 8 belong to 8 function literals inside it that branch. 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.
D1 · Cyclomatic Complexity · preview.startPreview.beginBuild (cyclomatic 32) · ×1
  • preview.startPreview.beginBuild (cyclomatic 32) archify/bin/preview.mjs:734 — preview.startPreview.beginBuild has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 13 of the 32 points are its own statements and the rest belongs to one function literal inside it that branches (line 804). 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.
D1 · Cyclomatic Complexity · workflow-compiler.createAutomaticSideSelection.readableAutomaticSides (cyclomatic 32) · ×1
  • workflow-compiler.createAutomaticSideSelection.readableAutomaticSides (cyclomatic 32) archify/renderers/workflow/workflow-compiler.mjs:1267 — workflow-compiler.createAutomaticSideSelection.readableAutomaticSides has cyclomatic complexity 32 (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.
D1 · Cyclomatic Complexity · architecture-delta.compareArchitecture (cyclomatic 32) · ×1
  • architecture-delta.compareArchitecture (cyclomatic 32) REDACTED:259 — architecture-delta.compareArchitecture has cyclomatic complexity 32 (threshold 15). Of this number, 23 points are the body's own statements and 9 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · label-capacity.wrapBlockedFlowLabels (cyclomatic 32) · ×1
  • label-capacity.wrapBlockedFlowLabels (cyclomatic 32) archify/renderers/dataflow/label-capacity.mjs:15 — label-capacity.wrapBlockedFlowLabels has cyclomatic complexity 32 (threshold 15). Of this number, 27 points are the body's own statements and 5 belong to 3 function items 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.
D1 · Cyclomatic Complexity · createAutomaticSideSelection.readableAutomaticSides (cyclomatic 32) · ×1
  • createAutomaticSideSelection.readableAutomaticSides (cyclomatic 32) archify/renderers/workflow/workflow-compiler.mjs:1267 — createAutomaticSideSelection.readableAutomaticSides has cyclomatic complexity 32 (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.
D1 · Cyclomatic Complexity · (anonymous).frameDesktop (cyclomatic 32) · ×1
  • (anonymous).frameDesktop (cyclomatic 32) viewer/viewer-camera.js:390 — (anonymous).frameDesktop has cyclomatic complexity 32 (threshold 15). Of this number, 28 points are the body's own statements and 4 belong to 5 function items inside it that branch. 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.
D1 · Cyclomatic Complexity · atomic-output.quarantineRemoveRegularFileBinding (cyclomatic 31) · ×1
  • atomic-output.quarantineRemoveRegularFileBinding (cyclomatic 31) archify/renderers/shared/atomic-output.mjs:755 — atomic-output.quarantineRemoveRegularFileBinding has cyclomatic complexity 31 (threshold 15). Of this number, 29 points are the body's own statements and 2 belong to one function item inside it that branches. 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.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 31) · ×1
  • (anonymous) (cyclomatic 31) viewer/node-finder.js:6 — (anonymous) has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 230, 219, 57, …). 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.
D1 · Cyclomatic Complexity · analyzeSvgPath (cyclomatic 31) · ×1
  • analyzeSvgPath (cyclomatic 31) archify/renderers/shared/svg-path-analysis.mjs:43 — analyzeSvgPath has cyclomatic complexity 31 (threshold 15). Of this number, 30 points are the body's own statements and 1 belongs to 4 function items 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.
D1 · Cyclomatic Complexity · path-semantics.resolvePlan (cyclomatic 30) · ×1
  • path-semantics.resolvePlan (cyclomatic 30) archify/renderers/shared/path-semantics.mjs:326 — path-semantics.resolvePlan has cyclomatic complexity 30 (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.
D1 · Cyclomatic Complexity · finalize.validStageReceipt (cyclomatic 30) · ×1
  • finalize.validStageReceipt (cyclomatic 30) archify/bin/finalize.mjs:188 — finalize.validStageReceipt has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · diagrams.readSpec (cyclomatic 29) · ×1
  • diagrams.readSpec (cyclomatic 29) archify/explainer/diagrams.mjs:354 — diagrams.readSpec has cyclomatic complexity 29 (threshold 15). Of this number, 24 points are the body's own statements and 5 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · atomic-output.inspectRegularFileDescriptor (cyclomatic 29) · ×1
  • atomic-output.inspectRegularFileDescriptor (cyclomatic 29) archify/renderers/shared/atomic-output.mjs:203 — atomic-output.inspectRegularFileDescriptor has cyclomatic complexity 29 (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.
D1 · Cyclomatic Complexity · atomic-output.recoverRetiredPublication (cyclomatic 29) · ×1
  • atomic-output.recoverRetiredPublication (cyclomatic 29) archify/renderers/shared/atomic-output.mjs:1801 — atomic-output.recoverRetiredPublication has cyclomatic complexity 29 (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.
D1 · Cyclomatic Complexity · cleanEndpointSideProblems (cyclomatic 29) · ×1
  • cleanEndpointSideProblems (cyclomatic 29) archify/renderers/shared/geometry.mjs:388 — cleanEndpointSideProblems has cyclomatic complexity 29 (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.
D1 · Cyclomatic Complexity · placeRow (cyclomatic 29) · ×1
  • placeRow (cyclomatic 29) archify/renderers/lifecycle/render-lifecycle.mjs:528 — placeRow has cyclomatic complexity 29 (threshold 15). Of this number, 17 points are the body's own statements and 12 belong to 16 function items 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.
D1 · Cyclomatic Complexity · (anonymous) (cyclomatic 28) · ×1
  • (anonymous) (cyclomatic 28) viewer/semantic-radar.js:6 — (anonymous) has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 3 of the 28 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 561, a function literal at line 542, a function literal at line 606, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · charts.chartFromData (cyclomatic 27) · ×1
  • charts.chartFromData (cyclomatic 27) archify/explainer/charts.mjs:41 — charts.chartFromData has cyclomatic complexity 27 (threshold 15). Of this number, 16 points are the body's own statements and 11 belong to 4 function items 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.
D1 · Cyclomatic Complexity · geometry.collectLabelRouteClearance (cyclomatic 27) · ×1
  • geometry.collectLabelRouteClearance (cyclomatic 27) archify/renderers/shared/geometry.mjs:206 — geometry.collectLabelRouteClearance has cyclomatic complexity 27 (threshold 15). Of this number, 21 points are the body's own statements and 6 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.
D1 · Cyclomatic Complexity · geometry.cleanCrossingProblems (cyclomatic 27) · ×1
  • geometry.cleanCrossingProblems (cyclomatic 27) archify/renderers/shared/geometry.mjs:627 — geometry.cleanCrossingProblems has cyclomatic complexity 27 (threshold 15). Of this number, 17 points are the body's own statements and 10 belong to 3 function items 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.
D1 · Cyclomatic Complexity · route-quality.cleanRouteDetourProblems (cyclomatic 27) · ×1
  • route-quality.cleanRouteDetourProblems (cyclomatic 27) archify/renderers/shared/route-quality.mjs:578 — route-quality.cleanRouteDetourProblems 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.
D1 · Cyclomatic Complexity · layout.layoutExplainerPanels (cyclomatic 27) · ×1
  • layout.layoutExplainerPanels (cyclomatic 27) archify/explainer/layout.mjs:5 — layout.layoutExplainerPanels has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 7 of the 27 points are its own statements and the rest belongs to 4 function items inside it that branch (widths, contentSize, finish, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · reader.setupSourceCards · ×1
  • reader.setupSourceCards::show (cyclomatic 27) REDACTED:606 — reader.setupSourceCards::show 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.
D1 · Cyclomatic Complexity · render-lifecycle.snapPorts (cyclomatic 27) · ×1
  • render-lifecycle.snapPorts (cyclomatic 27) archify/renderers/lifecycle/render-lifecycle.mjs:686 — render-lifecycle.snapPorts has cyclomatic complexity 27 (threshold 15). Of this number, 20 points are the body's own statements and 7 belong to 4 function items 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.
D1 · Cyclomatic Complexity · finalize-delivery.html.setupSourceCards · ×1
  • finalize-delivery.html.setupSourceCards::show (cyclomatic 27) docs/cases/explainer/finalize-delivery.html:1885 — finalize-delivery.html.setupSourceCards::show 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.
D1 · Cyclomatic Complexity · first-rental.html.setupSourceCards · ×1
  • first-rental.html.setupSourceCards::show (cyclomatic 27) docs/cases/explainer/first-rental.html:1889 — first-rental.html.setupSourceCards::show 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.
D1 · Cyclomatic Complexity · p99-tail-latency.html.setupSourceCards · ×1
  • p99-tail-latency.html.setupSourceCards::show (cyclomatic 27) docs/cases/explainer/p99-tail-latency.html:1869 — p99-tail-latency.html.setupSourceCards::show 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.
D1 · Cyclomatic Complexity · tls-first-visit.html.setupSourceCards · ×1
  • tls-first-visit.html.setupSourceCards::show (cyclomatic 27) docs/cases/explainer/tls-first-visit.html:1917 — tls-first-visit.html.setupSourceCards::show 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.
D1 · Cyclomatic Complexity · placeLabels (cyclomatic 27) · ×1
  • placeLabels (cyclomatic 27) archify/renderers/lifecycle/render-lifecycle.mjs:795 — placeLabels has cyclomatic complexity 27 (threshold 15). Of this number, 15 points are the body's own statements and 12 belong to 17 function items inside it that branch. 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.
D1 · Cyclomatic Complexity · visual-check.restoreOwnedBackup (cyclomatic 26) · ×1
  • visual-check.restoreOwnedBackup (cyclomatic 26) archify/bin/visual-check.mjs:839 — visual-check.restoreOwnedBackup 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.
D1 · Cyclomatic Complexity · visual-check.observationDiagnostics (cyclomatic 26) · ×1
  • visual-check.observationDiagnostics (cyclomatic 26) archify/bin/visual-check.mjs:2168 — visual-check.observationDiagnostics 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.
D1 · Cyclomatic Complexity · workflow-compiler.semanticContractDiagnostics (cyclomatic 26) · ×1
  • workflow-compiler.semanticContractDiagnostics (cyclomatic 26) archify/renderers/workflow/workflow-compiler.mjs:741 — workflow-compiler.semanticContractDiagnostics has cyclomatic complexity 26 (threshold 15). Of this number, 21 points are the body's own statements and 5 belong to one function item 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.
D1 · Cyclomatic Complexity · routing.createRouter.automaticEndpoint (cyclomatic 26) · ×1
  • routing.createRouter.automaticEndpoint (cyclomatic 26) archify/renderers/architecture/routing.mjs:807 — routing.createRouter.automaticEndpoint has cyclomatic complexity 26 (threshold 15). Of this number, 24 points are the body's own statements and 2 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.
D1 · Cyclomatic Complexity · check-update.checkForUpdate (cyclomatic 26) · ×1
  • check-update.checkForUpdate (cyclomatic 26) archify/scripts/check-update.mjs:1472 — check-update.checkForUpdate has cyclomatic complexity 26 (threshold 15). Of this number, 24 points are the body's own statements and 2 belong to one function item 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.
D1 · Cyclomatic Complexity · github.publishCard (cyclomatic 26) · ×1
  • github.publishCard (cyclomatic 26) tools/contributor-cards/github.mjs:22 — github.publishCard 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, 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.
D1 · Cyclomatic Complexity · (anonymous).followStoryStep (cyclomatic 26) · ×1
  • (anonymous).followStoryStep (cyclomatic 26) viewer/guided-views.js:939 — (anonymous).followStoryStep has cyclomatic complexity 26 (threshold 15). Of this number, 18 points are the body's own statements and 8 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.
D1 · Cyclomatic Complexity · createRouter.automaticEndpoint (cyclomatic 26) · ×1
  • createRouter.automaticEndpoint (cyclomatic 26) archify/renderers/architecture/routing.mjs:807 — createRouter.automaticEndpoint has cyclomatic complexity 26 (threshold 15). Of this number, 24 points are the body's own statements and 2 belong to 3 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.
D1 · Cyclomatic Complexity · (anonymous).begin (cyclomatic 26) · ×1
  • (anonymous).begin (cyclomatic 26) viewer/route-probe.js:790 — (anonymous).begin has cyclomatic complexity 26 (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.
D1 · Cyclomatic Complexity · (anonymous).measure (cyclomatic 26) · ×1
  • (anonymous).measure (cyclomatic 26) viewer/viewer-chrome-layout.js:171 — (anonymous).measure 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.
D1 · Cyclomatic Complexity · workflow-compiler.compileWorkflowInternal (cyclomatic 25) · ×1
  • workflow-compiler.compileWorkflowInternal (cyclomatic 25) archify/renderers/workflow/workflow-compiler.mjs:1362 — workflow-compiler.compileWorkflowInternal has cyclomatic complexity 25 (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 shape REPEATS in the file: 11 other methods here (workflow-compiler.compileWorkflowInternal::endpointSideIsHonored, workflow-compiler.compileWorkflowInternal::clearStraightAutomaticPlan, workflow-compiler.compileWorkflowInternal::validateReadablePinnedGeometry, …) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 12 times rather than 12 independent problems. Splitting this body alone leaves the other 11 exactly as they are. Where these are variations on one operation, the change that clears all 12 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · archify.acquireDeliveryLock (cyclomatic 25) · ×1
  • archify.acquireDeliveryLock (cyclomatic 25) archify/bin/archify.mjs:520 — archify.acquireDeliveryLock has cyclomatic complexity 25 (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 shape REPEATS in the file: one other method here (archify.acquireDeliveryLock::openOwnedLock) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · archify.commandFinalize (cyclomatic 25) · ×1
  • archify.commandFinalize (cyclomatic 25) archify/bin/archify.mjs:5888 — archify.commandFinalize has cyclomatic complexity 25 (threshold 15). Of this number, 24 points are the body's own statements and 1 belongs 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.
D1 · Cyclomatic Complexity · reader.setupWalks (cyclomatic 25) · ×1
  • reader.setupWalks (cyclomatic 25) REDACTED:473 — reader.setupWalks has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 492, 498, 479, …). 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.
D1 · Cyclomatic Complexity · check-render-output.collectArchitectureLeadingSpace (cyclomatic 25) · ×1
  • check-render-output.collectArchitectureLeadingSpace (cyclomatic 25) archify/scripts/check-render-output.mjs:904 — check-render-output.collectArchitectureLeadingSpace has cyclomatic complexity 25 (threshold 15). Of this number, 24 points are the body's own statements and 1 belongs to one function literal inside it that branches. 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.
D1 · Cyclomatic Complexity · finalize-delivery.html.setupWalks (cyclomatic 25) · ×1
  • finalize-delivery.html.setupWalks (cyclomatic 25) docs/cases/explainer/finalize-delivery.html:1752 — finalize-delivery.html.setupWalks has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 1771, 1777, 1758, …). 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.
D1 · Cyclomatic Complexity · first-rental.html.setupWalks (cyclomatic 25) · ×1
  • first-rental.html.setupWalks (cyclomatic 25) docs/cases/explainer/first-rental.html:1756 — first-rental.html.setupWalks has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 1775, 1781, 1762, …). 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.
D1 · Cyclomatic Complexity · p99-tail-latency.html.setupWalks (cyclomatic 25) · ×1
  • p99-tail-latency.html.setupWalks (cyclomatic 25) docs/cases/explainer/p99-tail-latency.html:1736 — p99-tail-latency.html.setupWalks has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 1755, 1761, 1742, …). 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.
D1 · Cyclomatic Complexity · tls-first-visit.html.setupWalks (cyclomatic 25) · ×1
  • tls-first-visit.html.setupWalks (cyclomatic 25) docs/cases/explainer/tls-first-visit.html:1784 — tls-first-visit.html.setupWalks has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 1803, 1809, 1790, …). 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.
D1 · Cyclomatic Complexity · resolve-cli.resolveCliInvocation (cyclomatic 25) · ×1
  • resolve-cli.resolveCliInvocation (cyclomatic 25) integrations/deepseek-harness/scripts/resolve-cli.mjs:37 — resolve-cli.resolveCliInvocation has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · export.renderShareCard (cyclomatic 25) · ×1
  • export.renderShareCard (cyclomatic 25) REDACTED:637 — export.renderShareCard has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 10 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 653, 651, 740). 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.
D1 · Cyclomatic Complexity · (anonymous).applyReachability (cyclomatic 25) · ×1
  • (anonymous).applyReachability (cyclomatic 25) viewer/focus.js:173 — (anonymous).applyReachability has cyclomatic complexity 25 (threshold 15). Of this number, 18 points are the body's own statements and 7 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · (anonymous).exportSnapshot (cyclomatic 25) · ×1
  • (anonymous).exportSnapshot (cyclomatic 25) viewer/route-probe.js:57 — (anonymous).exportSnapshot has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 8 of the 25 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 71, 81, 64, …). 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.
D1 · Cyclomatic Complexity · (anonymous).applySelection (cyclomatic 25) · ×1
  • (anonymous).applySelection (cyclomatic 25) viewer/semantic-lens.js:371 — (anonymous).applySelection has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 6 of the 25 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 399, 421, 376, …). 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.
D1 · Cyclomatic Complexity · containedBy (cyclomatic 25) · ×1
  • containedBy (cyclomatic 25) archify/renderers/shared/path-semantics.mjs:927 — containedBy has cyclomatic complexity 25 (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.
D1 · Cyclomatic Complexity · path-semantics.splitWindowsAbsolute (cyclomatic 24) · ×1
  • path-semantics.splitWindowsAbsolute (cyclomatic 24) archify/renderers/shared/path-semantics.mjs:101 — path-semantics.splitWindowsAbsolute 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.
D1 · Cyclomatic Complexity · diagrams.rethrowNative (cyclomatic 24) · ×1
  • diagrams.rethrowNative (cyclomatic 24) archify/explainer/diagrams.mjs:333 — diagrams.rethrowNative has cyclomatic complexity 24 (threshold 15). Of this number, 14 points are the body's own statements and 10 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · inline.referenceFor (cyclomatic 24) · ×1
  • inline.referenceFor (cyclomatic 24) archify/explainer/inline.mjs:7 — inline.referenceFor 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.
D1 · Cyclomatic Complexity · prepare.readPreparedBundle (cyclomatic 24) · ×1
  • prepare.readPreparedBundle (cyclomatic 24) archify/explainer/prepare.mjs:74 — prepare.readPreparedBundle has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · atomic-output.captureRegularFileBinding (cyclomatic 24) · ×1
  • atomic-output.captureRegularFileBinding (cyclomatic 24) archify/renderers/shared/atomic-output.mjs:302 — atomic-output.captureRegularFileBinding has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · workflow-v2.migrateWorkflowDocument (cyclomatic 24) · ×1
  • workflow-v2.migrateWorkflowDocument (cyclomatic 24) archify/migrations/workflow-v2.mjs:116 — workflow-v2.migrateWorkflowDocument has cyclomatic complexity 24 (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.
D1 · Cyclomatic Complexity · check-render-output.collectRelationshipLabelMasks (cyclomatic 24) · ×1
  • check-render-output.collectRelationshipLabelMasks (cyclomatic 24) archify/scripts/check-render-output.mjs:671 — check-render-output.collectRelationshipLabelMasks has cyclomatic complexity 24 (threshold 15). Of this number, 17 points are the body's own statements and 7 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · localize-html.localizeHtml · ×1
  • localize-html.localizeHtml::walk (cyclomatic 24) website/src/data/localize-html.mjs:6 — localize-html.localizeHtml::walk 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.
D1 · Cyclomatic Complexity · inspectPublicHtml (cyclomatic 24) · ×1
  • inspectPublicHtml (cyclomatic 24) archify/explainer/browser-check.mjs:88 — inspectPublicHtml has cyclomatic complexity 24 (threshold 15). Of this number, 16 points are the body's own statements and 8 belong to 5 function literals inside it that branch. 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.
D1 · Cyclomatic Complexity · (anonymous).syncLegend (cyclomatic 24) · ×1
  • (anonymous).syncLegend (cyclomatic 24) viewer/reader-layout.js:161 — (anonymous).syncLegend has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · (anonymous).show (cyclomatic 24) · ×1
  • (anonymous).show (cyclomatic 24) viewer/intent-trace.js:91 — (anonymous).show has cyclomatic complexity 24 (threshold 15). Of this number, 12 points are the body's own statements and 12 belong to 4 function literals inside it that branch. 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.
D1 · Cyclomatic Complexity · portable-path.validatePortablePath (cyclomatic 23) · ×1
  • portable-path.validatePortablePath (cyclomatic 23) archify/renderers/shared/portable-path.mjs:72 — portable-path.validatePortablePath has cyclomatic complexity 23 (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.
D1 · Cyclomatic Complexity · visual-check.unlinkOwnedEntry (cyclomatic 23) · ×1
  • visual-check.unlinkOwnedEntry (cyclomatic 23) archify/bin/visual-check.mjs:416 — visual-check.unlinkOwnedEntry has cyclomatic complexity 23 (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.
D1 · Cyclomatic Complexity · geometry.shortWorkflowTrunk (cyclomatic 23) · ×1
  • geometry.shortWorkflowTrunk (cyclomatic 23) archify/renderers/shared/geometry.mjs:805 — geometry.shortWorkflowTrunk has cyclomatic complexity 23 (threshold 15). Of this number, 19 points are the body's own statements and 4 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · engineering-profiles.deploymentOwnershipDiagnostics (cyclomatic 23) · ×1
  • engineering-profiles.deploymentOwnershipDiagnostics (cyclomatic 23) archify/renderers/shared/engineering-profiles.mjs:23 — engineering-profiles.deploymentOwnershipDiagnostics has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 43, 95, 119, …). 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.
D1 · Cyclomatic Complexity · archify.assertDeliveryOwnership (cyclomatic 23) · ×1
  • archify.assertDeliveryOwnership (cyclomatic 23) archify/bin/archify.mjs:321 — archify.assertDeliveryOwnership has cyclomatic complexity 23 (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.
D1 · Cyclomatic Complexity · archify.commandPatch (cyclomatic 23) · ×1
  • archify.commandPatch (cyclomatic 23) archify/bin/archify.mjs:5304 — archify.commandPatch has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · reader.setupAsk (cyclomatic 23) · ×1
  • reader.setupAsk (cyclomatic 23) REDACTED:530 — reader.setupAsk has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 554, a function literal at line 578, open, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · render.scopeNativeCss · ×1
  • render.scopeNativeCss::rules (cyclomatic 23) archify/explainer/render.mjs:198 — render.scopeNativeCss::rules has cyclomatic complexity 23 (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.
D1 · Cyclomatic Complexity · check-update.setUpdatePreference (cyclomatic 23) · ×1
  • check-update.setUpdatePreference (cyclomatic 23) archify/scripts/check-update.mjs:1608 — check-update.setUpdatePreference has cyclomatic complexity 23 (threshold 15). Of this number, 16 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.
D1 · Cyclomatic Complexity · finalize-delivery.html.setupAsk (cyclomatic 23) · ×1
  • finalize-delivery.html.setupAsk (cyclomatic 23) docs/cases/explainer/finalize-delivery.html:1809 — finalize-delivery.html.setupAsk has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 1833, a function literal at line 1857, open, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · first-rental.html.setupAsk (cyclomatic 23) · ×1
  • first-rental.html.setupAsk (cyclomatic 23) docs/cases/explainer/first-rental.html:1813 — first-rental.html.setupAsk has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 1837, a function literal at line 1861, open, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · p99-tail-latency.html.setupAsk (cyclomatic 23) · ×1
  • p99-tail-latency.html.setupAsk (cyclomatic 23) docs/cases/explainer/p99-tail-latency.html:1793 — p99-tail-latency.html.setupAsk has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 1817, a function literal at line 1841, open, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · tls-first-visit.html.setupAsk (cyclomatic 23) · ×1
  • tls-first-visit.html.setupAsk (cyclomatic 23) docs/cases/explainer/tls-first-visit.html:1841 — tls-first-visit.html.setupAsk has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 1865, a function literal at line 1889, open, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · canonicalReadableWorkflow (cyclomatic 23) · ×1
  • canonicalReadableWorkflow (cyclomatic 23) archify/renderers/workflow/workflow-compiler.mjs:707 — canonicalReadableWorkflow has cyclomatic complexity 23 (threshold 15). Of this number, 12 points are the body's own statements and 11 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · (anonymous).computeReachability (cyclomatic 23) · ×1
  • (anonymous).computeReachability (cyclomatic 23) viewer/focus.js:72 — (anonymous).computeReachability has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 7 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 78, 94, 106, …). 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.
D1 · Cyclomatic Complexity · (anonymous).applyJourneyState (cyclomatic 23) · ×1
  • (anonymous).applyJourneyState (cyclomatic 23) viewer/route-probe.js:495 — (anonymous).applyJourneyState has cyclomatic complexity 23 (threshold 15). Of this number, 12 points are the body's own statements and 11 belong to 3 function literals inside it that branch. 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.
D1 · Cyclomatic Complexity · brand-marks.imageData (cyclomatic 22) · ×1
  • brand-marks.imageData (cyclomatic 22) archify/renderers/shared/brand-marks.mjs:450 — brand-marks.imageData has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · workflow-compiler.compileWorkflowWithFeedback (cyclomatic 22) · ×1
  • workflow-compiler.compileWorkflowWithFeedback (cyclomatic 22) archify/renderers/workflow/workflow-compiler.mjs:5802 — workflow-compiler.compileWorkflowWithFeedback 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.
D1 · Cyclomatic Complexity · archify.commandCheck (cyclomatic 22) · ×1
  • archify.commandCheck (cyclomatic 22) archify/bin/archify.mjs:5581 — archify.commandCheck has cyclomatic complexity 22 (threshold 15). 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, 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.
D1 · Cyclomatic Complexity · architecture-delta.buildDeltaSvg (cyclomatic 22) · ×1
  • architecture-delta.buildDeltaSvg (cyclomatic 22) REDACTED:582 — architecture-delta.buildDeltaSvg 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.
D1 · Cyclomatic Complexity · reader.linkTerms (cyclomatic 22) · ×1
  • reader.linkTerms (cyclomatic 22) REDACTED:409 — reader.linkTerms has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 422, 411, 424, …). 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.
D1 · Cyclomatic Complexity · routing.createRouter.rowFanOutSides (cyclomatic 22) · ×1
  • routing.createRouter.rowFanOutSides (cyclomatic 22) archify/renderers/architecture/routing.mjs:701 — routing.createRouter.rowFanOutSides has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 5 function items inside it that branch (verticalSides, a function literal at line 716, a function literal at line 707, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · render-erd.bundledTrunkPaths (cyclomatic 22) · ×1
  • render-erd.bundledTrunkPaths (cyclomatic 22) archify/renderers/erd/render-erd.mjs:861 — render-erd.bundledTrunkPaths 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.
D1 · Cyclomatic Complexity · check-update.normalizeState (cyclomatic 22) · ×1
  • check-update.normalizeState (cyclomatic 22) archify/scripts/check-update.mjs:144 — check-update.normalizeState has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · finalize-delivery.html.linkTerms (cyclomatic 22) · ×1
  • finalize-delivery.html.linkTerms (cyclomatic 22) docs/cases/explainer/finalize-delivery.html:1688 — finalize-delivery.html.linkTerms has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 1701, 1690, 1703, …). 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.
D1 · Cyclomatic Complexity · first-rental.html.linkTerms (cyclomatic 22) · ×1
  • first-rental.html.linkTerms (cyclomatic 22) docs/cases/explainer/first-rental.html:1692 — first-rental.html.linkTerms has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 1705, 1694, 1707, …). 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.
D1 · Cyclomatic Complexity · p99-tail-latency.html.linkTerms (cyclomatic 22) · ×1
  • p99-tail-latency.html.linkTerms (cyclomatic 22) docs/cases/explainer/p99-tail-latency.html:1672 — p99-tail-latency.html.linkTerms has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 1685, 1674, 1687, …). 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.
D1 · Cyclomatic Complexity · tls-first-visit.html.linkTerms (cyclomatic 22) · ×1
  • tls-first-visit.html.linkTerms (cyclomatic 22) docs/cases/explainer/tls-first-visit.html:1720 — tls-first-visit.html.linkTerms has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 1733, 1722, 1735, …). 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.
D1 · Cyclomatic Complexity · (anonymous).beginHandoff (cyclomatic 22) · ×1
  • (anonymous).beginHandoff (cyclomatic 22) viewer/guided-views.js:217 — (anonymous).beginHandoff has cyclomatic complexity 22 (threshold 15). Of this number, 14 points are the body's own statements and 8 belong to 4 function items inside it that branch. 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.
D1 · Cyclomatic Complexity · createRouter.rowFanOutSides (cyclomatic 22) · ×1
  • createRouter.rowFanOutSides (cyclomatic 22) archify/renderers/architecture/routing.mjs:701 — createRouter.rowFanOutSides has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 5 function items inside it that branch (verticalSides, a function literal at line 716, a function literal at line 707, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · (anonymous).render (cyclomatic 22) · ×1
  • (anonymous).render (cyclomatic 22) REDACTED:542 — (anonymous).render has cyclomatic complexity 22 (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.
D1 · Cyclomatic Complexity · output-path.resolveOutputPath (cyclomatic 21) · ×1
  • output-path.resolveOutputPath (cyclomatic 21) archify/renderers/shared/output-path.mjs:373 — output-path.resolveOutputPath 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.
D1 · Cyclomatic Complexity · atomic-output.captureRegularFileHandle (cyclomatic 21) · ×1
  • atomic-output.captureRegularFileHandle (cyclomatic 21) archify/renderers/shared/atomic-output.mjs:34 — atomic-output.captureRegularFileHandle has cyclomatic complexity 21 (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.
D1 · Cyclomatic Complexity · finalize.validBrowserEvidence (cyclomatic 21) · ×1
  • finalize.validBrowserEvidence (cyclomatic 21) archify/bin/finalize.mjs:147 — finalize.validBrowserEvidence has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body's own statements and 5 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · route-quality.inferredSide (cyclomatic 21) · ×1
  • route-quality.inferredSide (cyclomatic 21) archify/renderers/shared/route-quality.mjs:84 — route-quality.inferredSide 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.
D1 · Cyclomatic Complexity · archify.removeOwnedEmptyStagingDirectory (cyclomatic 21) · ×1
  • archify.removeOwnedEmptyStagingDirectory (cyclomatic 21) archify/bin/archify.mjs:924 — archify.removeOwnedEmptyStagingDirectory has cyclomatic complexity 21 (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.
D1 · Cyclomatic Complexity · archify.checkerDiagnostics (cyclomatic 21) · ×1
  • archify.checkerDiagnostics (cyclomatic 21) archify/bin/archify.mjs:2722 — archify.checkerDiagnostics has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body's own statements and 1 belongs 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.
D1 · Cyclomatic Complexity · render-lifecycle.validateLayout (cyclomatic 21) · ×1
  • render-lifecycle.validateLayout (cyclomatic 21) archify/renderers/lifecycle/render-lifecycle.mjs:915 — render-lifecycle.validateLayout has cyclomatic complexity 21 (threshold 15). Of this number, 11 points are the body's own statements and 10 belong to 4 function items 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.
D1 · Cyclomatic Complexity · render-tree.renderNode (cyclomatic 21) · ×1
  • render-tree.renderNode (cyclomatic 21) archify/renderers/tree/render-tree.mjs:422 — render-tree.renderNode has cyclomatic complexity 21 (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.
D1 · Cyclomatic Complexity · package-smoke.verifyPackagedExplainer (cyclomatic 21) · ×1
  • package-smoke.verifyPackagedExplainer (cyclomatic 21) scripts/package-smoke.mjs:58 — package-smoke.verifyPackagedExplainer has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-cloudflare-output.checkCloudflareOutput (cyclomatic 21) · ×1
  • check-cloudflare-output.checkCloudflareOutput (cyclomatic 21) website/scripts/check-cloudflare-output.mjs:10 — check-cloudflare-output.checkCloudflareOutput has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to 5 function items inside it that branch (visit, checkAssets, a function literal at line 11, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · renderState (cyclomatic 21) · ×1
  • renderState (cyclomatic 21) archify/renderers/lifecycle/render-lifecycle.mjs:988 — renderState has cyclomatic complexity 21 (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.
D1 · Cyclomatic Complexity · probeNameAlias (cyclomatic 21) · ×1
  • probeNameAlias (cyclomatic 21) archify/renderers/shared/path-semantics.mjs:593 — probeNameAlias has cyclomatic complexity 21 (threshold 15). Of this number, 20 points are the body's own statements and 1 belongs to one function item 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.
D1 · Cyclomatic Complexity · diagrams.validateExplainerDiagramTarget (cyclomatic 20) · ×1
  • diagrams.validateExplainerDiagramTarget (cyclomatic 20) archify/explainer/diagrams.mjs:503 — diagrams.validateExplainerDiagramTarget has cyclomatic complexity 20 (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.
D1 · Cyclomatic Complexity · parse.parseExplainer · ×1
  • parse.parseExplainer::attributes (cyclomatic 20) archify/explainer/parse.mjs:118 — parse.parseExplainer::attributes 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.
D1 · Cyclomatic Complexity · preview.startPreview (cyclomatic 20) · ×1
  • preview.startPreview (cyclomatic 20) archify/bin/preview.mjs:348 — preview.startPreview has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body's own statements and 2 belong to 2 function literals inside it that branch. 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.
D1 · Cyclomatic Complexity · geometry.cleanFlowProblems (cyclomatic 20) · ×1
  • geometry.cleanFlowProblems (cyclomatic 20) archify/renderers/shared/geometry.mjs:463 — geometry.cleanFlowProblems 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, 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.
D1 · Cyclomatic Complexity · archify.assertOwnedDeliveryLock (cyclomatic 20) · ×1
  • archify.assertOwnedDeliveryLock (cyclomatic 20) archify/bin/archify.mjs:261 — archify.assertOwnedDeliveryLock 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.
D1 · Cyclomatic Complexity · archify.acquireDeliveryLock · ×1
  • archify.acquireDeliveryLock::openOwnedLock (cyclomatic 20) archify/bin/archify.mjs:600 — archify.acquireDeliveryLock::openOwnedLock has cyclomatic complexity 20 (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. This shape REPEATS in the file: one other method here (archify.acquireDeliveryLock) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · archify.commandBrowserEvidence (cyclomatic 20) · ×1
  • archify.commandBrowserEvidence (cyclomatic 20) archify/bin/archify.mjs:5736 — archify.commandBrowserEvidence has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body's own statements and 3 belong to 2 function items 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.
D1 · Cyclomatic Complexity · architecture-delta.renderArchitectureDeltaHtml (cyclomatic 20) · ×1
  • architecture-delta.renderArchitectureDeltaHtml (cyclomatic 20) REDACTED:751 — architecture-delta.renderArchitectureDeltaHtml has cyclomatic complexity 20 (threshold 15). Of this number, 13 points are the body's own statements and 7 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.
D1 · Cyclomatic Complexity · export.figureLayout (cyclomatic 20) · ×1
  • export.figureLayout (cyclomatic 20) REDACTED:470 — export.figureLayout has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · compileWithLayoutFeedback (cyclomatic 20) · ×1
  • compileWithLayoutFeedback (cyclomatic 20) archify/renderers/workflow/workflow-compiler.mjs:5744 — compileWithLayoutFeedback 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.
D1 · Cyclomatic Complexity · (anonymous).storyStep (cyclomatic 20) · ×1
  • (anonymous).storyStep (cyclomatic 20) viewer/guided-views.js:641 — (anonymous).storyStep has cyclomatic complexity 20 (threshold 15). Of this number, 14 points are the body's own statements and 6 belong to 4 function literals inside it that branch. 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.
D1 · Cyclomatic Complexity · (anonymous).relationshipTokenKind (cyclomatic 20) · ×1
  • (anonymous).relationshipTokenKind (cyclomatic 20) viewer/focus.js:552 — (anonymous).relationshipTokenKind has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body's own statements and 1 belongs to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · (anonymous).minimumReadableScale (cyclomatic 20) · ×1
  • (anonymous).minimumReadableScale (cyclomatic 20) viewer/reader-layout.js:86 — (anonymous).minimumReadableScale has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 7 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 90). 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.
D1 · Cyclomatic Complexity · atomic-output.verifyRetiredPublicationSlot (cyclomatic 19) · ×1
  • atomic-output.verifyRetiredPublicationSlot (cyclomatic 19) archify/renderers/shared/atomic-output.mjs:1714 — atomic-output.verifyRetiredPublicationSlot 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.
D1 · Cyclomatic Complexity · browser-check.explainerObservationDiagnostics (cyclomatic 19) · ×1
  • browser-check.explainerObservationDiagnostics (cyclomatic 19) archify/explainer/browser-check.mjs:192 — browser-check.explainerObservationDiagnostics has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body's own statements and 4 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.
D1 · Cyclomatic Complexity · archify.deliveryLockFailureDiagnostic (cyclomatic 19) · ×1
  • archify.deliveryLockFailureDiagnostic (cyclomatic 19) archify/bin/archify.mjs:2447 — archify.deliveryLockFailureDiagnostic 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.
D1 · Cyclomatic Complexity · archify.writeDeliveryFailureReceipt (cyclomatic 19) · ×1
  • archify.writeDeliveryFailureReceipt (cyclomatic 19) archify/bin/archify.mjs:4313 — archify.writeDeliveryFailureReceipt 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.
D1 · Cyclomatic Complexity · grid.bandedLayout (cyclomatic 19) · ×1
  • grid.bandedLayout (cyclomatic 19) archify/renderers/erd/grid.mjs:61 — grid.bandedLayout has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body's own statements and 1 belongs to one function item inside it that branches. 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.
D1 · Cyclomatic Complexity · render-lifecycle.assignTracks (cyclomatic 19) · ×1
  • render-lifecycle.assignTracks (cyclomatic 19) archify/renderers/lifecycle/render-lifecycle.mjs:733 — render-lifecycle.assignTracks has cyclomatic complexity 19 (threshold 15). Of this number, 10 points are the body's own statements and 9 belong to 8 function items inside it that branch. 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.
D1 · Cyclomatic Complexity · stage-clean-skill.stageCleanSkill (cyclomatic 19) · ×1
  • stage-clean-skill.stageCleanSkill (cyclomatic 19) scripts/stage-clean-skill.mjs:504 — stage-clean-skill.stageCleanSkill has cyclomatic complexity 19 (threshold 15). 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, 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.
D1 · Cyclomatic Complexity · (anonymous).shareCueBeatCopy (cyclomatic 19) · ×1
  • (anonymous).shareCueBeatCopy (cyclomatic 19) viewer/guided-views.js:527 — (anonymous).shareCueBeatCopy 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.
D1 · Cyclomatic Complexity · (anonymous).renderShareCue (cyclomatic 19) · ×1
  • (anonymous).renderShareCue (cyclomatic 19) viewer/guided-views.js:558 — (anonymous).renderShareCue has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body's own statements and 4 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.
D1 · Cyclomatic Complexity · (anonymous).relationshipHitRecords (cyclomatic 19) · ×1
  • (anonymous).relationshipHitRecords (cyclomatic 19) viewer/focus.js:424 — (anonymous).relationshipHitRecords has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 430, 475, 444, …). 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.
D1 · Cyclomatic Complexity · validateStructure (cyclomatic 19) · ×1
  • validateStructure (cyclomatic 19) archify/renderers/lifecycle/render-lifecycle.mjs:861 — validateStructure has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 898, a function literal at line 883, a function literal at line 873, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · finalize.finalArtifactDiagnostic (cyclomatic 18) · ×1
  • finalize.finalArtifactDiagnostic (cyclomatic 18) archify/bin/finalize.mjs:342 — finalize.finalArtifactDiagnostic has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · archify.quarantineRemoveOwnedDeliveryEntry (cyclomatic 18) · ×1
  • archify.quarantineRemoveOwnedDeliveryEntry (cyclomatic 18) archify/bin/archify.mjs:399 — archify.quarantineRemoveOwnedDeliveryEntry 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.
D1 · Cyclomatic Complexity · check-render-output.collectRelationshipCrossings (cyclomatic 18) · ×1
  • check-render-output.collectRelationshipCrossings (cyclomatic 18) archify/scripts/check-render-output.mjs:737 — check-render-output.collectRelationshipCrossings 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.
D1 · Cyclomatic Complexity · check-render-output.collectUntransformedNodeRects (cyclomatic 18) · ×1
  • check-render-output.collectUntransformedNodeRects (cyclomatic 18) archify/scripts/check-render-output.mjs:777 — check-render-output.collectUntransformedNodeRects 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.
D1 · Cyclomatic Complexity · check-release-identity.checkIdentityTemplate (cyclomatic 18) · ×1
  • check-release-identity.checkIdentityTemplate (cyclomatic 18) scripts/check-release-identity.mjs:115 — check-release-identity.checkIdentityTemplate has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body's own statements and 6 belong to one function item 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.
D1 · Cyclomatic Complexity · createLegacyCapacityRepair.enforceLegacyColumnCapacity (cyclomatic 18) · ×1
  • createLegacyCapacityRepair.enforceLegacyColumnCapacity (cyclomatic 18) archify/renderers/workflow/workflow-compiler.mjs:1178 — createLegacyCapacityRepair.enforceLegacyColumnCapacity 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.
D1 · Cyclomatic Complexity · (anonymous).pulseStoryStep (cyclomatic 18) · ×1
  • (anonymous).pulseStoryStep (cyclomatic 18) viewer/guided-views.js:856 — (anonymous).pulseStoryStep has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body's own statements and 1 belongs to 3 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.
D1 · Cyclomatic Complexity · stageRenderedHtml (cyclomatic 18) · ×1
  • stageRenderedHtml (cyclomatic 18) archify/renderers/shared/cli.mjs:167 — stageRenderedHtml 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.
D1 · Cyclomatic Complexity · (anonymous).select (cyclomatic 18) · ×1
  • (anonymous).select (cyclomatic 18) viewer/node-finder.js:113 — (anonymous).select 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.
D1 · Cyclomatic Complexity · sources.readContained (cyclomatic 17) · ×1
  • sources.readContained (cyclomatic 17) archify/explainer/sources.mjs:130 — sources.readContained 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.
D1 · Cyclomatic Complexity · atomic-output.validateBindingExpectations (cyclomatic 17) · ×1
  • atomic-output.validateBindingExpectations (cyclomatic 17) archify/renderers/shared/atomic-output.mjs:130 — atomic-output.validateBindingExpectations has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · atomic-output.verifyAtomicOutput (cyclomatic 17) · ×1
  • atomic-output.verifyAtomicOutput (cyclomatic 17) archify/renderers/shared/atomic-output.mjs:1553 — atomic-output.verifyAtomicOutput has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · revision.computeExplainerRevision (cyclomatic 17) · ×1
  • revision.computeExplainerRevision (cyclomatic 17) archify/explainer/revision.mjs:5 — revision.computeExplainerRevision has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 6 function items inside it that branch (stable, a function literal at line 10, a function literal at line 11, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · preview.captureOwnedDeliverySidecars (cyclomatic 17) · ×1
  • preview.captureOwnedDeliverySidecars (cyclomatic 17) archify/bin/preview.mjs:310 — preview.captureOwnedDeliverySidecars has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · preview.startPreview.commitCandidate (cyclomatic 17) · ×1
  • preview.startPreview.commitCandidate (cyclomatic 17) archify/bin/preview.mjs:638 — preview.startPreview.commitCandidate has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · browser-check.measureNativePreviews (cyclomatic 17) · ×1
  • browser-check.measureNativePreviews (cyclomatic 17) archify/explainer/browser-check.mjs:13 — browser-check.measureNativePreviews has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 16, visible, a function literal at line 22, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · visual-check.findChrome (cyclomatic 17) · ×1
  • visual-check.findChrome (cyclomatic 17) archify/bin/visual-check.mjs:1317 — visual-check.findChrome 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.
D1 · Cyclomatic Complexity · finalize.stageBindingDiagnostic (cyclomatic 17) · ×1
  • finalize.stageBindingDiagnostic (cyclomatic 17) archify/bin/finalize.mjs:267 — finalize.stageBindingDiagnostic 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.
D1 · Cyclomatic Complexity · brand-marks.prepareDiagramBrandMarks (cyclomatic 17) · ×1
  • brand-marks.prepareDiagramBrandMarks (cyclomatic 17) archify/renderers/shared/brand-marks.mjs:597 — brand-marks.prepareDiagramBrandMarks has cyclomatic complexity 17 (threshold 15). 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 603, 635). 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.
D1 · Cyclomatic Complexity · geometry.collectArrowheadCollisions (cyclomatic 17) · ×1
  • geometry.collectArrowheadCollisions (cyclomatic 17) archify/renderers/shared/geometry.mjs:827 — geometry.collectArrowheadCollisions 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.
D1 · Cyclomatic Complexity · geometry.collectBorderRuns (cyclomatic 17) · ×1
  • geometry.collectBorderRuns (cyclomatic 17) archify/renderers/shared/geometry.mjs:918 — geometry.collectBorderRuns has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body's own statements and 5 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.
D1 · Cyclomatic Complexity · workflow-compiler.createLegacyCapacityRepair.enforceLegacyColumnCapacity (cyclomatic 17) · ×1
  • workflow-compiler.createLegacyCapacityRepair.enforceLegacyColumnCapacity (cyclomatic 17) archify/renderers/workflow/workflow-compiler.mjs:1178 — workflow-compiler.createLegacyCapacityRepair.enforceLegacyColumnCapacity 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.
D1 · Cyclomatic Complexity · render.portableBundle (cyclomatic 17) · ×1
  • render.portableBundle (cyclomatic 17) archify/explainer/render.mjs:140 — render.portableBundle has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 3 function items inside it that branch (local, subject, a function literal at line 154). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · render-class.renderMembers (cyclomatic 17) · ×1
  • render-class.renderMembers (cyclomatic 17) archify/renderers/class/render-class.mjs:898 — render-class.renderMembers has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 904, 926). 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.
D1 · Cyclomatic Complexity · render-lifecycle.distributePorts (cyclomatic 17) · ×1
  • render-lifecycle.distributePorts (cyclomatic 17) archify/renderers/lifecycle/render-lifecycle.mjs:629 — render-lifecycle.distributePorts has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body's own statements and 7 belong to 2 function items 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.
D1 · Cyclomatic Complexity · render-tree.validateStructure (cyclomatic 17) · ×1
  • render-tree.validateStructure (cyclomatic 17) archify/renderers/tree/render-tree.mjs:55 — render-tree.validateStructure 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.
D1 · Cyclomatic Complexity · generate-contributors-svg.avatarMediaType (cyclomatic 17) · ×1
  • generate-contributors-svg.avatarMediaType (cyclomatic 17) scripts/generate-contributors-svg.mjs:52 — generate-contributors-svg.avatarMediaType has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · (anonymous).renderRelationshipPulse (cyclomatic 17) · ×1
  • (anonymous).renderRelationshipPulse (cyclomatic 17) viewer/focus.js:645 — (anonymous).renderRelationshipPulse has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body's own statements and 6 belong to 4 function items inside it that branch. 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.
D1 · Cyclomatic Complexity · (anonymous).previewRelationship (cyclomatic 17) · ×1
  • (anonymous).previewRelationship (cyclomatic 17) viewer/focus.js:719 — (anonymous).previewRelationship has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body's own statements and 5 belong to 2 function literals inside it that branch. 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.
D1 · Cyclomatic Complexity · (anonymous).clear (cyclomatic 17) · ×1
  • (anonymous).clear (cyclomatic 17) viewer/focus.js:1248 — (anonymous).clear 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.
D1 · Cyclomatic Complexity · placeFrameExits (cyclomatic 17) · ×1
  • placeFrameExits (cyclomatic 17) archify/renderers/lifecycle/render-lifecycle.mjs:495 — placeFrameExits has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body's own statements and 4 belong to 9 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · portable-path.validatePortablePathSet (cyclomatic 16) · ×1
  • portable-path.validatePortablePathSet (cyclomatic 16) archify/renderers/shared/portable-path.mjs:300 — portable-path.validatePortablePathSet 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.
D1 · Cyclomatic Complexity · text-fit.nodeLabelLayout (cyclomatic 16) · ×1
  • text-fit.nodeLabelLayout (cyclomatic 16) archify/renderers/shared/text-fit.mjs:54 — text-fit.nodeLabelLayout has cyclomatic complexity 16 (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.
D1 · Cyclomatic Complexity · inline.renderInline (cyclomatic 16) · ×1
  • inline.renderInline (cyclomatic 16) archify/explainer/inline.mjs:125 — inline.renderInline has cyclomatic complexity 16 (threshold 15). 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 128). 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.
D1 · Cyclomatic Complexity · prepare.validatePreparedTargets · ×1
  • prepare.validatePreparedTargets::visit (cyclomatic 16) archify/explainer/prepare.mjs:104 — prepare.validatePreparedTargets::visit 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.
D1 · Cyclomatic Complexity · output-path.validateNativeOutputPath (cyclomatic 16) · ×1
  • output-path.validateNativeOutputPath (cyclomatic 16) archify/renderers/shared/output-path.mjs:256 — output-path.validateNativeOutputPath 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.
D1 · Cyclomatic Complexity · atomic-output.publishRegularFileBinding · ×1
  • atomic-output.publishRegularFileBinding::rollback (cyclomatic 16) archify/renderers/shared/atomic-output.mjs:1163 — atomic-output.publishRegularFileBinding::rollback has cyclomatic complexity 16 (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 shape REPEATS in the file: one other method here (atomic-output.publishRegularFileBinding) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D1 · Cyclomatic Complexity · preview.stagePreviewCommit (cyclomatic 16) · ×1
  • preview.stagePreviewCommit (cyclomatic 16) archify/bin/preview.mjs:225 — preview.stagePreviewCommit 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.
D1 · Cyclomatic Complexity · geometry.segmentRectIntersectionLength (cyclomatic 16) · ×1
  • geometry.segmentRectIntersectionLength (cyclomatic 16) archify/renderers/shared/geometry.mjs:101 — geometry.segmentRectIntersectionLength 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.
D1 · Cyclomatic Complexity · geometry.suggestLabelObstacleFix (cyclomatic 16) · ×1
  • geometry.suggestLabelObstacleFix (cyclomatic 16) archify/renderers/shared/geometry.mjs:1973 — geometry.suggestLabelObstacleFix has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body's own statements and 8 belong to 3 function items inside it that branch. 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.
D1 · Cyclomatic Complexity · cli.writeDiagram (cyclomatic 16) · ×1
  • cli.writeDiagram (cyclomatic 16) archify/renderers/shared/cli.mjs:234 — cli.writeDiagram has cyclomatic complexity 16 (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.
D1 · Cyclomatic Complexity · workflow-compiler.createAutomaticSideSelection.legacyAutomaticOneBendSides (cyclomatic 16) · ×1
  • workflow-compiler.createAutomaticSideSelection.legacyAutomaticOneBendSides (cyclomatic 16) archify/renderers/workflow/workflow-compiler.mjs:1245 — workflow-compiler.createAutomaticSideSelection.legacyAutomaticOneBendSides has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · archify.commandGuide (cyclomatic 16) · ×1
  • archify.commandGuide (cyclomatic 16) archify/bin/archify.mjs:6193 — archify.commandGuide 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.
D1 · Cyclomatic Complexity · routing.createRouter (cyclomatic 16) · ×1
  • routing.createRouter (cyclomatic 16) archify/renderers/architecture/routing.mjs:75 — routing.createRouter has cyclomatic complexity 16 (threshold 15). 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, 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.
D1 · Cyclomatic Complexity · render-erd.labelColumnGaps (cyclomatic 16) · ×1
  • render-erd.labelColumnGaps (cyclomatic 16) archify/renderers/erd/render-erd.mjs:170 — render-erd.labelColumnGaps 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, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · check-update.inspectActiveClaim (cyclomatic 16) · ×1
  • check-update.inspectActiveClaim (cyclomatic 16) archify/scripts/check-update.mjs:851 — check-update.inspectActiveClaim has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 869, 853, 903). 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.
D1 · Cyclomatic Complexity · check-update.retireActiveClaim (cyclomatic 16) · ×1
  • check-update.retireActiveClaim (cyclomatic 16) archify/scripts/check-update.mjs:931 — check-update.retireActiveClaim has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body's own statements and 2 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.
D1 · Cyclomatic Complexity · copy-site-assets.stageSiteAsset (cyclomatic 16) · ×1
  • copy-site-assets.stageSiteAsset (cyclomatic 16) scripts/copy-site-assets.mjs:34 — copy-site-assets.stageSiteAsset 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.
D1 · Cyclomatic Complexity · export.menu.addEventListener("keydown") (cyclomatic 16) · ×1
  • export.menu.addEventListener("keydown") (cyclomatic 16) REDACTED:1181 — export.menu.addEventListener("keydown") has cyclomatic complexity 16 (threshold 15). 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, 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.
D1 · Cyclomatic Complexity · createAutomaticSideSelection.legacyAutomaticOneBendSides (cyclomatic 16) · ×1
  • createAutomaticSideSelection.legacyAutomaticOneBendSides (cyclomatic 16) archify/renderers/workflow/workflow-compiler.mjs:1245 — createAutomaticSideSelection.legacyAutomaticOneBendSides has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · (anonymous).renderPlayback (cyclomatic 16) · ×1
  • (anonymous).renderPlayback (cyclomatic 16) viewer/guided-views.js:1202 — (anonymous).renderPlayback has cyclomatic complexity 16 (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.
D1 · Cyclomatic Complexity · (anonymous).planRelay (cyclomatic 16) · ×1
  • (anonymous).planRelay (cyclomatic 16) REDACTED:57 — (anonymous).planRelay has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 9 function items inside it that branch (relax, a function literal at line 73, a function literal at line 79, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D1 · Cyclomatic Complexity · (anonymous).zoom (cyclomatic 16) · ×1
  • (anonymous).zoom (cyclomatic 16) viewer/viewer-camera.js:289 — (anonymous).zoom has cyclomatic complexity 16 (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.
D1 · Cyclomatic Complexity · (anonymous).reveal (cyclomatic 16) · ×1
  • (anonymous).reveal (cyclomatic 16) viewer/viewer-camera.js:490 — (anonymous).reveal has cyclomatic complexity 16 (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.
D2 · Cognitive Complexity · compileExplainerDiagram (cognitive 246) · ×1
  • compileExplainerDiagram (cognitive 246) archify/explainer/diagrams.mjs:108 — compileExplainerDiagram has cognitive complexity 246 (threshold 15). Drivers by points: if/else 46 (109 pts), ternaries 26 (79 pts), loops 11 (29 pts), boolean chains 27, error handling 1, other 1 (nesting depth added 134). Of this number, 190 points are the body's own statements and 56 belong to 60 function items inside it that branch. 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.
D2 · Cognitive Complexity · createReadableLayout (cognitive 229) · ×1
  • createReadableLayout (cognitive 229) archify/renderers/workflow/workflow-compiler.mjs:233 — createReadableLayout has cognitive complexity 229 (threshold 15). Drivers by points: if/else 51 (97 pts), loops 36 (63 pts), boolean chains 46, ternaries 11 (23 pts) (nesting depth added 85). Of this number, 195 points are the body's own statements and 34 belong to 17 function items 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.
D2 · Cognitive Complexity · validateArchitecture (cognitive 225) · ×1
  • validateArchitecture (cognitive 225) archify/renderers/architecture/render-architecture.mjs:487 — validateArchitecture has cognitive complexity 225 (threshold 15). Drivers by points: if/else 48 (118 pts), boolean chains 38, loops 21 (38 pts), ternaries 8 (29 pts), other 2 (nesting depth added 108). Of this number, 220 points are the body's own statements and 5 belong to 26 function items 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.
D2 · Cognitive Complexity · parse.parseExplainer (cognitive 216) · ×1
  • parse.parseExplainer (cognitive 216) archify/explainer/parse.mjs:18 — parse.parseExplainer has cognitive complexity 216 (threshold 15). Drivers by points: if/else 126 (334 pts), loops 32 (93 pts), ternaries 23 (79 pts), boolean chains 66, error handling 3 (10 pts), match/switch 1 (2 pts) (nesting depth added 333). 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. This shape REPEATS in the file: 2 other methods here (parse.parseExplainer::scan, parse.parseExplainer::attributes) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · validateExplainer (cognitive 200) · ×1
  • validateExplainer (cognitive 200) archify/explainer/validate.mjs:17 — validateExplainer has cognitive complexity 200 (threshold 15). Drivers by points: if/else 58 (127 pts), ternaries 22 (65 pts), boolean chains 34, loops 16 (31 pts), error handling 2 (7 pts) (nesting depth added 132). 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.
D2 · Cognitive Complexity · createRouter.routeVia (cognitive 178) · ×1
  • createRouter.routeVia (cognitive 178) archify/renderers/architecture/routing.mjs:396 — createRouter.routeVia has cognitive complexity 178 (threshold 15). Drivers by points: boolean chains 60, if/else 21 (57 pts), ternaries 13 (38 pts), loops 8 (22 pts), match/switch 1 (nesting depth added 75). Of this number, 169 points are the body's own statements and 9 belong to 13 function items 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.
D2 · Cognitive Complexity · archify.commitDeliveryPair (cognitive 167) · ×1
  • archify.commitDeliveryPair (cognitive 167) archify/bin/archify.mjs:3236 — archify.commitDeliveryPair has cognitive complexity 167 (threshold 15). Drivers by points: if/else 38 (102 pts), ternaries 7 (25 pts), error handling 6 (14 pts), loops 10 (14 pts), boolean chains 12 (nesting depth added 94). 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.
D2 · Cognitive Complexity · archify.commandDeliver (cognitive 163) · ×1
  • archify.commandDeliver (cognitive 163) archify/bin/archify.mjs:4400 — archify.commandDeliver has cognitive complexity 163 (threshold 15). Drivers by points: if/else 39 (55 pts), ternaries 23 (44 pts), error handling 26 (34 pts), boolean chains 29, loops 1 (nesting depth added 45). Of this number, 156 points are the body's own statements and 7 belong to 3 function items 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.
D2 · Cognitive Complexity · routing.createRouter.routeVia (cognitive 163) · ×1
  • routing.createRouter.routeVia (cognitive 163) archify/renderers/architecture/routing.mjs:396 — routing.createRouter.routeVia has cognitive complexity 163 (threshold 15). Drivers by points: if/else 21 (57 pts), ternaries 13 (42 pts), boolean chains 41, loops 8 (22 pts), match/switch 1 (nesting depth added 79). Of this number, 156 points are the body's own statements and 7 belong to 4 function items 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.
D2 · Cognitive Complexity · repairLabelRoutes (cognitive 153) · ×1
  • repairLabelRoutes (cognitive 153) archify/renderers/dataflow/joint-label-routing.mjs:24 — repairLabelRoutes has cognitive complexity 153 (threshold 15). Drivers by points: if/else 20 (69 pts), loops 15 (39 pts), boolean chains 30, ternaries 4 (15 pts) (nesting depth added 84). Of this number, 115 points are the body's own statements and 38 belong to 47 function items 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.
D2 · Cognitive Complexity · check.checkExplainerHtml (cognitive 149) · ×1
  • check.checkExplainerHtml (cognitive 149) REDACTED:53 — check.checkExplainerHtml has cognitive complexity 149 (threshold 15). Drivers by points: if/else 38 (76 pts), boolean chains 45, loops 10 (15 pts), error handling 4 (7 pts), ternaries 5 (6 pts) (nesting depth added 47). Of this number, 138 points are the body's own statements and 11 belong to 7 function items 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.
D2 · Cognitive Complexity · validateSequence (cognitive 149) · ×1
  • validateSequence (cognitive 149) archify/renderers/sequence/render-sequence.mjs:554 — validateSequence has cognitive complexity 149 (threshold 15). Drivers by points: if/else 34 (67 pts), ternaries 14 (39 pts), loops 13 (22 pts), boolean chains 15, other 6 (nesting depth added 67). Of this number, 82 points are the body's own statements and 67 belong to 18 function items 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.
D2 · Cognitive Complexity · parseExplainer · ×1
  • parseExplainer::directive (cognitive 149) archify/explainer/parse.mjs:153 — parseExplainer::directive has cognitive complexity 149 (threshold 15). Drivers by points: if/else 41 (75 pts), boolean chains 24, loops 10 (22 pts), ternaries 6 (14 pts), other 8, error handling 2 (5 pts), match/switch 1 (nesting depth added 57). 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.
D2 · Cognitive Complexity · archify.commitComparePair (cognitive 147) · ×1
  • archify.commitComparePair (cognitive 147) archify/bin/archify.mjs:2899 — archify.commitComparePair has cognitive complexity 147 (threshold 15). Drivers by points: if/else 32 (84 pts), ternaries 11 (30 pts), loops 10 (14 pts), boolean chains 10, error handling 4 (9 pts) (nesting depth added 80). Of this number, 143 points are the body's own statements and 4 belong to 2 function items 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.
D2 · Cognitive Complexity · createRouter.planRoutes (cognitive 147) · ×1
  • createRouter.planRoutes (cognitive 147) archify/renderers/architecture/routing.mjs:1011 — createRouter.planRoutes has cognitive complexity 147 (threshold 15). Drivers by points: if/else 53 (187 pts), ternaries 26 (101 pts), boolean chains 66, loops 20 (58 pts) (nesting depth added 247). 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.
D2 · Cognitive Complexity · routing.createRouter.planRoutes (cognitive 140) · ×1
  • routing.createRouter.planRoutes (cognitive 140) archify/renderers/architecture/routing.mjs:1011 — routing.createRouter.planRoutes has cognitive complexity 140 (threshold 15). Drivers by points: if/else 52 (181 pts), ternaries 17 (64 pts), loops 20 (58 pts), boolean chains 57 (nesting depth added 214). 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. This shape REPEATS in the file: 3 other methods here (routing.createRouter.planRoutes::endpointSlotsClear, routing.createRouter.planRoutes::improveReciprocalPairs, routing.createRouter.planRoutes::improveComplexRoutes) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · shortestOrthogonalGridRoute (cognitive 132) · ×1
  • shortestOrthogonalGridRoute (cognitive 132) archify/renderers/shared/route-quality.mjs:261 — shortestOrthogonalGridRoute has cognitive complexity 132 (threshold 15). Drivers by points: if/else 27 (69 pts), loops 12 (22 pts), boolean chains 20, ternaries 7 (20 pts), other 1 (nesting depth added 65). Of this number, 96 points are the body's own statements and 36 belong to 19 function items 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.
D2 · Cognitive Complexity · resolveExplainerSources (cognitive 132) · ×1
  • resolveExplainerSources (cognitive 132) archify/explainer/sources.mjs:171 — resolveExplainerSources has cognitive complexity 132 (threshold 15). Drivers by points: if/else 24 (55 pts), ternaries 14 (35 pts), error handling 6 (16 pts), boolean chains 15, loops 8 (11 pts) (nesting depth added 65). Of this number, 131 points are the body's own statements and 1 belongs to 3 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.
D2 · Cognitive Complexity · copy-site-assets.copySiteAssets (cognitive 128) · ×1
  • copy-site-assets.copySiteAssets (cognitive 128) scripts/copy-site-assets.mjs:113 — copy-site-assets.copySiteAssets has cognitive complexity 128 (threshold 15). Drivers by points: if/else 39 (83 pts), loops 11 (14 pts), boolean chains 13, ternaries 4 (11 pts), error handling 4 (7 pts) (nesting depth added 57). 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.
D2 · Cognitive Complexity · archify.writeDeliveryProvenance (cognitive 122) · ×1
  • archify.writeDeliveryProvenance (cognitive 122) archify/bin/archify.mjs:1009 — archify.writeDeliveryProvenance has cognitive complexity 122 (threshold 15). Drivers by points: if/else 38 (82 pts), error handling 7 (15 pts), boolean chains 11, ternaries 3 (10 pts), loops 2 (4 pts) (nesting depth added 61). Of this number, 121 points are the body's own statements and 1 belongs to one function item 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.
D2 · Cognitive Complexity · layout (cognitive 120) · ×1
  • layout (cognitive 120) archify/renderers/lifecycle/render-lifecycle.mjs:244 — layout has cognitive complexity 120 (threshold 15). Drivers by points: ternaries 18 (47 pts), if/else 23 (39 pts), loops 20 (28 pts), boolean chains 4, other 2 (nesting depth added 53). Of this number, 95 points are the body's own statements and 25 belong to 34 function items 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.
D2 · Cognitive Complexity · archify.writeCapturedDeliveryProvenance (cognitive 119) · ×1
  • archify.writeCapturedDeliveryProvenance (cognitive 119) archify/bin/archify.mjs:1290 — archify.writeCapturedDeliveryProvenance has cognitive complexity 119 (threshold 15). Drivers by points: if/else 38 (79 pts), ternaries 7 (18 pts), error handling 5 (11 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 60). 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.
D2 · Cognitive Complexity · visual-check.commitVisualEvidence (cognitive 113) · ×1
  • visual-check.commitVisualEvidence (cognitive 113) archify/bin/visual-check.mjs:962 — visual-check.commitVisualEvidence has cognitive complexity 113 (threshold 15). Drivers by points: if/else 28 (66 pts), boolean chains 14, loops 10 (14 pts), ternaries 6 (14 pts), error handling 3 (5 pts) (nesting depth added 52). Of this number, 107 points are the body's own statements and 6 belong to one function item 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.
D2 · Cognitive Complexity · archify.commandCompare (cognitive 111) · ×1
  • archify.commandCompare (cognitive 111) archify/bin/archify.mjs:3675 — archify.commandCompare has cognitive complexity 111 (threshold 15). Drivers by points: boolean chains 38, if/else 21 (26 pts), ternaries 10 (23 pts), error handling 17 (21 pts), loops 3 (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.
D2 · Cognitive Complexity · verifyRepositoryEvidence (cognitive 110) · ×1
  • verifyRepositoryEvidence (cognitive 110) REDACTED:155 — verifyRepositoryEvidence has cognitive complexity 110 (threshold 15). Drivers by points: if/else 25 (50 pts), ternaries 12 (29 pts), boolean chains 16, error handling 3 (7 pts), loops 4 (6 pts), other 2 (nesting depth added 48). Of this number, 108 points are the body's own statements and 2 belong to 4 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.
D2 · Cognitive Complexity · finalize.runFinalize (cognitive 107) · ×1
  • finalize.runFinalize (cognitive 107) archify/bin/finalize.mjs:722 — finalize.runFinalize has cognitive complexity 107 (threshold 15). Drivers by points: if/else 30 (46 pts), boolean chains 29, ternaries 11 (21 pts), error handling 3 (9 pts), loops 2 (nesting depth added 32). Of this number, 92 points are the body's own statements and 15 belong to 3 function items 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.
D2 · Cognitive Complexity · validateEr (cognitive 105) · ×1
  • validateEr (cognitive 105) archify/renderers/erd/render-erd.mjs:1074 — validateEr has cognitive complexity 105 (threshold 15). Drivers by points: if/else 25 (62 pts), loops 17 (23 pts), ternaries 6 (13 pts), boolean chains 7 (nesting depth added 50). Of this number, 103 points are the body's own statements and 2 belong to 13 function items 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.
D2 · Cognitive Complexity · parseExplainerDiff (cognitive 100) · ×1
  • parseExplainerDiff (cognitive 100) archify/explainer/diff.mjs:27 — parseExplainerDiff has cognitive complexity 100 (threshold 15). Drivers by points: if/else 30 (60 pts), boolean chains 20, ternaries 9 (16 pts), loops 2, other 2 (nesting depth added 37). Of this number, 86 points are the body's own statements and 14 belong to 8 function items 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.
D2 · Cognitive Complexity · readHtmlHeadLinks (cognitive 96) · ×1
  • readHtmlHeadLinks (cognitive 96) archify/renderers/shared/brand-marks.mjs:294 — readHtmlHeadLinks has cognitive complexity 96 (threshold 15). Drivers by points: if/else 19 (57 pts), ternaries 5 (19 pts), boolean chains 17, loops 2 (3 pts) (nesting depth added 53). 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.
D2 · Cognitive Complexity · archify.recordDeliveryFailure (cognitive 95) · ×1
  • archify.recordDeliveryFailure (cognitive 95) archify/bin/archify.mjs:1607 — archify.recordDeliveryFailure has cognitive complexity 95 (threshold 15). Drivers by points: if/else 24 (51 pts), boolean chains 18, error handling 6 (15 pts), ternaries 3 (11 pts) (nesting depth added 44). Of this number, 82 points are the body's own statements and 13 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.
D2 · Cognitive Complexity · renderExplainer · ×1
  • renderExplainer::blockHtml (cognitive 92) archify/explainer/render.mjs:61 — renderExplainer::blockHtml has cognitive complexity 92 (threshold 15). Drivers by points: ternaries 32 (64 pts), if/else 7 (14 pts), boolean chains 11, other 2, match/switch 1 (nesting depth added 39). 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.
D2 · Cognitive Complexity · render-class.validateClassDiagram (cognitive 90) · ×1
  • render-class.validateClassDiagram (cognitive 90) archify/renderers/class/render-class.mjs:652 — render-class.validateClassDiagram has cognitive complexity 90 (threshold 15). Drivers by points: if/else 22 (51 pts), loops 12 (20 pts), boolean chains 11, ternaries 3 (8 pts) (nesting depth added 42). 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.
D2 · Cognitive Complexity · (anonymous) (cognitive 86) · ×1
  • (anonymous) (cognitive 86) viewer/guided-views.js:1 — (anonymous) has cognitive complexity 86 (threshold 15). Drivers by points: if/else 50 (60 pts), boolean chains 25, error handling 1 (nesting depth added 10). Most of this is not in the body itself: 15 of the 86 points are its own statements and the rest belongs to 24 function items inside it that branch (a function literal at line 1575, a function literal at line 1547, a function literal at line 1628, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · writing.lintExplainerWriting (cognitive 85) · ×1
  • writing.lintExplainerWriting (cognitive 85) archify/explainer/writing.mjs:67 — writing.lintExplainerWriting has cognitive complexity 85 (threshold 15). Drivers by points: if/else 14 (31 pts), ternaries 7 (27 pts), loops 6 (14 pts), boolean chains 13 (nesting depth added 45). Of this number, 82 points are the body's own statements and 3 belong to 2 function items inside it that branch. 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.
D2 · Cognitive Complexity · visual-check.beginVisualEvidenceWrite (cognitive 82) · ×1
  • visual-check.beginVisualEvidenceWrite (cognitive 82) archify/bin/visual-check.mjs:613 — visual-check.beginVisualEvidenceWrite has cognitive complexity 82 (threshold 15). Drivers by points: if/else 15 (33 pts), ternaries 5 (19 pts), boolean chains 17, loops 5 (9 pts), error handling 3 (4 pts) (nesting depth added 37). 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.
D2 · Cognitive Complexity · publishRegularFileBinding (cognitive 82) · ×1
  • publishRegularFileBinding (cognitive 82) archify/renderers/shared/atomic-output.mjs:1120 — publishRegularFileBinding has cognitive complexity 82 (threshold 15). Drivers by points: ternaries 26 (44 pts), if/else 19 (25 pts), boolean chains 12, error handling 1 (nesting depth added 24). Of this number, 61 points are the body's own statements and 21 belong to 4 function items 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.
D2 · Cognitive Complexity · archify.commandValidate (cognitive 77) · ×1
  • archify.commandValidate (cognitive 77) archify/bin/archify.mjs:6963 — archify.commandValidate has cognitive complexity 77 (threshold 15). Drivers by points: if/else 21 (33 pts), ternaries 7 (22 pts), boolean chains 10, error handling 4 (10 pts), loops 1 (2 pts) (nesting depth added 34). Of this number, 76 points are the body's own statements and 1 belongs 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.
D2 · Cognitive Complexity · proposeWorkflowPlacement (cognitive 77) · ×1
  • proposeWorkflowPlacement (cognitive 77) archify/renderers/workflow/workflow-placement-repair.mjs:3 — proposeWorkflowPlacement has cognitive complexity 77 (threshold 15). Drivers by points: if/else 13 (29 pts), loops 12 (18 pts), boolean chains 17, ternaries 6 (13 pts) (nesting depth added 29). Of this number, 65 points are the body's own statements and 12 belong to 30 function items 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.
D2 · Cognitive Complexity · inline.parseInline · ×1
  • inline.parseInline::segment (cognitive 74) archify/explainer/inline.mjs:43 — inline.parseInline::segment has cognitive complexity 74 (threshold 15). Drivers by points: if/else 17 (50 pts), boolean chains 10, loops 3 (8 pts), ternaries 2 (6 pts) (nesting depth added 42). 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.
D2 · Cognitive Complexity · wrapBlockedFlowLabels (cognitive 73) · ×1
  • wrapBlockedFlowLabels (cognitive 73) archify/renderers/dataflow/label-capacity.mjs:15 — wrapBlockedFlowLabels has cognitive complexity 73 (threshold 15). Drivers by points: if/else 9 (40 pts), loops 6 (20 pts), boolean chains 13 (nesting depth added 45). Of this number, 65 points are the body's own statements and 8 belong to 23 function items 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.
D2 · Cognitive Complexity · archify.commandMigrate (cognitive 72) · ×1
  • archify.commandMigrate (cognitive 72) archify/bin/archify.mjs:6443 — archify.commandMigrate has cognitive complexity 72 (threshold 15). Drivers by points: if/else 33 (38 pts), ternaries 7 (16 pts), error handling 10 (13 pts), boolean chains 5 (nesting depth added 17). Of this number, 70 points are the body's own statements and 2 belong to one function item 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.
D2 · Cognitive Complexity · validateArchitectureDeltaHtml (cognitive 72) · ×1
  • validateArchitectureDeltaHtml (cognitive 72) REDACTED:1240 — validateArchitectureDeltaHtml has cognitive complexity 72 (threshold 15). Drivers by points: if/else 26 (43 pts), boolean chains 22, ternaries 4 (5 pts), loops 2 (nesting depth added 18). Of this number, 71 points are the body's own statements and 1 belongs to 5 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.
D2 · Cognitive Complexity · visual-check.runBrowserEvidence (cognitive 71) · ×1
  • visual-check.runBrowserEvidence (cognitive 71) archify/bin/visual-check.mjs:2444 — visual-check.runBrowserEvidence has cognitive complexity 71 (threshold 15). Drivers by points: if/else 29 (43 pts), boolean chains 12, ternaries 8 (11 pts), error handling 3, loops 2 (nesting depth added 17). Of this number, 68 points are the body's own statements and 3 belong to 4 function items 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.
D2 · Cognitive Complexity · check-render-output.collectDesktopReadability (cognitive 69) · ×1
  • check-render-output.collectDesktopReadability (cognitive 69) archify/scripts/check-render-output.mjs:1219 — check-render-output.collectDesktopReadability has cognitive complexity 69 (threshold 15). Drivers by points: ternaries 19 (36 pts), boolean chains 16, if/else 8 (16 pts), loops 1 (nesting depth added 25). Of this number, 66 points are the body's own statements and 3 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.
D2 · Cognitive Complexity · (anonymous) (cognitive 69) · ×1
  • (anonymous) (cognitive 69) viewer/focus.js:6 — (anonymous) has cognitive complexity 69 (threshold 15). Drivers by points: if/else 37 (40 pts), boolean chains 18, ternaries 5 (6 pts), error handling 2 (5 pts) (nesting depth added 7). Most of this is not in the body itself: 7 of the 69 points are its own statements and the rest belongs to 21 function items inside it that branch (a function literal at line 1501, a function literal at line 1461, a function literal at line 1517, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · package-smoke.verifyPackage (cognitive 67) · ×1
  • package-smoke.verifyPackage (cognitive 67) scripts/package-smoke.mjs:113 — package-smoke.verifyPackage has cognitive complexity 67 (threshold 15). Drivers by points: if/else 32 (38 pts), boolean chains 24, loops 4, error handling 1 (nesting depth added 6). Of this number, 62 points are the body's own statements and 5 belong to one function item 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.
D2 · Cognitive Complexity · recordWebm (cognitive 67) · ×1
  • recordWebm (cognitive 67) REDACTED:801 — recordWebm has cognitive complexity 67 (threshold 15). Drivers by points: if/else 30 (32 pts), boolean chains 18, error handling 10 (11 pts), ternaries 4, loops 2 (nesting depth added 3). Most of this is not in the body itself: 4 of the 67 points are its own statements and the rest belongs to 23 function items inside it that branch ((anonymous)::finish, createMotionScene::samplesFor, a function literal at line 912, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · preparePanelPatch (cognitive 67) · ×1
  • preparePanelPatch (cognitive 67) REDACTED:21 — preparePanelPatch has cognitive complexity 67 (threshold 15). Drivers by points: boolean chains 33, if/else 15 (20 pts), ternaries 6 (7 pts), loops 4 (6 pts), error handling 1 (nesting depth added 8). Of this number, 47 points are the body's own statements and 20 belong to 33 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · (anonymous) (cognitive 66) · ×1
  • (anonymous) (cognitive 66) viewer/semantic-lens.js:7 — (anonymous) has cognitive complexity 66 (threshold 15). Drivers by points: if/else 26 (38 pts), boolean chains 22, ternaries 4 (6 pts) (nesting depth added 14). Most of this is not in the body itself: 2 of the 66 points are its own statements and the rest belongs to 16 function literals inside it that branch (lines 618, 588, 560, …). 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.
D2 · Cognitive Complexity · check-render-output.collectSequenceNoteBorders (cognitive 65) · ×1
  • check-render-output.collectSequenceNoteBorders (cognitive 65) archify/scripts/check-render-output.mjs:1038 — check-render-output.collectSequenceNoteBorders has cognitive complexity 65 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 17, ternaries 3 (9 pts), loops 3 (5 pts) (nesting depth added 26). Of this number, 64 points are the body's own statements and 1 belongs 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.
D2 · Cognitive Complexity · collectAmbiguousCorridors (cognitive 65) · ×1
  • collectAmbiguousCorridors (cognitive 65) archify/renderers/shared/geometry.mjs:730 — collectAmbiguousCorridors has cognitive complexity 65 (threshold 15). Drivers by points: if/else 10 (39 pts), boolean chains 13, loops 4 (10 pts), ternaries 3 (nesting depth added 35). Of this number, 57 points are the body's own statements and 8 belong to 4 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.
D2 · Cognitive Complexity · ci-scope.classifyPaths (cognitive 63) · ×1
  • ci-scope.classifyPaths (cognitive 63) scripts/ci-scope.mjs:11 — ci-scope.classifyPaths has cognitive complexity 63 (threshold 15). Drivers by points: if/else 26 (56 pts), boolean chains 6, loops 1 (nesting depth added 30). Of this number, 62 points are the body's own statements and 1 belongs to one function item 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.
D2 · Cognitive Complexity · path-semantics.resolvePlan (cognitive 61) · ×1
  • path-semantics.resolvePlan (cognitive 61) archify/renderers/shared/path-semantics.mjs:326 — path-semantics.resolvePlan has cognitive complexity 61 (threshold 15). Drivers by points: if/else 16 (38 pts), error handling 7 (15 pts), boolean chains 5, ternaries 1 (2 pts), loops 1 (nesting depth added 31). 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.
D2 · Cognitive Complexity · check-community-packages.validatePackage (cognitive 60) · ×1
  • check-community-packages.validatePackage (cognitive 60) scripts/check-community-packages.mjs:52 — check-community-packages.validatePackage has cognitive complexity 60 (threshold 15). Drivers by points: if/else 30 (45 pts), boolean chains 13, loops 2 (nesting depth added 15). Of this number, 51 points are the body's own statements and 9 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.
D2 · Cognitive Complexity · measurePublicHtml (cognitive 59) · ×1
  • measurePublicHtml (cognitive 59) archify/explainer/browser-check.mjs:30 — measurePublicHtml has cognitive complexity 59 (threshold 15). Drivers by points: boolean chains 37, ternaries 11 (12 pts), if/else 6, loops 3, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 10 of the 59 points are its own statements and the rest belongs to 37 function items inside it that branch (a function literal at line 50, a function literal at line 49, a function literal at line 49, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · layoutBoard (cognitive 55) · ×1
  • layoutBoard (cognitive 55) REDACTED:19 — layoutBoard has cognitive complexity 55 (threshold 15). Drivers by points: boolean chains 19, if/else 11 (17 pts), ternaries 8 (13 pts), loops 5 (6 pts) (nesting depth added 12). Most of this is not in the body itself: 4 of the 55 points are its own statements and the rest belongs to 31 function items inside it that branch (simulate, a function literal at line 50, plan, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · analyzeSvgPath (cognitive 54) · ×1
  • analyzeSvgPath (cognitive 54) archify/renderers/shared/svg-path-analysis.mjs:43 — analyzeSvgPath has cognitive complexity 54 (threshold 15). Drivers by points: if/else 18 (32 pts), ternaries 4 (11 pts), loops 3 (5 pts), boolean chains 4, other 2 (nesting depth added 23). Of this number, 52 points are the body's own statements and 2 belong to 4 function items 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.
D2 · Cognitive Complexity · finalize.compactFinalizeReceipt (cognitive 53) · ×1
  • finalize.compactFinalizeReceipt (cognitive 53) archify/bin/finalize.mjs:586 — finalize.compactFinalizeReceipt has cognitive complexity 53 (threshold 15). Drivers by points: boolean chains 22, if/else 12 (15 pts), ternaries 8 (9 pts), loops 6 (7 pts) (nesting depth added 5). Of this number, 37 points are the body's own statements and 16 belong to 3 function items inside it that branch. 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.
D2 · Cognitive Complexity · archify.inspectDeliveryProvenance (cognitive 52) · ×1
  • archify.inspectDeliveryProvenance (cognitive 52) archify/bin/archify.mjs:1904 — archify.inspectDeliveryProvenance has cognitive complexity 52 (threshold 15). Drivers by points: if/else 21 (27 pts), boolean chains 12, error handling 7 (11 pts), loops 2 (nesting depth added 10). Of this number, 51 points are the body's own statements and 1 belongs to one function item 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.
D2 · Cognitive Complexity · prepareExplainerDiagrams (cognitive 52) · ×1
  • prepareExplainerDiagrams (cognitive 52) archify/explainer/diagrams.mjs:448 — prepareExplainerDiagrams has cognitive complexity 52 (threshold 15). Drivers by points: if/else 12 (25 pts), error handling 4 (9 pts), boolean chains 7, ternaries 3 (6 pts), loops 4 (5 pts) (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.
D2 · Cognitive Complexity · visual-check.observationDiagnostics (cognitive 51) · ×1
  • visual-check.observationDiagnostics (cognitive 51) archify/bin/visual-check.mjs:2168 — visual-check.observationDiagnostics has cognitive complexity 51 (threshold 15). Drivers by points: ternaries 11 (33 pts), if/else 5 (10 pts), boolean chains 6, loops 2 (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.
D2 · Cognitive Complexity · (anonymous) (cognitive 51) · ×1
  • (anonymous) (cognitive 51) viewer/reader-layout.js:1 — (anonymous) has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 20, if/else 16 (20 pts), ternaries 6 (9 pts), error handling 1 (2 pts) (nesting depth added 8). Of this number, 32 points are the body's own statements and 19 belong to 8 function literals inside it that branch. 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.
D2 · Cognitive Complexity · geometry.automaticPortSpread (cognitive 50) · ×1
  • geometry.automaticPortSpread (cognitive 50) archify/renderers/shared/geometry.mjs:1703 — geometry.automaticPortSpread has cognitive complexity 50 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 14, ternaries 5 (11 pts), loops 3 (4 pts) (nesting depth added 18). Of this number, 34 points are the body's own statements and 16 belong to 2 function items 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.
D2 · Cognitive Complexity · finalize-delivery.html.layoutBoard (cognitive 50) · ×1
  • finalize-delivery.html.layoutBoard (cognitive 50) docs/cases/explainer/finalize-delivery.html:1298 — finalize-delivery.html.layoutBoard has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 20, if/else 11 (17 pts), ternaries 5 (7 pts), loops 5 (6 pts) (nesting depth added 9). Most of this is not in the body itself: 4 of the 50 points are its own statements and the rest belongs to 16 function items inside it that branch (simulate, a function literal at line 1329, plan, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · first-rental.html.layoutBoard (cognitive 50) · ×1
  • first-rental.html.layoutBoard (cognitive 50) docs/cases/explainer/first-rental.html:1302 — first-rental.html.layoutBoard has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 20, if/else 11 (17 pts), ternaries 5 (7 pts), loops 5 (6 pts) (nesting depth added 9). Most of this is not in the body itself: 4 of the 50 points are its own statements and the rest belongs to 16 function items inside it that branch (simulate, a function literal at line 1333, plan, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · p99-tail-latency.html.layoutBoard (cognitive 50) · ×1
  • p99-tail-latency.html.layoutBoard (cognitive 50) docs/cases/explainer/p99-tail-latency.html:1282 — p99-tail-latency.html.layoutBoard has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 20, if/else 11 (17 pts), ternaries 5 (7 pts), loops 5 (6 pts) (nesting depth added 9). Most of this is not in the body itself: 4 of the 50 points are its own statements and the rest belongs to 16 function items inside it that branch (simulate, a function literal at line 1313, plan, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · tls-first-visit.html.layoutBoard (cognitive 50) · ×1
  • tls-first-visit.html.layoutBoard (cognitive 50) docs/cases/explainer/tls-first-visit.html:1330 — tls-first-visit.html.layoutBoard has cognitive complexity 50 (threshold 15). Drivers by points: boolean chains 20, if/else 11 (17 pts), ternaries 5 (7 pts), loops 5 (6 pts) (nesting depth added 9). Most of this is not in the body itself: 4 of the 50 points are its own statements and the rest belongs to 16 function items inside it that branch (simulate, a function literal at line 1361, plan, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · geometry.cleanCrossingProblems (cognitive 49) · ×1
  • geometry.cleanCrossingProblems (cognitive 49) archify/renderers/shared/geometry.mjs:627 — geometry.cleanCrossingProblems has cognitive complexity 49 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 4 (10 pts), ternaries 4 (8 pts), boolean chains 6 (nesting depth added 25). Of this number, 39 points are the body's own statements and 10 belong to 3 function items 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.
D2 · Cognitive Complexity · check-render-output.collectSequenceColumnSpace (cognitive 49) · ×1
  • check-render-output.collectSequenceColumnSpace (cognitive 49) archify/scripts/check-render-output.mjs:958 — check-render-output.collectSequenceColumnSpace has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 12, loops 7 (11 pts), ternaries 1 (2 pts) (nesting depth added 15). Of this number, 48 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.
D2 · Cognitive Complexity · (anonymous).installRelationshipHitTargets (cognitive 48) · ×1
  • (anonymous).installRelationshipHitTargets (cognitive 48) viewer/focus.js:824 — (anonymous).installRelationshipHitTargets has cognitive complexity 48 (threshold 15). Drivers by points: if/else 27, boolean chains 15, error handling 2 (3 pts), ternaries 2, loops 1 (nesting depth added 1). Most of this is not in the body itself: 8 of the 48 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 915, 879, 888, …). 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.
D2 · Cognitive Complexity · serializeSvg (cognitive 48) · ×1
  • serializeSvg (cognitive 48) REDACTED:228 — serializeSvg has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 17, ternaries 5 (7 pts), error handling 2 (3 pts) (nesting depth added 7). Of this number, 26 points are the body's own statements and 22 belong to 9 function items inside it that branch. 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.
D2 · Cognitive Complexity · geometry.cleanEndpointSideProblems (cognitive 47) · ×1
  • geometry.cleanEndpointSideProblems (cognitive 47) archify/renderers/shared/geometry.mjs:388 — geometry.cleanEndpointSideProblems has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 12 (30 pts), boolean chains 8, if/else 3 (6 pts), loops 2 (3 pts) (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.
D2 · Cognitive Complexity · archify.assertDeliveryOwnership (cognitive 46) · ×1
  • archify.assertDeliveryOwnership (cognitive 46) archify/bin/archify.mjs:321 — archify.assertDeliveryOwnership has cognitive complexity 46 (threshold 15). Drivers by points: if/else 8 (19 pts), ternaries 4 (14 pts), error handling 3 (8 pts), boolean chains 4, loops 1 (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.
D2 · Cognitive Complexity · render-lifecycle.placeRow (cognitive 46) · ×1
  • render-lifecycle.placeRow (cognitive 46) archify/renderers/lifecycle/render-lifecycle.mjs:528 — render-lifecycle.placeRow has cognitive complexity 46 (threshold 15). Drivers by points: loops 10 (16 pts), ternaries 6 (13 pts), if/else 5 (11 pts), boolean chains 6 (nesting depth added 19). Of this number, 27 points are the body's own statements and 19 belong to 4 function items 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.
D2 · Cognitive Complexity · placeLabels (cognitive 46) · ×1
  • placeLabels (cognitive 46) archify/renderers/lifecycle/render-lifecycle.mjs:795 — placeLabels has cognitive complexity 46 (threshold 15). Drivers by points: loops 5 (16 pts), if/else 7 (12 pts), boolean chains 8, ternaries 3 (8 pts), other 2 (nesting depth added 21). Of this number, 36 points are the body's own statements and 10 belong to 17 function items 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.
D2 · Cognitive Complexity · render-lifecycle.snapPorts (cognitive 44) · ×1
  • render-lifecycle.snapPorts (cognitive 44) archify/renderers/lifecycle/render-lifecycle.mjs:686 — render-lifecycle.snapPorts has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (30 pts), boolean chains 9, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 20). Of this number, 39 points are the body's own statements and 5 belong to 4 function items 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.
D2 · Cognitive Complexity · check-render-output.collectArrows (cognitive 44) · ×1
  • check-render-output.collectArrows (cognitive 44) archify/scripts/check-render-output.mjs:454 — check-render-output.collectArrows has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 16, ternaries 7 (14 pts), if/else 6 (13 pts), loops 1 (nesting depth added 14). 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.
D2 · Cognitive Complexity · index.pageScene (cognitive 44) · ×1
  • index.pageScene (cognitive 44) website/src/scripts/index.js:246 — index.pageScene has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 11, ternaries 8 (10 pts) (nesting depth added 9). Of this number, 43 points are the body's own statements and 1 belongs to one function item 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.
D2 · Cognitive Complexity · repository-location.parseRepositoryRemote (cognitive 42) · ×1
  • repository-location.parseRepositoryRemote (cognitive 42) archify/renderers/shared/repository-location.mjs:7 — repository-location.parseRepositoryRemote has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 15, ternaries 11 (15 pts), if/else 10, error handling 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.
D2 · Cognitive Complexity · archify.acquireDeliveryLock (cognitive 42) · ×1
  • archify.acquireDeliveryLock (cognitive 42) archify/bin/archify.mjs:520 — archify.acquireDeliveryLock has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (44 pts), error handling 11 (22 pts), boolean chains 7, loops 5 (6 pts) (nesting depth added 34). 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. This shape REPEATS in the file: one other method here (archify.acquireDeliveryLock::openOwnedLock) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · chartFromData (cognitive 42) · ×1
  • chartFromData (cognitive 42) archify/explainer/charts.mjs:41 — chartFromData has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 6, ternaries 4 (6 pts), loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 13). Of this number, 22 points are the body's own statements and 20 belong to 15 function items 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.
D2 · Cognitive Complexity · layout.layoutExplainerPanels (cognitive 41) · ×1
  • layout.layoutExplainerPanels (cognitive 41) archify/explainer/layout.mjs:5 — layout.layoutExplainerPanels has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 8 (16 pts), loops 2 (5 pts), boolean chains 4 (nesting depth added 15). Most of this is not in the body itself: 14 of the 41 points are its own statements and the rest belongs to 4 function items inside it that branch (widths, contentSize, finish, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · collectLabelRouteClearance (cognitive 41) · ×1
  • collectLabelRouteClearance (cognitive 41) archify/renderers/shared/geometry.mjs:206 — collectLabelRouteClearance has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 10, loops 3 (6 pts), ternaries 2 (3 pts) (nesting depth added 16). Of this number, 35 points are the body's own statements and 6 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.
D2 · Cognitive Complexity · containedBy (cognitive 41) · ×1
  • containedBy (cognitive 41) archify/renderers/shared/path-semantics.mjs:927 — containedBy has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (27 pts), ternaries 4 (9 pts), loops 2 (3 pts), boolean chains 1, other 1 (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.
D2 · Cognitive Complexity · path-semantics.splitWindowsAbsolute (cognitive 40) · ×1
  • path-semantics.splitWindowsAbsolute (cognitive 40) archify/renderers/shared/path-semantics.mjs:101 — path-semantics.splitWindowsAbsolute has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (34 pts), boolean chains 6 (nesting depth added 17). 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.
D2 · Cognitive Complexity · render-erd.bundledTrunkPaths (cognitive 40) · ×1
  • render-erd.bundledTrunkPaths (cognitive 40) archify/renderers/erd/render-erd.mjs:861 — render-erd.bundledTrunkPaths has cognitive complexity 40 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 6 (10 pts), ternaries 3 (10 pts), boolean chains 7 (nesting depth added 19). 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.
D2 · Cognitive Complexity · (anonymous).measure (cognitive 40) · ×1
  • (anonymous).measure (cognitive 40) viewer/reader-layout.js:316 — (anonymous).measure has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 15, if/else 13 (14 pts), ternaries 9 (11 pts) (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, 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.
D2 · Cognitive Complexity · visual-check.observation (cognitive 39) · ×1
  • visual-check.observation (cognitive 39) archify/bin/visual-check.mjs:1942 — visual-check.observation has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 27, ternaries 11 (12 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · workflow-compiler.semanticContractDiagnostics (cognitive 39) · ×1
  • workflow-compiler.semanticContractDiagnostics (cognitive 39) archify/renderers/workflow/workflow-compiler.mjs:741 — workflow-compiler.semanticContractDiagnostics has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 8 (11 pts), boolean chains 5 (nesting depth added 14). Of this number, 30 points are the body's own statements and 9 belong to one function item 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.
D2 · Cognitive Complexity · render.renderExplainer (cognitive 39) · ×1
  • render.renderExplainer (cognitive 39) archify/explainer/render.mjs:37 — render.renderExplainer has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 44, ternaries 22 (30 pts), if/else 14 (24 pts), loops 2, match/switch 1 (nesting depth added 18). 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.
D2 · Cognitive Complexity · github.publishCard (cognitive 39) · ×1
  • github.publishCard (cognitive 39) tools/contributor-cards/github.mjs:22 — github.publishCard has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 8 (13 pts), boolean chains 6, loops 3 (4 pts), error handling 1 (2 pts) (nesting depth added 14). Of this number, 38 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.
D2 · Cognitive Complexity · routeBudgetMetrics (cognitive 39) · ×1
  • routeBudgetMetrics (cognitive 39) archify/renderers/shared/geometry.mjs:1006 — routeBudgetMetrics has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (26 pts), ternaries 3 (10 pts), loops 2 (3 pts) (nesting depth added 24). 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.
D2 · Cognitive Complexity · (anonymous).reachabilitySnapshot (cognitive 38) · ×1
  • (anonymous).reachabilitySnapshot (cognitive 38) viewer/focus.js:238 — (anonymous).reachabilitySnapshot has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 16, ternaries 1 (3 pts) (nesting depth added 9). Most of this is not in the body itself: 11 of the 38 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 282, 261, 313, …). 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.
D2 · Cognitive Complexity · stageRenderedHtml (cognitive 38) · ×1
  • stageRenderedHtml (cognitive 38) archify/renderers/shared/cli.mjs:167 — stageRenderedHtml has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (20 pts), error handling 4 (11 pts), boolean chains 3, ternaries 1 (2 pts), loops 1, other 1 (nesting depth added 21). 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.
D2 · Cognitive Complexity · workflow-compiler.createAutomaticSideSelection.readableAutomaticSides (cognitive 37) · ×1
  • workflow-compiler.createAutomaticSideSelection.readableAutomaticSides (cognitive 37) archify/renderers/workflow/workflow-compiler.mjs:1267 — workflow-compiler.createAutomaticSideSelection.readableAutomaticSides has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 12, ternaries 4 (7 pts), loops 4 (5 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.
D2 · Cognitive Complexity · createAutomaticSideSelection.readableAutomaticSides (cognitive 37) · ×1
  • createAutomaticSideSelection.readableAutomaticSides (cognitive 37) archify/renderers/workflow/workflow-compiler.mjs:1267 — createAutomaticSideSelection.readableAutomaticSides has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 12, ternaries 4 (7 pts), loops 4 (5 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.
D2 · Cognitive Complexity · (anonymous).createFlows (cognitive 37) · ×1
  • (anonymous).createFlows (cognitive 37) REDACTED:341 — (anonymous).createFlows has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 9, ternaries 4 (5 pts), error handling 3 (nesting depth added 3). Most of this is not in the body itself: 10 of the 37 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 343, a function literal at line 449, a function literal at line 462, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · browser-check.inspectExplainerBrowser (cognitive 36) · ×1
  • browser-check.inspectExplainerBrowser (cognitive 36) archify/explainer/browser-check.mjs:148 — browser-check.inspectExplainerBrowser has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 16, if/else 10 (14 pts), loops 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 6). Of this number, 28 points are the body's own statements and 8 belong to 4 function items 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.
D2 · Cognitive Complexity · archify.commandCheck (cognitive 36) · ×1
  • archify.commandCheck (cognitive 36) archify/bin/archify.mjs:5581 — archify.commandCheck has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 14). Of this number, 35 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.
D2 · Cognitive Complexity · archify.commandDoctor (cognitive 36) · ×1
  • archify.commandDoctor (cognitive 36) archify/bin/archify.mjs:6007 — archify.commandDoctor has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 18 (21 pts), if/else 7, boolean chains 4, error handling 1 (2 pts), loops 2 (nesting depth added 4). Of this number, 35 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.
D2 · Cognitive Complexity · compileWorkflowInternal (cognitive 36) · ×1
  • compileWorkflowInternal (cognitive 36) archify/renderers/workflow/workflow-compiler.mjs:1362 — compileWorkflowInternal has cognitive complexity 36 (threshold 15). Drivers by points: if/else 410 (792 pts), ternaries 180 (321 pts), boolean chains 295, loops 130 (216 pts), other 40, error handling 6 (13 pts), match/switch 2 (nesting depth added 616). 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.
D2 · Cognitive Complexity · cleanFlowProblems (cognitive 36) · ×1
  • cleanFlowProblems (cognitive 36) archify/renderers/shared/geometry.mjs:463 — cleanFlowProblems has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 6, loops 3 (6 pts), ternaries 1 (3 pts) (nesting depth added 18). Of this number, 35 points are the body's own statements and 1 belongs 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.
D2 · Cognitive Complexity · (anonymous).placeRelationshipLens (cognitive 36) · ×1
  • (anonymous).placeRelationshipLens (cognitive 36) viewer/focus.js:1155 — (anonymous).placeRelationshipLens has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 10, ternaries 4 (6 pts) (nesting depth added 5). Of this number, 29 points are the body's own statements and 7 belong to 8 function literals inside it that branch. 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.
D2 · Cognitive Complexity · (anonymous).setMany (cognitive 36) · ×1
  • (anonymous).setMany (cognitive 36) viewer/focus.js:1316 — (anonymous).setMany has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 18, if/else 14, error handling 1 (2 pts), ternaries 2 (nesting depth added 1). Of this number, 25 points are the body's own statements and 11 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · visual-check.restoreOwnedBackup (cognitive 34) · ×1
  • visual-check.restoreOwnedBackup (cognitive 34) archify/bin/visual-check.mjs:839 — visual-check.restoreOwnedBackup has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 9 (18 pts), if/else 9, boolean chains 5, error handling 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.
D2 · Cognitive Complexity · route-quality.cleanRouteDetourProblems (cognitive 34) · ×1
  • route-quality.cleanRouteDetourProblems (cognitive 34) archify/renderers/shared/route-quality.mjs:578 — route-quality.cleanRouteDetourProblems has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 12, ternaries 1 (2 pts), 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.
D2 · Cognitive Complexity · render.scopeNativeCss · ×1
  • render.scopeNativeCss::rules (cognitive 34) archify/explainer/render.mjs:198 — render.scopeNativeCss::rules has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 7, loops 2 (3 pts) (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.
D2 · Cognitive Complexity · (anonymous).applySelection (cognitive 34) · ×1
  • (anonymous).applySelection (cognitive 34) viewer/semantic-lens.js:371 — (anonymous).applySelection has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 7, ternaries 3 (6 pts) (nesting depth added 8). Most of this is not in the body itself: 7 of the 34 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 399, 421, 376, …). 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.
D2 · Cognitive Complexity · (anonymous).measure (cognitive 34) · ×1
  • (anonymous).measure (cognitive 34) viewer/viewer-chrome-layout.js:171 — (anonymous).measure has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 8 (11 pts), boolean chains 5 (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.
D2 · Cognitive Complexity · portable-path.validatePortablePathSet (cognitive 33) · ×1
  • portable-path.validatePortablePathSet (cognitive 33) archify/renderers/shared/portable-path.mjs:300 — portable-path.validatePortablePathSet has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 3 (10 pts), loops 3 (5 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 18). 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.
D2 · Cognitive Complexity · preview.stagePreviewCommit (cognitive 33) · ×1
  • preview.stagePreviewCommit (cognitive 33) archify/bin/preview.mjs:225 — preview.stagePreviewCommit has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (16 pts), error handling 4 (11 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 18). 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.
D2 · Cognitive Complexity · geometry.automaticPortRhythmBridge (cognitive 33) · ×1
  • geometry.automaticPortRhythmBridge (cognitive 33) archify/renderers/shared/geometry.mjs:1615 — geometry.automaticPortRhythmBridge has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 15, if/else 5 (7 pts), loops 3 (7 pts), ternaries 3 (4 pts) (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · check-update.checkForUpdate (cognitive 33) · ×1
  • check-update.checkForUpdate (cognitive 33) archify/scripts/check-update.mjs:1472 — check-update.checkForUpdate has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (12 pts), error handling 8 (10 pts), ternaries 5 (10 pts), boolean chains 1 (nesting depth added 8). Of this number, 30 points are the body's own statements and 3 belong to one function item 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.
D2 · Cognitive Complexity · copy-site-assets.stageSiteAsset (cognitive 33) · ×1
  • copy-site-assets.stageSiteAsset (cognitive 33) scripts/copy-site-assets.mjs:34 — copy-site-assets.stageSiteAsset has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (16 pts), error handling 4 (11 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 18). 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.
D2 · Cognitive Complexity · portable-path.validatePortablePath (cognitive 32) · ×1
  • portable-path.validatePortablePath (cognitive 32) archify/renderers/shared/portable-path.mjs:72 — portable-path.validatePortablePath has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 3, 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.
D2 · Cognitive Complexity · atomic-output.recoverRetiredPublication (cognitive 32) · ×1
  • atomic-output.recoverRetiredPublication (cognitive 32) archify/renderers/shared/atomic-output.mjs:1801 — atomic-output.recoverRetiredPublication has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 7 (11 pts), boolean chains 5, error handling 3 (nesting depth added 5). 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.
D2 · Cognitive Complexity · preview.startPreview.beginBuild (cognitive 32) · ×1
  • preview.startPreview.beginBuild (cognitive 32) archify/bin/preview.mjs:734 — preview.startPreview.beginBuild has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 10, error handling 1 (2 pts), loops 1 (nesting depth added 4). Most of this is not in the body itself: 14 of the 32 points are its own statements and the rest belongs to one function literal inside it that branches (line 804). 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.
D2 · Cognitive Complexity · archify.deliveryLockFailureDiagnostic (cognitive 32) · ×1
  • archify.deliveryLockFailureDiagnostic (cognitive 32) archify/bin/archify.mjs:2447 — archify.deliveryLockFailureDiagnostic has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 10 (26 pts), boolean chains 5, if/else 1 (nesting depth added 16). 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.
D2 · Cognitive Complexity · alignAutomaticFacingPorts (cognitive 32) · ×1
  • alignAutomaticFacingPorts (cognitive 32) archify/renderers/shared/geometry.mjs:1543 — alignAutomaticFacingPorts has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 20, if/else 5 (6 pts), ternaries 5, loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · createPublicationRecoveryRecord (cognitive 32) · ×1
  • createPublicationRecoveryRecord (cognitive 32) archify/renderers/shared/atomic-output.mjs:586 — createPublicationRecoveryRecord has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 9, error handling 5 (9 pts), loops 1, ternaries 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.
D2 · Cognitive Complexity · (anonymous).frameDesktop (cognitive 32) · ×1
  • (anonymous).frameDesktop (cognitive 32) viewer/viewer-camera.js:390 — (anonymous).frameDesktop has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 13, ternaries 3 (5 pts) (nesting depth added 3). Of this number, 27 points are the body's own statements and 5 belong to 5 function items inside it that branch. 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.
D2 · Cognitive Complexity · archify.commandBrowserEvidence (cognitive 31) · ×1
  • archify.commandBrowserEvidence (cognitive 31) archify/bin/archify.mjs:5736 — archify.commandBrowserEvidence has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 4 (8 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 10). Of this number, 28 points are the body's own statements and 3 belong to 2 function items 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.
D2 · Cognitive Complexity · check-render-output.collectRelationshipCrossings (cognitive 31) · ×1
  • check-render-output.collectRelationshipCrossings (cognitive 31) archify/scripts/check-render-output.mjs:737 — check-render-output.collectRelationshipCrossings has cognitive complexity 31 (threshold 15). Drivers by points: if/else 4 (15 pts), loops 4 (10 pts), boolean chains 5, ternaries 1 (nesting depth added 17). Of this number, 29 points are the body's own statements and 2 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.
D2 · Cognitive Complexity · (anonymous).begin (cognitive 31) · ×1
  • (anonymous).begin (cognitive 31) viewer/route-probe.js:790 — (anonymous).begin has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 11, error handling 2 (7 pts), ternaries 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.
D2 · Cognitive Complexity · archify.acquireDeliveryLock · ×1
  • archify.acquireDeliveryLock::openOwnedLock (cognitive 30) archify/bin/archify.mjs:600 — archify.acquireDeliveryLock::openOwnedLock has cognitive complexity 30 (threshold 15). Drivers by points: error handling 6 (14 pts), if/else 7 (13 pts), boolean chains 3 (nesting depth added 14). 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. This shape REPEATS in the file: one other method here (archify.acquireDeliveryLock) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
D2 · Cognitive Complexity · routing.createRouter.automaticEndpoint (cognitive 30) · ×1
  • routing.createRouter.automaticEndpoint (cognitive 30) archify/renderers/architecture/routing.mjs:807 — routing.createRouter.automaticEndpoint has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 7 (11 pts), boolean chains 9, if/else 5 (8 pts), loops 2 (nesting depth added 7). Of this number, 29 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.
D2 · Cognitive Complexity · render-lifecycle.distributePorts (cognitive 30) · ×1
  • render-lifecycle.distributePorts (cognitive 30) archify/renderers/lifecycle/render-lifecycle.mjs:629 — render-lifecycle.distributePorts has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 4 (11 pts), if/else 4 (10 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 15). Of this number, 20 points are the body's own statements and 10 belong to 2 function items 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.
D2 · Cognitive Complexity · render-lifecycle.validateLayout (cognitive 30) · ×1
  • render-lifecycle.validateLayout (cognitive 30) archify/renderers/lifecycle/render-lifecycle.mjs:915 — render-lifecycle.validateLayout has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 10 (20 pts), boolean chains 7, if/else 2, loops 1 (nesting depth added 10). Of this number, 17 points are the body's own statements and 13 belong to 4 function items 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.
D2 · Cognitive Complexity · collectArrowheadCollisions (cognitive 30) · ×1
  • collectArrowheadCollisions (cognitive 30) archify/renderers/shared/geometry.mjs:827 — collectArrowheadCollisions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (18 pts), boolean chains 5, ternaries 2 (4 pts), loops 2 (3 pts) (nesting depth added 15). 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.
D2 · Cognitive Complexity · route-quality.inferredSide (cognitive 29) · ×1
  • route-quality.inferredSide (cognitive 29) archify/renderers/shared/route-quality.mjs:84 — route-quality.inferredSide has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 8, 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.
D2 · Cognitive Complexity · check-update.setUpdatePreference (cognitive 29) · ×1
  • check-update.setUpdatePreference (cognitive 29) archify/scripts/check-update.mjs:1608 — check-update.setUpdatePreference has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 4 (6 pts), ternaries 3 (6 pts), boolean chains 5, loops 1 (nesting depth added 10). Of this number, 19 points are the body's own statements and 10 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.
D2 · Cognitive Complexity · applyReachSnapshot (cognitive 29) · ×1
  • applyReachSnapshot (cognitive 29) REDACTED:144 — applyReachSnapshot has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 13, if/else 7 (11 pts), ternaries 1 (3 pts), loops 2 (nesting depth added 6). Of this number, 26 points are the body's own statements and 3 belong to 10 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.
D2 · Cognitive Complexity · geometry.collectBorderRuns (cognitive 28) · ×1
  • geometry.collectBorderRuns (cognitive 28) archify/renderers/shared/geometry.mjs:918 — geometry.collectBorderRuns has cognitive complexity 28 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 4 (10 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 16). Of this number, 27 points are the body's own statements and 1 belongs 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.
D2 · Cognitive Complexity · workflow-compiler.compileWorkflowWithFeedback (cognitive 28) · ×1
  • workflow-compiler.compileWorkflowWithFeedback (cognitive 28) archify/renderers/workflow/workflow-compiler.mjs:5802 — workflow-compiler.compileWorkflowWithFeedback has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 7, loops 2 (3 pts) (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.
D2 · Cognitive Complexity · archify.checkerDiagnostics (cognitive 28) · ×1
  • archify.checkerDiagnostics (cognitive 28) archify/bin/archify.mjs:2722 — archify.checkerDiagnostics has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (10 pts), ternaries 3 (6 pts), loops 2 (nesting depth added 8). Of this number, 27 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.
D2 · Cognitive Complexity · stage-clean-skill.stageCleanSkill (cognitive 28) · ×1
  • stage-clean-skill.stageCleanSkill (cognitive 28) scripts/stage-clean-skill.mjs:504 — stage-clean-skill.stageCleanSkill has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 4 (6 pts), error handling 2 (3 pts), loops 3 (nesting depth added 10). Of this number, 25 points are the body's own statements and 3 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.
D2 · Cognitive Complexity · build-readme-showcase.captureFrames (cognitive 28) · ×1
  • build-readme-showcase.captureFrames (cognitive 28) scripts/build-readme-showcase.mjs:308 — build-readme-showcase.captureFrames has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 3 (12 pts), if/else 5 (9 pts), error handling 2 (3 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 15). 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.
D2 · Cognitive Complexity · check-cloudflare-output.checkCloudflareOutput (cognitive 28) · ×1
  • check-cloudflare-output.checkCloudflareOutput (cognitive 28) website/scripts/check-cloudflare-output.mjs:10 — check-cloudflare-output.checkCloudflareOutput has cognitive complexity 28 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 6 (8 pts), boolean chains 7, ternaries 2 (4 pts) (nesting depth added 9). Most of this is not in the body itself: 8 of the 28 points are its own statements and the rest belongs to 5 function items inside it that branch (visit, checkAssets, a function literal at line 11, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · (anonymous).beginHandoff (cognitive 28) · ×1
  • (anonymous).beginHandoff (cognitive 28) viewer/guided-views.js:217 — (anonymous).beginHandoff has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 5 (8 pts), boolean chains 6 (nesting depth added 5). Of this number, 17 points are the body's own statements and 11 belong to 4 function items inside it that branch. 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.
D2 · Cognitive Complexity · createRouter.automaticEndpoint (cognitive 28) · ×1
  • createRouter.automaticEndpoint (cognitive 28) archify/renderers/architecture/routing.mjs:807 — createRouter.automaticEndpoint has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 9, ternaries 7 (9 pts), if/else 5 (8 pts), loops 2 (nesting depth added 5). Of this number, 27 points are the body's own statements and 1 belongs to 3 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.
D2 · Cognitive Complexity · parsePublicationRecoveryRecord (cognitive 28) · ×1
  • parsePublicationRecoveryRecord (cognitive 28) archify/renderers/shared/atomic-output.mjs:1610 — parsePublicationRecoveryRecord has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 23, if/else 2, ternaries 2, error handling 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · inspectPublicHtml (cognitive 28) · ×1
  • inspectPublicHtml (cognitive 28) archify/explainer/browser-check.mjs:88 — inspectPublicHtml has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 5, loops 2, error handling 1, other 1 (nesting depth added 3). Of this number, 20 points are the body's own statements and 8 belong to 5 function literals inside it that branch. 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.
D2 · Cognitive Complexity · (anonymous) (cognitive 28) · ×1
  • (anonymous) (cognitive 28) viewer/semantic-radar.js:6 — (anonymous) has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 9, error handling 1, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 2 of the 28 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 561, a function literal at line 542, a function literal at line 606, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · inline.referenceFor (cognitive 27) · ×1
  • inline.referenceFor (cognitive 27) archify/explainer/inline.mjs:7 — inline.referenceFor has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 9, error handling 1 (2 pts), ternaries 1 (2 pts) (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.
D2 · Cognitive Complexity · atomic-output.quarantineRemoveRegularFileBinding (cognitive 27) · ×1
  • atomic-output.quarantineRemoveRegularFileBinding (cognitive 27) archify/renderers/shared/atomic-output.mjs:755 — atomic-output.quarantineRemoveRegularFileBinding has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 9, error handling 7 (8 pts), if/else 7, ternaries 2 (3 pts) (nesting depth added 2). Of this number, 25 points are the body's own statements and 2 belong to one function item 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.
D2 · Cognitive Complexity · PipeCdp.consume (cognitive 27) · ×1
  • PipeCdp.consume (cognitive 27) archify/bin/visual-check.mjs:1428 — PipeCdp.consume has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (5 pts), boolean chains 3, error handling 1 (2 pts) (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.
D2 · Cognitive Complexity · archify.writeDeliveryFailureReceipt (cognitive 27) · ×1
  • archify.writeDeliveryFailureReceipt (cognitive 27) archify/bin/archify.mjs:4313 — archify.writeDeliveryFailureReceipt has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 8 (17 pts), boolean chains 9, if/else 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.
D2 · Cognitive Complexity · archify.commandFinalize (cognitive 27) · ×1
  • archify.commandFinalize (cognitive 27) archify/bin/archify.mjs:5888 — archify.commandFinalize has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 9, error handling 2, loops 1 (2 pts) (nesting depth added 5). Of this number, 26 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.
D2 · Cognitive Complexity · archify.extractMigrationOptions (cognitive 27) · ×1
  • archify.extractMigrationOptions (cognitive 27) archify/bin/archify.mjs:6404 — archify.extractMigrationOptions has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 2, loops 1 (nesting depth added 14). 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.
D2 · Cognitive Complexity · architecture-delta.buildDeltaSvg (cognitive 27) · ×1
  • architecture-delta.buildDeltaSvg (cognitive 27) REDACTED:582 — architecture-delta.buildDeltaSvg has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5, loops 5, ternaries 1 (3 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.
D2 · Cognitive Complexity · output-path.resolveOutputPath (cognitive 26) · ×1
  • output-path.resolveOutputPath (cognitive 26) archify/renderers/shared/output-path.mjs:373 — output-path.resolveOutputPath has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 6 (9 pts), boolean chains 3, loops 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.
D2 · Cognitive Complexity · brand-marks.prepareDiagramBrandMarks (cognitive 26) · ×1
  • brand-marks.prepareDiagramBrandMarks (cognitive 26) archify/renderers/shared/brand-marks.mjs:597 — brand-marks.prepareDiagramBrandMarks has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 7 (9 pts), boolean chains 3 (nesting depth added 10). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 603, 635). 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.
D2 · Cognitive Complexity · architecture-delta.compareArchitecture (cognitive 26) · ×1
  • architecture-delta.compareArchitecture (cognitive 26) REDACTED:259 — architecture-delta.compareArchitecture has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 12, ternaries 12, if/else 2. Of this number, 17 points are the body's own statements and 9 belong to 3 function items inside it that branch. 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.
D2 · Cognitive Complexity · architecture-delta.expectedReviewTargetSignature (cognitive 26) · ×1
  • architecture-delta.expectedReviewTargetSignature (cognitive 26) REDACTED:700 — architecture-delta.expectedReviewTargetSignature has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 4 (14 pts), if/else 4 (6 pts), loops 3 (6 pts) (nesting depth added 15). 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.
D2 · Cognitive Complexity · check-render-output.collectArchitectureLeadingSpace (cognitive 26) · ×1
  • check-render-output.collectArchitectureLeadingSpace (cognitive 26) archify/scripts/check-render-output.mjs:904 — check-render-output.collectArchitectureLeadingSpace has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 6 (9 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 6). 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.
D2 · Cognitive Complexity · compileWithLayoutFeedback (cognitive 26) · ×1
  • compileWithLayoutFeedback (cognitive 26) archify/renderers/workflow/workflow-compiler.mjs:5744 — compileWithLayoutFeedback has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 7, error handling 1 (2 pts), other 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.
D2 · Cognitive Complexity · (anonymous).followStoryStep (cognitive 26) · ×1
  • (anonymous).followStoryStep (cognitive 26) viewer/guided-views.js:939 — (anonymous).followStoryStep has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 11, ternaries 2 (3 pts) (nesting depth added 4). Of this number, 14 points are the body's own statements and 12 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.
D2 · Cognitive Complexity · renderShareCard (cognitive 26) · ×1
  • renderShareCard (cognitive 26) REDACTED:637 — renderShareCard has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 10, if/else 8, ternaries 7, error handling 1. Most of this is not in the body itself: 9 of the 26 points are its own statements and the rest belongs to 4 function items inside it that branch ((anonymous)::onload, a function literal at line 740, a function literal at line 651, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · linkTerms (cognitive 26) · ×1
  • linkTerms (cognitive 26) REDACTED:409 — linkTerms has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 8, loops 3 (4 pts), ternaries 3 (4 pts) (nesting depth added 6). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 16 function items inside it that branch (a function literal at line 422, a function literal at line 411, (anonymous)::acceptNode, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · probeNameAlias (cognitive 26) · ×1
  • probeNameAlias (cognitive 26) archify/renderers/shared/path-semantics.mjs:593 — probeNameAlias has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (16 pts), error handling 3 (4 pts), ternaries 2 (3 pts), boolean chains 2, other 1 (nesting depth added 4). Of this number, 25 points are the body's own statements and 1 belongs to one function item 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.
D2 · Cognitive Complexity · diagrams.validateExplainerDiagramTarget (cognitive 25) · ×1
  • diagrams.validateExplainerDiagramTarget (cognitive 25) archify/explainer/diagrams.mjs:503 — diagrams.validateExplainerDiagramTarget has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 8, loops 2 (5 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.
D2 · Cognitive Complexity · atomic-output.inspectRegularFileDescriptor (cognitive 25) · ×1
  • atomic-output.inspectRegularFileDescriptor (cognitive 25) archify/renderers/shared/atomic-output.mjs:203 — atomic-output.inspectRegularFileDescriptor has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 4 (8 pts), boolean chains 4, error handling 2 (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.
D2 · Cognitive Complexity · browser-check.explainerObservationDiagnostics (cognitive 25) · ×1
  • browser-check.explainerObservationDiagnostics (cognitive 25) archify/explainer/browser-check.mjs:192 — browser-check.explainerObservationDiagnostics has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 5 (12 pts), boolean chains 6, if/else 2 (3 pts), loops 2 (3 pts), error handling 1 (nesting depth added 9). Of this number, 23 points are the body's own statements and 2 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.
D2 · Cognitive Complexity · visual-check.findChrome (cognitive 25) · ×1
  • visual-check.findChrome (cognitive 25) archify/bin/visual-check.mjs:1317 — visual-check.findChrome has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 5 (7 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.
D2 · Cognitive Complexity · finalize-delivery.html.linkTerms (cognitive 25) · ×1
  • finalize-delivery.html.linkTerms (cognitive 25) docs/cases/explainer/finalize-delivery.html:1688 — finalize-delivery.html.linkTerms has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 9, loops 3 (4 pts), ternaries 2 (nesting depth added 5). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 1701, 1690, 1703, …). 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.
D2 · Cognitive Complexity · first-rental.html.linkTerms (cognitive 25) · ×1
  • first-rental.html.linkTerms (cognitive 25) docs/cases/explainer/first-rental.html:1692 — first-rental.html.linkTerms has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 9, loops 3 (4 pts), ternaries 2 (nesting depth added 5). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 1705, 1694, 1707, …). 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.
D2 · Cognitive Complexity · p99-tail-latency.html.linkTerms (cognitive 25) · ×1
  • p99-tail-latency.html.linkTerms (cognitive 25) docs/cases/explainer/p99-tail-latency.html:1672 — p99-tail-latency.html.linkTerms has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 9, loops 3 (4 pts), ternaries 2 (nesting depth added 5). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 1685, 1674, 1687, …). 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.
D2 · Cognitive Complexity · tls-first-visit.html.linkTerms (cognitive 25) · ×1
  • tls-first-visit.html.linkTerms (cognitive 25) docs/cases/explainer/tls-first-visit.html:1720 — tls-first-visit.html.linkTerms has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 9, loops 3 (4 pts), ternaries 2 (nesting depth added 5). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 1733, 1722, 1735, …). 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.
D2 · Cognitive Complexity · localize-html.localizeHtml · ×1
  • localize-html.localizeHtml::walk (cognitive 25) website/src/data/localize-html.mjs:6 — localize-html.localizeHtml::walk has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, ternaries 4 (7 pts), loops 2 (3 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.
D2 · Cognitive Complexity · (anonymous).pulseStoryStep (cognitive 25) · ×1
  • (anonymous).pulseStoryStep (cognitive 25) viewer/guided-views.js:856 — (anonymous).pulseStoryStep has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, loops 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 8). Of this number, 24 points are the body's own statements and 1 belongs to 3 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.
D2 · Cognitive Complexity · setupSourceCards · ×1
  • setupSourceCards::show (cognitive 25) REDACTED:606 — setupSourceCards::show has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 16, boolean chains 8, if/else 1. 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.
D2 · Cognitive Complexity · rethrowNative (cognitive 25) · ×1
  • rethrowNative (cognitive 25) archify/explainer/diagrams.mjs:333 — rethrowNative has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, ternaries 4 (8 pts), if/else 3 (4 pts) (nesting depth added 5). Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 343, 339, 336, …). 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.
D2 · Cognitive Complexity · (anonymous).show (cognitive 25) · ×1
  • (anonymous).show (cognitive 25) viewer/intent-trace.js:91 — (anonymous).show has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 6, ternaries 3 (4 pts) (nesting depth added 2). Of this number, 14 points are the body's own statements and 11 belong to 4 function literals inside it that branch. 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.
D2 · Cognitive Complexity · migrateWorkflowDocument (cognitive 25) · ×1
  • migrateWorkflowDocument (cognitive 25) archify/migrations/workflow-v2.mjs:116 — migrateWorkflowDocument has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 6, ternaries 3 (4 pts), error handling 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.
D2 · Cognitive Complexity · visual-check.cleanupStagedEvidence (cognitive 24) · ×1
  • visual-check.cleanupStagedEvidence (cognitive 24) archify/bin/visual-check.mjs:554 — visual-check.cleanupStagedEvidence has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (8 pts), boolean chains 3, error handling 1 (2 pts), loops 2 (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.
D2 · Cognitive Complexity · render-tree.renderNode (cognitive 24) · ×1
  • render-tree.renderNode (cognitive 24) archify/renderers/tree/render-tree.mjs:422 — render-tree.renderNode has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 17 (22 pts), boolean chains 2 (nesting depth added 5). 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.
D2 · Cognitive Complexity · (anonymous).applyJourneyState (cognitive 24) · ×1
  • (anonymous).applyJourneyState (cognitive 24) viewer/route-probe.js:495 — (anonymous).applyJourneyState has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11, ternaries 9, boolean chains 4. Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 503, 519, 511). 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.
D2 · Cognitive Complexity · (anonymous) (cognitive 24) · ×1
  • (anonymous) (cognitive 24) viewer/node-finder.js:6 — (anonymous) has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 12. None of this is in the body itself: all 24 points belong to 8 function literals inside it that branch (lines 230, 57, 219, …). 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.
D2 · Cognitive Complexity · prepare.validatePreparedTargets · ×1
  • prepare.validatePreparedTargets::visit (cognitive 23) archify/explainer/prepare.mjs:104 — prepare.validatePreparedTargets::visit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, loops 2 (4 pts), ternaries 1 (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.
D2 · Cognitive Complexity · output-path.validateNativeOutputPath (cognitive 23) · ×1
  • output-path.validateNativeOutputPath (cognitive 23) archify/renderers/shared/output-path.mjs:256 — output-path.validateNativeOutputPath has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 2 (4 pts), boolean chains 3, ternaries 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.
D2 · Cognitive Complexity · atomic-output.captureRegularFileBinding (cognitive 23) · ×1
  • atomic-output.captureRegularFileBinding (cognitive 23) archify/renderers/shared/atomic-output.mjs:302 — atomic-output.captureRegularFileBinding has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, if/else 8, error handling 2, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · revision.computeExplainerRevision (cognitive 23) · ×1
  • revision.computeExplainerRevision (cognitive 23) archify/explainer/revision.mjs:5 — revision.computeExplainerRevision has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (14 pts), boolean chains 9 (nesting depth added 7). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 6 function items inside it that branch (stable, a function literal at line 10, a function literal at line 11, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · engineering-profiles.deploymentOwnershipDiagnostics (cognitive 23) · ×1
  • engineering-profiles.deploymentOwnershipDiagnostics (cognitive 23) archify/renderers/shared/engineering-profiles.mjs:23 — engineering-profiles.deploymentOwnershipDiagnostics has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, ternaries 4, loops 1 (nesting depth added 2). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 43, 119, 95, …). 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.
D2 · Cognitive Complexity · archify.commandGuide (cognitive 23) · ×1
  • archify.commandGuide (cognitive 23) archify/bin/archify.mjs:6193 — archify.commandGuide has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3, ternaries 2, error handling 1, loops 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.
D2 · Cognitive Complexity · reader.setupWalks (cognitive 23) · ×1
  • reader.setupWalks (cognitive 23) REDACTED:473 — reader.setupWalks has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 10. None of this is in the body itself: all 23 points belong to 8 function literals inside it that branch (lines 498, 479, 492, …). 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.
D2 · Cognitive Complexity · render-tree.validateStructure (cognitive 23) · ×1
  • render-tree.validateStructure (cognitive 23) archify/renderers/tree/render-tree.mjs:55 — render-tree.validateStructure has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4 (5 pts), ternaries 2 (4 pts), boolean chains 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.
D2 · Cognitive Complexity · check-render-output.collectRelationshipLabelMasks (cognitive 23) · ×1
  • check-render-output.collectRelationshipLabelMasks (cognitive 23) archify/scripts/check-render-output.mjs:671 — check-render-output.collectRelationshipLabelMasks has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 10, loops 1 (nesting depth added 6). Of this number, 21 points are the body's own statements and 2 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.
D2 · Cognitive Complexity · check-render-output.crowdedNodeSides (cognitive 23) · ×1
  • check-render-output.crowdedNodeSides (cognitive 23) archify/scripts/check-render-output.mjs:824 — check-render-output.crowdedNodeSides has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 5 (13 pts), boolean chains 5, loops 2 (3 pts), if/else 1 (2 pts) (nesting depth added 10). Of this number, 19 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.
D2 · Cognitive Complexity · finalize-delivery.html.setupWalks (cognitive 23) · ×1
  • finalize-delivery.html.setupWalks (cognitive 23) docs/cases/explainer/finalize-delivery.html:1752 — finalize-delivery.html.setupWalks has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 10. None of this is in the body itself: all 23 points belong to 8 function literals inside it that branch (lines 1777, 1758, 1771, …). 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.
D2 · Cognitive Complexity · finalize-delivery.html.setupSourceCards · ×1
  • finalize-delivery.html.setupSourceCards::show (cognitive 23) docs/cases/explainer/finalize-delivery.html:1885 — finalize-delivery.html.setupSourceCards::show has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 8, if/else 1 (nesting depth added 4). 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.
D2 · Cognitive Complexity · first-rental.html.setupWalks (cognitive 23) · ×1
  • first-rental.html.setupWalks (cognitive 23) docs/cases/explainer/first-rental.html:1756 — first-rental.html.setupWalks has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 10. None of this is in the body itself: all 23 points belong to 8 function literals inside it that branch (lines 1781, 1762, 1775, …). 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.
D2 · Cognitive Complexity · first-rental.html.setupSourceCards · ×1
  • first-rental.html.setupSourceCards::show (cognitive 23) docs/cases/explainer/first-rental.html:1889 — first-rental.html.setupSourceCards::show has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 8, if/else 1 (nesting depth added 4). 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.
D2 · Cognitive Complexity · p99-tail-latency.html.setupWalks (cognitive 23) · ×1
  • p99-tail-latency.html.setupWalks (cognitive 23) docs/cases/explainer/p99-tail-latency.html:1736 — p99-tail-latency.html.setupWalks has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 10. None of this is in the body itself: all 23 points belong to 8 function literals inside it that branch (lines 1761, 1742, 1755, …). 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.
D2 · Cognitive Complexity · p99-tail-latency.html.setupSourceCards · ×1
  • p99-tail-latency.html.setupSourceCards::show (cognitive 23) docs/cases/explainer/p99-tail-latency.html:1869 — p99-tail-latency.html.setupSourceCards::show has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 8, if/else 1 (nesting depth added 4). 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.
D2 · Cognitive Complexity · tls-first-visit.html.setupWalks (cognitive 23) · ×1
  • tls-first-visit.html.setupWalks (cognitive 23) docs/cases/explainer/tls-first-visit.html:1784 — tls-first-visit.html.setupWalks has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 10. None of this is in the body itself: all 23 points belong to 8 function literals inside it that branch (lines 1809, 1790, 1803, …). 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.
D2 · Cognitive Complexity · tls-first-visit.html.setupSourceCards · ×1
  • tls-first-visit.html.setupSourceCards::show (cognitive 23) docs/cases/explainer/tls-first-visit.html:1917 — tls-first-visit.html.setupSourceCards::show has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 8, if/else 1 (nesting depth added 4). 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.
D2 · Cognitive Complexity · resolve-cli.resolveCliInvocation (cognitive 23) · ×1
  • resolve-cli.resolveCliInvocation (cognitive 23) integrations/deepseek-harness/scripts/resolve-cli.mjs:37 — resolve-cli.resolveCliInvocation has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 14, if/else 6 (9 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · PipeCdp.consume (cognitive 23) · ×1
  • PipeCdp.consume (cognitive 23) scripts/build-readme-showcase.mjs:183 — PipeCdp.consume has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3, loops 2 (3 pts) (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.
D2 · Cognitive Complexity · createLegacyCapacityRepair.enforceLegacyColumnCapacity (cognitive 23) · ×1
  • createLegacyCapacityRepair.enforceLegacyColumnCapacity (cognitive 23) archify/renderers/workflow/workflow-compiler.mjs:1178 — createLegacyCapacityRepair.enforceLegacyColumnCapacity has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, ternaries 2 (4 pts), loops 1, other 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.
D2 · Cognitive Complexity · (anonymous).applyReachability (cognitive 23) · ×1
  • (anonymous).applyReachability (cognitive 23) viewer/focus.js:173 — (anonymous).applyReachability has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 10, if/else 9, error handling 1 (2 pts), ternaries 2 (nesting depth added 1). Of this number, 17 points are the body's own statements and 6 belong to 3 function literals inside it that branch. 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.
D2 · Cognitive Complexity · validateStructure (cognitive 23) · ×1
  • validateStructure (cognitive 23) archify/renderers/lifecycle/render-lifecycle.mjs:861 — validateStructure has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 2 (4 pts), loops 3, other 1 (nesting depth added 5). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 898, a function literal at line 883, a function literal at line 873, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · output-path.validateWindowsNativeComponent (cognitive 22) · ×1
  • output-path.validateWindowsNativeComponent (cognitive 22) archify/renderers/shared/output-path.mjs:129 — output-path.validateWindowsNativeComponent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 4 (8 pts), boolean chains 2, error handling 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.
D2 · Cognitive Complexity · preview.startPreview (cognitive 22) · ×1
  • preview.startPreview (cognitive 22) archify/bin/preview.mjs:348 — preview.startPreview has cognitive complexity 22 (threshold 15). Drivers by points: error handling 6 (10 pts), if/else 5, ternaries 4, boolean chains 3 (nesting depth added 4). Of this number, 21 points are the body's own statements and 1 belongs 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.
D2 · Cognitive Complexity · geometry.collectRouteRhythmIssues (cognitive 22) · ×1
  • geometry.collectRouteRhythmIssues (cognitive 22) archify/renderers/shared/geometry.mjs:1070 — geometry.collectRouteRhythmIssues has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 3 (8 pts), loops 2 (3 pts), boolean chains 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.
D2 · Cognitive Complexity · archify.deliveryTargetStateDiagnostic (cognitive 22) · ×1
  • archify.deliveryTargetStateDiagnostic (cognitive 22) archify/bin/archify.mjs:2543 — archify.deliveryTargetStateDiagnostic has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 10 (20 pts), boolean chains 2 (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.
D2 · Cognitive Complexity · check-render-output.subpathLabelClearance (cognitive 22) · ×1
  • check-render-output.subpathLabelClearance (cognitive 22) archify/scripts/check-render-output.mjs:643 — check-render-output.subpathLabelClearance has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 3 (6 pts), ternaries 2 (5 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.
D2 · Cognitive Complexity · check-render-output.collectUntransformedNodeRects (cognitive 22) · ×1
  • check-render-output.collectUntransformedNodeRects (cognitive 22) archify/scripts/check-render-output.mjs:777 — check-render-output.collectUntransformedNodeRects has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, ternaries 1 (2 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.
D2 · Cognitive Complexity · check-render-output.collectCompositionFrames (cognitive 22) · ×1
  • check-render-output.collectCompositionFrames (cognitive 22) archify/scripts/check-render-output.mjs:862 — check-render-output.collectCompositionFrames has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 2 (5 pts), boolean chains 3, loops 2 (3 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.
D2 · Cognitive Complexity · check-render-output.collectNonFiniteAttrs (cognitive 22) · ×1
  • check-render-output.collectNonFiniteAttrs (cognitive 22) archify/scripts/check-render-output.mjs:1403 — check-render-output.collectNonFiniteAttrs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (4 pts), boolean chains 3 (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.
D2 · Cognitive Complexity · check-update.retireActiveClaim (cognitive 22) · ×1
  • check-update.retireActiveClaim (cognitive 22) archify/scripts/check-update.mjs:931 — check-update.retireActiveClaim has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), error handling 3, boolean chains 2 (nesting depth added 7). Of this number, 19 points are the body's own statements and 3 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.
D2 · Cognitive Complexity · export.applyRouteSnapshot (cognitive 22) · ×1
  • export.applyRouteSnapshot (cognitive 22) REDACTED:66 — export.applyRouteSnapshot has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 8, loops 2 (nesting depth added 4). Of this number, 19 points are the body's own statements and 3 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.
D2 · Cognitive Complexity · (anonymous).computeReachability (cognitive 22) · ×1
  • (anonymous).computeReachability (cognitive 22) viewer/focus.js:72 — (anonymous).computeReachability has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (9 pts), loops 1, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 78, 94, 106, …). 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.
D2 · Cognitive Complexity · readSpec (cognitive 22) · ×1
  • readSpec (cognitive 22) archify/explainer/diagrams.mjs:354 — readSpec has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8, loops 2, error handling 1 (nesting depth added 3). Of this number, 20 points are the body's own statements and 2 belong to 3 function items 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.
D2 · Cognitive Complexity · (anonymous).select (cognitive 22) · ×1
  • (anonymous).select (cognitive 22) viewer/node-finder.js:113 — (anonymous).select has cognitive complexity 22 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 6 (8 pts), boolean chains 6 (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.
D2 · Cognitive Complexity · cli.throwAtomicOutputFailure (cognitive 21) · ×1
  • cli.throwAtomicOutputFailure (cognitive 21) archify/renderers/shared/cli.mjs:133 — cli.throwAtomicOutputFailure has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 9 (20 pts), boolean chains 1 (nesting depth added 11). 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.
D2 · Cognitive Complexity · workflow-compiler.createLegacyCapacityRepair.enforceLegacyColumnCapacity (cognitive 21) · ×1
  • workflow-compiler.createLegacyCapacityRepair.enforceLegacyColumnCapacity (cognitive 21) archify/renderers/workflow/workflow-compiler.mjs:1178 — workflow-compiler.createLegacyCapacityRepair.enforceLegacyColumnCapacity has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (4 pts), boolean chains 3, 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.
D2 · Cognitive Complexity · archify.assertOwnedDeliveryLock (cognitive 21) · ×1
  • archify.assertOwnedDeliveryLock (cognitive 21) archify/bin/archify.mjs:261 — archify.assertOwnedDeliveryLock has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 5 (6 pts), boolean chains 4, error handling 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.
D2 · Cognitive Complexity · grid.bandedLayout (cognitive 21) · ×1
  • grid.bandedLayout (cognitive 21) archify/renderers/erd/grid.mjs:61 — grid.bandedLayout has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (7 pts), loops 5 (6 pts) (nesting depth added 4). Of this number, 20 points are the body's own statements and 1 belongs to one function item 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.
D2 · Cognitive Complexity · check-render-output.subpathCorridors (cognitive 21) · ×1
  • check-render-output.subpathCorridors (cognitive 21) archify/scripts/check-render-output.mjs:621 — check-render-output.subpathCorridors has cognitive complexity 21 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (9 pts), boolean chains 2 (nesting depth added 12). 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.
D2 · Cognitive Complexity · update-contract.comparePrerelease (cognitive 21) · ×1
  • update-contract.comparePrerelease (cognitive 21) archify/scripts/update-contract.mjs:51 — update-contract.comparePrerelease has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 2 (5 pts), boolean chains 2, 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.
D2 · Cognitive Complexity · check-update.promoteOperationClaim (cognitive 21) · ×1
  • check-update.promoteOperationClaim (cognitive 21) archify/scripts/check-update.mjs:1012 — check-update.promoteOperationClaim has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (18 pts), error handling 1 (2 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.
D2 · Cognitive Complexity · (anonymous).shareCueBeatCopy (cognitive 21) · ×1
  • (anonymous).shareCueBeatCopy (cognitive 21) viewer/guided-views.js:527 — (anonymous).shareCueBeatCopy has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (9 pts), boolean chains 6, if/else 6 (nesting depth added 4). 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.
D2 · Cognitive Complexity · assignTracks (cognitive 21) · ×1
  • assignTracks (cognitive 21) archify/renderers/lifecycle/render-lifecycle.mjs:733 — assignTracks has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 7, loops 4 (7 pts), ternaries 4, if/else 2 (3 pts) (nesting depth added 4). Of this number, 12 points are the body's own statements and 9 belong to 13 function items 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.
D2 · Cognitive Complexity · setupAsk (cognitive 21) · ×1
  • setupAsk (cognitive 21) REDACTED:530 — setupAsk has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 11, boolean chains 7, if/else 3. Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 19 function items inside it that branch (a function literal at line 554, open, a function literal at line 578, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · (anonymous).exportSnapshot (cognitive 21) · ×1
  • (anonymous).exportSnapshot (cognitive 21) viewer/route-probe.js:57 — (anonymous).exportSnapshot has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (8 pts) (nesting depth added 3). Most of this is not in the body itself: 5 of the 21 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 71, 64, 81, …). 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.
D2 · Cognitive Complexity · (anonymous).planRelay (cognitive 21) · ×1
  • (anonymous).planRelay (cognitive 21) REDACTED:57 — (anonymous).planRelay has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, ternaries 2 (3 pts), loops 2 (nesting depth added 6). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 9 function items inside it that branch (relax, a function literal at line 73, a function literal at line 79, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · prepare.assertPreparedDependencies (cognitive 20) · ×1
  • prepare.assertPreparedDependencies (cognitive 20) archify/explainer/prepare.mjs:48 — prepare.assertPreparedDependencies has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 5, error handling 1 (2 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.
D2 · Cognitive Complexity · preview.startPreview.server (cognitive 20) · ×1
  • preview.startPreview.server (cognitive 20) archify/bin/preview.mjs:433 — preview.startPreview.server has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2, error handling 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.
D2 · Cognitive Complexity · visual-check.unlinkOwnedEntry (cognitive 20) · ×1
  • visual-check.unlinkOwnedEntry (cognitive 20) archify/bin/visual-check.mjs:416 — visual-check.unlinkOwnedEntry has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, ternaries 5 (7 pts), if/else 5 (6 pts) (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.
D2 · Cognitive Complexity · finalize.consolidateDiagnostics (cognitive 20) · ×1
  • finalize.consolidateDiagnostics (cognitive 20) archify/bin/finalize.mjs:389 — finalize.consolidateDiagnostics has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, ternaries 2 (4 pts), loops 1 (nesting depth added 6). Of this number, 14 points are the body's own statements and 6 belong to 3 function items 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.
D2 · Cognitive Complexity · route-quality.sharesOuterCorridor (cognitive 20) · ×1
  • route-quality.sharesOuterCorridor (cognitive 20) archify/renderers/shared/route-quality.mjs:544 — route-quality.sharesOuterCorridor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (6 pts), boolean chains 3 (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.
D2 · Cognitive Complexity · render-lifecycle.countCrossings (cognitive 20) · ×1
  • render-lifecycle.countCrossings (cognitive 20) archify/renderers/lifecycle/render-lifecycle.mjs:767 — render-lifecycle.countCrossings has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (9 pts), boolean chains 1 (nesting depth added 12). 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, 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.
D2 · Cognitive Complexity · check-update.inspectActiveClaim (cognitive 20) · ×1
  • check-update.inspectActiveClaim (cognitive 20) archify/scripts/check-update.mjs:851 — check-update.inspectActiveClaim has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, error handling 2 (nesting depth added 6). None of this is in the body itself: all 20 points belong to 3 function literals inside it that branch (lines 869, 853, 903). 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.
D2 · Cognitive Complexity · check-update.reserveOperation (cognitive 20) · ×1
  • check-update.reserveOperation (cognitive 20) archify/scripts/check-update.mjs:1075 — check-update.reserveOperation has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 3 (6 pts), loops 2 (3 pts) (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.
D2 · Cognitive Complexity · (anonymous).storyStep (cognitive 20) · ×1
  • (anonymous).storyStep (cognitive 20) viewer/guided-views.js:641 — (anonymous).storyStep has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, ternaries 8, if/else 3 (4 pts) (nesting depth added 1). Of this number, 13 points are the body's own statements and 7 belong to 4 function literals inside it that branch. 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.
D2 · Cognitive Complexity · (anonymous).syncViewFromHash (cognitive 20) · ×1
  • (anonymous).syncViewFromHash (cognitive 20) viewer/guided-views.js:1599 — (anonymous).syncViewFromHash has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, error handling 1 (nesting depth added 8). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 1611). 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.
D2 · Cognitive Complexity · (anonymous).clear (cognitive 20) · ×1
  • (anonymous).clear (cognitive 20) viewer/focus.js:1248 — (anonymous).clear has cognitive complexity 20 (threshold 15). Drivers by points: error handling 4 (9 pts), if/else 6, boolean chains 4, ternaries 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.
D2 · Cognitive Complexity · renderState (cognitive 20) · ×1
  • renderState (cognitive 20) archify/renderers/lifecycle/render-lifecycle.mjs:988 — renderState has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 13, boolean chains 4, if/else 2, other 1. 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.
D2 · Cognitive Complexity · ipv4Private (cognitive 20) · ×1
  • ipv4Private (cognitive 20) archify/renderers/shared/brand-marks.mjs:91 — ipv4Private has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 19, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · validateErGridPlacement (cognitive 20) · ×1
  • validateErGridPlacement (cognitive 20) archify/renderers/erd/grid.mjs:122 — validateErGridPlacement has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, loops 1, other 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.
D2 · Cognitive Complexity · validate.validateExplainer · ×1
  • validate.validateExplainer::text (cognitive 19) archify/explainer/validate.mjs:92 — validate.validateExplainer::text has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (5 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.
D2 · Cognitive Complexity · prepare.readPreparedBundle (cognitive 19) · ×1
  • prepare.readPreparedBundle (cognitive 19) archify/explainer/prepare.mjs:74 — prepare.readPreparedBundle has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 7, error handling 2. Of this number, 18 points are the body's own statements and 1 belongs to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · visual-check.regularFileEvidence (cognitive 19) · ×1
  • visual-check.regularFileEvidence (cognitive 19) archify/bin/visual-check.mjs:84 — visual-check.regularFileEvidence has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (17 pts), if/else 2 (nesting depth added 11). 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.
D2 · Cognitive Complexity · geometry.segmentRectIntersectionLength (cognitive 19) · ×1
  • geometry.segmentRectIntersectionLength (cognitive 19) archify/renderers/shared/geometry.mjs:101 — geometry.segmentRectIntersectionLength has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, 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.
D2 · Cognitive Complexity · geometry.createRouteCandidateIndex (cognitive 19) · ×1
  • geometry.createRouteCandidateIndex (cognitive 19) archify/renderers/shared/geometry.mjs:150 — geometry.createRouteCandidateIndex has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 5 (7 pts), boolean chains 3 (nesting depth added 6). None of this is in the body itself: all 19 points belong to 2 function literals inside it that branch (lines 154, 182). 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.
D2 · Cognitive Complexity · archify.quarantineRemoveOwnedDeliveryEntry (cognitive 19) · ×1
  • archify.quarantineRemoveOwnedDeliveryEntry (cognitive 19) archify/bin/archify.mjs:399 — archify.quarantineRemoveOwnedDeliveryEntry has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 4 (6 pts), boolean chains 3, error handling 1 (nesting depth added 4). 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.
D2 · Cognitive Complexity · grid.validateGridPlacement (cognitive 19) · ×1
  • grid.validateGridPlacement (cognitive 19) archify/renderers/architecture/grid.mjs:33 — grid.validateGridPlacement has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5, 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.
D2 · Cognitive Complexity · routing.createRouter (cognitive 19) · ×1
  • routing.createRouter (cognitive 19) archify/renderers/architecture/routing.mjs:75 — routing.createRouter has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (6 pts), ternaries 4 (5 pts), boolean chains 4, if/else 2 (4 pts) (nesting depth added 5). 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.
D2 · Cognitive Complexity · routing.createRouter.computePath (cognitive 19) · ×1
  • routing.createRouter.computePath (cognitive 19) archify/renderers/architecture/routing.mjs:959 — routing.createRouter.computePath has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 1, loops 1 (nesting depth added 8). Of this number, 14 points are the body's own statements and 5 belong to one function item 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.
D2 · Cognitive Complexity · svg-path-analysis.tokenize (cognitive 19) · ×1
  • svg-path-analysis.tokenize (cognitive 19) archify/renderers/shared/svg-path-analysis.mjs:13 — svg-path-analysis.tokenize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1, loops 1, ternaries 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.
D2 · Cognitive Complexity · (anonymous).relationshipHitRecords (cognitive 19) · ×1
  • (anonymous).relationshipHitRecords (cognitive 19) viewer/focus.js:424 — (anonymous).relationshipHitRecords has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, ternaries 3 (nesting depth added 3). None of this is in the body itself: all 19 points belong to 4 function literals inside it that branch (lines 430, 444, 475, …). 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.
D2 · Cognitive Complexity · createRouter.computePath (cognitive 19) · ×1
  • createRouter.computePath (cognitive 19) archify/renderers/architecture/routing.mjs:959 — createRouter.computePath has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 1, loops 1 (nesting depth added 8). Of this number, 14 points are the body's own statements and 5 belong to 3 function items 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.
D2 · Cognitive Complexity · (anonymous).render (cognitive 19) · ×1
  • (anonymous).render (cognitive 19) REDACTED:542 — (anonymous).render has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, ternaries 5 (7 pts), boolean chains 4 (nesting depth added 2). 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.
D2 · Cognitive Complexity · (anonymous).minimumReadableScale (cognitive 19) · ×1
  • (anonymous).minimumReadableScale (cognitive 19) viewer/reader-layout.js:86 — (anonymous).minimumReadableScale has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 6, ternaries 4 (6 pts) (nesting depth added 2). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 90). 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.
D2 · Cognitive Complexity · readContained (cognitive 19) · ×1
  • readContained (cognitive 19) archify/explainer/sources.mjs:130 — readContained has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, loops 2, error handling 1, ternaries 1 (nesting depth added 3). Of this number, 18 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.
D2 · Cognitive Complexity · scanHtml (cognitive 19) · ×1
  • scanHtml (cognitive 19) REDACTED:22 — scanHtml has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (7 pts), loops 3 (5 pts), ternaries 1 (3 pts), boolean chains 2, other 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.
D2 · Cognitive Complexity · inline.renderInline (cognitive 18) · ×1
  • inline.renderInline (cognitive 18) archify/explainer/inline.mjs:125 — inline.renderInline has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 128). 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.
D2 · Cognitive Complexity · repository-evidence.readBatchObjects (cognitive 18) · ×1
  • repository-evidence.readBatchObjects (cognitive 18) REDACTED:54 — repository-evidence.readBatchObjects has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 1, ternaries 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.
D2 · Cognitive Complexity · finalize.stageBindingDiagnostic (cognitive 18) · ×1
  • finalize.stageBindingDiagnostic (cognitive 18) archify/bin/finalize.mjs:267 — finalize.stageBindingDiagnostic has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, ternaries 1 (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.
D2 · Cognitive Complexity · archify.commandPatch (cognitive 18) · ×1
  • archify.commandPatch (cognitive 18) archify/bin/archify.mjs:5304 — archify.commandPatch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7, boolean chains 6, error handling 3 (4 pts), ternaries 1 (nesting depth added 1). 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.
D2 · Cognitive Complexity · archify.commandBrands (cognitive 18) · ×1
  • archify.commandBrands (cognitive 18) archify/bin/archify.mjs:6246 — archify.commandBrands has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 5 (6 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 5). Of this number, 16 points are the body's own statements and 2 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.
D2 · Cognitive Complexity · render.portableBundle (cognitive 18) · ×1
  • render.portableBundle (cognitive 18) archify/explainer/render.mjs:140 — render.portableBundle has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (10 pts), boolean chains 5, if/else 3 (nesting depth added 2). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 3 function items inside it that branch (local, subject, a function literal at line 154). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · routing.createRouter.routeConflictsWithResolved (cognitive 18) · ×1
  • routing.createRouter.routeConflictsWithResolved (cognitive 18) archify/renderers/architecture/routing.mjs:258 — routing.createRouter.routeConflictsWithResolved has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 3 (6 pts) (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.
D2 · Cognitive Complexity · finalize-delivery.html.setupAsk (cognitive 18) · ×1
  • finalize-delivery.html.setupAsk (cognitive 18) docs/cases/explainer/finalize-delivery.html:1809 — finalize-delivery.html.setupAsk has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8, boolean chains 7, if/else 3. Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 1833, a function literal at line 1857, open, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · first-rental.html.setupAsk (cognitive 18) · ×1
  • first-rental.html.setupAsk (cognitive 18) docs/cases/explainer/first-rental.html:1813 — first-rental.html.setupAsk has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8, boolean chains 7, if/else 3. Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 1837, a function literal at line 1861, open, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · p99-tail-latency.html.setupAsk (cognitive 18) · ×1
  • p99-tail-latency.html.setupAsk (cognitive 18) docs/cases/explainer/p99-tail-latency.html:1793 — p99-tail-latency.html.setupAsk has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8, boolean chains 7, if/else 3. Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 1817, a function literal at line 1841, open, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · tls-first-visit.html.setupAsk (cognitive 18) · ×1
  • tls-first-visit.html.setupAsk (cognitive 18) docs/cases/explainer/tls-first-visit.html:1841 — tls-first-visit.html.setupAsk has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8, boolean chains 7, if/else 3. Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 1865, a function literal at line 1889, open, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · generate-viewer.generateViewer (cognitive 18) · ×1
  • generate-viewer.generateViewer (cognitive 18) scripts/generate-viewer.mjs:43 — generate-viewer.generateViewer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, ternaries 1 (2 pts), 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.
D2 · Cognitive Complexity · (anonymous).renderRelationshipPulse (cognitive 18) · ×1
  • (anonymous).renderRelationshipPulse (cognitive 18) viewer/focus.js:645 — (anonymous).renderRelationshipPulse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 5 (nesting depth added 1). Of this number, 11 points are the body's own statements and 7 belong to 4 function items inside it that branch. 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.
D2 · Cognitive Complexity · createRouter.routeConflictsWithResolved (cognitive 18) · ×1
  • createRouter.routeConflictsWithResolved (cognitive 18) archify/renderers/architecture/routing.mjs:258 — createRouter.routeConflictsWithResolved has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 3 (6 pts) (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.
D2 · Cognitive Complexity · figureLayout (cognitive 18) · ×1
  • figureLayout (cognitive 18) REDACTED:470 — figureLayout has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, ternaries 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · placeFrameExits (cognitive 18) · ×1
  • placeFrameExits (cognitive 18) archify/renderers/lifecycle/render-lifecycle.mjs:495 — placeFrameExits has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, if/else 3 (6 pts), loops 2 (3 pts), other 2 (nesting depth added 4). Of this number, 15 points are the body's own statements and 3 belong to 9 function items 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.
D2 · Cognitive Complexity · owned-temp-directory.createOwnedTempDirectory (cognitive 17) · ×1
  • owned-temp-directory.createOwnedTempDirectory (cognitive 17) archify/renderers/shared/owned-temp-directory.mjs:29 — owned-temp-directory.createOwnedTempDirectory has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (3 pts), loops 3, boolean chains 1 (nesting depth added 6). Of this number, 13 points are the body's own statements and 4 belong to 2 function items 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.
D2 · Cognitive Complexity · atomic-output.verifyAtomicOutput (cognitive 17) · ×1
  • atomic-output.verifyAtomicOutput (cognitive 17) archify/renderers/shared/atomic-output.mjs:1553 — atomic-output.verifyAtomicOutput has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 5, ternaries 2 (4 pts) (nesting depth added 2). 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.
D2 · Cognitive Complexity · brand-marks.readLimited (cognitive 17) · ×1
  • brand-marks.readLimited (cognitive 17) archify/renderers/shared/brand-marks.mjs:250 — brand-marks.readLimited 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.
D2 · Cognitive Complexity · spatial-grid.createSpatialGrid.query (cognitive 17) · ×1
  • spatial-grid.createSpatialGrid.query (cognitive 17) archify/renderers/shared/spatial-grid.mjs:42 — spatial-grid.createSpatialGrid.query has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (7 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.
D2 · Cognitive Complexity · workflow-migration-geometry.mapExplicitCoordinates (cognitive 17) · ×1
  • workflow-migration-geometry.mapExplicitCoordinates (cognitive 17) archify/renderers/workflow/workflow-migration-geometry.mjs:124 — workflow-migration-geometry.mapExplicitCoordinates has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 8). Of this number, 16 points are the body's own statements and 1 belongs to one function item 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.
D2 · Cognitive Complexity · workflow-compiler.addVerifiedCrossingRepair (cognitive 17) · ×1
  • workflow-compiler.addVerifiedCrossingRepair (cognitive 17) archify/renderers/workflow/workflow-compiler.mjs:5850 — workflow-compiler.addVerifiedCrossingRepair has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 4). Of this number, 16 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.
D2 · Cognitive Complexity · archify.removeOwnedEmptyStagingDirectory (cognitive 17) · ×1
  • archify.removeOwnedEmptyStagingDirectory (cognitive 17) archify/bin/archify.mjs:924 — archify.removeOwnedEmptyStagingDirectory has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 4, boolean chains 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.
D2 · Cognitive Complexity · routing.createRouter.crossingCount (cognitive 17) · ×1
  • routing.createRouter.crossingCount (cognitive 17) archify/renderers/architecture/routing.mjs:931 — routing.createRouter.crossingCount has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (6 pts), boolean chains 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.
D2 · Cognitive Complexity · stage-clean-skill.preflightSourceEntry (cognitive 17) · ×1
  • stage-clean-skill.preflightSourceEntry (cognitive 17) scripts/stage-clean-skill.mjs:108 — stage-clean-skill.preflightSourceEntry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, error handling 1 (2 pts), 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.
D2 · Cognitive Complexity · generate-contributors-svg.fetchContributors (cognitive 17) · ×1
  • generate-contributors-svg.fetchContributors (cognitive 17) scripts/generate-contributors-svg.mjs:103 — generate-contributors-svg.fetchContributors has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). Of this number, 16 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.
D2 · Cognitive Complexity · canonicalReadableWorkflow (cognitive 17) · ×1
  • canonicalReadableWorkflow (cognitive 17) archify/renderers/workflow/workflow-compiler.mjs:707 — canonicalReadableWorkflow has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, if/else 3 (4 pts), ternaries 4, other 2, loops 1 (nesting depth added 1). Of this number, 12 points are the body's own statements and 5 belong to 4 function literals inside it that branch. 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.
D2 · Cognitive Complexity · (anonymous).renderShareCue (cognitive 17) · ×1
  • (anonymous).renderShareCue (cognitive 17) viewer/guided-views.js:558 — (anonymous).renderShareCue has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8, if/else 5, boolean chains 4. Of this number, 13 points are the body's own statements and 4 belong 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.
D2 · Cognitive Complexity · createRouter.crossingCount (cognitive 17) · ×1
  • createRouter.crossingCount (cognitive 17) archify/renderers/architecture/routing.mjs:931 — createRouter.crossingCount has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (6 pts), boolean chains 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.
D2 · Cognitive Complexity · runExport (cognitive 17) · ×1
  • runExport (cognitive 17) REDACTED:1208 — runExport has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (8 pts), if/else 4 (7 pts), boolean chains 1, error handling 1 (nesting depth added 4). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1236, 1220, 1226, …). 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.
D2 · Cognitive Complexity · renderMembers (cognitive 17) · ×1
  • renderMembers (cognitive 17) archify/renderers/class/render-class.mjs:898 — renderMembers has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 13 (14 pts), boolean chains 2, if/else 1 (nesting depth added 1). None of this is in the body itself: all 17 points belong to 3 function literals inside it that branch (lines 904, 926, 901). 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.
D2 · Cognitive Complexity · (anonymous) (cognitive 17) · ×1
  • (anonymous) (cognitive 17) viewer/viewer-chrome-layout.js:7 — (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 4). Of this number, 11 points are the body's own statements and 6 belong to 4 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.
D2 · Cognitive Complexity · textUnits (cognitive 17) · ×1
  • textUnits (cognitive 17) archify/renderers/shared/utils.mjs:239 — textUnits has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (5 pts), boolean chains 1, loops 1, other 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.
D2 · Cognitive Complexity · nodeLabelLayout (cognitive 17) · ×1
  • nodeLabelLayout (cognitive 17) archify/renderers/shared/text-fit.mjs:54 — nodeLabelLayout has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9 (10 pts), if/else 5 (6 pts), boolean chains 1 (nesting depth added 2). 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.
D2 · Cognitive Complexity · i18n.resolveCatalog (cognitive 16) · ×1
  • i18n.resolveCatalog (cognitive 16) archify/renderers/shared/i18n.mjs:157 — i18n.resolveCatalog has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 4, ternaries 4, loops 1 (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.
D2 · Cognitive Complexity · diagrams.rankedPlacement (cognitive 16) · ×1
  • diagrams.rankedPlacement (cognitive 16) archify/explainer/diagrams.mjs:80 — diagrams.rankedPlacement has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 5, loops 3, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (visit, a function literal at line 99, a function literal at line 88). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · atomic-output.captureRegularFileHandle (cognitive 16) · ×1
  • atomic-output.captureRegularFileHandle (cognitive 16) archify/renderers/shared/atomic-output.mjs:34 — atomic-output.captureRegularFileHandle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, ternaries 3 (4 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 2). 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.
D2 · Cognitive Complexity · preview.startPreview.commitCandidate (cognitive 16) · ×1
  • preview.startPreview.commitCandidate (cognitive 16) archify/bin/preview.mjs:638 — preview.startPreview.commitCandidate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, error handling 1, ternaries 1. 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.
D2 · Cognitive Complexity · geometry.normalizeRoutePoints (cognitive 16) · ×1
  • geometry.normalizeRoutePoints (cognitive 16) archify/renderers/shared/geometry.mjs:1351 — geometry.normalizeRoutePoints has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 3, loops 2 (3 pts), ternaries 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.
D2 · Cognitive Complexity · cli.writeDiagram (cognitive 16) · ×1
  • cli.writeDiagram (cognitive 16) archify/renderers/shared/cli.mjs:234 — cli.writeDiagram has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 1). 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.
D2 · Cognitive Complexity · archify.cleanupOwnedStagingDirectory (cognitive 16) · ×1
  • archify.cleanupOwnedStagingDirectory (cognitive 16) archify/bin/archify.mjs:809 — archify.cleanupOwnedStagingDirectory has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, error handling 2 (3 pts), loops 1 (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.
D2 · Cognitive Complexity · archify.extractCompareOptions (cognitive 16) · ×1
  • archify.extractCompareOptions (cognitive 16) archify/bin/archify.mjs:2825 — archify.extractCompareOptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 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.
D2 · Cognitive Complexity · architecture-delta.renderArchitectureDeltaHtml (cognitive 16) · ×1
  • architecture-delta.renderArchitectureDeltaHtml (cognitive 16) REDACTED:751 — architecture-delta.renderArchitectureDeltaHtml has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 11 (12 pts), boolean chains 4 (nesting depth added 1). 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, 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.
D2 · Cognitive Complexity · routing.createRouter.rowFanOutSides (cognitive 16) · ×1
  • routing.createRouter.rowFanOutSides (cognitive 16) archify/renderers/architecture/routing.mjs:701 — routing.createRouter.rowFanOutSides has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, ternaries 4 (5 pts), if/else 4 (nesting depth added 1). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 5 function items inside it that branch (verticalSides, a function literal at line 707, verticalSides::blocked, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · render-sequence.automaticCanvasWidth (cognitive 16) · ×1
  • render-sequence.automaticCanvasWidth (cognitive 16) archify/renderers/sequence/render-sequence.mjs:76 — render-sequence.automaticCanvasWidth has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, loops 1 (3 pts), ternaries 1 (nesting depth added 6). Of this number, 13 points are the body's own statements and 3 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.
D2 · Cognitive Complexity · render-waterfall.renderRow (cognitive 16) · ×1
  • render-waterfall.renderRow (cognitive 16) archify/renderers/waterfall/render-waterfall.mjs:317 — render-waterfall.renderRow has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 13 (15 pts), boolean chains 1 (nesting depth added 2). 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.
D2 · Cognitive Complexity · check-release-identity.checkIdentityTemplate (cognitive 16) · ×1
  • check-release-identity.checkIdentityTemplate (cognitive 16) scripts/check-release-identity.mjs:115 — check-release-identity.checkIdentityTemplate has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 5, ternaries 4 (5 pts), if/else 4, loops 2 (nesting depth added 1). Of this number, 11 points are the body's own statements and 5 belong to one function item 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.
D2 · Cognitive Complexity · suggestLabelObstacleFix (cognitive 16) · ×1
  • suggestLabelObstacleFix (cognitive 16) archify/renderers/shared/geometry.mjs:1973 — suggestLabelObstacleFix has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (9 pts), if/else 4, boolean chains 3 (nesting depth added 1). Of this number, 8 points are the body's own statements and 8 belong to 4 function items inside it that branch. 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.
D2 · Cognitive Complexity · (anonymous).renderPlayback (cognitive 16) · ×1
  • (anonymous).renderPlayback (cognitive 16) viewer/guided-views.js:1202 — (anonymous).renderPlayback has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 12 (13 pts), boolean chains 2, if/else 1 (nesting depth added 1). 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.
D2 · Cognitive Complexity · (anonymous).relationshipTokenKind (cognitive 16) · ×1
  • (anonymous).relationshipTokenKind (cognitive 16) viewer/focus.js:552 — (anonymous).relationshipTokenKind has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 4, ternaries 2. Of this number, 15 points are the body's own statements and 1 belongs to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · createRouter.rowFanOutSides (cognitive 16) · ×1
  • createRouter.rowFanOutSides (cognitive 16) archify/renderers/architecture/routing.mjs:701 — createRouter.rowFanOutSides has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, ternaries 5, if/else 4. Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 5 function items inside it that branch (verticalSides, a function literal at line 707, verticalSides::blocked, …). The named helpers are already separate functions; the literals' work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal's work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest.
D2 · Cognitive Complexity · (anonymous).zoom (cognitive 16) · ×1
  • (anonymous).zoom (cognitive 16) viewer/viewer-camera.js:289 — (anonymous).zoom has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, ternaries 5 (6 pts), if/else 4 (nesting depth added 1). 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.
D2 · Cognitive Complexity · (anonymous).reveal (cognitive 16) · ×1
  • (anonymous).reveal (cognitive 16) viewer/viewer-camera.js:490 — (anonymous).reveal has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (6 pts), if/else 5, boolean chains 4, error handling 1 (nesting depth added 2). 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.
D2 · Cognitive Complexity · (anonymous).syncLegend (cognitive 16) · ×1
  • (anonymous).syncLegend (cognitive 16) viewer/reader-layout.js:161 — (anonymous).syncLegend has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 6, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
P2 · Observability · No structured logging · ×1
  • No structured logging — No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.
R1 · Type Safety · Type Safety · ×1
  • Type Safety — 0 typed · 384 plain JS — the untyped files are REDACTED, archify/explainer/browser-check.mjs, archify/explainer/charts.mjs, REDACTED, archify/explainer/diagrams.mjs, archify/explainer/diff.mjs (+378 more).
R10 · Code Duplication · Duplication concentrated across 11 sibling directories (52 clone groups) · ×1
  • Duplication concentrated across 11 sibling directories (52 clone groups) archify/renderers/architecture/routing.mjs:226 — 52 duplicated blocks under archify/renderers/ have copies in at least two of the sibling directories architecture, class, dataflow, erd, lifecycle, sequence (+5 more sibling(s) not listed) — 41 of them are reported below, and 11 are counted here but not reported individually: those copies match on shape but no longer clear R10's bar for an individually reported row — either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 52 and which does not depend on how exactly each block's copies still match. That concentration is one structural fact, not 52 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 52 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on.
R10 · Code Duplication · Duplicated block (44 lines × 2 locations) · ×1
  • Duplicated block (44 lines × 2 locations) archify/bin/preview.mjs:222 — archify/bin/preview.mjs:222 · archify/renderers/shared/cli.mjs:164 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block with local edits (41 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (41 matched lines × 2 locations) archify/renderers/shared/geometry.mjs:1461 — archify/renderers/shared/geometry.mjs:1461 · archify/scripts/check-render-output.mjs:1325 — the two spans are one implementation copied and then locally edited — 597 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block with local edits (38 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (38 matched lines × 2 locations) archify/bin/visual-check.mjs:1467 — archify/bin/visual-check.mjs:1467 · scripts/build-readme-showcase.mjs:208 — the two spans are one implementation copied and then locally edited — 296 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (38 lines × 2 locations) · ×1
  • Duplicated block (38 lines × 2 locations) scripts/run-windows-path-tests.mjs:414 — scripts/run-windows-path-tests.mjs:414 · scripts/run-windows-path-tests.mjs:454 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (31 lines × 2 locations) · ×1
  • Duplicated block (31 lines × 2 locations) archify/bin/archify.mjs:3856 — archify/bin/archify.mjs:3856 · archify/bin/archify.mjs:3929 — 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.
R10 · Code Duplication · Duplicated block (27 lines × 2 locations) · ×1
  • Duplicated block (27 lines × 2 locations) archify/renderers/architecture/routing.mjs:226 — archify/renderers/architecture/routing.mjs:226 · archify/renderers/shared/route-quality.mjs:212 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block with local edits (26 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (26 matched lines × 2 locations) archify/bin/visual-check.mjs:1430 — archify/bin/visual-check.mjs:1430 · scripts/build-readme-showcase.mjs:184 — the two spans are one implementation copied and then locally edited — 245 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (25 lines × 2 locations) · ×1
  • Duplicated block (25 lines × 2 locations) archify/renderers/workflow/workflow-compiler.mjs:3057 — archify/renderers/workflow/workflow-compiler.mjs:3057 · archify/renderers/workflow/workflow-compiler.mjs:3083 — 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.
R10 · Code Duplication · Duplicated block (20 lines × 2 locations) · ×1
  • Duplicated block (20 lines × 2 locations) archify/bin/archify.mjs:3151 — archify/bin/archify.mjs:3151 · archify/bin/archify.mjs:3540 — 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.
R10 · Code Duplication · Duplicated block with local edits (20 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (20 matched lines × 2 locations) archify/explainer/diagrams.mjs:361 — archify/explainer/diagrams.mjs:361 · archify/explainer/sources.mjs:135 — the two spans are one implementation copied and then locally edited — 197 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (18 lines × 2 locations) · ×1
  • Duplicated block (18 lines × 2 locations) archify/bin/archify.mjs:3085 — archify/bin/archify.mjs:3085 · archify/bin/archify.mjs:3118 — 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.
R10 · Code Duplication · Duplicated block (16 lines × 4 locations) · ×1
  • Duplicated block (16 lines × 4 locations) archify/bin/archify.mjs:3751 — archify/bin/archify.mjs:3751 · archify/bin/archify.mjs:3779 · archify/bin/archify.mjs:3798 · archify/bin/archify.mjs:4203 — all 4 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R10 · Code Duplication · Duplicated block (16 lines × 2 locations) · ×1
  • Duplicated block (16 lines × 2 locations) archify/renderers/class/render-class.mjs:1072 — archify/renderers/class/render-class.mjs:1072 · archify/renderers/erd/render-erd.mjs:1565 — the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another.
R10 · Code Duplication · Duplicated block with local edits (16 matched lines × 2 locations) · ×1
  • Duplicated block with local edits (16 matched lines × 2 locations) archify/scripts/update-contract.mjs:92 — archify/scripts/update-contract.mjs:92 · archify/scripts/update-contract.mjs:140 — the two spans are one implementation copied and then locally edited — 89 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row's finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters — or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one.
R10 · Code Duplication · Duplicated block (14 lines × 3 locations) · ×1
  • Duplicated block (14 lines × 3 locations) archify/bin/archify.mjs:6832 — archify/bin/archify.mjs:6832 · archify/bin/archify.mjs:6868 · archify/bin/archify.mjs:6894 — all 3 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported.
R2 · Cyclomatic Complexity · Complex function build (cyclomatic 157, cognitive 378) · ×1
  • Complex function build (cyclomatic 157, cognitive 378) archify/renderers/dataflow/dataflow-compiler.mjs:63 — build has cyclomatic complexity 157 and cognitive complexity 378; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function createReadableLayout (cyclomatic 138, cognitive 195) · ×1
  • Complex function createReadableLayout (cyclomatic 138, cognitive 195) archify/renderers/workflow/workflow-compiler.mjs:233 — createReadableLayout has cyclomatic complexity 138 and cognitive complexity 195; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function validateArchitecture (cyclomatic 120, cognitive 220) · ×1
  • Complex function validateArchitecture (cyclomatic 120, cognitive 220) archify/renderers/architecture/render-architecture.mjs:487 — validateArchitecture has cyclomatic complexity 120 and cognitive complexity 220; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function commandDeliver (cyclomatic 120, cognitive 167) · ×1
  • Complex function commandDeliver (cyclomatic 120, cognitive 167) archify/bin/archify.mjs:4400 — commandDeliver has cyclomatic complexity 120 and cognitive complexity 167; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function routeVia (cyclomatic 117, cognitive 169) · ×1
  • Complex function routeVia (cyclomatic 117, cognitive 169) archify/renderers/architecture/routing.mjs:396 — routeVia has cyclomatic complexity 117 and cognitive complexity 169; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function checkExplainerHtml (cyclomatic 115, cognitive 134) · ×1
  • Complex function checkExplainerHtml (cyclomatic 115, cognitive 134) REDACTED:53 — checkExplainerHtml has cyclomatic complexity 115 and cognitive complexity 134; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function directive (cyclomatic 108, cognitive 149) · ×1
  • Complex function directive (cyclomatic 108, cognitive 149) archify/explainer/parse.mjs:153 — directive has cyclomatic complexity 108 and cognitive complexity 149; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function validateWorkflow (cyclomatic 91, cognitive 141) · ×1
  • Complex function validateWorkflow (cyclomatic 91, cognitive 141) archify/renderers/workflow/workflow-compiler.mjs:2693 — validateWorkflow has cyclomatic complexity 91 and cognitive complexity 141; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function commandCompare (cyclomatic 91, cognitive 112) · ×1
  • Complex function commandCompare (cyclomatic 91, cognitive 112) archify/bin/archify.mjs:3675 — commandCompare has cyclomatic complexity 91 and cognitive complexity 112; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function validateExplainer (cyclomatic 89, cognitive 200) · ×1
  • Complex function validateExplainer (cyclomatic 89, cognitive 200) archify/explainer/validate.mjs:17 — validateExplainer has cyclomatic complexity 89 and cognitive complexity 200; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function parseExplainer (cyclomatic 87, cognitive 216) · ×1
  • Complex function parseExplainer (cyclomatic 87, cognitive 216) archify/explainer/parse.mjs:18 — parseExplainer has cyclomatic complexity 87 and cognitive complexity 216; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function commitDeliveryPair (cyclomatic 79, cognitive 174) · ×1
  • Complex function commitDeliveryPair (cyclomatic 79, cognitive 174) archify/bin/archify.mjs:3236 — commitDeliveryPair has cyclomatic complexity 79 and cognitive complexity 174; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function runFinalize (cyclomatic 79, cognitive 121) · ×1
  • Complex function runFinalize (cyclomatic 79, cognitive 121) archify/bin/finalize.mjs:722 — runFinalize has cyclomatic complexity 79 and cognitive complexity 121; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function compileExplainerDiagram (cyclomatic 78, cognitive 190) · ×1
  • Complex function compileExplainerDiagram (cyclomatic 78, cognitive 190) archify/explainer/diagrams.mjs:108 — compileExplainerDiagram has cyclomatic complexity 78 and cognitive complexity 190; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function planRoutes (cyclomatic 75, cognitive 147) · ×1
  • Complex function planRoutes (cyclomatic 75, cognitive 147) archify/renderers/architecture/routing.mjs:1011 — planRoutes has cyclomatic complexity 75 and cognitive complexity 147; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function resolveExplainerSources (cyclomatic 75, cognitive 131) · ×1
  • Complex function resolveExplainerSources (cyclomatic 75, cognitive 131) archify/explainer/sources.mjs:171 — resolveExplainerSources has cyclomatic complexity 75 and cognitive complexity 131; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function validateReadablePinnedGeometry (cyclomatic 74, cognitive 152) · ×1
  • Complex function validateReadablePinnedGeometry (cyclomatic 74, cognitive 152) archify/renderers/workflow/workflow-compiler.mjs:2378 — validateReadablePinnedGeometry has cyclomatic complexity 74 and cognitive complexity 152; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function runBrowserEvidence (cyclomatic 73, cognitive 99) · ×1
  • Complex function runBrowserEvidence (cyclomatic 73, cognitive 99) archify/bin/visual-check.mjs:2444 — runBrowserEvidence has cyclomatic complexity 73 and cognitive complexity 99; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function copySiteAssets (cyclomatic 72, cognitive 128) · ×1
  • Complex function copySiteAssets (cyclomatic 72, cognitive 128) scripts/copy-site-assets.mjs:113 — copySiteAssets has cyclomatic complexity 72 and cognitive complexity 128; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R2 · Cyclomatic Complexity · Complex function commitComparePair (cyclomatic 71, cognitive 148) · ×1
  • Complex function commitComparePair (cyclomatic 71, cognitive 148) archify/bin/archify.mjs:2899 — commitComparePair has cyclomatic complexity 71 and cognitive complexity 148; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes.
R3 · Large Files · archify/renderers/workflow/workflow-compiler.mjs · ×1
  • archify/renderers/workflow/workflow-compiler.mjs: 5651 lines of code archify/renderers/workflow/workflow-compiler.mjs:1 — archify/renderers/workflow/workflow-compiler.mjs has 5651 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/shared/geometry.mjs · ×1
  • archify/renderers/shared/geometry.mjs: 1944 lines of code archify/renderers/shared/geometry.mjs:1 — archify/renderers/shared/geometry.mjs has 1944 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/shared/atomic-output.mjs · ×1
  • archify/renderers/shared/atomic-output.mjs: 1919 lines of code archify/renderers/shared/atomic-output.mjs:1 — archify/renderers/shared/atomic-output.mjs has 1919 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · viewer/guided-views.js · ×1
  • viewer/guided-views.js: 1637 lines of code viewer/guided-views.js:1 — viewer/guided-views.js has 1637 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · viewer/focus.js · ×1
  • viewer/focus.js: 1590 lines of code viewer/focus.js:1 — viewer/focus.js has 1590 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/dataflow/dataflow-compiler.mjs · ×1
  • archify/renderers/dataflow/dataflow-compiler.mjs: 1549 lines of code archify/renderers/dataflow/dataflow-compiler.mjs:1 — archify/renderers/dataflow/dataflow-compiler.mjs has 1549 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/erd/render-erd.mjs · ×1
  • archify/renderers/erd/render-erd.mjs: 1490 lines of code archify/renderers/erd/render-erd.mjs:1 — archify/renderers/erd/render-erd.mjs has 1490 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/architecture/routing.mjs · ×1
  • archify/renderers/architecture/routing.mjs: 1416 lines of code archify/renderers/architecture/routing.mjs:1 — archify/renderers/architecture/routing.mjs has 1416 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 1314 lines of code REDACTED:1 — REDACTED has 1314 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 1218 lines of code REDACTED:1 — REDACTED has 1218 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/architecture/render-architecture.mjs · ×1
  • archify/renderers/architecture/render-architecture.mjs: 1145 lines of code archify/renderers/architecture/render-architecture.mjs:1 — archify/renderers/architecture/render-architecture.mjs has 1145 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/lifecycle/render-lifecycle.mjs · ×1
  • archify/renderers/lifecycle/render-lifecycle.mjs: 1072 lines of code archify/renderers/lifecycle/render-lifecycle.mjs:1 — archify/renderers/lifecycle/render-lifecycle.mjs has 1072 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/sequence/render-sequence.mjs · ×1
  • archify/renderers/sequence/render-sequence.mjs: 1031 lines of code archify/renderers/sequence/render-sequence.mjs:1 — archify/renderers/sequence/render-sequence.mjs has 1031 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/class/render-class.mjs · ×1
  • archify/renderers/class/render-class.mjs: 1018 lines of code archify/renderers/class/render-class.mjs:1 — archify/renderers/class/render-class.mjs has 1018 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · viewer/route-probe.js · ×1
  • viewer/route-probe.js: 1017 lines of code viewer/route-probe.js:1 — viewer/route-probe.js has 1017 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/shared/path-semantics.mjs · ×1
  • archify/renderers/shared/path-semantics.mjs: 937 lines of code archify/renderers/shared/path-semantics.mjs:1 — archify/renderers/shared/path-semantics.mjs has 937 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 708 lines of code REDACTED:1 — REDACTED has 708 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/shared/brand-marks.mjs · ×1
  • archify/renderers/shared/brand-marks.mjs: 668 lines of code archify/renderers/shared/brand-marks.mjs:1 — archify/renderers/shared/brand-marks.mjs has 668 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · REDACTED · ×1
  • REDACTED: 666 lines of code REDACTED:1 — REDACTED has 666 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · viewer/semantic-lens.js · ×1
  • viewer/semantic-lens.js: 657 lines of code viewer/semantic-lens.js:1 — viewer/semantic-lens.js has 657 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/shared/route-quality.mjs · ×1
  • archify/renderers/shared/route-quality.mjs: 636 lines of code archify/renderers/shared/route-quality.mjs:1 — archify/renderers/shared/route-quality.mjs has 636 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · viewer/semantic-radar.js · ×1
  • viewer/semantic-radar.js: 622 lines of code viewer/semantic-radar.js:1 — viewer/semantic-radar.js has 622 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · viewer/viewer-camera.js · ×1
  • viewer/viewer-camera.js: 609 lines of code viewer/viewer-camera.js:1 — viewer/viewer-camera.js has 609 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/timeline/render-timeline.mjs · ×1
  • archify/renderers/timeline/render-timeline.mjs: 538 lines of code archify/renderers/timeline/render-timeline.mjs:1 — archify/renderers/timeline/render-timeline.mjs has 538 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/tree/render-tree.mjs · ×1
  • archify/renderers/tree/render-tree.mjs: 537 lines of code archify/renderers/tree/render-tree.mjs:1 — archify/renderers/tree/render-tree.mjs has 537 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/explainer/diagrams.mjs · ×1
  • archify/explainer/diagrams.mjs: 498 lines of code archify/explainer/diagrams.mjs:1 — archify/explainer/diagrams.mjs has 498 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · viewer/reader-layout.js · ×1
  • viewer/reader-layout.js: 476 lines of code viewer/reader-layout.js:1 — viewer/reader-layout.js has 476 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/recipes/scenarios.mjs · ×1
  • archify/recipes/scenarios.mjs: 444 lines of code archify/recipes/scenarios.mjs:1 — archify/recipes/scenarios.mjs has 444 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/shared/output-path.mjs · ×1
  • archify/renderers/shared/output-path.mjs: 416 lines of code archify/renderers/shared/output-path.mjs:1 — archify/renderers/shared/output-path.mjs has 416 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R3 · Large Files · archify/renderers/shared/cli.mjs · ×1
  • archify/renderers/shared/cli.mjs: 407 lines of code archify/renderers/shared/cli.mjs:1 — archify/renderers/shared/cli.mjs has 407 significant lines (blank lines excluded), over the 400-line bar, and contains logic — a file this long is usually several responsibilities in one module.
R6 · Tooling · No lint script · ×1
  • No lint script — test ✓ · lint ✗ · typecheck ✓ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
R7 · Dead Code · Dead file (~1731 LoC) · ×1
  • Dead file (~1731 LoC) viewer/guided-views.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~1611 LoC) · ×1
  • Dead file (~1611 LoC) viewer/focus.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~1420 LoC) · ×1
  • Dead file (~1420 LoC) REDACTED — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~1020 LoC) · ×1
  • Dead file (~1020 LoC) viewer/route-probe.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~713 LoC) · ×1
  • Dead file (~713 LoC) REDACTED — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~663 LoC) · ×1
  • Dead file (~663 LoC) viewer/semantic-lens.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~626 LoC) · ×1
  • Dead file (~626 LoC) viewer/semantic-radar.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~613 LoC) · ×1
  • Dead file (~613 LoC) viewer/viewer-camera.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~480 LoC) · ×1
  • Dead file (~480 LoC) viewer/reader-layout.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~352 LoC) · ×1
  • Dead file (~352 LoC) viewer/viewer-chrome-layout.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~265 LoC) · ×1
  • Dead file (~265 LoC) viewer/node-finder.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~214 LoC) · ×1
  • Dead file (~214 LoC) viewer/intent-trace.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~174 LoC) · ×1
  • Dead file (~174 LoC) viewer/export-cleanup.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~137 LoC) · ×1
  • Dead file (~137 LoC) viewer/node-outline.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~129 LoC) · ×1
  • Dead file (~129 LoC) viewer/tree-branches.js — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
R7 · Dead Code · Dead file (~42 LoC) · ×1
  • Dead file (~42 LoC) archify/renderers/explainer/render-explainer.mjs — no import path from any entry point (115 application, 30 tooling, 262 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make
S1 · Web-Security Posture · Weak hash algorithm · ×1
  • Weak hash algorithm tools/contributor-cards/github.mjs:18 — MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything — a signature, an integrity or tamper check, a credential, or any value an attacker can influence — that is a real weakness: use SHA-256+ (`createHash("sha256")`) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead — a non-cryptographic hash such as xxhash or murmurhash says it in code — since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call.
Minor — 50 finding(s)
X10 · Duplicated predicate · Duplicated predicate · ×25
  • Duplicated predicate viewer/focus.js:777 — `!Archify.view || typeof Archify.view.reveal !== 'function'` appears character-identically in 2 files — viewer/focus.js, viewer/guided-views.js. 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 viewer/focus.js:1485 — `!button || (event.relatedTarget && button.contains(event.relatedTarget))` appears character-identically in 2 files — viewer/focus.js, viewer/guided-views.js. 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 archify/renderers/architecture/render-architecture.mjs:177 — `!components.has(conn.from) || !components.has(conn.to)` appears character-identically in 2 files — archify/renderers/architecture/render-architecture.mjs, archify/renderers/architecture/routing.mjs. 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 archify/migrations/workflow-v2.mjs:117 — `!inputWorkflow || typeof inputWorkflow !== 'object' || Array.isArray(inputWorkflow)` appears character-identically in 2 files — archify/migrations/workflow-v2.mjs, archify/renderers/workflow/workflow-compiler.mjs. 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 archify/renderers/shared/cli.mjs:198 — `!metadata.isFile() || metadata.ino === 0n` appears character-identically in 3 files — archify/renderers/shared/cli.mjs, scripts/copy-site-assets.mjs, scripts/stage-clean-skill.mjs. 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 archify/scripts/check-update.mjs:397 — `!metadata.isFile() || metadata.isSymbolicLink()` appears character-identically in 2 files — archify/scripts/check-update.mjs, scripts/stage-clean-skill.mjs. 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 archify/explainer/diagrams.mjs:356 — `!part || part === '.' || part === '..' || part.toLowerCase() === '.git'` appears character-identically in 2 files — archify/explainer/diagrams.mjs, archify/explainer/sources.mjs. 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 archify/renderers/shared/geometry.mjs:401 — `!relation || !endpointIds?.has(relation.from) || !endpointIds?.has(relation.to)` appears character-identically in 2 files — archify/renderers/shared/geometry.mjs, archify/renderers/shared/route-quality.mjs. 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 archify/renderers/class/render-class.mjs:800 — `!relationship.label || !renderableRelationship(relationship)` appears character-identically in 2 files — archify/renderers/class/render-class.mjs, archify/renderers/erd/render-erd.mjs. 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 viewer/semantic-radar.js:53 — `!viewBox || viewBox.width <= 0 || viewBox.height <= 0` appears character-identically in 2 files — viewer/semantic-radar.js, viewer/viewer-camera.js. 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 viewer/node-finder.js:186 — `Archify.exportMenu && Archify.exportMenu.isOpen()` appears character-identically in 2 files — viewer/node-finder.js, viewer/semantic-lens.js. 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 viewer/route-probe.js:804 — `Archify.finder && Archify.finder.isOpen()` appears character-identically in 2 files — viewer/route-probe.js, viewer/semantic-lens.js. 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 viewer/route-probe.js:797 — `Archify.focus && typeof Archify.focus.active === 'function'` appears character-identically in 2 files — viewer/route-probe.js, viewer/viewer-camera.js. 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 viewer/route-probe.js:801 — `Archify.focus && typeof Archify.focus.clear === 'function'` appears character-identically in 2 files — viewer/route-probe.js, viewer/semantic-lens.js. 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 viewer/node-outline.js:39 — `Archify.focus && typeof Archify.focus.set === 'function'` appears character-identically in 2 files — viewer/node-outline.js, viewer/semantic-radar.js. 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 viewer/focus.js:1260 — `Archify.intentTrace && typeof Archify.intentTrace.clear === 'function'` appears character-identically in 4 files — viewer/focus.js, viewer/node-outline.js, viewer/route-probe.js, viewer/semantic-lens.js. 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 viewer/guided-views.js:459 — `Archify.motionGovernor && Archify.motionGovernor.capable` appears character-identically in 2 files — viewer/guided-views.js, viewer/route-probe.js. 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 viewer/focus.js:1070 — `Archify.radar && typeof Archify.radar.sync === 'function'` appears character-identically in 2 files — viewer/focus.js, viewer/viewer-camera.js. 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 viewer/node-outline.js:134 — `Archify.readerLayout && typeof Archify.readerLayout.schedule === 'function'` appears character-identically in 2 files — viewer/node-outline.js, viewer/viewer-chrome-layout.js. 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 viewer/focus.js:1319 — `Archify.semanticLens && Archify.semanticLens.active()` appears character-identically in 2 files — viewer/focus.js, viewer/route-probe.js. 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:1145 — `Archify.semanticLens && Archify.semanticLens.isOpen()` appears character-identically in 2 files — REDACTED, viewer/node-finder.js. 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:1144 — `Archify.semanticLens && typeof Archify.semanticLens.clearPreview === 'function'` appears character-identically in 5 files — REDACTED, viewer/focus.js, viewer/guided-views.js, viewer/node-finder.js. 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 viewer/focus.js:1466 — `Archify.view && typeof Archify.view.reveal === 'function'` appears character-identically in 5 files — viewer/focus.js, viewer/guided-views.js, viewer/node-finder.js, viewer/route-probe.js. 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 archify/renderers/workflow/workflow-compiler.mjs:140 — `Array.isArray(edge.via) || Array.isArray(edge.labelAt) || edge.channelX !== undefined || edge.channelY !== undefined` appears character-identically in 2 files — archify/renderers/workflow/workflow-compiler.mjs, archify/renderers/workflow/workflow-migration-geometry.mjs. 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 archify/renderers/shared/legend.mjs:18 — `Array.isArray(point) && point.length === 2 && point.every(Number.isFinite)` appears character-identically in 2 files — archify/renderers/shared/legend.mjs, archify/renderers/workflow/workflow-compiler.mjs. 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.
X6 · Hand-rolled structured-format parsing · Hand-rolled JSON/XML parsing via regex · ×5
  • Hand-rolled JSON/XML parsing via regex website/scripts/check-cloudflare-output.mjs:56 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex REDACTED:22 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex REDACTED:27 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex website/scripts/publish-seo.mjs:79 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
  • Hand-rolled JSON/XML parsing via regex scripts/package-smoke.mjs:320 — A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand — malformed or differently-typed content (e.g. `"amount": "5"` as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too.
X7 · Silent fallback defaults · Silent fallback default in catch · ×4
  • Silent fallback default in catch archify/renderers/workflow/workflow-compiler.mjs:1121 — `createLegacyCapacityRepair.readableMigrationProvidesCapacity` swallows every exception into `return false` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch archify/bin/archify.mjs:1881 — `specificationLocaleDiagnostics` swallows every exception into `return []` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch REDACTED:612 — `show` (in `setupSourceCards`) swallows every exception into `return ''` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing.
  • Silent fallback default in catch scripts/stage-clean-skill.mjs:159 — `sourcePathUnchanged` swallows every exception into `return false` — a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 handler or in the docstring, and the row stops firing.
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 2 significant file(s) lose their only recent owner: archify/renderers/shared/route-quality.mjs, archify/renderers/shared/desktop-readability.mjs. Pair on, review, or document these before any departure.
D16 · Bus Factor · Further sole-owners (lower concentration) · ×1
  • Further sole-owners (lower concentration) — 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (4 single-owned of 81 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 81 of the 94 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)) — spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: archify/renderers/shared/path-semantics.mjs, archify/renderers/shared/spatial-grid.mjs.
D26 · Project Cohesion · Projects may be oversized for their cohesion · ×1
  • Projects may be oversized for their cohesion — 2 of 4 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is `archify` (42171 LoC, 79 module-visible types across 17 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.
D28 · Secrets (history) · Rotate the exposed credentials · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · ADRs not easily discoverable · ×1
  • ADRs not easily discoverable — 1 ADR-shaped document(s) detected by content — `.agents/skills/simplify-codebase/references/decision-records.md`. They are not under a conventional ADR folder (docs/adr/) and are not named NNNN-title.md, and this check found them by their decision signature rather than by where they live — so a reader who does not already know these paths has no route to them. Detected by content signature only: records kept outside the repository, or written without a Status/Decision/Consequences shape, are not visible to this check and are not counted here.
M3 · Folder & project structure · No src/ separation · ×1
  • No src/ separation — Production code isn't grouped under a src/ folder — it's spread across several top-level directories, so there's no one place that says 'this is the product'.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST REDACTED:6 — No static application security testing detected. For this repository's stack, add CodeQL's javascript-typescript pack, `semgrep --config=p/typescript`, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 44652 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation package.json:19 — `package.json` declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.
R7 · Dead Code · Unused module-local declaration 'SEMANTIC_COLLECTIONS' · ×1
  • Unused module-local declaration 'SEMANTIC_COLLECTIONS' archify/renderers/shared/cli.mjs:305 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
R7 · Dead Code · Unused module-local declaration 'pointSegmentDistance' · ×1
  • Unused module-local declaration 'pointSegmentDistance' archify/renderers/shared/geometry.mjs:1388 — This top-level declaration is not exported and its name occurs nowhere else in its module — not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it.
X5 · Nullable reference types · Strict null checking is not enabled everywhere the repository type-checks · ×1
  • Strict null checking is not enabled everywhere the repository type-checks — 0/1 of this repository's type-checking configuration(s) turn on strict null checking (`"strict": true`, or `"strictNullChecks": true`). A configuration that states neither is counted as OFF, because off is tsc's own default; a solution-style one whose `"files"` is empty and whose `"references"` point at other projects is in neither number, because it checks no source itself. Where it is off, `string` admits `null` and `undefined`: passing a value that is null compiles silently and throws on the first property access.
Minor — 113 finding(s)
D10 · Test Quality · Skipped (documented) · ×109
  • Skipped (documented): automatic architectures preserve primary reading size when fitting the full page would shrink text test/architecture-reading-size-browser.test.mjs:11 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): a narrow tall architecture fits the first screen without enlarging the other titles test/architecture-reading-size-browser.test.mjs:89 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): a first-screen fit never pushes relationship labels below the 6px floor test/architecture-reading-size-browser.test.mjs:140 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): a process killed after the recovery link preserves both public bytes and recovery evidence test/atomic-output-recovery.test.mjs:233 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): a parent swap during recovery linking removes only the positively identified new alias test/atomic-output-recovery.test.mjs:341 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): clean staging entry detection accepts a physical alias and fails closed when identity is unknown test/clean-skill-staging.test.mjs:53 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): clean staging detects a destination-ancestor swap before writing through the opened descriptor test/clean-skill-staging.test.mjs:444 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): clean staging rejects a mode manifest that aliases the staged tree through a symlinked ancestor test/clean-skill-staging.test.mjs:512 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): clean staging rejects a symlink in a tracked file ancestor before copying bytes test/clean-skill-staging.test.mjs:548 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): clean staging rejects tracked symlinks before reading through them test/clean-skill-staging.test.mjs:578 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): clean staging snapshots unstaged tracked bytes before a source ancestor can be swapped test/clean-skill-staging.test.mjs:605 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): clean staging rejects a source ancestor swapped during preflight traversal test/clean-skill-staging.test.mjs:654 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): render and deliver reject HTML symlinks resolving to non-HTML files test/cli-output-types.test.mjs:58 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): compare reports target alias before CLI extension for ${aliasKind} test/cli-output-types.test.mjs:92 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): compare reports target alias before CLI extension for a derived receipt symlink test/cli-output-types.test.mjs:137 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): compare rejects a JSON receipt symlink to a non-JSON target test/cli-output-types.test.mjs:185 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): compare accepts artifact and receipt parents that are aliases of the same directory test/cli-output-types.test.mjs:203 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): delivery provenance accepts an artifact reached through a directory alias test/cli-output-types.test.mjs:269 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): cli: lock release failure does not invoke the requested opener test/cli.test.mjs:2937 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): cli: portable delivery lock: a symlink lock is invalid even when it targets the input test/cli.test.mjs:3479 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): cli: a legacy lock beside a symlinked artifact target remains a migration barrier test/cli.test.mjs:3571 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): cli: an active delivery fences old binaries at both lexical and physical artifact paths test/cli.test.mjs:3622 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): cli: a legacy-fence acquisition failure cleans every lock created by the new attempt test/cli.test.mjs:3699 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): cli: a dangling delivery sidecar is invalid rather than absent test/cli.test.mjs:4157 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • Skipped (documented): cli: provenance writes cannot follow the former predictable temporary symlink test/cli.test.mjs:4260 — Skipped with a documented reason — a deferral, not lazy debt: skipped at run time by a this.skip()/t.skip() call
  • + 84 more in this group — see findings.md.
D12 · Dependency Hygiene · Outdated (npm) · ×4
  • Outdated (npm): @astrojs/react — @astrojs/react is pinned at 6.0.6; registry.npmjs.org publishes 7.1.2 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): astro — astro is pinned at 7.3.3; registry.npmjs.org publishes 7.4.4 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): react — react is pinned at 19.3.0; registry.npmjs.org publishes 19.3.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.
  • Outdated (npm): react-dom — react-dom is pinned at 19.3.0; registry.npmjs.org publishes 19.3.1 as the latest release. Upgrading is a judgement call — read that package's changelog for what changed between the two — but a direct production dependency several releases behind is where security and compatibility debt accumulates silently.

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.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-285b6ad31b4d403b8fa94ae7b2e004f4/history.json --exit-code 0 --source .2artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-285b6ad31b4d403b8fa94ae7b2e004f4/tree.json --exit-code 0 --source .1artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt --exclude benchmarks/ordinary-model-floor/prompts --exclude docs/gallery/artifacts .12artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update2artifacts/raw/trivy-fs.json
D31 · IaC & Container Securitytrivy—trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.0—
D32 · Data Compliance (PII/GDPR)semgrep—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. semgrep could not parse 5 file(s) — `.agents/skills/archify-tuning/scripts/lib.mjs`, `archify/explainer/browser-check.mjs`, `REDACTED`, `archify/renderers/shared/utils.mjs`, `archify/scripts/check-render-output.mjs` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciestrivy—trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0artifacts/raw/trivy-fs.json

Run 01a1887f-5f21-7376-9e9b-792d639f7309 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

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.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md