Skip to content

Refactor/2026 03 22 architecture audit remediation#73

Closed
loning wants to merge 2 commits intodevfrom
refactor/2026-03-22_architecture-audit-remediation
Closed

Refactor/2026 03 22 architecture audit remediation#73
loning wants to merge 2 commits intodevfrom
refactor/2026-03-22_architecture-audit-remediation

Conversation

@loning
Copy link
Contributor

@loning loning commented Mar 22, 2026

This pull request introduces several important improvements and cleanup tasks across the codebase, primarily focused on architecture audit remediation, configuration consistency, dependency boundary enforcement, and naming unification. The most significant changes include the addition of a comprehensive architecture audit scorecard, unification of API default ports and documentation, improved host configuration flexibility, CQRS cleanup token propagation, scripting dependency boundary tightening, and workflow export naming alignment.

Architecture audit and documentation:

  • Added a detailed architecture audit scorecard and remediation report, documenting the results of the recent refactor, scoring, and all major fixes across modules in docs/audit-scorecard/2026-03-22-aevatar-architecture-audit-scorecard.md.

Configuration and documentation consistency:

  • Updated all documentation examples and SDK usage to use the unified default port 5100 instead of 5000 for API endpoints, ensuring consistency for users and developers. [1] [2] [3] [4] [5] [6] [7] [8]

Host configuration improvements:

  • Enhanced AevatarDefaultHostOptions and WebApplicationBuilderExtensions to allow specifying a DefaultListenUrls property, which sets the default listen URLs for the web host unless explicitly overridden in configuration. [1] [2] [3] [4] [5]

CQRS and scripting boundary cleanup:

  • Propagated shutdown/cleanup tokens through CQRS command dispatch and interaction services, replacing hardcoded CancellationToken.None usages with tokens from shutdown signals to improve graceful shutdown and cleanup behavior. [1] [2] [3] [4] [5]
  • Tightened dependency boundaries in Aevatar.GAgentService.Application by referencing Aevatar.Scripting.Abstractions instead of the internal Aevatar.Scripting.Core, enforcing proper abstraction layering.

Workflow export naming alignment:

  • Renamed the workflow export/report model from WorkflowRunReport to WorkflowRunExportDocument throughout the codebase and documentation, improving naming clarity and consistency. [1] [2] [3]

loning added 2 commits March 22, 2026 18:23
- Changed API endpoint URLs from `http://localhost:5000` to `http://localhost:5100` across multiple documentation files and code references.
- Updated the `README.md`, SDK documentation, and various guides to reflect the new default base URL.
- Introduced new interfaces for script catalog commands and queries, enhancing the scripting capabilities.
- Refactored workflow reporting classes to use the new `WorkflowRunExportDocument` instead of the deprecated `WorkflowRunReport`.
- Improved command interaction services to ensure proper handling of cancellation tokens during cleanup operations.
- Introduced a new property `DefaultListenUrls` in `AevatarDefaultHostOptions` to specify default listening addresses.
- Implemented logic in `WebApplicationBuilderExtensions` to apply default listen URLs when no explicit configuration is provided.
- Updated the `Program.cs` to set the default listen URL to `http://localhost:5100`.
- Enhanced tests to verify that default listen URLs are applied correctly and do not override explicit configurations.
- Updated documentation to reflect the new default listening behavior.
@loning loning closed this Mar 22, 2026
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