Skip to content

Roadmap: prioritized release readiness and ArchSpec capability gaps #66

Closed

Description

@TristanKruse

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)

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

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

  1. TristanKruse commented on Oct 26, 2026

    @TristanKruse
    CollaboratorAuthor

    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.

  2. TristanKruse commented on Oct 27, 2026

    @TristanKruse
    CollaboratorAuthor

    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.

  3. TristanKruse commented on Nov 20, 2026

    @TristanKruse
    CollaboratorAuthor

    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.

    • 50 distinct pinned repositories; 9453 acquired Ruby files, 9361 discovered under the default source policy.
    • 100 primary cases (both dependency modes): 96 completed; Devise and Redmine correctly failed closed on ERB generator templates with .rb names. Four retries in separate copied views excluding exactly ten identified templates completed, with original checkouts kept pristine.
    • 2,831 independently checked simple literal import relationships per mode, zero missed in that bounded oracle. This is not a full Ruby semantic oracle.
    • 92/92 eligible deliberately forbidden-edge controls behaved correctly; no invariant failures, crashes or timeouts. Warm cache reuse and JSON/Mermaid generation passed in all 96 successful primary cases.
    • Basic metrics completed for 48 initial views and the two explicit template-exclusion views. Fifty merged-CLI checks returned schema-v1 JSON: 48 successful permissive controls and two expected exit-2 parse errors.
    • All 50 pinned checkouts were verified pristine afterward. No target application, dependency installation, Gemfile/gemspec, hook, tests, or target configuration was executed.

    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.

    Repository Full immutable source pin Initial discovered Ruby files
    bblimke/webmock a9a6fc077382255c7119341ee33cc57f298348dd 63
    coorasse/cancancan 021b13cf762ba95784bf00a467c0ce86120fdf12 37
    carrierwaveuploader/carrierwave 2584177ff4a8daef2faa9420353ded651ef901b6 46
    chatwoot/chatwoot 5d1afdf3b2f32b88e21899d62fcde12f2c0c33d7 1114
    diaspora/diaspora d382e334db882976a42e39a90e00cfe2619c3398 429
    discourse/discourse 2de9c9be4f89e392fe500dd27f928d6b1184bf09 2510
    dry-rb/dry-container 860e06ff8cb8ecd8fba94700b698576ac68e49e3 14
    dry-rb/dry-monads 11b865d437c535e8e8d954b2861e8679c9b28df5 29
    dry-rb/dry-system aea44cb74f4ec7d8c6388570df8d5f7b8d9fd3cb 42
    dry-rb/dry-types 07a307cd73e7c122160e27a39f024b0115cf5902 55
    dry-rb/dry-validation a48d037a0a1dbdd7f40d35aa4d3ba5798213c709 22
    eventmachine/eventmachine e4f55083c576148e97c50cfdb6714b32eff224f6 42
    faker-ruby/faker 577447c403c67c92200bca045390c3dfdb6d643b 253
    forem/forem 18f7eaa0e62efba3b5b7d7e44330ed9c1141286a 1533
    fxn/zeitwerk 7e6dc10fcfc0ec174bec2c7a6ec19594d1b4579e 25
    heartcombo/devise 05811fb8366edd08874111d0f6fb44543e1c91ef 77
    httprb/http 6c8f28a6e235167bb162b07dc043db0635264c3b 62
    jeremyevans/roda 57c6ffb10263d04891788acf319bd087372eb39b 167
    jeremyevans/sequel d7d91188712383382bca802fda814fa40b601375 311
    jnunemaker/httparty 78312edc892a222ff44b0bd8950264ddf3450c80 24
    lostisland/faraday 18e51beaa98677a33466801a86e6199fb820c83f 35
    mikel/mail d645d7b5b7d03218b0bc8971ef041c991a63f5f7 111
    minitest/minitest 80ec90bbd9ccf1485da8959f743bf0b55eb2b19d 25
    octokit/octokit.rb 6d02a4b506aaf6a6b6b1a04e065dd23c697275ce 85
    redis-rb/redis-client 773ff6284cd78167034ddce405baf3364ffedd5c 17
    redis/redis-rb 9d3a2625ccbb0cdc55d305be07e18c1df1317874 48
    redmine/redmine 56c1c7265afc247cbee0b0dceaeabeb5eae64a75 378
    rest-client/rest-client 2c72a2e77e2e87d25ff38feba0cf048d51bd5eca 16
    hanakai-rb/rom 800d1633a74287b53f24d7f66caf03297ba0f852 155
    ruby-concurrency/concurrent-ruby 19d4ecea55e1dea8d509ff72accd7c1b76f195f8 178
    ruby-grape/grape 552459af2a7da4121dd786899e1e818eb69fad6c 179
    ruby-i18n/i18n a0a416e570fd4998993bde1b5533d0a038bebaf7 34
    ruby/bigdecimal a88473a6e95fdc8223011f19513edb217c4b7256 8
    ruby/csv afbee5e3548d38914706ae0de8a6cf421ba43187 11
    ruby/date 141c2d993ecd8f556a77cd70debc6950f010229b 1
    ruby/irb a21604dda83c7d0adbbb8b504fecb48f8c7d2056 73
    ruby/json 5a75bc26e8a5af06586708915a5935db2b614852 6
    ruby/psych 8aafb2f6ff103a28d05c2649cd559058f9bc7caa 38
    ruby/rdoc eed74ca91bc7dc59cf362c0388d417afa1f34264 110
    ruby/rexml 0fee9c5bfab3ae311ed5958ec760db19a2c95eeb 49
    ruby/rubygems a7de0cda3142f789a3c84ad85602df13cf3cc931 343
    Shopify/liquid 15a2e32d186f713643fe86202da8da44a7bb058b 65
    shrinerb/shrine a34db6a47dc32c1653be288fedd6149a3c087e68 62
    simplecov-ruby/simplecov 7f6ec1ab81021434172278b02b0fd2007811161c 200
    socketry/async d8f59c95c3083558aa543101ee5fdcc006054f4d 40
    socketry/async-http b7029c722791711588354016891297df21264272 55
    sparklemotion/nokogiri 72c329b627969782ac1b2b5f910b1e3b3f007c73 77
    thoughtbot/factory_bot cf9b56fbdd0d8a54bc5ff54ec701feb9c4559083 53
    varvet/pundit ea9e31a2d7993f038ee52b94ccc9c7411637ba89 16
    vcr/vcr 8dd8b7fe9e9990bbb7ecc40d95662eadb4c25ed8 38

    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.

  4. TristanKruse commented on Nov 22, 2026

    @TristanKruse
    CollaboratorAuthor

    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:

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions