Refine scripting accepted and visibility semantics#181
Conversation
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## dev #181 +/- ##
==========================================
- Coverage 81.67% 81.62% -0.06%
==========================================
Files 739 741 +2
Lines 46991 47055 +64
Branches 6234 6230 -4
==========================================
+ Hits 38382 38410 +28
- Misses 5918 5954 +36
Partials 2691 2691
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 9 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
I don't think the authority-activation dependency has actually been removed yet. The services were changed to accept To match the design goal here, I think the activation dependency/calls need to be removed from these paths entirely, or the default graph needs to stop wiring the port into them. |
|
This page is rendered without a scope-based remount key from I think |
|
The new save-observation polling treats the first transient query error as a hard save failure.
I think this should handle transient observation failures the same way promotion polling does: retry within the observation window, and only fail after the retry budget is exhausted. |
|
Addressed the three scripting review comments; the latest pushed commit is
Validation run after rebasing onto the latest branch state:
Earlier in the same fix cycle I also ran:
|
What changed
accepted for dispatchand removed write-side coupling to read-model catch-upWhy
The write path had drifted back toward read/write coupling in two places: backend services previously waited for query-visible catalog state, and UI flows treated an accepted promotion decision as if the catalog had already switched. That made
accepted,applied, andquery-visiblesemantically blurry and introduced a user-visible race.Impact
Root cause
The catalog promote/save paths were mixing write-side dispatch acknowledgement with read-side materialization state. Save observation also used cross-service wall-clock ordering, which is not a reliable authority signal.
Validation
dotnet test test/Aevatar.GAgentService.Integration.Tests/Aevatar.GAgentService.Integration.Tests.csproj --filter ScopeScriptApplicationServicesTests --nologobash tools/ci/test_stability_guards.shpnpm tsc --noEmitinapps/aevatar-console-webpnpm jest src/modules/studio/scripts/ScriptsWorkbenchPage.test.tsx --runInBandinapps/aevatar-console-webnpm run buildintools/Aevatar.Tools.Cli/FrontendIssues