Repository navigation
Description
Current scope — 2026-11-22
Completed on merged main 284b14a: #89/#93 baselines, #90/#94 presets, #91/#95 bounded semantic evaluation and #92/#96 verified Linux performance. Post-merge CI, security and docs passed. Published archunit remains 1.0.0; these additions are unreleased 1.1 development. No release is authorized here.
Historical comparison scope
Capability audit as of 2026-10-25. Our reference is merged main 1cc0eca (development version 0.0.2), not the still-published archunit 0.0.1 gem. The closest direct comparison is published ArchSpec 1.1.0, source commit 1d321d3585a86672e65b2488681393f9d52656a9, not its newer master branch.
This is a prioritized planning issue, not authorization to implement every competitor feature or publish a release. Separate delivery issues should carry acceptance criteria and a design choice before implementation.
Historical differentiators and gaps (2026-10-25)
- Shared capabilities: static analysis without booting an application; dependency boundaries, layer/component direction, cycles, naming, and rule rationale.
- Our strengths: native RSpec/Minitest fluent assertions; explicit require/require_relative/autoload/load dependency analysis including safely known local strings; quantitative metrics/custom thresholds; graph and Mermaid/DOT/D2/CSV/JSON/HTML exports; PlantUML conformance. ArchSpec's published rule surface has no equivalent built-in quantitative metrics/diagram-report suite.
- ArchSpec advantages: native named-method-call restrictions and method/signature protocols; namespace/constant/descendant component selectors; first-class public/private component APIs; architecture presets; CLI init/check/explain and focused-path reporting; TODO baselines for gradual adoption.
- Some gaps are expressible manually with our existing file/layer rules or custom predicates. That is not equivalent to a supported first-class semantic API, but it is also not absence of all boundary testing.
- ArchSpec master has newer reflection/stale-TODO functionality not present in the pinned 1.1.0 source. Do not present development-only features as shipped 1.1.0 parity requirements.
- Neither tool is a complete Ruby interpreter. Selected inherited/alias-member probes did not produce our direct API-to-db violation in either tool; they are not evidence that all semantic forms are handled by one competitor.
Proposed order (maintainer decision required)
- First resolve the parse-failure and
||=false-clean findings, and tighten coverage-report scope. Keep these separate from feature work. - Refresh
.github/PRE_RELEASE_CHECKLIST.md: it still describes merged PRs and closed issues as pending and describes the now-implemented canary as future work. - Prepare a reviewed stable-release contract after correctness checks: choose/bump version, update locked local gem, date the changelog, align install snippets, run strict release metadata checks, obtain separate publish approval, then verify the published gem in a clean project. Current
--releasecheck intentionally fails on the undated changelog and old README install pin. - Deliver CLI execution and structured diagnostics: CLI milestone: init/check/explain with structured diagnostics #72/Add CLI init/check/explain with structured diagnostics #73 and Expose unresolved and ambiguous analysis counters in CLI diagnostics #82/Report cache-aware analysis uncertainty (#82, after #87) #88 are merged (unreleased 1.1). RSpec/Minitest remain supported. Focused-path semantic tracing is not claimed.
- Add explicit violation baselines with stale-debt detection #89 — Design and deliver a violation baseline with stable fingerprints and stale-entry detection for gradual adoption. Distinguish deliberate accepted debt from ignoring entire files/imports.
- Evaluate semantic rule and selector backend boundaries #91 — Evaluate the demand and semantic backend for first-class method-call restrictions/protocol checks and richer selectors. Preserve an explicit analysis-mode compatibility contract; do not add regex heuristics advertised as semantic call resolution.
- Compose layered, hexagonal and Rails architecture presets #90 — Add a small family-consistent preset layer (e.g. Rails/layered/hexagonal) by composing existing rules before duplicating core assertion logic.
- Add representative Linux architecture performance study #92 — Repeat fair performance checks on Linux and representative real Rails/monorepo shapes, permitted as well as forbidden policies, more densities, startup/memory measures, and file changes. Do not optimize to a synthetic leaderboard before correctness.
Initial performance evidence (not a global speed claim)
Same Windows x64 machine, Ruby 4.0.6, Prism 1.9.0, ArchSpec 1.1.0 / RubyDEX 0.4.0; seven alternating trials per tool. Our expanded mode is used. Generated projects contain paired API/db files with explicit imports and fully qualified constant uses. Each tool must return exactly 100 or 500 forbidden-dependency diagnostics in every trial.
| Source files | Our graph rebuild + check | ArchSpec rebuild + check | Our graph-reuse check | ArchSpec graph-reuse evaluation |
|---|---|---|---|---|
| 200 | 630.621 ms | 1140.581 ms | 15.968 ms | 6.001 ms |
| 1000 | 3018.874 ms | 5269.964 ms | 44.539 ms | 41.388 ms |
Medians; libraries/definitions preloaded and fixture creation excluded. OS file caches were not flushed. Cold means analyzer graph rebuilt, not fresh-process/uncached-disk startup. Warm ArchSpec uses explicit reuse of the returned graph through its public evaluator, not a claimed persistent CLI cache. The analyzers do different additional work, and these are small synthetic sources, so this does not establish an overall performance winner or equal semantic coverage.
Authoritative feature references: ArchSpec 1.1.0 README, 1.1.0 DSL, our API.
Related audit findings
- Parse-failure diagnostics: Extraction: surface parse failures instead of silently passing malformed source #63
- Constant ||= definitions: Constant analysis: index ||= declarations and qualified constant writes #64
- Coverage measurement scope: QA: enforce coverage thresholds on library source rather than aggregate tooling #65
Delivery update — 2026-10-27
The first three readiness items are complete: #68-70 and #71 merged; archunit 1.0.0 is published and its registry checksum, tag, and clean-project acceptance checks were verified. Evidence: #71 (comment) . Dependabot #67 is now merged after refreshing against 1.0.0 and passing fresh CI. Its missing configured dependencies label was also created.
The next bounded delivery milestone is #72: init/check/explain CLI with text/versioned JSON diagnostics and installed-package tests. Implementation is in progress on a separate unreleased 1.1.0 branch. Deeper semantic explanations/focused-path reports, baselines, method/protocol semantics, presets, and representative Rails performance studies remain separate work; this roadmap stays open.
Current status — 2026-11-22
Re-audited merged main e06b57e. PRs #85–88 are merged and issues #77–82 closed. Published 1.0.0 remains distinct from unreleased 1.1 development. Historical 2026-10-25 comparison numbers above are not current benchmarks. CLI execution and cache-aware uncertainty diagnostics are delivered; the initial capability-gap list above predates them. Remaining delivery: #89 explicit baselines, #90 composed presets, #91 bounded semantic/selector evaluation, #92 representative Linux performance evidence. User authorized working down these scopes; no publication is authorized. Do not infer full semantic method/receiver resolution or focused-path tracing from the completed CLI milestone.
Closure — 2026-11-22
All original scoped checklist items and delivery issues are complete and merged. PRs #93–96 merged; post-merge main CI/security/documentation passed. Semantic evaluation produced an explicit decision and 14 probes, not a full method/protocol/receiver API. Full runtime semantics and focused-path tracing are not claimed; future product work can be separately scoped. Close this roadmap as completed, not as a claim of feature parity or zero remaining bugs.
Activity
TristanKruse commentedon Oct 26, 2026
Implementation update: the immediate audit fixes are ready for review as three independent, green PRs based on main:
Their combined local integration passed 614 examples, zero failures, library-only coverage 98.48% line / 91.51% branch, clean lint, documentation, public API smoke checks, fresh security scanning, and all pinned canaries. Eight native symlink checks are skipped on this Windows account; Linux CI exercises them.
The user confirmed a target of 1.0.0 after these correctness/QA fixes are merged and validated. Do not treat the optional broader competitor-parity roadmap as a prerequisite for the initial stable release. Version metadata, dated changelog/install instructions, the stale release checklist, a documented stable contract, strict release checks, and separate publish approval still need to be completed. Nothing has been merged or published by this implementation update; the development version remains 0.0.2.
TristanKruse commentedon Oct 27, 2026
Follow-up delivery: Dependabot #67 merged after refresh and green CI; the post-merge main CI/security/docs also passed. The initial CLI milestone #72 is implemented in #73 with all checks green, including native Windows regression coverage. It is ready for review/merge, not published. The first three release-readiness items are complete. Baselines, deeper semantic tracing/focused paths, method/protocol checks, presets, and representative Rails performance studies remain separate follow-ups; this roadmap remains open.
TristanKruse commentedon Nov 20, 2026
50 additional Ruby repositories: audit completed (2026-11-20)
Primary analyzer: published archunit 1.0.0, Ruby 4.0.6, Prism 1.9.0, Windows x64. The gem archive SHA256 was verified against RubyGems. Minimized findings were also rechecked on merged main 7e9e623; CLI usability used that merged but unreleased 1.1.0 code.
Focused issues
Expanded primary cases recorded 57525 unresolved and 6388 ambiguous constant-reference observations. These include external symbols and documented lookup limits, not proven missed internal edges or a coverage percentage. Self-prefixed import forms and inherited/unqualified lookup also remain bounded-model concerns; the minimal probes and existing #66 roadmap retain these observations rather than treating them as crashes.
Scope and reproducibility
Production-only sparse views: lib/app/config/src Ruby files, top-level Ruby files and project markers; no test/spec/fixture checkout. ROM and RubyGems also include their declared nested production lib roots. Default analyzer exclusions still apply, including vendor. Native-extension gems contribute Ruby facade code only. This is not an upstream architecture-quality or security judgment.
Policies used for controls were deliberately permissive or deliberately forbade one existing edge. Source files were read by an independent literal-import visitor before timing; cold means a new analyzer graph with parser loaded, not a cold process or cold OS disk cache. Three concurrent audit workers. Mermaid generation/encoding was checked, not browser rendering.
Recommend resolving the two confirmed false-clean bugs first. Other rows are distinct enhancement/usability deliveries, not a claim that documented dynamic Ruby behavior was already supported. No library patch, merge, release, scheduled workflow or announcement was made by this audit.
TristanKruse commentedon Nov 22, 2026
Remaining roadmap items delivered for review — 2026-11-22
Re-audited against main after #85–88. The CLI/check/structured-diagnostics item was already done;
the remaining four items were still useful and are now delivered in focused, green PRs:
one-to-one matching, stale-debt failures, strict JSON and write/error safeguards. CLI-only first
delivery; unsupported/custom/empty failures cannot be silently recorded.
root/pattern overrides, overlap/empty/parse safeguards and CLI/framework integration.
and exact published comparator evidence. Not a shipped semantic method/protocol API. Keep
Prism and existing analysis-mode compatibility; any future full semantic API is separately
designed, not inferred from syntax spelling or invented demand data.
Linux workflow: eight oracle-checked shared-policy cases, repeated alternating rebuild/reuse,
source edits, fresh startup/memory, 14 semantic probes and pinned read-only Discourse profiling.
Evidence: https://github.com/dragonsec-ai/ArchUnitRuby/actions/runs/45031677628 .
Integrated local validation: 892 examples, zero failures, 10 Windows symlink skips;
98.68% line / 92.10% branch coverage. All four PRs have green CI; #96 is ready, not draft.
Review/merge order: #93 → #94 → #95 → #96. No automatic merge or release was performed. Keep this
parent open until those deliveries are reviewed/merged; then the original scoped checklist can
close. Full Ruby runtime semantics and focused-path tracing are not claimed by these milestones.