Skip to content

refactor(orgloop): canonical route refs and runtime split - #2

Open
adactum wants to merge 5 commits into
pmcc/cr-69ed5d5b71781c4451f4e45efrom
pmcc/cr-69edeb625a0338621c44c8d2
Open

adactum wants to merge 5 commits into
pmcc/cr-69ed5d5b71781c4451f4e45efrom
pmcc/cr-69edeb625a0338621c44c8d2

Conversation

@adactum

@adactum adactum commented Apr 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • I introduced a canonical RouteRef { module, name } identity across the SDK and runtime so route-backed reads, logs, metrics, and audit records no longer collide on bare route names. This fixes the silent cross-module aggregation path when two modules define the same route name.
  • I split event processing and runtime control wiring out of Runtime, and moved route stats into a module-scoped store so the ownership boundary is explicit instead of being hidden in one large runtime object.
  • I updated plugin registration, init scaffolding, and docs so connectors, transforms, and loggers declare kind, description, and onboarding metadata consistently.

Changes

  • packages/sdk: added RouteRef helpers, removed EventFilter.route, and expanded registration shapes for connectors, transforms, and loggers.
  • packages/core: added event-processor, route-stats-store, handler-bundle, and runtime-control-bundle; refactored runtime.ts, logging, audit, history, metrics, and route dispatch to use route identities.
  • packages/cli: added route resolution for orgloop logs --route, centralized plugin/scaffold catalogs, and updated init, start, status, and test command wiring.
  • connectors/, transforms/, and loggers/: added required registration metadata and scaffold fragments for first-party packages.
  • docs-site/, README.md, and CHANGELOG.md: documented the new route identity model, CLI route resolution, registration requirements, and breaking log/metric shape changes.

Testing

  • pnpm typecheck
  • pnpm lint
  • pnpm build
  • pnpm test

Operational Documentation

@adactum
adactum changed the base branch from main to pmcc/cr-69ed5d5b71781c4451f4e45e May 1, 2026 02:04
@adactum
adactum force-pushed the pmcc/cr-69ed5d5b71781c4451f4e45e branch from 34ef2e7 to 53cc1cd Compare May 4, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant