Skip to content

🐝 Epic: Port Drupal 11 Core to TypeScript + Rust/WASM (multi-agent swarm) #4

Description

@ruvnet

🐝 Epic: Port Drupal 11 Core to TypeScript + Rust/WASM

Tracking issue for the multi-agent swarm port of Drupal core. Coordinated by
ruflo-swarm:coordinator, tested TDD-London (tdd-london-swarm), complex algos in
Rust→WASM. Architecture: ADR-0014…0018 (docs/adr/).

Ground truth

  • Source mapped in drupal-rvf/ (RVF semantic DB of Drupal 11: 16,151 files, 1.78M LOC, 87 modules).
  • Monorepo: port/ (npm workspaces packages/*, Rust workspace crates/*).
  • Rule (ADR-0017): each agent owns ONE packages/<name>/ or crates/<name>/; never edits shared root manifests.
  • Definition of done per task: failing-first tests (Vitest / cargo test) → impl → green → reviewer sign-off → progress comment here.

Conventions

  • TS package: @drupaljs/<name> (see port/README.md template).
  • Rust crate: drupaljs-<name>, crate-type=["cdylib","rlib"], wasm-bindgen.
  • Comment format per task: ✅/🚧 @drupaljs/<name> — <what landed> — tests: N pass — coverage: X%.

Phase 1 — Kernel (TS packages)

  • 1. @drupaljs/contracts — shared interfaces/types
  • 2. @drupaljs/di — service container + ContainerBuilder
  • 3. @drupaljs/event-dispatcher
  • 4. @drupaljs/hook — module hook system
  • 5. @drupaljs/plugin — plugin manager, discovery, factory
  • 6. @drupaljs/typed-data
  • 7. @drupaljs/config — config factory, storage, overrides
  • 8. @drupaljs/cache — backends + cache tags/contexts
  • 9. @drupaljs/routing — route provider, url generator
  • 10. @drupaljs/http-kernel — request/response, middleware, controller resolver
  • 11. @drupaljs/render — render arrays, renderer, bubbleable metadata
  • 12. @drupaljs/theme — theme negotiation + template engine
  • 13. @drupaljs/entity — entity type, storage, query
  • 14. @drupaljs/database — connection, query builder, schema
  • 15. @drupaljs/util — Xss/Html/NestedArray/UrlHelper/Tags/Bytes/SortArray
  • 16. @drupaljs/datetime
  • 17. @drupaljs/validation — constraints
  • 18. @drupaljs/serialization
  • 19. @drupaljs/state-keyvalue
  • 20. @drupaljs/lock
  • 21. @drupaljs/queue
  • 22. @drupaljs/cron
  • 23. @drupaljs/file-system — stream wrappers
  • 24. @drupaljs/logger
  • 25. @drupaljs/mail
  • 26. @drupaljs/session
  • 27. @drupaljs/access — access manager
  • 28. @drupaljs/form — Form API
  • 29. @drupaljs/ajax
  • 30. @drupaljs/menu — link tree, local tasks/actions
  • 31. @drupaljs/breadcrumb
  • 32. @drupaljs/pager
  • 33. @drupaljs/batch
  • 34. @drupaljs/language
  • 35. @drupaljs/string-translation

Phase 1 — Rust/WASM crates (complex algos, ADR-0015)

  • 36. drupaljs-graph — topological sort + SCC (dependency resolution)
  • 37. drupaljs-diff — Myers diff (config/text)
  • 38. drupaljs-xss-html — HTML tokenizer/filter automaton
  • 39. drupaljs-transliteration — transliteration tables
  • 40. drupaljs-cache-checksum — cache-tag checksums
  • 41. drupaljs-route-matcher — compiled route regex matcher
  • 42. drupaljs-password-hash — phpass-compatible hashing
  • 43. drupaljs-search-tokenizer — tokenizer/stemmer
  • 44. drupaljs-uuid — UUID v4
  • 45. drupaljs-crypt — hmac, base64, constant-time compare

Phase 2 — Foundational services / fields

  • 46. @drupaljs/field — field types/storage/formatters/widgets
  • 47. @drupaljs/field-ui
  • 48. @drupaljs/text field type
  • 49. @drupaljs/options field type
  • 50. @drupaljs/link field type
  • 51. @drupaljs/datetime-field
  • 52. @drupaljs/path-alias
  • 53. @drupaljs/content-translation
  • 54. @drupaljs/locale
  • 55. @drupaljs/editor + @drupaljs/filter

Phase 3 — Modules

  • 56. @drupaljs/module-system
  • 57. @drupaljs/module-user
  • 58. @drupaljs/module-node
  • 59. @drupaljs/module-taxonomy
  • 60. @drupaljs/module-comment
  • 61. @drupaljs/module-menu_link_content
  • 62. @drupaljs/module-menu_ui
  • 63. @drupaljs/module-block
  • 64. @drupaljs/module-block_content
  • 65. @drupaljs/module-file
  • 66. @drupaljs/module-image
  • 67. @drupaljs/module-media
  • 68. @drupaljs/module-media_library
  • 69. @drupaljs/module-path
  • 70. @drupaljs/module-search
  • 71. @drupaljs/module-ckeditor5
  • 72. @drupaljs/module-content_moderation
  • 73. @drupaljs/module-workflows
  • 74. @drupaljs/module-workspaces
  • 75. @drupaljs/module-layout_builder
  • 76. @drupaljs/module-layout_discovery
  • 77. @drupaljs/module-views (split: query, display, plugins, UI)
  • 78. @drupaljs/module-views_ui
  • 79. @drupaljs/module-jsonapi
  • 80. @drupaljs/module-rest
  • 81. @drupaljs/module-contact
  • 82. @drupaljs/module-contextual
  • 83. @drupaljs/module-toolbar
  • 84. @drupaljs/module-big_pipe
  • 85. @drupaljs/module-dynamic_page_cache
  • 86. @drupaljs/module-page_cache
  • 87. @drupaljs/module-breakpoint
  • 88. @drupaljs/module-responsive_image
  • 89. @drupaljs/module-migrate
  • 90. @drupaljs/module-migrate_drupal
  • 91. @drupaljs/module-update
  • 92. @drupaljs/module-dblog
  • 93. @drupaljs/module-syslog
  • 94. @drupaljs/module-shortcut
  • 95. @drupaljs/module-book
  • 96. @drupaljs/module-history
  • 97. @drupaljs/module-tour
  • 98. @drupaljs/module-help
  • 99. @drupaljs/theme-engine + @drupaljs/theme-olivero/claro/stark
  • 100. CI/CD: GitHub Actions (tsc + vitest + cargo test + wasm-pack), coverage gate, integration harness

Swarm log

Agents append progress below as comments. Coordinator maintains the checklist above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions