Skip to content

Make Studio team command ACK responses honest#765

Open
louis4li wants to merge 4 commits into
devfrom
design/issue-547-studio-team-command-ack
Open

Make Studio team command ACK responses honest#765
louis4li wants to merge 4 commits into
devfrom
design/issue-547-studio-team-command-ack

Conversation

@louis4li
Copy link
Copy Markdown
Contributor

Summary

  • Change Studio team update/archive endpoints to return 202 Accepted command receipts instead of post-state snapshots.
  • Stop re-reading eventually consistent team read models after dispatch and document the ACK semantics in ADR-0024.
  • Update console web clients/tests to treat team command responses as accepted receipts and reject unexpected ACK stages.

Test plan

  • npm --prefix /Users/liyingpei/Desktop/Code/aevatar/apps/aevatar-console-web run tsc
  • npm --prefix /Users/liyingpei/Desktop/Code/aevatar/apps/aevatar-console-web run test -- src/shared/studio/api.test.ts src/pages/teams/detail.test.tsx --runInBand

Closes #547

🤖 Generated with Claude Code

louis4li and others added 3 commits May 19, 2026 18:34
Return accepted receipts for team update/archive so write responses no longer imply readmodel freshness, and document the new contract for clients.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Clarify accepted-command UI messaging and reject unexpected ACK stages so the frontend does not imply read-model freshness beyond the backend contract.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.48%. Comparing base (9888995) to head (4ffccb4).

@@           Coverage Diff           @@
##              dev     #765   +/-   ##
=======================================
  Coverage   82.47%   82.48%           
=======================================
  Files         941      941           
  Lines       60101    60114   +13     
  Branches     7872     7872           
=======================================
+ Hits        49571    49586   +15     
  Misses       7132     7132           
+ Partials     3398     3396    -2     
Flag Coverage Δ
ci 82.48% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...dServices/ActorDispatchStudioTeamCommandService.cs 96.87% <100.00%> (+0.48%) ⬆️

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Make Studio team command ACK semantics honest

1 participant